]> sourceware.org Git - systemtap.git/blob - configure
rhbz1732514: java runtime requires java-devel
[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.2.
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.2'
584 PACKAGE_STRING='systemtap 4.2'
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 with_python2_probes
925 with_python3_probes
926 with_bpf
927 with_selinux
928 with_java
929 with_extra_version
930 enable_http
931 '
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CPP
941 CXX
942 CXXFLAGS
943 CCC
944 PYTHON
945 PKG_CONFIG
946 PKG_CONFIG_PATH
947 PKG_CONFIG_LIBDIR
948 sqlite3_CFLAGS
949 sqlite3_LIBS
950 nss_CFLAGS
951 nss_LIBS
952 openssl_CFLAGS
953 openssl_LIBS
954 avahi_CFLAGS
955 avahi_LIBS
956 CXXCPP
957 libvirt_CFLAGS
958 libvirt_LIBS
959 libxml2_CFLAGS
960 libxml2_LIBS
961 jsonc_CFLAGS
962 jsonc_LIBS
963 ncurses_CFLAGS
964 ncurses_LIBS
965 selinux_CFLAGS
966 selinux_LIBS
967 libmicrohttpd_CFLAGS
968 libmicrohttpd_LIBS
969 uuid_CFLAGS
970 uuid_LIBS
971 libcurl_CFLAGS
972 libcurl_LIBS'
973 ac_subdirs_all='testsuite'
974
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 ac_unrecognized_opts=
979 ac_unrecognized_sep=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1015 htmldir='${docdir}'
1016 dvidir='${docdir}'
1017 pdfdir='${docdir}'
1018 psdir='${docdir}'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1022
1023 ac_prev=
1024 ac_dashdash=
1025 for ac_option
1026 do
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1030 ac_prev=
1031 continue
1032 fi
1033
1034 case $ac_option in
1035 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036 *=) ac_optarg= ;;
1037 *) ac_optarg=yes ;;
1038 esac
1039
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1041
1042 case $ac_dashdash$ac_option in
1043 --)
1044 ac_dashdash=yes ;;
1045
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 ac_prev=bindir ;;
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1050
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1055
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1062
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1065
1066 -datadir | --datadir | --datadi | --datad)
1067 ac_prev=datadir ;;
1068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069 datadir=$ac_optarg ;;
1070
1071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1077
1078 -disable-* | --disable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=no ;;
1093
1094 -docdir | --docdir | --docdi | --doc | --do)
1095 ac_prev=docdir ;;
1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097 docdir=$ac_optarg ;;
1098
1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100 ac_prev=dvidir ;;
1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102 dvidir=$ac_optarg ;;
1103
1104 -enable-* | --enable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid feature name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval enable_$ac_useropt=\$ac_optarg ;;
1119
1120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122 | --exec | --exe | --ex)
1123 ac_prev=exec_prefix ;;
1124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126 | --exec=* | --exe=* | --ex=*)
1127 exec_prefix=$ac_optarg ;;
1128
1129 -gas | --gas | --ga | --g)
1130 # Obsolete; use --with-gas.
1131 with_gas=yes ;;
1132
1133 -help | --help | --hel | --he | -h)
1134 ac_init_help=long ;;
1135 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136 ac_init_help=recursive ;;
1137 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138 ac_init_help=short ;;
1139
1140 -host | --host | --hos | --ho)
1141 ac_prev=host_alias ;;
1142 -host=* | --host=* | --hos=* | --ho=*)
1143 host_alias=$ac_optarg ;;
1144
1145 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146 ac_prev=htmldir ;;
1147 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148 | --ht=*)
1149 htmldir=$ac_optarg ;;
1150
1151 -includedir | --includedir | --includedi | --included | --include \
1152 | --includ | --inclu | --incl | --inc)
1153 ac_prev=includedir ;;
1154 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155 | --includ=* | --inclu=* | --incl=* | --inc=*)
1156 includedir=$ac_optarg ;;
1157
1158 -infodir | --infodir | --infodi | --infod | --info | --inf)
1159 ac_prev=infodir ;;
1160 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161 infodir=$ac_optarg ;;
1162
1163 -libdir | --libdir | --libdi | --libd)
1164 ac_prev=libdir ;;
1165 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166 libdir=$ac_optarg ;;
1167
1168 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169 | --libexe | --libex | --libe)
1170 ac_prev=libexecdir ;;
1171 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172 | --libexe=* | --libex=* | --libe=*)
1173 libexecdir=$ac_optarg ;;
1174
1175 -localedir | --localedir | --localedi | --localed | --locale)
1176 ac_prev=localedir ;;
1177 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178 localedir=$ac_optarg ;;
1179
1180 -localstatedir | --localstatedir | --localstatedi | --localstated \
1181 | --localstate | --localstat | --localsta | --localst | --locals)
1182 ac_prev=localstatedir ;;
1183 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185 localstatedir=$ac_optarg ;;
1186
1187 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188 ac_prev=mandir ;;
1189 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190 mandir=$ac_optarg ;;
1191
1192 -nfp | --nfp | --nf)
1193 # Obsolete; use --without-fp.
1194 with_fp=no ;;
1195
1196 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197 | --no-cr | --no-c | -n)
1198 no_create=yes ;;
1199
1200 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202 no_recursion=yes ;;
1203
1204 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206 | --oldin | --oldi | --old | --ol | --o)
1207 ac_prev=oldincludedir ;;
1208 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211 oldincludedir=$ac_optarg ;;
1212
1213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214 ac_prev=prefix ;;
1215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216 prefix=$ac_optarg ;;
1217
1218 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219 | --program-pre | --program-pr | --program-p)
1220 ac_prev=program_prefix ;;
1221 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223 program_prefix=$ac_optarg ;;
1224
1225 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226 | --program-suf | --program-su | --program-s)
1227 ac_prev=program_suffix ;;
1228 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230 program_suffix=$ac_optarg ;;
1231
1232 -program-transform-name | --program-transform-name \
1233 | --program-transform-nam | --program-transform-na \
1234 | --program-transform-n | --program-transform- \
1235 | --program-transform | --program-transfor \
1236 | --program-transfo | --program-transf \
1237 | --program-trans | --program-tran \
1238 | --progr-tra | --program-tr | --program-t)
1239 ac_prev=program_transform_name ;;
1240 -program-transform-name=* | --program-transform-name=* \
1241 | --program-transform-nam=* | --program-transform-na=* \
1242 | --program-transform-n=* | --program-transform-=* \
1243 | --program-transform=* | --program-transfor=* \
1244 | --program-transfo=* | --program-transf=* \
1245 | --program-trans=* | --program-tran=* \
1246 | --progr-tra=* | --program-tr=* | --program-t=*)
1247 program_transform_name=$ac_optarg ;;
1248
1249 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250 ac_prev=pdfdir ;;
1251 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252 pdfdir=$ac_optarg ;;
1253
1254 -psdir | --psdir | --psdi | --psd | --ps)
1255 ac_prev=psdir ;;
1256 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257 psdir=$ac_optarg ;;
1258
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 silent=yes ;;
1262
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 ac_prev=sbindir ;;
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 | --sbi=* | --sb=*)
1267 sbindir=$ac_optarg ;;
1268
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1272 | --sha | --sh)
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 | --sha=* | --sh=*)
1278 sharedstatedir=$ac_optarg ;;
1279
1280 -site | --site | --sit)
1281 ac_prev=site ;;
1282 -site=* | --site=* | --sit=*)
1283 site=$ac_optarg ;;
1284
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 ac_prev=srcdir ;;
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288 srcdir=$ac_optarg ;;
1289
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295 sysconfdir=$ac_optarg ;;
1296
1297 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 ac_prev=target_alias ;;
1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300 target_alias=$ac_optarg ;;
1301
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 verbose=yes ;;
1304
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
1307
1308 -with-* | --with-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
1323
1324 -without-* | --without-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error $? "invalid package name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333 "with_$ac_useropt"
1334 "*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=no ;;
1339
1340 --x)
1341 # Obsolete; use --with-x.
1342 with_x=yes ;;
1343
1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345 | --x-incl | --x-inc | --x-in | --x-i)
1346 ac_prev=x_includes ;;
1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349 x_includes=$ac_optarg ;;
1350
1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 ac_prev=x_libraries ;;
1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356 x_libraries=$ac_optarg ;;
1357
1358 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1359 Try \`$0 --help' for more information"
1360 ;;
1361
1362 *=*)
1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
1365 case $ac_envvar in #(
1366 '' | [0-9]* | *[!_$as_cr_alnum]* )
1367 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1368 esac
1369 eval $ac_envvar=\$ac_optarg
1370 export $ac_envvar ;;
1371
1372 *)
1373 # FIXME: should be removed in autoconf 3.0.
1374 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1376 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1377 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1378 ;;
1379
1380 esac
1381 done
1382
1383 if test -n "$ac_prev"; then
1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1385 as_fn_error $? "missing argument to $ac_option"
1386 fi
1387
1388 if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1390 no) ;;
1391 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 esac
1394 fi
1395
1396 # Check all directory arguments for consistency.
1397 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
1401 do
1402 eval ac_val=\$$ac_var
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
1410 case $ac_val in
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 esac
1414 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1415 done
1416
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1420 build=$build_alias
1421 host=$host_alias
1422 target=$target_alias
1423
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1430 fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error $? "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error $? "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1477 fi
1478 else
1479 ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures systemtap 4.2 to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking ...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1567
1568 cat <<\_ACEOF
1569
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of systemtap 4.2:";;
1585 esac
1586 cat <<\_ACEOF
1587
1588 Optional Features:
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-silent-rules less verbose build output (undo: "make V=1")
1593 --disable-silent-rules verbose build output (undo: "make V=0")
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
1597 --enable-dependency-tracking
1598 do not reject slow dependency extractors
1599 --disable-dependency-tracking
1600 speeds up one-time build
1601 --disable-largefile omit support for large files
1602 --disable-nls do not use Native Language Support
1603 --disable-rpath do not hardcode runtime library paths
1604 --enable-prologues make -P prologue-searching default
1605 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1606 --disable-ssp disable gcc stack-protector
1607 --enable-pie enable position-independent-executable
1608 --enable-sqlite build with sqlite support
1609 --disable-translator build only runtime utilities
1610 --enable-crash[=DIRECTORY]
1611 enable crash extension (default is disabled).
1612 Optional DIRECTORY is the path to the crash header
1613 file (needed if installed in a non-standard
1614 location).
1615 --enable-docs enable building documentation (default to only
1616 installing prebuilt docs).
1617 --enable-refdocs enable building reference documentation (default on
1618 if other documentation built).
1619 --enable-htmldocs enable building html documentation (default off).
1620 --enable-server enable building of stap-server (default on if nss
1621 etc. found).
1622 --enable-virt enable building of stapvirt support (default on if
1623 libvirt etc. found).
1624 --enable-http Enable building http web compilation service, if
1625 possible
1626
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1632 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1633 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1634 --without-libintl-prefix don't search for libintl in includedir and libdir
1635 --without-nss Do not use NSS even if present
1636 --without-openssl Do not use OPENSSL even if present
1637 --with-dracutstap=DIR Install dracut module files in DIR
1638 --with-dracutbindir=DIR Use the dracut binary located in DIR
1639 --without-avahi Do not use Avahi even if present
1640 --with-rpm query rpm database for missing debuginfos
1641 --with-python3 prefer python version 3
1642 --with-elfutils=DIRECTORY
1643 find elfutils source code in DIRECTORY
1644 --with-dyninst=DIRECTORY
1645 find dyninst headers/libraries in DIRECTORY
1646 --without-python2-probes
1647 Disable building python version 2 probe support,
1648 even if it is available
1649 --without-python3-probes
1650 Disable building python version 3 probe support,
1651 even if it is available
1652 --without-bpf Do not try to build BPF components
1653 --without-selinux Do not use libselinux even if present
1654 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1655 against (default is /usr/lib/jvm/java)
1656 --with-extra-version=STRING
1657 Add STRING to stap -V version
1658
1659 Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CPP C preprocessor
1668 CXX C++ compiler command
1669 CXXFLAGS C++ compiler flags
1670 PYTHON the Python interpreter
1671 PKG_CONFIG path to pkg-config utility
1672 PKG_CONFIG_PATH
1673 directories to add to pkg-config's search path
1674 PKG_CONFIG_LIBDIR
1675 path overriding pkg-config's built-in search path
1676 sqlite3_CFLAGS
1677 C compiler flags for sqlite3, overriding pkg-config
1678 sqlite3_LIBS
1679 linker flags for sqlite3, overriding pkg-config
1680 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1681 nss_LIBS linker flags for nss, overriding pkg-config
1682 openssl_CFLAGS
1683 C compiler flags for openssl, overriding pkg-config
1684 openssl_LIBS
1685 linker flags for openssl, overriding pkg-config
1686 avahi_CFLAGS
1687 C compiler flags for avahi, overriding pkg-config
1688 avahi_LIBS linker flags for avahi, overriding pkg-config
1689 CXXCPP C++ preprocessor
1690 libvirt_CFLAGS
1691 C compiler flags for libvirt, overriding pkg-config
1692 libvirt_LIBS
1693 linker flags for libvirt, overriding pkg-config
1694 libxml2_CFLAGS
1695 C compiler flags for libxml2, overriding pkg-config
1696 libxml2_LIBS
1697 linker flags for libxml2, overriding pkg-config
1698 jsonc_CFLAGS
1699 C compiler flags for jsonc, overriding pkg-config
1700 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1701 ncurses_CFLAGS
1702 C compiler flags for ncurses, overriding pkg-config
1703 ncurses_LIBS
1704 linker flags for ncurses, overriding pkg-config
1705 selinux_CFLAGS
1706 C compiler flags for selinux, overriding pkg-config
1707 selinux_LIBS
1708 linker flags for selinux, overriding pkg-config
1709 libmicrohttpd_CFLAGS
1710 C compiler flags for libmicrohttpd, overriding pkg-config
1711 libmicrohttpd_LIBS
1712 linker flags for libmicrohttpd, overriding pkg-config
1713 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1714 uuid_LIBS linker flags for uuid, overriding pkg-config
1715 libcurl_CFLAGS
1716 C compiler flags for libcurl, overriding pkg-config
1717 libcurl_LIBS
1718 linker flags for libcurl, overriding pkg-config
1719
1720 Use these variables to override the choices made by `configure' or to help
1721 it to find libraries and programs with nonstandard names/locations.
1722
1723 Report bugs to <systemtap@sourceware.org>.
1724 _ACEOF
1725 ac_status=$?
1726 fi
1727
1728 if test "$ac_init_help" = "recursive"; then
1729 # If there are subdirs, report their specific --help.
1730 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1731 test -d "$ac_dir" ||
1732 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 continue
1734 ac_builddir=.
1735
1736 case "$ac_dir" in
1737 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *)
1739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1740 # A ".." for each directory in $ac_dir_suffix.
1741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1742 case $ac_top_builddir_sub in
1743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1745 esac ;;
1746 esac
1747 ac_abs_top_builddir=$ac_pwd
1748 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1749 # for backward compatibility:
1750 ac_top_builddir=$ac_top_build_prefix
1751
1752 case $srcdir in
1753 .) # We are building in place.
1754 ac_srcdir=.
1755 ac_top_srcdir=$ac_top_builddir_sub
1756 ac_abs_top_srcdir=$ac_pwd ;;
1757 [\\/]* | ?:[\\/]* ) # Absolute name.
1758 ac_srcdir=$srcdir$ac_dir_suffix;
1759 ac_top_srcdir=$srcdir
1760 ac_abs_top_srcdir=$srcdir ;;
1761 *) # Relative name.
1762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1763 ac_top_srcdir=$ac_top_build_prefix$srcdir
1764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1765 esac
1766 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767
1768 cd "$ac_dir" || { ac_status=$?; continue; }
1769 # Check for guested configure.
1770 if test -f "$ac_srcdir/configure.gnu"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1773 elif test -f "$ac_srcdir/configure"; then
1774 echo &&
1775 $SHELL "$ac_srcdir/configure" --help=recursive
1776 else
1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 fi || ac_status=$?
1779 cd "$ac_pwd" || { ac_status=$?; break; }
1780 done
1781 fi
1782
1783 test -n "$ac_init_help" && exit $ac_status
1784 if $ac_init_version; then
1785 cat <<\_ACEOF
1786 systemtap configure 4.2
1787 generated by GNU Autoconf 2.69
1788
1789 Copyright (C) 2012 Free Software Foundation, Inc.
1790 This configure script is free software; the Free Software Foundation
1791 gives unlimited permission to copy, distribute and modify it.
1792 _ACEOF
1793 exit
1794 fi
1795
1796 ## ------------------------ ##
1797 ## Autoconf initialization. ##
1798 ## ------------------------ ##
1799
1800 # ac_fn_c_try_compile LINENO
1801 # --------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } > conftest.i && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if eval \${$3+:} false; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.i conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ( $as_echo "## --------------------------------------- ##
1946 ## Report this to systemtap@sourceware.org ##
1947 ## --------------------------------------- ##"
1948 ) | sed "s/^/$as_me: WARNING: /" >&2
1949 ;;
1950 esac
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_link") 2>&5
1981 ac_status=$?
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984 { { case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_try") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; }; }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=$ac_status
2001 fi
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$3=yes"
2027 else
2028 eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_cxx_try_compile LINENO
2040 # ----------------------------
2041 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_compile ()
2043 {
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext
2046 if { { ac_try="$ac_compile"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_compile") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest.$ac_objext; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=1
2071 fi
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2074
2075 } # ac_fn_cxx_try_compile
2076
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_c_try_link ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2085 case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2092 ac_status=$?
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2097 fi
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
2104 test -x conftest$ac_exeext
2105 }; then :
2106 ac_retval=0
2107 else
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1
2112 fi
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status $ac_retval
2120
2121 } # ac_fn_c_try_link
2122
2123 # ac_fn_c_check_func LINENO FUNC VAR
2124 # ----------------------------------
2125 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2126 ac_fn_c_check_func ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138 #define $2 innocuous_$2
2139
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below.
2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143 <limits.h> exists even on freestanding compilers. */
2144
2145 #ifdef __STDC__
2146 # include <limits.h>
2147 #else
2148 # include <assert.h>
2149 #endif
2150
2151 #undef $2
2152
2153 /* Override any GCC internal prototype to avoid an error.
2154 Use char because int might match the return type of a GCC
2155 builtin and then its argument prototype would still apply. */
2156 #ifdef __cplusplus
2157 extern "C"
2158 #endif
2159 char $2 ();
2160 /* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
2163 #if defined __stub_$2 || defined __stub___$2
2164 choke me
2165 #endif
2166
2167 int
2168 main ()
2169 {
2170 return $2 ();
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_link "$LINENO"; then :
2176 eval "$3=yes"
2177 else
2178 eval "$3=no"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext \
2181 conftest$ac_exeext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187
2188 } # ac_fn_c_check_func
2189
2190 # ac_fn_cxx_try_cpp LINENO
2191 # ------------------------
2192 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_cxx_try_cpp ()
2194 {
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if { { ac_try="$ac_cpp conftest.$ac_ext"
2197 case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2204 ac_status=$?
2205 if test -s conftest.err; then
2206 grep -v '^ *+' conftest.err >conftest.er1
2207 cat conftest.er1 >&5
2208 mv -f conftest.er1 conftest.err
2209 fi
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; } > conftest.i && {
2212 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2213 test ! -s conftest.err
2214 }; then :
2215 ac_retval=0
2216 else
2217 $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_retval=1
2221 fi
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 as_fn_set_status $ac_retval
2224
2225 } # ac_fn_cxx_try_cpp
2226
2227 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2228 # ---------------------------------------------------------
2229 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2230 # the include files in INCLUDES and setting the cache variable VAR
2231 # accordingly.
2232 ac_fn_cxx_check_header_mongrel ()
2233 {
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 if eval \${$3+:} false; then :
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 fi
2241 eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 else
2245 # Is the header compilable?
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2247 $as_echo_n "checking $2 usability... " >&6; }
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 #include <$2>
2252 _ACEOF
2253 if ac_fn_cxx_try_compile "$LINENO"; then :
2254 ac_header_compiler=yes
2255 else
2256 ac_header_compiler=no
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2260 $as_echo "$ac_header_compiler" >&6; }
2261
2262 # Is the header present?
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2264 $as_echo_n "checking $2 presence... " >&6; }
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 #include <$2>
2268 _ACEOF
2269 if ac_fn_cxx_try_cpp "$LINENO"; then :
2270 ac_header_preproc=yes
2271 else
2272 ac_header_preproc=no
2273 fi
2274 rm -f conftest.err conftest.i conftest.$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2276 $as_echo "$ac_header_preproc" >&6; }
2277
2278 # So? What about this header?
2279 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2280 yes:no: )
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2282 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2284 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 ;;
2286 no:yes:* )
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2288 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2290 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2292 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2294 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2296 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2297 ( $as_echo "## --------------------------------------- ##
2298 ## Report this to systemtap@sourceware.org ##
2299 ## --------------------------------------- ##"
2300 ) | sed "s/^/$as_me: WARNING: /" >&2
2301 ;;
2302 esac
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2304 $as_echo_n "checking for $2... " >&6; }
2305 if eval \${$3+:} false; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 eval "$3=\$ac_header_compiler"
2309 fi
2310 eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 fi
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315
2316 } # ac_fn_cxx_check_header_mongrel
2317
2318 # ac_fn_cxx_try_link LINENO
2319 # -------------------------
2320 # Try to link conftest.$ac_ext, and return whether this succeeded.
2321 ac_fn_cxx_try_link ()
2322 {
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext conftest$ac_exeext
2325 if { { ac_try="$ac_link"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_link") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest$ac_exeext && {
2344 test "$cross_compiling" = yes ||
2345 test -x conftest$ac_exeext
2346 }; then :
2347 ac_retval=0
2348 else
2349 $as_echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 ac_retval=1
2353 fi
2354 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2355 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2356 # interfere with the next link command; also delete a directory that is
2357 # left behind by Apple's compiler. We do this before executing the actions.
2358 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 as_fn_set_status $ac_retval
2361
2362 } # ac_fn_cxx_try_link
2363
2364 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2365 # ---------------------------------------------
2366 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2367 # accordingly.
2368 ac_fn_c_check_decl ()
2369 {
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 as_decl_name=`echo $2|sed 's/ *(.*//'`
2372 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2374 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2375 if eval \${$3+:} false; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380 $4
2381 int
2382 main ()
2383 {
2384 #ifndef $as_decl_name
2385 #ifdef __cplusplus
2386 (void) $as_decl_use;
2387 #else
2388 (void) $as_decl_name;
2389 #endif
2390 #endif
2391
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407
2408 } # ac_fn_c_check_decl
2409 cat >config.log <<_ACEOF
2410 This file contains any messages produced by compilers while
2411 running configure, to aid debugging if configure makes a mistake.
2412
2413 It was created by systemtap $as_me 4.2, which was
2414 generated by GNU Autoconf 2.69. Invocation command line was
2415
2416 $ $0 $@
2417
2418 _ACEOF
2419 exec 5>>config.log
2420 {
2421 cat <<_ASUNAME
2422 ## --------- ##
2423 ## Platform. ##
2424 ## --------- ##
2425
2426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431
2432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434
2435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2442
2443 _ASUNAME
2444
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 $as_echo "PATH: $as_dir"
2451 done
2452 IFS=$as_save_IFS
2453
2454 } >&5
2455
2456 cat >&5 <<_ACEOF
2457
2458
2459 ## ----------- ##
2460 ## Core tests. ##
2461 ## ----------- ##
2462
2463 _ACEOF
2464
2465
2466 # Keep a trace of the command line.
2467 # Strip out --no-create and --no-recursion so they do not pile up.
2468 # Strip out --silent because we don't want to record it for future runs.
2469 # Also quote any args containing shell meta-characters.
2470 # Make two passes to allow for proper duplicate-argument suppression.
2471 ac_configure_args=
2472 ac_configure_args0=
2473 ac_configure_args1=
2474 ac_must_keep_next=false
2475 for ac_pass in 1 2
2476 do
2477 for ac_arg
2478 do
2479 case $ac_arg in
2480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2482 | -silent | --silent | --silen | --sile | --sil)
2483 continue ;;
2484 *\'*)
2485 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2486 esac
2487 case $ac_pass in
2488 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489 2)
2490 as_fn_append ac_configure_args1 " '$ac_arg'"
2491 if test $ac_must_keep_next = true; then
2492 ac_must_keep_next=false # Got value, back to normal.
2493 else
2494 case $ac_arg in
2495 *=* | --config-cache | -C | -disable-* | --disable-* \
2496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2498 | -with-* | --with-* | -without-* | --without-* | --x)
2499 case "$ac_configure_args0 " in
2500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2501 esac
2502 ;;
2503 -* ) ac_must_keep_next=true ;;
2504 esac
2505 fi
2506 as_fn_append ac_configure_args " '$ac_arg'"
2507 ;;
2508 esac
2509 done
2510 done
2511 { ac_configure_args0=; unset ac_configure_args0;}
2512 { ac_configure_args1=; unset ac_configure_args1;}
2513
2514 # When interrupted or exit'd, cleanup temporary files, and complete
2515 # config.log. We remove comments because anyway the quotes in there
2516 # would cause problems or look ugly.
2517 # WARNING: Use '\'' to represent an apostrophe within the trap.
2518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2519 trap 'exit_status=$?
2520 # Save into config.log some information that might help in debugging.
2521 {
2522 echo
2523
2524 $as_echo "## ---------------- ##
2525 ## Cache variables. ##
2526 ## ---------------- ##"
2527 echo
2528 # The following way of writing the cache mishandles newlines in values,
2529 (
2530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2531 eval ac_val=\$$ac_var
2532 case $ac_val in #(
2533 *${as_nl}*)
2534 case $ac_var in #(
2535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2537 esac
2538 case $ac_var in #(
2539 _ | IFS | as_nl) ;; #(
2540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2541 *) { eval $ac_var=; unset $ac_var;} ;;
2542 esac ;;
2543 esac
2544 done
2545 (set) 2>&1 |
2546 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2547 *${as_nl}ac_space=\ *)
2548 sed -n \
2549 "s/'\''/'\''\\\\'\'''\''/g;
2550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2551 ;; #(
2552 *)
2553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2554 ;;
2555 esac |
2556 sort
2557 )
2558 echo
2559
2560 $as_echo "## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##"
2563 echo
2564 for ac_var in $ac_subst_vars
2565 do
2566 eval ac_val=\$$ac_var
2567 case $ac_val in
2568 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 esac
2570 $as_echo "$ac_var='\''$ac_val'\''"
2571 done | sort
2572 echo
2573
2574 if test -n "$ac_subst_files"; then
2575 $as_echo "## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##"
2578 echo
2579 for ac_var in $ac_subst_files
2580 do
2581 eval ac_val=\$$ac_var
2582 case $ac_val in
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 esac
2585 $as_echo "$ac_var='\''$ac_val'\''"
2586 done | sort
2587 echo
2588 fi
2589
2590 if test -s confdefs.h; then
2591 $as_echo "## ----------- ##
2592 ## confdefs.h. ##
2593 ## ----------- ##"
2594 echo
2595 cat confdefs.h
2596 echo
2597 fi
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2601 } >&5
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2604 exit $exit_status
2605 ' 0
2606 for ac_signal in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2608 done
2609 ac_signal=0
2610
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest* confdefs.h
2613
2614 $as_echo "/* confdefs.h */" > confdefs.h
2615
2616 # Predefined preprocessor variables.
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2620 _ACEOF
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2624 _ACEOF
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2632 _ACEOF
2633
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2636 _ACEOF
2637
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2640 _ACEOF
2641
2642
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2645 ac_site_file1=NONE
2646 ac_site_file2=NONE
2647 if test -n "$CONFIG_SITE"; then
2648 # We do not want a PATH search for config.site.
2649 case $CONFIG_SITE in #((
2650 -*) ac_site_file1=./$CONFIG_SITE;;
2651 */*) ac_site_file1=$CONFIG_SITE;;
2652 *) ac_site_file1=./$CONFIG_SITE;;
2653 esac
2654 elif test "x$prefix" != xNONE; then
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
2657 else
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
2660 fi
2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 do
2663 test "x$ac_site_file" = xNONE && continue
2664 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2668 . "$ac_site_file" \
2669 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 as_fn_error $? "failed to load site script $ac_site_file
2672 See \`config.log' for more details" "$LINENO" 5; }
2673 fi
2674 done
2675
2676 if test -r "$cache_file"; then
2677 # Some versions of bash will fail to source /dev/null (special files
2678 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2679 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2681 $as_echo "$as_me: loading cache $cache_file" >&6;}
2682 case $cache_file in
2683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2684 *) . "./$cache_file";;
2685 esac
2686 fi
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2689 $as_echo "$as_me: creating cache $cache_file" >&6;}
2690 >$cache_file
2691 fi
2692
2693 gt_needs="$gt_needs "
2694 # Check that the precious variables saved in the cache have kept the same
2695 # value.
2696 ac_cache_corrupted=false
2697 for ac_var in $ac_precious_vars; do
2698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2699 eval ac_new_set=\$ac_env_${ac_var}_set
2700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2701 eval ac_new_val=\$ac_env_${ac_var}_value
2702 case $ac_old_set,$ac_new_set in
2703 set,)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2706 ac_cache_corrupted=: ;;
2707 ,set)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2711 ,);;
2712 *)
2713 if test "x$ac_old_val" != "x$ac_new_val"; then
2714 # differences in whitespace do not lead to failure.
2715 ac_old_val_w=`echo x $ac_old_val`
2716 ac_new_val_w=`echo x $ac_new_val`
2717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2720 ac_cache_corrupted=:
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2724 eval $ac_var=\$ac_old_val
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2727 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2730 fi;;
2731 esac
2732 # Pass precious variables to config.status.
2733 if test "$ac_new_set" = set; then
2734 case $ac_new_val in
2735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 *) ac_arg=$ac_var=$ac_new_val ;;
2737 esac
2738 case " $ac_configure_args " in
2739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2741 esac
2742 fi
2743 done
2744 if $ac_cache_corrupted; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2749 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2750 fi
2751 ## -------------------- ##
2752 ## Main body of script. ##
2753 ## -------------------- ##
2754
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761
2762
2763 ac_aux_dir=
2764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2765 if test -f "$ac_dir/install-sh"; then
2766 ac_aux_dir=$ac_dir
2767 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 break
2769 elif 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/shtool"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 break
2777 fi
2778 done
2779 if test -z "$ac_aux_dir"; then
2780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2781 fi
2782
2783 # These three variables are undocumented and unsupported,
2784 # and are intended to be withdrawn in a future Autoconf release.
2785 # They can cause serious problems if a builder's source tree is in a directory
2786 # whose full name contains unusual characters.
2787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790
2791
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2864 $as_echo_n "checking target system type... " >&6; }
2865 if ${ac_cv_target+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test "x$target_alias" = x; then
2869 ac_cv_target=$ac_cv_host
2870 else
2871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2873 fi
2874
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2877 $as_echo "$ac_cv_target" >&6; }
2878 case $ac_cv_target in
2879 *-*-*) ;;
2880 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2881 esac
2882 target=$ac_cv_target
2883 ac_save_IFS=$IFS; IFS='-'
2884 set x $ac_cv_target
2885 shift
2886 target_cpu=$1
2887 target_vendor=$2
2888 shift; shift
2889 # Remember, the first character of IFS is used to create $*,
2890 # except with old shells:
2891 target_os=$*
2892 IFS=$ac_save_IFS
2893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2894
2895
2896 # The aliases save the names the user supplied, while $host etc.
2897 # will get canonicalized.
2898 test -n "$target_alias" &&
2899 test "$program_prefix$program_suffix$program_transform_name" = \
2900 NONENONEs,x,x, &&
2901 program_prefix=${target_alias}-
2902
2903
2904 am__api_version='1.16'
2905
2906 # Find a good install program. We prefer a C program (faster),
2907 # so one script is as good as another. But avoid the broken or
2908 # incompatible versions:
2909 # SysV /etc/install, /usr/sbin/install
2910 # SunOS /usr/etc/install
2911 # IRIX /sbin/install
2912 # AIX /bin/install
2913 # AmigaOS /C/install, which installs bootblocks on floppy discs
2914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2917 # OS/2's system install, which has a completely different semantic
2918 # ./install, which can be erroneously created by make from ./install.sh.
2919 # Reject install programs that cannot install multiple files.
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2921 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2922 if test -z "$INSTALL"; then
2923 if ${ac_cv_path_install+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 # Account for people who put trailing slashes in PATH elements.
2932 case $as_dir/ in #((
2933 ./ | .// | /[cC]/* | \
2934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2935 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2936 /usr/ucb/* ) ;;
2937 *)
2938 # OSF1 and SCO ODT 3.0 have their own names for install.
2939 # Don't use installbsd from OSF since it installs stuff as root
2940 # by default.
2941 for ac_prog in ginstall scoinst install; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2944 if test $ac_prog = install &&
2945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # AIX install. It has an incompatible calling convention.
2947 :
2948 elif test $ac_prog = install &&
2949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950 # program-specific install script used by HP pwplus--don't use.
2951 :
2952 else
2953 rm -rf conftest.one conftest.two conftest.dir
2954 echo one > conftest.one
2955 echo two > conftest.two
2956 mkdir conftest.dir
2957 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2958 test -s conftest.one && test -s conftest.two &&
2959 test -s conftest.dir/conftest.one &&
2960 test -s conftest.dir/conftest.two
2961 then
2962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2963 break 3
2964 fi
2965 fi
2966 fi
2967 done
2968 done
2969 ;;
2970 esac
2971
2972 done
2973 IFS=$as_save_IFS
2974
2975 rm -rf conftest.one conftest.two conftest.dir
2976
2977 fi
2978 if test "${ac_cv_path_install+set}" = set; then
2979 INSTALL=$ac_cv_path_install
2980 else
2981 # As a last resort, use the slow shell script. Don't cache a
2982 # value for INSTALL within a source directory, because that will
2983 # break other packages using the cache if that directory is
2984 # removed, or if the value is a relative name.
2985 INSTALL=$ac_install_sh
2986 fi
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2989 $as_echo "$INSTALL" >&6; }
2990
2991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2992 # It thinks the first close brace ends the variable substitution.
2993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994
2995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996
2997 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3000 $as_echo_n "checking whether build environment is sane... " >&6; }
3001 # Reject unsafe characters in $srcdir or the absolute working directory
3002 # name. Accept space and tab only in the latter.
3003 am_lf='
3004 '
3005 case `pwd` in
3006 *[\\\"\#\$\&\'\`$am_lf]*)
3007 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3008 esac
3009 case $srcdir in
3010 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3011 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3012 esac
3013
3014 # Do 'set' in a subshell so we don't clobber the current shell's
3015 # arguments. Must try -L first in case configure is actually a
3016 # symlink; some systems play weird games with the mod time of symlinks
3017 # (eg FreeBSD returns the mod time of the symlink's containing
3018 # directory).
3019 if (
3020 am_has_slept=no
3021 for am_try in 1 2; do
3022 echo "timestamp, slept: $am_has_slept" > conftest.file
3023 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3024 if test "$*" = "X"; then
3025 # -L didn't work.
3026 set X `ls -t "$srcdir/configure" conftest.file`
3027 fi
3028 if test "$*" != "X $srcdir/configure conftest.file" \
3029 && test "$*" != "X conftest.file $srcdir/configure"; then
3030
3031 # If neither matched, then we have a broken ls. This can happen
3032 # if, for instance, CONFIG_SHELL is bash and it inherits a
3033 # broken ls alias from the environment. This has actually
3034 # happened. Such a system could not be considered "sane".
3035 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3036 alias in your environment" "$LINENO" 5
3037 fi
3038 if test "$2" = conftest.file || test $am_try -eq 2; then
3039 break
3040 fi
3041 # Just in case.
3042 sleep 1
3043 am_has_slept=yes
3044 done
3045 test "$2" = conftest.file
3046 )
3047 then
3048 # Ok.
3049 :
3050 else
3051 as_fn_error $? "newly created file is older than distributed files!
3052 Check your system clock" "$LINENO" 5
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; }
3056 # If we didn't sleep, we still need to ensure time stamps of config.status and
3057 # generated files are strictly newer.
3058 am_sleep_pid=
3059 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3060 ( sleep 1 ) &
3061 am_sleep_pid=$!
3062 fi
3063
3064 rm -f conftest.file
3065
3066 test "$program_prefix" != NONE &&
3067 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3068 # Use a double $ so make ignores it.
3069 test "$program_suffix" != NONE &&
3070 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3071 # Double any \ or $.
3072 # By default was `s,x,x', remove it if useless.
3073 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3074 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3075
3076 # Expand $ac_aux_dir to an absolute path.
3077 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3078
3079 if test x"${MISSING+set}" != xset; then
3080 case $am_aux_dir in
3081 *\ * | *\ *)
3082 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3083 *)
3084 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3085 esac
3086 fi
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --is-lightweight"; then
3089 am_missing_run="$MISSING "
3090 else
3091 am_missing_run=
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3093 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3094 fi
3095
3096 if test x"${install_sh+set}" != xset; then
3097 case $am_aux_dir in
3098 *\ * | *\ *)
3099 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3100 *)
3101 install_sh="\${SHELL} $am_aux_dir/install-sh"
3102 esac
3103 fi
3104
3105 # Installed binaries are usually stripped using 'strip' when the user
3106 # run "make install-strip". However 'strip' might not be the right
3107 # tool to use in cross-compilation environments, therefore Automake
3108 # will honor the 'STRIP' environment variable to overrule this program.
3109 if test "$cross_compiling" != no; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3112 set dummy ${ac_tool_prefix}strip; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_STRIP+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$STRIP"; then
3119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 STRIP=$ac_cv_prog_STRIP
3139 if test -n "$STRIP"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3141 $as_echo "$STRIP" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 fi
3149 if test -z "$ac_cv_prog_STRIP"; then
3150 ac_ct_STRIP=$STRIP
3151 # Extract the first word of "strip", so it can be a program name with args.
3152 set dummy strip; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -n "$ac_ct_STRIP"; then
3159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_ac_ct_STRIP="strip"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3179 if test -n "$ac_ct_STRIP"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3181 $as_echo "$ac_ct_STRIP" >&6; }
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187 if test "x$ac_ct_STRIP" = x; then
3188 STRIP=":"
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196 STRIP=$ac_ct_STRIP
3197 fi
3198 else
3199 STRIP="$ac_cv_prog_STRIP"
3200 fi
3201
3202 fi
3203 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3204
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3206 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3207 if test -z "$MKDIR_P"; then
3208 if ${ac_cv_path_mkdir+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in mkdir gmkdir; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3219 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3220 'mkdir (GNU coreutils) '* | \
3221 'mkdir (coreutils) '* | \
3222 'mkdir (fileutils) '4.1*)
3223 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3224 break 3;;
3225 esac
3226 done
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 fi
3232
3233 test -d ./--version && rmdir ./--version
3234 if test "${ac_cv_path_mkdir+set}" = set; then
3235 MKDIR_P="$ac_cv_path_mkdir -p"
3236 else
3237 # As a last resort, use the slow shell script. Don't cache a
3238 # value for MKDIR_P within a source directory, because that will
3239 # break other packages using the cache if that directory is
3240 # removed, or if the value is a relative name.
3241 MKDIR_P="$ac_install_sh -d"
3242 fi
3243 fi
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3245 $as_echo "$MKDIR_P" >&6; }
3246
3247 for ac_prog in gawk mawk nawk awk
3248 do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_AWK+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$AWK"; then
3257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_AWK="$ac_prog"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 AWK=$ac_cv_prog_AWK
3277 if test -n "$AWK"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3279 $as_echo "$AWK" >&6; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286 test -n "$AWK" && break
3287 done
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3290 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291 set x ${MAKE-make}
3292 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3293 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 cat >conftest.make <<\_ACEOF
3297 SHELL = /bin/sh
3298 all:
3299 @echo '@@@%%%=$(MAKE)=@@@%%%'
3300 _ACEOF
3301 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3302 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3303 *@@@%%%=?*=@@@%%%*)
3304 eval ac_cv_prog_make_${ac_make}_set=yes;;
3305 *)
3306 eval ac_cv_prog_make_${ac_make}_set=no;;
3307 esac
3308 rm -f conftest.make
3309 fi
3310 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312 $as_echo "yes" >&6; }
3313 SET_MAKE=
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 SET_MAKE="MAKE=${MAKE-make}"
3318 fi
3319
3320 rm -rf .tst 2>/dev/null
3321 mkdir .tst 2>/dev/null
3322 if test -d .tst; then
3323 am__leading_dot=.
3324 else
3325 am__leading_dot=_
3326 fi
3327 rmdir .tst 2>/dev/null
3328
3329 # Check whether --enable-silent-rules was given.
3330 if test "${enable_silent_rules+set}" = set; then :
3331 enableval=$enable_silent_rules;
3332 fi
3333
3334 case $enable_silent_rules in # (((
3335 yes) AM_DEFAULT_VERBOSITY=0;;
3336 no) AM_DEFAULT_VERBOSITY=1;;
3337 *) AM_DEFAULT_VERBOSITY=1;;
3338 esac
3339 am_make=${MAKE-make}
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3341 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3342 if ${am_cv_make_support_nested_variables+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if $as_echo 'TRUE=$(BAR$(V))
3346 BAR0=false
3347 BAR1=true
3348 V=1
3349 am__doit:
3350 @$(TRUE)
3351 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3352 am_cv_make_support_nested_variables=yes
3353 else
3354 am_cv_make_support_nested_variables=no
3355 fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3358 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3359 if test $am_cv_make_support_nested_variables = yes; then
3360 AM_V='$(V)'
3361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3362 else
3363 AM_V=$AM_DEFAULT_VERBOSITY
3364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3365 fi
3366 AM_BACKSLASH='\'
3367
3368 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3369 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3370 # is not polluted with repeated "-I."
3371 am__isrc=' -I$(srcdir)'
3372 # test to see if srcdir already configured
3373 if test -f $srcdir/config.status; then
3374 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3375 fi
3376 fi
3377
3378 # test whether we have cygpath
3379 if test -z "$CYGPATH_W"; then
3380 if (cygpath --version) >/dev/null 2>/dev/null; then
3381 CYGPATH_W='cygpath -w'
3382 else
3383 CYGPATH_W=echo
3384 fi
3385 fi
3386
3387
3388 # Define the identity of the package.
3389 PACKAGE='systemtap'
3390 VERSION='4.2'
3391
3392
3393 cat >>confdefs.h <<_ACEOF
3394 #define PACKAGE "$PACKAGE"
3395 _ACEOF
3396
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define VERSION "$VERSION"
3400 _ACEOF
3401
3402 # Some tools Automake needs.
3403
3404 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3405
3406
3407 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3408
3409
3410 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3411
3412
3413 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3414
3415
3416 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3417
3418 # For better backward compatibility. To be removed once Automake 1.9.x
3419 # dies out for good. For more background, see:
3420 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3421 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3422 mkdir_p='$(MKDIR_P)'
3423
3424 # We need awk for the "check" target (and possibly the TAP driver). The
3425 # system "awk" is bad on some platforms.
3426 # Always define AMTAR for backward compatibility. Yes, it's still used
3427 # in the wild :-( We should find a proper way to deprecate it ...
3428 AMTAR='$${TAR-tar}'
3429
3430
3431 # We'll loop over all known methods to create a tar archive until one works.
3432 _am_tools='gnutar pax cpio none'
3433
3434 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3435
3436
3437
3438
3439
3440
3441 # POSIX will say in a future version that running "rm -f" with no argument
3442 # is OK; and we want to be able to make that assumption in our Makefile
3443 # recipes. So use an aggressive probe to check that the usage we want is
3444 # actually supported "in the wild" to an acceptable degree.
3445 # See automake bug#10828.
3446 # To make any issue more visible, cause the running configure to be aborted
3447 # by default if the 'rm' program in use doesn't match our expectations; the
3448 # user can still override this though.
3449 if rm -f && rm -fr && rm -rf; then : OK; else
3450 cat >&2 <<'END'
3451 Oops!
3452
3453 Your 'rm' program seems unable to run without file operands specified
3454 on the command line, even when the '-f' option is present. This is contrary
3455 to the behaviour of most rm programs out there, and not conforming with
3456 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3457
3458 Please tell bug-automake@gnu.org about your system, including the value
3459 of your $PATH and any error possibly output before this message. This
3460 can help us improve future automake versions.
3461
3462 END
3463 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3464 echo 'Configuration will proceed anyway, since you have set the' >&2
3465 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3466 echo >&2
3467 else
3468 cat >&2 <<'END'
3469 Aborting the configuration process, to ensure you take notice of the issue.
3470
3471 You can download and install GNU coreutils to get an 'rm' implementation
3472 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3473
3474 If you want to complete the configuration process using your problematic
3475 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3476 to "yes", and re-run configure.
3477
3478 END
3479 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3480 fi
3481 fi
3482
3483
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3486 # Check whether --enable-maintainer-mode was given.
3487 if test "${enable_maintainer_mode+set}" = set; then :
3488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3489 else
3490 USE_MAINTAINER_MODE=no
3491 fi
3492
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3495 if test $USE_MAINTAINER_MODE = yes; then
3496 MAINTAINER_MODE_TRUE=
3497 MAINTAINER_MODE_FALSE='#'
3498 else
3499 MAINTAINER_MODE_TRUE='#'
3500 MAINTAINER_MODE_FALSE=
3501 fi
3502
3503 MAINT=$MAINTAINER_MODE_TRUE
3504
3505
3506
3507 # Check whether --enable-silent-rules was given.
3508 if test "${enable_silent_rules+set}" = set; then :
3509 enableval=$enable_silent_rules;
3510 fi
3511
3512 case $enable_silent_rules in # (((
3513 yes) AM_DEFAULT_VERBOSITY=0;;
3514 no) AM_DEFAULT_VERBOSITY=1;;
3515 *) AM_DEFAULT_VERBOSITY=0;;
3516 esac
3517 am_make=${MAKE-make}
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3520 if ${am_cv_make_support_nested_variables+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if $as_echo 'TRUE=$(BAR$(V))
3524 BAR0=false
3525 BAR1=true
3526 V=1
3527 am__doit:
3528 @$(TRUE)
3529 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3530 am_cv_make_support_nested_variables=yes
3531 else
3532 am_cv_make_support_nested_variables=no
3533 fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3536 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3537 if test $am_cv_make_support_nested_variables = yes; then
3538 AM_V='$(V)'
3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3540 else
3541 AM_V=$AM_DEFAULT_VERBOSITY
3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3543 fi
3544 AM_BACKSLASH='\'
3545
3546
3547 DEPDIR="${am__leading_dot}deps"
3548
3549 ac_config_commands="$ac_config_commands depfiles"
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3552 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3553 cat > confinc.mk << 'END'
3554 am__doit:
3555 @echo this is the am__doit target >confinc.out
3556 .PHONY: am__doit
3557 END
3558 am__include="#"
3559 am__quote=
3560 # BSD make does it like this.
3561 echo '.include "confinc.mk" # ignored' > confmf.BSD
3562 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3563 echo 'include confinc.mk # ignored' > confmf.GNU
3564 _am_result=no
3565 for s in GNU BSD; do
3566 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3567 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }
3571 case $?:`cat confinc.out 2>/dev/null` in #(
3572 '0:this is the am__doit target') :
3573 case $s in #(
3574 BSD) :
3575 am__include='.include' am__quote='"' ;; #(
3576 *) :
3577 am__include='include' am__quote='' ;;
3578 esac ;; #(
3579 *) :
3580 ;;
3581 esac
3582 if test "$am__include" != "#"; then
3583 _am_result="yes ($s style)"
3584 break
3585 fi
3586 done
3587 rm -f confinc.* confmf.*
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3589 $as_echo "${_am_result}" >&6; }
3590
3591 # Check whether --enable-dependency-tracking was given.
3592 if test "${enable_dependency_tracking+set}" = set; then :
3593 enableval=$enable_dependency_tracking;
3594 fi
3595
3596 if test "x$enable_dependency_tracking" != xno; then
3597 am_depcomp="$ac_aux_dir/depcomp"
3598 AMDEPBACKSLASH='\'
3599 am__nodep='_no'
3600 fi
3601 if test "x$enable_dependency_tracking" != xno; then
3602 AMDEP_TRUE=
3603 AMDEP_FALSE='#'
3604 else
3605 AMDEP_TRUE='#'
3606 AMDEP_FALSE=
3607 fi
3608
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3650 fi
3651
3652
3653 fi
3654 if test -z "$ac_cv_prog_CC"; then
3655 ac_ct_CC=$CC
3656 # Extract the first word of "gcc", so it can be a program name with args.
3657 set dummy gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_prog_ac_ct_CC="gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696 yes:)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701 CC=$ac_ct_CC
3702 fi
3703 else
3704 CC="$ac_cv_prog_CC"
3705 fi
3706
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}cc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3729 fi
3730 done
3731 done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 fi
3747 fi
3748 if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750 set dummy cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 ac_prog_rejected=no
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3769 continue
3770 fi
3771 ac_cv_prog_CC="cc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3782 shift
3783 if test $# != 0; then
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3787 shift
3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3789 fi
3790 fi
3791 fi
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in cl.exe
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829 done
3830 done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845 test -n "$CC" && break
3846 done
3847 fi
3848 if test -z "$CC"; then
3849 ac_ct_CC=$CC
3850 for ac_prog in cl.exe
3851 do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_CC="$ac_prog"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889 test -n "$ac_ct_CC" && break
3890 done
3891
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896 yes:)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3900 esac
3901 CC=$ac_ct_CC
3902 fi
3903 fi
3904
3905 fi
3906
3907
3908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "no acceptable C compiler found in \$PATH
3911 See \`config.log' for more details" "$LINENO" 5; }
3912
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926 ac_status=$?
3927 if test -s conftest.err; then
3928 sed '10a\
3929 ... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3932 fi
3933 rm -f conftest.er1 conftest.err
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 done
3937
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940
3941 int
3942 main ()
3943 {
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 ac_clean_files_save=$ac_clean_files
3950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3951 # Try to create an executable without -o first, disregard a.out.
3952 # It will help us diagnose broken compilers, and finding out an intuition
3953 # of exeext.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3955 $as_echo_n "checking whether the C compiler works... " >&6; }
3956 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958 # The possible output files:
3959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961 ac_rmfiles=
3962 for ac_file in $ac_files
3963 do
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968 done
3969 rm -f $ac_rmfiles
3970
3971 if { { ac_try="$ac_link_default"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_link_default") 2>&5
3979 ac_status=$?
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3985 # so that the user can short-circuit this test for compilers unknown to
3986 # Autoconf.
3987 for ac_file in $ac_files ''
3988 do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
3998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
4007 break;;
4008 * )
4009 break;;
4010 esac
4011 done
4012 test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
4014 else
4015 ac_file=''
4016 fi
4017 if test -z "$ac_file"; then :
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error 77 "C compiler cannot create executables
4026 See \`config.log' for more details" "$LINENO" 5; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 $as_echo "yes" >&6; }
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4032 $as_echo_n "checking for C compiler default output file name... " >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4034 $as_echo "$ac_file" >&6; }
4035 ac_exeext=$ac_cv_exeext
4036
4037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4038 ac_clean_files=$ac_clean_files_save
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4040 $as_echo_n "checking for suffix of executables... " >&6; }
4041 if { { ac_try="$ac_link"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_link") 2>&5
4049 ac_status=$?
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
4052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4054 # work properly (i.e., refer to `conftest.exe'), while it won't with
4055 # `rm'.
4056 for ac_file in conftest.exe conftest conftest.*; do
4057 test -f "$ac_file" || continue
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 break;;
4062 * ) break;;
4063 esac
4064 done
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4069 See \`config.log' for more details" "$LINENO" 5; }
4070 fi
4071 rm -f conftest conftest$ac_cv_exeext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4073 $as_echo "$ac_cv_exeext" >&6; }
4074
4075 rm -f conftest.$ac_ext
4076 EXEEXT=$ac_cv_exeext
4077 ac_exeext=$EXEEXT
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdio.h>
4081 int
4082 main ()
4083 {
4084 FILE *f = fopen ("conftest.out", "w");
4085 return ferror (f) || fclose (f) != 0;
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 ac_clean_files="$ac_clean_files conftest.out"
4092 # Check that the compiler produces executables we can run. If not, either
4093 # the compiler is broken, or we cross compile.
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4095 $as_echo_n "checking whether we are cross compiling... " >&6; }
4096 if test "$cross_compiling" != yes; then
4097 { { ac_try="$ac_link"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103 $as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_link") 2>&5
4105 ac_status=$?
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 if { ac_try='./conftest$ac_cv_exeext'
4109 { { case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114 $as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }; }; then
4119 cross_compiling=no
4120 else
4121 if test "$cross_compiling" = maybe; then
4122 cross_compiling=yes
4123 else
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error $? "cannot run C compiled programs.
4127 If you meant to cross compile, use \`--host'.
4128 See \`config.log' for more details" "$LINENO" 5; }
4129 fi
4130 fi
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4133 $as_echo "$cross_compiling" >&6; }
4134
4135 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4136 ac_clean_files=$ac_clean_files_save
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4138 $as_echo_n "checking for suffix of object files... " >&6; }
4139 if ${ac_cv_objext+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main ()
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.o conftest.obj
4154 if { { ac_try="$ac_compile"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compile") 2>&5
4162 ac_status=$?
4163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }; then :
4165 for ac_file in conftest.o conftest.obj conftest.*; do
4166 test -f "$ac_file" || continue;
4167 case $ac_file in
4168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4170 break;;
4171 esac
4172 done
4173 else
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "cannot compute suffix of object files: cannot compile
4180 See \`config.log' for more details" "$LINENO" 5; }
4181 fi
4182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4185 $as_echo "$ac_cv_objext" >&6; }
4186 OBJEXT=$ac_cv_objext
4187 ac_objext=$OBJEXT
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4190 if ${ac_cv_c_compiler_gnu+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 int
4197 main ()
4198 {
4199 #ifndef __GNUC__
4200 choke me
4201 #endif
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_compiler_gnu=yes
4209 else
4210 ac_compiler_gnu=no
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4214
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4218 if test $ac_compiler_gnu = yes; then
4219 GCC=yes
4220 else
4221 GCC=
4222 fi
4223 ac_test_CFLAGS=${CFLAGS+set}
4224 ac_save_CFLAGS=$CFLAGS
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4227 if ${ac_cv_prog_cc_g+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_save_c_werror_flag=$ac_c_werror_flag
4231 ac_c_werror_flag=yes
4232 ac_cv_prog_cc_g=no
4233 CFLAGS="-g"
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236
4237 int
4238 main ()
4239 {
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_cv_prog_cc_g=yes
4247 else
4248 CFLAGS=""
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251
4252 int
4253 main ()
4254 {
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261
4262 else
4263 ac_c_werror_flag=$ac_save_c_werror_flag
4264 CFLAGS="-g"
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267
4268 int
4269 main ()
4270 {
4271
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277 ac_cv_prog_cc_g=yes
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4287 $as_echo "$ac_cv_prog_cc_g" >&6; }
4288 if test "$ac_test_CFLAGS" = set; then
4289 CFLAGS=$ac_save_CFLAGS
4290 elif test $ac_cv_prog_cc_g = yes; then
4291 if test "$GCC" = yes; then
4292 CFLAGS="-g -O2"
4293 else
4294 CFLAGS="-g"
4295 fi
4296 else
4297 if test "$GCC" = yes; then
4298 CFLAGS="-O2"
4299 else
4300 CFLAGS=
4301 fi
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4305 if ${ac_cv_prog_cc_c89+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 ac_cv_prog_cc_c89=no
4309 ac_save_CC=$CC
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <stdarg.h>
4313 #include <stdio.h>
4314 struct stat;
4315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4316 struct buf { int x; };
4317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4318 static char *e (p, i)
4319 char **p;
4320 int i;
4321 {
4322 return p[i];
4323 }
4324 static char *f (char * (*g) (char **, int), char **p, ...)
4325 {
4326 char *s;
4327 va_list v;
4328 va_start (v,p);
4329 s = g (p, va_arg (v,int));
4330 va_end (v);
4331 return s;
4332 }
4333
4334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4335 function prototypes and stuff, but not '\xHH' hex character constants.
4336 These don't provoke an error unfortunately, instead are silently treated
4337 as 'x'. The following induces an error, until -std is added to get
4338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4339 array size at least. It's necessary to write '\x00'==0 to get something
4340 that's true only with -std. */
4341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4342
4343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4344 inside strings and character constants. */
4345 #define FOO(x) 'x'
4346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4347
4348 int test (int i, double x);
4349 struct s1 {int (*f) (int a);};
4350 struct s2 {int (*f) (double a);};
4351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4352 int argc;
4353 char **argv;
4354 int
4355 main ()
4356 {
4357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4364 do
4365 CC="$ac_save_CC $ac_arg"
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_prog_cc_c89=$ac_arg
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext
4370 test "x$ac_cv_prog_cc_c89" != "xno" && break
4371 done
4372 rm -f conftest.$ac_ext
4373 CC=$ac_save_CC
4374
4375 fi
4376 # AC_CACHE_VAL
4377 case "x$ac_cv_prog_cc_c89" in
4378 x)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4380 $as_echo "none needed" >&6; } ;;
4381 xno)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4383 $as_echo "unsupported" >&6; } ;;
4384 *)
4385 CC="$CC $ac_cv_prog_cc_c89"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4388 esac
4389 if test "x$ac_cv_prog_cc_c89" != xno; then :
4390
4391 fi
4392
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4405 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4406 if ${am_cv_prog_cc_c_o+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 int
4413 main ()
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 # Make sure it works both with $CC and with simple cc.
4421 # Following AC_PROG_CC_C_O, we do the test twice because some
4422 # compilers refuse to overwrite an existing .o file with -o,
4423 # though they will create one.
4424 am_cv_prog_cc_c_o=yes
4425 for am_i in 1 2; do
4426 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4427 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } \
4431 && test -f conftest2.$ac_objext; then
4432 : OK
4433 else
4434 am_cv_prog_cc_c_o=no
4435 break
4436 fi
4437 done
4438 rm -f core conftest*
4439 unset am_i
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4442 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4443 if test "$am_cv_prog_cc_c_o" != yes; then
4444 # Losing compiler, so override with the script.
4445 # FIXME: It is wrong to rewrite CC.
4446 # But if we don't then we get into trouble of one sort or another.
4447 # A longer-term fix would be to have automake use am__CC in this case,
4448 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4449 CC="$am_aux_dir/compile $CC"
4450 fi
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456
4457
4458 depcc="$CC" am_compiler_list=
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461 $as_echo_n "checking dependency style of $depcc... " >&6; }
4462 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
4471 rm -rf conftest.dir
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4484
4485 am_cv_CC_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488 fi
4489 am__universal=false
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4492 esac
4493
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4498 #
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4502 : > sub/conftest.c
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4506 # Solaris 10 /bin/sh.
4507 echo '/* dummy */' > sub/conftst$i.h
4508 done
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4510
4511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle '-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs.
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4517 case $depmode in
4518 gcc)
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4521 ;;
4522 nosideeffect)
4523 # After this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested.
4525 if test "x$enable_dependency_tracking" = xyes; then
4526 continue
4527 else
4528 break
4529 fi
4530 ;;
4531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4532 # This compiler won't grok '-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4536 am__minus_obj=
4537 ;;
4538 none) break ;;
4539 esac
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CC_dependencies_compiler_type=$depmode
4559 break
4560 fi
4561 fi
4562 done
4563
4564 cd ..
4565 rm -rf conftest.dir
4566 else
4567 am_cv_CC_dependencies_compiler_type=none
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574
4575 if
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCC_TRUE=
4579 am__fastdepCC_FALSE='#'
4580 else
4581 am__fastdepCC_TRUE='#'
4582 am__fastdepCC_FALSE=
4583 fi
4584
4585
4586
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4594 # On Suns, sometimes $CPP names a directory.
4595 if test -n "$CPP" && test -d "$CPP"; then
4596 CPP=
4597 fi
4598 if test -z "$CPP"; then
4599 if ${ac_cv_prog_CPP+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 # Double quotes because CPP needs to be expanded
4603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4604 do
4605 ac_preproc_ok=false
4606 for ac_c_preproc_warn_flag in '' yes
4607 do
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621 Syntax error
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624
4625 else
4626 # Broken: fails on valid input.
4627 continue
4628 fi
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4636 _ACEOF
4637 if ac_fn_c_try_cpp "$LINENO"; then :
4638 # Broken: success on invalid input.
4639 continue
4640 else
4641 # Passes both tests.
4642 ac_preproc_ok=:
4643 break
4644 fi
4645 rm -f conftest.err conftest.i conftest.$ac_ext
4646
4647 done
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.i conftest.err conftest.$ac_ext
4650 if $ac_preproc_ok; then :
4651 break
4652 fi
4653
4654 done
4655 ac_cv_prog_CPP=$CPP
4656
4657 fi
4658 CPP=$ac_cv_prog_CPP
4659 else
4660 ac_cv_prog_CPP=$CPP
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4663 $as_echo "$CPP" >&6; }
4664 ac_preproc_ok=false
4665 for ac_c_preproc_warn_flag in '' yes
4666 do
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #ifdef __STDC__
4676 # include <limits.h>
4677 #else
4678 # include <assert.h>
4679 #endif
4680 Syntax error
4681 _ACEOF
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683
4684 else
4685 # Broken: fails on valid input.
4686 continue
4687 fi
4688 rm -f conftest.err conftest.i conftest.$ac_ext
4689
4690 # OK, works on sane cases. Now check whether nonexistent headers
4691 # can be detected and how.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <ac_nonexistent.h>
4695 _ACEOF
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697 # Broken: success on invalid input.
4698 continue
4699 else
4700 # Passes both tests.
4701 ac_preproc_ok=:
4702 break
4703 fi
4704 rm -f conftest.err conftest.i conftest.$ac_ext
4705
4706 done
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.i conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then :
4710
4711 else
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4715 See \`config.log' for more details" "$LINENO" 5; }
4716 fi
4717
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4727 if ${ac_cv_path_GREP+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -z "$GREP"; then
4731 ac_path_GREP_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in grep ggrep; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4741 as_fn_executable_p "$ac_path_GREP" || continue
4742 # Check for GNU ac_path_GREP and select it if it is found.
4743 # Check for GNU $ac_path_GREP
4744 case `"$ac_path_GREP" --version 2>&1` in
4745 *GNU*)
4746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4747 *)
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4751 do
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo 'GREP' >> "conftest.nl"
4756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_GREP="$ac_path_GREP"
4762 ac_path_GREP_max=$ac_count
4763 fi
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4769
4770 $ac_path_GREP_found && break 3
4771 done
4772 done
4773 done
4774 IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_GREP"; then
4776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777 fi
4778 else
4779 ac_cv_path_GREP=$GREP
4780 fi
4781
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4784 $as_echo "$ac_cv_path_GREP" >&6; }
4785 GREP="$ac_cv_path_GREP"
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4789 $as_echo_n "checking for egrep... " >&6; }
4790 if ${ac_cv_path_EGREP+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4794 then ac_cv_path_EGREP="$GREP -E"
4795 else
4796 if test -z "$EGREP"; then
4797 ac_path_EGREP_found=false
4798 # Loop through the user's path and test for each of PROGNAME-LIST
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_prog in egrep; do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4807 as_fn_executable_p "$ac_path_EGREP" || continue
4808 # Check for GNU ac_path_EGREP and select it if it is found.
4809 # Check for GNU $ac_path_EGREP
4810 case `"$ac_path_EGREP" --version 2>&1` in
4811 *GNU*)
4812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4813 *)
4814 ac_count=0
4815 $as_echo_n 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 $as_echo 'EGREP' >> "conftest.nl"
4822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_EGREP="$ac_path_EGREP"
4828 ac_path_EGREP_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836 $ac_path_EGREP_found && break 3
4837 done
4838 done
4839 done
4840 IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_EGREP"; then
4842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843 fi
4844 else
4845 ac_cv_path_EGREP=$EGREP
4846 fi
4847
4848 fi
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4851 $as_echo "$ac_cv_path_EGREP" >&6; }
4852 EGREP="$ac_cv_path_EGREP"
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4856 $as_echo_n "checking for ANSI C header files... " >&6; }
4857 if ${ac_cv_header_stdc+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 #include <stdlib.h>
4863 #include <stdarg.h>
4864 #include <string.h>
4865 #include <float.h>
4866
4867 int
4868 main ()
4869 {
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_header_stdc=yes
4877 else
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881
4882 if test $ac_cv_header_stdc = yes; then
4883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <string.h>
4887
4888 _ACEOF
4889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4890 $EGREP "memchr" >/dev/null 2>&1; then :
4891
4892 else
4893 ac_cv_header_stdc=no
4894 fi
4895 rm -f conftest*
4896
4897 fi
4898
4899 if test $ac_cv_header_stdc = yes; then
4900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <stdlib.h>
4904
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "free" >/dev/null 2>&1; then :
4908
4909 else
4910 ac_cv_header_stdc=no
4911 fi
4912 rm -f conftest*
4913
4914 fi
4915
4916 if test $ac_cv_header_stdc = yes; then
4917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4918 if test "$cross_compiling" = yes; then :
4919 :
4920 else
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <ctype.h>
4924 #include <stdlib.h>
4925 #if ((' ' & 0x0FF) == 0x020)
4926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4928 #else
4929 # define ISLOWER(c) \
4930 (('a' <= (c) && (c) <= 'i') \
4931 || ('j' <= (c) && (c) <= 'r') \
4932 || ('s' <= (c) && (c) <= 'z'))
4933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4934 #endif
4935
4936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4937 int
4938 main ()
4939 {
4940 int i;
4941 for (i = 0; i < 256; i++)
4942 if (XOR (islower (i), ISLOWER (i))
4943 || toupper (i) != TOUPPER (i))
4944 return 2;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_run "$LINENO"; then :
4949
4950 else
4951 ac_cv_header_stdc=no
4952 fi
4953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954 conftest.$ac_objext conftest.beam conftest.$ac_ext
4955 fi
4956
4957 fi
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4960 $as_echo "$ac_cv_header_stdc" >&6; }
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4964
4965 fi
4966
4967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4969 inttypes.h stdint.h unistd.h
4970 do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4973 "
4974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4975 cat >>confdefs.h <<_ACEOF
4976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 _ACEOF
4978
4979 fi
4980
4981 done
4982
4983
4984
4985 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4986 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4987 MINIX=yes
4988 else
4989 MINIX=
4990 fi
4991
4992
4993 if test "$MINIX" = yes; then
4994
4995 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4996
4997
4998 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4999
5000
5001 $as_echo "#define _MINIX 1" >>confdefs.h
5002
5003 fi
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5007 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5008 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013
5014 # define __EXTENSIONS__ 1
5015 $ac_includes_default
5016 int
5017 main ()
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_cv_safe_to_define___extensions__=yes
5026 else
5027 ac_cv_safe_to_define___extensions__=no
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5032 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5033 test $ac_cv_safe_to_define___extensions__ = yes &&
5034 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5035
5036 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5037
5038 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5039
5040 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5041
5042 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5043
5044
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5048 $as_echo_n "checking whether ln -s works... " >&6; }
5049 LN_S=$as_ln_s
5050 if test "$LN_S" = "ln -s"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052 $as_echo "yes" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5055 $as_echo "no, using $LN_S" >&6; }
5056 fi
5057
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_CC+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$CC"; then
5072 ac_cv_prog_CC="$CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 CC=$ac_cv_prog_CC
5092 if test -n "$CC"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5094 $as_echo "$CC" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101 fi
5102 if test -z "$ac_cv_prog_CC"; then
5103 ac_ct_CC=$CC
5104 # Extract the first word of "gcc", so it can be a program name with args.
5105 set dummy gcc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_ac_ct_CC="gcc"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5134 $as_echo "$ac_ct_CC" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140 if test "x$ac_ct_CC" = x; then
5141 CC=""
5142 else
5143 case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149 CC=$ac_ct_CC
5150 fi
5151 else
5152 CC="$ac_cv_prog_CC"
5153 fi
5154
5155 if test -z "$CC"; then
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}cc; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_CC+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$CC"; then
5165 ac_cv_prog_CC="$CC" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_CC="${ac_tool_prefix}cc"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 CC=$ac_cv_prog_CC
5185 if test -n "$CC"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5187 $as_echo "$CC" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 fi
5195 fi
5196 if test -z "$CC"; then
5197 # Extract the first word of "cc", so it can be a program name with args.
5198 set dummy cc; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_CC+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$CC"; then
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5206 else
5207 ac_prog_rejected=no
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5216 ac_prog_rejected=yes
5217 continue
5218 fi
5219 ac_cv_prog_CC="cc"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 if test $ac_prog_rejected = yes; then
5228 # We found a bogon in the path, so make sure we never use it.
5229 set dummy $ac_cv_prog_CC
5230 shift
5231 if test $# != 0; then
5232 # We chose a different compiler from the bogus one.
5233 # However, it has the same basename, so the bogon will be chosen
5234 # first if we set CC to just the basename; use the full file name.
5235 shift
5236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5237 fi
5238 fi
5239 fi
5240 fi
5241 CC=$ac_cv_prog_CC
5242 if test -n "$CC"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5244 $as_echo "$CC" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$CC"; then
5253 if test -n "$ac_tool_prefix"; then
5254 for ac_prog in cl.exe
5255 do
5256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_CC+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 CC=$ac_cv_prog_CC
5284 if test -n "$CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292
5293 test -n "$CC" && break
5294 done
5295 fi
5296 if test -z "$CC"; then
5297 ac_ct_CC=$CC
5298 for ac_prog in cl.exe
5299 do
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_CC="$ac_prog"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328 if test -n "$ac_ct_CC"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5330 $as_echo "$ac_ct_CC" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336
5337 test -n "$ac_ct_CC" && break
5338 done
5339
5340 if test "x$ac_ct_CC" = x; then
5341 CC=""
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349 CC=$ac_ct_CC
5350 fi
5351 fi
5352
5353 fi
5354
5355
5356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358 as_fn_error $? "no acceptable C compiler found in \$PATH
5359 See \`config.log' for more details" "$LINENO" 5; }
5360
5361 # Provide some information about the compiler.
5362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5363 set X $ac_compile
5364 ac_compiler=$2
5365 for ac_option in --version -v -V -qversion; do
5366 { { ac_try="$ac_compiler $ac_option >&5"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372 $as_echo "$ac_try_echo"; } >&5
5373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5374 ac_status=$?
5375 if test -s conftest.err; then
5376 sed '10a\
5377 ... rest of stderr output deleted ...
5378 10q' conftest.err >conftest.er1
5379 cat conftest.er1 >&5
5380 fi
5381 rm -f conftest.er1 conftest.err
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }
5384 done
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5388 if ${ac_cv_c_compiler_gnu+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393
5394 int
5395 main ()
5396 {
5397 #ifndef __GNUC__
5398 choke me
5399 #endif
5400
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_compiler_gnu=yes
5407 else
5408 ac_compiler_gnu=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5416 if test $ac_compiler_gnu = yes; then
5417 GCC=yes
5418 else
5419 GCC=
5420 fi
5421 ac_test_CFLAGS=${CFLAGS+set}
5422 ac_save_CFLAGS=$CFLAGS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5425 if ${ac_cv_prog_cc_g+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 ac_save_c_werror_flag=$ac_c_werror_flag
5429 ac_c_werror_flag=yes
5430 ac_cv_prog_cc_g=no
5431 CFLAGS="-g"
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434
5435 int
5436 main ()
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_prog_cc_g=yes
5445 else
5446 CFLAGS=""
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449
5450 int
5451 main ()
5452 {
5453
5454 ;
5455 return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459
5460 else
5461 ac_c_werror_flag=$ac_save_c_werror_flag
5462 CFLAGS="-g"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465
5466 int
5467 main ()
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_prog_cc_g=yes
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_c_werror_flag=$ac_save_c_werror_flag
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5485 $as_echo "$ac_cv_prog_cc_g" >&6; }
5486 if test "$ac_test_CFLAGS" = set; then
5487 CFLAGS=$ac_save_CFLAGS
5488 elif test $ac_cv_prog_cc_g = yes; then
5489 if test "$GCC" = yes; then
5490 CFLAGS="-g -O2"
5491 else
5492 CFLAGS="-g"
5493 fi
5494 else
5495 if test "$GCC" = yes; then
5496 CFLAGS="-O2"
5497 else
5498 CFLAGS=
5499 fi
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5503 if ${ac_cv_prog_cc_c89+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 ac_cv_prog_cc_c89=no
5507 ac_save_CC=$CC
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <stdarg.h>
5511 #include <stdio.h>
5512 struct stat;
5513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5514 struct buf { int x; };
5515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5516 static char *e (p, i)
5517 char **p;
5518 int i;
5519 {
5520 return p[i];
5521 }
5522 static char *f (char * (*g) (char **, int), char **p, ...)
5523 {
5524 char *s;
5525 va_list v;
5526 va_start (v,p);
5527 s = g (p, va_arg (v,int));
5528 va_end (v);
5529 return s;
5530 }
5531
5532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5533 function prototypes and stuff, but not '\xHH' hex character constants.
5534 These don't provoke an error unfortunately, instead are silently treated
5535 as 'x'. The following induces an error, until -std is added to get
5536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5537 array size at least. It's necessary to write '\x00'==0 to get something
5538 that's true only with -std. */
5539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5540
5541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5542 inside strings and character constants. */
5543 #define FOO(x) 'x'
5544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5545
5546 int test (int i, double x);
5547 struct s1 {int (*f) (int a);};
5548 struct s2 {int (*f) (double a);};
5549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5550 int argc;
5551 char **argv;
5552 int
5553 main ()
5554 {
5555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5562 do
5563 CC="$ac_save_CC $ac_arg"
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_prog_cc_c89=$ac_arg
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5569 done
5570 rm -f conftest.$ac_ext
5571 CC=$ac_save_CC
5572
5573 fi
5574 # AC_CACHE_VAL
5575 case "x$ac_cv_prog_cc_c89" in
5576 x)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5578 $as_echo "none needed" >&6; } ;;
5579 xno)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581 $as_echo "unsupported" >&6; } ;;
5582 *)
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5586 esac
5587 if test "x$ac_cv_prog_cc_c89" != xno; then :
5588
5589 fi
5590
5591 ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597 ac_ext=c
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5603 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5604 if ${am_cv_prog_cc_c_o+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 # Make sure it works both with $CC and with simple cc.
5619 # Following AC_PROG_CC_C_O, we do the test twice because some
5620 # compilers refuse to overwrite an existing .o file with -o,
5621 # though they will create one.
5622 am_cv_prog_cc_c_o=yes
5623 for am_i in 1 2; do
5624 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5625 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } \
5629 && test -f conftest2.$ac_objext; then
5630 : OK
5631 else
5632 am_cv_prog_cc_c_o=no
5633 break
5634 fi
5635 done
5636 rm -f core conftest*
5637 unset am_i
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5640 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5641 if test "$am_cv_prog_cc_c_o" != yes; then
5642 # Losing compiler, so override with the script.
5643 # FIXME: It is wrong to rewrite CC.
5644 # But if we don't then we get into trouble of one sort or another.
5645 # A longer-term fix would be to have automake use am__CC in this case,
5646 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5647 CC="$am_aux_dir/compile $CC"
5648 fi
5649 ac_ext=c
5650 ac_cpp='$CPP $CPPFLAGS'
5651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656 depcc="$CC" am_compiler_list=
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5659 $as_echo_n "checking dependency style of $depcc... " >&6; }
5660 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5664 # We make a subdir and do the tests there. Otherwise we can end up
5665 # making bogus files that we don't know about and never remove. For
5666 # instance it was reported that on HP-UX the gcc test will end up
5667 # making a dummy file named 'D' -- because '-MD' means "put the output
5668 # in D".
5669 rm -rf conftest.dir
5670 mkdir conftest.dir
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5674 cd conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5680 # directory.
5681 mkdir sub
5682
5683 am_cv_CC_dependencies_compiler_type=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686 fi
5687 am__universal=false
5688 case " $depcc " in #(
5689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5690 esac
5691
5692 for depmode in $am_compiler_list; do
5693 # Setup a source with many dependencies, because some compilers
5694 # like to wrap large dependency lists on column 80 (with \), and
5695 # we should not choose a depcomp mode which is confused by this.
5696 #
5697 # We need to recreate these files for each test, as the compiler may
5698 # overwrite some of them when testing with obscure command lines.
5699 # This happens at least with the AIX C compiler.
5700 : > sub/conftest.c
5701 for i in 1 2 3 4 5 6; do
5702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5703 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5704 # Solaris 10 /bin/sh.
5705 echo '/* dummy */' > sub/conftst$i.h
5706 done
5707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5708
5709 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5710 # mode. It turns out that the SunPro C++ compiler does not properly
5711 # handle '-M -o', and we need to detect this. Also, some Intel
5712 # versions had trouble with output in subdirs.
5713 am__obj=sub/conftest.${OBJEXT-o}
5714 am__minus_obj="-o $am__obj"
5715 case $depmode in
5716 gcc)
5717 # This depmode causes a compiler race in universal mode.
5718 test "$am__universal" = false || continue
5719 ;;
5720 nosideeffect)
5721 # After this tag, mechanisms are not by side-effect, so they'll
5722 # only be used when explicitly requested.
5723 if test "x$enable_dependency_tracking" = xyes; then
5724 continue
5725 else
5726 break
5727 fi
5728 ;;
5729 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5730 # This compiler won't grok '-c -o', but also, the minuso test has
5731 # not run yet. These depmodes are late enough in the game, and
5732 # so weak that their functioning should not be impacted.
5733 am__obj=conftest.${OBJEXT-o}
5734 am__minus_obj=
5735 ;;
5736 none) break ;;
5737 esac
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=$am__obj \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5747 # icc doesn't choke on unknown options, it will just issue warnings
5748 # or remarks (even with -Werror). So we grep stderr for any message
5749 # that says an option was ignored or not supported.
5750 # When given -MP, icc 7.0 and 7.1 complain thusly:
5751 # icc: Command line warning: ignoring option '-M'; no argument required
5752 # The diagnosis changed in icc 8.0:
5753 # icc: Command line remark: option '-MP' not supported
5754 if (grep 'ignoring option' conftest.err ||
5755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5756 am_cv_CC_dependencies_compiler_type=$depmode
5757 break
5758 fi
5759 fi
5760 done
5761
5762 cd ..
5763 rm -rf conftest.dir
5764 else
5765 am_cv_CC_dependencies_compiler_type=none
5766 fi
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5770 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5771 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5772
5773 if
5774 test "x$enable_dependency_tracking" != xno \
5775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5776 am__fastdepCC_TRUE=
5777 am__fastdepCC_FALSE='#'
5778 else
5779 am__fastdepCC_TRUE='#'
5780 am__fastdepCC_FALSE=
5781 fi
5782
5783
5784 ac_ext=cpp
5785 ac_cpp='$CXXCPP $CPPFLAGS'
5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789 if test -z "$CXX"; then
5790 if test -n "$CCC"; then
5791 CXX=$CCC
5792 else
5793 if test -n "$ac_tool_prefix"; then
5794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5795 do
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_CXX+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$CXX"; then
5804 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 CXX=$ac_cv_prog_CXX
5824 if test -n "$CXX"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5826 $as_echo "$CXX" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 test -n "$CXX" && break
5834 done
5835 fi
5836 if test -z "$CXX"; then
5837 ac_ct_CXX=$CXX
5838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5839 do
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$ac_ct_CXX"; then
5848 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_CXX="$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5868 if test -n "$ac_ct_CXX"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5870 $as_echo "$ac_ct_CXX" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876
5877 test -n "$ac_ct_CXX" && break
5878 done
5879
5880 if test "x$ac_ct_CXX" = x; then
5881 CXX="g++"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889 CXX=$ac_ct_CXX
5890 fi
5891 fi
5892
5893 fi
5894 fi
5895 # Provide some information about the compiler.
5896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5897 set X $ac_compile
5898 ac_compiler=$2
5899 for ac_option in --version -v -V -qversion; do
5900 { { ac_try="$ac_compiler $ac_option >&5"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5906 $as_echo "$ac_try_echo"; } >&5
5907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5908 ac_status=$?
5909 if test -s conftest.err; then
5910 sed '10a\
5911 ... rest of stderr output deleted ...
5912 10q' conftest.err >conftest.er1
5913 cat conftest.er1 >&5
5914 fi
5915 rm -f conftest.er1 conftest.err
5916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5917 test $ac_status = 0; }
5918 done
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5921 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5922 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927
5928 int
5929 main ()
5930 {
5931 #ifndef __GNUC__
5932 choke me
5933 #endif
5934
5935 ;
5936 return 0;
5937 }
5938 _ACEOF
5939 if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_compiler_gnu=yes
5941 else
5942 ac_compiler_gnu=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5949 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5950 if test $ac_compiler_gnu = yes; then
5951 GXX=yes
5952 else
5953 GXX=
5954 fi
5955 ac_test_CXXFLAGS=${CXXFLAGS+set}
5956 ac_save_CXXFLAGS=$CXXFLAGS
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5958 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5959 if ${ac_cv_prog_cxx_g+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5963 ac_cxx_werror_flag=yes
5964 ac_cv_prog_cxx_g=no
5965 CXXFLAGS="-g"
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968
5969 int
5970 main ()
5971 {
5972
5973 ;
5974 return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_cxx_try_compile "$LINENO"; then :
5978 ac_cv_prog_cxx_g=yes
5979 else
5980 CXXFLAGS=""
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983
5984 int
5985 main ()
5986 {
5987
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 if ac_fn_cxx_try_compile "$LINENO"; then :
5993
5994 else
5995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5996 CXXFLAGS="-g"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999
6000 int
6001 main ()
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_cxx_try_compile "$LINENO"; then :
6009 ac_cv_prog_cxx_g=yes
6010 fi
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6019 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6020 if test "$ac_test_CXXFLAGS" = set; then
6021 CXXFLAGS=$ac_save_CXXFLAGS
6022 elif test $ac_cv_prog_cxx_g = yes; then
6023 if test "$GXX" = yes; then
6024 CXXFLAGS="-g -O2"
6025 else
6026 CXXFLAGS="-g"
6027 fi
6028 else
6029 if test "$GXX" = yes; then
6030 CXXFLAGS="-O2"
6031 else
6032 CXXFLAGS=
6033 fi
6034 fi
6035 ac_ext=c
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040
6041 depcc="$CXX" am_compiler_list=
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6044 $as_echo_n "checking dependency style of $depcc... " >&6; }
6045 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6049 # We make a subdir and do the tests there. Otherwise we can end up
6050 # making bogus files that we don't know about and never remove. For
6051 # instance it was reported that on HP-UX the gcc test will end up
6052 # making a dummy file named 'D' -- because '-MD' means "put the output
6053 # in D".
6054 rm -rf conftest.dir
6055 mkdir conftest.dir
6056 # Copy depcomp to subdir because otherwise we won't find it if we're
6057 # using a relative directory.
6058 cp "$am_depcomp" conftest.dir
6059 cd conftest.dir
6060 # We will build objects and dependencies in a subdirectory because
6061 # it helps to detect inapplicable dependency modes. For instance
6062 # both Tru64's cc and ICC support -MD to output dependencies as a
6063 # side effect of compilation, but ICC will put the dependencies in
6064 # the current directory while Tru64 will put them in the object
6065 # directory.
6066 mkdir sub
6067
6068 am_cv_CXX_dependencies_compiler_type=none
6069 if test "$am_compiler_list" = ""; then
6070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6071 fi
6072 am__universal=false
6073 case " $depcc " in #(
6074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6075 esac
6076
6077 for depmode in $am_compiler_list; do
6078 # Setup a source with many dependencies, because some compilers
6079 # like to wrap large dependency lists on column 80 (with \), and
6080 # we should not choose a depcomp mode which is confused by this.
6081 #
6082 # We need to recreate these files for each test, as the compiler may
6083 # overwrite some of them when testing with obscure command lines.
6084 # This happens at least with the AIX C compiler.
6085 : > sub/conftest.c
6086 for i in 1 2 3 4 5 6; do
6087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6088 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6089 # Solaris 10 /bin/sh.
6090 echo '/* dummy */' > sub/conftst$i.h
6091 done
6092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6093
6094 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6095 # mode. It turns out that the SunPro C++ compiler does not properly
6096 # handle '-M -o', and we need to detect this. Also, some Intel
6097 # versions had trouble with output in subdirs.
6098 am__obj=sub/conftest.${OBJEXT-o}
6099 am__minus_obj="-o $am__obj"
6100 case $depmode in
6101 gcc)
6102 # This depmode causes a compiler race in universal mode.
6103 test "$am__universal" = false || continue
6104 ;;
6105 nosideeffect)
6106 # After this tag, mechanisms are not by side-effect, so they'll
6107 # only be used when explicitly requested.
6108 if test "x$enable_dependency_tracking" = xyes; then
6109 continue
6110 else
6111 break
6112 fi
6113 ;;
6114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6115 # This compiler won't grok '-c -o', but also, the minuso test has
6116 # not run yet. These depmodes are late enough in the game, and
6117 # so weak that their functioning should not be impacted.
6118 am__obj=conftest.${OBJEXT-o}
6119 am__minus_obj=
6120 ;;
6121 none) break ;;
6122 esac
6123 if depmode=$depmode \
6124 source=sub/conftest.c object=$am__obj \
6125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6127 >/dev/null 2>conftest.err &&
6128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6132 # icc doesn't choke on unknown options, it will just issue warnings
6133 # or remarks (even with -Werror). So we grep stderr for any message
6134 # that says an option was ignored or not supported.
6135 # When given -MP, icc 7.0 and 7.1 complain thusly:
6136 # icc: Command line warning: ignoring option '-M'; no argument required
6137 # The diagnosis changed in icc 8.0:
6138 # icc: Command line remark: option '-MP' not supported
6139 if (grep 'ignoring option' conftest.err ||
6140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6141 am_cv_CXX_dependencies_compiler_type=$depmode
6142 break
6143 fi
6144 fi
6145 done
6146
6147 cd ..
6148 rm -rf conftest.dir
6149 else
6150 am_cv_CXX_dependencies_compiler_type=none
6151 fi
6152
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6155 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6156 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6157
6158 if
6159 test "x$enable_dependency_tracking" != xno \
6160 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6161 am__fastdepCXX_TRUE=
6162 am__fastdepCXX_FALSE='#'
6163 else
6164 am__fastdepCXX_TRUE='#'
6165 am__fastdepCXX_FALSE=
6166 fi
6167
6168
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6175 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6176 # On Suns, sometimes $CPP names a directory.
6177 if test -n "$CPP" && test -d "$CPP"; then
6178 CPP=
6179 fi
6180 if test -z "$CPP"; then
6181 if ${ac_cv_prog_CPP+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 # Double quotes because CPP needs to be expanded
6185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6186 do
6187 ac_preproc_ok=false
6188 for ac_c_preproc_warn_flag in '' yes
6189 do
6190 # Use a header file that comes with gcc, so configuring glibc
6191 # with a fresh cross-compiler works.
6192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6193 # <limits.h> exists even on freestanding compilers.
6194 # On the NeXT, cc -E runs the code through the compiler's parser,
6195 # not just through cpp. "Syntax error" is here to catch this case.
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #ifdef __STDC__
6199 # include <limits.h>
6200 #else
6201 # include <assert.h>
6202 #endif
6203 Syntax error
6204 _ACEOF
6205 if ac_fn_c_try_cpp "$LINENO"; then :
6206
6207 else
6208 # Broken: fails on valid input.
6209 continue
6210 fi
6211 rm -f conftest.err conftest.i conftest.$ac_ext
6212
6213 # OK, works on sane cases. Now check whether nonexistent headers
6214 # can be detected and how.
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <ac_nonexistent.h>
6218 _ACEOF
6219 if ac_fn_c_try_cpp "$LINENO"; then :
6220 # Broken: success on invalid input.
6221 continue
6222 else
6223 # Passes both tests.
6224 ac_preproc_ok=:
6225 break
6226 fi
6227 rm -f conftest.err conftest.i conftest.$ac_ext
6228
6229 done
6230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6231 rm -f conftest.i conftest.err conftest.$ac_ext
6232 if $ac_preproc_ok; then :
6233 break
6234 fi
6235
6236 done
6237 ac_cv_prog_CPP=$CPP
6238
6239 fi
6240 CPP=$ac_cv_prog_CPP
6241 else
6242 ac_cv_prog_CPP=$CPP
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6245 $as_echo "$CPP" >&6; }
6246 ac_preproc_ok=false
6247 for ac_c_preproc_warn_flag in '' yes
6248 do
6249 # Use a header file that comes with gcc, so configuring glibc
6250 # with a fresh cross-compiler works.
6251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6252 # <limits.h> exists even on freestanding compilers.
6253 # On the NeXT, cc -E runs the code through the compiler's parser,
6254 # not just through cpp. "Syntax error" is here to catch this case.
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #ifdef __STDC__
6258 # include <limits.h>
6259 #else
6260 # include <assert.h>
6261 #endif
6262 Syntax error
6263 _ACEOF
6264 if ac_fn_c_try_cpp "$LINENO"; then :
6265
6266 else
6267 # Broken: fails on valid input.
6268 continue
6269 fi
6270 rm -f conftest.err conftest.i conftest.$ac_ext
6271
6272 # OK, works on sane cases. Now check whether nonexistent headers
6273 # can be detected and how.
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if ac_fn_c_try_cpp "$LINENO"; then :
6279 # Broken: success on invalid input.
6280 continue
6281 else
6282 # Passes both tests.
6283 ac_preproc_ok=:
6284 break
6285 fi
6286 rm -f conftest.err conftest.i conftest.$ac_ext
6287
6288 done
6289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6290 rm -f conftest.i conftest.err conftest.$ac_ext
6291 if $ac_preproc_ok; then :
6292
6293 else
6294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6296 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6297 See \`config.log' for more details" "$LINENO" 5; }
6298 fi
6299
6300 ac_ext=c
6301 ac_cpp='$CPP $CPPFLAGS'
6302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305
6306
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_RANLIB+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$RANLIB"; then
6316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 RANLIB=$ac_cv_prog_RANLIB
6336 if test -n "$RANLIB"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6338 $as_echo "$RANLIB" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344
6345 fi
6346 if test -z "$ac_cv_prog_RANLIB"; then
6347 ac_ct_RANLIB=$RANLIB
6348 # Extract the first word of "ranlib", so it can be a program name with args.
6349 set dummy ranlib; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 if test -n "$ac_ct_RANLIB"; then
6356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_ac_ct_RANLIB="ranlib"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6368 fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6376 if test -n "$ac_ct_RANLIB"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6378 $as_echo "$ac_ct_RANLIB" >&6; }
6379 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384 if test "x$ac_ct_RANLIB" = x; then
6385 RANLIB=":"
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 RANLIB=$ac_ct_RANLIB
6394 fi
6395 else
6396 RANLIB="$ac_cv_prog_RANLIB"
6397 fi
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6403 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6404 set x ${MAKE-make}
6405 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6406 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat >conftest.make <<\_ACEOF
6410 SHELL = /bin/sh
6411 all:
6412 @echo '@@@%%%=$(MAKE)=@@@%%%'
6413 _ACEOF
6414 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6416 *@@@%%%=?*=@@@%%%*)
6417 eval ac_cv_prog_make_${ac_make}_set=yes;;
6418 *)
6419 eval ac_cv_prog_make_${ac_make}_set=no;;
6420 esac
6421 rm -f conftest.make
6422 fi
6423 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425 $as_echo "yes" >&6; }
6426 SET_MAKE=
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 SET_MAKE="MAKE=${MAKE-make}"
6431 fi
6432
6433
6434
6435 # Check whether --enable-largefile was given.
6436 if test "${enable_largefile+set}" = set; then :
6437 enableval=$enable_largefile;
6438 fi
6439
6440 if test "$enable_largefile" != no; then
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6443 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6444 if ${ac_cv_sys_largefile_CC+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 ac_cv_sys_largefile_CC=no
6448 if test "$GCC" != yes; then
6449 ac_save_CC=$CC
6450 while :; do
6451 # IRIX 6.2 and later do not support large files by default,
6452 # so use the C compiler's -n32 option if that helps.
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 /* Check that off_t can represent 2**63 - 1 correctly.
6457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6458 since some C++ compilers masquerading as C compilers
6459 incorrectly reject 9223372036854775807. */
6460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6462 && LARGE_OFF_T % 2147483647 == 1)
6463 ? 1 : -1];
6464 int
6465 main ()
6466 {
6467
6468 ;
6469 return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 break
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext
6476 CC="$CC -n32"
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_sys_largefile_CC=' -n32'; break
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext
6481 break
6482 done
6483 CC=$ac_save_CC
6484 rm -f conftest.$ac_ext
6485 fi
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6488 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6489 if test "$ac_cv_sys_largefile_CC" != no; then
6490 CC=$CC$ac_cv_sys_largefile_CC
6491 fi
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6494 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6495 if ${ac_cv_sys_file_offset_bits+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 while :; do
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <sys/types.h>
6502 /* Check that off_t can represent 2**63 - 1 correctly.
6503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6504 since some C++ compilers masquerading as C compilers
6505 incorrectly reject 9223372036854775807. */
6506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6508 && LARGE_OFF_T % 2147483647 == 1)
6509 ? 1 : -1];
6510 int
6511 main ()
6512 {
6513
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_sys_file_offset_bits=no; break
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #define _FILE_OFFSET_BITS 64
6525 #include <sys/types.h>
6526 /* Check that off_t can represent 2**63 - 1 correctly.
6527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6528 since some C++ compilers masquerading as C compilers
6529 incorrectly reject 9223372036854775807. */
6530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6532 && LARGE_OFF_T % 2147483647 == 1)
6533 ? 1 : -1];
6534 int
6535 main ()
6536 {
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"; then :
6543 ac_cv_sys_file_offset_bits=64; break
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 ac_cv_sys_file_offset_bits=unknown
6547 break
6548 done
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6551 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6552 case $ac_cv_sys_file_offset_bits in #(
6553 no | unknown) ;;
6554 *)
6555 cat >>confdefs.h <<_ACEOF
6556 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6557 _ACEOF
6558 ;;
6559 esac
6560 rm -rf conftest*
6561 if test $ac_cv_sys_file_offset_bits = unknown; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6563 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6564 if ${ac_cv_sys_large_files+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 while :; do
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 #include <sys/types.h>
6571 /* Check that off_t can represent 2**63 - 1 correctly.
6572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6573 since some C++ compilers masquerading as C compilers
6574 incorrectly reject 9223372036854775807. */
6575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6577 && LARGE_OFF_T % 2147483647 == 1)
6578 ? 1 : -1];
6579 int
6580 main ()
6581 {
6582
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_cv_sys_large_files=no; break
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 #define _LARGE_FILES 1
6594 #include <sys/types.h>
6595 /* Check that off_t can represent 2**63 - 1 correctly.
6596 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6597 since some C++ compilers masquerading as C compilers
6598 incorrectly reject 9223372036854775807. */
6599 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6600 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6601 && LARGE_OFF_T % 2147483647 == 1)
6602 ? 1 : -1];
6603 int
6604 main ()
6605 {
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 ac_cv_sys_large_files=1; break
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 ac_cv_sys_large_files=unknown
6616 break
6617 done
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6620 $as_echo "$ac_cv_sys_large_files" >&6; }
6621 case $ac_cv_sys_large_files in #(
6622 no | unknown) ;;
6623 *)
6624 cat >>confdefs.h <<_ACEOF
6625 #define _LARGE_FILES $ac_cv_sys_large_files
6626 _ACEOF
6627 ;;
6628 esac
6629 rm -rf conftest*
6630 fi
6631
6632
6633 fi
6634
6635 for ac_func in ppoll
6636 do :
6637 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6638 if test "x$ac_cv_func_ppoll" = xyes; then :
6639 cat >>confdefs.h <<_ACEOF
6640 #define HAVE_PPOLL 1
6641 _ACEOF
6642
6643 fi
6644 done
6645
6646 for ac_func in openat
6647 do :
6648 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6649 if test "x$ac_cv_func_openat" = xyes; then :
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_OPENAT 1
6652 _ACEOF
6653
6654 fi
6655 done
6656
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6659 if ${ac_cv_path_SED+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6663 for ac_i in 1 2 3 4 5 6 7; do
6664 ac_script="$ac_script$as_nl$ac_script"
6665 done
6666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6667 { ac_script=; unset ac_script;}
6668 if test -z "$SED"; then
6669 ac_path_SED_found=false
6670 # Loop through the user's path and test for each of PROGNAME-LIST
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_prog in sed gsed; do
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6679 as_fn_executable_p "$ac_path_SED" || continue
6680 # Check for GNU ac_path_SED and select it if it is found.
6681 # Check for GNU $ac_path_SED
6682 case `"$ac_path_SED" --version 2>&1` in
6683 *GNU*)
6684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6685 *)
6686 ac_count=0
6687 $as_echo_n 0123456789 >"conftest.in"
6688 while :
6689 do
6690 cat "conftest.in" "conftest.in" >"conftest.tmp"
6691 mv "conftest.tmp" "conftest.in"
6692 cp "conftest.in" "conftest.nl"
6693 $as_echo '' >> "conftest.nl"
6694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6696 as_fn_arith $ac_count + 1 && ac_count=$as_val
6697 if test $ac_count -gt ${ac_path_SED_max-0}; then
6698 # Best one so far, save it but keep looking for a better one
6699 ac_cv_path_SED="$ac_path_SED"
6700 ac_path_SED_max=$ac_count
6701 fi
6702 # 10*(2^10) chars as input seems more than enough
6703 test $ac_count -gt 10 && break
6704 done
6705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6706 esac
6707
6708 $ac_path_SED_found && break 3
6709 done
6710 done
6711 done
6712 IFS=$as_save_IFS
6713 if test -z "$ac_cv_path_SED"; then
6714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6715 fi
6716 else
6717 ac_cv_path_SED=$SED
6718 fi
6719
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6722 $as_echo "$ac_cv_path_SED" >&6; }
6723 SED="$ac_cv_path_SED"
6724 rm -f conftest.sed
6725
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6728 $as_echo_n "checking whether NLS is requested... " >&6; }
6729 # Check whether --enable-nls was given.
6730 if test "${enable_nls+set}" = set; then :
6731 enableval=$enable_nls; USE_NLS=$enableval
6732 else
6733 USE_NLS=yes
6734 fi
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6737 $as_echo "$USE_NLS" >&6; }
6738
6739
6740
6741
6742 GETTEXT_MACRO_VERSION=0.19
6743
6744
6745
6746
6747 # Prepare PATH_SEPARATOR.
6748 # The user is always right.
6749 if test "${PATH_SEPARATOR+set}" != set; then
6750 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6751 # contains only /bin. Note that ksh looks also at the FPATH variable,
6752 # so we have to set that as well for the test.
6753 PATH_SEPARATOR=:
6754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6755 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6756 || PATH_SEPARATOR=';'
6757 }
6758 fi
6759
6760 # Find out how to test for executable files. Don't use a zero-byte file,
6761 # as systems may use methods other than mode bits to determine executability.
6762 cat >conf$$.file <<_ASEOF
6763 #! /bin/sh
6764 exit 0
6765 _ASEOF
6766 chmod +x conf$$.file
6767 if test -x conf$$.file >/dev/null 2>&1; then
6768 ac_executable_p="test -x"
6769 else
6770 ac_executable_p="test -f"
6771 fi
6772 rm -f conf$$.file
6773
6774 # Extract the first word of "msgfmt", so it can be a program name with args.
6775 set dummy msgfmt; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_path_MSGFMT+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 case "$MSGFMT" in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6787 for ac_dir in $PATH; do
6788 IFS="$ac_save_IFS"
6789 test -z "$ac_dir" && ac_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6792 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6793 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6794 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6795 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6796 break 2
6797 fi
6798 fi
6799 done
6800 done
6801 IFS="$ac_save_IFS"
6802 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6803 ;;
6804 esac
6805 fi
6806 MSGFMT="$ac_cv_path_MSGFMT"
6807 if test "$MSGFMT" != ":"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6809 $as_echo "$MSGFMT" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6816 set dummy gmsgfmt; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if ${ac_cv_path_GMSGFMT+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 case $GMSGFMT in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6843 ;;
6844 esac
6845 fi
6846 GMSGFMT=$ac_cv_path_GMSGFMT
6847 if test -n "$GMSGFMT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6849 $as_echo "$GMSGFMT" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856
6857 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6858 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6859 *) MSGFMT_015=$MSGFMT ;;
6860 esac
6861
6862 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6863 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6864 *) GMSGFMT_015=$GMSGFMT ;;
6865 esac
6866
6867
6868
6869 # Prepare PATH_SEPARATOR.
6870 # The user is always right.
6871 if test "${PATH_SEPARATOR+set}" != set; then
6872 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6873 # contains only /bin. Note that ksh looks also at the FPATH variable,
6874 # so we have to set that as well for the test.
6875 PATH_SEPARATOR=:
6876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6877 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6878 || PATH_SEPARATOR=';'
6879 }
6880 fi
6881
6882 # Find out how to test for executable files. Don't use a zero-byte file,
6883 # as systems may use methods other than mode bits to determine executability.
6884 cat >conf$$.file <<_ASEOF
6885 #! /bin/sh
6886 exit 0
6887 _ASEOF
6888 chmod +x conf$$.file
6889 if test -x conf$$.file >/dev/null 2>&1; then
6890 ac_executable_p="test -x"
6891 else
6892 ac_executable_p="test -f"
6893 fi
6894 rm -f conf$$.file
6895
6896 # Extract the first word of "xgettext", so it can be a program name with args.
6897 set dummy xgettext; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_path_XGETTEXT+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 case "$XGETTEXT" in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6909 for ac_dir in $PATH; do
6910 IFS="$ac_save_IFS"
6911 test -z "$ac_dir" && ac_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6914 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6915 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6916 (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
6917 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6918 break 2
6919 fi
6920 fi
6921 done
6922 done
6923 IFS="$ac_save_IFS"
6924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6925 ;;
6926 esac
6927 fi
6928 XGETTEXT="$ac_cv_path_XGETTEXT"
6929 if test "$XGETTEXT" != ":"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6931 $as_echo "$XGETTEXT" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937 rm -f messages.po
6938
6939 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6940 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6941 *) XGETTEXT_015=$XGETTEXT ;;
6942 esac
6943
6944
6945
6946 # Prepare PATH_SEPARATOR.
6947 # The user is always right.
6948 if test "${PATH_SEPARATOR+set}" != set; then
6949 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6950 # contains only /bin. Note that ksh looks also at the FPATH variable,
6951 # so we have to set that as well for the test.
6952 PATH_SEPARATOR=:
6953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6954 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6955 || PATH_SEPARATOR=';'
6956 }
6957 fi
6958
6959 # Find out how to test for executable files. Don't use a zero-byte file,
6960 # as systems may use methods other than mode bits to determine executability.
6961 cat >conf$$.file <<_ASEOF
6962 #! /bin/sh
6963 exit 0
6964 _ASEOF
6965 chmod +x conf$$.file
6966 if test -x conf$$.file >/dev/null 2>&1; then
6967 ac_executable_p="test -x"
6968 else
6969 ac_executable_p="test -f"
6970 fi
6971 rm -f conf$$.file
6972
6973 # Extract the first word of "msgmerge", so it can be a program name with args.
6974 set dummy msgmerge; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_path_MSGMERGE+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 case "$MSGMERGE" in
6981 [\\/]* | ?:[\\/]*)
6982 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6983 ;;
6984 *)
6985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6986 for ac_dir in $PATH; do
6987 IFS="$ac_save_IFS"
6988 test -z "$ac_dir" && ac_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6991 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6992 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6993 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6994 break 2
6995 fi
6996 fi
6997 done
6998 done
6999 IFS="$ac_save_IFS"
7000 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7001 ;;
7002 esac
7003 fi
7004 MSGMERGE="$ac_cv_path_MSGMERGE"
7005 if test "$MSGMERGE" != ":"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7007 $as_echo "$MSGMERGE" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 test -n "$localedir" || localedir='${datadir}/locale'
7015
7016
7017 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7018
7019
7020 ac_config_commands="$ac_config_commands po-directories"
7021
7022
7023
7024 if test "X$prefix" = "XNONE"; then
7025 acl_final_prefix="$ac_default_prefix"
7026 else
7027 acl_final_prefix="$prefix"
7028 fi
7029 if test "X$exec_prefix" = "XNONE"; then
7030 acl_final_exec_prefix='${prefix}'
7031 else
7032 acl_final_exec_prefix="$exec_prefix"
7033 fi
7034 acl_save_prefix="$prefix"
7035 prefix="$acl_final_prefix"
7036 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7037 prefix="$acl_save_prefix"
7038
7039
7040
7041 # Check whether --with-gnu-ld was given.
7042 if test "${with_gnu_ld+set}" = set; then :
7043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7044 else
7045 with_gnu_ld=no
7046 fi
7047
7048 # Prepare PATH_SEPARATOR.
7049 # The user is always right.
7050 if test "${PATH_SEPARATOR+set}" != set; then
7051 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7052 # contains only /bin. Note that ksh looks also at the FPATH variable,
7053 # so we have to set that as well for the test.
7054 PATH_SEPARATOR=:
7055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7056 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7057 || PATH_SEPARATOR=';'
7058 }
7059 fi
7060
7061 ac_prog=ld
7062 if test "$GCC" = yes; then
7063 # Check if gcc -print-prog-name=ld gives a path.
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7065 $as_echo_n "checking for ld used by $CC... " >&6; }
7066 case $host in
7067 *-*-mingw*)
7068 # gcc leaves a trailing carriage return which upsets mingw
7069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7070 *)
7071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7072 esac
7073 case $ac_prog in
7074 # Accept absolute paths.
7075 [\\/]* | ?:[\\/]*)
7076 re_direlt='/[^/][^/]*/\.\./'
7077 # Canonicalize the pathname of ld
7078 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7079 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7080 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7081 done
7082 test -z "$LD" && LD="$ac_prog"
7083 ;;
7084 "")
7085 # If it fails, then pretend we aren't using GCC.
7086 ac_prog=ld
7087 ;;
7088 *)
7089 # If it is relative, then search for the first ld in PATH.
7090 with_gnu_ld=unknown
7091 ;;
7092 esac
7093 elif test "$with_gnu_ld" = yes; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7095 $as_echo_n "checking for GNU ld... " >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7098 $as_echo_n "checking for non-GNU ld... " >&6; }
7099 fi
7100 if ${acl_cv_path_LD+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -z "$LD"; then
7104 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105 for ac_dir in $PATH; do
7106 IFS="$acl_save_ifs"
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7109 acl_cv_path_LD="$ac_dir/$ac_prog"
7110 # Check to see if the program is GNU ld. I'd rather use --version,
7111 # but apparently some variants of GNU ld only accept -v.
7112 # Break only if it was the GNU/non-GNU ld that we prefer.
7113 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7114 *GNU* | *'with BFD'*)
7115 test "$with_gnu_ld" != no && break
7116 ;;
7117 *)
7118 test "$with_gnu_ld" != yes && break
7119 ;;
7120 esac
7121 fi
7122 done
7123 IFS="$acl_save_ifs"
7124 else
7125 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7126 fi
7127 fi
7128
7129 LD="$acl_cv_path_LD"
7130 if test -n "$LD"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7132 $as_echo "$LD" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7140 if ${acl_cv_prog_gnu_ld+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7144 case `$LD -v 2>&1 </dev/null` in
7145 *GNU* | *'with BFD'*)
7146 acl_cv_prog_gnu_ld=yes
7147 ;;
7148 *)
7149 acl_cv_prog_gnu_ld=no
7150 ;;
7151 esac
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7154 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7155 with_gnu_ld=$acl_cv_prog_gnu_ld
7156
7157
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7161 $as_echo_n "checking for shared library run path origin... " >&6; }
7162 if ${acl_cv_rpath+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165
7166 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7167 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7168 . ./conftest.sh
7169 rm -f ./conftest.sh
7170 acl_cv_rpath=done
7171
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7174 $as_echo "$acl_cv_rpath" >&6; }
7175 wl="$acl_cv_wl"
7176 acl_libext="$acl_cv_libext"
7177 acl_shlibext="$acl_cv_shlibext"
7178 acl_libname_spec="$acl_cv_libname_spec"
7179 acl_library_names_spec="$acl_cv_library_names_spec"
7180 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7181 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7182 acl_hardcode_direct="$acl_cv_hardcode_direct"
7183 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7184 # Check whether --enable-rpath was given.
7185 if test "${enable_rpath+set}" = set; then :
7186 enableval=$enable_rpath; :
7187 else
7188 enable_rpath=yes
7189 fi
7190
7191
7192
7193
7194 acl_libdirstem=lib
7195 acl_libdirstem2=
7196 case "$host_os" in
7197 solaris*)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7199 $as_echo_n "checking for 64-bit host... " >&6; }
7200 if ${gl_cv_solaris_64bit+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205
7206 #ifdef _LP64
7207 sixtyfour bits
7208 #endif
7209
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7213 gl_cv_solaris_64bit=yes
7214 else
7215 gl_cv_solaris_64bit=no
7216 fi
7217 rm -f conftest*
7218
7219
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7222 $as_echo "$gl_cv_solaris_64bit" >&6; }
7223 if test $gl_cv_solaris_64bit = yes; then
7224 acl_libdirstem=lib/64
7225 case "$host_cpu" in
7226 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7227 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7228 esac
7229 fi
7230 ;;
7231 *)
7232 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7233 if test -n "$searchpath"; then
7234 acl_save_IFS="${IFS= }"; IFS=":"
7235 for searchdir in $searchpath; do
7236 if test -d "$searchdir"; then
7237 case "$searchdir" in
7238 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7239 */../ | */.. )
7240 # Better ignore directories of this form. They are misleading.
7241 ;;
7242 *) searchdir=`cd "$searchdir" && pwd`
7243 case "$searchdir" in
7244 */lib64 ) acl_libdirstem=lib64 ;;
7245 esac ;;
7246 esac
7247 fi
7248 done
7249 IFS="$acl_save_IFS"
7250 fi
7251 ;;
7252 esac
7253 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 use_additional=yes
7267
7268 acl_save_prefix="$prefix"
7269 prefix="$acl_final_prefix"
7270 acl_save_exec_prefix="$exec_prefix"
7271 exec_prefix="$acl_final_exec_prefix"
7272
7273 eval additional_includedir=\"$includedir\"
7274 eval additional_libdir=\"$libdir\"
7275
7276 exec_prefix="$acl_save_exec_prefix"
7277 prefix="$acl_save_prefix"
7278
7279
7280 # Check whether --with-libiconv-prefix was given.
7281 if test "${with_libiconv_prefix+set}" = set; then :
7282 withval=$with_libiconv_prefix;
7283 if test "X$withval" = "Xno"; then
7284 use_additional=no
7285 else
7286 if test "X$withval" = "X"; then
7287
7288 acl_save_prefix="$prefix"
7289 prefix="$acl_final_prefix"
7290 acl_save_exec_prefix="$exec_prefix"
7291 exec_prefix="$acl_final_exec_prefix"
7292
7293 eval additional_includedir=\"$includedir\"
7294 eval additional_libdir=\"$libdir\"
7295
7296 exec_prefix="$acl_save_exec_prefix"
7297 prefix="$acl_save_prefix"
7298
7299 else
7300 additional_includedir="$withval/include"
7301 additional_libdir="$withval/$acl_libdirstem"
7302 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7303 && ! test -d "$withval/$acl_libdirstem"; then
7304 additional_libdir="$withval/$acl_libdirstem2"
7305 fi
7306 fi
7307 fi
7308
7309 fi
7310
7311 LIBICONV=
7312 LTLIBICONV=
7313 INCICONV=
7314 LIBICONV_PREFIX=
7315 HAVE_LIBICONV=
7316 rpathdirs=
7317 ltrpathdirs=
7318 names_already_handled=
7319 names_next_round='iconv '
7320 while test -n "$names_next_round"; do
7321 names_this_round="$names_next_round"
7322 names_next_round=
7323 for name in $names_this_round; do
7324 already_handled=
7325 for n in $names_already_handled; do
7326 if test "$n" = "$name"; then
7327 already_handled=yes
7328 break
7329 fi
7330 done
7331 if test -z "$already_handled"; then
7332 names_already_handled="$names_already_handled $name"
7333 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7334 eval value=\"\$HAVE_LIB$uppername\"
7335 if test -n "$value"; then
7336 if test "$value" = yes; then
7337 eval value=\"\$LIB$uppername\"
7338 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7339 eval value=\"\$LTLIB$uppername\"
7340 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7341 else
7342 :
7343 fi
7344 else
7345 found_dir=
7346 found_la=
7347 found_so=
7348 found_a=
7349 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7350 if test -n "$acl_shlibext"; then
7351 shrext=".$acl_shlibext" # typically: shrext=.so
7352 else
7353 shrext=
7354 fi
7355 if test $use_additional = yes; then
7356 dir="$additional_libdir"
7357 if test -n "$acl_shlibext"; then
7358 if test -f "$dir/$libname$shrext"; then
7359 found_dir="$dir"
7360 found_so="$dir/$libname$shrext"
7361 else
7362 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7363 ver=`(cd "$dir" && \
7364 for f in "$libname$shrext".*; do echo "$f"; done \
7365 | sed -e "s,^$libname$shrext\\\\.,," \
7366 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7367 | sed 1q ) 2>/dev/null`
7368 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7369 found_dir="$dir"
7370 found_so="$dir/$libname$shrext.$ver"
7371 fi
7372 else
7373 eval library_names=\"$acl_library_names_spec\"
7374 for f in $library_names; do
7375 if test -f "$dir/$f"; then
7376 found_dir="$dir"
7377 found_so="$dir/$f"
7378 break
7379 fi
7380 done
7381 fi
7382 fi
7383 fi
7384 if test "X$found_dir" = "X"; then
7385 if test -f "$dir/$libname.$acl_libext"; then
7386 found_dir="$dir"
7387 found_a="$dir/$libname.$acl_libext"
7388 fi
7389 fi
7390 if test "X$found_dir" != "X"; then
7391 if test -f "$dir/$libname.la"; then
7392 found_la="$dir/$libname.la"
7393 fi
7394 fi
7395 fi
7396 if test "X$found_dir" = "X"; then
7397 for x in $LDFLAGS $LTLIBICONV; do
7398
7399 acl_save_prefix="$prefix"
7400 prefix="$acl_final_prefix"
7401 acl_save_exec_prefix="$exec_prefix"
7402 exec_prefix="$acl_final_exec_prefix"
7403 eval x=\"$x\"
7404 exec_prefix="$acl_save_exec_prefix"
7405 prefix="$acl_save_prefix"
7406
7407 case "$x" in
7408 -L*)
7409 dir=`echo "X$x" | sed -e 's/^X-L//'`
7410 if test -n "$acl_shlibext"; then
7411 if test -f "$dir/$libname$shrext"; then
7412 found_dir="$dir"
7413 found_so="$dir/$libname$shrext"
7414 else
7415 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7416 ver=`(cd "$dir" && \
7417 for f in "$libname$shrext".*; do echo "$f"; done \
7418 | sed -e "s,^$libname$shrext\\\\.,," \
7419 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7420 | sed 1q ) 2>/dev/null`
7421 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7422 found_dir="$dir"
7423 found_so="$dir/$libname$shrext.$ver"
7424 fi
7425 else
7426 eval library_names=\"$acl_library_names_spec\"
7427 for f in $library_names; do
7428 if test -f "$dir/$f"; then
7429 found_dir="$dir"
7430 found_so="$dir/$f"
7431 break
7432 fi
7433 done
7434 fi
7435 fi
7436 fi
7437 if test "X$found_dir" = "X"; then
7438 if test -f "$dir/$libname.$acl_libext"; then
7439 found_dir="$dir"
7440 found_a="$dir/$libname.$acl_libext"
7441 fi
7442 fi
7443 if test "X$found_dir" != "X"; then
7444 if test -f "$dir/$libname.la"; then
7445 found_la="$dir/$libname.la"
7446 fi
7447 fi
7448 ;;
7449 esac
7450 if test "X$found_dir" != "X"; then
7451 break
7452 fi
7453 done
7454 fi
7455 if test "X$found_dir" != "X"; then
7456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7457 if test "X$found_so" != "X"; then
7458 if test "$enable_rpath" = no \
7459 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7460 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7462 else
7463 haveit=
7464 for x in $ltrpathdirs; do
7465 if test "X$x" = "X$found_dir"; then
7466 haveit=yes
7467 break
7468 fi
7469 done
7470 if test -z "$haveit"; then
7471 ltrpathdirs="$ltrpathdirs $found_dir"
7472 fi
7473 if test "$acl_hardcode_direct" = yes; then
7474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7475 else
7476 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7478 haveit=
7479 for x in $rpathdirs; do
7480 if test "X$x" = "X$found_dir"; then
7481 haveit=yes
7482 break
7483 fi
7484 done
7485 if test -z "$haveit"; then
7486 rpathdirs="$rpathdirs $found_dir"
7487 fi
7488 else
7489 haveit=
7490 for x in $LDFLAGS $LIBICONV; do
7491
7492 acl_save_prefix="$prefix"
7493 prefix="$acl_final_prefix"
7494 acl_save_exec_prefix="$exec_prefix"
7495 exec_prefix="$acl_final_exec_prefix"
7496 eval x=\"$x\"
7497 exec_prefix="$acl_save_exec_prefix"
7498 prefix="$acl_save_prefix"
7499
7500 if test "X$x" = "X-L$found_dir"; then
7501 haveit=yes
7502 break
7503 fi
7504 done
7505 if test -z "$haveit"; then
7506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7507 fi
7508 if test "$acl_hardcode_minus_L" != no; then
7509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7510 else
7511 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7512 fi
7513 fi
7514 fi
7515 fi
7516 else
7517 if test "X$found_a" != "X"; then
7518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7519 else
7520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7521 fi
7522 fi
7523 additional_includedir=
7524 case "$found_dir" in
7525 */$acl_libdirstem | */$acl_libdirstem/)
7526 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7527 if test "$name" = 'iconv'; then
7528 LIBICONV_PREFIX="$basedir"
7529 fi
7530 additional_includedir="$basedir/include"
7531 ;;
7532 */$acl_libdirstem2 | */$acl_libdirstem2/)
7533 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7534 if test "$name" = 'iconv'; then
7535 LIBICONV_PREFIX="$basedir"
7536 fi
7537 additional_includedir="$basedir/include"
7538 ;;
7539 esac
7540 if test "X$additional_includedir" != "X"; then
7541 if test "X$additional_includedir" != "X/usr/include"; then
7542 haveit=
7543 if test "X$additional_includedir" = "X/usr/local/include"; then
7544 if test -n "$GCC"; then
7545 case $host_os in
7546 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7547 esac
7548 fi
7549 fi
7550 if test -z "$haveit"; then
7551 for x in $CPPFLAGS $INCICONV; do
7552
7553 acl_save_prefix="$prefix"
7554 prefix="$acl_final_prefix"
7555 acl_save_exec_prefix="$exec_prefix"
7556 exec_prefix="$acl_final_exec_prefix"
7557 eval x=\"$x\"
7558 exec_prefix="$acl_save_exec_prefix"
7559 prefix="$acl_save_prefix"
7560
7561 if test "X$x" = "X-I$additional_includedir"; then
7562 haveit=yes
7563 break
7564 fi
7565 done
7566 if test -z "$haveit"; then
7567 if test -d "$additional_includedir"; then
7568 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7569 fi
7570 fi
7571 fi
7572 fi
7573 fi
7574 if test -n "$found_la"; then
7575 save_libdir="$libdir"
7576 case "$found_la" in
7577 */* | *\\*) . "$found_la" ;;
7578 *) . "./$found_la" ;;
7579 esac
7580 libdir="$save_libdir"
7581 for dep in $dependency_libs; do
7582 case "$dep" in
7583 -L*)
7584 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7585 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7586 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7587 haveit=
7588 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7589 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7590 if test -n "$GCC"; then
7591 case $host_os in
7592 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7593 esac
7594 fi
7595 fi
7596 if test -z "$haveit"; then
7597 haveit=
7598 for x in $LDFLAGS $LIBICONV; do
7599
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7604 eval x=\"$x\"
7605 exec_prefix="$acl_save_exec_prefix"
7606 prefix="$acl_save_prefix"
7607
7608 if test "X$x" = "X-L$additional_libdir"; then
7609 haveit=yes
7610 break
7611 fi
7612 done
7613 if test -z "$haveit"; then
7614 if test -d "$additional_libdir"; then
7615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7616 fi
7617 fi
7618 haveit=
7619 for x in $LDFLAGS $LTLIBICONV; do
7620
7621 acl_save_prefix="$prefix"
7622 prefix="$acl_final_prefix"
7623 acl_save_exec_prefix="$exec_prefix"
7624 exec_prefix="$acl_final_exec_prefix"
7625 eval x=\"$x\"
7626 exec_prefix="$acl_save_exec_prefix"
7627 prefix="$acl_save_prefix"
7628
7629 if test "X$x" = "X-L$additional_libdir"; then
7630 haveit=yes
7631 break
7632 fi
7633 done
7634 if test -z "$haveit"; then
7635 if test -d "$additional_libdir"; then
7636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7637 fi
7638 fi
7639 fi
7640 fi
7641 ;;
7642 -R*)
7643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7644 if test "$enable_rpath" != no; then
7645 haveit=
7646 for x in $rpathdirs; do
7647 if test "X$x" = "X$dir"; then
7648 haveit=yes
7649 break
7650 fi
7651 done
7652 if test -z "$haveit"; then
7653 rpathdirs="$rpathdirs $dir"
7654 fi
7655 haveit=
7656 for x in $ltrpathdirs; do
7657 if test "X$x" = "X$dir"; then
7658 haveit=yes
7659 break
7660 fi
7661 done
7662 if test -z "$haveit"; then
7663 ltrpathdirs="$ltrpathdirs $dir"
7664 fi
7665 fi
7666 ;;
7667 -l*)
7668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7669 ;;
7670 *.la)
7671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7672 ;;
7673 *)
7674 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7676 ;;
7677 esac
7678 done
7679 fi
7680 else
7681 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7683 fi
7684 fi
7685 fi
7686 done
7687 done
7688 if test "X$rpathdirs" != "X"; then
7689 if test -n "$acl_hardcode_libdir_separator"; then
7690 alldirs=
7691 for found_dir in $rpathdirs; do
7692 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7693 done
7694 acl_save_libdir="$libdir"
7695 libdir="$alldirs"
7696 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7697 libdir="$acl_save_libdir"
7698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7699 else
7700 for found_dir in $rpathdirs; do
7701 acl_save_libdir="$libdir"
7702 libdir="$found_dir"
7703 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7704 libdir="$acl_save_libdir"
7705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7706 done
7707 fi
7708 fi
7709 if test "X$ltrpathdirs" != "X"; then
7710 for found_dir in $ltrpathdirs; do
7711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7712 done
7713 fi
7714
7715
7716
7717
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7746 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7747 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 gt_save_LIBS="$LIBS"
7751 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 #include <CoreFoundation/CFPreferences.h>
7755 int
7756 main ()
7757 {
7758 CFPreferencesCopyAppValue(NULL, NULL)
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 gt_cv_func_CFPreferencesCopyAppValue=yes
7765 else
7766 gt_cv_func_CFPreferencesCopyAppValue=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS="$gt_save_LIBS"
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7773 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7774 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7775
7776 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7780 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7781 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 gt_save_LIBS="$LIBS"
7785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <CoreFoundation/CFLocale.h>
7789 int
7790 main ()
7791 {
7792 CFLocaleCopyCurrent();
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 gt_cv_func_CFLocaleCopyCurrent=yes
7799 else
7800 gt_cv_func_CFLocaleCopyCurrent=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS="$gt_save_LIBS"
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7807 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7808 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7809
7810 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7811
7812 fi
7813 INTL_MACOSX_LIBS=
7814 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7815 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7816 fi
7817
7818
7819
7820
7821
7822
7823 LIBINTL=
7824 LTLIBINTL=
7825 POSUB=
7826
7827 case " $gt_needs " in
7828 *" need-formatstring-macros "*) gt_api_version=3 ;;
7829 *" need-ngettext "*) gt_api_version=2 ;;
7830 *) gt_api_version=1 ;;
7831 esac
7832 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7833 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7834
7835 if test "$USE_NLS" = "yes"; then
7836 gt_use_preinstalled_gnugettext=no
7837
7838
7839 if test $gt_api_version -ge 3; then
7840 gt_revision_test_code='
7841 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7842 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7843 #endif
7844 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7845 '
7846 else
7847 gt_revision_test_code=
7848 fi
7849 if test $gt_api_version -ge 2; then
7850 gt_expression_test_code=' + * ngettext ("", "", 0)'
7851 else
7852 gt_expression_test_code=
7853 fi
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7856 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7857 if eval \${$gt_func_gnugettext_libc+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862
7863 #include <libintl.h>
7864 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7865 extern int _nl_msg_cat_cntr;
7866 extern int *_nl_domain_bindings;
7867 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7868 #else
7869 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7870 #endif
7871 $gt_revision_test_code
7872
7873 int
7874 main ()
7875 {
7876
7877 bindtextdomain ("", "");
7878 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 eval "$gt_func_gnugettext_libc=yes"
7886 else
7887 eval "$gt_func_gnugettext_libc=no"
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 fi
7892 eval ac_res=\$$gt_func_gnugettext_libc
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7894 $as_echo "$ac_res" >&6; }
7895
7896 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7897
7898
7899
7900
7901
7902 am_save_CPPFLAGS="$CPPFLAGS"
7903
7904 for element in $INCICONV; do
7905 haveit=
7906 for x in $CPPFLAGS; do
7907
7908 acl_save_prefix="$prefix"
7909 prefix="$acl_final_prefix"
7910 acl_save_exec_prefix="$exec_prefix"
7911 exec_prefix="$acl_final_exec_prefix"
7912 eval x=\"$x\"
7913 exec_prefix="$acl_save_exec_prefix"
7914 prefix="$acl_save_prefix"
7915
7916 if test "X$x" = "X$element"; then
7917 haveit=yes
7918 break
7919 fi
7920 done
7921 if test -z "$haveit"; then
7922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7923 fi
7924 done
7925
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7928 $as_echo_n "checking for iconv... " >&6; }
7929 if ${am_cv_func_iconv+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932
7933 am_cv_func_iconv="no, consider installing GNU libiconv"
7934 am_cv_lib_iconv=no
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937
7938 #include <stdlib.h>
7939 #include <iconv.h>
7940
7941 int
7942 main ()
7943 {
7944 iconv_t cd = iconv_open("","");
7945 iconv(cd,NULL,NULL,NULL,NULL);
7946 iconv_close(cd);
7947 ;
7948 return 0;
7949 }
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 am_cv_func_iconv=yes
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 if test "$am_cv_func_iconv" != yes; then
7957 am_save_LIBS="$LIBS"
7958 LIBS="$LIBS $LIBICONV"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961
7962 #include <stdlib.h>
7963 #include <iconv.h>
7964
7965 int
7966 main ()
7967 {
7968 iconv_t cd = iconv_open("","");
7969 iconv(cd,NULL,NULL,NULL,NULL);
7970 iconv_close(cd);
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 am_cv_lib_iconv=yes
7977 am_cv_func_iconv=yes
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981 LIBS="$am_save_LIBS"
7982 fi
7983
7984 fi
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7986 $as_echo "$am_cv_func_iconv" >&6; }
7987 if test "$am_cv_func_iconv" = yes; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7989 $as_echo_n "checking for working iconv... " >&6; }
7990 if ${am_cv_func_iconv_works+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993
7994 am_save_LIBS="$LIBS"
7995 if test $am_cv_lib_iconv = yes; then
7996 LIBS="$LIBS $LIBICONV"
7997 fi
7998 am_cv_func_iconv_works=no
7999 for ac_iconv_const in '' 'const'; do
8000 if test "$cross_compiling" = yes; then :
8001 case "$host_os" in
8002 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8003 *) am_cv_func_iconv_works="guessing yes" ;;
8004 esac
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008
8009 #include <iconv.h>
8010 #include <string.h>
8011
8012 #ifndef ICONV_CONST
8013 # define ICONV_CONST $ac_iconv_const
8014 #endif
8015
8016 int
8017 main ()
8018 {
8019 int result = 0;
8020 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8021 returns. */
8022 {
8023 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8024 if (cd_utf8_to_88591 != (iconv_t)(-1))
8025 {
8026 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8027 char buf[10];
8028 ICONV_CONST char *inptr = input;
8029 size_t inbytesleft = strlen (input);
8030 char *outptr = buf;
8031 size_t outbytesleft = sizeof (buf);
8032 size_t res = iconv (cd_utf8_to_88591,
8033 &inptr, &inbytesleft,
8034 &outptr, &outbytesleft);
8035 if (res == 0)
8036 result |= 1;
8037 iconv_close (cd_utf8_to_88591);
8038 }
8039 }
8040 /* Test against Solaris 10 bug: Failures are not distinguishable from
8041 successful returns. */
8042 {
8043 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8044 if (cd_ascii_to_88591 != (iconv_t)(-1))
8045 {
8046 static ICONV_CONST char input[] = "\263";
8047 char buf[10];
8048 ICONV_CONST char *inptr = input;
8049 size_t inbytesleft = strlen (input);
8050 char *outptr = buf;
8051 size_t outbytesleft = sizeof (buf);
8052 size_t res = iconv (cd_ascii_to_88591,
8053 &inptr, &inbytesleft,
8054 &outptr, &outbytesleft);
8055 if (res == 0)
8056 result |= 2;
8057 iconv_close (cd_ascii_to_88591);
8058 }
8059 }
8060 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8061 {
8062 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8063 if (cd_88591_to_utf8 != (iconv_t)(-1))
8064 {
8065 static ICONV_CONST char input[] = "\304";
8066 static char buf[2] = { (char)0xDE, (char)0xAD };
8067 ICONV_CONST char *inptr = input;
8068 size_t inbytesleft = 1;
8069 char *outptr = buf;
8070 size_t outbytesleft = 1;
8071 size_t res = iconv (cd_88591_to_utf8,
8072 &inptr, &inbytesleft,
8073 &outptr, &outbytesleft);
8074 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8075 result |= 4;
8076 iconv_close (cd_88591_to_utf8);
8077 }
8078 }
8079 #if 0 /* This bug could be worked around by the caller. */
8080 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8081 {
8082 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8083 if (cd_88591_to_utf8 != (iconv_t)(-1))
8084 {
8085 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8086 char buf[50];
8087 ICONV_CONST char *inptr = input;
8088 size_t inbytesleft = strlen (input);
8089 char *outptr = buf;
8090 size_t outbytesleft = sizeof (buf);
8091 size_t res = iconv (cd_88591_to_utf8,
8092 &inptr, &inbytesleft,
8093 &outptr, &outbytesleft);
8094 if ((int)res > 0)
8095 result |= 8;
8096 iconv_close (cd_88591_to_utf8);
8097 }
8098 }
8099 #endif
8100 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8101 provided. */
8102 if (/* Try standardized names. */
8103 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8104 /* Try IRIX, OSF/1 names. */
8105 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8106 /* Try AIX names. */
8107 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8108 /* Try HP-UX names. */
8109 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8110 result |= 16;
8111 return result;
8112
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_run "$LINENO"; then :
8118 am_cv_func_iconv_works=yes
8119 fi
8120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8121 conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 fi
8123
8124 test "$am_cv_func_iconv_works" = no || break
8125 done
8126 LIBS="$am_save_LIBS"
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8130 $as_echo "$am_cv_func_iconv_works" >&6; }
8131 case "$am_cv_func_iconv_works" in
8132 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8133 *) am_func_iconv=yes ;;
8134 esac
8135 else
8136 am_func_iconv=no am_cv_lib_iconv=no
8137 fi
8138 if test "$am_func_iconv" = yes; then
8139
8140 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8141
8142 fi
8143 if test "$am_cv_lib_iconv" = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8145 $as_echo_n "checking how to link with libiconv... " >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8147 $as_echo "$LIBICONV" >&6; }
8148 else
8149 CPPFLAGS="$am_save_CPPFLAGS"
8150 LIBICONV=
8151 LTLIBICONV=
8152 fi
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 use_additional=yes
8165
8166 acl_save_prefix="$prefix"
8167 prefix="$acl_final_prefix"
8168 acl_save_exec_prefix="$exec_prefix"
8169 exec_prefix="$acl_final_exec_prefix"
8170
8171 eval additional_includedir=\"$includedir\"
8172 eval additional_libdir=\"$libdir\"
8173
8174 exec_prefix="$acl_save_exec_prefix"
8175 prefix="$acl_save_prefix"
8176
8177
8178 # Check whether --with-libintl-prefix was given.
8179 if test "${with_libintl_prefix+set}" = set; then :
8180 withval=$with_libintl_prefix;
8181 if test "X$withval" = "Xno"; then
8182 use_additional=no
8183 else
8184 if test "X$withval" = "X"; then
8185
8186 acl_save_prefix="$prefix"
8187 prefix="$acl_final_prefix"
8188 acl_save_exec_prefix="$exec_prefix"
8189 exec_prefix="$acl_final_exec_prefix"
8190
8191 eval additional_includedir=\"$includedir\"
8192 eval additional_libdir=\"$libdir\"
8193
8194 exec_prefix="$acl_save_exec_prefix"
8195 prefix="$acl_save_prefix"
8196
8197 else
8198 additional_includedir="$withval/include"
8199 additional_libdir="$withval/$acl_libdirstem"
8200 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8201 && ! test -d "$withval/$acl_libdirstem"; then
8202 additional_libdir="$withval/$acl_libdirstem2"
8203 fi
8204 fi
8205 fi
8206
8207 fi
8208
8209 LIBINTL=
8210 LTLIBINTL=
8211 INCINTL=
8212 LIBINTL_PREFIX=
8213 HAVE_LIBINTL=
8214 rpathdirs=
8215 ltrpathdirs=
8216 names_already_handled=
8217 names_next_round='intl '
8218 while test -n "$names_next_round"; do
8219 names_this_round="$names_next_round"
8220 names_next_round=
8221 for name in $names_this_round; do
8222 already_handled=
8223 for n in $names_already_handled; do
8224 if test "$n" = "$name"; then
8225 already_handled=yes
8226 break
8227 fi
8228 done
8229 if test -z "$already_handled"; then
8230 names_already_handled="$names_already_handled $name"
8231 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8232 eval value=\"\$HAVE_LIB$uppername\"
8233 if test -n "$value"; then
8234 if test "$value" = yes; then
8235 eval value=\"\$LIB$uppername\"
8236 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8237 eval value=\"\$LTLIB$uppername\"
8238 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8239 else
8240 :
8241 fi
8242 else
8243 found_dir=
8244 found_la=
8245 found_so=
8246 found_a=
8247 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8248 if test -n "$acl_shlibext"; then
8249 shrext=".$acl_shlibext" # typically: shrext=.so
8250 else
8251 shrext=
8252 fi
8253 if test $use_additional = yes; then
8254 dir="$additional_libdir"
8255 if test -n "$acl_shlibext"; then
8256 if test -f "$dir/$libname$shrext"; then
8257 found_dir="$dir"
8258 found_so="$dir/$libname$shrext"
8259 else
8260 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8261 ver=`(cd "$dir" && \
8262 for f in "$libname$shrext".*; do echo "$f"; done \
8263 | sed -e "s,^$libname$shrext\\\\.,," \
8264 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8265 | sed 1q ) 2>/dev/null`
8266 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8267 found_dir="$dir"
8268 found_so="$dir/$libname$shrext.$ver"
8269 fi
8270 else
8271 eval library_names=\"$acl_library_names_spec\"
8272 for f in $library_names; do
8273 if test -f "$dir/$f"; then
8274 found_dir="$dir"
8275 found_so="$dir/$f"
8276 break
8277 fi
8278 done
8279 fi
8280 fi
8281 fi
8282 if test "X$found_dir" = "X"; then
8283 if test -f "$dir/$libname.$acl_libext"; then
8284 found_dir="$dir"
8285 found_a="$dir/$libname.$acl_libext"
8286 fi
8287 fi
8288 if test "X$found_dir" != "X"; then
8289 if test -f "$dir/$libname.la"; then
8290 found_la="$dir/$libname.la"
8291 fi
8292 fi
8293 fi
8294 if test "X$found_dir" = "X"; then
8295 for x in $LDFLAGS $LTLIBINTL; do
8296
8297 acl_save_prefix="$prefix"
8298 prefix="$acl_final_prefix"
8299 acl_save_exec_prefix="$exec_prefix"
8300 exec_prefix="$acl_final_exec_prefix"
8301 eval x=\"$x\"
8302 exec_prefix="$acl_save_exec_prefix"
8303 prefix="$acl_save_prefix"
8304
8305 case "$x" in
8306 -L*)
8307 dir=`echo "X$x" | sed -e 's/^X-L//'`
8308 if test -n "$acl_shlibext"; then
8309 if test -f "$dir/$libname$shrext"; then
8310 found_dir="$dir"
8311 found_so="$dir/$libname$shrext"
8312 else
8313 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8314 ver=`(cd "$dir" && \
8315 for f in "$libname$shrext".*; do echo "$f"; done \
8316 | sed -e "s,^$libname$shrext\\\\.,," \
8317 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8318 | sed 1q ) 2>/dev/null`
8319 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8320 found_dir="$dir"
8321 found_so="$dir/$libname$shrext.$ver"
8322 fi
8323 else
8324 eval library_names=\"$acl_library_names_spec\"
8325 for f in $library_names; do
8326 if test -f "$dir/$f"; then
8327 found_dir="$dir"
8328 found_so="$dir/$f"
8329 break
8330 fi
8331 done
8332 fi
8333 fi
8334 fi
8335 if test "X$found_dir" = "X"; then
8336 if test -f "$dir/$libname.$acl_libext"; then
8337 found_dir="$dir"
8338 found_a="$dir/$libname.$acl_libext"
8339 fi
8340 fi
8341 if test "X$found_dir" != "X"; then
8342 if test -f "$dir/$libname.la"; then
8343 found_la="$dir/$libname.la"
8344 fi
8345 fi
8346 ;;
8347 esac
8348 if test "X$found_dir" != "X"; then
8349 break
8350 fi
8351 done
8352 fi
8353 if test "X$found_dir" != "X"; then
8354 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8355 if test "X$found_so" != "X"; then
8356 if test "$enable_rpath" = no \
8357 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8358 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8359 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8360 else
8361 haveit=
8362 for x in $ltrpathdirs; do
8363 if test "X$x" = "X$found_dir"; then
8364 haveit=yes
8365 break
8366 fi
8367 done
8368 if test -z "$haveit"; then
8369 ltrpathdirs="$ltrpathdirs $found_dir"
8370 fi
8371 if test "$acl_hardcode_direct" = yes; then
8372 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8373 else
8374 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8375 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8376 haveit=
8377 for x in $rpathdirs; do
8378 if test "X$x" = "X$found_dir"; then
8379 haveit=yes
8380 break
8381 fi
8382 done
8383 if test -z "$haveit"; then
8384 rpathdirs="$rpathdirs $found_dir"
8385 fi
8386 else
8387 haveit=
8388 for x in $LDFLAGS $LIBINTL; do
8389
8390 acl_save_prefix="$prefix"
8391 prefix="$acl_final_prefix"
8392 acl_save_exec_prefix="$exec_prefix"
8393 exec_prefix="$acl_final_exec_prefix"
8394 eval x=\"$x\"
8395 exec_prefix="$acl_save_exec_prefix"
8396 prefix="$acl_save_prefix"
8397
8398 if test "X$x" = "X-L$found_dir"; then
8399 haveit=yes
8400 break
8401 fi
8402 done
8403 if test -z "$haveit"; then
8404 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8405 fi
8406 if test "$acl_hardcode_minus_L" != no; then
8407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8408 else
8409 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8410 fi
8411 fi
8412 fi
8413 fi
8414 else
8415 if test "X$found_a" != "X"; then
8416 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8417 else
8418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8419 fi
8420 fi
8421 additional_includedir=
8422 case "$found_dir" in
8423 */$acl_libdirstem | */$acl_libdirstem/)
8424 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8425 if test "$name" = 'intl'; then
8426 LIBINTL_PREFIX="$basedir"
8427 fi
8428 additional_includedir="$basedir/include"
8429 ;;
8430 */$acl_libdirstem2 | */$acl_libdirstem2/)
8431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8432 if test "$name" = 'intl'; then
8433 LIBINTL_PREFIX="$basedir"
8434 fi
8435 additional_includedir="$basedir/include"
8436 ;;
8437 esac
8438 if test "X$additional_includedir" != "X"; then
8439 if test "X$additional_includedir" != "X/usr/include"; then
8440 haveit=
8441 if test "X$additional_includedir" = "X/usr/local/include"; then
8442 if test -n "$GCC"; then
8443 case $host_os in
8444 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8445 esac
8446 fi
8447 fi
8448 if test -z "$haveit"; then
8449 for x in $CPPFLAGS $INCINTL; do
8450
8451 acl_save_prefix="$prefix"
8452 prefix="$acl_final_prefix"
8453 acl_save_exec_prefix="$exec_prefix"
8454 exec_prefix="$acl_final_exec_prefix"
8455 eval x=\"$x\"
8456 exec_prefix="$acl_save_exec_prefix"
8457 prefix="$acl_save_prefix"
8458
8459 if test "X$x" = "X-I$additional_includedir"; then
8460 haveit=yes
8461 break
8462 fi
8463 done
8464 if test -z "$haveit"; then
8465 if test -d "$additional_includedir"; then
8466 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8467 fi
8468 fi
8469 fi
8470 fi
8471 fi
8472 if test -n "$found_la"; then
8473 save_libdir="$libdir"
8474 case "$found_la" in
8475 */* | *\\*) . "$found_la" ;;
8476 *) . "./$found_la" ;;
8477 esac
8478 libdir="$save_libdir"
8479 for dep in $dependency_libs; do
8480 case "$dep" in
8481 -L*)
8482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8483 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8484 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8485 haveit=
8486 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8487 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8488 if test -n "$GCC"; then
8489 case $host_os in
8490 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8491 esac
8492 fi
8493 fi
8494 if test -z "$haveit"; then
8495 haveit=
8496 for x in $LDFLAGS $LIBINTL; do
8497
8498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 acl_save_exec_prefix="$exec_prefix"
8501 exec_prefix="$acl_final_exec_prefix"
8502 eval x=\"$x\"
8503 exec_prefix="$acl_save_exec_prefix"
8504 prefix="$acl_save_prefix"
8505
8506 if test "X$x" = "X-L$additional_libdir"; then
8507 haveit=yes
8508 break
8509 fi
8510 done
8511 if test -z "$haveit"; then
8512 if test -d "$additional_libdir"; then
8513 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8514 fi
8515 fi
8516 haveit=
8517 for x in $LDFLAGS $LTLIBINTL; do
8518
8519 acl_save_prefix="$prefix"
8520 prefix="$acl_final_prefix"
8521 acl_save_exec_prefix="$exec_prefix"
8522 exec_prefix="$acl_final_exec_prefix"
8523 eval x=\"$x\"
8524 exec_prefix="$acl_save_exec_prefix"
8525 prefix="$acl_save_prefix"
8526
8527 if test "X$x" = "X-L$additional_libdir"; then
8528 haveit=yes
8529 break
8530 fi
8531 done
8532 if test -z "$haveit"; then
8533 if test -d "$additional_libdir"; then
8534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8535 fi
8536 fi
8537 fi
8538 fi
8539 ;;
8540 -R*)
8541 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8542 if test "$enable_rpath" != no; then
8543 haveit=
8544 for x in $rpathdirs; do
8545 if test "X$x" = "X$dir"; then
8546 haveit=yes
8547 break
8548 fi
8549 done
8550 if test -z "$haveit"; then
8551 rpathdirs="$rpathdirs $dir"
8552 fi
8553 haveit=
8554 for x in $ltrpathdirs; do
8555 if test "X$x" = "X$dir"; then
8556 haveit=yes
8557 break
8558 fi
8559 done
8560 if test -z "$haveit"; then
8561 ltrpathdirs="$ltrpathdirs $dir"
8562 fi
8563 fi
8564 ;;
8565 -l*)
8566 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8567 ;;
8568 *.la)
8569 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8570 ;;
8571 *)
8572 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8573 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8574 ;;
8575 esac
8576 done
8577 fi
8578 else
8579 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8581 fi
8582 fi
8583 fi
8584 done
8585 done
8586 if test "X$rpathdirs" != "X"; then
8587 if test -n "$acl_hardcode_libdir_separator"; then
8588 alldirs=
8589 for found_dir in $rpathdirs; do
8590 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8591 done
8592 acl_save_libdir="$libdir"
8593 libdir="$alldirs"
8594 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8595 libdir="$acl_save_libdir"
8596 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8597 else
8598 for found_dir in $rpathdirs; do
8599 acl_save_libdir="$libdir"
8600 libdir="$found_dir"
8601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8602 libdir="$acl_save_libdir"
8603 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8604 done
8605 fi
8606 fi
8607 if test "X$ltrpathdirs" != "X"; then
8608 for found_dir in $ltrpathdirs; do
8609 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8610 done
8611 fi
8612
8613
8614
8615
8616
8617
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8619 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8620 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 gt_save_CPPFLAGS="$CPPFLAGS"
8624 CPPFLAGS="$CPPFLAGS $INCINTL"
8625 gt_save_LIBS="$LIBS"
8626 LIBS="$LIBS $LIBINTL"
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629
8630 #include <libintl.h>
8631 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8632 extern int _nl_msg_cat_cntr;
8633 extern
8634 #ifdef __cplusplus
8635 "C"
8636 #endif
8637 const char *_nl_expand_alias (const char *);
8638 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8639 #else
8640 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8641 #endif
8642 $gt_revision_test_code
8643
8644 int
8645 main ()
8646 {
8647
8648 bindtextdomain ("", "");
8649 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 eval "$gt_func_gnugettext_libintl=yes"
8657 else
8658 eval "$gt_func_gnugettext_libintl=no"
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8663 LIBS="$LIBS $LIBICONV"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666
8667 #include <libintl.h>
8668 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8669 extern int _nl_msg_cat_cntr;
8670 extern
8671 #ifdef __cplusplus
8672 "C"
8673 #endif
8674 const char *_nl_expand_alias (const char *);
8675 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8676 #else
8677 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8678 #endif
8679 $gt_revision_test_code
8680
8681 int
8682 main ()
8683 {
8684
8685 bindtextdomain ("", "");
8686 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8687
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"; then :
8693 LIBINTL="$LIBINTL $LIBICONV"
8694 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8695 eval "$gt_func_gnugettext_libintl=yes"
8696
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 fi
8701 CPPFLAGS="$gt_save_CPPFLAGS"
8702 LIBS="$gt_save_LIBS"
8703 fi
8704 eval ac_res=\$$gt_func_gnugettext_libintl
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8706 $as_echo "$ac_res" >&6; }
8707 fi
8708
8709 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8710 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8711 && test "$PACKAGE" != gettext-runtime \
8712 && test "$PACKAGE" != gettext-tools; }; then
8713 gt_use_preinstalled_gnugettext=yes
8714 else
8715 LIBINTL=
8716 LTLIBINTL=
8717 INCINTL=
8718 fi
8719
8720
8721
8722 if test -n "$INTL_MACOSX_LIBS"; then
8723 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8724 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8725 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8726 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8727 fi
8728 fi
8729
8730 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8731 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8732
8733 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8734
8735 else
8736 USE_NLS=no
8737 fi
8738 fi
8739
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8741 $as_echo_n "checking whether to use NLS... " >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8743 $as_echo "$USE_NLS" >&6; }
8744 if test "$USE_NLS" = "yes"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8746 $as_echo_n "checking where the gettext function comes from... " >&6; }
8747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8748 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8749 gt_source="external libintl"
8750 else
8751 gt_source="libc"
8752 fi
8753 else
8754 gt_source="included intl directory"
8755 fi
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8757 $as_echo "$gt_source" >&6; }
8758 fi
8759
8760 if test "$USE_NLS" = "yes"; then
8761
8762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8763 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8765 $as_echo_n "checking how to link with libintl... " >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8767 $as_echo "$LIBINTL" >&6; }
8768
8769 for element in $INCINTL; do
8770 haveit=
8771 for x in $CPPFLAGS; do
8772
8773 acl_save_prefix="$prefix"
8774 prefix="$acl_final_prefix"
8775 acl_save_exec_prefix="$exec_prefix"
8776 exec_prefix="$acl_final_exec_prefix"
8777 eval x=\"$x\"
8778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8780
8781 if test "X$x" = "X$element"; then
8782 haveit=yes
8783 break
8784 fi
8785 done
8786 if test -z "$haveit"; then
8787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8788 fi
8789 done
8790
8791 fi
8792
8793
8794 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8795
8796
8797 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8798
8799 fi
8800
8801 POSUB=po
8802 fi
8803
8804
8805
8806 INTLLIBS="$LIBINTL"
8807
8808
8809
8810
8811
8812
8813
8814
8815 if test "x$GMSGFMT" = "x:"; then
8816 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
8817 fi
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 without fPIE by default (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" == xyes; 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 fi
11397
11398 if test "x$with_python3" = "xyes"; then :
11399 if test "x$PYTHON3" = "x:"; then :
11400 as_fn_error $? "python version 3 is required" "$LINENO" 5
11401 else
11402 preferred_python=$PYTHON3
11403
11404 fi
11405 else
11406 if test "x$PYTHON" = "x:"; then :
11407 as_fn_error $? "python version 2 is required" "$LINENO" 5
11408 else
11409 preferred_python=$PYTHON
11410
11411 fi
11412 fi
11413
11414 build_elfutils=no
11415
11416 # Check whether --with-elfutils was given.
11417 if test "${with_elfutils+set}" = set; then :
11418 withval=$with_elfutils;
11419 case "$with_elfutils" in
11420 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11421 ''|no) ;;
11422 *) build_elfutils=yes ;;
11423 esac
11424 fi
11425
11426 if test $build_elfutils = yes; then
11427 BUILD_ELFUTILS_TRUE=
11428 BUILD_ELFUTILS_FALSE='#'
11429 else
11430 BUILD_ELFUTILS_TRUE='#'
11431 BUILD_ELFUTILS_FALSE=
11432 fi
11433
11434 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11435 cd $with_elfutils && pwd
11436 fi`
11437
11438
11439 if test $enable_translator = yes; then
11440 if test $build_elfutils = no; then
11441 # Need libdwfl-capable recent elfutils http://elfutils.org/
11442
11443 # On modern debian/ubuntu, libebl has been merged into libdw
11444 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11445 save_LIBS="$LIBS"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11447 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11448 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-lebl $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char ebl_get_elfmachine ();
11463 int
11464 main ()
11465 {
11466 return ebl_get_elfmachine ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11473 else
11474 ac_cv_lib_ebl_ebl_get_elfmachine=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11481 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11482 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11483 ebl_LIBS=-lebl
11484 else
11485 ebl_LIBS=
11486 fi
11487
11488 LIBS="$save_LIBS"
11489
11490 save_LIBS="$LIBS"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11492 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11493 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dwfl_module_getsym ();
11508 int
11509 main ()
11510 {
11511 return dwfl_module_getsym ();
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dw_dwfl_module_getsym=yes
11518 else
11519 ac_cv_lib_dw_dwfl_module_getsym=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11526 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11527 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11528 cat >>confdefs.h <<_ACEOF
11529 #define HAVE_LIBDW 1
11530 _ACEOF
11531
11532 LIBS="-ldw $LIBS"
11533
11534 else
11535
11536 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11537 fi
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11540 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11541 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dwarf_next_unit ();
11556 int
11557 main ()
11558 {
11559 return dwarf_next_unit ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_dw_dwarf_next_unit=yes
11566 else
11567 ac_cv_lib_dw_dwarf_next_unit=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11574 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11575 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_LIBDW 1
11578 _ACEOF
11579
11580 LIBS="-ldw $LIBS"
11581
11582 else
11583
11584 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11585 fi
11586
11587 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11588 LIBS="$save_LIBS"
11589 else
11590 # We built our own and stap_LDFLAGS points at the install.
11591 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11592 fi
11593 fi
11594
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11597 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11598
11599 # staprun has more modest libelf needs
11600 if test $build_elfutils = no; then
11601 save_LIBS="$LIBS"
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11603 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11604 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lelf $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char elf_getshdrstrndx ();
11619 int
11620 main ()
11621 {
11622 return elf_getshdrstrndx ();
11623 ;
11624 return 0;
11625 }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_elf_elf_getshdrstrndx=yes
11629 else
11630 ac_cv_lib_elf_elf_getshdrstrndx=no
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11637 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11638 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_LIBELF 1
11641 _ACEOF
11642
11643 LIBS="-lelf $LIBS"
11644
11645 else
11646
11647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11649 as_fn_error $? "libelf too old, need 0.142+
11650 See \`config.log' for more details" "$LINENO" 5; }
11651 fi
11652
11653 staprun_LIBS="$staprun_LIBS -lelf"
11654 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11655 LIBS="$save_LIBS"
11656 else
11657 # We built our own and staprun_LDFLAGS points at the install.
11658 staprun_LIBS="$staprun_LIBS -lelf"
11659 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11660 fi
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11665 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
11667 $as_echo "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
11668
11669 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11670 # being compiled on 32-bit userspace but running against 64-bit kernels.
11671 # This is no longer necessary.
11672
11673 ac_ext=cpp
11674 ac_cpp='$CXXCPP $CPPFLAGS'
11675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11678
11679 # Use boost::string_ref if available
11680 ac_ext=cpp
11681 ac_cpp='$CXXCPP $CPPFLAGS'
11682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11686 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11687 if test -z "$CXXCPP"; then
11688 if ${ac_cv_prog_CXXCPP+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 # Double quotes because CXXCPP needs to be expanded
11692 for CXXCPP in "$CXX -E" "/lib/cpp"
11693 do
11694 ac_preproc_ok=false
11695 for ac_cxx_preproc_warn_flag in '' yes
11696 do
11697 # Use a header file that comes with gcc, so configuring glibc
11698 # with a fresh cross-compiler works.
11699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 # <limits.h> exists even on freestanding compilers.
11701 # On the NeXT, cc -E runs the code through the compiler's parser,
11702 # not just through cpp. "Syntax error" is here to catch this case.
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11705 #ifdef __STDC__
11706 # include <limits.h>
11707 #else
11708 # include <assert.h>
11709 #endif
11710 Syntax error
11711 _ACEOF
11712 if ac_fn_cxx_try_cpp "$LINENO"; then :
11713
11714 else
11715 # Broken: fails on valid input.
11716 continue
11717 fi
11718 rm -f conftest.err conftest.i conftest.$ac_ext
11719
11720 # OK, works on sane cases. Now check whether nonexistent headers
11721 # can be detected and how.
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724 #include <ac_nonexistent.h>
11725 _ACEOF
11726 if ac_fn_cxx_try_cpp "$LINENO"; then :
11727 # Broken: success on invalid input.
11728 continue
11729 else
11730 # Passes both tests.
11731 ac_preproc_ok=:
11732 break
11733 fi
11734 rm -f conftest.err conftest.i conftest.$ac_ext
11735
11736 done
11737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11738 rm -f conftest.i conftest.err conftest.$ac_ext
11739 if $ac_preproc_ok; then :
11740 break
11741 fi
11742
11743 done
11744 ac_cv_prog_CXXCPP=$CXXCPP
11745
11746 fi
11747 CXXCPP=$ac_cv_prog_CXXCPP
11748 else
11749 ac_cv_prog_CXXCPP=$CXXCPP
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11752 $as_echo "$CXXCPP" >&6; }
11753 ac_preproc_ok=false
11754 for ac_cxx_preproc_warn_flag in '' yes
11755 do
11756 # Use a header file that comes with gcc, so configuring glibc
11757 # with a fresh cross-compiler works.
11758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 # <limits.h> exists even on freestanding compilers.
11760 # On the NeXT, cc -E runs the code through the compiler's parser,
11761 # not just through cpp. "Syntax error" is here to catch this case.
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #ifdef __STDC__
11765 # include <limits.h>
11766 #else
11767 # include <assert.h>
11768 #endif
11769 Syntax error
11770 _ACEOF
11771 if ac_fn_cxx_try_cpp "$LINENO"; then :
11772
11773 else
11774 # Broken: fails on valid input.
11775 continue
11776 fi
11777 rm -f conftest.err conftest.i conftest.$ac_ext
11778
11779 # OK, works on sane cases. Now check whether nonexistent headers
11780 # can be detected and how.
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783 #include <ac_nonexistent.h>
11784 _ACEOF
11785 if ac_fn_cxx_try_cpp "$LINENO"; then :
11786 # Broken: success on invalid input.
11787 continue
11788 else
11789 # Passes both tests.
11790 ac_preproc_ok=:
11791 break
11792 fi
11793 rm -f conftest.err conftest.i conftest.$ac_ext
11794
11795 done
11796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11797 rm -f conftest.i conftest.err conftest.$ac_ext
11798 if $ac_preproc_ok; then :
11799
11800 else
11801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11803 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11804 See \`config.log' for more details" "$LINENO" 5; }
11805 fi
11806
11807 ac_ext=cpp
11808 ac_cpp='$CXXCPP $CPPFLAGS'
11809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11812
11813
11814 for ac_header in boost/utility/string_ref.hpp
11815 do :
11816 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11817 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11818 cat >>confdefs.h <<_ACEOF
11819 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11820 _ACEOF
11821
11822 fi
11823
11824 done
11825
11826 # add boost_system bits for stapdyn with dyninst 10+
11827 saved_LIBS="$LIBS"
11828 LIBS="-lboost_system $LIBS"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking need for -lboost_system library" >&5
11830 $as_echo_n "checking need for -lboost_system library... " >&6; }
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833
11834 #include <boost/system/system_error.hpp>
11835 int main() {
11836 boost::system::error_condition e();
11837 }
11838
11839 _ACEOF
11840 if ac_fn_cxx_try_link "$LINENO"; then :
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yup" >&5
11842 $as_echo "yup" >&6; }
11843 BOOST_SYSTEM_LIB="-lboost_system"
11844
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
11847 $as_echo "nope" >&6; }
11848 BOOST_SYSTEM_LIB=""
11849
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS="$saved_LIBS"
11854
11855
11856 ac_ext=c
11857 ac_cpp='$CPP $CPPFLAGS'
11858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861
11862
11863 # Check for Dyninst headers and libraries
11864
11865 # Check whether --with-dyninst was given.
11866 if test "${with_dyninst+set}" = set; then :
11867 withval=$with_dyninst;
11868 fi
11869
11870
11871 case "$with_dyninst" in
11872 no) ;;
11873 ''|yes) # Try a simple-minded distro search
11874 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11875 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11876 ;;
11877 *) # Use paths in the user-specified prefix
11878 DYNINST_CXXFLAGS="-I$with_dyninst/include"
11879 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
11880 ;;
11881 esac
11882 if test "$with_dyninst" != "no"; then
11883 ac_ext=cpp
11884 ac_cpp='$CXXCPP $CPPFLAGS'
11885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11888
11889 old_CPPFLAGS="$CPPFLAGS"
11890 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11892 $as_echo "$as_me: checking dyninst support" >&6;}
11893 for ac_header in BPatch_object.h
11894 do :
11895 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_BPATCH_OBJECT_H 1
11899 _ACEOF
11900
11901
11902
11903
11904 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11905
11906 have_dyninst=yes
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11908 $as_echo "$as_me: dyninst support available" >&6;}
11909 fi
11910
11911 done
11912
11913 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11914 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11915 fi
11916 CPPFLAGS="$old_CPPFLAGS"
11917 ac_ext=c
11918 ac_cpp='$CPP $CPPFLAGS'
11919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11922
11923 fi
11924 if test "${have_dyninst}" = "yes"; then
11925 HAVE_DYNINST_TRUE=
11926 HAVE_DYNINST_FALSE='#'
11927 else
11928 HAVE_DYNINST_TRUE='#'
11929 HAVE_DYNINST_FALSE=
11930 fi
11931
11932
11933
11934
11935 # Check whether --enable-virt was given.
11936 if test "${enable_virt+set}" = set; then :
11937 enableval=$enable_virt; enable_virt=$enableval
11938 else
11939 enable_virt="check"
11940 fi
11941
11942
11943
11944 pkg_failed=no
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11946 $as_echo_n "checking for libvirt... " >&6; }
11947
11948 if test -n "$libvirt_CFLAGS"; then
11949 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11950 elif test -n "$PKG_CONFIG"; then
11951 if test -n "$PKG_CONFIG" && \
11952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11953 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11954 ac_status=$?
11955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11956 test $ac_status = 0; }; then
11957 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11958 test "x$?" != "x0" && pkg_failed=yes
11959 else
11960 pkg_failed=yes
11961 fi
11962 else
11963 pkg_failed=untried
11964 fi
11965 if test -n "$libvirt_LIBS"; then
11966 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
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_LIBS=`$PKG_CONFIG --libs "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
11983
11984
11985 if test $pkg_failed = yes; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988
11989 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11990 _pkg_short_errors_supported=yes
11991 else
11992 _pkg_short_errors_supported=no
11993 fi
11994 if test $_pkg_short_errors_supported = yes; then
11995 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11996 else
11997 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11998 fi
11999 # Put the nasty error message in config.log where it belongs
12000 echo "$libvirt_PKG_ERRORS" >&5
12001
12002 have_libvirt=no
12003 elif test $pkg_failed = untried; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 have_libvirt=no
12007 else
12008 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
12009 libvirt_LIBS=$pkg_cv_libvirt_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12012
12013 have_libvirt=yes
12014
12015 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
12016
12017
12018 fi
12019 if test "${have_libvirt}" = "yes"; then
12020 HAVE_LIBVIRT_TRUE=
12021 HAVE_LIBVIRT_FALSE='#'
12022 else
12023 HAVE_LIBVIRT_TRUE='#'
12024 HAVE_LIBVIRT_FALSE=
12025 fi
12026
12027
12028 pkg_failed=no
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
12030 $as_echo_n "checking for libxml2... " >&6; }
12031
12032 if test -n "$libxml2_CFLAGS"; then
12033 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
12034 elif test -n "$PKG_CONFIG"; then
12035 if test -n "$PKG_CONFIG" && \
12036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12037 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12038 ac_status=$?
12039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040 test $ac_status = 0; }; then
12041 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12042 test "x$?" != "x0" && pkg_failed=yes
12043 else
12044 pkg_failed=yes
12045 fi
12046 else
12047 pkg_failed=untried
12048 fi
12049 if test -n "$libxml2_LIBS"; then
12050 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
12051 elif test -n "$PKG_CONFIG"; then
12052 if test -n "$PKG_CONFIG" && \
12053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12054 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }; then
12058 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12059 test "x$?" != "x0" && pkg_failed=yes
12060 else
12061 pkg_failed=yes
12062 fi
12063 else
12064 pkg_failed=untried
12065 fi
12066
12067
12068
12069 if test $pkg_failed = yes; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072
12073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12074 _pkg_short_errors_supported=yes
12075 else
12076 _pkg_short_errors_supported=no
12077 fi
12078 if test $_pkg_short_errors_supported = yes; then
12079 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12080 else
12081 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12082 fi
12083 # Put the nasty error message in config.log where it belongs
12084 echo "$libxml2_PKG_ERRORS" >&5
12085
12086 have_libxml2=no
12087 elif test $pkg_failed = untried; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12090 have_libxml2=no
12091 else
12092 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
12093 libxml2_LIBS=$pkg_cv_libxml2_LIBS
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095 $as_echo "yes" >&6; }
12096
12097 have_libxml2=yes
12098
12099 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12100
12101
12102 fi
12103 if test "${have_libxml2}" = "yes"; then
12104 HAVE_LIBXML2_TRUE=
12105 HAVE_LIBXML2_FALSE='#'
12106 else
12107 HAVE_LIBXML2_TRUE='#'
12108 HAVE_LIBXML2_FALSE=
12109 fi
12110
12111
12112 if test "$enable_virt" != "no"; then
12113 if test "x${have_libvirt}" != "xyes"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
12115 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
12116 fi
12117 if test "x${have_libxml2}" != "xyes"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
12119 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
12120 fi
12121 fi
12122 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
12123 BUILD_VIRT_TRUE=
12124 BUILD_VIRT_FALSE='#'
12125 else
12126 BUILD_VIRT_TRUE='#'
12127 BUILD_VIRT_FALSE=
12128 fi
12129
12130
12131
12132 # Check whether --with-python2-probes was given.
12133 if test "${with_python2_probes+set}" = set; then :
12134 withval=$with_python2_probes;
12135 fi
12136
12137 have_python2_support=no
12138 if test "x$with_python2_probes" != "xno"; then :
12139 if test "x$PYTHON" != "x:"; then :
12140 for ac_prog in ${python_basename}-config python2-config python-config
12141 do
12142 # Extract the first word of "$ac_prog", so it can be a program name with args.
12143 set dummy $ac_prog; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 case $PYTHON_CONFIG in
12150 [\\/]* | ?:[\\/]*)
12151 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
12152 ;;
12153 *)
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12156 do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12164 fi
12165 done
12166 done
12167 IFS=$as_save_IFS
12168
12169 ;;
12170 esac
12171 fi
12172 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
12173 if test -n "$PYTHON_CONFIG"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
12175 $as_echo "$PYTHON_CONFIG" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12179 fi
12180
12181
12182 test -n "$PYTHON_CONFIG" && break
12183 done
12184
12185 fi
12186 if test "x$PYTHON_CONFIG" != "x"; then :
12187 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
12188 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
12189
12190 save_CPPFLAGS="$CPPFLAGS"
12191 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
12192 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12193 for ac_header in Python.h
12194 do :
12195 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12196 if test "x$ac_cv_header_Python_h" = xyes; then :
12197 cat >>confdefs.h <<_ACEOF
12198 #define HAVE_PYTHON_H 1
12199 _ACEOF
12200 have_python2_support=yes
12201 fi
12202
12203 done
12204
12205 CPPFLAGS="$save_CPPFLAGS"
12206 fi
12207 fi
12208 if test "x$have_python2_support" = "xyes"; then :
12209
12210 $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
12211
12212 else
12213 if test "x$with_python2_probes" = "xyes"; then :
12214 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
12215 fi
12216
12217 fi
12218 if test "x$have_python2_support" = "xyes"; then
12219 HAVE_PYTHON2_PROBES_TRUE=
12220 HAVE_PYTHON2_PROBES_FALSE='#'
12221 else
12222 HAVE_PYTHON2_PROBES_TRUE='#'
12223 HAVE_PYTHON2_PROBES_FALSE=
12224 fi
12225
12226
12227
12228 # Check whether --with-python3-probes was given.
12229 if test "${with_python3_probes+set}" = set; then :
12230 withval=$with_python3_probes;
12231 fi
12232
12233 have_python3_support=no
12234 if test "x$with_python3_probes" != "xno"; then :
12235 if test "x$PYTHON3" != "x:" ; then :
12236 # Extract the first word of "${python3_basename}-config", so it can be a program name with args.
12237 set dummy ${python3_basename}-config; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 case $PYTHON3_CONFIG in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH
12250 do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259 done
12260 done
12261 IFS=$as_save_IFS
12262
12263 ;;
12264 esac
12265 fi
12266 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
12267 if test -n "$PYTHON3_CONFIG"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
12269 $as_echo "$PYTHON3_CONFIG" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 fi
12274
12275
12276 fi
12277 if test "x$PYTHON3_CONFIG" != "x"; then :
12278 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
12279 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
12280
12281 save_CPPFLAGS="$CPPFLAGS"
12282 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
12283 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12284 for ac_header in Python.h
12285 do :
12286 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12287 if test "x$ac_cv_header_Python_h" = xyes; then :
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_PYTHON_H 1
12290 _ACEOF
12291 have_python3_support=yes
12292 fi
12293
12294 done
12295
12296 CPPFLAGS="$save_CPPFLAGS"
12297 fi
12298 fi
12299 if test "x$have_python3_support" = "xyes"; then :
12300
12301 $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
12302
12303 else
12304 if test "x$with_python3_probes" = "xyes"; then :
12305 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
12306 fi
12307
12308 fi
12309 if test "x$have_python3_support" = "xyes"; then
12310 HAVE_PYTHON3_PROBES_TRUE=
12311 HAVE_PYTHON3_PROBES_FALSE='#'
12312 else
12313 HAVE_PYTHON3_PROBES_TRUE='#'
12314 HAVE_PYTHON3_PROBES_FALSE=
12315 fi
12316
12317
12318 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
12319 HAVE_PYTHON_PROBES_TRUE=
12320 HAVE_PYTHON_PROBES_FALSE='#'
12321 else
12322 HAVE_PYTHON_PROBES_TRUE='#'
12323 HAVE_PYTHON_PROBES_FALSE=
12324 fi
12325
12326
12327
12328 pkg_failed=no
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12330 $as_echo_n "checking for jsonc... " >&6; }
12331
12332 if test -n "$jsonc_CFLAGS"; then
12333 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12334 elif test -n "$PKG_CONFIG"; then
12335 if test -n "$PKG_CONFIG" && \
12336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12337 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; then
12341 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
12342 test "x$?" != "x0" && pkg_failed=yes
12343 else
12344 pkg_failed=yes
12345 fi
12346 else
12347 pkg_failed=untried
12348 fi
12349 if test -n "$jsonc_LIBS"; then
12350 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12351 elif test -n "$PKG_CONFIG"; then
12352 if test -n "$PKG_CONFIG" && \
12353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
12354 ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
12355 ac_status=$?
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }; then
12358 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
12359 test "x$?" != "x0" && pkg_failed=yes
12360 else
12361 pkg_failed=yes
12362 fi
12363 else
12364 pkg_failed=untried
12365 fi
12366
12367
12368
12369 if test $pkg_failed = yes; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12372
12373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12374 _pkg_short_errors_supported=yes
12375 else
12376 _pkg_short_errors_supported=no
12377 fi
12378 if test $_pkg_short_errors_supported = yes; then
12379 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
12380 else
12381 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
12382 fi
12383 # Put the nasty error message in config.log where it belongs
12384 echo "$jsonc_PKG_ERRORS" >&5
12385
12386 have_jsonc=no
12387 elif test $pkg_failed = untried; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 have_jsonc=no
12391 else
12392 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12393 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12395 $as_echo "yes" >&6; }
12396 have_jsonc=yes
12397 fi
12398
12399 pkg_failed=no
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12401 $as_echo_n "checking for ncurses... " >&6; }
12402
12403 if test -n "$ncurses_CFLAGS"; then
12404 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12405 elif test -n "$PKG_CONFIG"; then
12406 if test -n "$PKG_CONFIG" && \
12407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12408 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12409 ac_status=$?
12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411 test $ac_status = 0; }; then
12412 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12413 test "x$?" != "x0" && pkg_failed=yes
12414 else
12415 pkg_failed=yes
12416 fi
12417 else
12418 pkg_failed=untried
12419 fi
12420 if test -n "$ncurses_LIBS"; then
12421 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12422 elif test -n "$PKG_CONFIG"; then
12423 if test -n "$PKG_CONFIG" && \
12424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12425 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12426 ac_status=$?
12427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12428 test $ac_status = 0; }; then
12429 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12430 test "x$?" != "x0" && pkg_failed=yes
12431 else
12432 pkg_failed=yes
12433 fi
12434 else
12435 pkg_failed=untried
12436 fi
12437
12438
12439
12440 if test $pkg_failed = yes; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443
12444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12445 _pkg_short_errors_supported=yes
12446 else
12447 _pkg_short_errors_supported=no
12448 fi
12449 if test $_pkg_short_errors_supported = yes; then
12450 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12451 else
12452 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12453 fi
12454 # Put the nasty error message in config.log where it belongs
12455 echo "$ncurses_PKG_ERRORS" >&5
12456
12457 have_ncurses=no
12458 elif test $pkg_failed = untried; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12461 have_ncurses=no
12462 else
12463 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12464 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12466 $as_echo "yes" >&6; }
12467 have_ncurses=yes
12468 fi
12469 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12470 HAVE_MONITOR_LIBS_TRUE=
12471 HAVE_MONITOR_LIBS_FALSE='#'
12472 else
12473 HAVE_MONITOR_LIBS_TRUE='#'
12474 HAVE_MONITOR_LIBS_FALSE=
12475 fi
12476
12477 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12478
12479 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12480
12481 fi
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12484 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12485 if ${stap_cv_sectionq+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488
12489 old_CFLAGS="$CFLAGS"
12490 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493 asm(".section .note.foo,\"?\",\"note\"\n"
12494 ".byte 1, 2, 3\n"
12495 ".previous\n"
12496 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12497 ".byte 1\n"
12498 ".pushsection .note.foo,\"?\",\"note\"\n"
12499 ".byte 4, 5, 6\n"
12500 ".popsection\n"
12501 ".byte 2\n");
12502 _ACEOF
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504 stap_cv_sectionq=yes
12505 else
12506 stap_cv_sectionq=no
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 CFLAGS="$old_CFLAGS"
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12512 $as_echo "$stap_cv_sectionq" >&6; }
12513
12514 support_section_question=0
12515 if test $stap_cv_sectionq = yes; then
12516 support_section_question=1
12517 fi
12518
12519
12520
12521 # Check whether --with-bpf was given.
12522 if test "${with_bpf+set}" = set; then :
12523 withval=$with_bpf;
12524 fi
12525
12526
12527 if test "x$with_bpf" != "xno"; then :
12528
12529 ac_fn_c_check_decl "$LINENO" "BPF_PROG_TYPE_PERF_EVENT" "ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" "#include <linux/bpf.h>
12530 "
12531 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = xyes; then :
12532 ac_have_decl=1
12533 else
12534 ac_have_decl=0
12535 fi
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_DECL_BPF_PROG_TYPE_PERF_EVENT $ac_have_decl
12539 _ACEOF
12540 if test $ac_have_decl = 1; then :
12541
12542 $as_echo "#define HAVE_BPF_DECLS 1" >>confdefs.h
12543
12544 fi
12545
12546
12547 fi
12548 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" == "xyes"; then
12549 HAVE_BPF_DECLS_TRUE=
12550 HAVE_BPF_DECLS_FALSE='#'
12551 else
12552 HAVE_BPF_DECLS_TRUE='#'
12553 HAVE_BPF_DECLS_FALSE=
12554 fi
12555
12556 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12557
12558
12559 ac_fn_c_check_decl "$LINENO" "BPF_PROG_TYPE_RAW_TRACEPOINT" "ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" "#include <linux/bpf.h>
12560 "
12561 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" = xyes; then :
12562 ac_have_decl=1
12563 else
12564 ac_have_decl=0
12565 fi
12566
12567 cat >>confdefs.h <<_ACEOF
12568 #define HAVE_DECL_BPF_PROG_TYPE_RAW_TRACEPOINT $ac_have_decl
12569 _ACEOF
12570 if test $ac_have_decl = 1; then :
12571
12572 $as_echo "#define HAVE_BPF_PROG_TYPE_RAW_TRACEPOINT 1" >>confdefs.h
12573
12574 fi
12575
12576
12577 if test $build_elfutils = yes -a $enable_translator = yes; then
12578 here=`pwd`
12579 case "$with_elfutils" in
12580 /*) elfutils_srcdir="$with_elfutils" ;;
12581 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12582 esac
12583
12584 if ! test -f ${elfutils_srcdir}/configure; then
12585 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12588 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12589
12590 save_CFLAGS="$CFLAGS"
12591 save_CXXFLAGS="$CXXFLAGS"
12592 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12593 CFLAGS="$CFLAGS -fgnu89-inline"
12594 gnu89_inline_flag=""
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int something ();
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12602 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12603 gnu89_inline_flag="-fgnu89-inline"
12604 else
12605
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12607 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 CFLAGS="$save_CFLAGS"
12611 CXXFLAGS="$save_CXXFLAGS"
12612
12613 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12614 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12615 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12616 # So we must make sure to pass those settings to elfutils configure.
12617 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12618 # Check whether this is a source release, or a source checkout.
12619 # We need --enable-maintainer-mode if it isn't a source release.
12620 # elfutils.spec is only distributed in source releases.
12621 if test -f ${elfutils_srcdir}/elfutils.spec; then
12622 need_maintainer_option=""
12623 else
12624 need_maintainer_option="--enable-maintainer-mode"
12625 fi
12626 (mkdir -p build-elfutils && cd build-elfutils &&
12627 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12628 --includedir="${here}/include-elfutils" \
12629 --libdir="${here}/lib-elfutils" \
12630 --exec-prefix="$exec_prefix" \
12631 --prefix="$prefix" \
12632 --enable-dwz \
12633 ${need_maintainer_option} \
12634 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12635 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12636 if test -f ${elfutils_srcdir}/config/version.h.in; then
12637 echo Found elfutils/version.h header...
12638 else
12639 echo elfutils/version.h header not found, need elfutils 0.142+...
12640 exit -1
12641 fi
12642 )
12643 if test $? != 0; then exit -1; fi
12644 fi
12645
12646
12647 # Check whether --with-selinux was given.
12648 if test "${with_selinux+set}" = set; then :
12649 withval=$with_selinux;
12650 fi
12651
12652
12653 if test "x$with_selinux" != "xno"; then :
12654
12655
12656 pkg_failed=no
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12658 $as_echo_n "checking for selinux... " >&6; }
12659
12660 if test -n "$selinux_CFLAGS"; then
12661 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12662 elif test -n "$PKG_CONFIG"; then
12663 if test -n "$PKG_CONFIG" && \
12664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12665 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12666 ac_status=$?
12667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668 test $ac_status = 0; }; then
12669 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12670 test "x$?" != "x0" && pkg_failed=yes
12671 else
12672 pkg_failed=yes
12673 fi
12674 else
12675 pkg_failed=untried
12676 fi
12677 if test -n "$selinux_LIBS"; then
12678 pkg_cv_selinux_LIBS="$selinux_LIBS"
12679 elif test -n "$PKG_CONFIG"; then
12680 if test -n "$PKG_CONFIG" && \
12681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12682 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12683 ac_status=$?
12684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685 test $ac_status = 0; }; then
12686 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12687 test "x$?" != "x0" && pkg_failed=yes
12688 else
12689 pkg_failed=yes
12690 fi
12691 else
12692 pkg_failed=untried
12693 fi
12694
12695
12696
12697 if test $pkg_failed = yes; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12700
12701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12702 _pkg_short_errors_supported=yes
12703 else
12704 _pkg_short_errors_supported=no
12705 fi
12706 if test $_pkg_short_errors_supported = yes; then
12707 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12708 else
12709 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12710 fi
12711 # Put the nasty error message in config.log where it belongs
12712 echo "$selinux_PKG_ERRORS" >&5
12713
12714 have_selinux=no
12715 elif test $pkg_failed = untried; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 have_selinux=no
12719 else
12720 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12721 selinux_LIBS=$pkg_cv_selinux_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723 $as_echo "yes" >&6; }
12724 have_selinux=yes
12725
12726 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12727
12728
12729 fi
12730
12731 else
12732 have_selinux=no
12733 fi
12734
12735 if test "${have_selinux}" = "yes"; then
12736 HAVE_SELINUX_TRUE=
12737 HAVE_SELINUX_FALSE='#'
12738 else
12739 HAVE_SELINUX_TRUE='#'
12740 HAVE_SELINUX_FALSE=
12741 fi
12742
12743
12744 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12745 "
12746 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12747
12748 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12749
12750 fi
12751
12752
12753 # Extract the first word of "javac", so it can be a program name with args.
12754 set dummy javac; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if ${ac_cv_prog_have_javac+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 if test -n "$have_javac"; then
12761 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12762 else
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_have_javac="yes"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774 done
12775 done
12776 IFS=$as_save_IFS
12777
12778 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12779 fi
12780 fi
12781 have_javac=$ac_cv_prog_have_javac
12782 if test -n "$have_javac"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12784 $as_echo "$have_javac" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791 # Extract the first word of "jar", so it can be a program name with args.
12792 set dummy jar; ac_word=$2
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794 $as_echo_n "checking for $ac_word... " >&6; }
12795 if ${ac_cv_prog_have_jar+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 if test -n "$have_jar"; then
12799 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12800 else
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804 IFS=$as_save_IFS
12805 test -z "$as_dir" && as_dir=.
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808 ac_cv_prog_have_jar="yes"
12809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 break 2
12811 fi
12812 done
12813 done
12814 IFS=$as_save_IFS
12815
12816 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12817 fi
12818 fi
12819 have_jar=$ac_cv_prog_have_jar
12820 if test -n "$have_jar"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12822 $as_echo "$have_jar" >&6; }
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827
12828
12829 if test "$have_javac" != no -a "$have_jar" != no; then
12830 echo java found, will try to configure Byteman support
12831
12832
12833 # Check whether --with-java was given.
12834 if test "${with_java+set}" = set; then :
12835 withval=$with_java;
12836 else
12837 with_java=/usr/lib/jvm/java
12838 fi
12839
12840 if test ! -d "$with_java"; then
12841 with_java=no
12842 fi
12843 JAVADIR="${with_java}"
12844 # always needed to compile
12845
12846 if test "$with_java" != "no"; then
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define HAVE_JAVA "1"
12850 _ACEOF
12851
12852 fi
12853
12854 if test "$with_java" != "no"; then
12855 HAVE_JAVA_TRUE=
12856 HAVE_JAVA_FALSE='#'
12857 else
12858 HAVE_JAVA_TRUE='#'
12859 HAVE_JAVA_FALSE=
12860 fi
12861
12862
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12865 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12866 if false; then
12867 HAVE_JAVA_TRUE=
12868 HAVE_JAVA_FALSE='#'
12869 else
12870 HAVE_JAVA_TRUE='#'
12871 HAVE_JAVA_FALSE=
12872 fi
12873
12874 fi # java+byteman support
12875
12876 ENABLE_NLS="$USE_NLS"
12877
12878 localedir="$localedir"
12879
12880 LOCALEDIR="$localedir"
12881
12882
12883
12884 # Check whether --with-extra-version was given.
12885 if test "${with_extra_version+set}" = set; then :
12886 withval=$with_extra_version;
12887 fi
12888
12889 if test "x$with_extra_version" != "xno"; then :
12890
12891 stap_extra_version="$with_extra_version"
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12893 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12894 else
12895
12896 stap_extra_version=""
12897 fi
12898
12899 cat >>confdefs.h <<_ACEOF
12900 #define STAP_EXTRA_VERSION "$stap_extra_version"
12901 _ACEOF
12902
12903 STAP_EXTRA_VERSION="$stap_extra_version"
12904
12905
12906 # Check whether --enable-http was given.
12907 if test "${enable_http+set}" = set; then :
12908 enableval=$enable_http;
12909 fi
12910
12911 have_http_support=no
12912 if test "x$enable_http" = "xyes"; then :
12913
12914 pkg_failed=no
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
12916 $as_echo_n "checking for libmicrohttpd... " >&6; }
12917
12918 if test -n "$libmicrohttpd_CFLAGS"; then
12919 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
12920 elif test -n "$PKG_CONFIG"; then
12921 if test -n "$PKG_CONFIG" && \
12922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12923 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12924 ac_status=$?
12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; }; then
12927 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
12928 test "x$?" != "x0" && pkg_failed=yes
12929 else
12930 pkg_failed=yes
12931 fi
12932 else
12933 pkg_failed=untried
12934 fi
12935 if test -n "$libmicrohttpd_LIBS"; then
12936 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
12937 elif test -n "$PKG_CONFIG"; then
12938 if test -n "$PKG_CONFIG" && \
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12940 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; }; then
12944 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
12945 test "x$?" != "x0" && pkg_failed=yes
12946 else
12947 pkg_failed=yes
12948 fi
12949 else
12950 pkg_failed=untried
12951 fi
12952
12953
12954
12955 if test $pkg_failed = yes; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12958
12959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12960 _pkg_short_errors_supported=yes
12961 else
12962 _pkg_short_errors_supported=no
12963 fi
12964 if test $_pkg_short_errors_supported = yes; then
12965 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12966 else
12967 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12968 fi
12969 # Put the nasty error message in config.log where it belongs
12970 echo "$libmicrohttpd_PKG_ERRORS" >&5
12971
12972 have_libmicrohttpd=false
12973 elif test $pkg_failed = untried; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 have_libmicrohttpd=false
12977 else
12978 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
12979 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 $as_echo "yes" >&6; }
12982 have_libmicrohttpd=true
12983 fi
12984
12985
12986 pkg_failed=no
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
12988 $as_echo_n "checking for uuid... " >&6; }
12989
12990 if test -n "$uuid_CFLAGS"; then
12991 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
12992 elif test -n "$PKG_CONFIG"; then
12993 if test -n "$PKG_CONFIG" && \
12994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12995 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12998 test $ac_status = 0; }; then
12999 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
13000 test "x$?" != "x0" && pkg_failed=yes
13001 else
13002 pkg_failed=yes
13003 fi
13004 else
13005 pkg_failed=untried
13006 fi
13007 if test -n "$uuid_LIBS"; then
13008 pkg_cv_uuid_LIBS="$uuid_LIBS"
13009 elif test -n "$PKG_CONFIG"; then
13010 if test -n "$PKG_CONFIG" && \
13011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
13012 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
13013 ac_status=$?
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; then
13016 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
13017 test "x$?" != "x0" && pkg_failed=yes
13018 else
13019 pkg_failed=yes
13020 fi
13021 else
13022 pkg_failed=untried
13023 fi
13024
13025
13026
13027 if test $pkg_failed = yes; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030
13031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13032 _pkg_short_errors_supported=yes
13033 else
13034 _pkg_short_errors_supported=no
13035 fi
13036 if test $_pkg_short_errors_supported = yes; then
13037 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
13038 else
13039 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
13040 fi
13041 # Put the nasty error message in config.log where it belongs
13042 echo "$uuid_PKG_ERRORS" >&5
13043
13044 have_libuuid=false
13045 elif test $pkg_failed = untried; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 have_libuuid=false
13049 else
13050 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
13051 uuid_LIBS=$pkg_cv_uuid_LIBS
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13053 $as_echo "yes" >&6; }
13054 have_libuuid=true
13055 fi
13056
13057
13058 pkg_failed=no
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
13060 $as_echo_n "checking for libcurl... " >&6; }
13061
13062 if test -n "$libcurl_CFLAGS"; then
13063 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
13064 elif test -n "$PKG_CONFIG"; then
13065 if test -n "$PKG_CONFIG" && \
13066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13067 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
13068 ac_status=$?
13069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070 test $ac_status = 0; }; then
13071 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
13072 test "x$?" != "x0" && pkg_failed=yes
13073 else
13074 pkg_failed=yes
13075 fi
13076 else
13077 pkg_failed=untried
13078 fi
13079 if test -n "$libcurl_LIBS"; then
13080 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
13081 elif test -n "$PKG_CONFIG"; then
13082 if test -n "$PKG_CONFIG" && \
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
13084 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
13085 ac_status=$?
13086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13087 test $ac_status = 0; }; then
13088 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
13089 test "x$?" != "x0" && pkg_failed=yes
13090 else
13091 pkg_failed=yes
13092 fi
13093 else
13094 pkg_failed=untried
13095 fi
13096
13097
13098
13099 if test $pkg_failed = yes; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102
13103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13104 _pkg_short_errors_supported=yes
13105 else
13106 _pkg_short_errors_supported=no
13107 fi
13108 if test $_pkg_short_errors_supported = yes; then
13109 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
13110 else
13111 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
13112 fi
13113 # Put the nasty error message in config.log where it belongs
13114 echo "$libcurl_PKG_ERRORS" >&5
13115
13116 have_libcurl=false
13117 elif test $pkg_failed = untried; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120 have_libcurl=false
13121 else
13122 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
13123 libcurl_LIBS=$pkg_cv_libcurl_LIBS
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13125 $as_echo "yes" >&6; }
13126 have_libcurl=true
13127 fi
13128
13129 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 :
13130 have_http_support=yes
13131 fi
13132 fi
13133
13134 if test "x$have_http_support" = "xyes"; then :
13135
13136 $as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
13137
13138 else
13139 if test "x$enable_http" = "xyes"; then :
13140 as_fn_error $? "http service support requested but not found" "$LINENO" 5
13141 fi
13142
13143 fi
13144 if test "x$have_http_support" = "xyes"; then
13145 HAVE_HTTP_SUPPORT_TRUE=
13146 HAVE_HTTP_SUPPORT_FALSE='#'
13147 else
13148 HAVE_HTTP_SUPPORT_TRUE='#'
13149 HAVE_HTTP_SUPPORT_FALSE=
13150 fi
13151
13152
13153 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
13154 NEED_BASE_CLIENT_CODE_TRUE=
13155 NEED_BASE_CLIENT_CODE_FALSE='#'
13156 else
13157 NEED_BASE_CLIENT_CODE_TRUE='#'
13158 NEED_BASE_CLIENT_CODE_FALSE=
13159 fi
13160
13161 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then :
13162
13163
13164 $as_echo "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
13165
13166
13167 fi
13168
13169
13170 stap_prefix=$prefix
13171 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
13172
13173 cat >>confdefs.h <<_ACEOF
13174 #define STAP_PREFIX "$stap_prefix"
13175 _ACEOF
13176
13177 STAP_PREFIX="$stap_prefix"
13178
13179
13180 ac_config_headers="$ac_config_headers config.h:config.in"
13181
13182
13183
13184 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"
13185
13186
13187
13188 subdirs="$subdirs testsuite"
13189
13190 if test $enable_translator == "yes"; then
13191 ac_config_files="$ac_config_files run-stap"
13192
13193 fi
13194 ac_config_files="$ac_config_files dtrace"
13195
13196 ac_config_files="$ac_config_files stapdyn/Makefile"
13197
13198 ac_config_files="$ac_config_files java/Makefile"
13199
13200 ac_config_files="$ac_config_files java/stapbm"
13201
13202 ac_config_files="$ac_config_files python/Makefile"
13203
13204 ac_config_files="$ac_config_files staprun/Makefile"
13205
13206 ac_config_files="$ac_config_files stapbpf/Makefile"
13207
13208 ac_config_files="$ac_config_files httpd/Makefile httpd/docker/Makefile"
13209
13210 ac_config_files="$ac_config_files staprun/run-staprun"
13211
13212 ac_config_files="$ac_config_files staprun/guest/stapshd"
13213
13214 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
13215
13216 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
13217
13218 ac_config_files="$ac_config_files stap-exporter/Makefile"
13219
13220
13221
13222 # Setup "shadow" directory doc/beginners that has the basic directories setup for
13223 # xmlto in one directory (through directory links if necessary).
13224 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
13225 # the src is a directory and not a file.
13226 ac_config_commands="$ac_config_commands doc/beginners"
13227
13228
13229 cat >confcache <<\_ACEOF
13230 # This file is a shell script that caches the results of configure
13231 # tests run on this system so they can be shared between configure
13232 # scripts and configure runs, see configure's option --config-cache.
13233 # It is not useful on other systems. If it contains results you don't
13234 # want to keep, you may remove or edit it.
13235 #
13236 # config.status only pays attention to the cache file if you give it
13237 # the --recheck option to rerun configure.
13238 #
13239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13241 # following values.
13242
13243 _ACEOF
13244
13245 # The following way of writing the cache mishandles newlines in values,
13246 # but we know of no workaround that is simple, portable, and efficient.
13247 # So, we kill variables containing newlines.
13248 # Ultrix sh set writes to stderr and can't be redirected directly,
13249 # and sets the high bit in the cache file unless we assign to the vars.
13250 (
13251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13252 eval ac_val=\$$ac_var
13253 case $ac_val in #(
13254 *${as_nl}*)
13255 case $ac_var in #(
13256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13258 esac
13259 case $ac_var in #(
13260 _ | IFS | as_nl) ;; #(
13261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13262 *) { eval $ac_var=; unset $ac_var;} ;;
13263 esac ;;
13264 esac
13265 done
13266
13267 (set) 2>&1 |
13268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13269 *${as_nl}ac_space=\ *)
13270 # `set' does not quote correctly, so add quotes: double-quote
13271 # substitution turns \\\\ into \\, and sed turns \\ into \.
13272 sed -n \
13273 "s/'/'\\\\''/g;
13274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13275 ;; #(
13276 *)
13277 # `set' quotes correctly as required by POSIX, so do not add quotes.
13278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13279 ;;
13280 esac |
13281 sort
13282 ) |
13283 sed '
13284 /^ac_cv_env_/b end
13285 t clear
13286 :clear
13287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13288 t end
13289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13290 :end' >>confcache
13291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13292 if test -w "$cache_file"; then
13293 if test "x$cache_file" != "x/dev/null"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13295 $as_echo "$as_me: updating cache $cache_file" >&6;}
13296 if test ! -f "$cache_file" || test -h "$cache_file"; then
13297 cat confcache >"$cache_file"
13298 else
13299 case $cache_file in #(
13300 */* | ?:*)
13301 mv -f confcache "$cache_file"$$ &&
13302 mv -f "$cache_file"$$ "$cache_file" ;; #(
13303 *)
13304 mv -f confcache "$cache_file" ;;
13305 esac
13306 fi
13307 fi
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13311 fi
13312 fi
13313 rm -f confcache
13314
13315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13316 # Let make expand exec_prefix.
13317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13318
13319 DEFS=-DHAVE_CONFIG_H
13320
13321 ac_libobjs=
13322 ac_ltlibobjs=
13323 U=
13324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13325 # 1. Remove the extension, and $U if already installed.
13326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13327 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13329 # will be set to the directory where LIBOBJS objects are built.
13330 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13331 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13332 done
13333 LIBOBJS=$ac_libobjs
13334
13335 LTLIBOBJS=$ac_ltlibobjs
13336
13337
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13339 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13340 if test -n "$am_sleep_pid"; then
13341 # Hide warnings about reused PIDs.
13342 wait $am_sleep_pid 2>/dev/null
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13345 $as_echo "done" >&6; }
13346 if test -n "$EXEEXT"; then
13347 am__EXEEXT_TRUE=
13348 am__EXEEXT_FALSE='#'
13349 else
13350 am__EXEEXT_TRUE='#'
13351 am__EXEEXT_FALSE=
13352 fi
13353
13354 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13355 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13357 fi
13358 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13359 as_fn_error $? "conditional \"AMDEP\" was never defined.
13360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13361 fi
13362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13363 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13365 fi
13366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13367 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13369 fi
13370 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13371 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13373 fi
13374 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
13375 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
13376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13377 fi
13378 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
13379 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
13380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13381 fi
13382 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13383 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13385 fi
13386 if test -z "${INSTALL_PREBUILT_DOCS_TRUE}" && test -z "${INSTALL_PREBUILT_DOCS_FALSE}"; then
13387 as_fn_error $? "conditional \"INSTALL_PREBUILT_DOCS\" was never defined.
13388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13389 fi
13390 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
13391 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
13392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13393 fi
13394 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13395 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13397 fi
13398 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13399 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13401 fi
13402 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13403 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13405 fi
13406 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13407 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
13408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13409 fi
13410 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13411 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
13412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13413 fi
13414 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
13415 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
13416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13417 fi
13418 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13419 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
13420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13421 fi
13422 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13423 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
13424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13425 fi
13426 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13427 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13429 fi
13430 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13431 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
13432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13433 fi
13434 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13435 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13437 fi
13438 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13439 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13441 fi
13442 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13443 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13445 fi
13446 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13447 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13449 fi
13450 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
13451 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
13452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13453 fi
13454 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
13455 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
13456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13457 fi
13458 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
13459 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
13460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13461 fi
13462 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13463 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13465 fi
13466 if test -z "${HAVE_BPF_DECLS_TRUE}" && test -z "${HAVE_BPF_DECLS_FALSE}"; then
13467 as_fn_error $? "conditional \"HAVE_BPF_DECLS\" was never defined.
13468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13469 fi
13470 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13471 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13473 fi
13474 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13475 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13477 fi
13478 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13479 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13481 fi
13482 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
13483 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
13484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13485 fi
13486 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
13487 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
13488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13489 fi
13490
13491 : "${CONFIG_STATUS=./config.status}"
13492 ac_write_fail=0
13493 ac_clean_files_save=$ac_clean_files
13494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13497 as_write_fail=0
13498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13499 #! $SHELL
13500 # Generated by $as_me.
13501 # Run this file to recreate the current configuration.
13502 # Compiler output produced by configure, useful for debugging
13503 # configure, is in config.log if it exists.
13504
13505 debug=false
13506 ac_cs_recheck=false
13507 ac_cs_silent=false
13508
13509 SHELL=\${CONFIG_SHELL-$SHELL}
13510 export SHELL
13511 _ASEOF
13512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13513 ## -------------------- ##
13514 ## M4sh Initialization. ##
13515 ## -------------------- ##
13516
13517 # Be more Bourne compatible
13518 DUALCASE=1; export DUALCASE # for MKS sh
13519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13520 emulate sh
13521 NULLCMD=:
13522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13523 # is contrary to our usage. Disable this feature.
13524 alias -g '${1+"$@"}'='"$@"'
13525 setopt NO_GLOB_SUBST
13526 else
13527 case `(set -o) 2>/dev/null` in #(
13528 *posix*) :
13529 set -o posix ;; #(
13530 *) :
13531 ;;
13532 esac
13533 fi
13534
13535
13536 as_nl='
13537 '
13538 export as_nl
13539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13543 # Prefer a ksh shell builtin over an external printf program on Solaris,
13544 # but without wasting forks for bash or zsh.
13545 if test -z "$BASH_VERSION$ZSH_VERSION" \
13546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13547 as_echo='print -r --'
13548 as_echo_n='print -rn --'
13549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13550 as_echo='printf %s\n'
13551 as_echo_n='printf %s'
13552 else
13553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13555 as_echo_n='/usr/ucb/echo -n'
13556 else
13557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13558 as_echo_n_body='eval
13559 arg=$1;
13560 case $arg in #(
13561 *"$as_nl"*)
13562 expr "X$arg" : "X\\(.*\\)$as_nl";
13563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13564 esac;
13565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13566 '
13567 export as_echo_n_body
13568 as_echo_n='sh -c $as_echo_n_body as_echo'
13569 fi
13570 export as_echo_body
13571 as_echo='sh -c $as_echo_body as_echo'
13572 fi
13573
13574 # The user is always right.
13575 if test "${PATH_SEPARATOR+set}" != set; then
13576 PATH_SEPARATOR=:
13577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13579 PATH_SEPARATOR=';'
13580 }
13581 fi
13582
13583
13584 # IFS
13585 # We need space, tab and new line, in precisely that order. Quoting is
13586 # there to prevent editors from complaining about space-tab.
13587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13588 # splitting by setting IFS to empty value.)
13589 IFS=" "" $as_nl"
13590
13591 # Find who we are. Look in the path if we contain no directory separator.
13592 as_myself=
13593 case $0 in #((
13594 *[\\/]* ) as_myself=$0 ;;
13595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13597 do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13601 done
13602 IFS=$as_save_IFS
13603
13604 ;;
13605 esac
13606 # We did not find ourselves, most probably we were run as `sh COMMAND'
13607 # in which case we are not to be found in the path.
13608 if test "x$as_myself" = x; then
13609 as_myself=$0
13610 fi
13611 if test ! -f "$as_myself"; then
13612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13613 exit 1
13614 fi
13615
13616 # Unset variables that we do not need and which cause bugs (e.g. in
13617 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13618 # suppresses any "Segmentation fault" message there. '((' could
13619 # trigger a bug in pdksh 5.2.14.
13620 for as_var in BASH_ENV ENV MAIL MAILPATH
13621 do eval test x\${$as_var+set} = xset \
13622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13623 done
13624 PS1='$ '
13625 PS2='> '
13626 PS4='+ '
13627
13628 # NLS nuisances.
13629 LC_ALL=C
13630 export LC_ALL
13631 LANGUAGE=C
13632 export LANGUAGE
13633
13634 # CDPATH.
13635 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13636
13637
13638 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13639 # ----------------------------------------
13640 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13641 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13642 # script with STATUS, using 1 if that was 0.
13643 as_fn_error ()
13644 {
13645 as_status=$1; test $as_status -eq 0 && as_status=1
13646 if test "$4"; then
13647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13649 fi
13650 $as_echo "$as_me: error: $2" >&2
13651 as_fn_exit $as_status
13652 } # as_fn_error
13653
13654
13655 # as_fn_set_status STATUS
13656 # -----------------------
13657 # Set $? to STATUS, without forking.
13658 as_fn_set_status ()
13659 {
13660 return $1
13661 } # as_fn_set_status
13662
13663 # as_fn_exit STATUS
13664 # -----------------
13665 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13666 as_fn_exit ()
13667 {
13668 set +e
13669 as_fn_set_status $1
13670 exit $1
13671 } # as_fn_exit
13672
13673 # as_fn_unset VAR
13674 # ---------------
13675 # Portably unset VAR.
13676 as_fn_unset ()
13677 {
13678 { eval $1=; unset $1;}
13679 }
13680 as_unset=as_fn_unset
13681 # as_fn_append VAR VALUE
13682 # ----------------------
13683 # Append the text in VALUE to the end of the definition contained in VAR. Take
13684 # advantage of any shell optimizations that allow amortized linear growth over
13685 # repeated appends, instead of the typical quadratic growth present in naive
13686 # implementations.
13687 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13688 eval 'as_fn_append ()
13689 {
13690 eval $1+=\$2
13691 }'
13692 else
13693 as_fn_append ()
13694 {
13695 eval $1=\$$1\$2
13696 }
13697 fi # as_fn_append
13698
13699 # as_fn_arith ARG...
13700 # ------------------
13701 # Perform arithmetic evaluation on the ARGs, and store the result in the
13702 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13703 # must be portable across $(()) and expr.
13704 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13705 eval 'as_fn_arith ()
13706 {
13707 as_val=$(( $* ))
13708 }'
13709 else
13710 as_fn_arith ()
13711 {
13712 as_val=`expr "$@" || test $? -eq 1`
13713 }
13714 fi # as_fn_arith
13715
13716
13717 if expr a : '\(a\)' >/dev/null 2>&1 &&
13718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13719 as_expr=expr
13720 else
13721 as_expr=false
13722 fi
13723
13724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13725 as_basename=basename
13726 else
13727 as_basename=false
13728 fi
13729
13730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13731 as_dirname=dirname
13732 else
13733 as_dirname=false
13734 fi
13735
13736 as_me=`$as_basename -- "$0" ||
13737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13738 X"$0" : 'X\(//\)$' \| \
13739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13740 $as_echo X/"$0" |
13741 sed '/^.*\/\([^/][^/]*\)\/*$/{
13742 s//\1/
13743 q
13744 }
13745 /^X\/\(\/\/\)$/{
13746 s//\1/
13747 q
13748 }
13749 /^X\/\(\/\).*/{
13750 s//\1/
13751 q
13752 }
13753 s/.*/./; q'`
13754
13755 # Avoid depending upon Character Ranges.
13756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13759 as_cr_digits='0123456789'
13760 as_cr_alnum=$as_cr_Letters$as_cr_digits
13761
13762 ECHO_C= ECHO_N= ECHO_T=
13763 case `echo -n x` in #(((((
13764 -n*)
13765 case `echo 'xy\c'` in
13766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13767 xy) ECHO_C='\c';;
13768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13769 ECHO_T=' ';;
13770 esac;;
13771 *)
13772 ECHO_N='-n';;
13773 esac
13774
13775 rm -f conf$$ conf$$.exe conf$$.file
13776 if test -d conf$$.dir; then
13777 rm -f conf$$.dir/conf$$.file
13778 else
13779 rm -f conf$$.dir
13780 mkdir conf$$.dir 2>/dev/null
13781 fi
13782 if (echo >conf$$.file) 2>/dev/null; then
13783 if ln -s conf$$.file conf$$ 2>/dev/null; then
13784 as_ln_s='ln -s'
13785 # ... but there are two gotchas:
13786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13788 # In both cases, we have to default to `cp -pR'.
13789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13790 as_ln_s='cp -pR'
13791 elif ln conf$$.file conf$$ 2>/dev/null; then
13792 as_ln_s=ln
13793 else
13794 as_ln_s='cp -pR'
13795 fi
13796 else
13797 as_ln_s='cp -pR'
13798 fi
13799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13800 rmdir conf$$.dir 2>/dev/null
13801
13802
13803 # as_fn_mkdir_p
13804 # -------------
13805 # Create "$as_dir" as a directory, including parents if necessary.
13806 as_fn_mkdir_p ()
13807 {
13808
13809 case $as_dir in #(
13810 -*) as_dir=./$as_dir;;
13811 esac
13812 test -d "$as_dir" || eval $as_mkdir_p || {
13813 as_dirs=
13814 while :; do
13815 case $as_dir in #(
13816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13817 *) as_qdir=$as_dir;;
13818 esac
13819 as_dirs="'$as_qdir' $as_dirs"
13820 as_dir=`$as_dirname -- "$as_dir" ||
13821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13822 X"$as_dir" : 'X\(//\)[^/]' \| \
13823 X"$as_dir" : 'X\(//\)$' \| \
13824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13825 $as_echo X"$as_dir" |
13826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13827 s//\1/
13828 q
13829 }
13830 /^X\(\/\/\)[^/].*/{
13831 s//\1/
13832 q
13833 }
13834 /^X\(\/\/\)$/{
13835 s//\1/
13836 q
13837 }
13838 /^X\(\/\).*/{
13839 s//\1/
13840 q
13841 }
13842 s/.*/./; q'`
13843 test -d "$as_dir" && break
13844 done
13845 test -z "$as_dirs" || eval "mkdir $as_dirs"
13846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13847
13848
13849 } # as_fn_mkdir_p
13850 if mkdir -p . 2>/dev/null; then
13851 as_mkdir_p='mkdir -p "$as_dir"'
13852 else
13853 test -d ./-p && rmdir ./-p
13854 as_mkdir_p=false
13855 fi
13856
13857
13858 # as_fn_executable_p FILE
13859 # -----------------------
13860 # Test if FILE is an executable regular file.
13861 as_fn_executable_p ()
13862 {
13863 test -f "$1" && test -x "$1"
13864 } # as_fn_executable_p
13865 as_test_x='test -x'
13866 as_executable_p=as_fn_executable_p
13867
13868 # Sed expression to map a string onto a valid CPP name.
13869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13870
13871 # Sed expression to map a string onto a valid variable name.
13872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13873
13874
13875 exec 6>&1
13876 ## ----------------------------------- ##
13877 ## Main body of $CONFIG_STATUS script. ##
13878 ## ----------------------------------- ##
13879 _ASEOF
13880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13881
13882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13883 # Save the log message, to keep $0 and so on meaningful, and to
13884 # report actual input values of CONFIG_FILES etc. instead of their
13885 # values after options handling.
13886 ac_log="
13887 This file was extended by systemtap $as_me 4.2, which was
13888 generated by GNU Autoconf 2.69. Invocation command line was
13889
13890 CONFIG_FILES = $CONFIG_FILES
13891 CONFIG_HEADERS = $CONFIG_HEADERS
13892 CONFIG_LINKS = $CONFIG_LINKS
13893 CONFIG_COMMANDS = $CONFIG_COMMANDS
13894 $ $0 $@
13895
13896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13897 "
13898
13899 _ACEOF
13900
13901 case $ac_config_files in *"
13902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13903 esac
13904
13905 case $ac_config_headers in *"
13906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13907 esac
13908
13909
13910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 # Files that config.status was made for.
13912 config_files="$ac_config_files"
13913 config_headers="$ac_config_headers"
13914 config_commands="$ac_config_commands"
13915
13916 _ACEOF
13917
13918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13919 ac_cs_usage="\
13920 \`$as_me' instantiates files and other configuration actions
13921 from templates according to the current configuration. Unless the files
13922 and actions are specified as TAGs, all are instantiated by default.
13923
13924 Usage: $0 [OPTION]... [TAG]...
13925
13926 -h, --help print this help, then exit
13927 -V, --version print version number and configuration settings, then exit
13928 --config print configuration, then exit
13929 -q, --quiet, --silent
13930 do not print progress messages
13931 -d, --debug don't remove temporary files
13932 --recheck update $as_me by reconfiguring in the same conditions
13933 --file=FILE[:TEMPLATE]
13934 instantiate the configuration file FILE
13935 --header=FILE[:TEMPLATE]
13936 instantiate the configuration header FILE
13937
13938 Configuration files:
13939 $config_files
13940
13941 Configuration headers:
13942 $config_headers
13943
13944 Configuration commands:
13945 $config_commands
13946
13947 Report bugs to <systemtap@sourceware.org>."
13948
13949 _ACEOF
13950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13952 ac_cs_version="\\
13953 systemtap config.status 4.2
13954 configured by $0, generated by GNU Autoconf 2.69,
13955 with options \\"\$ac_cs_config\\"
13956
13957 Copyright (C) 2012 Free Software Foundation, Inc.
13958 This config.status script is free software; the Free Software Foundation
13959 gives unlimited permission to copy, distribute and modify it."
13960
13961 ac_pwd='$ac_pwd'
13962 srcdir='$srcdir'
13963 INSTALL='$INSTALL'
13964 MKDIR_P='$MKDIR_P'
13965 AWK='$AWK'
13966 test -n "\$AWK" || AWK=awk
13967 _ACEOF
13968
13969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13970 # The default lists apply if the user does not specify any file.
13971 ac_need_defaults=:
13972 while test $# != 0
13973 do
13974 case $1 in
13975 --*=?*)
13976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13978 ac_shift=:
13979 ;;
13980 --*=)
13981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13982 ac_optarg=
13983 ac_shift=:
13984 ;;
13985 *)
13986 ac_option=$1
13987 ac_optarg=$2
13988 ac_shift=shift
13989 ;;
13990 esac
13991
13992 case $ac_option in
13993 # Handling of the options.
13994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13995 ac_cs_recheck=: ;;
13996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13997 $as_echo "$ac_cs_version"; exit ;;
13998 --config | --confi | --conf | --con | --co | --c )
13999 $as_echo "$ac_cs_config"; exit ;;
14000 --debug | --debu | --deb | --de | --d | -d )
14001 debug=: ;;
14002 --file | --fil | --fi | --f )
14003 $ac_shift
14004 case $ac_optarg in
14005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14006 '') as_fn_error $? "missing file argument" ;;
14007 esac
14008 as_fn_append CONFIG_FILES " '$ac_optarg'"
14009 ac_need_defaults=false;;
14010 --header | --heade | --head | --hea )
14011 $ac_shift
14012 case $ac_optarg in
14013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14014 esac
14015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14016 ac_need_defaults=false;;
14017 --he | --h)
14018 # Conflict between --help and --header
14019 as_fn_error $? "ambiguous option: \`$1'
14020 Try \`$0 --help' for more information.";;
14021 --help | --hel | -h )
14022 $as_echo "$ac_cs_usage"; exit ;;
14023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14025 ac_cs_silent=: ;;
14026
14027 # This is an error.
14028 -*) as_fn_error $? "unrecognized option: \`$1'
14029 Try \`$0 --help' for more information." ;;
14030
14031 *) as_fn_append ac_config_targets " $1"
14032 ac_need_defaults=false ;;
14033
14034 esac
14035 shift
14036 done
14037
14038 ac_configure_extra_args=
14039
14040 if $ac_cs_silent; then
14041 exec 6>/dev/null
14042 ac_configure_extra_args="$ac_configure_extra_args --silent"
14043 fi
14044
14045 _ACEOF
14046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14047 if \$ac_cs_recheck; then
14048 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14049 shift
14050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14051 CONFIG_SHELL='$SHELL'
14052 export CONFIG_SHELL
14053 exec "\$@"
14054 fi
14055
14056 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058 exec 5>>config.log
14059 {
14060 echo
14061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14062 ## Running $as_me. ##
14063 _ASBOX
14064 $as_echo "$ac_log"
14065 } >&5
14066
14067 _ACEOF
14068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14069 #
14070 # INIT-COMMANDS
14071 #
14072 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14073 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14074 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14075 # from automake < 1.5.
14076 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14077 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14078 LINGUAS="${LINGUAS-%UNSET%}"
14079
14080
14081 _ACEOF
14082
14083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14084
14085 # Handling of arguments.
14086 for ac_config_target in $ac_config_targets
14087 do
14088 case $ac_config_target in
14089 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14090 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14091 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
14092 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14093 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14095 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14096 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14097 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
14098 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
14099 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
14100 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
14101 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
14102 "man/systemtap-service.8") CONFIG_FILES="$CONFIG_FILES man/systemtap-service.8" ;;
14103 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
14104 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
14105 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
14106 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
14107 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
14108 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
14109 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
14110 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
14111 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
14112 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
14113 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
14114 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
14115 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
14116 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
14117 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
14118 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14119 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
14120 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
14121 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
14122 "httpd/docker/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/docker/Makefile" ;;
14123 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
14124 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
14125 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
14126 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
14127 "stap-exporter/Makefile") CONFIG_FILES="$CONFIG_FILES stap-exporter/Makefile" ;;
14128 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
14129
14130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14131 esac
14132 done
14133
14134
14135 # If the user did not use the arguments to specify the items to instantiate,
14136 # then the envvar interface is used. Set only those that are not.
14137 # We use the long form for the default assignment because of an extremely
14138 # bizarre bug on SunOS 4.1.3.
14139 if $ac_need_defaults; then
14140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14143 fi
14144
14145 # Have a temporary directory for convenience. Make it in the build tree
14146 # simply because there is no reason against having it here, and in addition,
14147 # creating and moving files from /tmp can sometimes cause problems.
14148 # Hook for its removal unless debugging.
14149 # Note that there is a small window in which the directory will not be cleaned:
14150 # after its creation but before its name has been assigned to `$tmp'.
14151 $debug ||
14152 {
14153 tmp= ac_tmp=
14154 trap 'exit_status=$?
14155 : "${ac_tmp:=$tmp}"
14156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14157 ' 0
14158 trap 'as_fn_exit 1' 1 2 13 15
14159 }
14160 # Create a (secure) tmp directory for tmp files.
14161
14162 {
14163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14164 test -d "$tmp"
14165 } ||
14166 {
14167 tmp=./conf$$-$RANDOM
14168 (umask 077 && mkdir "$tmp")
14169 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14170 ac_tmp=$tmp
14171
14172 # Set up the scripts for CONFIG_FILES section.
14173 # No need to generate them if there are no CONFIG_FILES.
14174 # This happens for instance with `./config.status config.h'.
14175 if test -n "$CONFIG_FILES"; then
14176
14177
14178 ac_cr=`echo X | tr X '\015'`
14179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14180 # But we know of no other shell where ac_cr would be empty at this
14181 # point, so we can use a bashism as a fallback.
14182 if test "x$ac_cr" = x; then
14183 eval ac_cr=\$\'\\r\'
14184 fi
14185 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14187 ac_cs_awk_cr='\\r'
14188 else
14189 ac_cs_awk_cr=$ac_cr
14190 fi
14191
14192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14193 _ACEOF
14194
14195
14196 {
14197 echo "cat >conf$$subs.awk <<_ACEOF" &&
14198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14199 echo "_ACEOF"
14200 } >conf$$subs.sh ||
14201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14203 ac_delim='%!_!# '
14204 for ac_last_try in false false false false false :; do
14205 . ./conf$$subs.sh ||
14206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14207
14208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14209 if test $ac_delim_n = $ac_delim_num; then
14210 break
14211 elif $ac_last_try; then
14212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14213 else
14214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14215 fi
14216 done
14217 rm -f conf$$subs.sh
14218
14219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14220 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14221 _ACEOF
14222 sed -n '
14223 h
14224 s/^/S["/; s/!.*/"]=/
14225 p
14226 g
14227 s/^[^!]*!//
14228 :repl
14229 t repl
14230 s/'"$ac_delim"'$//
14231 t delim
14232 :nl
14233 h
14234 s/\(.\{148\}\)..*/\1/
14235 t more1
14236 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14237 p
14238 n
14239 b repl
14240 :more1
14241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14242 p
14243 g
14244 s/.\{148\}//
14245 t nl
14246 :delim
14247 h
14248 s/\(.\{148\}\)..*/\1/
14249 t more2
14250 s/["\\]/\\&/g; s/^/"/; s/$/"/
14251 p
14252 b
14253 :more2
14254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14255 p
14256 g
14257 s/.\{148\}//
14258 t delim
14259 ' <conf$$subs.awk | sed '
14260 /^[^""]/{
14261 N
14262 s/\n//
14263 }
14264 ' >>$CONFIG_STATUS || ac_write_fail=1
14265 rm -f conf$$subs.awk
14266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14267 _ACAWK
14268 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14269 for (key in S) S_is_set[key] = 1
14270 FS = "\a"
14271
14272 }
14273 {
14274 line = $ 0
14275 nfields = split(line, field, "@")
14276 substed = 0
14277 len = length(field[1])
14278 for (i = 2; i < nfields; i++) {
14279 key = field[i]
14280 keylen = length(key)
14281 if (S_is_set[key]) {
14282 value = S[key]
14283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14284 len += length(value) + length(field[++i])
14285 substed = 1
14286 } else
14287 len += 1 + keylen
14288 }
14289
14290 print line
14291 }
14292
14293 _ACAWK
14294 _ACEOF
14295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14298 else
14299 cat
14300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14302 _ACEOF
14303
14304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14306 # trailing colons and then remove the whole line if VPATH becomes empty
14307 # (actually we leave an empty line to preserve line numbers).
14308 if test "x$srcdir" = x.; then
14309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14310 h
14311 s///
14312 s/^/:/
14313 s/[ ]*$/:/
14314 s/:\$(srcdir):/:/g
14315 s/:\${srcdir}:/:/g
14316 s/:@srcdir@:/:/g
14317 s/^:*//
14318 s/:*$//
14319 x
14320 s/\(=[ ]*\).*/\1/
14321 G
14322 s/\n//
14323 s/^[^=]*=[ ]*$//
14324 }'
14325 fi
14326
14327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14328 fi # test -n "$CONFIG_FILES"
14329
14330 # Set up the scripts for CONFIG_HEADERS section.
14331 # No need to generate them if there are no CONFIG_HEADERS.
14332 # This happens for instance with `./config.status Makefile'.
14333 if test -n "$CONFIG_HEADERS"; then
14334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14335 BEGIN {
14336 _ACEOF
14337
14338 # Transform confdefs.h into an awk script `defines.awk', embedded as
14339 # here-document in config.status, that substitutes the proper values into
14340 # config.h.in to produce config.h.
14341
14342 # Create a delimiter string that does not exist in confdefs.h, to ease
14343 # handling of long lines.
14344 ac_delim='%!_!# '
14345 for ac_last_try in false false :; do
14346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14347 if test -z "$ac_tt"; then
14348 break
14349 elif $ac_last_try; then
14350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14351 else
14352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14353 fi
14354 done
14355
14356 # For the awk script, D is an array of macro values keyed by name,
14357 # likewise P contains macro parameters if any. Preserve backslash
14358 # newline sequences.
14359
14360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14361 sed -n '
14362 s/.\{148\}/&'"$ac_delim"'/g
14363 t rset
14364 :rset
14365 s/^[ ]*#[ ]*define[ ][ ]*/ /
14366 t def
14367 d
14368 :def
14369 s/\\$//
14370 t bsnl
14371 s/["\\]/\\&/g
14372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14373 D["\1"]=" \3"/p
14374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14375 d
14376 :bsnl
14377 s/["\\]/\\&/g
14378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14379 D["\1"]=" \3\\\\\\n"\\/p
14380 t cont
14381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14382 t cont
14383 d
14384 :cont
14385 n
14386 s/.\{148\}/&'"$ac_delim"'/g
14387 t clear
14388 :clear
14389 s/\\$//
14390 t bsnlc
14391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14392 d
14393 :bsnlc
14394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14395 b cont
14396 ' <confdefs.h | sed '
14397 s/'"$ac_delim"'/"\\\
14398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14399
14400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14401 for (key in D) D_is_set[key] = 1
14402 FS = "\a"
14403 }
14404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14405 line = \$ 0
14406 split(line, arg, " ")
14407 if (arg[1] == "#") {
14408 defundef = arg[2]
14409 mac1 = arg[3]
14410 } else {
14411 defundef = substr(arg[1], 2)
14412 mac1 = arg[2]
14413 }
14414 split(mac1, mac2, "(") #)
14415 macro = mac2[1]
14416 prefix = substr(line, 1, index(line, defundef) - 1)
14417 if (D_is_set[macro]) {
14418 # Preserve the white space surrounding the "#".
14419 print prefix "define", macro P[macro] D[macro]
14420 next
14421 } else {
14422 # Replace #undef with comments. This is necessary, for example,
14423 # in the case of _POSIX_SOURCE, which is predefined and required
14424 # on some systems where configure will not decide to define it.
14425 if (defundef == "undef") {
14426 print "/*", prefix defundef, macro, "*/"
14427 next
14428 }
14429 }
14430 }
14431 { print }
14432 _ACAWK
14433 _ACEOF
14434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14436 fi # test -n "$CONFIG_HEADERS"
14437
14438
14439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14440 shift
14441 for ac_tag
14442 do
14443 case $ac_tag in
14444 :[FHLC]) ac_mode=$ac_tag; continue;;
14445 esac
14446 case $ac_mode$ac_tag in
14447 :[FHL]*:*);;
14448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14449 :[FH]-) ac_tag=-:-;;
14450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14451 esac
14452 ac_save_IFS=$IFS
14453 IFS=:
14454 set x $ac_tag
14455 IFS=$ac_save_IFS
14456 shift
14457 ac_file=$1
14458 shift
14459
14460 case $ac_mode in
14461 :L) ac_source=$1;;
14462 :[FH])
14463 ac_file_inputs=
14464 for ac_f
14465 do
14466 case $ac_f in
14467 -) ac_f="$ac_tmp/stdin";;
14468 *) # Look for the file first in the build tree, then in the source tree
14469 # (if the path is not absolute). The absolute path cannot be DOS-style,
14470 # because $ac_f cannot contain `:'.
14471 test -f "$ac_f" ||
14472 case $ac_f in
14473 [\\/$]*) false;;
14474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14475 esac ||
14476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14477 esac
14478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14479 as_fn_append ac_file_inputs " '$ac_f'"
14480 done
14481
14482 # Let's still pretend it is `configure' which instantiates (i.e., don't
14483 # use $as_me), people would be surprised to read:
14484 # /* config.h. Generated by config.status. */
14485 configure_input='Generated from '`
14486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14487 `' by configure.'
14488 if test x"$ac_file" != x-; then
14489 configure_input="$ac_file. $configure_input"
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14491 $as_echo "$as_me: creating $ac_file" >&6;}
14492 fi
14493 # Neutralize special characters interpreted by sed in replacement strings.
14494 case $configure_input in #(
14495 *\&* | *\|* | *\\* )
14496 ac_sed_conf_input=`$as_echo "$configure_input" |
14497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14498 *) ac_sed_conf_input=$configure_input;;
14499 esac
14500
14501 case $ac_tag in
14502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14504 esac
14505 ;;
14506 esac
14507
14508 ac_dir=`$as_dirname -- "$ac_file" ||
14509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14510 X"$ac_file" : 'X\(//\)[^/]' \| \
14511 X"$ac_file" : 'X\(//\)$' \| \
14512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14513 $as_echo X"$ac_file" |
14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14515 s//\1/
14516 q
14517 }
14518 /^X\(\/\/\)[^/].*/{
14519 s//\1/
14520 q
14521 }
14522 /^X\(\/\/\)$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\).*/{
14527 s//\1/
14528 q
14529 }
14530 s/.*/./; q'`
14531 as_dir="$ac_dir"; as_fn_mkdir_p
14532 ac_builddir=.
14533
14534 case "$ac_dir" in
14535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14536 *)
14537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14538 # A ".." for each directory in $ac_dir_suffix.
14539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14540 case $ac_top_builddir_sub in
14541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14543 esac ;;
14544 esac
14545 ac_abs_top_builddir=$ac_pwd
14546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14547 # for backward compatibility:
14548 ac_top_builddir=$ac_top_build_prefix
14549
14550 case $srcdir in
14551 .) # We are building in place.
14552 ac_srcdir=.
14553 ac_top_srcdir=$ac_top_builddir_sub
14554 ac_abs_top_srcdir=$ac_pwd ;;
14555 [\\/]* | ?:[\\/]* ) # Absolute name.
14556 ac_srcdir=$srcdir$ac_dir_suffix;
14557 ac_top_srcdir=$srcdir
14558 ac_abs_top_srcdir=$srcdir ;;
14559 *) # Relative name.
14560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14561 ac_top_srcdir=$ac_top_build_prefix$srcdir
14562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14563 esac
14564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14565
14566
14567 case $ac_mode in
14568 :F)
14569 #
14570 # CONFIG_FILE
14571 #
14572
14573 case $INSTALL in
14574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14576 esac
14577 ac_MKDIR_P=$MKDIR_P
14578 case $MKDIR_P in
14579 [\\/$]* | ?:[\\/]* ) ;;
14580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14581 esac
14582 _ACEOF
14583
14584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14585 # If the template does not know about datarootdir, expand it.
14586 # FIXME: This hack should be removed a few years after 2.60.
14587 ac_datarootdir_hack=; ac_datarootdir_seen=
14588 ac_sed_dataroot='
14589 /datarootdir/ {
14590 p
14591 q
14592 }
14593 /@datadir@/p
14594 /@docdir@/p
14595 /@infodir@/p
14596 /@localedir@/p
14597 /@mandir@/p'
14598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14599 *datarootdir*) ac_datarootdir_seen=yes;;
14600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14603 _ACEOF
14604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14605 ac_datarootdir_hack='
14606 s&@datadir@&$datadir&g
14607 s&@docdir@&$docdir&g
14608 s&@infodir@&$infodir&g
14609 s&@localedir@&$localedir&g
14610 s&@mandir@&$mandir&g
14611 s&\\\${datarootdir}&$datarootdir&g' ;;
14612 esac
14613 _ACEOF
14614
14615 # Neutralize VPATH when `$srcdir' = `.'.
14616 # Shell code in configure.ac might set extrasub.
14617 # FIXME: do we really want to maintain this feature?
14618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14619 ac_sed_extra="$ac_vpsub
14620 $extrasub
14621 _ACEOF
14622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14623 :t
14624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14625 s|@configure_input@|$ac_sed_conf_input|;t t
14626 s&@top_builddir@&$ac_top_builddir_sub&;t t
14627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14628 s&@srcdir@&$ac_srcdir&;t t
14629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14630 s&@top_srcdir@&$ac_top_srcdir&;t t
14631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14632 s&@builddir@&$ac_builddir&;t t
14633 s&@abs_builddir@&$ac_abs_builddir&;t t
14634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14635 s&@INSTALL@&$ac_INSTALL&;t t
14636 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14637 $ac_datarootdir_hack
14638 "
14639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14641
14642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14647 which seems to be undefined. Please make sure it is defined" >&5
14648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14649 which seems to be undefined. Please make sure it is defined" >&2;}
14650
14651 rm -f "$ac_tmp/stdin"
14652 case $ac_file in
14653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14655 esac \
14656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14657 ;;
14658 :H)
14659 #
14660 # CONFIG_HEADER
14661 #
14662 if test x"$ac_file" != x-; then
14663 {
14664 $as_echo "/* $configure_input */" \
14665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14666 } >"$ac_tmp/config.h" \
14667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14668 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14670 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14671 else
14672 rm -f "$ac_file"
14673 mv "$ac_tmp/config.h" "$ac_file" \
14674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14675 fi
14676 else
14677 $as_echo "/* $configure_input */" \
14678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14679 || as_fn_error $? "could not create -" "$LINENO" 5
14680 fi
14681 # Compute "$ac_file"'s index in $config_headers.
14682 _am_arg="$ac_file"
14683 _am_stamp_count=1
14684 for _am_header in $config_headers :; do
14685 case $_am_header in
14686 $_am_arg | $_am_arg:* )
14687 break ;;
14688 * )
14689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14690 esac
14691 done
14692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694 X"$_am_arg" : 'X\(//\)[^/]' \| \
14695 X"$_am_arg" : 'X\(//\)$' \| \
14696 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14697 $as_echo X"$_am_arg" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699 s//\1/
14700 q
14701 }
14702 /^X\(\/\/\)[^/].*/{
14703 s//\1/
14704 q
14705 }
14706 /^X\(\/\/\)$/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\).*/{
14711 s//\1/
14712 q
14713 }
14714 s/.*/./; q'`/stamp-h$_am_stamp_count
14715 ;;
14716
14717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14718 $as_echo "$as_me: executing $ac_file commands" >&6;}
14719 ;;
14720 esac
14721
14722
14723 case $ac_file$ac_mode in
14724 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14725 # Older Autoconf quotes --file arguments for eval, but not when files
14726 # are listed without --file. Let's play safe and only enable the eval
14727 # if we detect the quoting.
14728 # TODO: see whether this extra hack can be removed once we start
14729 # requiring Autoconf 2.70 or later.
14730 case $CONFIG_FILES in #(
14731 *\'*) :
14732 eval set x "$CONFIG_FILES" ;; #(
14733 *) :
14734 set x $CONFIG_FILES ;; #(
14735 *) :
14736 ;;
14737 esac
14738 shift
14739 # Used to flag and report bootstrapping failures.
14740 am_rc=0
14741 for am_mf
14742 do
14743 # Strip MF so we end up with the name of the file.
14744 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14745 # Check whether this is an Automake generated Makefile which includes
14746 # dependency-tracking related rules and includes.
14747 # Grep'ing the whole file directly is not great: AIX grep has a line
14748 # limit of 2048, but all sed's we know have understand at least 4000.
14749 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14750 || continue
14751 am_dirpart=`$as_dirname -- "$am_mf" ||
14752 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14753 X"$am_mf" : 'X\(//\)[^/]' \| \
14754 X"$am_mf" : 'X\(//\)$' \| \
14755 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14756 $as_echo X"$am_mf" |
14757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14758 s//\1/
14759 q
14760 }
14761 /^X\(\/\/\)[^/].*/{
14762 s//\1/
14763 q
14764 }
14765 /^X\(\/\/\)$/{
14766 s//\1/
14767 q
14768 }
14769 /^X\(\/\).*/{
14770 s//\1/
14771 q
14772 }
14773 s/.*/./; q'`
14774 am_filepart=`$as_basename -- "$am_mf" ||
14775 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14776 X"$am_mf" : 'X\(//\)$' \| \
14777 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14778 $as_echo X/"$am_mf" |
14779 sed '/^.*\/\([^/][^/]*\)\/*$/{
14780 s//\1/
14781 q
14782 }
14783 /^X\/\(\/\/\)$/{
14784 s//\1/
14785 q
14786 }
14787 /^X\/\(\/\).*/{
14788 s//\1/
14789 q
14790 }
14791 s/.*/./; q'`
14792 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14793 && sed -e '/# am--include-marker/d' "$am_filepart" \
14794 | $MAKE -f - am--depfiles" >&5
14795 (cd "$am_dirpart" \
14796 && sed -e '/# am--include-marker/d' "$am_filepart" \
14797 | $MAKE -f - am--depfiles) >&5 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } || am_rc=$?
14801 done
14802 if test $am_rc -ne 0; then
14803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14805 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14806 for automatic dependency tracking. Try re-running configure with the
14807 '--disable-dependency-tracking' option to at least be able to build
14808 the package (albeit without support for automatic dependency tracking).
14809 See \`config.log' for more details" "$LINENO" 5; }
14810 fi
14811 { am_dirpart=; unset am_dirpart;}
14812 { am_filepart=; unset am_filepart;}
14813 { am_mf=; unset am_mf;}
14814 { am_rc=; unset am_rc;}
14815 rm -f conftest-deps.mk
14816 }
14817 ;;
14818 "po-directories":C)
14819 for ac_file in $CONFIG_FILES; do
14820 # Support "outfile[:infile[:infile...]]"
14821 case "$ac_file" in
14822 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14823 esac
14824 # PO directories have a Makefile.in generated from Makefile.in.in.
14825 case "$ac_file" in */Makefile.in)
14826 # Adjust a relative srcdir.
14827 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14828 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14829 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14830 # In autoconf-2.13 it is called $ac_given_srcdir.
14831 # In autoconf-2.50 it is called $srcdir.
14832 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14833 case "$ac_given_srcdir" in
14834 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14835 /*) top_srcdir="$ac_given_srcdir" ;;
14836 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14837 esac
14838 # Treat a directory as a PO directory if and only if it has a
14839 # POTFILES.in file. This allows packages to have multiple PO
14840 # directories under different names or in different locations.
14841 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14842 rm -f "$ac_dir/POTFILES"
14843 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14844 gt_tab=`printf '\t'`
14845 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"
14846 POMAKEFILEDEPS="POTFILES.in"
14847 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14848 # on $ac_dir but don't depend on user-specified configuration
14849 # parameters.
14850 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14851 # The LINGUAS file contains the set of available languages.
14852 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14853 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14854 fi
14855 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14856 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14857 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14858 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14859 else
14860 # The set of available languages was given in configure.in.
14861 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14862 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14863 fi
14864 # Compute POFILES
14865 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14866 # Compute UPDATEPOFILES
14867 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14868 # Compute DUMMYPOFILES
14869 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14870 # Compute GMOFILES
14871 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14872 case "$ac_given_srcdir" in
14873 .) srcdirpre= ;;
14874 *) srcdirpre='$(srcdir)/' ;;
14875 esac
14876 POFILES=
14877 UPDATEPOFILES=
14878 DUMMYPOFILES=
14879 GMOFILES=
14880 for lang in $ALL_LINGUAS; do
14881 POFILES="$POFILES $srcdirpre$lang.po"
14882 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14883 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14884 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14885 done
14886 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14887 # environment variable.
14888 INST_LINGUAS=
14889 if test -n "$ALL_LINGUAS"; then
14890 for presentlang in $ALL_LINGUAS; do
14891 useit=no
14892 if test "%UNSET%" != "$LINGUAS"; then
14893 desiredlanguages="$LINGUAS"
14894 else
14895 desiredlanguages="$ALL_LINGUAS"
14896 fi
14897 for desiredlang in $desiredlanguages; do
14898 # Use the presentlang catalog if desiredlang is
14899 # a. equal to presentlang, or
14900 # b. a variant of presentlang (because in this case,
14901 # presentlang can be used as a fallback for messages
14902 # which are not translated in the desiredlang catalog).
14903 case "$desiredlang" in
14904 "$presentlang"*) useit=yes;;
14905 esac
14906 done
14907 if test $useit = yes; then
14908 INST_LINGUAS="$INST_LINGUAS $presentlang"
14909 fi
14910 done
14911 fi
14912 CATALOGS=
14913 if test -n "$INST_LINGUAS"; then
14914 for lang in $INST_LINGUAS; do
14915 CATALOGS="$CATALOGS $lang.gmo"
14916 done
14917 fi
14918 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14919 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"
14920 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14921 if test -f "$f"; then
14922 case "$f" in
14923 *.orig | *.bak | *~) ;;
14924 *) cat "$f" >> "$ac_dir/Makefile" ;;
14925 esac
14926 fi
14927 done
14928 fi
14929 ;;
14930 esac
14931 done ;;
14932 "run-stap":F) chmod +x run-stap ;;
14933 "dtrace":F) chmod +x dtrace ;;
14934 "java/stapbm":F) chmod +x java/stapbm ;;
14935 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14936 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14937 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14938 "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 ;;
14939
14940 esac
14941 done # for ac_tag
14942
14943
14944 as_fn_exit 0
14945 _ACEOF
14946 ac_clean_files=$ac_clean_files_save
14947
14948 test $ac_write_fail = 0 ||
14949 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14950
14951
14952 # configure is writing to config.log, and then calls config.status.
14953 # config.status does its own redirection, appending to config.log.
14954 # Unfortunately, on DOS this fails, as config.log is still kept open
14955 # by configure, so config.status won't be able to write to it; its
14956 # output is simply discarded. So we exec the FD to /dev/null,
14957 # effectively closing config.log, so it can be properly (re)opened and
14958 # appended to by config.status. When coming back to configure, we
14959 # need to make the FD available again.
14960 if test "$no_create" != yes; then
14961 ac_cs_success=:
14962 ac_config_status_args=
14963 test "$silent" = yes &&
14964 ac_config_status_args="$ac_config_status_args --quiet"
14965 exec 5>/dev/null
14966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14967 exec 5>>config.log
14968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14969 # would make configure fail if this is the last instruction.
14970 $ac_cs_success || as_fn_exit 1
14971 fi
14972
14973 #
14974 # CONFIG_SUBDIRS section.
14975 #
14976 if test "$no_recursion" != yes; then
14977
14978 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14979 # so they do not pile up.
14980 ac_sub_configure_args=
14981 ac_prev=
14982 eval "set x $ac_configure_args"
14983 shift
14984 for ac_arg
14985 do
14986 if test -n "$ac_prev"; then
14987 ac_prev=
14988 continue
14989 fi
14990 case $ac_arg in
14991 -cache-file | --cache-file | --cache-fil | --cache-fi \
14992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14993 ac_prev=cache_file ;;
14994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14996 | --c=*)
14997 ;;
14998 --config-cache | -C)
14999 ;;
15000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15001 ac_prev=srcdir ;;
15002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15003 ;;
15004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15005 ac_prev=prefix ;;
15006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15007 ;;
15008 --disable-option-checking)
15009 ;;
15010 *)
15011 case $ac_arg in
15012 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15013 esac
15014 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15015 esac
15016 done
15017
15018 # Always prepend --prefix to ensure using the same prefix
15019 # in subdir configurations.
15020 ac_arg="--prefix=$prefix"
15021 case $ac_arg in
15022 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15023 esac
15024 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15025
15026 # Pass --silent
15027 if test "$silent" = yes; then
15028 ac_sub_configure_args="--silent $ac_sub_configure_args"
15029 fi
15030
15031 # Always prepend --disable-option-checking to silence warnings, since
15032 # different subdirs can have different --enable and --with options.
15033 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15034
15035 ac_popdir=`pwd`
15036 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15037
15038 # Do not complain, so a configure script can configure whichever
15039 # parts of a large source tree are present.
15040 test -d "$srcdir/$ac_dir" || continue
15041
15042 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15043 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15044 $as_echo "$ac_msg" >&6
15045 as_dir="$ac_dir"; as_fn_mkdir_p
15046 ac_builddir=.
15047
15048 case "$ac_dir" in
15049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15050 *)
15051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15052 # A ".." for each directory in $ac_dir_suffix.
15053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15054 case $ac_top_builddir_sub in
15055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15057 esac ;;
15058 esac
15059 ac_abs_top_builddir=$ac_pwd
15060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15061 # for backward compatibility:
15062 ac_top_builddir=$ac_top_build_prefix
15063
15064 case $srcdir in
15065 .) # We are building in place.
15066 ac_srcdir=.
15067 ac_top_srcdir=$ac_top_builddir_sub
15068 ac_abs_top_srcdir=$ac_pwd ;;
15069 [\\/]* | ?:[\\/]* ) # Absolute name.
15070 ac_srcdir=$srcdir$ac_dir_suffix;
15071 ac_top_srcdir=$srcdir
15072 ac_abs_top_srcdir=$srcdir ;;
15073 *) # Relative name.
15074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15075 ac_top_srcdir=$ac_top_build_prefix$srcdir
15076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15077 esac
15078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15079
15080
15081 cd "$ac_dir"
15082
15083 # Check for guested configure; otherwise get Cygnus style configure.
15084 if test -f "$ac_srcdir/configure.gnu"; then
15085 ac_sub_configure=$ac_srcdir/configure.gnu
15086 elif test -f "$ac_srcdir/configure"; then
15087 ac_sub_configure=$ac_srcdir/configure
15088 elif test -f "$ac_srcdir/configure.in"; then
15089 # This should be Cygnus configure.
15090 ac_sub_configure=$ac_aux_dir/configure
15091 else
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15093 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15094 ac_sub_configure=
15095 fi
15096
15097 # The recursion is here.
15098 if test -n "$ac_sub_configure"; then
15099 # Make the cache file name correct relative to the subdirectory.
15100 case $cache_file in
15101 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15102 *) # Relative name.
15103 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15104 esac
15105
15106 { $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
15107 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15108 # The eval makes quoting arguments work.
15109 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15110 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15111 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15112 fi
15113
15114 cd "$ac_popdir"
15115 done
15116 fi
15117 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15119 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15120 fi
15121
15122
15123 if test "${prefix}" = "/usr/local"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
15125 $as_echo "$as_me: " >&6;}
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
15127 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
15129 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
15131 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
15133 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
15135 $as_echo "$as_me: is not supported." >&6;}
15136 fi
This page took 0.779853 seconds and 5 git commands to generate.