Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for systemtap 5.4.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: [email protected] about your system, including
275 $0: any error possibly output before this message. Then
276 $0: install a modern shell, or manually run the script
277 $0: under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='systemtap'
606 PACKAGE_TARNAME='systemtap'
607 PACKAGE_VERSION='5.4'
608 PACKAGE_STRING='systemtap 5.4'
609 PACKAGE_BUGREPORT='[email protected]'
610 PACKAGE_URL=''
611
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 gt_needs=
645 enable_option_checking=no
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 subdirs
652 pkglibexecdir
653 STAP_PREFIX
654 NEED_BASE_CLIENT_CODE_FALSE
655 NEED_BASE_CLIENT_CODE_TRUE
656 HAVE_HTTP_SUPPORT_FALSE
657 HAVE_HTTP_SUPPORT_TRUE
658 libcurl_LIBS
659 libcurl_CFLAGS
660 uuid_LIBS
661 uuid_CFLAGS
662 libmicrohttpd_LIBS
663 libmicrohttpd_CFLAGS
664 STAP_EXTRA_VERSION
665 LOCALEDIR
666 ENABLE_NLS
667 HAVE_JAVA_FALSE
668 HAVE_JAVA_TRUE
669 JAVADIR
670 have_jar
671 have_javac
672 HAVE_SELINUX_FALSE
673 HAVE_SELINUX_TRUE
674 selinux_LIBS
675 selinux_CFLAGS
676 HAVE_BPF_DECLS_FALSE
677 HAVE_BPF_DECLS_TRUE
678 support_section_retain
679 support_section_question
680 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE
681 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE
682 HAVE_JSON_C_FALSE
683 HAVE_JSON_C_TRUE
684 HAVE_MONITOR_LIBS_FALSE
685 HAVE_MONITOR_LIBS_TRUE
686 ncurses_LIBS
687 ncurses_CFLAGS
688 jsonc_LIBS
689 jsonc_CFLAGS
690 HAVE_PYTHON_PROBES_FALSE
691 HAVE_PYTHON_PROBES_TRUE
692 HAVE_PYTHON3_PROBES_FALSE
693 HAVE_PYTHON3_PROBES_TRUE
694 PYTHON3_CPPFLAGS
695 PYTHON3_CONFIG
696 HAVE_PYTHON2_PROBES_FALSE
697 HAVE_PYTHON2_PROBES_TRUE
698 PYTHON_CPPFLAGS
699 PYTHON_CONFIG
700 BUILD_VIRT_FALSE
701 BUILD_VIRT_TRUE
702 HAVE_LIBXML2_FALSE
703 HAVE_LIBXML2_TRUE
704 libxml2_LIBS
705 libxml2_CFLAGS
706 HAVE_LIBVIRT_FALSE
707 HAVE_LIBVIRT_TRUE
708 libvirt_LIBS
709 libvirt_CFLAGS
710 HAVE_DYNINST_FALSE
711 HAVE_DYNINST_TRUE
712 DYNINST_LIBS
713 DYNINST_LDFLAGS
714 DYNINST_CXXFLAGS
715 BOOST_SYSTEM_LIB
716 stapbpf_LIBS
717 staprun_LIBS
718 stap_LIBS
719 preferred_python
720 HAVE_LIBREADLINE_FALSE
721 HAVE_LIBREADLINE_TRUE
722 READLINE_LIBS
723 HAVE_AVAHI_FALSE
724 HAVE_AVAHI_TRUE
725 avahi_LIBS
726 avahi_CFLAGS
727 BUILD_SERVER_FALSE
728 BUILD_SERVER_TRUE
729 dracutbindir
730 dracutstap
731 HAVE_OPENSSL_FALSE
732 HAVE_OPENSSL_TRUE
733 openssl_LIBS
734 openssl_CFLAGS
735 HAVE_NSS_FALSE
736 HAVE_NSS_TRUE
737 nss_LIBS
738 nss_CFLAGS
739 XMLTO_STRINGPARAM_FALSE
740 XMLTO_STRINGPARAM_TRUE
741 BUILD_HTMLDOCS_FALSE
742 BUILD_HTMLDOCS_TRUE
743 HAVE_XMLTO_FALSE
744 HAVE_XMLTO_TRUE
745 HAVE_FOP_FALSE
746 HAVE_FOP_TRUE
747 have_fop
748 have_xmlto
749 BUILD_REFDOCS_FALSE
750 BUILD_REFDOCS_TRUE
751 INSTALL_PREBUILT_DOCS_FALSE
752 INSTALL_PREBUILT_DOCS_TRUE
753 BUILD_DOCS_FALSE
754 BUILD_DOCS_TRUE
755 have_ps2pdf
756 have_dvips
757 have_latex
758 BUILD_CRASHMOD_FALSE
759 BUILD_CRASHMOD_TRUE
760 staplog_CPPFLAGS
761 BUILD_TRANSLATOR_FALSE
762 BUILD_TRANSLATOR_TRUE
763 sqlite3_LIBS
764 sqlite3_CFLAGS
765 debuginfod_LDFLAGS
766 debuginfod_LIBS
767 debuginfod_CFLAGS
768 PIECXXFLAGS
769 PIECFLAGS
770 PIELDFLAGS
771 ALIGNEDNEW
772 HAVE_CXX11
773 Werror_FALSE
774 Werror_TRUE
775 py3execdir
776 python3dir
777 PYTHON3_PLATFORM
778 PYTHON3_EXEC_PREFIX
779 PYTHON3_PREFIX
780 PYTHON3_VERSION
781 PYTHON3
782 pkgpyexecdir
783 pyexecdir
784 pkgpythondir
785 pythondir
786 PYTHON_EXEC_PREFIX
787 PYTHON_PREFIX
788 PYTHON_PLATFORM
789 PYTHON_VERSION
790 PYTHON
791 PYTHON_UNKNOWN
792 POSUB
793 LTLIBINTL
794 LIBINTL
795 INTLLIBS
796 LTLIBICONV
797 LIBICONV
798 INTL_MACOSX_LIBS
799 XGETTEXT_EXTRA_OPTIONS
800 MSGMERGE
801 XGETTEXT_015
802 XGETTEXT
803 GMSGFMT_015
804 MSGFMT_015
805 GMSGFMT
806 MSGFMT
807 GETTEXT_MACRO_VERSION
808 USE_NLS
809 SED
810 RANLIB
811 ac_ct_AR
812 AR
813 CPP
814 am__fastdepCXX_FALSE
815 am__fastdepCXX_TRUE
816 CXXDEPMODE
817 ac_ct_CXX
818 CXXFLAGS
819 CXX
820 LN_S
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 am__nodep
825 AMDEPBACKSLASH
826 AMDEP_FALSE
827 AMDEP_TRUE
828 am__include
829 DEPDIR
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 PKG_CONFIG_LIBDIR
838 PKG_CONFIG_PATH
839 PKG_CONFIG
840 MAINT
841 MAINTAINER_MODE_FALSE
842 MAINTAINER_MODE_TRUE
843 am__xargs_n
844 am__rm_f_notfound
845 AM_BACKSLASH
846 AM_DEFAULT_VERBOSITY
847 AM_DEFAULT_V
848 AM_V
849 CSCOPE
850 ETAGS
851 CTAGS
852 am__untar
853 am__tar
854 AMTAR
855 am__leading_dot
856 SET_MAKE
857 AWK
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 MAKEINFO
864 AUTOHEADER
865 AUTOMAKE
866 AUTOCONF
867 ACLOCAL
868 VERSION
869 PACKAGE
870 CYGPATH_W
871 am__isrc
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_os
876 target_vendor
877 target_cpu
878 target
879 host_os
880 host_vendor
881 host_cpu
882 host
883 build_os
884 build_vendor
885 build_cpu
886 build
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 runstatedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_URL
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL
926 am__quote'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 enable_silent_rules
931 enable_maintainer_mode
932 enable_dependency_tracking
933 enable_largefile
934 enable_nls
935 with_gnu_ld
936 enable_rpath
937 with_libiconv_prefix
938 with_libintl_prefix
939 with_python_sys_prefix
940 with_python_prefix
941 with_python_exec_prefix
942 enable_Werror
943 enable_prologues
944 enable_sdt_probes
945 with_debuginfod
946 enable_sqlite
947 enable_translator
948 enable_crash
949 enable_docs
950 enable_refdocs
951 enable_htmldocs
952 with_nss
953 with_openssl
954 with_dracutstap
955 with_dracutbindir
956 enable_server
957 with_avahi
958 with_rpm
959 with_python3
960 with_dyninst
961 enable_virt
962 enable_libvirt
963 with_python2_probes
964 with_python3_probes
965 enable_monitor
966 with_bpf
967 with_selinux
968 with_java
969 with_extra_version
970 enable_http
971 enable_year2038
972 '
973 ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 PKG_CONFIG
977 PKG_CONFIG_PATH
978 PKG_CONFIG_LIBDIR
979 CC
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
984 CXX
985 CXXFLAGS
986 CCC
987 CPP
988 PYTHON
989 debuginfod_CFLAGS
990 debuginfod_LIBS
991 sqlite3_CFLAGS
992 sqlite3_LIBS
993 nss_CFLAGS
994 nss_LIBS
995 openssl_CFLAGS
996 openssl_LIBS
997 avahi_CFLAGS
998 avahi_LIBS
999 libvirt_CFLAGS
1000 libvirt_LIBS
1001 libxml2_CFLAGS
1002 libxml2_LIBS
1003 jsonc_CFLAGS
1004 jsonc_LIBS
1005 ncurses_CFLAGS
1006 ncurses_LIBS
1007 selinux_CFLAGS
1008 selinux_LIBS
1009 libmicrohttpd_CFLAGS
1010 libmicrohttpd_LIBS
1011 uuid_CFLAGS
1012 uuid_LIBS
1013 libcurl_CFLAGS
1014 libcurl_LIBS'
1015 ac_subdirs_all='testsuite'
1016
1017 # Initialize some variables set by options.
1018 ac_init_help=
1019 ac_init_version=false
1020 ac_unrecognized_opts=
1021 ac_unrecognized_sep=
1022 # The variables have the same names as the options, with
1023 # dashes changed to underlines.
1024 cache_file=/dev/null
1025 exec_prefix=NONE
1026 no_create=
1027 no_recursion=
1028 prefix=NONE
1029 program_prefix=NONE
1030 program_suffix=NONE
1031 program_transform_name=s,x,x,
1032 silent=
1033 site=
1034 srcdir=
1035 verbose=
1036 x_includes=NONE
1037 x_libraries=NONE
1038
1039 # Installation directory options.
1040 # These are left unexpanded so users can "make install exec_prefix=/foo"
1041 # and all the variables that are supposed to be based on exec_prefix
1042 # by default will actually change.
1043 # Use braces instead of parens because sh, perl, etc. also accept them.
1044 # (The list follows the same order as the GNU Coding Standards.)
1045 bindir='${exec_prefix}/bin'
1046 sbindir='${exec_prefix}/sbin'
1047 libexecdir='${exec_prefix}/libexec'
1048 datarootdir='${prefix}/share'
1049 datadir='${datarootdir}'
1050 sysconfdir='${prefix}/etc'
1051 sharedstatedir='${prefix}/com'
1052 localstatedir='${prefix}/var'
1053 runstatedir='${localstatedir}/run'
1054 includedir='${prefix}/include'
1055 oldincludedir='/usr/include'
1056 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1057 infodir='${datarootdir}/info'
1058 htmldir='${docdir}'
1059 dvidir='${docdir}'
1060 pdfdir='${docdir}'
1061 psdir='${docdir}'
1062 libdir='${exec_prefix}/lib'
1063 localedir='${datarootdir}/locale'
1064 mandir='${datarootdir}/man'
1065
1066 ac_prev=
1067 ac_dashdash=
1068 for ac_option
1069 do
1070 # If the previous option needs an argument, assign it.
1071 if test -n "$ac_prev"; then
1072 eval $ac_prev=\$ac_option
1073 ac_prev=
1074 continue
1075 fi
1076
1077 case $ac_option in
1078 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1079 *=) ac_optarg= ;;
1080 *) ac_optarg=yes ;;
1081 esac
1082
1083 case $ac_dashdash$ac_option in
1084 --)
1085 ac_dashdash=yes ;;
1086
1087 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088 ac_prev=bindir ;;
1089 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1090 bindir=$ac_optarg ;;
1091
1092 -build | --build | --buil | --bui | --bu)
1093 ac_prev=build_alias ;;
1094 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1095 build_alias=$ac_optarg ;;
1096
1097 -cache-file | --cache-file | --cache-fil | --cache-fi \
1098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1099 ac_prev=cache_file ;;
1100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1102 cache_file=$ac_optarg ;;
1103
1104 --config-cache | -C)
1105 cache_file=config.cache ;;
1106
1107 -datadir | --datadir | --datadi | --datad)
1108 ac_prev=datadir ;;
1109 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1110 datadir=$ac_optarg ;;
1111
1112 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1113 | --dataroo | --dataro | --datar)
1114 ac_prev=datarootdir ;;
1115 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1116 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1117 datarootdir=$ac_optarg ;;
1118
1119 -disable-* | --disable-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid feature name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "enable_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval enable_$ac_useropt=no ;;
1134
1135 -docdir | --docdir | --docdi | --doc | --do)
1136 ac_prev=docdir ;;
1137 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138 docdir=$ac_optarg ;;
1139
1140 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141 ac_prev=dvidir ;;
1142 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143 dvidir=$ac_optarg ;;
1144
1145 -enable-* | --enable-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid feature name: '$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "enable_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval enable_$ac_useropt=\$ac_optarg ;;
1160
1161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1163 | --exec | --exe | --ex)
1164 ac_prev=exec_prefix ;;
1165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1167 | --exec=* | --exe=* | --ex=*)
1168 exec_prefix=$ac_optarg ;;
1169
1170 -gas | --gas | --ga | --g)
1171 # Obsolete; use --with-gas.
1172 with_gas=yes ;;
1173
1174 -help | --help | --hel | --he | -h)
1175 ac_init_help=long ;;
1176 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1177 ac_init_help=recursive ;;
1178 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1179 ac_init_help=short ;;
1180
1181 -host | --host | --hos | --ho)
1182 ac_prev=host_alias ;;
1183 -host=* | --host=* | --hos=* | --ho=*)
1184 host_alias=$ac_optarg ;;
1185
1186 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187 ac_prev=htmldir ;;
1188 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189 | --ht=*)
1190 htmldir=$ac_optarg ;;
1191
1192 -includedir | --includedir | --includedi | --included | --include \
1193 | --includ | --inclu | --incl | --inc)
1194 ac_prev=includedir ;;
1195 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1196 | --includ=* | --inclu=* | --incl=* | --inc=*)
1197 includedir=$ac_optarg ;;
1198
1199 -infodir | --infodir | --infodi | --infod | --info | --inf)
1200 ac_prev=infodir ;;
1201 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1202 infodir=$ac_optarg ;;
1203
1204 -libdir | --libdir | --libdi | --libd)
1205 ac_prev=libdir ;;
1206 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1207 libdir=$ac_optarg ;;
1208
1209 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1210 | --libexe | --libex | --libe)
1211 ac_prev=libexecdir ;;
1212 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1213 | --libexe=* | --libex=* | --libe=*)
1214 libexecdir=$ac_optarg ;;
1215
1216 -localedir | --localedir | --localedi | --localed | --locale)
1217 ac_prev=localedir ;;
1218 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1219 localedir=$ac_optarg ;;
1220
1221 -localstatedir | --localstatedir | --localstatedi | --localstated \
1222 | --localstate | --localstat | --localsta | --localst | --locals)
1223 ac_prev=localstatedir ;;
1224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1225 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1226 localstatedir=$ac_optarg ;;
1227
1228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229 ac_prev=mandir ;;
1230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1231 mandir=$ac_optarg ;;
1232
1233 -nfp | --nfp | --nf)
1234 # Obsolete; use --without-fp.
1235 with_fp=no ;;
1236
1237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1238 | --no-cr | --no-c | -n)
1239 no_create=yes ;;
1240
1241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243 no_recursion=yes ;;
1244
1245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1247 | --oldin | --oldi | --old | --ol | --o)
1248 ac_prev=oldincludedir ;;
1249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1252 oldincludedir=$ac_optarg ;;
1253
1254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255 ac_prev=prefix ;;
1256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1257 prefix=$ac_optarg ;;
1258
1259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1260 | --program-pre | --program-pr | --program-p)
1261 ac_prev=program_prefix ;;
1262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1264 program_prefix=$ac_optarg ;;
1265
1266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1267 | --program-suf | --program-su | --program-s)
1268 ac_prev=program_suffix ;;
1269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1271 program_suffix=$ac_optarg ;;
1272
1273 -program-transform-name | --program-transform-name \
1274 | --program-transform-nam | --program-transform-na \
1275 | --program-transform-n | --program-transform- \
1276 | --program-transform | --program-transfor \
1277 | --program-transfo | --program-transf \
1278 | --program-trans | --program-tran \
1279 | --progr-tra | --program-tr | --program-t)
1280 ac_prev=program_transform_name ;;
1281 -program-transform-name=* | --program-transform-name=* \
1282 | --program-transform-nam=* | --program-transform-na=* \
1283 | --program-transform-n=* | --program-transform-=* \
1284 | --program-transform=* | --program-transfor=* \
1285 | --program-transfo=* | --program-transf=* \
1286 | --program-trans=* | --program-tran=* \
1287 | --progr-tra=* | --program-tr=* | --program-t=*)
1288 program_transform_name=$ac_optarg ;;
1289
1290 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291 ac_prev=pdfdir ;;
1292 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1293 pdfdir=$ac_optarg ;;
1294
1295 -psdir | --psdir | --psdi | --psd | --ps)
1296 ac_prev=psdir ;;
1297 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298 psdir=$ac_optarg ;;
1299
1300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301 | -silent | --silent | --silen | --sile | --sil)
1302 silent=yes ;;
1303
1304 -runstatedir | --runstatedir | --runstatedi | --runstated \
1305 | --runstate | --runstat | --runsta | --runst | --runs \
1306 | --run | --ru | --r)
1307 ac_prev=runstatedir ;;
1308 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1309 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1310 | --run=* | --ru=* | --r=*)
1311 runstatedir=$ac_optarg ;;
1312
1313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314 ac_prev=sbindir ;;
1315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316 | --sbi=* | --sb=*)
1317 sbindir=$ac_optarg ;;
1318
1319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1321 | --sharedst | --shareds | --shared | --share | --shar \
1322 | --sha | --sh)
1323 ac_prev=sharedstatedir ;;
1324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327 | --sha=* | --sh=*)
1328 sharedstatedir=$ac_optarg ;;
1329
1330 -site | --site | --sit)
1331 ac_prev=site ;;
1332 -site=* | --site=* | --sit=*)
1333 site=$ac_optarg ;;
1334
1335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336 ac_prev=srcdir ;;
1337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1338 srcdir=$ac_optarg ;;
1339
1340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1341 | --syscon | --sysco | --sysc | --sys | --sy)
1342 ac_prev=sysconfdir ;;
1343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1345 sysconfdir=$ac_optarg ;;
1346
1347 -target | --target | --targe | --targ | --tar | --ta | --t)
1348 ac_prev=target_alias ;;
1349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1350 target_alias=$ac_optarg ;;
1351
1352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353 verbose=yes ;;
1354
1355 -version | --version | --versio | --versi | --vers | -V)
1356 ac_init_version=: ;;
1357
1358 -with-* | --with-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error $? "invalid package name: '$ac_useropt'"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1366 *"
1367 "with_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval with_$ac_useropt=\$ac_optarg ;;
1373
1374 -without-* | --without-*)
1375 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: '$ac_useropt'"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1382 *"
1383 "with_$ac_useropt"
1384 "*) ;;
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1387 esac
1388 eval with_$ac_useropt=no ;;
1389
1390 --x)
1391 # Obsolete; use --with-x.
1392 with_x=yes ;;
1393
1394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1395 | --x-incl | --x-inc | --x-in | --x-i)
1396 ac_prev=x_includes ;;
1397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1399 x_includes=$ac_optarg ;;
1400
1401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1403 ac_prev=x_libraries ;;
1404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406 x_libraries=$ac_optarg ;;
1407
1408 -*) as_fn_error $? "unrecognized option: '$ac_option'
1409 Try '$0 --help' for more information"
1410 ;;
1411
1412 *=*)
1413 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414 # Reject names that are not valid shell variable names.
1415 case $ac_envvar in #(
1416 '' | [0-9]* | *[!_$as_cr_alnum]* )
1417 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1418 esac
1419 eval $ac_envvar=\$ac_optarg
1420 export $ac_envvar ;;
1421
1422 *)
1423 # FIXME: should be removed in autoconf 3.0.
1424 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1427 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1428 ;;
1429
1430 esac
1431 done
1432
1433 if test -n "$ac_prev"; then
1434 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435 as_fn_error $? "missing argument to $ac_option"
1436 fi
1437
1438 if test -n "$ac_unrecognized_opts"; then
1439 case $enable_option_checking in
1440 no) ;;
1441 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 esac
1444 fi
1445
1446 # Check all directory arguments for consistency.
1447 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448 datadir sysconfdir sharedstatedir localstatedir includedir \
1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450 libdir localedir mandir runstatedir
1451 do
1452 eval ac_val=\$$ac_var
1453 # Remove trailing slashes.
1454 case $ac_val in
1455 */ )
1456 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457 eval $ac_var=\$ac_val;;
1458 esac
1459 # Be sure to have absolute directory names.
1460 case $ac_val in
1461 [\\/$]* | ?:[\\/]* ) continue;;
1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463 esac
1464 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 done
1466
1467 # There might be people who depend on the old broken behavior: '$host'
1468 # used to hold the argument of --host etc.
1469 # FIXME: To remove some day.
1470 build=$build_alias
1471 host=$host_alias
1472 target=$target_alias
1473
1474 # FIXME: To remove some day.
1475 if test "x$host_alias" != x; then
1476 if test "x$build_alias" = x; then
1477 cross_compiling=maybe
1478 elif test "x$build_alias" != "x$host_alias"; then
1479 cross_compiling=yes
1480 fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error $? "working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error $? "pwd does not report name of working directory"
1495
1496
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 printf "%s\n" X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 s//\1/
1509 q
1510 }
1511 /^X\(\/\/\)[^/].*/{
1512 s//\1/
1513 q
1514 }
1515 /^X\(\/\/\)$/{
1516 s//\1/
1517 q
1518 }
1519 /^X\(\/\).*/{
1520 s//\1/
1521 q
1522 }
1523 s/.*/./; q'`
1524 srcdir=$ac_confdir
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 srcdir=..
1527 fi
1528 else
1529 ac_srcdir_defaulted=no
1530 fi
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1534 fi
1535 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1538 pwd)`
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 srcdir=.
1542 fi
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1546 case $srcdir in
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 esac
1549 for ac_var in $ac_precious_vars; do
1550 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_${ac_var}_value=\$${ac_var}
1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 done
1555
1556 #
1557 # Report the --help message.
1558 #
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1562 cat <<_ACEOF
1563 'configure' configures systemtap 5.4 to adapt to many kinds of systems.
1564
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1566
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1569
1570 Defaults for the options are specified in brackets.
1571
1572 Configuration:
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print 'checking ...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for '--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or '..']
1582
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 [PREFIX]
1588
1589 By default, 'make install' will install all the files in
1590 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than '$ac_default_prefix' using '--prefix',
1592 for instance '--prefix=\$HOME'.
1593
1594 For better control, use the options below.
1595
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1617 _ACEOF
1618
1619 cat <<\_ACEOF
1620
1621 Program names:
1622 --program-prefix=PREFIX prepend PREFIX to installed program names
1623 --program-suffix=SUFFIX append SUFFIX to installed program names
1624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1625
1626 System types:
1627 --build=BUILD configure for building on BUILD [guessed]
1628 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 --target=TARGET configure for building compilers for TARGET [HOST]
1630 _ACEOF
1631 fi
1632
1633 if test -n "$ac_init_help"; then
1634 case $ac_init_help in
1635 short | recursive ) echo "Configuration of systemtap 5.4:";;
1636 esac
1637 cat <<\_ACEOF
1638
1639 Optional Features:
1640 --disable-option-checking ignore unrecognized --enable/--with options
1641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1643 --enable-silent-rules less verbose build output (undo: "make V=1")
1644 --disable-silent-rules verbose build output (undo: "make V=0")
1645 --enable-maintainer-mode
1646 enable make rules and dependencies not useful (and
1647 sometimes confusing) to the casual installer
1648 --enable-dependency-tracking
1649 do not reject slow dependency extractors
1650 --disable-dependency-tracking
1651 speeds up one-time build
1652 --disable-largefile omit support for large files
1653 --disable-nls do not use Native Language Support
1654 --disable-rpath do not hardcode runtime library paths
1655 '--enable-Werror compile with -Werror flags
1656 --enable-prologues make -P prologue-searching default
1657 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1658 --enable-sqlite build with sqlite support
1659 --disable-translator build only runtime utilities
1660 --enable-crash[=DIRECTORY]
1661 enable crash extension (default is disabled).
1662 Optional DIRECTORY is the path to the crash header
1663 file (needed if installed in a non-standard
1664 location).
1665 --enable-docs enable building documentation (default to only
1666 installing prebuilt docs).
1667 --enable-refdocs enable building reference documentation (default on
1668 if other documentation built).
1669 --enable-htmldocs enable building html documentation (default off).
1670 --enable-server enable building of stap-server (default on if nss
1671 etc. found).
1672 --enable-virt enable building of stapvirt support (default on if
1673 libvirt etc. found).
1674 --disable-libvirt Do not use libvirt even if present
1675 --disable-monitor Disable monitor
1676 --enable-http Enable building http web compilation service, if
1677 possible
1678 --enable-year2038 support timestamps after 2038
1679
1680 Optional Packages:
1681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-python-sys-prefix
1689 use Python's sys.prefix and sys.exec_prefix values
1690 --with-python_prefix override the default PYTHON_PREFIX
1691 --with-python_exec_prefix
1692 override the default PYTHON_EXEC_PREFIX
1693 --with-debuginfod Enable debuginfo lookups with debuginfod
1694 (auto/yes/no)
1695 --without-nss Do not use NSS even if present
1696 --without-openssl Do not use OPENSSL even if present
1697 --with-dracutstap=DIR Install dracut module files in DIR
1698 --with-dracutbindir=DIR Use the dracut binary located in DIR
1699 --without-avahi Do not use Avahi even if present
1700 --with-rpm query rpm database for missing debuginfos
1701 --with-python3 prefer python version 3
1702 --with-dyninst=DIRECTORY
1703 find dyninst headers/libraries in DIRECTORY
1704 --without-python2-probes
1705 Disable building python version 2 probe support,
1706 even if it is available
1707 --without-python3-probes
1708 Disable building python version 3 probe support,
1709 even if it is available
1710 --without-bpf Do not try to build BPF components
1711 --without-selinux Do not use libselinux even if present
1712 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1713 against (default is /usr/lib/jvm/java)
1714 --with-extra-version=STRING
1715 Add STRING to stap -V version
1716
1717 Some influential environment variables:
1718 PKG_CONFIG path to pkg-config utility
1719 PKG_CONFIG_PATH
1720 directories to add to pkg-config's search path
1721 PKG_CONFIG_LIBDIR
1722 path overriding pkg-config's built-in search path
1723 CC C compiler command
1724 CFLAGS C compiler flags
1725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 nonstandard directory <lib dir>
1727 LIBS libraries to pass to the linker, e.g. -l<library>
1728 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1729 you have headers in a nonstandard directory <include dir>
1730 CXX C++ compiler command
1731 CXXFLAGS C++ compiler flags
1732 CPP C preprocessor
1733 PYTHON the Python interpreter
1734 debuginfod_CFLAGS
1735 C compiler flags for debuginfod, overriding pkg-config
1736 debuginfod_LIBS
1737 linker flags for debuginfod, overriding pkg-config
1738 sqlite3_CFLAGS
1739 C compiler flags for sqlite3, overriding pkg-config
1740 sqlite3_LIBS
1741 linker flags for sqlite3, overriding pkg-config
1742 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1743 nss_LIBS linker flags for nss, overriding pkg-config
1744 openssl_CFLAGS
1745 C compiler flags for openssl, overriding pkg-config
1746 openssl_LIBS
1747 linker flags for openssl, overriding pkg-config
1748 avahi_CFLAGS
1749 C compiler flags for avahi, overriding pkg-config
1750 avahi_LIBS linker flags for avahi, overriding pkg-config
1751 libvirt_CFLAGS
1752 C compiler flags for libvirt, overriding pkg-config
1753 libvirt_LIBS
1754 linker flags for libvirt, overriding pkg-config
1755 libxml2_CFLAGS
1756 C compiler flags for libxml2, overriding pkg-config
1757 libxml2_LIBS
1758 linker flags for libxml2, overriding pkg-config
1759 jsonc_CFLAGS
1760 C compiler flags for jsonc, overriding pkg-config
1761 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1762 ncurses_CFLAGS
1763 C compiler flags for ncurses, overriding pkg-config
1764 ncurses_LIBS
1765 linker flags for ncurses, overriding pkg-config
1766 selinux_CFLAGS
1767 C compiler flags for selinux, overriding pkg-config
1768 selinux_LIBS
1769 linker flags for selinux, overriding pkg-config
1770 libmicrohttpd_CFLAGS
1771 C compiler flags for libmicrohttpd, overriding pkg-config
1772 libmicrohttpd_LIBS
1773 linker flags for libmicrohttpd, overriding pkg-config
1774 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1775 uuid_LIBS linker flags for uuid, overriding pkg-config
1776 libcurl_CFLAGS
1777 C compiler flags for libcurl, overriding pkg-config
1778 libcurl_LIBS
1779 linker flags for libcurl, overriding pkg-config
1780
1781 Use these variables to override the choices made by 'configure' or to help
1782 it to find libraries and programs with nonstandard names/locations.
1783
1784 Report bugs to <[email protected]>.
1785 _ACEOF
1786 ac_status=$?
1787 fi
1788
1789 if test "$ac_init_help" = "recursive"; then
1790 # If there are subdirs, report their specific --help.
1791 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1792 test -d "$ac_dir" ||
1793 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1794 continue
1795 ac_builddir=.
1796
1797 case "$ac_dir" in
1798 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1799 *)
1800 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1801 # A ".." for each directory in $ac_dir_suffix.
1802 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1803 case $ac_top_builddir_sub in
1804 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1806 esac ;;
1807 esac
1808 ac_abs_top_builddir=$ac_pwd
1809 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1810 # for backward compatibility:
1811 ac_top_builddir=$ac_top_build_prefix
1812
1813 case $srcdir in
1814 .) # We are building in place.
1815 ac_srcdir=.
1816 ac_top_srcdir=$ac_top_builddir_sub
1817 ac_abs_top_srcdir=$ac_pwd ;;
1818 [\\/]* | ?:[\\/]* ) # Absolute name.
1819 ac_srcdir=$srcdir$ac_dir_suffix;
1820 ac_top_srcdir=$srcdir
1821 ac_abs_top_srcdir=$srcdir ;;
1822 *) # Relative name.
1823 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1824 ac_top_srcdir=$ac_top_build_prefix$srcdir
1825 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1826 esac
1827 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1828
1829 cd "$ac_dir" || { ac_status=$?; continue; }
1830 # Check for configure.gnu first; this name is used for a wrapper for
1831 # Metaconfig's "Configure" on case-insensitive file systems.
1832 if test -f "$ac_srcdir/configure.gnu"; then
1833 echo &&
1834 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1835 elif test -f "$ac_srcdir/configure"; then
1836 echo &&
1837 $SHELL "$ac_srcdir/configure" --help=recursive
1838 else
1839 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1840 fi || ac_status=$?
1841 cd "$ac_pwd" || { ac_status=$?; break; }
1842 done
1843 fi
1844
1845 test -n "$ac_init_help" && exit $ac_status
1846 if $ac_init_version; then
1847 cat <<\_ACEOF
1848 systemtap configure 5.4
1849 generated by GNU Autoconf 2.72
1850
1851 Copyright (C) 2023 Free Software Foundation, Inc.
1852 This configure script is free software; the Free Software Foundation
1853 gives unlimited permission to copy, distribute and modify it.
1854 _ACEOF
1855 exit
1856 fi
1857
1858 ## ------------------------ ##
1859 ## Autoconf initialization. ##
1860 ## ------------------------ ##
1861
1862 # ac_fn_c_try_compile LINENO
1863 # --------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_c_try_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest.beam
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 printf "%s\n" "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext
1888 then :
1889 ac_retval=0
1890 else case e in #(
1891 e) printf "%s\n" "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1 ;;
1895 esac
1896 fi
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_compile
1901
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 printf %s "checking for $2... " >&6; }
1911 if eval test \${$3+y}
1912 then :
1913 printf %s "(cached) " >&6
1914 else case e in #(
1915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"
1921 then :
1922 eval "$3=yes"
1923 else case e in #(
1924 e) eval "$3=no" ;;
1925 esac
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1928 esac
1929 fi
1930 eval ac_res=\$$3
1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 printf "%s\n" "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_header_compile
1936
1937 # ac_fn_cxx_try_compile LINENO
1938 # ----------------------------
1939 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_cxx_try_compile ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest.beam
1944 if { { ac_try="$ac_compile"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 printf "%s\n" "$ac_try_echo"; } >&5
1951 (eval "$ac_compile") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest.$ac_objext
1963 then :
1964 ac_retval=0
1965 else case e in #(
1966 e) printf "%s\n" "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1 ;;
1970 esac
1971 fi
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_compile
1976
1977 # ac_fn_c_try_cpp LINENO
1978 # ----------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_c_try_cpp ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_cpp conftest.$ac_ext"
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 printf "%s\n" "$ac_try_echo"; } >&5
1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1996 fi
1997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } > conftest.i && {
1999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 }
2002 then :
2003 ac_retval=0
2004 else case e in #(
2005 e) printf "%s\n" "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=1 ;;
2009 esac
2010 fi
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_cpp
2015
2016 # ac_fn_c_try_link LINENO
2017 # -----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_c_try_link ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 printf "%s\n" "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2036 fi
2037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_c_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 test -x conftest$ac_exeext
2044 }
2045 then :
2046 ac_retval=0
2047 else case e in #(
2048 e) printf "%s\n" "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1 ;;
2052 esac
2053 fi
2054 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2055 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2056 # interfere with the next link command; also delete a directory that is
2057 # left behind by Apple's compiler. We do this before executing the actions.
2058 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2061
2062 } # ac_fn_c_try_link
2063
2064 # ac_fn_c_check_func LINENO FUNC VAR
2065 # ----------------------------------
2066 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2067 ac_fn_c_check_func ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 printf %s "checking for $2... " >&6; }
2072 if eval test \${$3+y}
2073 then :
2074 printf %s "(cached) " >&6
2075 else case e in #(
2076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (void); below. */
2084
2085 #include <limits.h>
2086 #undef $2
2087
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 (void);
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2101
2102 int
2103 main (void)
2104 {
2105 return $2 ();
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"
2111 then :
2112 eval "$3=yes"
2113 else case e in #(
2114 e) eval "$3=no" ;;
2115 esac
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2118 conftest$ac_exeext conftest.$ac_ext ;;
2119 esac
2120 fi
2121 eval ac_res=\$$3
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 printf "%s\n" "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_c_check_func
2127
2128 # ac_fn_c_try_run LINENO
2129 # ----------------------
2130 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2131 # executables *can* be run.
2132 ac_fn_c_try_run ()
2133 {
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_link"
2136 case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 printf "%s\n" "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>&5
2143 ac_status=$?
2144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2146 { { case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 printf "%s\n" "$ac_try_echo"; } >&5
2152 (eval "$ac_try") 2>&5
2153 ac_status=$?
2154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; }; }
2156 then :
2157 ac_retval=0
2158 else case e in #(
2159 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2160 printf "%s\n" "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=$ac_status ;;
2164 esac
2165 fi
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2169
2170 } # ac_fn_c_try_run
2171
2172 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2173 # ---------------------------------------------------------
2174 # Tests whether HEADER exists and can be compiled using the include files in
2175 # INCLUDES, setting the cache variable VAR accordingly.
2176 ac_fn_cxx_check_header_compile ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 printf %s "checking for $2... " >&6; }
2181 if eval test \${$3+y}
2182 then :
2183 printf %s "(cached) " >&6
2184 else case e in #(
2185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 #include <$2>
2189 _ACEOF
2190 if ac_fn_cxx_try_compile "$LINENO"
2191 then :
2192 eval "$3=yes"
2193 else case e in #(
2194 e) eval "$3=no" ;;
2195 esac
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2198 esac
2199 fi
2200 eval ac_res=\$$3
2201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 printf "%s\n" "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205 } # ac_fn_cxx_check_header_compile
2206
2207 # ac_fn_cxx_try_link LINENO
2208 # -------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_cxx_try_link ()
2211 {
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2214 if { { ac_try="$ac_link"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 printf "%s\n" "$ac_try_echo"; } >&5
2221 (eval "$ac_link") 2>conftest.err
2222 ac_status=$?
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2227 fi
2228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } && {
2230 test -z "$ac_cxx_werror_flag" ||
2231 test ! -s conftest.err
2232 } && test -s conftest$ac_exeext && {
2233 test "$cross_compiling" = yes ||
2234 test -x conftest$ac_exeext
2235 }
2236 then :
2237 ac_retval=0
2238 else case e in #(
2239 e) printf "%s\n" "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 ac_retval=1 ;;
2243 esac
2244 fi
2245 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2246 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2247 # interfere with the next link command; also delete a directory that is
2248 # left behind by Apple's compiler. We do this before executing the actions.
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2252
2253 } # ac_fn_cxx_try_link
2254
2255 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2256 # ------------------------------------------------------------------
2257 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2258 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2259 ac_fn_check_decl ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 as_decl_name=`echo $2|sed 's/ *(.*//'`
2263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2264 printf %s "checking whether $as_decl_name is declared... " >&6; }
2265 if eval test \${$3+y}
2266 then :
2267 printf %s "(cached) " >&6
2268 else case e in #(
2269 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2270 eval ac_save_FLAGS=\$$6
2271 as_fn_append $6 " $5"
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2274 $4
2275 int
2276 main (void)
2277 {
2278 #ifndef $as_decl_name
2279 #ifdef __cplusplus
2280 (void) $as_decl_use;
2281 #else
2282 (void) $as_decl_name;
2283 #endif
2284 #endif
2285
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"
2291 then :
2292 eval "$3=yes"
2293 else case e in #(
2294 e) eval "$3=no" ;;
2295 esac
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2298 eval $6=\$ac_save_FLAGS
2299 ;;
2300 esac
2301 fi
2302 eval ac_res=\$$3
2303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 printf "%s\n" "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306
2307 } # ac_fn_check_decl
2308 ac_configure_args_raw=
2309 for ac_arg
2310 do
2311 case $ac_arg in
2312 *\'*)
2313 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 esac
2315 as_fn_append ac_configure_args_raw " '$ac_arg'"
2316 done
2317
2318 case $ac_configure_args_raw in
2319 *$as_nl*)
2320 ac_safe_unquote= ;;
2321 *)
2322 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2323 ac_unsafe_a="$ac_unsafe_z#~"
2324 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2325 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2326 esac
2327
2328 cat >config.log <<_ACEOF
2329 This file contains any messages produced by compilers while
2330 running configure, to aid debugging if configure makes a mistake.
2331
2332 It was created by systemtap $as_me 5.4, which was
2333 generated by GNU Autoconf 2.72. Invocation command line was
2334
2335 $ $0$ac_configure_args_raw
2336
2337 _ACEOF
2338 exec 5>>config.log
2339 {
2340 cat <<_ASUNAME
2341 ## --------- ##
2342 ## Platform. ##
2343 ## --------- ##
2344
2345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2346 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2347 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2348 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2349 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2350
2351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2353
2354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2361
2362 _ASUNAME
2363
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 case $as_dir in #(((
2369 '') as_dir=./ ;;
2370 */) ;;
2371 *) as_dir=$as_dir/ ;;
2372 esac
2373 printf "%s\n" "PATH: $as_dir"
2374 done
2375 IFS=$as_save_IFS
2376
2377 } >&5
2378
2379 cat >&5 <<_ACEOF
2380
2381
2382 ## ----------- ##
2383 ## Core tests. ##
2384 ## ----------- ##
2385
2386 _ACEOF
2387
2388
2389 # Keep a trace of the command line.
2390 # Strip out --no-create and --no-recursion so they do not pile up.
2391 # Strip out --silent because we don't want to record it for future runs.
2392 # Also quote any args containing shell meta-characters.
2393 # Make two passes to allow for proper duplicate-argument suppression.
2394 ac_configure_args=
2395 ac_configure_args0=
2396 ac_configure_args1=
2397 ac_must_keep_next=false
2398 for ac_pass in 1 2
2399 do
2400 for ac_arg
2401 do
2402 case $ac_arg in
2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405 | -silent | --silent | --silen | --sile | --sil)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 2)
2413 as_fn_append ac_configure_args1 " '$ac_arg'"
2414 if test $ac_must_keep_next = true; then
2415 ac_must_keep_next=false # Got value, back to normal.
2416 else
2417 case $ac_arg in
2418 *=* | --config-cache | -C | -disable-* | --disable-* \
2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421 | -with-* | --with-* | -without-* | --without-* | --x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 esac
2425 ;;
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2428 fi
2429 as_fn_append ac_configure_args " '$ac_arg'"
2430 ;;
2431 esac
2432 done
2433 done
2434 { ac_configure_args0=; unset ac_configure_args0;}
2435 { ac_configure_args1=; unset ac_configure_args1;}
2436
2437 # When interrupted or exit'd, cleanup temporary files, and complete
2438 # config.log. We remove comments because anyway the quotes in there
2439 # would cause problems or look ugly.
2440 # WARNING: Use '\'' to represent an apostrophe within the trap.
2441 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442 trap 'exit_status=$?
2443 # Sanitize IFS.
2444 IFS=" "" $as_nl"
2445 # Save into config.log some information that might help in debugging.
2446 {
2447 echo
2448
2449 printf "%s\n" "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2452 echo
2453 # The following way of writing the cache mishandles newlines in values,
2454 (
2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456 eval ac_val=\$$ac_var
2457 case $ac_val in #(
2458 *${as_nl}*)
2459 case $ac_var in #(
2460 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2462 esac
2463 case $ac_var in #(
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2467 esac ;;
2468 esac
2469 done
2470 (set) 2>&1 |
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2473 sed -n \
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2476 ;; #(
2477 *)
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2479 ;;
2480 esac |
2481 sort
2482 )
2483 echo
2484
2485 printf "%s\n" "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2488 echo
2489 for ac_var in $ac_subst_vars
2490 do
2491 eval ac_val=\$$ac_var
2492 case $ac_val in
2493 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 esac
2495 printf "%s\n" "$ac_var='\''$ac_val'\''"
2496 done | sort
2497 echo
2498
2499 if test -n "$ac_subst_files"; then
2500 printf "%s\n" "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2503 echo
2504 for ac_var in $ac_subst_files
2505 do
2506 eval ac_val=\$$ac_var
2507 case $ac_val in
2508 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 esac
2510 printf "%s\n" "$ac_var='\''$ac_val'\''"
2511 done | sort
2512 echo
2513 fi
2514
2515 if test -s confdefs.h; then
2516 printf "%s\n" "## ----------- ##
2517 ## confdefs.h. ##
2518 ## ----------- ##"
2519 echo
2520 cat confdefs.h
2521 echo
2522 fi
2523 test "$ac_signal" != 0 &&
2524 printf "%s\n" "$as_me: caught signal $ac_signal"
2525 printf "%s\n" "$as_me: exit $exit_status"
2526 } >&5
2527 rm -f core *.core core.conftest.* &&
2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2529 exit $exit_status
2530 ' 0
2531 for ac_signal in 1 2 13 15; do
2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2533 done
2534 ac_signal=0
2535
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2538
2539 printf "%s\n" "/* confdefs.h */" > confdefs.h
2540
2541 # Predefined preprocessor variables.
2542
2543 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2544
2545 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2546
2547 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2548
2549 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2550
2551 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2552
2553 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2554
2555
2556 # Let the site file select an alternate cache file if it wants to.
2557 # Prefer an explicitly selected file to automatically selected ones.
2558 if test -n "$CONFIG_SITE"; then
2559 ac_site_files="$CONFIG_SITE"
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2562 else
2563 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2564 fi
2565
2566 for ac_site_file in $ac_site_files
2567 do
2568 case $ac_site_file in #(
2569 */*) :
2570 ;; #(
2571 *) :
2572 ac_site_file=./$ac_site_file ;;
2573 esac
2574 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
2578 . "$ac_site_file" \
2579 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2580 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2581 as_fn_error $? "failed to load site script $ac_site_file
2582 See 'config.log' for more details" "$LINENO" 5; }
2583 fi
2584 done
2585
2586 if test -r "$cache_file"; then
2587 # Some versions of bash will fail to source /dev/null (special files
2588 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2589 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2591 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2592 case $cache_file in
2593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2594 *) . "./$cache_file";;
2595 esac
2596 fi
2597 else
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2599 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2600 >$cache_file
2601 fi
2602
2603 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2604 # Test code for whether the C compiler supports C89 (global declarations)
2605 ac_c_conftest_c89_globals='
2606 /* Does the compiler advertise C89 conformance?
2607 Do not test the value of __STDC__, because some compilers set it to 0
2608 while being otherwise adequately conformant. */
2609 #if !defined __STDC__
2610 # error "Compiler does not advertise C89 conformance"
2611 #endif
2612
2613 #include <stddef.h>
2614 #include <stdarg.h>
2615 struct stat;
2616 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2617 struct buf { int x; };
2618 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2619 static char *e (char **p, int i)
2620 {
2621 return p[i];
2622 }
2623 static char *f (char * (*g) (char **, int), char **p, ...)
2624 {
2625 char *s;
2626 va_list v;
2627 va_start (v,p);
2628 s = g (p, va_arg (v,int));
2629 va_end (v);
2630 return s;
2631 }
2632
2633 /* C89 style stringification. */
2634 #define noexpand_stringify(a) #a
2635 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2636
2637 /* C89 style token pasting. Exercises some of the corner cases that
2638 e.g. old MSVC gets wrong, but not very hard. */
2639 #define noexpand_concat(a,b) a##b
2640 #define expand_concat(a,b) noexpand_concat(a,b)
2641 extern int vA;
2642 extern int vbee;
2643 #define aye A
2644 #define bee B
2645 int *pvA = &expand_concat(v,aye);
2646 int *pvbee = &noexpand_concat(v,bee);
2647
2648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2649 function prototypes and stuff, but not \xHH hex character constants.
2650 These do not provoke an error unfortunately, instead are silently treated
2651 as an "x". The following induces an error, until -std is added to get
2652 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2653 array size at least. It is necessary to write \x00 == 0 to get something
2654 that is true only with -std. */
2655 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2656
2657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2658 inside strings and character constants. */
2659 #define FOO(x) '\''x'\''
2660 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2661
2662 int test (int i, double x);
2663 struct s1 {int (*f) (int a);};
2664 struct s2 {int (*f) (double a);};
2665 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2666 int, int);'
2667
2668 # Test code for whether the C compiler supports C89 (body of main).
2669 ac_c_conftest_c89_main='
2670 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2671 '
2672
2673 # Test code for whether the C compiler supports C99 (global declarations)
2674 ac_c_conftest_c99_globals='
2675 /* Does the compiler advertise C99 conformance? */
2676 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2677 # error "Compiler does not advertise C99 conformance"
2678 #endif
2679
2680 // See if C++-style comments work.
2681
2682 #include <stdbool.h>
2683 extern int puts (const char *);
2684 extern int printf (const char *, ...);
2685 extern int dprintf (int, const char *, ...);
2686 extern void *malloc (size_t);
2687 extern void free (void *);
2688
2689 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2690 // dprintf is used instead of fprintf to avoid needing to declare
2691 // FILE and stderr.
2692 #define debug(...) dprintf (2, __VA_ARGS__)
2693 #define showlist(...) puts (#__VA_ARGS__)
2694 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2695 static void
2696 test_varargs_macros (void)
2697 {
2698 int x = 1234;
2699 int y = 5678;
2700 debug ("Flag");
2701 debug ("X = %d\n", x);
2702 showlist (The first, second, and third items.);
2703 report (x>y, "x is %d but y is %d", x, y);
2704 }
2705
2706 // Check long long types.
2707 #define BIG64 18446744073709551615ull
2708 #define BIG32 4294967295ul
2709 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2710 #if !BIG_OK
2711 #error "your preprocessor is broken"
2712 #endif
2713 #if BIG_OK
2714 #else
2715 #error "your preprocessor is broken"
2716 #endif
2717 static long long int bignum = -9223372036854775807LL;
2718 static unsigned long long int ubignum = BIG64;
2719
2720 struct incomplete_array
2721 {
2722 int datasize;
2723 double data[];
2724 };
2725
2726 struct named_init {
2727 int number;
2728 const wchar_t *name;
2729 double average;
2730 };
2731
2732 typedef const char *ccp;
2733
2734 static inline int
2735 test_restrict (ccp restrict text)
2736 {
2737 // Iterate through items via the restricted pointer.
2738 // Also check for declarations in for loops.
2739 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2740 continue;
2741 return 0;
2742 }
2743
2744 // Check varargs and va_copy.
2745 static bool
2746 test_varargs (const char *format, ...)
2747 {
2748 va_list args;
2749 va_start (args, format);
2750 va_list args_copy;
2751 va_copy (args_copy, args);
2752
2753 const char *str = "";
2754 int number = 0;
2755 float fnumber = 0;
2756
2757 while (*format)
2758 {
2759 switch (*format++)
2760 {
2761 case '\''s'\'': // string
2762 str = va_arg (args_copy, const char *);
2763 break;
2764 case '\''d'\'': // int
2765 number = va_arg (args_copy, int);
2766 break;
2767 case '\''f'\'': // float
2768 fnumber = va_arg (args_copy, double);
2769 break;
2770 default:
2771 break;
2772 }
2773 }
2774 va_end (args_copy);
2775 va_end (args);
2776
2777 return *str && number && fnumber;
2778 }
2779 '
2780
2781 # Test code for whether the C compiler supports C99 (body of main).
2782 ac_c_conftest_c99_main='
2783 // Check bool.
2784 _Bool success = false;
2785 success |= (argc != 0);
2786
2787 // Check restrict.
2788 if (test_restrict ("String literal") == 0)
2789 success = true;
2790 char *restrict newvar = "Another string";
2791
2792 // Check varargs.
2793 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2794 test_varargs_macros ();
2795
2796 // Check flexible array members.
2797 struct incomplete_array *ia =
2798 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2799 ia->datasize = 10;
2800 for (int i = 0; i < ia->datasize; ++i)
2801 ia->data[i] = i * 1.234;
2802 // Work around memory leak warnings.
2803 free (ia);
2804
2805 // Check named initializers.
2806 struct named_init ni = {
2807 .number = 34,
2808 .name = L"Test wide string",
2809 .average = 543.34343,
2810 };
2811
2812 ni.number = 58;
2813
2814 int dynamic_array[ni.number];
2815 dynamic_array[0] = argv[0][0];
2816 dynamic_array[ni.number - 1] = 543;
2817
2818 // work around unused variable warnings
2819 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2820 || dynamic_array[ni.number - 1] != 543);
2821 '
2822
2823 # Test code for whether the C compiler supports C11 (global declarations)
2824 ac_c_conftest_c11_globals='
2825 /* Does the compiler advertise C11 conformance? */
2826 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2827 # error "Compiler does not advertise C11 conformance"
2828 #endif
2829
2830 // Check _Alignas.
2831 char _Alignas (double) aligned_as_double;
2832 char _Alignas (0) no_special_alignment;
2833 extern char aligned_as_int;
2834 char _Alignas (0) _Alignas (int) aligned_as_int;
2835
2836 // Check _Alignof.
2837 enum
2838 {
2839 int_alignment = _Alignof (int),
2840 int_array_alignment = _Alignof (int[100]),
2841 char_alignment = _Alignof (char)
2842 };
2843 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2844
2845 // Check _Noreturn.
2846 int _Noreturn does_not_return (void) { for (;;) continue; }
2847
2848 // Check _Static_assert.
2849 struct test_static_assert
2850 {
2851 int x;
2852 _Static_assert (sizeof (int) <= sizeof (long int),
2853 "_Static_assert does not work in struct");
2854 long int y;
2855 };
2856
2857 // Check UTF-8 literals.
2858 #define u8 syntax error!
2859 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2860
2861 // Check duplicate typedefs.
2862 typedef long *long_ptr;
2863 typedef long int *long_ptr;
2864 typedef long_ptr long_ptr;
2865
2866 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2867 struct anonymous
2868 {
2869 union {
2870 struct { int i; int j; };
2871 struct { int k; long int l; } w;
2872 };
2873 int m;
2874 } v1;
2875 '
2876
2877 # Test code for whether the C compiler supports C11 (body of main).
2878 ac_c_conftest_c11_main='
2879 _Static_assert ((offsetof (struct anonymous, i)
2880 == offsetof (struct anonymous, w.k)),
2881 "Anonymous union alignment botch");
2882 v1.i = 2;
2883 v1.w.k = 5;
2884 ok |= v1.i != 5;
2885 '
2886
2887 # Test code for whether the C compiler supports C11 (complete).
2888 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2889 ${ac_c_conftest_c99_globals}
2890 ${ac_c_conftest_c11_globals}
2891
2892 int
2893 main (int argc, char **argv)
2894 {
2895 int ok = 0;
2896 ${ac_c_conftest_c89_main}
2897 ${ac_c_conftest_c99_main}
2898 ${ac_c_conftest_c11_main}
2899 return ok;
2900 }
2901 "
2902
2903 # Test code for whether the C compiler supports C99 (complete).
2904 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2905 ${ac_c_conftest_c99_globals}
2906
2907 int
2908 main (int argc, char **argv)
2909 {
2910 int ok = 0;
2911 ${ac_c_conftest_c89_main}
2912 ${ac_c_conftest_c99_main}
2913 return ok;
2914 }
2915 "
2916
2917 # Test code for whether the C compiler supports C89 (complete).
2918 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2919
2920 int
2921 main (int argc, char **argv)
2922 {
2923 int ok = 0;
2924 ${ac_c_conftest_c89_main}
2925 return ok;
2926 }
2927 "
2928
2929 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2930 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2931 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2932 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2933 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2934 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2935 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2936 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2937 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2938 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2939 # Test code for whether the C++ compiler supports C++98 (global declarations)
2940 ac_cxx_conftest_cxx98_globals='
2941 // Does the compiler advertise C++98 conformance?
2942 #if !defined __cplusplus || __cplusplus < 199711L
2943 # error "Compiler does not advertise C++98 conformance"
2944 #endif
2945
2946 // These inclusions are to reject old compilers that
2947 // lack the unsuffixed header files.
2948 #include <cstdlib>
2949 #include <exception>
2950
2951 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2952 extern void assert (int);
2953 namespace std {
2954 extern int strcmp (const char *, const char *);
2955 }
2956
2957 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2958 using std::exception;
2959 using std::strcmp;
2960
2961 namespace {
2962
2963 void test_exception_syntax()
2964 {
2965 try {
2966 throw "test";
2967 } catch (const char *s) {
2968 // Extra parentheses suppress a warning when building autoconf itself,
2969 // due to lint rules shared with more typical C programs.
2970 assert (!(strcmp) (s, "test"));
2971 }
2972 }
2973
2974 template <typename T> struct test_template
2975 {
2976 T const val;
2977 explicit test_template(T t) : val(t) {}
2978 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2979 };
2980
2981 } // anonymous namespace
2982 '
2983
2984 # Test code for whether the C++ compiler supports C++98 (body of main)
2985 ac_cxx_conftest_cxx98_main='
2986 assert (argc);
2987 assert (! argv[0]);
2988 {
2989 test_exception_syntax ();
2990 test_template<double> tt (2.0);
2991 assert (tt.add (4) == 6.0);
2992 assert (true && !false);
2993 }
2994 '
2995
2996 # Test code for whether the C++ compiler supports C++11 (global declarations)
2997 ac_cxx_conftest_cxx11_globals='
2998 // Does the compiler advertise C++ 2011 conformance?
2999 #if !defined __cplusplus || __cplusplus < 201103L
3000 # error "Compiler does not advertise C++11 conformance"
3001 #endif
3002
3003 namespace cxx11test
3004 {
3005 constexpr int get_val() { return 20; }
3006
3007 struct testinit
3008 {
3009 int i;
3010 double d;
3011 };
3012
3013 class delegate
3014 {
3015 public:
3016 delegate(int n) : n(n) {}
3017 delegate(): delegate(2354) {}
3018
3019 virtual int getval() { return this->n; };
3020 protected:
3021 int n;
3022 };
3023
3024 class overridden : public delegate
3025 {
3026 public:
3027 overridden(int n): delegate(n) {}
3028 virtual int getval() override final { return this->n * 2; }
3029 };
3030
3031 class nocopy
3032 {
3033 public:
3034 nocopy(int i): i(i) {}
3035 nocopy() = default;
3036 nocopy(const nocopy&) = delete;
3037 nocopy & operator=(const nocopy&) = delete;
3038 private:
3039 int i;
3040 };
3041
3042 // for testing lambda expressions
3043 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3044 {
3045 return f(v);
3046 }
3047
3048 // for testing variadic templates and trailing return types
3049 template <typename V> auto sum(V first) -> V
3050 {
3051 return first;
3052 }
3053 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3054 {
3055 return first + sum(rest...);
3056 }
3057 }
3058 '
3059
3060 # Test code for whether the C++ compiler supports C++11 (body of main)
3061 ac_cxx_conftest_cxx11_main='
3062 {
3063 // Test auto and decltype
3064 auto a1 = 6538;
3065 auto a2 = 48573953.4;
3066 auto a3 = "String literal";
3067
3068 int total = 0;
3069 for (auto i = a3; *i; ++i) { total += *i; }
3070
3071 decltype(a2) a4 = 34895.034;
3072 }
3073 {
3074 // Test constexpr
3075 short sa[cxx11test::get_val()] = { 0 };
3076 }
3077 {
3078 // Test initializer lists
3079 cxx11test::testinit il = { 4323, 435234.23544 };
3080 }
3081 {
3082 // Test range-based for
3083 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3084 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3085 for (auto &x : array) { x += 23; }
3086 }
3087 {
3088 // Test lambda expressions
3089 using cxx11test::eval;
3090 assert (eval ([](int x) { return x*2; }, 21) == 42);
3091 double d = 2.0;
3092 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3093 assert (d == 5.0);
3094 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3095 assert (d == 5.0);
3096 }
3097 {
3098 // Test use of variadic templates
3099 using cxx11test::sum;
3100 auto a = sum(1);
3101 auto b = sum(1, 2);
3102 auto c = sum(1.0, 2.0, 3.0);
3103 }
3104 {
3105 // Test constructor delegation
3106 cxx11test::delegate d1;
3107 cxx11test::delegate d2();
3108 cxx11test::delegate d3(45);
3109 }
3110 {
3111 // Test override and final
3112 cxx11test::overridden o1(55464);
3113 }
3114 {
3115 // Test nullptr
3116 char *c = nullptr;
3117 }
3118 {
3119 // Test template brackets
3120 test_template<::test_template<int>> v(test_template<int>(12));
3121 }
3122 {
3123 // Unicode literals
3124 char const *utf8 = u8"UTF-8 string \u2500";
3125 char16_t const *utf16 = u"UTF-8 string \u2500";
3126 char32_t const *utf32 = U"UTF-32 string \u2500";
3127 }
3128 '
3129
3130 # Test code for whether the C compiler supports C++11 (complete).
3131 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3132 ${ac_cxx_conftest_cxx11_globals}
3133
3134 int
3135 main (int argc, char **argv)
3136 {
3137 int ok = 0;
3138 ${ac_cxx_conftest_cxx98_main}
3139 ${ac_cxx_conftest_cxx11_main}
3140 return ok;
3141 }
3142 "
3143
3144 # Test code for whether the C compiler supports C++98 (complete).
3145 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3146 int
3147 main (int argc, char **argv)
3148 {
3149 int ok = 0;
3150 ${ac_cxx_conftest_cxx98_main}
3151 return ok;
3152 }
3153 "
3154
3155 gt_needs="$gt_needs "
3156
3157 # Auxiliary files required by this configure script.
3158 ac_aux_files="config.rpath ar-lib compile missing install-sh config.guess config.sub"
3159
3160 # Locations in which to look for auxiliary files.
3161 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3162
3163 # Search for a directory containing all of the required auxiliary files,
3164 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3165 # If we don't find one directory that contains all the files we need,
3166 # we report the set of missing files from the *first* directory in
3167 # $ac_aux_dir_candidates and give up.
3168 ac_missing_aux_files=""
3169 ac_first_candidate=:
3170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 as_found=false
3173 for as_dir in $ac_aux_dir_candidates
3174 do
3175 IFS=$as_save_IFS
3176 case $as_dir in #(((
3177 '') as_dir=./ ;;
3178 */) ;;
3179 *) as_dir=$as_dir/ ;;
3180 esac
3181 as_found=:
3182
3183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3184 ac_aux_dir_found=yes
3185 ac_install_sh=
3186 for ac_aux in $ac_aux_files
3187 do
3188 # As a special case, if "install-sh" is required, that requirement
3189 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3190 # and $ac_install_sh is set appropriately for whichever one is found.
3191 if test x"$ac_aux" = x"install-sh"
3192 then
3193 if test -f "${as_dir}install-sh"; then
3194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3195 ac_install_sh="${as_dir}install-sh -c"
3196 elif test -f "${as_dir}install.sh"; then
3197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3198 ac_install_sh="${as_dir}install.sh -c"
3199 elif test -f "${as_dir}shtool"; then
3200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3201 ac_install_sh="${as_dir}shtool install -c"
3202 else
3203 ac_aux_dir_found=no
3204 if $ac_first_candidate; then
3205 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3206 else
3207 break
3208 fi
3209 fi
3210 else
3211 if test -f "${as_dir}${ac_aux}"; then
3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3213 else
3214 ac_aux_dir_found=no
3215 if $ac_first_candidate; then
3216 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3217 else
3218 break
3219 fi
3220 fi
3221 fi
3222 done
3223 if test "$ac_aux_dir_found" = yes; then
3224 ac_aux_dir="$as_dir"
3225 break
3226 fi
3227 ac_first_candidate=false
3228
3229 as_found=false
3230 done
3231 IFS=$as_save_IFS
3232 if $as_found
3233 then :
3234
3235 else case e in #(
3236 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3237 esac
3238 fi
3239
3240
3241 # These three variables are undocumented and unsupported,
3242 # and are intended to be withdrawn in a future Autoconf release.
3243 # They can cause serious problems if a builder's source tree is in a directory
3244 # whose full name contains unusual characters.
3245 if test -f "${ac_aux_dir}config.guess"; then
3246 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3247 fi
3248 if test -f "${ac_aux_dir}config.sub"; then
3249 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3250 fi
3251 if test -f "$ac_aux_dir/configure"; then
3252 ac_configure="$SHELL ${ac_aux_dir}configure"
3253 fi
3254
3255 # Check that the precious variables saved in the cache have kept the same
3256 # value.
3257 ac_cache_corrupted=false
3258 for ac_var in $ac_precious_vars; do
3259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3260 eval ac_new_set=\$ac_env_${ac_var}_set
3261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3262 eval ac_new_val=\$ac_env_${ac_var}_value
3263 case $ac_old_set,$ac_new_set in
3264 set,)
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3266 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3267 ac_cache_corrupted=: ;;
3268 ,set)
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3270 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3271 ac_cache_corrupted=: ;;
3272 ,);;
3273 *)
3274 if test "x$ac_old_val" != "x$ac_new_val"; then
3275 # differences in whitespace do not lead to failure.
3276 ac_old_val_w=`echo x $ac_old_val`
3277 ac_new_val_w=`echo x $ac_new_val`
3278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3280 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3281 ac_cache_corrupted=:
3282 else
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3284 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3285 eval $ac_var=\$ac_old_val
3286 fi
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3288 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3290 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3291 fi;;
3292 esac
3293 # Pass precious variables to config.status.
3294 if test "$ac_new_set" = set; then
3295 case $ac_new_val in
3296 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3297 *) ac_arg=$ac_var=$ac_new_val ;;
3298 esac
3299 case " $ac_configure_args " in
3300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3302 esac
3303 fi
3304 done
3305 if $ac_cache_corrupted; then
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3307 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3309 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3310 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3311 and start over" "$LINENO" 5
3312 fi
3313 ## -------------------- ##
3314 ## Main body of script. ##
3315 ## -------------------- ##
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324
3325
3326
3327
3328 # Make sure we can run config.sub.
3329 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3330 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3331
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3333 printf %s "checking build system type... " >&6; }
3334 if test ${ac_cv_build+y}
3335 then :
3336 printf %s "(cached) " >&6
3337 else case e in #(
3338 e) ac_build_alias=$build_alias
3339 test "x$ac_build_alias" = x &&
3340 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3341 test "x$ac_build_alias" = x &&
3342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3343 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3344 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3345 ;;
3346 esac
3347 fi
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3349 printf "%s\n" "$ac_cv_build" >&6; }
3350 case $ac_cv_build in
3351 *-*-*) ;;
3352 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3353 esac
3354 build=$ac_cv_build
3355 ac_save_IFS=$IFS; IFS='-'
3356 set x $ac_cv_build
3357 shift
3358 build_cpu=$1
3359 build_vendor=$2
3360 shift; shift
3361 # Remember, the first character of IFS is used to create $*,
3362 # except with old shells:
3363 build_os=$*
3364 IFS=$ac_save_IFS
3365 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3366
3367
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3369 printf %s "checking host system type... " >&6; }
3370 if test ${ac_cv_host+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else case e in #(
3374 e) if test "x$host_alias" = x; then
3375 ac_cv_host=$ac_cv_build
3376 else
3377 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3378 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3379 fi
3380 ;;
3381 esac
3382 fi
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3384 printf "%s\n" "$ac_cv_host" >&6; }
3385 case $ac_cv_host in
3386 *-*-*) ;;
3387 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3388 esac
3389 host=$ac_cv_host
3390 ac_save_IFS=$IFS; IFS='-'
3391 set x $ac_cv_host
3392 shift
3393 host_cpu=$1
3394 host_vendor=$2
3395 shift; shift
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3398 host_os=$*
3399 IFS=$ac_save_IFS
3400 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3401
3402
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3404 printf %s "checking target system type... " >&6; }
3405 if test ${ac_cv_target+y}
3406 then :
3407 printf %s "(cached) " >&6
3408 else case e in #(
3409 e) if test "x$target_alias" = x; then
3410 ac_cv_target=$ac_cv_host
3411 else
3412 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3413 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3414 fi
3415 ;;
3416 esac
3417 fi
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3419 printf "%s\n" "$ac_cv_target" >&6; }
3420 case $ac_cv_target in
3421 *-*-*) ;;
3422 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3423 esac
3424 target=$ac_cv_target
3425 ac_save_IFS=$IFS; IFS='-'
3426 set x $ac_cv_target
3427 shift
3428 target_cpu=$1
3429 target_vendor=$2
3430 shift; shift
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3433 target_os=$*
3434 IFS=$ac_save_IFS
3435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3436
3437
3438 # The aliases save the names the user supplied, while $host etc.
3439 # will get canonicalized.
3440 test -n "$target_alias" &&
3441 test "$program_prefix$program_suffix$program_transform_name" = \
3442 NONENONEs,x,x, &&
3443 program_prefix=${target_alias}-
3444
3445
3446 am__api_version='1.17'
3447
3448
3449 # Find a good install program. We prefer a C program (faster),
3450 # so one script is as good as another. But avoid the broken or
3451 # incompatible versions:
3452 # SysV /etc/install, /usr/sbin/install
3453 # SunOS /usr/etc/install
3454 # IRIX /sbin/install
3455 # AIX /bin/install
3456 # AmigaOS /C/install, which installs bootblocks on floppy discs
3457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # OS/2's system install, which has a completely different semantic
3461 # ./install, which can be erroneously created by make from ./install.sh.
3462 # Reject install programs that cannot install multiple files.
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3464 printf %s "checking for a BSD-compatible install... " >&6; }
3465 if test -z "$INSTALL"; then
3466 if test ${ac_cv_path_install+y}
3467 then :
3468 printf %s "(cached) " >&6
3469 else case e in #(
3470 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 # Account for fact that we put trailing slashes in our PATH walk.
3480 case $as_dir in #((
3481 ./ | /[cC]/* | \
3482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3483 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3484 /usr/ucb/* ) ;;
3485 *)
3486 # OSF1 and SCO ODT 3.0 have their own names for install.
3487 # Don't use installbsd from OSF since it installs stuff as root
3488 # by default.
3489 for ac_prog in ginstall scoinst install; do
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3492 if test $ac_prog = install &&
3493 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3494 # AIX install. It has an incompatible calling convention.
3495 :
3496 elif test $ac_prog = install &&
3497 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3498 # program-specific install script used by HP pwplus--don't use.
3499 :
3500 else
3501 rm -rf conftest.one conftest.two conftest.dir
3502 echo one > conftest.one
3503 echo two > conftest.two
3504 mkdir conftest.dir
3505 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3506 test -s conftest.one && test -s conftest.two &&
3507 test -s conftest.dir/conftest.one &&
3508 test -s conftest.dir/conftest.two
3509 then
3510 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3511 break 3
3512 fi
3513 fi
3514 fi
3515 done
3516 done
3517 ;;
3518 esac
3519
3520 done
3521 IFS=$as_save_IFS
3522
3523 rm -rf conftest.one conftest.two conftest.dir
3524 ;;
3525 esac
3526 fi
3527 if test ${ac_cv_path_install+y}; then
3528 INSTALL=$ac_cv_path_install
3529 else
3530 # As a last resort, use the slow shell script. Don't cache a
3531 # value for INSTALL within a source directory, because that will
3532 # break other packages using the cache if that directory is
3533 # removed, or if the value is a relative name.
3534 INSTALL=$ac_install_sh
3535 fi
3536 fi
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3538 printf "%s\n" "$INSTALL" >&6; }
3539
3540 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3541 # It thinks the first close brace ends the variable substitution.
3542 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3543
3544 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3545
3546 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3547
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3549 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3550 if test ${am_cv_sleep_fractional_seconds+y}
3551 then :
3552 printf %s "(cached) " >&6
3553 else case e in #(
3554 e) if sleep 0.001 2>/dev/null
3555 then :
3556 am_cv_sleep_fractional_seconds=yes
3557 else case e in #(
3558 e) am_cv_sleep_fractional_seconds=no ;;
3559 esac
3560 fi
3561 ;;
3562 esac
3563 fi
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3565 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3566
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3568 printf %s "checking filesystem timestamp resolution... " >&6; }
3569 if test ${am_cv_filesystem_timestamp_resolution+y}
3570 then :
3571 printf %s "(cached) " >&6
3572 else case e in #(
3573 e) # Default to the worst case.
3574 am_cv_filesystem_timestamp_resolution=2
3575
3576 # Only try to go finer than 1 sec if sleep can do it.
3577 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3578 # - 1 sec is not much of a win compared to 2 sec, and
3579 # - it takes 2 seconds to perform the test whether 1 sec works.
3580 #
3581 # Instead, just use the default 2s on platforms that have 1s resolution,
3582 # accept the extra 1s delay when using $sleep in the Automake tests, in
3583 # exchange for not incurring the 2s delay for running the test for all
3584 # packages.
3585 #
3586 am_try_resolutions=
3587 if test "$am_cv_sleep_fractional_seconds" = yes; then
3588 # Even a millisecond often causes a bunch of false positives,
3589 # so just try a hundredth of a second. The time saved between .001 and
3590 # .01 is not terribly consequential.
3591 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3592 fi
3593
3594 # In order to catch current-generation FAT out, we must *modify* files
3595 # that already exist; the *creation* timestamp is finer. Use names
3596 # that make ls -t sort them differently when they have equal
3597 # timestamps than when they have distinct timestamps, keeping
3598 # in mind that ls -t prints the *newest* file first.
3599 rm -f conftest.ts?
3600 : > conftest.ts1
3601 : > conftest.ts2
3602 : > conftest.ts3
3603
3604 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3605 # clobber the current shell's arguments. (Outer-level square brackets
3606 # are removed by m4; they're present so that m4 does not expand
3607 # <dollar><star>; be careful, easy to get confused.)
3608 if (
3609 set X `ls -t conftest.ts[12]` &&
3610 {
3611 test "$*" != "X conftest.ts1 conftest.ts2" ||
3612 test "$*" != "X conftest.ts2 conftest.ts1";
3613 }
3614 ); then :; else
3615 # If neither matched, then we have a broken ls. This can happen
3616 # if, for instance, CONFIG_SHELL is bash and it inherits a
3617 # broken ls alias from the environment. This has actually
3618 # happened. Such a system could not be considered "sane".
3619 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3621 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3622 as_fn_error $? "ls -t produces unexpected output.
3623 Make sure there is not a broken ls alias in your environment.
3624 See 'config.log' for more details" "$LINENO" 5; }
3625 fi
3626
3627 for am_try_res in $am_try_resolutions; do
3628 # Any one fine-grained sleep might happen to cross the boundary
3629 # between two values of a coarser actual resolution, but if we do
3630 # two fine-grained sleeps in a row, at least one of them will fall
3631 # entirely within a coarse interval.
3632 echo alpha > conftest.ts1
3633 sleep $am_try_res
3634 echo beta > conftest.ts2
3635 sleep $am_try_res
3636 echo gamma > conftest.ts3
3637
3638 # We assume that 'ls -t' will make use of high-resolution
3639 # timestamps if the operating system supports them at all.
3640 if (set X `ls -t conftest.ts?` &&
3641 test "$2" = conftest.ts3 &&
3642 test "$3" = conftest.ts2 &&
3643 test "$4" = conftest.ts1); then
3644 #
3645 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3646 # because we don't need to test make.
3647 make_ok=true
3648 if test $am_try_res != 1; then
3649 # But if we've succeeded so far with a subsecond resolution, we
3650 # have one more thing to check: make. It can happen that
3651 # everything else supports the subsecond mtimes, but make doesn't;
3652 # notably on macOS, which ships make 3.81 from 2006 (the last one
3653 # released under GPLv2). https://bugs.gnu.org/68808
3654 #
3655 # We test $MAKE if it is defined in the environment, else "make".
3656 # It might get overridden later, but our hope is that in practice
3657 # it does not matter: it is the system "make" which is (by far)
3658 # the most likely to be broken, whereas if the user overrides it,
3659 # probably they did so with a better, or at least not worse, make.
3660 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3661 #
3662 # Create a Makefile (real tab character here):
3663 rm -f conftest.mk
3664 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3665 echo ' touch conftest.ts2' >>conftest.mk
3666 #
3667 # Now, running
3668 # touch conftest.ts1; touch conftest.ts2; make
3669 # should touch ts1 because ts2 is newer. This could happen by luck,
3670 # but most often, it will fail if make's support is insufficient. So
3671 # test for several consecutive successes.
3672 #
3673 # (We reuse conftest.ts[12] because we still want to modify existing
3674 # files, not create new ones, per above.)
3675 n=0
3676 make=${MAKE-make}
3677 until test $n -eq 3; do
3678 echo one > conftest.ts1
3679 sleep $am_try_res
3680 echo two > conftest.ts2 # ts2 should now be newer than ts1
3681 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3682 make_ok=false
3683 break # out of $n loop
3684 fi
3685 n=`expr $n + 1`
3686 done
3687 fi
3688 #
3689 if $make_ok; then
3690 # Everything we know to check worked out, so call this resolution good.
3691 am_cv_filesystem_timestamp_resolution=$am_try_res
3692 break # out of $am_try_res loop
3693 fi
3694 # Otherwise, we'll go on to check the next resolution.
3695 fi
3696 done
3697 rm -f conftest.ts?
3698 # (end _am_filesystem_timestamp_resolution)
3699 ;;
3700 esac
3701 fi
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3703 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3704
3705 # This check should not be cached, as it may vary across builds of
3706 # different projects.
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3708 printf %s "checking whether build environment is sane... " >&6; }
3709 # Reject unsafe characters in $srcdir or the absolute working directory
3710 # name. Accept space and tab only in the latter.
3711 am_lf='
3712 '
3713 case `pwd` in
3714 *[\\\"\#\$\&\'\`$am_lf]*)
3715 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3716 esac
3717 case $srcdir in
3718 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3719 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3720 esac
3721
3722 # Do 'set' in a subshell so we don't clobber the current shell's
3723 # arguments. Must try -L first in case configure is actually a
3724 # symlink; some systems play weird games with the mod time of symlinks
3725 # (eg FreeBSD returns the mod time of the symlink's containing
3726 # directory).
3727 am_build_env_is_sane=no
3728 am_has_slept=no
3729 rm -f conftest.file
3730 for am_try in 1 2; do
3731 echo "timestamp, slept: $am_has_slept" > conftest.file
3732 if (
3733 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3734 if test "$*" = "X"; then
3735 # -L didn't work.
3736 set X `ls -t "$srcdir/configure" conftest.file`
3737 fi
3738 test "$2" = conftest.file
3739 ); then
3740 am_build_env_is_sane=yes
3741 break
3742 fi
3743 # Just in case.
3744 sleep "$am_cv_filesystem_timestamp_resolution"
3745 am_has_slept=yes
3746 done
3747
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3749 printf "%s\n" "$am_build_env_is_sane" >&6; }
3750 if test "$am_build_env_is_sane" = no; then
3751 as_fn_error $? "newly created file is older than distributed files!
3752 Check your system clock" "$LINENO" 5
3753 fi
3754
3755 # If we didn't sleep, we still need to ensure time stamps of config.status and
3756 # generated files are strictly newer.
3757 am_sleep_pid=
3758 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3759 then :
3760
3761 else case e in #(
3762 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3763 am_sleep_pid=$!
3764 ;;
3765 esac
3766 fi
3767
3768 rm -f conftest.file
3769
3770 test "$program_prefix" != NONE &&
3771 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3772 # Use a double $ so make ignores it.
3773 test "$program_suffix" != NONE &&
3774 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3775 # Double any \ or $.
3776 # By default was 's,x,x', remove it if useless.
3777 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3778 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3779
3780
3781 # Expand $ac_aux_dir to an absolute path.
3782 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3783
3784
3785 if test x"${MISSING+set}" != xset; then
3786 MISSING="\${SHELL} '$am_aux_dir/missing'"
3787 fi
3788 # Use eval to expand $SHELL
3789 if eval "$MISSING --is-lightweight"; then
3790 am_missing_run="$MISSING "
3791 else
3792 am_missing_run=
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3794 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3795 fi
3796
3797 if test x"${install_sh+set}" != xset; then
3798 case $am_aux_dir in
3799 *\ * | *\ *)
3800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3801 *)
3802 install_sh="\${SHELL} $am_aux_dir/install-sh"
3803 esac
3804 fi
3805
3806 # Installed binaries are usually stripped using 'strip' when the user
3807 # run "make install-strip". However 'strip' might not be the right
3808 # tool to use in cross-compilation environments, therefore Automake
3809 # will honor the 'STRIP' environment variable to overrule this program.
3810 if test "$cross_compiling" != no; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}strip; ac_word=$2
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 printf %s "checking for $ac_word... " >&6; }
3816 if test ${ac_cv_prog_STRIP+y}
3817 then :
3818 printf %s "(cached) " >&6
3819 else case e in #(
3820 e) if test -n "$STRIP"; then
3821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826 IFS=$as_save_IFS
3827 case $as_dir in #(((
3828 '') as_dir=./ ;;
3829 */) ;;
3830 *) as_dir=$as_dir/ ;;
3831 esac
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi ;;
3843 esac
3844 fi
3845 STRIP=$ac_cv_prog_STRIP
3846 if test -n "$STRIP"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3848 printf "%s\n" "$STRIP" >&6; }
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$ac_cv_prog_STRIP"; then
3857 ac_ct_STRIP=$STRIP
3858 # Extract the first word of "strip", so it can be a program name with args.
3859 set dummy strip; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_ac_ct_STRIP+y}
3863 then :
3864 printf %s "(cached) " >&6
3865 else case e in #(
3866 e) if test -n "$ac_ct_STRIP"; then
3867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 case $as_dir in #(((
3874 '') as_dir=./ ;;
3875 */) ;;
3876 *) as_dir=$as_dir/ ;;
3877 esac
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_ac_ct_STRIP="strip"
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 fi ;;
3889 esac
3890 fi
3891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3892 if test -n "$ac_ct_STRIP"; then
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3894 printf "%s\n" "$ac_ct_STRIP" >&6; }
3895 else
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 printf "%s\n" "no" >&6; }
3898 fi
3899
3900 if test "x$ac_ct_STRIP" = x; then
3901 STRIP=":"
3902 else
3903 case $cross_compiling:$ac_tool_warned in
3904 yes:)
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3908 esac
3909 STRIP=$ac_ct_STRIP
3910 fi
3911 else
3912 STRIP="$ac_cv_prog_STRIP"
3913 fi
3914
3915 fi
3916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3917
3918
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3920 printf %s "checking for a race-free mkdir -p... " >&6; }
3921 if test -z "$MKDIR_P"; then
3922 if test ${ac_cv_path_mkdir+y}
3923 then :
3924 printf %s "(cached) " >&6
3925 else case e in #(
3926 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3928 do
3929 IFS=$as_save_IFS
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3935 for ac_prog in mkdir gmkdir; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3938 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3939 'mkdir ('*'coreutils) '* | \
3940 *'BusyBox '* | \
3941 'mkdir (fileutils) '4.1*)
3942 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3943 break 3;;
3944 esac
3945 done
3946 done
3947 done
3948 IFS=$as_save_IFS
3949 ;;
3950 esac
3951 fi
3952
3953 test -d ./--version && rmdir ./--version
3954 if test ${ac_cv_path_mkdir+y}; then
3955 MKDIR_P="$ac_cv_path_mkdir -p"
3956 else
3957 # As a last resort, use plain mkdir -p,
3958 # in the hope it doesn't have the bugs of ancient mkdir.
3959 MKDIR_P='mkdir -p'
3960 fi
3961 fi
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3963 printf "%s\n" "$MKDIR_P" >&6; }
3964
3965 for ac_prog in gawk mawk nawk awk
3966 do
3967 # Extract the first word of "$ac_prog", so it can be a program name with args.
3968 set dummy $ac_prog; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_AWK+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else case e in #(
3975 e) if test -n "$AWK"; then
3976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 case $as_dir in #(((
3983 '') as_dir=./ ;;
3984 */) ;;
3985 *) as_dir=$as_dir/ ;;
3986 esac
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_AWK="$ac_prog"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi ;;
3998 esac
3999 fi
4000 AWK=$ac_cv_prog_AWK
4001 if test -n "$AWK"; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4003 printf "%s\n" "$AWK" >&6; }
4004 else
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 fi
4008
4009
4010 test -n "$AWK" && break
4011 done
4012
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4014 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4015 set x ${MAKE-make}
4016 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4017 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else case e in #(
4021 e) cat >conftest.make <<\_ACEOF
4022 SHELL = /bin/sh
4023 all:
4024 @echo '@@@%%%=$(MAKE)=@@@%%%'
4025 _ACEOF
4026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4028 *@@@%%%=?*=@@@%%%*)
4029 eval ac_cv_prog_make_${ac_make}_set=yes;;
4030 *)
4031 eval ac_cv_prog_make_${ac_make}_set=no;;
4032 esac
4033 rm -f conftest.make ;;
4034 esac
4035 fi
4036 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4038 printf "%s\n" "yes" >&6; }
4039 SET_MAKE=
4040 else
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042 printf "%s\n" "no" >&6; }
4043 SET_MAKE="MAKE=${MAKE-make}"
4044 fi
4045
4046 rm -rf .tst 2>/dev/null
4047 mkdir .tst 2>/dev/null
4048 if test -d .tst; then
4049 am__leading_dot=.
4050 else
4051 am__leading_dot=_
4052 fi
4053 rmdir .tst 2>/dev/null
4054
4055 AM_DEFAULT_VERBOSITY=1
4056 # Check whether --enable-silent-rules was given.
4057 if test ${enable_silent_rules+y}
4058 then :
4059 enableval=$enable_silent_rules;
4060 fi
4061
4062 am_make=${MAKE-make}
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4064 printf %s "checking whether $am_make supports nested variables... " >&6; }
4065 if test ${am_cv_make_support_nested_variables+y}
4066 then :
4067 printf %s "(cached) " >&6
4068 else case e in #(
4069 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4070 BAR0=false
4071 BAR1=true
4072 V=1
4073 am__doit:
4074 @$(TRUE)
4075 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4076 am_cv_make_support_nested_variables=yes
4077 else
4078 am_cv_make_support_nested_variables=no
4079 fi ;;
4080 esac
4081 fi
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4083 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4084 AM_BACKSLASH='\'
4085
4086 am__rm_f_notfound=
4087 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4088 then :
4089
4090 else case e in #(
4091 e) am__rm_f_notfound='""' ;;
4092 esac
4093 fi
4094
4095
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4097 printf %s "checking xargs -n works... " >&6; }
4098 if test ${am_cv_xargs_n_works+y}
4099 then :
4100 printf %s "(cached) " >&6
4101 else case e in #(
4102 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4103 3"
4104 then :
4105 am_cv_xargs_n_works=yes
4106 else case e in #(
4107 e) am_cv_xargs_n_works=no ;;
4108 esac
4109 fi ;;
4110 esac
4111 fi
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4113 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4114 if test "$am_cv_xargs_n_works" = yes
4115 then :
4116 am__xargs_n='xargs -n'
4117 else case e in #(
4118 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4119 ;;
4120 esac
4121 fi
4122
4123 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4124 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4125 # is not polluted with repeated "-I."
4126 am__isrc=' -I$(srcdir)'
4127 # test to see if srcdir already configured
4128 if test -f $srcdir/config.status; then
4129 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4130 fi
4131 fi
4132
4133 # test whether we have cygpath
4134 if test -z "$CYGPATH_W"; then
4135 if (cygpath --version) >/dev/null 2>/dev/null; then
4136 CYGPATH_W='cygpath -w'
4137 else
4138 CYGPATH_W=echo
4139 fi
4140 fi
4141
4142
4143 # Define the identity of the package.
4144 PACKAGE='systemtap'
4145 VERSION='5.4'
4146
4147
4148 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4149
4150
4151 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4152
4153 # Some tools Automake needs.
4154
4155 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4156
4157
4158 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4159
4160
4161 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4162
4163
4164 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4165
4166
4167 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4168
4169 # For better backward compatibility. To be removed once Automake 1.9.x
4170 # dies out for good. For more background, see:
4171 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4172 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4173 mkdir_p='$(MKDIR_P)'
4174
4175 # We need awk for the "check" target (and possibly the TAP driver). The
4176 # system "awk" is bad on some platforms.
4177 # Always define AMTAR for backward compatibility. Yes, it's still used
4178 # in the wild :-( We should find a proper way to deprecate it ...
4179 AMTAR='$${TAR-tar}'
4180
4181
4182 # We'll loop over all known methods to create a tar archive until one works.
4183 _am_tools='gnutar pax cpio none'
4184
4185 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4186
4187
4188
4189
4190
4191 # Variables for tags utilities; see am/tags.am
4192 if test -z "$CTAGS"; then
4193 CTAGS=ctags
4194 fi
4195
4196 if test -z "$ETAGS"; then
4197 ETAGS=etags
4198 fi
4199
4200 if test -z "$CSCOPE"; then
4201 CSCOPE=cscope
4202 fi
4203
4204
4205
4206
4207
4208
4209
4210
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4212 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4213 # Check whether --enable-maintainer-mode was given.
4214 if test ${enable_maintainer_mode+y}
4215 then :
4216 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4217 else case e in #(
4218 e) USE_MAINTAINER_MODE=no ;;
4219 esac
4220 fi
4221
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4223 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4224 if test $USE_MAINTAINER_MODE = yes; then
4225 MAINTAINER_MODE_TRUE=
4226 MAINTAINER_MODE_FALSE='#'
4227 else
4228 MAINTAINER_MODE_TRUE='#'
4229 MAINTAINER_MODE_FALSE=
4230 fi
4231
4232 MAINT=$MAINTAINER_MODE_TRUE
4233
4234
4235
4236
4237 AM_DEFAULT_VERBOSITY=0
4238
4239
4240
4241
4242
4243
4244
4245
4246 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4247 if test -n "$ac_tool_prefix"; then
4248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 printf %s "checking for $ac_word... " >&6; }
4252 if test ${ac_cv_path_PKG_CONFIG+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else case e in #(
4256 e) case $PKG_CONFIG in
4257 [\\/]* | ?:[\\/]*)
4258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4259 ;;
4260 *)
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264 IFS=$as_save_IFS
4265 case $as_dir in #(((
4266 '') as_dir=./ ;;
4267 */) ;;
4268 *) as_dir=$as_dir/ ;;
4269 esac
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4272 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 ;;
4281 esac ;;
4282 esac
4283 fi
4284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4285 if test -n "$PKG_CONFIG"; then
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4287 printf "%s\n" "$PKG_CONFIG" >&6; }
4288 else
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 printf "%s\n" "no" >&6; }
4291 fi
4292
4293
4294 fi
4295 if test -z "$ac_cv_path_PKG_CONFIG"; then
4296 ac_pt_PKG_CONFIG=$PKG_CONFIG
4297 # Extract the first word of "pkg-config", so it can be a program name with args.
4298 set dummy pkg-config; ac_word=$2
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 printf %s "checking for $ac_word... " >&6; }
4301 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4302 then :
4303 printf %s "(cached) " >&6
4304 else case e in #(
4305 e) case $ac_pt_PKG_CONFIG in
4306 [\\/]* | ?:[\\/]*)
4307 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4308 ;;
4309 *)
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 case $as_dir in #(((
4315 '') as_dir=./ ;;
4316 */) ;;
4317 *) as_dir=$as_dir/ ;;
4318 esac
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4321 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 ;;
4330 esac ;;
4331 esac
4332 fi
4333 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4334 if test -n "$ac_pt_PKG_CONFIG"; then
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4336 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4337 else
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 printf "%s\n" "no" >&6; }
4340 fi
4341
4342 if test "x$ac_pt_PKG_CONFIG" = x; then
4343 PKG_CONFIG=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349 ac_tool_warned=yes ;;
4350 esac
4351 PKG_CONFIG=$ac_pt_PKG_CONFIG
4352 fi
4353 else
4354 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4355 fi
4356
4357 fi
4358 if test -n "$PKG_CONFIG"; then
4359 _pkg_min_version=0.9.0
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4361 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4362 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 printf "%s\n" "yes" >&6; }
4365 else
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 printf "%s\n" "no" >&6; }
4368 PKG_CONFIG=""
4369 fi
4370 fi
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 DEPDIR="${am__leading_dot}deps"
4381
4382 ac_config_commands="$ac_config_commands depfiles"
4383
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4385 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4386 cat > confinc.mk << 'END'
4387 am__doit:
4388 @echo this is the am__doit target >confinc.out
4389 .PHONY: am__doit
4390 END
4391 am__include="#"
4392 am__quote=
4393 # BSD make does it like this.
4394 echo '.include "confinc.mk" # ignored' > confmf.BSD
4395 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4396 echo 'include confinc.mk # ignored' > confmf.GNU
4397 _am_result=no
4398 for s in GNU BSD; do
4399 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4400 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }
4404 case $?:`cat confinc.out 2>/dev/null` in #(
4405 '0:this is the am__doit target') :
4406 case $s in #(
4407 BSD) :
4408 am__include='.include' am__quote='"' ;; #(
4409 *) :
4410 am__include='include' am__quote='' ;;
4411 esac ;; #(
4412 *) :
4413 ;;
4414 esac
4415 if test "$am__include" != "#"; then
4416 _am_result="yes ($s style)"
4417 break
4418 fi
4419 done
4420 rm -f confinc.* confmf.*
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4422 printf "%s\n" "${_am_result}" >&6; }
4423
4424 # Check whether --enable-dependency-tracking was given.
4425 if test ${enable_dependency_tracking+y}
4426 then :
4427 enableval=$enable_dependency_tracking;
4428 fi
4429
4430 if test "x$enable_dependency_tracking" != xno; then
4431 am_depcomp="$ac_aux_dir/depcomp"
4432 AMDEPBACKSLASH='\'
4433 am__nodep='_no'
4434 fi
4435 if test "x$enable_dependency_tracking" != xno; then
4436 AMDEP_TRUE=
4437 AMDEP_FALSE='#'
4438 else
4439 AMDEP_TRUE='#'
4440 AMDEP_FALSE=
4441 fi
4442
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 printf %s "checking for $ac_word... " >&6; }
4454 if test ${ac_cv_prog_CC+y}
4455 then :
4456 printf %s "(cached) " >&6
4457 else case e in #(
4458 e) if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 case $as_dir in #(((
4466 '') as_dir=./ ;;
4467 */) ;;
4468 *) as_dir=$as_dir/ ;;
4469 esac
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 fi ;;
4481 esac
4482 fi
4483 CC=$ac_cv_prog_CC
4484 if test -n "$CC"; then
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486 printf "%s\n" "$CC" >&6; }
4487 else
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 printf "%s\n" "no" >&6; }
4490 fi
4491
4492
4493 fi
4494 if test -z "$ac_cv_prog_CC"; then
4495 ac_ct_CC=$CC
4496 # Extract the first word of "gcc", so it can be a program name with args.
4497 set dummy gcc; ac_word=$2
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 printf %s "checking for $ac_word... " >&6; }
4500 if test ${ac_cv_prog_ac_ct_CC+y}
4501 then :
4502 printf %s "(cached) " >&6
4503 else case e in #(
4504 e) if test -n "$ac_ct_CC"; then
4505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510 IFS=$as_save_IFS
4511 case $as_dir in #(((
4512 '') as_dir=./ ;;
4513 */) ;;
4514 *) as_dir=$as_dir/ ;;
4515 esac
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_CC="gcc"
4519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 fi ;;
4527 esac
4528 fi
4529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530 if test -n "$ac_ct_CC"; then
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4532 printf "%s\n" "$ac_ct_CC" >&6; }
4533 else
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 printf "%s\n" "no" >&6; }
4536 fi
4537
4538 if test "x$ac_ct_CC" = x; then
4539 CC=""
4540 else
4541 case $cross_compiling:$ac_tool_warned in
4542 yes:)
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4546 esac
4547 CC=$ac_ct_CC
4548 fi
4549 else
4550 CC="$ac_cv_prog_CC"
4551 fi
4552
4553 if test -z "$CC"; then
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}cc; ac_word=$2
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 printf %s "checking for $ac_word... " >&6; }
4559 if test ${ac_cv_prog_CC+y}
4560 then :
4561 printf %s "(cached) " >&6
4562 else case e in #(
4563 e) if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569 IFS=$as_save_IFS
4570 case $as_dir in #(((
4571 '') as_dir=./ ;;
4572 */) ;;
4573 *) as_dir=$as_dir/ ;;
4574 esac
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_CC="${ac_tool_prefix}cc"
4578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 fi ;;
4586 esac
4587 fi
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 printf "%s\n" "$CC" >&6; }
4592 else
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 printf "%s\n" "no" >&6; }
4595 fi
4596
4597
4598 fi
4599 fi
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 printf %s "checking for $ac_word... " >&6; }
4605 if test ${ac_cv_prog_CC+y}
4606 then :
4607 printf %s "(cached) " >&6
4608 else case e in #(
4609 e) if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 ac_prog_rejected=no
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 case $as_dir in #(((
4618 '') as_dir=./ ;;
4619 */) ;;
4620 *) as_dir=$as_dir/ ;;
4621 esac
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4624 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4625 ac_prog_rejected=yes
4626 continue
4627 fi
4628 ac_cv_prog_CC="cc"
4629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632 done
4633 done
4634 IFS=$as_save_IFS
4635
4636 if test $ac_prog_rejected = yes; then
4637 # We found a bogon in the path, so make sure we never use it.
4638 set dummy $ac_cv_prog_CC
4639 shift
4640 if test $# != 0; then
4641 # We chose a different compiler from the bogus one.
4642 # However, it has the same basename, so the bogon will be chosen
4643 # first if we set CC to just the basename; use the full file name.
4644 shift
4645 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4646 fi
4647 fi
4648 fi ;;
4649 esac
4650 fi
4651 CC=$ac_cv_prog_CC
4652 if test -n "$CC"; then
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654 printf "%s\n" "$CC" >&6; }
4655 else
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 printf "%s\n" "no" >&6; }
4658 fi
4659
4660
4661 fi
4662 if test -z "$CC"; then
4663 if test -n "$ac_tool_prefix"; then
4664 for ac_prog in cl.exe
4665 do
4666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 printf %s "checking for $ac_word... " >&6; }
4670 if test ${ac_cv_prog_CC+y}
4671 then :
4672 printf %s "(cached) " >&6
4673 else case e in #(
4674 e) if test -n "$CC"; then
4675 ac_cv_prog_CC="$CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 case $as_dir in #(((
4682 '') as_dir=./ ;;
4683 */) ;;
4684 *) as_dir=$as_dir/ ;;
4685 esac
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi ;;
4697 esac
4698 fi
4699 CC=$ac_cv_prog_CC
4700 if test -n "$CC"; then
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 printf "%s\n" "$CC" >&6; }
4703 else
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 printf "%s\n" "no" >&6; }
4706 fi
4707
4708
4709 test -n "$CC" && break
4710 done
4711 fi
4712 if test -z "$CC"; then
4713 ac_ct_CC=$CC
4714 for ac_prog in cl.exe
4715 do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 printf %s "checking for $ac_word... " >&6; }
4720 if test ${ac_cv_prog_ac_ct_CC+y}
4721 then :
4722 printf %s "(cached) " >&6
4723 else case e in #(
4724 e) if test -n "$ac_ct_CC"; then
4725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730 IFS=$as_save_IFS
4731 case $as_dir in #(((
4732 '') as_dir=./ ;;
4733 */) ;;
4734 *) as_dir=$as_dir/ ;;
4735 esac
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_CC="$ac_prog"
4739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi ;;
4747 esac
4748 fi
4749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4750 if test -n "$ac_ct_CC"; then
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4752 printf "%s\n" "$ac_ct_CC" >&6; }
4753 else
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 printf "%s\n" "no" >&6; }
4756 fi
4757
4758
4759 test -n "$ac_ct_CC" && break
4760 done
4761
4762 if test "x$ac_ct_CC" = x; then
4763 CC=""
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771 CC=$ac_ct_CC
4772 fi
4773 fi
4774
4775 fi
4776 if test -z "$CC"; then
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}clang; ac_word=$2
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 printf %s "checking for $ac_word... " >&6; }
4782 if test ${ac_cv_prog_CC+y}
4783 then :
4784 printf %s "(cached) " >&6
4785 else case e in #(
4786 e) if test -n "$CC"; then
4787 ac_cv_prog_CC="$CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 case $as_dir in #(((
4794 '') as_dir=./ ;;
4795 */) ;;
4796 *) as_dir=$as_dir/ ;;
4797 esac
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_CC="${ac_tool_prefix}clang"
4801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi ;;
4809 esac
4810 fi
4811 CC=$ac_cv_prog_CC
4812 if test -n "$CC"; then
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4814 printf "%s\n" "$CC" >&6; }
4815 else
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 printf "%s\n" "no" >&6; }
4818 fi
4819
4820
4821 fi
4822 if test -z "$ac_cv_prog_CC"; then
4823 ac_ct_CC=$CC
4824 # Extract the first word of "clang", so it can be a program name with args.
4825 set dummy clang; ac_word=$2
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 printf %s "checking for $ac_word... " >&6; }
4828 if test ${ac_cv_prog_ac_ct_CC+y}
4829 then :
4830 printf %s "(cached) " >&6
4831 else case e in #(
4832 e) if test -n "$ac_ct_CC"; then
4833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838 IFS=$as_save_IFS
4839 case $as_dir in #(((
4840 '') as_dir=./ ;;
4841 */) ;;
4842 *) as_dir=$as_dir/ ;;
4843 esac
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_ac_ct_CC="clang"
4847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854 fi ;;
4855 esac
4856 fi
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4860 printf "%s\n" "$ac_ct_CC" >&6; }
4861 else
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 printf "%s\n" "no" >&6; }
4864 fi
4865
4866 if test "x$ac_ct_CC" = x; then
4867 CC=""
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CC=$ac_ct_CC
4876 fi
4877 else
4878 CC="$ac_cv_prog_CC"
4879 fi
4880
4881 fi
4882
4883
4884 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4885 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4886 as_fn_error $? "no acceptable C compiler found in \$PATH
4887 See 'config.log' for more details" "$LINENO" 5; }
4888
4889 # Provide some information about the compiler.
4890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4891 set X $ac_compile
4892 ac_compiler=$2
4893 for ac_option in --version -v -V -qversion -version; do
4894 { { ac_try="$ac_compiler $ac_option >&5"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 printf "%s\n" "$ac_try_echo"; } >&5
4901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4902 ac_status=$?
4903 if test -s conftest.err; then
4904 sed '10a\
4905 ... rest of stderr output deleted ...
4906 10q' conftest.err >conftest.er1
4907 cat conftest.er1 >&5
4908 fi
4909 rm -f conftest.er1 conftest.err
4910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }
4912 done
4913
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916
4917 int
4918 main (void)
4919 {
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 ac_clean_files_save=$ac_clean_files
4926 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4927 # Try to create an executable without -o first, disregard a.out.
4928 # It will help us diagnose broken compilers, and finding out an intuition
4929 # of exeext.
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4931 printf %s "checking whether the C compiler works... " >&6; }
4932 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4933
4934 # The possible output files:
4935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4936
4937 ac_rmfiles=
4938 for ac_file in $ac_files
4939 do
4940 case $ac_file in
4941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4942 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4943 esac
4944 done
4945 rm -f $ac_rmfiles
4946
4947 if { { ac_try="$ac_link_default"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953 printf "%s\n" "$ac_try_echo"; } >&5
4954 (eval "$ac_link_default") 2>&5
4955 ac_status=$?
4956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }
4958 then :
4959 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4960 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4961 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4962 # so that the user can short-circuit this test for compilers unknown to
4963 # Autoconf.
4964 for ac_file in $ac_files ''
4965 do
4966 test -f "$ac_file" || continue
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4969 ;;
4970 [ab].out )
4971 # We found the default executable, but exeext='' is most
4972 # certainly right.
4973 break;;
4974 *.* )
4975 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4976 then :; else
4977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4978 fi
4979 # We set ac_cv_exeext here because the later test for it is not
4980 # safe: cross compilers may not add the suffix if given an '-o'
4981 # argument, so we may need to know it at that point already.
4982 # Even if this section looks crufty: it has the advantage of
4983 # actually working.
4984 break;;
4985 * )
4986 break;;
4987 esac
4988 done
4989 test "$ac_cv_exeext" = no && ac_cv_exeext=
4990
4991 else case e in #(
4992 e) ac_file='' ;;
4993 esac
4994 fi
4995 if test -z "$ac_file"
4996 then :
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 printf "%s\n" "no" >&6; }
4999 printf "%s\n" "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5003 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5004 as_fn_error 77 "C compiler cannot create executables
5005 See 'config.log' for more details" "$LINENO" 5; }
5006 else case e in #(
5007 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5008 printf "%s\n" "yes" >&6; } ;;
5009 esac
5010 fi
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5012 printf %s "checking for C compiler default output file name... " >&6; }
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5014 printf "%s\n" "$ac_file" >&6; }
5015 ac_exeext=$ac_cv_exeext
5016
5017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5018 ac_clean_files=$ac_clean_files_save
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5020 printf %s "checking for suffix of executables... " >&6; }
5021 if { { ac_try="$ac_link"
5022 case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025 esac
5026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5027 printf "%s\n" "$ac_try_echo"; } >&5
5028 (eval "$ac_link") 2>&5
5029 ac_status=$?
5030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5031 test $ac_status = 0; }
5032 then :
5033 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5034 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5035 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5036 # 'rm'.
5037 for ac_file in conftest.exe conftest conftest.*; do
5038 test -f "$ac_file" || continue
5039 case $ac_file in
5040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5042 break;;
5043 * ) break;;
5044 esac
5045 done
5046 else case e in #(
5047 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5050 See 'config.log' for more details" "$LINENO" 5; } ;;
5051 esac
5052 fi
5053 rm -f conftest conftest$ac_cv_exeext
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5055 printf "%s\n" "$ac_cv_exeext" >&6; }
5056
5057 rm -f conftest.$ac_ext
5058 EXEEXT=$ac_cv_exeext
5059 ac_exeext=$EXEEXT
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #include <stdio.h>
5063 int
5064 main (void)
5065 {
5066 FILE *f = fopen ("conftest.out", "w");
5067 if (!f)
5068 return 1;
5069 return ferror (f) || fclose (f) != 0;
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 ac_clean_files="$ac_clean_files conftest.out"
5076 # Check that the compiler produces executables we can run. If not, either
5077 # the compiler is broken, or we cross compile.
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5079 printf %s "checking whether we are cross compiling... " >&6; }
5080 if test "$cross_compiling" != yes; then
5081 { { ac_try="$ac_link"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 printf "%s\n" "$ac_try_echo"; } >&5
5088 (eval "$ac_link") 2>&5
5089 ac_status=$?
5090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }
5092 if { ac_try='./conftest$ac_cv_exeext'
5093 { { case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5098 printf "%s\n" "$ac_try_echo"; } >&5
5099 (eval "$ac_try") 2>&5
5100 ac_status=$?
5101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5102 test $ac_status = 0; }; }; then
5103 cross_compiling=no
5104 else
5105 if test "$cross_compiling" = maybe; then
5106 cross_compiling=yes
5107 else
5108 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5109 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5110 as_fn_error 77 "cannot run C compiled programs.
5111 If you meant to cross compile, use '--host'.
5112 See 'config.log' for more details" "$LINENO" 5; }
5113 fi
5114 fi
5115 fi
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5117 printf "%s\n" "$cross_compiling" >&6; }
5118
5119 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5120 conftest.o conftest.obj conftest.out
5121 ac_clean_files=$ac_clean_files_save
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5123 printf %s "checking for suffix of object files... " >&6; }
5124 if test ${ac_cv_objext+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130
5131 int
5132 main (void)
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.o conftest.obj
5140 if { { ac_try="$ac_compile"
5141 case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144 esac
5145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5146 printf "%s\n" "$ac_try_echo"; } >&5
5147 (eval "$ac_compile") 2>&5
5148 ac_status=$?
5149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5150 test $ac_status = 0; }
5151 then :
5152 for ac_file in conftest.o conftest.obj conftest.*; do
5153 test -f "$ac_file" || continue;
5154 case $ac_file in
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5157 break;;
5158 esac
5159 done
5160 else case e in #(
5161 e) printf "%s\n" "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5165 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5166 as_fn_error $? "cannot compute suffix of object files: cannot compile
5167 See 'config.log' for more details" "$LINENO" 5; } ;;
5168 esac
5169 fi
5170 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5171 esac
5172 fi
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5174 printf "%s\n" "$ac_cv_objext" >&6; }
5175 OBJEXT=$ac_cv_objext
5176 ac_objext=$OBJEXT
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5178 printf %s "checking whether the compiler supports GNU C... " >&6; }
5179 if test ${ac_cv_c_compiler_gnu+y}
5180 then :
5181 printf %s "(cached) " >&6
5182 else case e in #(
5183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185
5186 int
5187 main (void)
5188 {
5189 #ifndef __GNUC__
5190 choke me
5191 #endif
5192
5193 ;
5194 return 0;
5195 }
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"
5198 then :
5199 ac_compiler_gnu=yes
5200 else case e in #(
5201 e) ac_compiler_gnu=no ;;
5202 esac
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5206 ;;
5207 esac
5208 fi
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5210 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212
5213 if test $ac_compiler_gnu = yes; then
5214 GCC=yes
5215 else
5216 GCC=
5217 fi
5218 ac_test_CFLAGS=${CFLAGS+y}
5219 ac_save_CFLAGS=$CFLAGS
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5221 printf %s "checking whether $CC accepts -g... " >&6; }
5222 if test ${ac_cv_prog_cc_g+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else case e in #(
5226 e) ac_save_c_werror_flag=$ac_c_werror_flag
5227 ac_c_werror_flag=yes
5228 ac_cv_prog_cc_g=no
5229 CFLAGS="-g"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232
5233 int
5234 main (void)
5235 {
5236
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"
5242 then :
5243 ac_cv_prog_cc_g=yes
5244 else case e in #(
5245 e) CFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248
5249 int
5250 main (void)
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"
5258 then :
5259
5260 else case e in #(
5261 e) ac_c_werror_flag=$ac_save_c_werror_flag
5262 CFLAGS="-g"
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265
5266 int
5267 main (void)
5268 {
5269
5270 ;
5271 return 0;
5272 }
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"
5275 then :
5276 ac_cv_prog_cc_g=yes
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5279 esac
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5282 esac
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5285 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5286 esac
5287 fi
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5289 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5290 if test $ac_test_CFLAGS; then
5291 CFLAGS=$ac_save_CFLAGS
5292 elif test $ac_cv_prog_cc_g = yes; then
5293 if test "$GCC" = yes; then
5294 CFLAGS="-g -O2"
5295 else
5296 CFLAGS="-g"
5297 fi
5298 else
5299 if test "$GCC" = yes; then
5300 CFLAGS="-O2"
5301 else
5302 CFLAGS=
5303 fi
5304 fi
5305 ac_prog_cc_stdc=no
5306 if test x$ac_prog_cc_stdc = xno
5307 then :
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5309 printf %s "checking for $CC option to enable C11 features... " >&6; }
5310 if test ${ac_cv_prog_cc_c11+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else case e in #(
5314 e) ac_cv_prog_cc_c11=no
5315 ac_save_CC=$CC
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 $ac_c_conftest_c11_program
5319 _ACEOF
5320 for ac_arg in '' -std=gnu11
5321 do
5322 CC="$ac_save_CC $ac_arg"
5323 if ac_fn_c_try_compile "$LINENO"
5324 then :
5325 ac_cv_prog_cc_c11=$ac_arg
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.beam
5328 test "x$ac_cv_prog_cc_c11" != "xno" && break
5329 done
5330 rm -f conftest.$ac_ext
5331 CC=$ac_save_CC ;;
5332 esac
5333 fi
5334
5335 if test "x$ac_cv_prog_cc_c11" = xno
5336 then :
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5338 printf "%s\n" "unsupported" >&6; }
5339 else case e in #(
5340 e) if test "x$ac_cv_prog_cc_c11" = x
5341 then :
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5343 printf "%s\n" "none needed" >&6; }
5344 else case e in #(
5345 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5346 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5347 CC="$CC $ac_cv_prog_cc_c11" ;;
5348 esac
5349 fi
5350 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5351 ac_prog_cc_stdc=c11 ;;
5352 esac
5353 fi
5354 fi
5355 if test x$ac_prog_cc_stdc = xno
5356 then :
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5358 printf %s "checking for $CC option to enable C99 features... " >&6; }
5359 if test ${ac_cv_prog_cc_c99+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else case e in #(
5363 e) ac_cv_prog_cc_c99=no
5364 ac_save_CC=$CC
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 $ac_c_conftest_c99_program
5368 _ACEOF
5369 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5370 do
5371 CC="$ac_save_CC $ac_arg"
5372 if ac_fn_c_try_compile "$LINENO"
5373 then :
5374 ac_cv_prog_cc_c99=$ac_arg
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.beam
5377 test "x$ac_cv_prog_cc_c99" != "xno" && break
5378 done
5379 rm -f conftest.$ac_ext
5380 CC=$ac_save_CC ;;
5381 esac
5382 fi
5383
5384 if test "x$ac_cv_prog_cc_c99" = xno
5385 then :
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 printf "%s\n" "unsupported" >&6; }
5388 else case e in #(
5389 e) if test "x$ac_cv_prog_cc_c99" = x
5390 then :
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5392 printf "%s\n" "none needed" >&6; }
5393 else case e in #(
5394 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5395 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5396 CC="$CC $ac_cv_prog_cc_c99" ;;
5397 esac
5398 fi
5399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5400 ac_prog_cc_stdc=c99 ;;
5401 esac
5402 fi
5403 fi
5404 if test x$ac_prog_cc_stdc = xno
5405 then :
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5407 printf %s "checking for $CC option to enable C89 features... " >&6; }
5408 if test ${ac_cv_prog_cc_c89+y}
5409 then :
5410 printf %s "(cached) " >&6
5411 else case e in #(
5412 e) ac_cv_prog_cc_c89=no
5413 ac_save_CC=$CC
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 $ac_c_conftest_c89_program
5417 _ACEOF
5418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5419 do
5420 CC="$ac_save_CC $ac_arg"
5421 if ac_fn_c_try_compile "$LINENO"
5422 then :
5423 ac_cv_prog_cc_c89=$ac_arg
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam
5426 test "x$ac_cv_prog_cc_c89" != "xno" && break
5427 done
5428 rm -f conftest.$ac_ext
5429 CC=$ac_save_CC ;;
5430 esac
5431 fi
5432
5433 if test "x$ac_cv_prog_cc_c89" = xno
5434 then :
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5436 printf "%s\n" "unsupported" >&6; }
5437 else case e in #(
5438 e) if test "x$ac_cv_prog_cc_c89" = x
5439 then :
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5441 printf "%s\n" "none needed" >&6; }
5442 else case e in #(
5443 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5444 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5445 CC="$CC $ac_cv_prog_cc_c89" ;;
5446 esac
5447 fi
5448 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5449 ac_prog_cc_stdc=c89 ;;
5450 esac
5451 fi
5452 fi
5453
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460
5461 ac_ext=c
5462 ac_cpp='$CPP $CPPFLAGS'
5463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5467 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5468 if test ${am_cv_prog_cc_c_o+y}
5469 then :
5470 printf %s "(cached) " >&6
5471 else case e in #(
5472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474
5475 int
5476 main (void)
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 # Make sure it works both with $CC and with simple cc.
5484 # Following AC_PROG_CC_C_O, we do the test twice because some
5485 # compilers refuse to overwrite an existing .o file with -o,
5486 # though they will create one.
5487 am_cv_prog_cc_c_o=yes
5488 for am_i in 1 2; do
5489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } \
5494 && test -f conftest2.$ac_objext; then
5495 : OK
5496 else
5497 am_cv_prog_cc_c_o=no
5498 break
5499 fi
5500 done
5501 rm -f core conftest*
5502 unset am_i ;;
5503 esac
5504 fi
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5506 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5507 if test "$am_cv_prog_cc_c_o" != yes; then
5508 # Losing compiler, so override with the script.
5509 # FIXME: It is wrong to rewrite CC.
5510 # But if we don't then we get into trouble of one sort or another.
5511 # A longer-term fix would be to have automake use am__CC in this case,
5512 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5513 CC="$am_aux_dir/compile $CC"
5514 fi
5515 ac_ext=c
5516 ac_cpp='$CPP $CPPFLAGS'
5517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521
5522 depcc="$CC" am_compiler_list=
5523
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5525 printf %s "checking dependency style of $depcc... " >&6; }
5526 if test ${am_cv_CC_dependencies_compiler_type+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else case e in #(
5530 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named 'D' -- because '-MD' means "put the output
5535 # in D".
5536 rm -rf conftest.dir
5537 mkdir conftest.dir
5538 # Copy depcomp to subdir because otherwise we won't find it if we're
5539 # using a relative directory.
5540 cp "$am_depcomp" conftest.dir
5541 cd conftest.dir
5542 # We will build objects and dependencies in a subdirectory because
5543 # it helps to detect inapplicable dependency modes. For instance
5544 # both Tru64's cc and ICC support -MD to output dependencies as a
5545 # side effect of compilation, but ICC will put the dependencies in
5546 # the current directory while Tru64 will put them in the object
5547 # directory.
5548 mkdir sub
5549
5550 am_cv_CC_dependencies_compiler_type=none
5551 if test "$am_compiler_list" = ""; then
5552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 fi
5554 am__universal=false
5555 case " $depcc " in #(
5556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5557 esac
5558
5559 for depmode in $am_compiler_list; do
5560 # Setup a source with many dependencies, because some compilers
5561 # like to wrap large dependency lists on column 80 (with \), and
5562 # we should not choose a depcomp mode which is confused by this.
5563 #
5564 # We need to recreate these files for each test, as the compiler may
5565 # overwrite some of them when testing with obscure command lines.
5566 # This happens at least with the AIX C compiler.
5567 : > sub/conftest.c
5568 for i in 1 2 3 4 5 6; do
5569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5570 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5571 # Solaris 10 /bin/sh.
5572 echo '/* dummy */' > sub/conftst$i.h
5573 done
5574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5575
5576 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5577 # mode. It turns out that the SunPro C++ compiler does not properly
5578 # handle '-M -o', and we need to detect this. Also, some Intel
5579 # versions had trouble with output in subdirs.
5580 am__obj=sub/conftest.${OBJEXT-o}
5581 am__minus_obj="-o $am__obj"
5582 case $depmode in
5583 gcc)
5584 # This depmode causes a compiler race in universal mode.
5585 test "$am__universal" = false || continue
5586 ;;
5587 nosideeffect)
5588 # After this tag, mechanisms are not by side-effect, so they'll
5589 # only be used when explicitly requested.
5590 if test "x$enable_dependency_tracking" = xyes; then
5591 continue
5592 else
5593 break
5594 fi
5595 ;;
5596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5597 # This compiler won't grok '-c -o', but also, the minuso test has
5598 # not run yet. These depmodes are late enough in the game, and
5599 # so weak that their functioning should not be impacted.
5600 am__obj=conftest.${OBJEXT-o}
5601 am__minus_obj=
5602 ;;
5603 none) break ;;
5604 esac
5605 if depmode=$depmode \
5606 source=sub/conftest.c object=$am__obj \
5607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5609 >/dev/null 2>conftest.err &&
5610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5614 # icc doesn't choke on unknown options, it will just issue warnings
5615 # or remarks (even with -Werror). So we grep stderr for any message
5616 # that says an option was ignored or not supported.
5617 # When given -MP, icc 7.0 and 7.1 complain thus:
5618 # icc: Command line warning: ignoring option '-M'; no argument required
5619 # The diagnosis changed in icc 8.0:
5620 # icc: Command line remark: option '-MP' not supported
5621 if (grep 'ignoring option' conftest.err ||
5622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5623 am_cv_CC_dependencies_compiler_type=$depmode
5624 break
5625 fi
5626 fi
5627 done
5628
5629 cd ..
5630 rm -rf conftest.dir
5631 else
5632 am_cv_CC_dependencies_compiler_type=none
5633 fi
5634 ;;
5635 esac
5636 fi
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5638 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5640
5641 if
5642 test "x$enable_dependency_tracking" != xno \
5643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5644 am__fastdepCC_TRUE=
5645 am__fastdepCC_FALSE='#'
5646 else
5647 am__fastdepCC_TRUE='#'
5648 am__fastdepCC_FALSE=
5649 fi
5650
5651
5652
5653 ac_header= ac_cache=
5654 for ac_item in $ac_header_c_list
5655 do
5656 if test $ac_cache; then
5657 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5658 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5659 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5660 fi
5661 ac_header= ac_cache=
5662 elif test $ac_header; then
5663 ac_cache=$ac_item
5664 else
5665 ac_header=$ac_item
5666 fi
5667 done
5668
5669
5670
5671
5672
5673
5674
5675
5676 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5677 then :
5678
5679 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5680
5681 fi
5682
5683
5684
5685
5686
5687
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5689 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5690 if test ${ac_cv_safe_to_define___extensions__+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else case e in #(
5694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696
5697 # define __EXTENSIONS__ 1
5698 $ac_includes_default
5699 int
5700 main (void)
5701 {
5702
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"
5708 then :
5709 ac_cv_safe_to_define___extensions__=yes
5710 else case e in #(
5711 e) ac_cv_safe_to_define___extensions__=no ;;
5712 esac
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5715 esac
5716 fi
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5718 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5719
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5721 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5722 if test ${ac_cv_should_define__xopen_source+y}
5723 then :
5724 printf %s "(cached) " >&6
5725 else case e in #(
5726 e) ac_cv_should_define__xopen_source=no
5727 if test $ac_cv_header_wchar_h = yes
5728 then :
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 #include <wchar.h>
5733 mbstate_t x;
5734 int
5735 main (void)
5736 {
5737
5738 ;
5739 return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"
5743 then :
5744
5745 else case e in #(
5746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748
5749 #define _XOPEN_SOURCE 500
5750 #include <wchar.h>
5751 mbstate_t x;
5752 int
5753 main (void)
5754 {
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"
5761 then :
5762 ac_cv_should_define__xopen_source=yes
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5765 esac
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5768 fi ;;
5769 esac
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5772 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5773
5774 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5775
5776 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5777
5778 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5779
5780 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5781
5782 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5783
5784 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5785
5786 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5787
5788 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5789
5790 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5791
5792 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5793
5794 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5795
5796 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5797
5798 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5799
5800 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5801
5802 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5803
5804 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5805
5806 if test $ac_cv_header_minix_config_h = yes
5807 then :
5808 MINIX=yes
5809 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5810
5811 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5812
5813 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5814
5815 else case e in #(
5816 e) MINIX= ;;
5817 esac
5818 fi
5819 if test $ac_cv_safe_to_define___extensions__ = yes
5820 then :
5821 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5822
5823 fi
5824 if test $ac_cv_should_define__xopen_source = yes
5825 then :
5826 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5827
5828 fi
5829
5830
5831
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5833 printf %s "checking whether ln -s works... " >&6; }
5834 LN_S=$as_ln_s
5835 if test "$LN_S" = "ln -s"; then
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 printf "%s\n" "yes" >&6; }
5838 else
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5840 printf "%s\n" "no, using $LN_S" >&6; }
5841 fi
5842
5843 ac_ext=c
5844 ac_cpp='$CPP $CPPFLAGS'
5845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 printf %s "checking for $ac_word... " >&6; }
5853 if test ${ac_cv_prog_CC+y}
5854 then :
5855 printf %s "(cached) " >&6
5856 else case e in #(
5857 e) if test -n "$CC"; then
5858 ac_cv_prog_CC="$CC" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 case $as_dir in #(((
5865 '') as_dir=./ ;;
5866 */) ;;
5867 *) as_dir=$as_dir/ ;;
5868 esac
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi ;;
5880 esac
5881 fi
5882 CC=$ac_cv_prog_CC
5883 if test -n "$CC"; then
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5885 printf "%s\n" "$CC" >&6; }
5886 else
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 printf "%s\n" "no" >&6; }
5889 fi
5890
5891
5892 fi
5893 if test -z "$ac_cv_prog_CC"; then
5894 ac_ct_CC=$CC
5895 # Extract the first word of "gcc", so it can be a program name with args.
5896 set dummy gcc; ac_word=$2
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 printf %s "checking for $ac_word... " >&6; }
5899 if test ${ac_cv_prog_ac_ct_CC+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else case e in #(
5903 e) if test -n "$ac_ct_CC"; then
5904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 case $as_dir in #(((
5911 '') as_dir=./ ;;
5912 */) ;;
5913 *) as_dir=$as_dir/ ;;
5914 esac
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_ac_ct_CC="gcc"
5918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi ;;
5926 esac
5927 fi
5928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5929 if test -n "$ac_ct_CC"; then
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5931 printf "%s\n" "$ac_ct_CC" >&6; }
5932 else
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 printf "%s\n" "no" >&6; }
5935 fi
5936
5937 if test "x$ac_ct_CC" = x; then
5938 CC=""
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941 yes:)
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5944 ac_tool_warned=yes ;;
5945 esac
5946 CC=$ac_ct_CC
5947 fi
5948 else
5949 CC="$ac_cv_prog_CC"
5950 fi
5951
5952 if test -z "$CC"; then
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}cc; ac_word=$2
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 printf %s "checking for $ac_word... " >&6; }
5958 if test ${ac_cv_prog_CC+y}
5959 then :
5960 printf %s "(cached) " >&6
5961 else case e in #(
5962 e) if test -n "$CC"; then
5963 ac_cv_prog_CC="$CC" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 case $as_dir in #(((
5970 '') as_dir=./ ;;
5971 */) ;;
5972 *) as_dir=$as_dir/ ;;
5973 esac
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_CC="${ac_tool_prefix}cc"
5977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi ;;
5985 esac
5986 fi
5987 CC=$ac_cv_prog_CC
5988 if test -n "$CC"; then
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5990 printf "%s\n" "$CC" >&6; }
5991 else
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 printf "%s\n" "no" >&6; }
5994 fi
5995
5996
5997 fi
5998 fi
5999 if test -z "$CC"; then
6000 # Extract the first word of "cc", so it can be a program name with args.
6001 set dummy cc; ac_word=$2
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 printf %s "checking for $ac_word... " >&6; }
6004 if test ${ac_cv_prog_CC+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else case e in #(
6008 e) if test -n "$CC"; then
6009 ac_cv_prog_CC="$CC" # Let the user override the test.
6010 else
6011 ac_prog_rejected=no
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 case $as_dir in #(((
6017 '') as_dir=./ ;;
6018 */) ;;
6019 *) as_dir=$as_dir/ ;;
6020 esac
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6023 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6024 ac_prog_rejected=yes
6025 continue
6026 fi
6027 ac_cv_prog_CC="cc"
6028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 if test $ac_prog_rejected = yes; then
6036 # We found a bogon in the path, so make sure we never use it.
6037 set dummy $ac_cv_prog_CC
6038 shift
6039 if test $# != 0; then
6040 # We chose a different compiler from the bogus one.
6041 # However, it has the same basename, so the bogon will be chosen
6042 # first if we set CC to just the basename; use the full file name.
6043 shift
6044 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
6045 fi
6046 fi
6047 fi ;;
6048 esac
6049 fi
6050 CC=$ac_cv_prog_CC
6051 if test -n "$CC"; then
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6053 printf "%s\n" "$CC" >&6; }
6054 else
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 printf "%s\n" "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$CC"; then
6062 if test -n "$ac_tool_prefix"; then
6063 for ac_prog in cl.exe
6064 do
6065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 printf %s "checking for $ac_word... " >&6; }
6069 if test ${ac_cv_prog_CC+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) if test -n "$CC"; then
6074 ac_cv_prog_CC="$CC" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079 IFS=$as_save_IFS
6080 case $as_dir in #(((
6081 '') as_dir=./ ;;
6082 */) ;;
6083 *) as_dir=$as_dir/ ;;
6084 esac
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091 done
6092 done
6093 IFS=$as_save_IFS
6094
6095 fi ;;
6096 esac
6097 fi
6098 CC=$ac_cv_prog_CC
6099 if test -n "$CC"; then
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6101 printf "%s\n" "$CC" >&6; }
6102 else
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 printf "%s\n" "no" >&6; }
6105 fi
6106
6107
6108 test -n "$CC" && break
6109 done
6110 fi
6111 if test -z "$CC"; then
6112 ac_ct_CC=$CC
6113 for ac_prog in cl.exe
6114 do
6115 # Extract the first word of "$ac_prog", so it can be a program name with args.
6116 set dummy $ac_prog; ac_word=$2
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 printf %s "checking for $ac_word... " >&6; }
6119 if test ${ac_cv_prog_ac_ct_CC+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) if test -n "$ac_ct_CC"; then
6124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 case $as_dir in #(((
6131 '') as_dir=./ ;;
6132 */) ;;
6133 *) as_dir=$as_dir/ ;;
6134 esac
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_ac_ct_CC="$ac_prog"
6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi ;;
6146 esac
6147 fi
6148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6149 if test -n "$ac_ct_CC"; then
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6151 printf "%s\n" "$ac_ct_CC" >&6; }
6152 else
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 printf "%s\n" "no" >&6; }
6155 fi
6156
6157
6158 test -n "$ac_ct_CC" && break
6159 done
6160
6161 if test "x$ac_ct_CC" = x; then
6162 CC=""
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170 CC=$ac_ct_CC
6171 fi
6172 fi
6173
6174 fi
6175 if test -z "$CC"; then
6176 if test -n "$ac_tool_prefix"; then
6177 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6178 set dummy ${ac_tool_prefix}clang; ac_word=$2
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 printf %s "checking for $ac_word... " >&6; }
6181 if test ${ac_cv_prog_CC+y}
6182 then :
6183 printf %s "(cached) " >&6
6184 else case e in #(
6185 e) if test -n "$CC"; then
6186 ac_cv_prog_CC="$CC" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 case $as_dir in #(((
6193 '') as_dir=./ ;;
6194 */) ;;
6195 *) as_dir=$as_dir/ ;;
6196 esac
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6199 ac_cv_prog_CC="${ac_tool_prefix}clang"
6200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi ;;
6208 esac
6209 fi
6210 CC=$ac_cv_prog_CC
6211 if test -n "$CC"; then
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6213 printf "%s\n" "$CC" >&6; }
6214 else
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 printf "%s\n" "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_CC"; then
6222 ac_ct_CC=$CC
6223 # Extract the first word of "clang", so it can be a program name with args.
6224 set dummy clang; ac_word=$2
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 printf %s "checking for $ac_word... " >&6; }
6227 if test ${ac_cv_prog_ac_ct_CC+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else case e in #(
6231 e) if test -n "$ac_ct_CC"; then
6232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 case $as_dir in #(((
6239 '') as_dir=./ ;;
6240 */) ;;
6241 *) as_dir=$as_dir/ ;;
6242 esac
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_CC="clang"
6246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi ;;
6254 esac
6255 fi
6256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6257 if test -n "$ac_ct_CC"; then
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6259 printf "%s\n" "$ac_ct_CC" >&6; }
6260 else
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 printf "%s\n" "no" >&6; }
6263 fi
6264
6265 if test "x$ac_ct_CC" = x; then
6266 CC=""
6267 else
6268 case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274 CC=$ac_ct_CC
6275 fi
6276 else
6277 CC="$ac_cv_prog_CC"
6278 fi
6279
6280 fi
6281
6282
6283 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6284 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6285 as_fn_error $? "no acceptable C compiler found in \$PATH
6286 See 'config.log' for more details" "$LINENO" 5; }
6287
6288 # Provide some information about the compiler.
6289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6290 set X $ac_compile
6291 ac_compiler=$2
6292 for ac_option in --version -v -V -qversion -version; do
6293 { { ac_try="$ac_compiler $ac_option >&5"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6299 printf "%s\n" "$ac_try_echo"; } >&5
6300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6301 ac_status=$?
6302 if test -s conftest.err; then
6303 sed '10a\
6304 ... rest of stderr output deleted ...
6305 10q' conftest.err >conftest.er1
6306 cat conftest.er1 >&5
6307 fi
6308 rm -f conftest.er1 conftest.err
6309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }
6311 done
6312
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6314 printf %s "checking whether the compiler supports GNU C... " >&6; }
6315 if test ${ac_cv_c_compiler_gnu+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else case e in #(
6319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321
6322 int
6323 main (void)
6324 {
6325 #ifndef __GNUC__
6326 choke me
6327 #endif
6328
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"
6334 then :
6335 ac_compiler_gnu=yes
6336 else case e in #(
6337 e) ac_compiler_gnu=no ;;
6338 esac
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6342 ;;
6343 esac
6344 fi
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6346 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6348
6349 if test $ac_compiler_gnu = yes; then
6350 GCC=yes
6351 else
6352 GCC=
6353 fi
6354 ac_test_CFLAGS=${CFLAGS+y}
6355 ac_save_CFLAGS=$CFLAGS
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6357 printf %s "checking whether $CC accepts -g... " >&6; }
6358 if test ${ac_cv_prog_cc_g+y}
6359 then :
6360 printf %s "(cached) " >&6
6361 else case e in #(
6362 e) ac_save_c_werror_flag=$ac_c_werror_flag
6363 ac_c_werror_flag=yes
6364 ac_cv_prog_cc_g=no
6365 CFLAGS="-g"
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368
6369 int
6370 main (void)
6371 {
6372
6373 ;
6374 return 0;
6375 }
6376 _ACEOF
6377 if ac_fn_c_try_compile "$LINENO"
6378 then :
6379 ac_cv_prog_cc_g=yes
6380 else case e in #(
6381 e) CFLAGS=""
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384
6385 int
6386 main (void)
6387 {
6388
6389 ;
6390 return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_compile "$LINENO"
6394 then :
6395
6396 else case e in #(
6397 e) ac_c_werror_flag=$ac_save_c_werror_flag
6398 CFLAGS="-g"
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401
6402 int
6403 main (void)
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"
6411 then :
6412 ac_cv_prog_cc_g=yes
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6415 esac
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6418 esac
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6421 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6422 esac
6423 fi
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6425 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6426 if test $ac_test_CFLAGS; then
6427 CFLAGS=$ac_save_CFLAGS
6428 elif test $ac_cv_prog_cc_g = yes; then
6429 if test "$GCC" = yes; then
6430 CFLAGS="-g -O2"
6431 else
6432 CFLAGS="-g"
6433 fi
6434 else
6435 if test "$GCC" = yes; then
6436 CFLAGS="-O2"
6437 else
6438 CFLAGS=
6439 fi
6440 fi
6441 ac_prog_cc_stdc=no
6442 if test x$ac_prog_cc_stdc = xno
6443 then :
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6445 printf %s "checking for $CC option to enable C11 features... " >&6; }
6446 if test ${ac_cv_prog_cc_c11+y}
6447 then :
6448 printf %s "(cached) " >&6
6449 else case e in #(
6450 e) ac_cv_prog_cc_c11=no
6451 ac_save_CC=$CC
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_c_conftest_c11_program
6455 _ACEOF
6456 for ac_arg in '' -std=gnu11
6457 do
6458 CC="$ac_save_CC $ac_arg"
6459 if ac_fn_c_try_compile "$LINENO"
6460 then :
6461 ac_cv_prog_cc_c11=$ac_arg
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.beam
6464 test "x$ac_cv_prog_cc_c11" != "xno" && break
6465 done
6466 rm -f conftest.$ac_ext
6467 CC=$ac_save_CC ;;
6468 esac
6469 fi
6470
6471 if test "x$ac_cv_prog_cc_c11" = xno
6472 then :
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6474 printf "%s\n" "unsupported" >&6; }
6475 else case e in #(
6476 e) if test "x$ac_cv_prog_cc_c11" = x
6477 then :
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6479 printf "%s\n" "none needed" >&6; }
6480 else case e in #(
6481 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6482 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6483 CC="$CC $ac_cv_prog_cc_c11" ;;
6484 esac
6485 fi
6486 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6487 ac_prog_cc_stdc=c11 ;;
6488 esac
6489 fi
6490 fi
6491 if test x$ac_prog_cc_stdc = xno
6492 then :
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6494 printf %s "checking for $CC option to enable C99 features... " >&6; }
6495 if test ${ac_cv_prog_cc_c99+y}
6496 then :
6497 printf %s "(cached) " >&6
6498 else case e in #(
6499 e) ac_cv_prog_cc_c99=no
6500 ac_save_CC=$CC
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 $ac_c_conftest_c99_program
6504 _ACEOF
6505 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6506 do
6507 CC="$ac_save_CC $ac_arg"
6508 if ac_fn_c_try_compile "$LINENO"
6509 then :
6510 ac_cv_prog_cc_c99=$ac_arg
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.beam
6513 test "x$ac_cv_prog_cc_c99" != "xno" && break
6514 done
6515 rm -f conftest.$ac_ext
6516 CC=$ac_save_CC ;;
6517 esac
6518 fi
6519
6520 if test "x$ac_cv_prog_cc_c99" = xno
6521 then :
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6523 printf "%s\n" "unsupported" >&6; }
6524 else case e in #(
6525 e) if test "x$ac_cv_prog_cc_c99" = x
6526 then :
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6528 printf "%s\n" "none needed" >&6; }
6529 else case e in #(
6530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6531 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6532 CC="$CC $ac_cv_prog_cc_c99" ;;
6533 esac
6534 fi
6535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6536 ac_prog_cc_stdc=c99 ;;
6537 esac
6538 fi
6539 fi
6540 if test x$ac_prog_cc_stdc = xno
6541 then :
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6543 printf %s "checking for $CC option to enable C89 features... " >&6; }
6544 if test ${ac_cv_prog_cc_c89+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else case e in #(
6548 e) ac_cv_prog_cc_c89=no
6549 ac_save_CC=$CC
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 $ac_c_conftest_c89_program
6553 _ACEOF
6554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6555 do
6556 CC="$ac_save_CC $ac_arg"
6557 if ac_fn_c_try_compile "$LINENO"
6558 then :
6559 ac_cv_prog_cc_c89=$ac_arg
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.beam
6562 test "x$ac_cv_prog_cc_c89" != "xno" && break
6563 done
6564 rm -f conftest.$ac_ext
6565 CC=$ac_save_CC ;;
6566 esac
6567 fi
6568
6569 if test "x$ac_cv_prog_cc_c89" = xno
6570 then :
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6572 printf "%s\n" "unsupported" >&6; }
6573 else case e in #(
6574 e) if test "x$ac_cv_prog_cc_c89" = x
6575 then :
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6577 printf "%s\n" "none needed" >&6; }
6578 else case e in #(
6579 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6580 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6581 CC="$CC $ac_cv_prog_cc_c89" ;;
6582 esac
6583 fi
6584 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6585 ac_prog_cc_stdc=c89 ;;
6586 esac
6587 fi
6588 fi
6589
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596
6597 ac_ext=c
6598 ac_cpp='$CPP $CPPFLAGS'
6599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6603 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6604 if test ${am_cv_prog_cc_c_o+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else case e in #(
6608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610
6611 int
6612 main (void)
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 # Make sure it works both with $CC and with simple cc.
6620 # Following AC_PROG_CC_C_O, we do the test twice because some
6621 # compilers refuse to overwrite an existing .o file with -o,
6622 # though they will create one.
6623 am_cv_prog_cc_c_o=yes
6624 for am_i in 1 2; do
6625 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6626 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } \
6630 && test -f conftest2.$ac_objext; then
6631 : OK
6632 else
6633 am_cv_prog_cc_c_o=no
6634 break
6635 fi
6636 done
6637 rm -f core conftest*
6638 unset am_i ;;
6639 esac
6640 fi
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6642 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6643 if test "$am_cv_prog_cc_c_o" != yes; then
6644 # Losing compiler, so override with the script.
6645 # FIXME: It is wrong to rewrite CC.
6646 # But if we don't then we get into trouble of one sort or another.
6647 # A longer-term fix would be to have automake use am__CC in this case,
6648 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6649 CC="$am_aux_dir/compile $CC"
6650 fi
6651 ac_ext=c
6652 ac_cpp='$CPP $CPPFLAGS'
6653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6656
6657
6658 depcc="$CC" am_compiler_list=
6659
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6661 printf %s "checking dependency style of $depcc... " >&6; }
6662 if test ${am_cv_CC_dependencies_compiler_type+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6667 # We make a subdir and do the tests there. Otherwise we can end up
6668 # making bogus files that we don't know about and never remove. For
6669 # instance it was reported that on HP-UX the gcc test will end up
6670 # making a dummy file named 'D' -- because '-MD' means "put the output
6671 # in D".
6672 rm -rf conftest.dir
6673 mkdir conftest.dir
6674 # Copy depcomp to subdir because otherwise we won't find it if we're
6675 # using a relative directory.
6676 cp "$am_depcomp" conftest.dir
6677 cd conftest.dir
6678 # We will build objects and dependencies in a subdirectory because
6679 # it helps to detect inapplicable dependency modes. For instance
6680 # both Tru64's cc and ICC support -MD to output dependencies as a
6681 # side effect of compilation, but ICC will put the dependencies in
6682 # the current directory while Tru64 will put them in the object
6683 # directory.
6684 mkdir sub
6685
6686 am_cv_CC_dependencies_compiler_type=none
6687 if test "$am_compiler_list" = ""; then
6688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6689 fi
6690 am__universal=false
6691 case " $depcc " in #(
6692 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6693 esac
6694
6695 for depmode in $am_compiler_list; do
6696 # Setup a source with many dependencies, because some compilers
6697 # like to wrap large dependency lists on column 80 (with \), and
6698 # we should not choose a depcomp mode which is confused by this.
6699 #
6700 # We need to recreate these files for each test, as the compiler may
6701 # overwrite some of them when testing with obscure command lines.
6702 # This happens at least with the AIX C compiler.
6703 : > sub/conftest.c
6704 for i in 1 2 3 4 5 6; do
6705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6707 # Solaris 10 /bin/sh.
6708 echo '/* dummy */' > sub/conftst$i.h
6709 done
6710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6711
6712 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6713 # mode. It turns out that the SunPro C++ compiler does not properly
6714 # handle '-M -o', and we need to detect this. Also, some Intel
6715 # versions had trouble with output in subdirs.
6716 am__obj=sub/conftest.${OBJEXT-o}
6717 am__minus_obj="-o $am__obj"
6718 case $depmode in
6719 gcc)
6720 # This depmode causes a compiler race in universal mode.
6721 test "$am__universal" = false || continue
6722 ;;
6723 nosideeffect)
6724 # After this tag, mechanisms are not by side-effect, so they'll
6725 # only be used when explicitly requested.
6726 if test "x$enable_dependency_tracking" = xyes; then
6727 continue
6728 else
6729 break
6730 fi
6731 ;;
6732 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6733 # This compiler won't grok '-c -o', but also, the minuso test has
6734 # not run yet. These depmodes are late enough in the game, and
6735 # so weak that their functioning should not be impacted.
6736 am__obj=conftest.${OBJEXT-o}
6737 am__minus_obj=
6738 ;;
6739 none) break ;;
6740 esac
6741 if depmode=$depmode \
6742 source=sub/conftest.c object=$am__obj \
6743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6745 >/dev/null 2>conftest.err &&
6746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6750 # icc doesn't choke on unknown options, it will just issue warnings
6751 # or remarks (even with -Werror). So we grep stderr for any message
6752 # that says an option was ignored or not supported.
6753 # When given -MP, icc 7.0 and 7.1 complain thus:
6754 # icc: Command line warning: ignoring option '-M'; no argument required
6755 # The diagnosis changed in icc 8.0:
6756 # icc: Command line remark: option '-MP' not supported
6757 if (grep 'ignoring option' conftest.err ||
6758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6759 am_cv_CC_dependencies_compiler_type=$depmode
6760 break
6761 fi
6762 fi
6763 done
6764
6765 cd ..
6766 rm -rf conftest.dir
6767 else
6768 am_cv_CC_dependencies_compiler_type=none
6769 fi
6770 ;;
6771 esac
6772 fi
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6774 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6775 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6776
6777 if
6778 test "x$enable_dependency_tracking" != xno \
6779 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6780 am__fastdepCC_TRUE=
6781 am__fastdepCC_FALSE='#'
6782 else
6783 am__fastdepCC_TRUE='#'
6784 am__fastdepCC_FALSE=
6785 fi
6786
6787
6788
6789
6790
6791
6792
6793
6794 ac_ext=cpp
6795 ac_cpp='$CXXCPP $CPPFLAGS'
6796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6799 if test -z "$CXX"; then
6800 if test -n "$CCC"; then
6801 CXX=$CCC
6802 else
6803 if test -n "$ac_tool_prefix"; then
6804 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6805 do
6806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 printf %s "checking for $ac_word... " >&6; }
6810 if test ${ac_cv_prog_CXX+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) if test -n "$CXX"; then
6815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 case $as_dir in #(((
6822 '') as_dir=./ ;;
6823 */) ;;
6824 *) as_dir=$as_dir/ ;;
6825 esac
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi ;;
6837 esac
6838 fi
6839 CXX=$ac_cv_prog_CXX
6840 if test -n "$CXX"; then
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6842 printf "%s\n" "$CXX" >&6; }
6843 else
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 printf "%s\n" "no" >&6; }
6846 fi
6847
6848
6849 test -n "$CXX" && break
6850 done
6851 fi
6852 if test -z "$CXX"; then
6853 ac_ct_CXX=$CXX
6854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6855 do
6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 printf %s "checking for $ac_word... " >&6; }
6860 if test ${ac_cv_prog_ac_ct_CXX+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else case e in #(
6864 e) if test -n "$ac_ct_CXX"; then
6865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_CXX="$ac_prog"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi ;;
6887 esac
6888 fi
6889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6890 if test -n "$ac_ct_CXX"; then
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6892 printf "%s\n" "$ac_ct_CXX" >&6; }
6893 else
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 printf "%s\n" "no" >&6; }
6896 fi
6897
6898
6899 test -n "$ac_ct_CXX" && break
6900 done
6901
6902 if test "x$ac_ct_CXX" = x; then
6903 CXX="g++"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 CXX=$ac_ct_CXX
6912 fi
6913 fi
6914
6915 fi
6916 fi
6917 # Provide some information about the compiler.
6918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6919 set X $ac_compile
6920 ac_compiler=$2
6921 for ac_option in --version -v -V -qversion; do
6922 { { ac_try="$ac_compiler $ac_option >&5"
6923 case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6926 esac
6927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6928 printf "%s\n" "$ac_try_echo"; } >&5
6929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6930 ac_status=$?
6931 if test -s conftest.err; then
6932 sed '10a\
6933 ... rest of stderr output deleted ...
6934 10q' conftest.err >conftest.er1
6935 cat conftest.er1 >&5
6936 fi
6937 rm -f conftest.er1 conftest.err
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939 test $ac_status = 0; }
6940 done
6941
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6943 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6944 if test ${ac_cv_cxx_compiler_gnu+y}
6945 then :
6946 printf %s "(cached) " >&6
6947 else case e in #(
6948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950
6951 int
6952 main (void)
6953 {
6954 #ifndef __GNUC__
6955 choke me
6956 #endif
6957
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_cxx_try_compile "$LINENO"
6963 then :
6964 ac_compiler_gnu=yes
6965 else case e in #(
6966 e) ac_compiler_gnu=no ;;
6967 esac
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6971 ;;
6972 esac
6973 fi
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6975 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6977
6978 if test $ac_compiler_gnu = yes; then
6979 GXX=yes
6980 else
6981 GXX=
6982 fi
6983 ac_test_CXXFLAGS=${CXXFLAGS+y}
6984 ac_save_CXXFLAGS=$CXXFLAGS
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6986 printf %s "checking whether $CXX accepts -g... " >&6; }
6987 if test ${ac_cv_prog_cxx_g+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else case e in #(
6991 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6992 ac_cxx_werror_flag=yes
6993 ac_cv_prog_cxx_g=no
6994 CXXFLAGS="-g"
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 int
6999 main (void)
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_cxx_try_compile "$LINENO"
7007 then :
7008 ac_cv_prog_cxx_g=yes
7009 else case e in #(
7010 e) CXXFLAGS=""
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013
7014 int
7015 main (void)
7016 {
7017
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_cxx_try_compile "$LINENO"
7023 then :
7024
7025 else case e in #(
7026 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7027 CXXFLAGS="-g"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030
7031 int
7032 main (void)
7033 {
7034
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 if ac_fn_cxx_try_compile "$LINENO"
7040 then :
7041 ac_cv_prog_cxx_g=yes
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7044 esac
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7047 esac
7048 fi
7049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
7051 esac
7052 fi
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7054 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
7055 if test $ac_test_CXXFLAGS; then
7056 CXXFLAGS=$ac_save_CXXFLAGS
7057 elif test $ac_cv_prog_cxx_g = yes; then
7058 if test "$GXX" = yes; then
7059 CXXFLAGS="-g -O2"
7060 else
7061 CXXFLAGS="-g"
7062 fi
7063 else
7064 if test "$GXX" = yes; then
7065 CXXFLAGS="-O2"
7066 else
7067 CXXFLAGS=
7068 fi
7069 fi
7070 ac_prog_cxx_stdcxx=no
7071 if test x$ac_prog_cxx_stdcxx = xno
7072 then :
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
7074 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
7075 if test ${ac_cv_prog_cxx_cxx11+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else case e in #(
7079 e) ac_cv_prog_cxx_cxx11=no
7080 ac_save_CXX=$CXX
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 $ac_cxx_conftest_cxx11_program
7084 _ACEOF
7085 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7086 do
7087 CXX="$ac_save_CXX $ac_arg"
7088 if ac_fn_cxx_try_compile "$LINENO"
7089 then :
7090 ac_cv_prog_cxx_cxx11=$ac_arg
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.beam
7093 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7094 done
7095 rm -f conftest.$ac_ext
7096 CXX=$ac_save_CXX ;;
7097 esac
7098 fi
7099
7100 if test "x$ac_cv_prog_cxx_cxx11" = xno
7101 then :
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7103 printf "%s\n" "unsupported" >&6; }
7104 else case e in #(
7105 e) if test "x$ac_cv_prog_cxx_cxx11" = x
7106 then :
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7108 printf "%s\n" "none needed" >&6; }
7109 else case e in #(
7110 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7111 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7112 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
7113 esac
7114 fi
7115 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7116 ac_prog_cxx_stdcxx=cxx11 ;;
7117 esac
7118 fi
7119 fi
7120 if test x$ac_prog_cxx_stdcxx = xno
7121 then :
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7123 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
7124 if test ${ac_cv_prog_cxx_cxx98+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) ac_cv_prog_cxx_cxx98=no
7129 ac_save_CXX=$CXX
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 $ac_cxx_conftest_cxx98_program
7133 _ACEOF
7134 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7135 do
7136 CXX="$ac_save_CXX $ac_arg"
7137 if ac_fn_cxx_try_compile "$LINENO"
7138 then :
7139 ac_cv_prog_cxx_cxx98=$ac_arg
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.beam
7142 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7143 done
7144 rm -f conftest.$ac_ext
7145 CXX=$ac_save_CXX ;;
7146 esac
7147 fi
7148
7149 if test "x$ac_cv_prog_cxx_cxx98" = xno
7150 then :
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7152 printf "%s\n" "unsupported" >&6; }
7153 else case e in #(
7154 e) if test "x$ac_cv_prog_cxx_cxx98" = x
7155 then :
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7157 printf "%s\n" "none needed" >&6; }
7158 else case e in #(
7159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7160 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7161 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
7162 esac
7163 fi
7164 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7165 ac_prog_cxx_stdcxx=cxx98 ;;
7166 esac
7167 fi
7168 fi
7169
7170 ac_ext=c
7171 ac_cpp='$CPP $CPPFLAGS'
7172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175
7176 depcc="$CXX" am_compiler_list=
7177
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7179 printf %s "checking dependency style of $depcc... " >&6; }
7180 if test ${am_cv_CXX_dependencies_compiler_type+y}
7181 then :
7182 printf %s "(cached) " >&6
7183 else case e in #(
7184 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7185 # We make a subdir and do the tests there. Otherwise we can end up
7186 # making bogus files that we don't know about and never remove. For
7187 # instance it was reported that on HP-UX the gcc test will end up
7188 # making a dummy file named 'D' -- because '-MD' means "put the output
7189 # in D".
7190 rm -rf conftest.dir
7191 mkdir conftest.dir
7192 # Copy depcomp to subdir because otherwise we won't find it if we're
7193 # using a relative directory.
7194 cp "$am_depcomp" conftest.dir
7195 cd conftest.dir
7196 # We will build objects and dependencies in a subdirectory because
7197 # it helps to detect inapplicable dependency modes. For instance
7198 # both Tru64's cc and ICC support -MD to output dependencies as a
7199 # side effect of compilation, but ICC will put the dependencies in
7200 # the current directory while Tru64 will put them in the object
7201 # directory.
7202 mkdir sub
7203
7204 am_cv_CXX_dependencies_compiler_type=none
7205 if test "$am_compiler_list" = ""; then
7206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7207 fi
7208 am__universal=false
7209 case " $depcc " in #(
7210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7211 esac
7212
7213 for depmode in $am_compiler_list; do
7214 # Setup a source with many dependencies, because some compilers
7215 # like to wrap large dependency lists on column 80 (with \), and
7216 # we should not choose a depcomp mode which is confused by this.
7217 #
7218 # We need to recreate these files for each test, as the compiler may
7219 # overwrite some of them when testing with obscure command lines.
7220 # This happens at least with the AIX C compiler.
7221 : > sub/conftest.c
7222 for i in 1 2 3 4 5 6; do
7223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7225 # Solaris 10 /bin/sh.
7226 echo '/* dummy */' > sub/conftst$i.h
7227 done
7228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7229
7230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7231 # mode. It turns out that the SunPro C++ compiler does not properly
7232 # handle '-M -o', and we need to detect this. Also, some Intel
7233 # versions had trouble with output in subdirs.
7234 am__obj=sub/conftest.${OBJEXT-o}
7235 am__minus_obj="-o $am__obj"
7236 case $depmode in
7237 gcc)
7238 # This depmode causes a compiler race in universal mode.
7239 test "$am__universal" = false || continue
7240 ;;
7241 nosideeffect)
7242 # After this tag, mechanisms are not by side-effect, so they'll
7243 # only be used when explicitly requested.
7244 if test "x$enable_dependency_tracking" = xyes; then
7245 continue
7246 else
7247 break
7248 fi
7249 ;;
7250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7251 # This compiler won't grok '-c -o', but also, the minuso test has
7252 # not run yet. These depmodes are late enough in the game, and
7253 # so weak that their functioning should not be impacted.
7254 am__obj=conftest.${OBJEXT-o}
7255 am__minus_obj=
7256 ;;
7257 none) break ;;
7258 esac
7259 if depmode=$depmode \
7260 source=sub/conftest.c object=$am__obj \
7261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7263 >/dev/null 2>conftest.err &&
7264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7268 # icc doesn't choke on unknown options, it will just issue warnings
7269 # or remarks (even with -Werror). So we grep stderr for any message
7270 # that says an option was ignored or not supported.
7271 # When given -MP, icc 7.0 and 7.1 complain thus:
7272 # icc: Command line warning: ignoring option '-M'; no argument required
7273 # The diagnosis changed in icc 8.0:
7274 # icc: Command line remark: option '-MP' not supported
7275 if (grep 'ignoring option' conftest.err ||
7276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7277 am_cv_CXX_dependencies_compiler_type=$depmode
7278 break
7279 fi
7280 fi
7281 done
7282
7283 cd ..
7284 rm -rf conftest.dir
7285 else
7286 am_cv_CXX_dependencies_compiler_type=none
7287 fi
7288 ;;
7289 esac
7290 fi
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7292 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7293 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7294
7295 if
7296 test "x$enable_dependency_tracking" != xno \
7297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7298 am__fastdepCXX_TRUE=
7299 am__fastdepCXX_FALSE='#'
7300 else
7301 am__fastdepCXX_TRUE='#'
7302 am__fastdepCXX_FALSE=
7303 fi
7304
7305
7306 ac_ext=c
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7312 printf %s "checking how to run the C preprocessor... " >&6; }
7313 # On Suns, sometimes $CPP names a directory.
7314 if test -n "$CPP" && test -d "$CPP"; then
7315 CPP=
7316 fi
7317 if test -z "$CPP"; then
7318 if test ${ac_cv_prog_CPP+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else case e in #(
7322 e) # Double quotes because $CC needs to be expanded
7323 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7324 do
7325 ac_preproc_ok=false
7326 for ac_c_preproc_warn_flag in '' yes
7327 do
7328 # Use a header file that comes with gcc, so configuring glibc
7329 # with a fresh cross-compiler works.
7330 # On the NeXT, cc -E runs the code through the compiler's parser,
7331 # not just through cpp. "Syntax error" is here to catch this case.
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <limits.h>
7335 Syntax error
7336 _ACEOF
7337 if ac_fn_c_try_cpp "$LINENO"
7338 then :
7339
7340 else case e in #(
7341 e) # Broken: fails on valid input.
7342 continue ;;
7343 esac
7344 fi
7345 rm -f conftest.err conftest.i conftest.$ac_ext
7346
7347 # OK, works on sane cases. Now check whether nonexistent headers
7348 # can be detected and how.
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 #include <ac_nonexistent.h>
7352 _ACEOF
7353 if ac_fn_c_try_cpp "$LINENO"
7354 then :
7355 # Broken: success on invalid input.
7356 continue
7357 else case e in #(
7358 e) # Passes both tests.
7359 ac_preproc_ok=:
7360 break ;;
7361 esac
7362 fi
7363 rm -f conftest.err conftest.i conftest.$ac_ext
7364
7365 done
7366 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7367 rm -f conftest.i conftest.err conftest.$ac_ext
7368 if $ac_preproc_ok
7369 then :
7370 break
7371 fi
7372
7373 done
7374 ac_cv_prog_CPP=$CPP
7375 ;;
7376 esac
7377 fi
7378 CPP=$ac_cv_prog_CPP
7379 else
7380 ac_cv_prog_CPP=$CPP
7381 fi
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7383 printf "%s\n" "$CPP" >&6; }
7384 ac_preproc_ok=false
7385 for ac_c_preproc_warn_flag in '' yes
7386 do
7387 # Use a header file that comes with gcc, so configuring glibc
7388 # with a fresh cross-compiler works.
7389 # On the NeXT, cc -E runs the code through the compiler's parser,
7390 # not just through cpp. "Syntax error" is here to catch this case.
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 #include <limits.h>
7394 Syntax error
7395 _ACEOF
7396 if ac_fn_c_try_cpp "$LINENO"
7397 then :
7398
7399 else case e in #(
7400 e) # Broken: fails on valid input.
7401 continue ;;
7402 esac
7403 fi
7404 rm -f conftest.err conftest.i conftest.$ac_ext
7405
7406 # OK, works on sane cases. Now check whether nonexistent headers
7407 # can be detected and how.
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 #include <ac_nonexistent.h>
7411 _ACEOF
7412 if ac_fn_c_try_cpp "$LINENO"
7413 then :
7414 # Broken: success on invalid input.
7415 continue
7416 else case e in #(
7417 e) # Passes both tests.
7418 ac_preproc_ok=:
7419 break ;;
7420 esac
7421 fi
7422 rm -f conftest.err conftest.i conftest.$ac_ext
7423
7424 done
7425 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7426 rm -f conftest.i conftest.err conftest.$ac_ext
7427 if $ac_preproc_ok
7428 then :
7429
7430 else case e in #(
7431 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7432 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7433 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7434 See 'config.log' for more details" "$LINENO" 5; } ;;
7435 esac
7436 fi
7437
7438 ac_ext=c
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443
7444
7445 if test -n "$ac_tool_prefix"; then
7446 for ac_prog in ar lib "link -lib"
7447 do
7448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 printf %s "checking for $ac_word... " >&6; }
7452 if test ${ac_cv_prog_AR+y}
7453 then :
7454 printf %s "(cached) " >&6
7455 else case e in #(
7456 e) if test -n "$AR"; then
7457 ac_cv_prog_AR="$AR" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 case $as_dir in #(((
7464 '') as_dir=./ ;;
7465 */) ;;
7466 *) as_dir=$as_dir/ ;;
7467 esac
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi ;;
7479 esac
7480 fi
7481 AR=$ac_cv_prog_AR
7482 if test -n "$AR"; then
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7484 printf "%s\n" "$AR" >&6; }
7485 else
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 printf "%s\n" "no" >&6; }
7488 fi
7489
7490
7491 test -n "$AR" && break
7492 done
7493 fi
7494 if test -z "$AR"; then
7495 ac_ct_AR=$AR
7496 for ac_prog in ar lib "link -lib"
7497 do
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 printf %s "checking for $ac_word... " >&6; }
7502 if test ${ac_cv_prog_ac_ct_AR+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else case e in #(
7506 e) if test -n "$ac_ct_AR"; then
7507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 case $as_dir in #(((
7514 '') as_dir=./ ;;
7515 */) ;;
7516 *) as_dir=$as_dir/ ;;
7517 esac
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_AR="$ac_prog"
7521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi ;;
7529 esac
7530 fi
7531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7532 if test -n "$ac_ct_AR"; then
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7534 printf "%s\n" "$ac_ct_AR" >&6; }
7535 else
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 printf "%s\n" "no" >&6; }
7538 fi
7539
7540
7541 test -n "$ac_ct_AR" && break
7542 done
7543
7544 if test "x$ac_ct_AR" = x; then
7545 AR="false"
7546 else
7547 case $cross_compiling:$ac_tool_warned in
7548 yes:)
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553 AR=$ac_ct_AR
7554 fi
7555 fi
7556
7557 : ${AR=ar}
7558 : ${ARFLAGS=cr}
7559
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7561 printf %s "checking the archiver ($AR) interface... " >&6; }
7562 if test ${am_cv_ar_interface+y}
7563 then :
7564 printf %s "(cached) " >&6
7565 else case e in #(
7566 e) ac_ext=c
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571
7572 am_cv_ar_interface=ar
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 int some_variable = 0;
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"
7578 then :
7579 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
7580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7581 (eval $am_ar_try) 2>&5
7582 ac_status=$?
7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; }
7585 if test "$ac_status" -eq 0; then
7586 am_cv_ar_interface=ar
7587 else
7588 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7590 (eval $am_ar_try) 2>&5
7591 ac_status=$?
7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }
7594 if test "$ac_status" -eq 0; then
7595 am_cv_ar_interface=lib
7596 else
7597 am_cv_ar_interface=unknown
7598 fi
7599 fi
7600 rm -f conftest.lib libconftest.a
7601
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7604 ac_ext=c
7605 ac_cpp='$CPP $CPPFLAGS'
7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609 ;;
7610 esac
7611 fi
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7613 printf "%s\n" "$am_cv_ar_interface" >&6; }
7614
7615 case $am_cv_ar_interface in
7616 ar)
7617 ;;
7618 lib)
7619 # Microsoft lib, so override with the ar-lib wrapper script.
7620 # FIXME: It is wrong to rewrite AR.
7621 # But if we don't then we get into trouble of one sort or another.
7622 # A longer-term fix would be to have automake use am__AR in this case,
7623 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7624 # similar.
7625 AR="$am_aux_dir/ar-lib $AR"
7626 ;;
7627 unknown)
7628 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7629 ;;
7630 esac
7631
7632
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 printf %s "checking for $ac_word... " >&6; }
7638 if test ${ac_cv_prog_RANLIB+y}
7639 then :
7640 printf %s "(cached) " >&6
7641 else case e in #(
7642 e) if test -n "$RANLIB"; then
7643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648 IFS=$as_save_IFS
7649 case $as_dir in #(((
7650 '') as_dir=./ ;;
7651 */) ;;
7652 *) as_dir=$as_dir/ ;;
7653 esac
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi ;;
7665 esac
7666 fi
7667 RANLIB=$ac_cv_prog_RANLIB
7668 if test -n "$RANLIB"; then
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7670 printf "%s\n" "$RANLIB" >&6; }
7671 else
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 printf "%s\n" "no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_RANLIB"; then
7679 ac_ct_RANLIB=$RANLIB
7680 # Extract the first word of "ranlib", so it can be a program name with args.
7681 set dummy ranlib; ac_word=$2
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 printf %s "checking for $ac_word... " >&6; }
7684 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else case e in #(
7688 e) if test -n "$ac_ct_RANLIB"; then
7689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694 IFS=$as_save_IFS
7695 case $as_dir in #(((
7696 '') as_dir=./ ;;
7697 */) ;;
7698 *) as_dir=$as_dir/ ;;
7699 esac
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_ac_ct_RANLIB="ranlib"
7703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi ;;
7711 esac
7712 fi
7713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7714 if test -n "$ac_ct_RANLIB"; then
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7716 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7717 else
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 printf "%s\n" "no" >&6; }
7720 fi
7721
7722 if test "x$ac_ct_RANLIB" = x; then
7723 RANLIB=":"
7724 else
7725 case $cross_compiling:$ac_tool_warned in
7726 yes:)
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729 ac_tool_warned=yes ;;
7730 esac
7731 RANLIB=$ac_ct_RANLIB
7732 fi
7733 else
7734 RANLIB="$ac_cv_prog_RANLIB"
7735 fi
7736
7737
7738
7739
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7741 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7742 set x ${MAKE-make}
7743 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7744 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
7745 then :
7746 printf %s "(cached) " >&6
7747 else case e in #(
7748 e) cat >conftest.make <<\_ACEOF
7749 SHELL = /bin/sh
7750 all:
7751 @echo '@@@%%%=$(MAKE)=@@@%%%'
7752 _ACEOF
7753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7755 *@@@%%%=?*=@@@%%%*)
7756 eval ac_cv_prog_make_${ac_make}_set=yes;;
7757 *)
7758 eval ac_cv_prog_make_${ac_make}_set=no;;
7759 esac
7760 rm -f conftest.make ;;
7761 esac
7762 fi
7763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 printf "%s\n" "yes" >&6; }
7766 SET_MAKE=
7767 else
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 printf "%s\n" "no" >&6; }
7770 SET_MAKE="MAKE=${MAKE-make}"
7771 fi
7772
7773
7774
7775 # Check whether --enable-largefile was given.
7776 if test ${enable_largefile+y}
7777 then :
7778 enableval=$enable_largefile;
7779 fi
7780 if test "$enable_largefile,$enable_year2038" != no,no
7781 then :
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
7783 printf %s "checking for $CC option to enable large file support... " >&6; }
7784 if test ${ac_cv_sys_largefile_opts+y}
7785 then :
7786 printf %s "(cached) " >&6
7787 else case e in #(
7788 e) ac_save_CC="$CC"
7789 ac_opt_found=no
7790 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
7791 if test x"$ac_opt" != x"none needed"
7792 then :
7793 CC="$ac_save_CC $ac_opt"
7794 fi
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #include <sys/types.h>
7798 #ifndef FTYPE
7799 # define FTYPE off_t
7800 #endif
7801 /* Check that FTYPE can represent 2**63 - 1 correctly.
7802 We can't simply define LARGE_FTYPE to be 9223372036854775807,
7803 since some C++ compilers masquerading as C compilers
7804 incorrectly reject 9223372036854775807. */
7805 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
7806 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
7807 && LARGE_FTYPE % 2147483647 == 1)
7808 ? 1 : -1];
7809 int
7810 main (void)
7811 {
7812
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"
7818 then :
7819 if test x"$ac_opt" = x"none needed"
7820 then :
7821 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
7822 CC="$CC -DFTYPE=ino_t"
7823 if ac_fn_c_try_compile "$LINENO"
7824 then :
7825
7826 else case e in #(
7827 e) CC="$CC -D_FILE_OFFSET_BITS=64"
7828 if ac_fn_c_try_compile "$LINENO"
7829 then :
7830 ac_opt='-D_FILE_OFFSET_BITS=64'
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
7833 esac
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.beam
7836 fi
7837 ac_cv_sys_largefile_opts=$ac_opt
7838 ac_opt_found=yes
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7841 test $ac_opt_found = no || break
7842 done
7843 CC="$ac_save_CC"
7844
7845 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
7846 esac
7847 fi
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7849 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7850
7851 ac_have_largefile=yes
7852 case $ac_cv_sys_largefile_opts in #(
7853 "none needed") :
7854 ;; #(
7855 "supported through gnulib") :
7856 ;; #(
7857 "support not detected") :
7858 ac_have_largefile=no ;; #(
7859 "-D_FILE_OFFSET_BITS=64") :
7860
7861 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7862 ;; #(
7863 "-D_LARGE_FILES=1") :
7864
7865 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7866 ;; #(
7867 "-n32") :
7868 CC="$CC -n32" ;; #(
7869 *) :
7870 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7871 esac
7872
7873 if test "$enable_year2038" != no
7874 then :
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
7876 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
7877 if test ${ac_cv_sys_year2038_opts+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else case e in #(
7881 e) ac_save_CPPFLAGS="$CPPFLAGS"
7882 ac_opt_found=no
7883 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
7884 if test x"$ac_opt" != x"none needed"
7885 then :
7886 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7887 fi
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890
7891 #include <time.h>
7892 /* Check that time_t can represent 2**32 - 1 correctly. */
7893 #define LARGE_TIME_T \\
7894 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7895 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7896 && LARGE_TIME_T % 65537 == 0)
7897 ? 1 : -1];
7898
7899 int
7900 main (void)
7901 {
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"
7908 then :
7909 ac_cv_sys_year2038_opts="$ac_opt"
7910 ac_opt_found=yes
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7913 test $ac_opt_found = no || break
7914 done
7915 CPPFLAGS="$ac_save_CPPFLAGS"
7916 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
7917 esac
7918 fi
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7920 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7921
7922 ac_have_year2038=yes
7923 case $ac_cv_sys_year2038_opts in #(
7924 "none needed") :
7925 ;; #(
7926 "support not detected") :
7927 ac_have_year2038=no ;; #(
7928 "-D_TIME_BITS=64") :
7929
7930 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7931 ;; #(
7932 "-D__MINGW_USE_VC2005_COMPAT") :
7933
7934 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7935 ;; #(
7936 "-U_USE_32_BIT_TIME_T"*) :
7937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7938 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7939 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7940 will stop working after mid-January 2038. Remove
7941 _USE_32BIT_TIME_T from the compiler flags.
7942 See 'config.log' for more details" "$LINENO" 5; } ;; #(
7943 *) :
7944 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7945 esac
7946
7947 fi
7948
7949 fi
7950 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7951 if test "x$ac_cv_func_ppoll" = xyes
7952 then :
7953 printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
7954
7955 fi
7956
7957 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7958 if test "x$ac_cv_func_openat" = xyes
7959 then :
7960 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
7961
7962 fi
7963
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7965 printf %s "checking for a sed that does not truncate output... " >&6; }
7966 if test ${ac_cv_path_SED+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else case e in #(
7970 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7971 for ac_i in 1 2 3 4 5 6 7; do
7972 ac_script="$ac_script$as_nl$ac_script"
7973 done
7974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7975 { ac_script=; unset ac_script;}
7976 if test -z "$SED"; then
7977 ac_path_SED_found=false
7978 # Loop through the user's path and test for each of PROGNAME-LIST
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982 IFS=$as_save_IFS
7983 case $as_dir in #(((
7984 '') as_dir=./ ;;
7985 */) ;;
7986 *) as_dir=$as_dir/ ;;
7987 esac
7988 for ac_prog in sed gsed
7989 do
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7992 as_fn_executable_p "$ac_path_SED" || continue
7993 # Check for GNU ac_path_SED and select it if it is found.
7994 # Check for GNU $ac_path_SED
7995 case `"$ac_path_SED" --version 2>&1` in #(
7996 *GNU*)
7997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7998 #(
7999 *)
8000 ac_count=0
8001 printf %s 0123456789 >"conftest.in"
8002 while :
8003 do
8004 cat "conftest.in" "conftest.in" >"conftest.tmp"
8005 mv "conftest.tmp" "conftest.in"
8006 cp "conftest.in" "conftest.nl"
8007 printf "%s\n" '' >> "conftest.nl"
8008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8010 as_fn_arith $ac_count + 1 && ac_count=$as_val
8011 if test $ac_count -gt ${ac_path_SED_max-0}; then
8012 # Best one so far, save it but keep looking for a better one
8013 ac_cv_path_SED="$ac_path_SED"
8014 ac_path_SED_max=$ac_count
8015 fi
8016 # 10*(2^10) chars as input seems more than enough
8017 test $ac_count -gt 10 && break
8018 done
8019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8020 esac
8021
8022 $ac_path_SED_found && break 3
8023 done
8024 done
8025 done
8026 IFS=$as_save_IFS
8027 if test -z "$ac_cv_path_SED"; then
8028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8029 fi
8030 else
8031 ac_cv_path_SED=$SED
8032 fi
8033 ;;
8034 esac
8035 fi
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8037 printf "%s\n" "$ac_cv_path_SED" >&6; }
8038 SED="$ac_cv_path_SED"
8039 rm -f conftest.sed
8040
8041
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8043 printf %s "checking whether NLS is requested... " >&6; }
8044 # Check whether --enable-nls was given.
8045 if test ${enable_nls+y}
8046 then :
8047 enableval=$enable_nls; USE_NLS=$enableval
8048 else case e in #(
8049 e) USE_NLS=yes ;;
8050 esac
8051 fi
8052
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8054 printf "%s\n" "$USE_NLS" >&6; }
8055
8056
8057
8058
8059 GETTEXT_MACRO_VERSION=0.19
8060
8061
8062
8063
8064 # Prepare PATH_SEPARATOR.
8065 # The user is always right.
8066 if test "${PATH_SEPARATOR+set}" != set; then
8067 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8068 # contains only /bin. Note that ksh looks also at the FPATH variable,
8069 # so we have to set that as well for the test.
8070 PATH_SEPARATOR=:
8071 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8072 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8073 || PATH_SEPARATOR=';'
8074 }
8075 fi
8076
8077 # Find out how to test for executable files. Don't use a zero-byte file,
8078 # as systems may use methods other than mode bits to determine executability.
8079 cat >conf$$.file <<_ASEOF
8080 #! /bin/sh
8081 exit 0
8082 _ASEOF
8083 chmod +x conf$$.file
8084 if test -x conf$$.file >/dev/null 2>&1; then
8085 ac_executable_p="test -x"
8086 else
8087 ac_executable_p="test -f"
8088 fi
8089 rm -f conf$$.file
8090
8091 # Extract the first word of "msgfmt", so it can be a program name with args.
8092 set dummy msgfmt; ac_word=$2
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 printf %s "checking for $ac_word... " >&6; }
8095 if test ${ac_cv_path_MSGFMT+y}
8096 then :
8097 printf %s "(cached) " >&6
8098 else case e in #(
8099 e) case "$MSGFMT" in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8102 ;;
8103 *)
8104 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8105 for ac_dir in $PATH; do
8106 IFS="$ac_save_IFS"
8107 test -z "$ac_dir" && ac_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8110 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8111 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8112 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8113 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8114 break 2
8115 fi
8116 fi
8117 done
8118 done
8119 IFS="$ac_save_IFS"
8120 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8121 ;;
8122 esac ;;
8123 esac
8124 fi
8125 MSGFMT="$ac_cv_path_MSGFMT"
8126 if test "$MSGFMT" != ":"; then
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8128 printf "%s\n" "$MSGFMT" >&6; }
8129 else
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 printf "%s\n" "no" >&6; }
8132 fi
8133
8134 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8135 set dummy gmsgfmt; ac_word=$2
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 printf %s "checking for $ac_word... " >&6; }
8138 if test ${ac_cv_path_GMSGFMT+y}
8139 then :
8140 printf %s "(cached) " >&6
8141 else case e in #(
8142 e) case $GMSGFMT in
8143 [\\/]* | ?:[\\/]*)
8144 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8145 ;;
8146 *)
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 case $as_dir in #(((
8152 '') as_dir=./ ;;
8153 */) ;;
8154 *) as_dir=$as_dir/ ;;
8155 esac
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8158 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162 done
8163 done
8164 IFS=$as_save_IFS
8165
8166 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8167 ;;
8168 esac ;;
8169 esac
8170 fi
8171 GMSGFMT=$ac_cv_path_GMSGFMT
8172 if test -n "$GMSGFMT"; then
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8174 printf "%s\n" "$GMSGFMT" >&6; }
8175 else
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 printf "%s\n" "no" >&6; }
8178 fi
8179
8180
8181
8182 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8183 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
8184 *) MSGFMT_015=$MSGFMT ;;
8185 esac
8186
8187 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8188 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8189 *) GMSGFMT_015=$GMSGFMT ;;
8190 esac
8191
8192
8193
8194 # Prepare PATH_SEPARATOR.
8195 # The user is always right.
8196 if test "${PATH_SEPARATOR+set}" != set; then
8197 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8198 # contains only /bin. Note that ksh looks also at the FPATH variable,
8199 # so we have to set that as well for the test.
8200 PATH_SEPARATOR=:
8201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8202 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8203 || PATH_SEPARATOR=';'
8204 }
8205 fi
8206
8207 # Find out how to test for executable files. Don't use a zero-byte file,
8208 # as systems may use methods other than mode bits to determine executability.
8209 cat >conf$$.file <<_ASEOF
8210 #! /bin/sh
8211 exit 0
8212 _ASEOF
8213 chmod +x conf$$.file
8214 if test -x conf$$.file >/dev/null 2>&1; then
8215 ac_executable_p="test -x"
8216 else
8217 ac_executable_p="test -f"
8218 fi
8219 rm -f conf$$.file
8220
8221 # Extract the first word of "xgettext", so it can be a program name with args.
8222 set dummy xgettext; ac_word=$2
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 printf %s "checking for $ac_word... " >&6; }
8225 if test ${ac_cv_path_XGETTEXT+y}
8226 then :
8227 printf %s "(cached) " >&6
8228 else case e in #(
8229 e) case "$XGETTEXT" in
8230 [\\/]* | ?:[\\/]*)
8231 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8232 ;;
8233 *)
8234 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8235 for ac_dir in $PATH; do
8236 IFS="$ac_save_IFS"
8237 test -z "$ac_dir" && ac_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8240 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8241 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8242 (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
8243 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8244 break 2
8245 fi
8246 fi
8247 done
8248 done
8249 IFS="$ac_save_IFS"
8250 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8251 ;;
8252 esac ;;
8253 esac
8254 fi
8255 XGETTEXT="$ac_cv_path_XGETTEXT"
8256 if test "$XGETTEXT" != ":"; then
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8258 printf "%s\n" "$XGETTEXT" >&6; }
8259 else
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 printf "%s\n" "no" >&6; }
8262 fi
8263
8264 rm -f messages.po
8265
8266 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8267 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8268 *) XGETTEXT_015=$XGETTEXT ;;
8269 esac
8270
8271
8272
8273 # Prepare PATH_SEPARATOR.
8274 # The user is always right.
8275 if test "${PATH_SEPARATOR+set}" != set; then
8276 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8277 # contains only /bin. Note that ksh looks also at the FPATH variable,
8278 # so we have to set that as well for the test.
8279 PATH_SEPARATOR=:
8280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8281 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8282 || PATH_SEPARATOR=';'
8283 }
8284 fi
8285
8286 # Find out how to test for executable files. Don't use a zero-byte file,
8287 # as systems may use methods other than mode bits to determine executability.
8288 cat >conf$$.file <<_ASEOF
8289 #! /bin/sh
8290 exit 0
8291 _ASEOF
8292 chmod +x conf$$.file
8293 if test -x conf$$.file >/dev/null 2>&1; then
8294 ac_executable_p="test -x"
8295 else
8296 ac_executable_p="test -f"
8297 fi
8298 rm -f conf$$.file
8299
8300 # Extract the first word of "msgmerge", so it can be a program name with args.
8301 set dummy msgmerge; ac_word=$2
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 printf %s "checking for $ac_word... " >&6; }
8304 if test ${ac_cv_path_MSGMERGE+y}
8305 then :
8306 printf %s "(cached) " >&6
8307 else case e in #(
8308 e) case "$MSGMERGE" in
8309 [\\/]* | ?:[\\/]*)
8310 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8311 ;;
8312 *)
8313 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8314 for ac_dir in $PATH; do
8315 IFS="$ac_save_IFS"
8316 test -z "$ac_dir" && ac_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8319 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8320 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8321 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8322 break 2
8323 fi
8324 fi
8325 done
8326 done
8327 IFS="$ac_save_IFS"
8328 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8329 ;;
8330 esac ;;
8331 esac
8332 fi
8333 MSGMERGE="$ac_cv_path_MSGMERGE"
8334 if test "$MSGMERGE" != ":"; then
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8336 printf "%s\n" "$MSGMERGE" >&6; }
8337 else
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 printf "%s\n" "no" >&6; }
8340 fi
8341
8342
8343 test -n "$localedir" || localedir='${datadir}/locale'
8344
8345
8346 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8347
8348
8349 ac_config_commands="$ac_config_commands po-directories"
8350
8351
8352
8353 if test "X$prefix" = "XNONE"; then
8354 acl_final_prefix="$ac_default_prefix"
8355 else
8356 acl_final_prefix="$prefix"
8357 fi
8358 if test "X$exec_prefix" = "XNONE"; then
8359 acl_final_exec_prefix='${prefix}'
8360 else
8361 acl_final_exec_prefix="$exec_prefix"
8362 fi
8363 acl_save_prefix="$prefix"
8364 prefix="$acl_final_prefix"
8365 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8366 prefix="$acl_save_prefix"
8367
8368
8369
8370 # Check whether --with-gnu-ld was given.
8371 if test ${with_gnu_ld+y}
8372 then :
8373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8374 else case e in #(
8375 e) with_gnu_ld=no ;;
8376 esac
8377 fi
8378
8379 # Prepare PATH_SEPARATOR.
8380 # The user is always right.
8381 if test "${PATH_SEPARATOR+set}" != set; then
8382 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8383 # contains only /bin. Note that ksh looks also at the FPATH variable,
8384 # so we have to set that as well for the test.
8385 PATH_SEPARATOR=:
8386 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8387 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8388 || PATH_SEPARATOR=';'
8389 }
8390 fi
8391
8392 ac_prog=ld
8393 if test "$GCC" = yes; then
8394 # Check if gcc -print-prog-name=ld gives a path.
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8396 printf %s "checking for ld used by $CC... " >&6; }
8397 case $host in
8398 *-*-mingw*)
8399 # gcc leaves a trailing carriage return which upsets mingw
8400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8401 *)
8402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8403 esac
8404 case $ac_prog in
8405 # Accept absolute paths.
8406 [\\/]* | ?:[\\/]*)
8407 re_direlt='/[^/][^/]*/\.\./'
8408 # Canonicalize the pathname of ld
8409 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8410 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
8411 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8412 done
8413 test -z "$LD" && LD="$ac_prog"
8414 ;;
8415 "")
8416 # If it fails, then pretend we aren't using GCC.
8417 ac_prog=ld
8418 ;;
8419 *)
8420 # If it is relative, then search for the first ld in PATH.
8421 with_gnu_ld=unknown
8422 ;;
8423 esac
8424 elif test "$with_gnu_ld" = yes; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8426 printf %s "checking for GNU ld... " >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8429 printf %s "checking for non-GNU ld... " >&6; }
8430 fi
8431 if test ${acl_cv_path_LD+y}
8432 then :
8433 printf %s "(cached) " >&6
8434 else case e in #(
8435 e) if test -z "$LD"; then
8436 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8437 for ac_dir in $PATH; do
8438 IFS="$acl_save_ifs"
8439 test -z "$ac_dir" && ac_dir=.
8440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8441 acl_cv_path_LD="$ac_dir/$ac_prog"
8442 # Check to see if the program is GNU ld. I'd rather use --version,
8443 # but apparently some variants of GNU ld only accept -v.
8444 # Break only if it was the GNU/non-GNU ld that we prefer.
8445 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8446 *GNU* | *'with BFD'*)
8447 test "$with_gnu_ld" != no && break
8448 ;;
8449 *)
8450 test "$with_gnu_ld" != yes && break
8451 ;;
8452 esac
8453 fi
8454 done
8455 IFS="$acl_save_ifs"
8456 else
8457 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8458 fi ;;
8459 esac
8460 fi
8461
8462 LD="$acl_cv_path_LD"
8463 if test -n "$LD"; then
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465 printf "%s\n" "$LD" >&6; }
8466 else
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 printf "%s\n" "no" >&6; }
8469 fi
8470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8472 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8473 if test ${acl_cv_prog_gnu_ld+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else case e in #(
8477 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
8478 case `$LD -v 2>&1 </dev/null` in
8479 *GNU* | *'with BFD'*)
8480 acl_cv_prog_gnu_ld=yes
8481 ;;
8482 *)
8483 acl_cv_prog_gnu_ld=no
8484 ;;
8485 esac ;;
8486 esac
8487 fi
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8489 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8490 with_gnu_ld=$acl_cv_prog_gnu_ld
8491
8492
8493
8494
8495
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8497 printf %s "checking for shared library run path origin... " >&6; }
8498 if test ${acl_cv_rpath+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else case e in #(
8502 e)
8503 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8504 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8505 . ./conftest.sh
8506 rm -f ./conftest.sh
8507 acl_cv_rpath=done
8508 ;;
8509 esac
8510 fi
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8512 printf "%s\n" "$acl_cv_rpath" >&6; }
8513 wl="$acl_cv_wl"
8514 acl_libext="$acl_cv_libext"
8515 acl_shlibext="$acl_cv_shlibext"
8516 acl_libname_spec="$acl_cv_libname_spec"
8517 acl_library_names_spec="$acl_cv_library_names_spec"
8518 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8519 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8520 acl_hardcode_direct="$acl_cv_hardcode_direct"
8521 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8522 # Check whether --enable-rpath was given.
8523 if test ${enable_rpath+y}
8524 then :
8525 enableval=$enable_rpath; :
8526 else case e in #(
8527 e) enable_rpath=yes ;;
8528 esac
8529 fi
8530
8531
8532
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
8534 printf %s "checking for egrep -e... " >&6; }
8535 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
8536 then :
8537 printf %s "(cached) " >&6
8538 else case e in #(
8539 e) if test -z "$EGREP_TRADITIONAL"; then
8540 ac_path_EGREP_TRADITIONAL_found=false
8541 # Loop through the user's path and test for each of PROGNAME-LIST
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8544 do
8545 IFS=$as_save_IFS
8546 case $as_dir in #(((
8547 '') as_dir=./ ;;
8548 */) ;;
8549 *) as_dir=$as_dir/ ;;
8550 esac
8551 for ac_prog in grep ggrep
8552 do
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8555 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8556 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8557 # Check for GNU $ac_path_EGREP_TRADITIONAL
8558 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8559 *GNU*)
8560 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8561 #(
8562 *)
8563 ac_count=0
8564 printf %s 0123456789 >"conftest.in"
8565 while :
8566 do
8567 cat "conftest.in" "conftest.in" >"conftest.tmp"
8568 mv "conftest.tmp" "conftest.in"
8569 cp "conftest.in" "conftest.nl"
8570 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8571 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8573 as_fn_arith $ac_count + 1 && ac_count=$as_val
8574 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8575 # Best one so far, save it but keep looking for a better one
8576 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8577 ac_path_EGREP_TRADITIONAL_max=$ac_count
8578 fi
8579 # 10*(2^10) chars as input seems more than enough
8580 test $ac_count -gt 10 && break
8581 done
8582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8583 esac
8584
8585 $ac_path_EGREP_TRADITIONAL_found && break 3
8586 done
8587 done
8588 done
8589 IFS=$as_save_IFS
8590 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8591 :
8592 fi
8593 else
8594 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8595 fi
8596
8597 if test "$ac_cv_path_EGREP_TRADITIONAL"
8598 then :
8599 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
8600 else case e in #(
8601 e) if test -z "$EGREP_TRADITIONAL"; then
8602 ac_path_EGREP_TRADITIONAL_found=false
8603 # Loop through the user's path and test for each of PROGNAME-LIST
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8606 do
8607 IFS=$as_save_IFS
8608 case $as_dir in #(((
8609 '') as_dir=./ ;;
8610 */) ;;
8611 *) as_dir=$as_dir/ ;;
8612 esac
8613 for ac_prog in egrep
8614 do
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
8617 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
8618 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
8619 # Check for GNU $ac_path_EGREP_TRADITIONAL
8620 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
8621 *GNU*)
8622 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
8623 #(
8624 *)
8625 ac_count=0
8626 printf %s 0123456789 >"conftest.in"
8627 while :
8628 do
8629 cat "conftest.in" "conftest.in" >"conftest.tmp"
8630 mv "conftest.tmp" "conftest.in"
8631 cp "conftest.in" "conftest.nl"
8632 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
8633 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8635 as_fn_arith $ac_count + 1 && ac_count=$as_val
8636 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
8637 # Best one so far, save it but keep looking for a better one
8638 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
8639 ac_path_EGREP_TRADITIONAL_max=$ac_count
8640 fi
8641 # 10*(2^10) chars as input seems more than enough
8642 test $ac_count -gt 10 && break
8643 done
8644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8645 esac
8646
8647 $ac_path_EGREP_TRADITIONAL_found && break 3
8648 done
8649 done
8650 done
8651 IFS=$as_save_IFS
8652 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
8653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8654 fi
8655 else
8656 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
8657 fi
8658 ;;
8659 esac
8660 fi ;;
8661 esac
8662 fi
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
8664 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
8665 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
8666
8667
8668
8669 acl_libdirstem=lib
8670 acl_libdirstem2=
8671 case "$host_os" in
8672 solaris*)
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8674 printf %s "checking for 64-bit host... " >&6; }
8675 if test ${gl_cv_solaris_64bit+y}
8676 then :
8677 printf %s "(cached) " >&6
8678 else case e in #(
8679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681
8682 #ifdef _LP64
8683 sixtyfour bits
8684 #endif
8685
8686 _ACEOF
8687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8688 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1
8689 then :
8690 gl_cv_solaris_64bit=yes
8691 else case e in #(
8692 e) gl_cv_solaris_64bit=no ;;
8693 esac
8694 fi
8695 rm -rf conftest*
8696
8697 ;;
8698 esac
8699 fi
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8701 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
8702 if test $gl_cv_solaris_64bit = yes; then
8703 acl_libdirstem=lib/64
8704 case "$host_cpu" in
8705 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8706 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8707 esac
8708 fi
8709 ;;
8710 *)
8711 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8712 if test -n "$searchpath"; then
8713 acl_save_IFS="${IFS= }"; IFS=":"
8714 for searchdir in $searchpath; do
8715 if test -d "$searchdir"; then
8716 case "$searchdir" in
8717 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8718 */../ | */.. )
8719 # Better ignore directories of this form. They are misleading.
8720 ;;
8721 *) searchdir=`cd "$searchdir" && pwd`
8722 case "$searchdir" in
8723 */lib64 ) acl_libdirstem=lib64 ;;
8724 esac ;;
8725 esac
8726 fi
8727 done
8728 IFS="$acl_save_IFS"
8729 fi
8730 ;;
8731 esac
8732 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 use_additional=yes
8746
8747 acl_save_prefix="$prefix"
8748 prefix="$acl_final_prefix"
8749 acl_save_exec_prefix="$exec_prefix"
8750 exec_prefix="$acl_final_exec_prefix"
8751
8752 eval additional_includedir=\"$includedir\"
8753 eval additional_libdir=\"$libdir\"
8754
8755 exec_prefix="$acl_save_exec_prefix"
8756 prefix="$acl_save_prefix"
8757
8758
8759 # Check whether --with-libiconv-prefix was given.
8760 if test ${with_libiconv_prefix+y}
8761 then :
8762 withval=$with_libiconv_prefix;
8763 if test "X$withval" = "Xno"; then
8764 use_additional=no
8765 else
8766 if test "X$withval" = "X"; then
8767
8768 acl_save_prefix="$prefix"
8769 prefix="$acl_final_prefix"
8770 acl_save_exec_prefix="$exec_prefix"
8771 exec_prefix="$acl_final_exec_prefix"
8772
8773 eval additional_includedir=\"$includedir\"
8774 eval additional_libdir=\"$libdir\"
8775
8776 exec_prefix="$acl_save_exec_prefix"
8777 prefix="$acl_save_prefix"
8778
8779 else
8780 additional_includedir="$withval/include"
8781 additional_libdir="$withval/$acl_libdirstem"
8782 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8783 && ! test -d "$withval/$acl_libdirstem"; then
8784 additional_libdir="$withval/$acl_libdirstem2"
8785 fi
8786 fi
8787 fi
8788
8789 fi
8790
8791 LIBICONV=
8792 LTLIBICONV=
8793 INCICONV=
8794 LIBICONV_PREFIX=
8795 HAVE_LIBICONV=
8796 rpathdirs=
8797 ltrpathdirs=
8798 names_already_handled=
8799 names_next_round='iconv '
8800 while test -n "$names_next_round"; do
8801 names_this_round="$names_next_round"
8802 names_next_round=
8803 for name in $names_this_round; do
8804 already_handled=
8805 for n in $names_already_handled; do
8806 if test "$n" = "$name"; then
8807 already_handled=yes
8808 break
8809 fi
8810 done
8811 if test -z "$already_handled"; then
8812 names_already_handled="$names_already_handled $name"
8813 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8814 eval value=\"\$HAVE_LIB$uppername\"
8815 if test -n "$value"; then
8816 if test "$value" = yes; then
8817 eval value=\"\$LIB$uppername\"
8818 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8819 eval value=\"\$LTLIB$uppername\"
8820 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8821 else
8822 :
8823 fi
8824 else
8825 found_dir=
8826 found_la=
8827 found_so=
8828 found_a=
8829 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8830 if test -n "$acl_shlibext"; then
8831 shrext=".$acl_shlibext" # typically: shrext=.so
8832 else
8833 shrext=
8834 fi
8835 if test $use_additional = yes; then
8836 dir="$additional_libdir"
8837 if test -n "$acl_shlibext"; then
8838 if test -f "$dir/$libname$shrext"; then
8839 found_dir="$dir"
8840 found_so="$dir/$libname$shrext"
8841 else
8842 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8843 ver=`(cd "$dir" && \
8844 for f in "$libname$shrext".*; do echo "$f"; done \
8845 | sed -e "s,^$libname$shrext\\\\.,," \
8846 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8847 | sed 1q ) 2>/dev/null`
8848 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8849 found_dir="$dir"
8850 found_so="$dir/$libname$shrext.$ver"
8851 fi
8852 else
8853 eval library_names=\"$acl_library_names_spec\"
8854 for f in $library_names; do
8855 if test -f "$dir/$f"; then
8856 found_dir="$dir"
8857 found_so="$dir/$f"
8858 break
8859 fi
8860 done
8861 fi
8862 fi
8863 fi
8864 if test "X$found_dir" = "X"; then
8865 if test -f "$dir/$libname.$acl_libext"; then
8866 found_dir="$dir"
8867 found_a="$dir/$libname.$acl_libext"
8868 fi
8869 fi
8870 if test "X$found_dir" != "X"; then
8871 if test -f "$dir/$libname.la"; then
8872 found_la="$dir/$libname.la"
8873 fi
8874 fi
8875 fi
8876 if test "X$found_dir" = "X"; then
8877 for x in $LDFLAGS $LTLIBICONV; do
8878
8879 acl_save_prefix="$prefix"
8880 prefix="$acl_final_prefix"
8881 acl_save_exec_prefix="$exec_prefix"
8882 exec_prefix="$acl_final_exec_prefix"
8883 eval x=\"$x\"
8884 exec_prefix="$acl_save_exec_prefix"
8885 prefix="$acl_save_prefix"
8886
8887 case "$x" in
8888 -L*)
8889 dir=`echo "X$x" | sed -e 's/^X-L//'`
8890 if test -n "$acl_shlibext"; then
8891 if test -f "$dir/$libname$shrext"; then
8892 found_dir="$dir"
8893 found_so="$dir/$libname$shrext"
8894 else
8895 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8896 ver=`(cd "$dir" && \
8897 for f in "$libname$shrext".*; do echo "$f"; done \
8898 | sed -e "s,^$libname$shrext\\\\.,," \
8899 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8900 | sed 1q ) 2>/dev/null`
8901 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8902 found_dir="$dir"
8903 found_so="$dir/$libname$shrext.$ver"
8904 fi
8905 else
8906 eval library_names=\"$acl_library_names_spec\"
8907 for f in $library_names; do
8908 if test -f "$dir/$f"; then
8909 found_dir="$dir"
8910 found_so="$dir/$f"
8911 break
8912 fi
8913 done
8914 fi
8915 fi
8916 fi
8917 if test "X$found_dir" = "X"; then
8918 if test -f "$dir/$libname.$acl_libext"; then
8919 found_dir="$dir"
8920 found_a="$dir/$libname.$acl_libext"
8921 fi
8922 fi
8923 if test "X$found_dir" != "X"; then
8924 if test -f "$dir/$libname.la"; then
8925 found_la="$dir/$libname.la"
8926 fi
8927 fi
8928 ;;
8929 esac
8930 if test "X$found_dir" != "X"; then
8931 break
8932 fi
8933 done
8934 fi
8935 if test "X$found_dir" != "X"; then
8936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8937 if test "X$found_so" != "X"; then
8938 if test "$enable_rpath" = no \
8939 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8940 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8942 else
8943 haveit=
8944 for x in $ltrpathdirs; do
8945 if test "X$x" = "X$found_dir"; then
8946 haveit=yes
8947 break
8948 fi
8949 done
8950 if test -z "$haveit"; then
8951 ltrpathdirs="$ltrpathdirs $found_dir"
8952 fi
8953 if test "$acl_hardcode_direct" = yes; then
8954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8955 else
8956 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8957 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8958 haveit=
8959 for x in $rpathdirs; do
8960 if test "X$x" = "X$found_dir"; then
8961 haveit=yes
8962 break
8963 fi
8964 done
8965 if test -z "$haveit"; then
8966 rpathdirs="$rpathdirs $found_dir"
8967 fi
8968 else
8969 haveit=
8970 for x in $LDFLAGS $LIBICONV; do
8971
8972 acl_save_prefix="$prefix"
8973 prefix="$acl_final_prefix"
8974 acl_save_exec_prefix="$exec_prefix"
8975 exec_prefix="$acl_final_exec_prefix"
8976 eval x=\"$x\"
8977 exec_prefix="$acl_save_exec_prefix"
8978 prefix="$acl_save_prefix"
8979
8980 if test "X$x" = "X-L$found_dir"; then
8981 haveit=yes
8982 break
8983 fi
8984 done
8985 if test -z "$haveit"; then
8986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8987 fi
8988 if test "$acl_hardcode_minus_L" != no; then
8989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8990 else
8991 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8992 fi
8993 fi
8994 fi
8995 fi
8996 else
8997 if test "X$found_a" != "X"; then
8998 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8999 else
9000 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9001 fi
9002 fi
9003 additional_includedir=
9004 case "$found_dir" in
9005 */$acl_libdirstem | */$acl_libdirstem/)
9006 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9007 if test "$name" = 'iconv'; then
9008 LIBICONV_PREFIX="$basedir"
9009 fi
9010 additional_includedir="$basedir/include"
9011 ;;
9012 */$acl_libdirstem2 | */$acl_libdirstem2/)
9013 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9014 if test "$name" = 'iconv'; then
9015 LIBICONV_PREFIX="$basedir"
9016 fi
9017 additional_includedir="$basedir/include"
9018 ;;
9019 esac
9020 if test "X$additional_includedir" != "X"; then
9021 if test "X$additional_includedir" != "X/usr/include"; then
9022 haveit=
9023 if test "X$additional_includedir" = "X/usr/local/include"; then
9024 if test -n "$GCC"; then
9025 case $host_os in
9026 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9027 esac
9028 fi
9029 fi
9030 if test -z "$haveit"; then
9031 for x in $CPPFLAGS $INCICONV; do
9032
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9040
9041 if test "X$x" = "X-I$additional_includedir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 if test -d "$additional_includedir"; then
9048 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9049 fi
9050 fi
9051 fi
9052 fi
9053 fi
9054 if test -n "$found_la"; then
9055 save_libdir="$libdir"
9056 case "$found_la" in
9057 */* | *\\*) . "$found_la" ;;
9058 *) . "./$found_la" ;;
9059 esac
9060 libdir="$save_libdir"
9061 for dep in $dependency_libs; do
9062 case "$dep" in
9063 -L*)
9064 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9065 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9066 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9067 haveit=
9068 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9069 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9070 if test -n "$GCC"; then
9071 case $host_os in
9072 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9073 esac
9074 fi
9075 fi
9076 if test -z "$haveit"; then
9077 haveit=
9078 for x in $LDFLAGS $LIBICONV; do
9079
9080 acl_save_prefix="$prefix"
9081 prefix="$acl_final_prefix"
9082 acl_save_exec_prefix="$exec_prefix"
9083 exec_prefix="$acl_final_exec_prefix"
9084 eval x=\"$x\"
9085 exec_prefix="$acl_save_exec_prefix"
9086 prefix="$acl_save_prefix"
9087
9088 if test "X$x" = "X-L$additional_libdir"; then
9089 haveit=yes
9090 break
9091 fi
9092 done
9093 if test -z "$haveit"; then
9094 if test -d "$additional_libdir"; then
9095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9096 fi
9097 fi
9098 haveit=
9099 for x in $LDFLAGS $LTLIBICONV; do
9100
9101 acl_save_prefix="$prefix"
9102 prefix="$acl_final_prefix"
9103 acl_save_exec_prefix="$exec_prefix"
9104 exec_prefix="$acl_final_exec_prefix"
9105 eval x=\"$x\"
9106 exec_prefix="$acl_save_exec_prefix"
9107 prefix="$acl_save_prefix"
9108
9109 if test "X$x" = "X-L$additional_libdir"; then
9110 haveit=yes
9111 break
9112 fi
9113 done
9114 if test -z "$haveit"; then
9115 if test -d "$additional_libdir"; then
9116 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9117 fi
9118 fi
9119 fi
9120 fi
9121 ;;
9122 -R*)
9123 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9124 if test "$enable_rpath" != no; then
9125 haveit=
9126 for x in $rpathdirs; do
9127 if test "X$x" = "X$dir"; then
9128 haveit=yes
9129 break
9130 fi
9131 done
9132 if test -z "$haveit"; then
9133 rpathdirs="$rpathdirs $dir"
9134 fi
9135 haveit=
9136 for x in $ltrpathdirs; do
9137 if test "X$x" = "X$dir"; then
9138 haveit=yes
9139 break
9140 fi
9141 done
9142 if test -z "$haveit"; then
9143 ltrpathdirs="$ltrpathdirs $dir"
9144 fi
9145 fi
9146 ;;
9147 -l*)
9148 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9149 ;;
9150 *.la)
9151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9152 ;;
9153 *)
9154 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9155 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9156 ;;
9157 esac
9158 done
9159 fi
9160 else
9161 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9162 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9163 fi
9164 fi
9165 fi
9166 done
9167 done
9168 if test "X$rpathdirs" != "X"; then
9169 if test -n "$acl_hardcode_libdir_separator"; then
9170 alldirs=
9171 for found_dir in $rpathdirs; do
9172 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9173 done
9174 acl_save_libdir="$libdir"
9175 libdir="$alldirs"
9176 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9177 libdir="$acl_save_libdir"
9178 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9179 else
9180 for found_dir in $rpathdirs; do
9181 acl_save_libdir="$libdir"
9182 libdir="$found_dir"
9183 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9184 libdir="$acl_save_libdir"
9185 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9186 done
9187 fi
9188 fi
9189 if test "X$ltrpathdirs" != "X"; then
9190 for found_dir in $ltrpathdirs; do
9191 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9192 done
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9226 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9227 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else case e in #(
9231 e) gt_save_LIBS="$LIBS"
9232 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <CoreFoundation/CFPreferences.h>
9236 int
9237 main (void)
9238 {
9239 CFPreferencesCopyAppValue(NULL, NULL)
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"
9245 then :
9246 gt_cv_func_CFPreferencesCopyAppValue=yes
9247 else case e in #(
9248 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
9249 esac
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS="$gt_save_LIBS" ;;
9254 esac
9255 fi
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9257 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9258 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9259
9260 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9261
9262 fi
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9264 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
9265 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
9266 then :
9267 printf %s "(cached) " >&6
9268 else case e in #(
9269 e) gt_save_LIBS="$LIBS"
9270 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <CoreFoundation/CFLocale.h>
9274 int
9275 main (void)
9276 {
9277 CFLocaleCopyCurrent();
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_link "$LINENO"
9283 then :
9284 gt_cv_func_CFLocaleCopyCurrent=yes
9285 else case e in #(
9286 e) gt_cv_func_CFLocaleCopyCurrent=no ;;
9287 esac
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS="$gt_save_LIBS" ;;
9292 esac
9293 fi
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9295 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9296 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9297
9298 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9299
9300 fi
9301 INTL_MACOSX_LIBS=
9302 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9303 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9304 fi
9305
9306
9307
9308
9309
9310
9311 LIBINTL=
9312 LTLIBINTL=
9313 POSUB=
9314
9315 case " $gt_needs " in
9316 *" need-formatstring-macros "*) gt_api_version=3 ;;
9317 *" need-ngettext "*) gt_api_version=2 ;;
9318 *) gt_api_version=1 ;;
9319 esac
9320 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9321 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9322
9323 if test "$USE_NLS" = "yes"; then
9324 gt_use_preinstalled_gnugettext=no
9325
9326
9327 if test $gt_api_version -ge 3; then
9328 gt_revision_test_code='
9329 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9330 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9331 #endif
9332 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9333 '
9334 else
9335 gt_revision_test_code=
9336 fi
9337 if test $gt_api_version -ge 2; then
9338 gt_expression_test_code=' + * ngettext ("", "", 0)'
9339 else
9340 gt_expression_test_code=
9341 fi
9342
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9344 printf %s "checking for GNU gettext in libc... " >&6; }
9345 if eval test \${$gt_func_gnugettext_libc+y}
9346 then :
9347 printf %s "(cached) " >&6
9348 else case e in #(
9349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351
9352 #include <libintl.h>
9353 $gt_revision_test_code
9354 extern int _nl_msg_cat_cntr;
9355 extern int *_nl_domain_bindings;
9356
9357 int
9358 main (void)
9359 {
9360
9361 bindtextdomain ("", "");
9362 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9363
9364 ;
9365 return 0;
9366 }
9367 _ACEOF
9368 if ac_fn_c_try_link "$LINENO"
9369 then :
9370 eval "$gt_func_gnugettext_libc=yes"
9371 else case e in #(
9372 e) eval "$gt_func_gnugettext_libc=no" ;;
9373 esac
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9376 conftest$ac_exeext conftest.$ac_ext ;;
9377 esac
9378 fi
9379 eval ac_res=\$$gt_func_gnugettext_libc
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9381 printf "%s\n" "$ac_res" >&6; }
9382
9383 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9384
9385
9386
9387
9388
9389 am_save_CPPFLAGS="$CPPFLAGS"
9390
9391 for element in $INCICONV; do
9392 haveit=
9393 for x in $CPPFLAGS; do
9394
9395 acl_save_prefix="$prefix"
9396 prefix="$acl_final_prefix"
9397 acl_save_exec_prefix="$exec_prefix"
9398 exec_prefix="$acl_final_exec_prefix"
9399 eval x=\"$x\"
9400 exec_prefix="$acl_save_exec_prefix"
9401 prefix="$acl_save_prefix"
9402
9403 if test "X$x" = "X$element"; then
9404 haveit=yes
9405 break
9406 fi
9407 done
9408 if test -z "$haveit"; then
9409 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9410 fi
9411 done
9412
9413
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9415 printf %s "checking for iconv... " >&6; }
9416 if test ${am_cv_func_iconv+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else case e in #(
9420 e)
9421 am_cv_func_iconv="no, consider installing GNU libiconv"
9422 am_cv_lib_iconv=no
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425
9426 #include <stdlib.h>
9427 #include <iconv.h>
9428
9429 int
9430 main (void)
9431 {
9432 iconv_t cd = iconv_open("","");
9433 iconv(cd,NULL,NULL,NULL,NULL);
9434 iconv_close(cd);
9435 ;
9436 return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"
9440 then :
9441 am_cv_func_iconv=yes
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test "$am_cv_func_iconv" != yes; then
9446 am_save_LIBS="$LIBS"
9447 LIBS="$LIBS $LIBICONV"
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450
9451 #include <stdlib.h>
9452 #include <iconv.h>
9453
9454 int
9455 main (void)
9456 {
9457 iconv_t cd = iconv_open("","");
9458 iconv(cd,NULL,NULL,NULL,NULL);
9459 iconv_close(cd);
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"
9465 then :
9466 am_cv_lib_iconv=yes
9467 am_cv_func_iconv=yes
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS="$am_save_LIBS"
9472 fi
9473 ;;
9474 esac
9475 fi
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9477 printf "%s\n" "$am_cv_func_iconv" >&6; }
9478 if test "$am_cv_func_iconv" = yes; then
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9480 printf %s "checking for working iconv... " >&6; }
9481 if test ${am_cv_func_iconv_works+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else case e in #(
9485 e)
9486 am_save_LIBS="$LIBS"
9487 if test $am_cv_lib_iconv = yes; then
9488 LIBS="$LIBS $LIBICONV"
9489 fi
9490 am_cv_func_iconv_works=no
9491 for ac_iconv_const in '' 'const'; do
9492 if test "$cross_compiling" = yes
9493 then :
9494 case "$host_os" in
9495 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9496 *) am_cv_func_iconv_works="guessing yes" ;;
9497 esac
9498 else case e in #(
9499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501
9502 #include <iconv.h>
9503 #include <string.h>
9504
9505 #ifndef ICONV_CONST
9506 # define ICONV_CONST $ac_iconv_const
9507 #endif
9508
9509 int
9510 main (void)
9511 {
9512 int result = 0;
9513 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9514 returns. */
9515 {
9516 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9517 if (cd_utf8_to_88591 != (iconv_t)(-1))
9518 {
9519 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
9520 char buf[10];
9521 ICONV_CONST char *inptr = input;
9522 size_t inbytesleft = strlen (input);
9523 char *outptr = buf;
9524 size_t outbytesleft = sizeof (buf);
9525 size_t res = iconv (cd_utf8_to_88591,
9526 &inptr, &inbytesleft,
9527 &outptr, &outbytesleft);
9528 if (res == 0)
9529 result |= 1;
9530 iconv_close (cd_utf8_to_88591);
9531 }
9532 }
9533 /* Test against Solaris 10 bug: Failures are not distinguishable from
9534 successful returns. */
9535 {
9536 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9537 if (cd_ascii_to_88591 != (iconv_t)(-1))
9538 {
9539 static ICONV_CONST char input[] = "\263";
9540 char buf[10];
9541 ICONV_CONST char *inptr = input;
9542 size_t inbytesleft = strlen (input);
9543 char *outptr = buf;
9544 size_t outbytesleft = sizeof (buf);
9545 size_t res = iconv (cd_ascii_to_88591,
9546 &inptr, &inbytesleft,
9547 &outptr, &outbytesleft);
9548 if (res == 0)
9549 result |= 2;
9550 iconv_close (cd_ascii_to_88591);
9551 }
9552 }
9553 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9554 {
9555 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9556 if (cd_88591_to_utf8 != (iconv_t)(-1))
9557 {
9558 static ICONV_CONST char input[] = "\304";
9559 static char buf[2] = { (char)0xDE, (char)0xAD };
9560 ICONV_CONST char *inptr = input;
9561 size_t inbytesleft = 1;
9562 char *outptr = buf;
9563 size_t outbytesleft = 1;
9564 size_t res = iconv (cd_88591_to_utf8,
9565 &inptr, &inbytesleft,
9566 &outptr, &outbytesleft);
9567 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9568 result |= 4;
9569 iconv_close (cd_88591_to_utf8);
9570 }
9571 }
9572 #if 0 /* This bug could be worked around by the caller. */
9573 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9574 {
9575 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9576 if (cd_88591_to_utf8 != (iconv_t)(-1))
9577 {
9578 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9579 char buf[50];
9580 ICONV_CONST char *inptr = input;
9581 size_t inbytesleft = strlen (input);
9582 char *outptr = buf;
9583 size_t outbytesleft = sizeof (buf);
9584 size_t res = iconv (cd_88591_to_utf8,
9585 &inptr, &inbytesleft,
9586 &outptr, &outbytesleft);
9587 if ((int)res > 0)
9588 result |= 8;
9589 iconv_close (cd_88591_to_utf8);
9590 }
9591 }
9592 #endif
9593 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9594 provided. */
9595 if (/* Try standardized names. */
9596 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9597 /* Try IRIX, OSF/1 names. */
9598 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9599 /* Try AIX names. */
9600 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9601 /* Try HP-UX names. */
9602 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9603 result |= 16;
9604 return result;
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_run "$LINENO"
9611 then :
9612 am_cv_func_iconv_works=yes
9613 fi
9614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9615 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9616 esac
9617 fi
9618
9619 test "$am_cv_func_iconv_works" = no || break
9620 done
9621 LIBS="$am_save_LIBS"
9622 ;;
9623 esac
9624 fi
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9626 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
9627 case "$am_cv_func_iconv_works" in
9628 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9629 *) am_func_iconv=yes ;;
9630 esac
9631 else
9632 am_func_iconv=no am_cv_lib_iconv=no
9633 fi
9634 if test "$am_func_iconv" = yes; then
9635
9636 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
9637
9638 fi
9639 if test "$am_cv_lib_iconv" = yes; then
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9641 printf %s "checking how to link with libiconv... " >&6; }
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9643 printf "%s\n" "$LIBICONV" >&6; }
9644 else
9645 CPPFLAGS="$am_save_CPPFLAGS"
9646 LIBICONV=
9647 LTLIBICONV=
9648 fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660 use_additional=yes
9661
9662 acl_save_prefix="$prefix"
9663 prefix="$acl_final_prefix"
9664 acl_save_exec_prefix="$exec_prefix"
9665 exec_prefix="$acl_final_exec_prefix"
9666
9667 eval additional_includedir=\"$includedir\"
9668 eval additional_libdir=\"$libdir\"
9669
9670 exec_prefix="$acl_save_exec_prefix"
9671 prefix="$acl_save_prefix"
9672
9673
9674 # Check whether --with-libintl-prefix was given.
9675 if test ${with_libintl_prefix+y}
9676 then :
9677 withval=$with_libintl_prefix;
9678 if test "X$withval" = "Xno"; then
9679 use_additional=no
9680 else
9681 if test "X$withval" = "X"; then
9682
9683 acl_save_prefix="$prefix"
9684 prefix="$acl_final_prefix"
9685 acl_save_exec_prefix="$exec_prefix"
9686 exec_prefix="$acl_final_exec_prefix"
9687
9688 eval additional_includedir=\"$includedir\"
9689 eval additional_libdir=\"$libdir\"
9690
9691 exec_prefix="$acl_save_exec_prefix"
9692 prefix="$acl_save_prefix"
9693
9694 else
9695 additional_includedir="$withval/include"
9696 additional_libdir="$withval/$acl_libdirstem"
9697 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9698 && ! test -d "$withval/$acl_libdirstem"; then
9699 additional_libdir="$withval/$acl_libdirstem2"
9700 fi
9701 fi
9702 fi
9703
9704 fi
9705
9706 LIBINTL=
9707 LTLIBINTL=
9708 INCINTL=
9709 LIBINTL_PREFIX=
9710 HAVE_LIBINTL=
9711 rpathdirs=
9712 ltrpathdirs=
9713 names_already_handled=
9714 names_next_round='intl '
9715 while test -n "$names_next_round"; do
9716 names_this_round="$names_next_round"
9717 names_next_round=
9718 for name in $names_this_round; do
9719 already_handled=
9720 for n in $names_already_handled; do
9721 if test "$n" = "$name"; then
9722 already_handled=yes
9723 break
9724 fi
9725 done
9726 if test -z "$already_handled"; then
9727 names_already_handled="$names_already_handled $name"
9728 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9729 eval value=\"\$HAVE_LIB$uppername\"
9730 if test -n "$value"; then
9731 if test "$value" = yes; then
9732 eval value=\"\$LIB$uppername\"
9733 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9734 eval value=\"\$LTLIB$uppername\"
9735 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9736 else
9737 :
9738 fi
9739 else
9740 found_dir=
9741 found_la=
9742 found_so=
9743 found_a=
9744 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9745 if test -n "$acl_shlibext"; then
9746 shrext=".$acl_shlibext" # typically: shrext=.so
9747 else
9748 shrext=
9749 fi
9750 if test $use_additional = yes; then
9751 dir="$additional_libdir"
9752 if test -n "$acl_shlibext"; then
9753 if test -f "$dir/$libname$shrext"; then
9754 found_dir="$dir"
9755 found_so="$dir/$libname$shrext"
9756 else
9757 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9758 ver=`(cd "$dir" && \
9759 for f in "$libname$shrext".*; do echo "$f"; done \
9760 | sed -e "s,^$libname$shrext\\\\.,," \
9761 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9762 | sed 1q ) 2>/dev/null`
9763 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9764 found_dir="$dir"
9765 found_so="$dir/$libname$shrext.$ver"
9766 fi
9767 else
9768 eval library_names=\"$acl_library_names_spec\"
9769 for f in $library_names; do
9770 if test -f "$dir/$f"; then
9771 found_dir="$dir"
9772 found_so="$dir/$f"
9773 break
9774 fi
9775 done
9776 fi
9777 fi
9778 fi
9779 if test "X$found_dir" = "X"; then
9780 if test -f "$dir/$libname.$acl_libext"; then
9781 found_dir="$dir"
9782 found_a="$dir/$libname.$acl_libext"
9783 fi
9784 fi
9785 if test "X$found_dir" != "X"; then
9786 if test -f "$dir/$libname.la"; then
9787 found_la="$dir/$libname.la"
9788 fi
9789 fi
9790 fi
9791 if test "X$found_dir" = "X"; then
9792 for x in $LDFLAGS $LTLIBINTL; do
9793
9794 acl_save_prefix="$prefix"
9795 prefix="$acl_final_prefix"
9796 acl_save_exec_prefix="$exec_prefix"
9797 exec_prefix="$acl_final_exec_prefix"
9798 eval x=\"$x\"
9799 exec_prefix="$acl_save_exec_prefix"
9800 prefix="$acl_save_prefix"
9801
9802 case "$x" in
9803 -L*)
9804 dir=`echo "X$x" | sed -e 's/^X-L//'`
9805 if test -n "$acl_shlibext"; then
9806 if test -f "$dir/$libname$shrext"; then
9807 found_dir="$dir"
9808 found_so="$dir/$libname$shrext"
9809 else
9810 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9811 ver=`(cd "$dir" && \
9812 for f in "$libname$shrext".*; do echo "$f"; done \
9813 | sed -e "s,^$libname$shrext\\\\.,," \
9814 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9815 | sed 1q ) 2>/dev/null`
9816 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9817 found_dir="$dir"
9818 found_so="$dir/$libname$shrext.$ver"
9819 fi
9820 else
9821 eval library_names=\"$acl_library_names_spec\"
9822 for f in $library_names; do
9823 if test -f "$dir/$f"; then
9824 found_dir="$dir"
9825 found_so="$dir/$f"
9826 break
9827 fi
9828 done
9829 fi
9830 fi
9831 fi
9832 if test "X$found_dir" = "X"; then
9833 if test -f "$dir/$libname.$acl_libext"; then
9834 found_dir="$dir"
9835 found_a="$dir/$libname.$acl_libext"
9836 fi
9837 fi
9838 if test "X$found_dir" != "X"; then
9839 if test -f "$dir/$libname.la"; then
9840 found_la="$dir/$libname.la"
9841 fi
9842 fi
9843 ;;
9844 esac
9845 if test "X$found_dir" != "X"; then
9846 break
9847 fi
9848 done
9849 fi
9850 if test "X$found_dir" != "X"; then
9851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9852 if test "X$found_so" != "X"; then
9853 if test "$enable_rpath" = no \
9854 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9855 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9856 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9857 else
9858 haveit=
9859 for x in $ltrpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9861 haveit=yes
9862 break
9863 fi
9864 done
9865 if test -z "$haveit"; then
9866 ltrpathdirs="$ltrpathdirs $found_dir"
9867 fi
9868 if test "$acl_hardcode_direct" = yes; then
9869 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9870 else
9871 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9872 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9873 haveit=
9874 for x in $rpathdirs; do
9875 if test "X$x" = "X$found_dir"; then
9876 haveit=yes
9877 break
9878 fi
9879 done
9880 if test -z "$haveit"; then
9881 rpathdirs="$rpathdirs $found_dir"
9882 fi
9883 else
9884 haveit=
9885 for x in $LDFLAGS $LIBINTL; do
9886
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9891 eval x=\"$x\"
9892 exec_prefix="$acl_save_exec_prefix"
9893 prefix="$acl_save_prefix"
9894
9895 if test "X$x" = "X-L$found_dir"; then
9896 haveit=yes
9897 break
9898 fi
9899 done
9900 if test -z "$haveit"; then
9901 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9902 fi
9903 if test "$acl_hardcode_minus_L" != no; then
9904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9905 else
9906 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9907 fi
9908 fi
9909 fi
9910 fi
9911 else
9912 if test "X$found_a" != "X"; then
9913 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9914 else
9915 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9916 fi
9917 fi
9918 additional_includedir=
9919 case "$found_dir" in
9920 */$acl_libdirstem | */$acl_libdirstem/)
9921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9922 if test "$name" = 'intl'; then
9923 LIBINTL_PREFIX="$basedir"
9924 fi
9925 additional_includedir="$basedir/include"
9926 ;;
9927 */$acl_libdirstem2 | */$acl_libdirstem2/)
9928 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9929 if test "$name" = 'intl'; then
9930 LIBINTL_PREFIX="$basedir"
9931 fi
9932 additional_includedir="$basedir/include"
9933 ;;
9934 esac
9935 if test "X$additional_includedir" != "X"; then
9936 if test "X$additional_includedir" != "X/usr/include"; then
9937 haveit=
9938 if test "X$additional_includedir" = "X/usr/local/include"; then
9939 if test -n "$GCC"; then
9940 case $host_os in
9941 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9942 esac
9943 fi
9944 fi
9945 if test -z "$haveit"; then
9946 for x in $CPPFLAGS $INCINTL; do
9947
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9952 eval x=\"$x\"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
9955
9956 if test "X$x" = "X-I$additional_includedir"; then
9957 haveit=yes
9958 break
9959 fi
9960 done
9961 if test -z "$haveit"; then
9962 if test -d "$additional_includedir"; then
9963 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9964 fi
9965 fi
9966 fi
9967 fi
9968 fi
9969 if test -n "$found_la"; then
9970 save_libdir="$libdir"
9971 case "$found_la" in
9972 */* | *\\*) . "$found_la" ;;
9973 *) . "./$found_la" ;;
9974 esac
9975 libdir="$save_libdir"
9976 for dep in $dependency_libs; do
9977 case "$dep" in
9978 -L*)
9979 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9980 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9981 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9982 haveit=
9983 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9984 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9985 if test -n "$GCC"; then
9986 case $host_os in
9987 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9988 esac
9989 fi
9990 fi
9991 if test -z "$haveit"; then
9992 haveit=
9993 for x in $LDFLAGS $LIBINTL; do
9994
9995 acl_save_prefix="$prefix"
9996 prefix="$acl_final_prefix"
9997 acl_save_exec_prefix="$exec_prefix"
9998 exec_prefix="$acl_final_exec_prefix"
9999 eval x=\"$x\"
10000 exec_prefix="$acl_save_exec_prefix"
10001 prefix="$acl_save_prefix"
10002
10003 if test "X$x" = "X-L$additional_libdir"; then
10004 haveit=yes
10005 break
10006 fi
10007 done
10008 if test -z "$haveit"; then
10009 if test -d "$additional_libdir"; then
10010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10011 fi
10012 fi
10013 haveit=
10014 for x in $LDFLAGS $LTLIBINTL; do
10015
10016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10020 eval x=\"$x\"
10021 exec_prefix="$acl_save_exec_prefix"
10022 prefix="$acl_save_prefix"
10023
10024 if test "X$x" = "X-L$additional_libdir"; then
10025 haveit=yes
10026 break
10027 fi
10028 done
10029 if test -z "$haveit"; then
10030 if test -d "$additional_libdir"; then
10031 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10032 fi
10033 fi
10034 fi
10035 fi
10036 ;;
10037 -R*)
10038 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10039 if test "$enable_rpath" != no; then
10040 haveit=
10041 for x in $rpathdirs; do
10042 if test "X$x" = "X$dir"; then
10043 haveit=yes
10044 break
10045 fi
10046 done
10047 if test -z "$haveit"; then
10048 rpathdirs="$rpathdirs $dir"
10049 fi
10050 haveit=
10051 for x in $ltrpathdirs; do
10052 if test "X$x" = "X$dir"; then
10053 haveit=yes
10054 break
10055 fi
10056 done
10057 if test -z "$haveit"; then
10058 ltrpathdirs="$ltrpathdirs $dir"
10059 fi
10060 fi
10061 ;;
10062 -l*)
10063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10064 ;;
10065 *.la)
10066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10067 ;;
10068 *)
10069 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10070 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10071 ;;
10072 esac
10073 done
10074 fi
10075 else
10076 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10077 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10078 fi
10079 fi
10080 fi
10081 done
10082 done
10083 if test "X$rpathdirs" != "X"; then
10084 if test -n "$acl_hardcode_libdir_separator"; then
10085 alldirs=
10086 for found_dir in $rpathdirs; do
10087 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10088 done
10089 acl_save_libdir="$libdir"
10090 libdir="$alldirs"
10091 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10092 libdir="$acl_save_libdir"
10093 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10094 else
10095 for found_dir in $rpathdirs; do
10096 acl_save_libdir="$libdir"
10097 libdir="$found_dir"
10098 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10099 libdir="$acl_save_libdir"
10100 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10101 done
10102 fi
10103 fi
10104 if test "X$ltrpathdirs" != "X"; then
10105 for found_dir in $ltrpathdirs; do
10106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10107 done
10108 fi
10109
10110
10111
10112
10113
10114
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10116 printf %s "checking for GNU gettext in libintl... " >&6; }
10117 if eval test \${$gt_func_gnugettext_libintl+y}
10118 then :
10119 printf %s "(cached) " >&6
10120 else case e in #(
10121 e) gt_save_CPPFLAGS="$CPPFLAGS"
10122 CPPFLAGS="$CPPFLAGS $INCINTL"
10123 gt_save_LIBS="$LIBS"
10124 LIBS="$LIBS $LIBINTL"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10127
10128 #include <libintl.h>
10129 $gt_revision_test_code
10130 extern int _nl_msg_cat_cntr;
10131 extern
10132 #ifdef __cplusplus
10133 "C"
10134 #endif
10135 const char *_nl_expand_alias (const char *);
10136
10137 int
10138 main (void)
10139 {
10140
10141 bindtextdomain ("", "");
10142 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10143
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_link "$LINENO"
10149 then :
10150 eval "$gt_func_gnugettext_libintl=yes"
10151 else case e in #(
10152 e) eval "$gt_func_gnugettext_libintl=no" ;;
10153 esac
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10156 conftest$ac_exeext conftest.$ac_ext
10157 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10158 LIBS="$LIBS $LIBICONV"
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161
10162 #include <libintl.h>
10163 $gt_revision_test_code
10164 extern int _nl_msg_cat_cntr;
10165 extern
10166 #ifdef __cplusplus
10167 "C"
10168 #endif
10169 const char *_nl_expand_alias (const char *);
10170
10171 int
10172 main (void)
10173 {
10174
10175 bindtextdomain ("", "");
10176 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10177
10178 ;
10179 return 0;
10180 }
10181 _ACEOF
10182 if ac_fn_c_try_link "$LINENO"
10183 then :
10184 LIBINTL="$LIBINTL $LIBICONV"
10185 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10186 eval "$gt_func_gnugettext_libintl=yes"
10187
10188 fi
10189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10190 conftest$ac_exeext conftest.$ac_ext
10191 fi
10192 CPPFLAGS="$gt_save_CPPFLAGS"
10193 LIBS="$gt_save_LIBS" ;;
10194 esac
10195 fi
10196 eval ac_res=\$$gt_func_gnugettext_libintl
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10198 printf "%s\n" "$ac_res" >&6; }
10199 fi
10200
10201 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10202 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10203 && test "$PACKAGE" != gettext-runtime \
10204 && test "$PACKAGE" != gettext-tools; }; then
10205 gt_use_preinstalled_gnugettext=yes
10206 else
10207 LIBINTL=
10208 LTLIBINTL=
10209 INCINTL=
10210 fi
10211
10212
10213
10214 if test -n "$INTL_MACOSX_LIBS"; then
10215 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10216 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10217 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10218 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10219 fi
10220 fi
10221
10222 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10223 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10224
10225 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10226
10227 else
10228 USE_NLS=no
10229 fi
10230 fi
10231
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10233 printf %s "checking whether to use NLS... " >&6; }
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10235 printf "%s\n" "$USE_NLS" >&6; }
10236 if test "$USE_NLS" = "yes"; then
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10238 printf %s "checking where the gettext function comes from... " >&6; }
10239 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10240 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10241 gt_source="external libintl"
10242 else
10243 gt_source="libc"
10244 fi
10245 else
10246 gt_source="included intl directory"
10247 fi
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10249 printf "%s\n" "$gt_source" >&6; }
10250 fi
10251
10252 if test "$USE_NLS" = "yes"; then
10253
10254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10255 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10257 printf %s "checking how to link with libintl... " >&6; }
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10259 printf "%s\n" "$LIBINTL" >&6; }
10260
10261 for element in $INCINTL; do
10262 haveit=
10263 for x in $CPPFLAGS; do
10264
10265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
10269 eval x=\"$x\"
10270 exec_prefix="$acl_save_exec_prefix"
10271 prefix="$acl_save_prefix"
10272
10273 if test "X$x" = "X$element"; then
10274 haveit=yes
10275 break
10276 fi
10277 done
10278 if test -z "$haveit"; then
10279 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10280 fi
10281 done
10282
10283 fi
10284
10285
10286 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10287
10288
10289 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10290
10291 fi
10292
10293 POSUB=po
10294 fi
10295
10296
10297
10298 INTLLIBS="$LIBINTL"
10299
10300
10301
10302
10303
10304
10305
10306
10307 # We want the 'PYTHON' varible to be python version 2. We also want
10308 # our custom 'PYTHON3' varible to be python version 3.
10309 #
10310 # Note that the python2/python3 code was inspired by code in the
10311 # 'abrt' configure:
10312 # <https://github.com/abrt/abrt/blob/master/configure.ac>
10313 #
10314 # First, figure out what version of python is in the executable named
10315 # 'python'. On most systems that is python version 2, but on arch
10316 # linux that is python version 3.
10317 # Extract the first word of "python", so it can be a program name with args.
10318 set dummy python; ac_word=$2
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 printf %s "checking for $ac_word... " >&6; }
10321 if test ${ac_cv_path_PYTHON_UNKNOWN+y}
10322 then :
10323 printf %s "(cached) " >&6
10324 else case e in #(
10325 e) case $PYTHON_UNKNOWN in
10326 [\\/]* | ?:[\\/]*)
10327 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
10328 ;;
10329 *)
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10332 do
10333 IFS=$as_save_IFS
10334 case $as_dir in #(((
10335 '') as_dir=./ ;;
10336 */) ;;
10337 *) as_dir=$as_dir/ ;;
10338 esac
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10341 ac_cv_path_PYTHON_UNKNOWN="$as_dir$ac_word$ac_exec_ext"
10342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345 done
10346 done
10347 IFS=$as_save_IFS
10348
10349 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
10350 ;;
10351 esac ;;
10352 esac
10353 fi
10354 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
10355 if test -n "$PYTHON_UNKNOWN"; then
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
10357 printf "%s\n" "$PYTHON_UNKNOWN" >&6; }
10358 else
10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 printf "%s\n" "no" >&6; }
10361 fi
10362
10363
10364 if test "x$PYTHON_UNKNOWN" != "xno"; then
10365 # OK, we found 'python'. What version is it?
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
10367 printf %s "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
10368 if test ${ac_cv_python_unknown_version+y}
10369 then :
10370 printf %s "(cached) " >&6
10371 else case e in #(
10372 e) ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"` ;;
10373 esac
10374 fi
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
10376 printf "%s\n" "$ac_cv_python_unknown_version" >&6; }
10377 fi
10378
10379 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
10380 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
10381 # that the m4_define happens when autoconf is run, but the
10382 # PLAIN_PYTHON_INTERPRETER variable expansion will happen when the
10383 # user runs configure.
10384 #
10385 # Note that for python2, we prefer an executable named 'python2' over
10386 # one just named 'python'.
10387 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
10388 PLAIN_PYTHON_INTERPRETER=python
10389 else
10390 PLAIN_PYTHON_INTERPRETER=python2
10391 fi
10392
10393
10394 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
10395 # version 2 only).
10396
10397
10398
10399
10400
10401
10402 if test -n "$PYTHON"; then
10403 # If the user set $PYTHON, use it and don't search something else.
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
10405 printf %s "checking whether $PYTHON version is >= 2.6... " >&6; }
10406 prog="import sys
10407 # split strings by '.' and convert to numeric. Append some zeros
10408 # because we need at least 4 digits for the hex conversion.
10409 # map returns an iterator in Python 3.0 and a list in 2.x
10410 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
10411 minverhex = 0
10412 # xrange is not present in Python 3.0 and range returns an iterator
10413 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10414 sys.exit(sys.hexversion < minverhex)"
10415 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
10416 ($PYTHON -c "$prog") >&5 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }
10420 then :
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422 printf "%s\n" "yes" >&6; }
10423 else case e in #(
10424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 printf "%s\n" "no" >&6; }
10426 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
10427 esac
10428 fi
10429 am_display_PYTHON=$PYTHON
10430 else
10431 # Otherwise, try each interpreter until we find one that satisfies
10432 # VERSION.
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
10434 printf %s "checking for a Python interpreter with version >= 2.6... " >&6; }
10435 if test ${am_cv_pathless_PYTHON+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e)
10440 for am_cv_pathless_PYTHON in python2 $PLAIN_PYTHON_INTERPRETER python2.7 python2.6 none; do
10441 test "$am_cv_pathless_PYTHON" = none && break
10442 prog="import sys
10443 # split strings by '.' and convert to numeric. Append some zeros
10444 # because we need at least 4 digits for the hex conversion.
10445 # map returns an iterator in Python 3.0 and a list in 2.x
10446 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
10447 minverhex = 0
10448 # xrange is not present in Python 3.0 and range returns an iterator
10449 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10450 sys.exit(sys.hexversion < minverhex)"
10451 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
10452 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }
10456 then :
10457 break
10458 fi
10459 done ;;
10460 esac
10461 fi
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
10463 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
10464 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
10465 if test "$am_cv_pathless_PYTHON" = none; then
10466 PYTHON=:
10467 else
10468 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
10469 set dummy $am_cv_pathless_PYTHON; ac_word=$2
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 printf %s "checking for $ac_word... " >&6; }
10472 if test ${ac_cv_path_PYTHON+y}
10473 then :
10474 printf %s "(cached) " >&6
10475 else case e in #(
10476 e) case $PYTHON in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10479 ;;
10480 *)
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484 IFS=$as_save_IFS
10485 case $as_dir in #(((
10486 '') as_dir=./ ;;
10487 */) ;;
10488 *) as_dir=$as_dir/ ;;
10489 esac
10490 for ac_exec_ext in '' $ac_executable_extensions; do
10491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10492 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
10493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10494 break 2
10495 fi
10496 done
10497 done
10498 IFS=$as_save_IFS
10499
10500 ;;
10501 esac ;;
10502 esac
10503 fi
10504 PYTHON=$ac_cv_path_PYTHON
10505 if test -n "$PYTHON"; then
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10507 printf "%s\n" "$PYTHON" >&6; }
10508 else
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 printf "%s\n" "no" >&6; }
10511 fi
10512
10513
10514 fi
10515 am_display_PYTHON=$am_cv_pathless_PYTHON
10516 fi
10517
10518
10519 if test "$PYTHON" = :; then
10520 :
10521 else
10522
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
10524 printf %s "checking for $am_display_PYTHON version... " >&6; }
10525 if test ${am_cv_python_version+y}
10526 then :
10527 printf %s "(cached) " >&6
10528 else case e in #(
10529 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
10530 esac
10531 fi
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
10533 printf "%s\n" "$am_cv_python_version" >&6; }
10534 PYTHON_VERSION=$am_cv_python_version
10535
10536
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
10538 printf %s "checking for $am_display_PYTHON platform... " >&6; }
10539 if test ${am_cv_python_platform+y}
10540 then :
10541 printf %s "(cached) " >&6
10542 else case e in #(
10543 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
10544 esac
10545 fi
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
10547 printf "%s\n" "$am_cv_python_platform" >&6; }
10548 PYTHON_PLATFORM=$am_cv_python_platform
10549
10550
10551 if test "x$prefix" = xNONE; then
10552 am__usable_prefix=$ac_default_prefix
10553 else
10554 am__usable_prefix=$prefix
10555 fi
10556
10557 # Allow user to request using sys.* values from Python,
10558 # instead of the GNU $prefix values.
10559
10560 # Check whether --with-python-sys-prefix was given.
10561 if test ${with_python_sys_prefix+y}
10562 then :
10563 withval=$with_python_sys_prefix; am_use_python_sys=:
10564 else case e in #(
10565 e) am_use_python_sys=false ;;
10566 esac
10567 fi
10568
10569
10570 # Allow user to override whatever the default Python prefix is.
10571
10572 # Check whether --with-python_prefix was given.
10573 if test ${with_python_prefix+y}
10574 then :
10575 withval=$with_python_prefix; am_python_prefix_subst=$withval
10576 am_cv_python_prefix=$withval
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
10578 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
10580 printf "%s\n" "$am_cv_python_prefix" >&6; }
10581 else case e in #(
10582 e)
10583 if $am_use_python_sys; then
10584 # using python sys.prefix value, not GNU
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
10586 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
10587 if test ${am_cv_python_prefix+y}
10588 then :
10589 printf %s "(cached) " >&6
10590 else case e in #(
10591 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
10592 esac
10593 fi
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
10595 printf "%s\n" "$am_cv_python_prefix" >&6; }
10596
10597 case $am_cv_python_prefix in
10598 $am__usable_prefix*)
10599 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
10600 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
10601 ;;
10602 *)
10603 am_python_prefix_subst=$am_cv_python_prefix
10604 ;;
10605 esac
10606 else # using GNU prefix value, not python sys.prefix
10607 am_python_prefix_subst='${prefix}'
10608 am_python_prefix=$am_python_prefix_subst
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
10610 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
10612 printf "%s\n" "$am_python_prefix" >&6; }
10613 fi ;;
10614 esac
10615 fi
10616
10617 # Substituting python_prefix_subst value.
10618 PYTHON_PREFIX=$am_python_prefix_subst
10619
10620
10621 # emacs-page Now do it all over again for Python exec_prefix, but with yet
10622 # another conditional: fall back to regular prefix if that was specified.
10623
10624 # Check whether --with-python_exec_prefix was given.
10625 if test ${with_python_exec_prefix+y}
10626 then :
10627 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
10628 am_cv_python_exec_prefix=$withval
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
10630 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10632 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10633 else case e in #(
10634 e)
10635 # no explicit --with-python_exec_prefix, but if
10636 # --with-python_prefix was given, use its value for python_exec_prefix too.
10637 if test -n "$with_python_prefix"
10638 then :
10639 am_python_exec_prefix_subst=$with_python_prefix
10640 am_cv_python_exec_prefix=$with_python_prefix
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
10642 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10644 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10645 else case e in #(
10646 e)
10647 # Set am__usable_exec_prefix whether using GNU or Python values,
10648 # since we use that variable for pyexecdir.
10649 if test "x$exec_prefix" = xNONE; then
10650 am__usable_exec_prefix=$am__usable_prefix
10651 else
10652 am__usable_exec_prefix=$exec_prefix
10653 fi
10654 #
10655 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
10657 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
10658 if test ${am_cv_python_exec_prefix+y}
10659 then :
10660 printf %s "(cached) " >&6
10661 else case e in #(
10662 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
10663 esac
10664 fi
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10666 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10667 case $am_cv_python_exec_prefix in
10668 $am__usable_exec_prefix*)
10669 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
10670 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
10671 ;;
10672 *)
10673 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
10674 ;;
10675 esac
10676 else # using GNU $exec_prefix, not python sys.exec_prefix
10677 am_python_exec_prefix_subst='${exec_prefix}'
10678 am_python_exec_prefix=$am_python_exec_prefix_subst
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
10680 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
10682 printf "%s\n" "$am_python_exec_prefix" >&6; }
10683 fi ;;
10684 esac
10685 fi ;;
10686 esac
10687 fi
10688
10689 # Substituting python_exec_prefix_subst.
10690 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
10691
10692
10693 # Factor out some code duplication into this shell variable.
10694 am_python_setup_sysconfig="\
10695 import sys
10696 # Prefer sysconfig over distutils.sysconfig, for better compatibility
10697 # with python 3.x. See automake bug#10227.
10698 try:
10699 import sysconfig
10700 except ImportError:
10701 can_use_sysconfig = 0
10702 else:
10703 can_use_sysconfig = 1
10704 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
10705 # <https://github.com/pypa/virtualenv/issues/118>
10706 try:
10707 from platform import python_implementation
10708 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
10709 can_use_sysconfig = 0
10710 except ImportError:
10711 pass" # end of am_python_setup_sysconfig
10712
10713 # More repeated code, for figuring out the installation scheme to use.
10714 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
10715 scheme = sysconfig.get_default_scheme()
10716 else:
10717 scheme = sysconfig._get_default_scheme()
10718 if scheme == 'posix_local':
10719 if '$am_py_prefix' == '/usr':
10720 scheme = 'deb_system' # should only happen during Debian package builds
10721 else:
10722 # Debian's default scheme installs to /usr/local/ but we want to
10723 # follow the prefix, as we always have.
10724 # See bugs#54412, #64837, et al.
10725 scheme = 'posix_prefix'" # end of am_python_setup_scheme
10726
10727
10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
10729 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
10730 if test ${am_cv_python_pythondir+y}
10731 then :
10732 printf %s "(cached) " >&6
10733 else case e in #(
10734 e) if test "x$am_cv_python_prefix" = x; then
10735 am_py_prefix=$am__usable_prefix
10736 else
10737 am_py_prefix=$am_cv_python_prefix
10738 fi
10739 am_cv_python_pythondir=`$PYTHON -c "
10740 $am_python_setup_sysconfig
10741 if can_use_sysconfig:
10742 try:
10743 $am_python_setup_scheme
10744 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
10745 except:
10746 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
10747 else:
10748 from distutils import sysconfig
10749 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
10750 sys.stdout.write(sitedir)"`
10751 #
10752 case $am_cv_python_pythondir in
10753 $am_py_prefix*)
10754 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10755 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
10756 ;;
10757 *)
10758 case $am_py_prefix in
10759 /usr|/System*) ;;
10760 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10761 ;;
10762 esac
10763 ;;
10764 esac
10765 ;;
10766 esac
10767 fi
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
10769 printf "%s\n" "$am_cv_python_pythondir" >&6; }
10770 pythondir=$am_cv_python_pythondir
10771
10772
10773 pkgpythondir=\${pythondir}/$PACKAGE
10774
10775
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
10777 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
10778 if test ${am_cv_python_pyexecdir+y}
10779 then :
10780 printf %s "(cached) " >&6
10781 else case e in #(
10782 e) if test "x$am_cv_python_exec_prefix" = x; then
10783 am_py_exec_prefix=$am__usable_exec_prefix
10784 else
10785 am_py_exec_prefix=$am_cv_python_exec_prefix
10786 fi
10787 am_cv_python_pyexecdir=`$PYTHON -c "
10788 $am_python_setup_sysconfig
10789 if can_use_sysconfig:
10790 try:
10791 $am_python_setup_scheme
10792 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
10793 except:
10794 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
10795 else:
10796 from distutils import sysconfig
10797 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
10798 sys.stdout.write(sitedir)"`
10799 #
10800 case $am_cv_python_pyexecdir in
10801 $am_py_exec_prefix*)
10802 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10803 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
10804 ;;
10805 *)
10806 case $am_py_exec_prefix in
10807 /usr|/System*) ;;
10808 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10809 ;;
10810 esac
10811 ;;
10812 esac
10813 ;;
10814 esac
10815 fi
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
10817 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
10818 pyexecdir=$am_cv_python_pyexecdir
10819
10820
10821 pkgpyexecdir=\${pyexecdir}/$PACKAGE
10822
10823
10824
10825 fi
10826
10827 python_basename=$(basename "$PYTHON")
10828
10829 printf "%s\n" "#define PYTHON_BASENAME \"${python_basename}\"" >>confdefs.h
10830
10831 if test "x$PYTHON" != "x:"; then
10832
10833 printf "%s\n" "#define PYTHON_EXISTS /**/" >>confdefs.h
10834
10835 fi
10836
10837 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
10838 # pyexecdir variables get sent down to the subconfigure in the
10839 # testsuite directory.
10840 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
10841
10842 # Now let's try to find python version 3.
10843 for ac_prog in python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
10844 do
10845 # Extract the first word of "$ac_prog", so it can be a program name with args.
10846 set dummy $ac_prog; ac_word=$2
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 printf %s "checking for $ac_word... " >&6; }
10849 if test ${ac_cv_path_PYTHON3+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else case e in #(
10853 e) case $PYTHON3 in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
10856 ;;
10857 *)
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10860 do
10861 IFS=$as_save_IFS
10862 case $as_dir in #(((
10863 '') as_dir=./ ;;
10864 */) ;;
10865 *) as_dir=$as_dir/ ;;
10866 esac
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10869 ac_cv_path_PYTHON3="$as_dir$ac_word$ac_exec_ext"
10870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873 done
10874 done
10875 IFS=$as_save_IFS
10876
10877 ;;
10878 esac ;;
10879 esac
10880 fi
10881 PYTHON3=$ac_cv_path_PYTHON3
10882 if test -n "$PYTHON3"; then
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
10884 printf "%s\n" "$PYTHON3" >&6; }
10885 else
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 printf "%s\n" "no" >&6; }
10888 fi
10889
10890
10891 test -n "$PYTHON3" && break
10892 done
10893 test -n "$PYTHON3" || PYTHON3=":"
10894
10895 python3_basename=$(basename "$PYTHON3")
10896
10897 printf "%s\n" "#define PYTHON3_BASENAME \"${python3_basename}\"" >>confdefs.h
10898
10899
10900 # If we found python version 3, set up the other variables for python
10901 # version 3 that AM_PATH_PYTHON sets up for python version 2.
10902 if test "x$PYTHON3" != "x:"; then
10903
10904 printf "%s\n" "#define PYTHON3_EXISTS /**/" >>confdefs.h
10905
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
10907 printf %s "checking for python3 version... " >&6; }
10908 if test ${ac_cv_python3_version+y}
10909 then :
10910 printf %s "(cached) " >&6
10911 else case e in #(
10912 e) ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"` ;;
10913 esac
10914 fi
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
10916 printf "%s\n" "$ac_cv_python3_version" >&6; }
10917 PYTHON3_VERSION=$ac_cv_python3_version
10918
10919 PYTHON3_PREFIX='${prefix}'
10920
10921 PYTHON3_EXEC_PREFIX='${exec_prefix}'
10922
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
10924 printf %s "checking for python3 platform... " >&6; }
10925 if test ${ac_cv_python3_platform+y}
10926 then :
10927 printf %s "(cached) " >&6
10928 else case e in #(
10929 e) ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"` ;;
10930 esac
10931 fi
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
10933 printf "%s\n" "$ac_cv_python3_platform" >&6; }
10934 PYTHON3_PLATFORM=$ac_cv_python3_platform
10935
10936
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
10938 printf %s "checking for python3 script directory... " >&6; }
10939 if test ${ac_cv_python3_dir+y}
10940 then :
10941 printf %s "(cached) " >&6
10942 else case e in #(
10943 e) ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"` ;;
10944 esac
10945 fi
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
10947 printf "%s\n" "$ac_cv_python3_dir" >&6; }
10948 python3dir=$ac_cv_python3_dir
10949
10950
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
10952 printf %s "checking for python3 extension module directory... " >&6; }
10953 if test ${ac_cv_py3execdir+y}
10954 then :
10955 printf %s "(cached) " >&6
10956 else case e in #(
10957 e) ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"` ;;
10958 esac
10959 fi
10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
10961 printf "%s\n" "$ac_cv_py3execdir" >&6; }
10962 py3execdir=$ac_cv_py3execdir
10963
10964 fi
10965
10966 # Make sure the python3 and py3execdir variables get sent down to
10967 # the subconfigure in the testsuite directory.
10968 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
10969
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with -Werror" >&5
10971 printf %s "checking whether to build with -Werror... " >&6; }
10972 # Check whether --enable-Werror was given.
10973 if test ${enable_Werror+y}
10974 then :
10975 enableval=$enable_Werror;
10976 fi
10977
10978 if test "${enable_Werror}" != "no"
10979 then :
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 printf "%s\n" "yes" >&6; }
10982 else case e in #(
10983 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 printf "%s\n" "no" >&6; } ;;
10985 esac
10986 fi
10987 if test "${enable_Werror}" != "no"; then
10988 Werror_TRUE=
10989 Werror_FALSE='#'
10990 else
10991 Werror_TRUE='#'
10992 Werror_FALSE=
10993 fi
10994
10995
10996 if test "${enable_prologues+set}" != set; then
10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
10998 printf %s "checking to see if prologue searching should be the default... " >&6; }
10999 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
11000 echo ' yes '
11001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11002 enable_prologues=yes
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 printf "%s\n" "yes" >&6; }
11005 else
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 printf "%s\n" "no" >&6; }
11008 fi
11009 fi
11010 # Check whether --enable-prologues was given.
11011 if test ${enable_prologues+y}
11012 then :
11013 enableval=$enable_prologues;
11014 if test "$enable_prologues" = yes; then
11015
11016 printf "%s\n" "#define ENABLE_PROLOGUES /**/" >>confdefs.h
11017
11018 fi
11019 fi
11020
11021
11022
11023 if test "${enable_sdt_probes+set}" != set; then
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
11025 printf %s "checking to see if sdt probes should be the default... " >&6; }
11026 if { echo '#if __GNUC__ < 4'
11027 echo ' yes '
11028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11029 enable_sdt_probes=no
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 printf "%s\n" "no" >&6; }
11032 else
11033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034 printf "%s\n" "yes" >&6; }
11035 fi
11036 fi
11037 # Check whether --enable-sdt-probes was given.
11038 if test ${enable_sdt_probes+y}
11039 then :
11040 enableval=$enable_sdt_probes;
11041 fi
11042
11043 if test "x$enable_sdt_probes" != xno
11044 then :
11045
11046
11047 printf "%s\n" "#define ENABLE_SDT_PROBES 1" >>confdefs.h
11048
11049
11050 fi
11051
11052
11053 ax_cxx_compile_cxx11_required=false
11054 ac_ext=cpp
11055 ac_cpp='$CXXCPP $CPPFLAGS'
11056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11059 ac_success=no
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
11061 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
11062 if test ${ax_cv_cxx_compile_cxx11+y}
11063 then :
11064 printf %s "(cached) " >&6
11065 else case e in #(
11066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068
11069
11070 // If the compiler admits that it is not ready for C++11, why torture it?
11071 // Hopefully, this will speed up the test.
11072
11073 #ifndef __cplusplus
11074
11075 #error "This is not a C++ compiler"
11076
11077 #elif __cplusplus < 201103L
11078
11079 #error "This is not a C++11 compiler"
11080
11081 #else
11082
11083 namespace cxx11
11084 {
11085
11086 namespace test_static_assert
11087 {
11088
11089 template <typename T>
11090 struct check
11091 {
11092 static_assert(sizeof(int) <= sizeof(T), "not big enough");
11093 };
11094
11095 }
11096
11097 namespace test_final_override
11098 {
11099
11100 struct Base
11101 {
11102 virtual void f() {}
11103 };
11104
11105 struct Derived : public Base
11106 {
11107 virtual void f() override {}
11108 };
11109
11110 }
11111
11112 namespace test_double_right_angle_brackets
11113 {
11114
11115 template < typename T >
11116 struct check {};
11117
11118 typedef check<void> single_type;
11119 typedef check<check<void>> double_type;
11120 typedef check<check<check<void>>> triple_type;
11121 typedef check<check<check<check<void>>>> quadruple_type;
11122
11123 }
11124
11125 namespace test_decltype
11126 {
11127
11128 int
11129 f()
11130 {
11131 int a = 1;
11132 decltype(a) b = 2;
11133 return a + b;
11134 }
11135
11136 }
11137
11138 namespace test_type_deduction
11139 {
11140
11141 template < typename T1, typename T2 >
11142 struct is_same
11143 {
11144 static const bool value = false;
11145 };
11146
11147 template < typename T >
11148 struct is_same<T, T>
11149 {
11150 static const bool value = true;
11151 };
11152
11153 template < typename T1, typename T2 >
11154 auto
11155 add(T1 a1, T2 a2) -> decltype(a1 + a2)
11156 {
11157 return a1 + a2;
11158 }
11159
11160 int
11161 test(const int c, volatile int v)
11162 {
11163 static_assert(is_same<int, decltype(0)>::value == true, "");
11164 static_assert(is_same<int, decltype(c)>::value == false, "");
11165 static_assert(is_same<int, decltype(v)>::value == false, "");
11166 auto ac = c;
11167 auto av = v;
11168 auto sumi = ac + av + 'x';
11169 auto sumf = ac + av + 1.0;
11170 static_assert(is_same<int, decltype(ac)>::value == true, "");
11171 static_assert(is_same<int, decltype(av)>::value == true, "");
11172 static_assert(is_same<int, decltype(sumi)>::value == true, "");
11173 static_assert(is_same<int, decltype(sumf)>::value == false, "");
11174 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
11175 return (sumf > 0.0) ? sumi : add(c, v);
11176 }
11177
11178 }
11179
11180 namespace test_noexcept
11181 {
11182
11183 int f() { return 0; }
11184 int g() noexcept { return 0; }
11185
11186 static_assert(noexcept(f()) == false, "");
11187 static_assert(noexcept(g()) == true, "");
11188
11189 }
11190
11191 namespace test_constexpr
11192 {
11193
11194 template < typename CharT >
11195 unsigned long constexpr
11196 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
11197 {
11198 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
11199 }
11200
11201 template < typename CharT >
11202 unsigned long constexpr
11203 strlen_c(const CharT *const s) noexcept
11204 {
11205 return strlen_c_r(s, 0UL);
11206 }
11207
11208 static_assert(strlen_c("") == 0UL, "");
11209 static_assert(strlen_c("1") == 1UL, "");
11210 static_assert(strlen_c("example") == 7UL, "");
11211 static_assert(strlen_c("another\0example") == 7UL, "");
11212
11213 }
11214
11215 namespace test_rvalue_references
11216 {
11217
11218 template < int N >
11219 struct answer
11220 {
11221 static constexpr int value = N;
11222 };
11223
11224 answer<1> f(int&) { return answer<1>(); }
11225 answer<2> f(const int&) { return answer<2>(); }
11226 answer<3> f(int&&) { return answer<3>(); }
11227
11228 void
11229 test()
11230 {
11231 int i = 0;
11232 const int c = 0;
11233 static_assert(decltype(f(i))::value == 1, "");
11234 static_assert(decltype(f(c))::value == 2, "");
11235 static_assert(decltype(f(0))::value == 3, "");
11236 }
11237
11238 }
11239
11240 namespace test_uniform_initialization
11241 {
11242
11243 struct test
11244 {
11245 static const int zero {};
11246 static const int one {1};
11247 };
11248
11249 static_assert(test::zero == 0, "");
11250 static_assert(test::one == 1, "");
11251
11252 }
11253
11254 namespace test_lambdas
11255 {
11256
11257 void
11258 test1()
11259 {
11260 auto lambda1 = [](){};
11261 auto lambda2 = lambda1;
11262 lambda1();
11263 lambda2();
11264 }
11265
11266 int
11267 test2()
11268 {
11269 auto a = [](int i, int j){ return i + j; }(1, 2);
11270 auto b = []() -> int { return '0'; }();
11271 auto c = [=](){ return a + b; }();
11272 auto d = [&](){ return c; }();
11273 auto e = [a, &b](int x) mutable {
11274 const auto identity = [](int y){ return y; };
11275 for (auto i = 0; i < a; ++i)
11276 a += b--;
11277 return x + identity(a + b);
11278 }(0);
11279 return a + b + c + d + e;
11280 }
11281
11282 int
11283 test3()
11284 {
11285 const auto nullary = [](){ return 0; };
11286 const auto unary = [](int x){ return x; };
11287 using nullary_t = decltype(nullary);
11288 using unary_t = decltype(unary);
11289 const auto higher1st = [](nullary_t f){ return f(); };
11290 const auto higher2nd = [unary](nullary_t f1){
11291 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
11292 };
11293 return higher1st(nullary) + higher2nd(nullary)(unary);
11294 }
11295
11296 }
11297
11298 namespace test_variadic_templates
11299 {
11300
11301 template <int...>
11302 struct sum;
11303
11304 template <int N0, int... N1toN>
11305 struct sum<N0, N1toN...>
11306 {
11307 static constexpr auto value = N0 + sum<N1toN...>::value;
11308 };
11309
11310 template <>
11311 struct sum<>
11312 {
11313 static constexpr auto value = 0;
11314 };
11315
11316 static_assert(sum<>::value == 0, "");
11317 static_assert(sum<1>::value == 1, "");
11318 static_assert(sum<23>::value == 23, "");
11319 static_assert(sum<1, 2>::value == 3, "");
11320 static_assert(sum<5, 5, 11>::value == 21, "");
11321 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
11322
11323 }
11324
11325 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
11326 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
11327 // because of this.
11328 namespace test_template_alias_sfinae
11329 {
11330
11331 struct foo {};
11332
11333 template<typename T>
11334 using member = typename T::member_type;
11335
11336 template<typename T>
11337 void func(...) {}
11338
11339 template<typename T>
11340 void func(member<T>*) {}
11341
11342 void test();
11343
11344 void test() { func<foo>(0); }
11345
11346 }
11347
11348 } // namespace cxx11
11349
11350 #endif // __cplusplus >= 201103L
11351
11352
11353
11354 _ACEOF
11355 if ac_fn_cxx_try_compile "$LINENO"
11356 then :
11357 ax_cv_cxx_compile_cxx11=yes
11358 else case e in #(
11359 e) ax_cv_cxx_compile_cxx11=no ;;
11360 esac
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11363 esac
11364 fi
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
11366 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
11367 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
11368 ac_success=yes
11369 fi
11370
11371
11372
11373 if test x$ac_success = xno; then
11374 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
11375 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
11377 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
11378 if eval test \${$cachevar+y}
11379 then :
11380 printf %s "(cached) " >&6
11381 else case e in #(
11382 e) ac_save_CXX="$CXX"
11383 CXX="$CXX $switch"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386
11387
11388 // If the compiler admits that it is not ready for C++11, why torture it?
11389 // Hopefully, this will speed up the test.
11390
11391 #ifndef __cplusplus
11392
11393 #error "This is not a C++ compiler"
11394
11395 #elif __cplusplus < 201103L
11396
11397 #error "This is not a C++11 compiler"
11398
11399 #else
11400
11401 namespace cxx11
11402 {
11403
11404 namespace test_static_assert
11405 {
11406
11407 template <typename T>
11408 struct check
11409 {
11410 static_assert(sizeof(int) <= sizeof(T), "not big enough");
11411 };
11412
11413 }
11414
11415 namespace test_final_override
11416 {
11417
11418 struct Base
11419 {
11420 virtual void f() {}
11421 };
11422
11423 struct Derived : public Base
11424 {
11425 virtual void f() override {}
11426 };
11427
11428 }
11429
11430 namespace test_double_right_angle_brackets
11431 {
11432
11433 template < typename T >
11434 struct check {};
11435
11436 typedef check<void> single_type;
11437 typedef check<check<void>> double_type;
11438 typedef check<check<check<void>>> triple_type;
11439 typedef check<check<check<check<void>>>> quadruple_type;
11440
11441 }
11442
11443 namespace test_decltype
11444 {
11445
11446 int
11447 f()
11448 {
11449 int a = 1;
11450 decltype(a) b = 2;
11451 return a + b;
11452 }
11453
11454 }
11455
11456 namespace test_type_deduction
11457 {
11458
11459 template < typename T1, typename T2 >
11460 struct is_same
11461 {
11462 static const bool value = false;
11463 };
11464
11465 template < typename T >
11466 struct is_same<T, T>
11467 {
11468 static const bool value = true;
11469 };
11470
11471 template < typename T1, typename T2 >
11472 auto
11473 add(T1 a1, T2 a2) -> decltype(a1 + a2)
11474 {
11475 return a1 + a2;
11476 }
11477
11478 int
11479 test(const int c, volatile int v)
11480 {
11481 static_assert(is_same<int, decltype(0)>::value == true, "");
11482 static_assert(is_same<int, decltype(c)>::value == false, "");
11483 static_assert(is_same<int, decltype(v)>::value == false, "");
11484 auto ac = c;
11485 auto av = v;
11486 auto sumi = ac + av + 'x';
11487 auto sumf = ac + av + 1.0;
11488 static_assert(is_same<int, decltype(ac)>::value == true, "");
11489 static_assert(is_same<int, decltype(av)>::value == true, "");
11490 static_assert(is_same<int, decltype(sumi)>::value == true, "");
11491 static_assert(is_same<int, decltype(sumf)>::value == false, "");
11492 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
11493 return (sumf > 0.0) ? sumi : add(c, v);
11494 }
11495
11496 }
11497
11498 namespace test_noexcept
11499 {
11500
11501 int f() { return 0; }
11502 int g() noexcept { return 0; }
11503
11504 static_assert(noexcept(f()) == false, "");
11505 static_assert(noexcept(g()) == true, "");
11506
11507 }
11508
11509 namespace test_constexpr
11510 {
11511
11512 template < typename CharT >
11513 unsigned long constexpr
11514 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
11515 {
11516 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
11517 }
11518
11519 template < typename CharT >
11520 unsigned long constexpr
11521 strlen_c(const CharT *const s) noexcept
11522 {
11523 return strlen_c_r(s, 0UL);
11524 }
11525
11526 static_assert(strlen_c("") == 0UL, "");
11527 static_assert(strlen_c("1") == 1UL, "");
11528 static_assert(strlen_c("example") == 7UL, "");
11529 static_assert(strlen_c("another\0example") == 7UL, "");
11530
11531 }
11532
11533 namespace test_rvalue_references
11534 {
11535
11536 template < int N >
11537 struct answer
11538 {
11539 static constexpr int value = N;
11540 };
11541
11542 answer<1> f(int&) { return answer<1>(); }
11543 answer<2> f(const int&) { return answer<2>(); }
11544 answer<3> f(int&&) { return answer<3>(); }
11545
11546 void
11547 test()
11548 {
11549 int i = 0;
11550 const int c = 0;
11551 static_assert(decltype(f(i))::value == 1, "");
11552 static_assert(decltype(f(c))::value == 2, "");
11553 static_assert(decltype(f(0))::value == 3, "");
11554 }
11555
11556 }
11557
11558 namespace test_uniform_initialization
11559 {
11560
11561 struct test
11562 {
11563 static const int zero {};
11564 static const int one {1};
11565 };
11566
11567 static_assert(test::zero == 0, "");
11568 static_assert(test::one == 1, "");
11569
11570 }
11571
11572 namespace test_lambdas
11573 {
11574
11575 void
11576 test1()
11577 {
11578 auto lambda1 = [](){};
11579 auto lambda2 = lambda1;
11580 lambda1();
11581 lambda2();
11582 }
11583
11584 int
11585 test2()
11586 {
11587 auto a = [](int i, int j){ return i + j; }(1, 2);
11588 auto b = []() -> int { return '0'; }();
11589 auto c = [=](){ return a + b; }();
11590 auto d = [&](){ return c; }();
11591 auto e = [a, &b](int x) mutable {
11592 const auto identity = [](int y){ return y; };
11593 for (auto i = 0; i < a; ++i)
11594 a += b--;
11595 return x + identity(a + b);
11596 }(0);
11597 return a + b + c + d + e;
11598 }
11599
11600 int
11601 test3()
11602 {
11603 const auto nullary = [](){ return 0; };
11604 const auto unary = [](int x){ return x; };
11605 using nullary_t = decltype(nullary);
11606 using unary_t = decltype(unary);
11607 const auto higher1st = [](nullary_t f){ return f(); };
11608 const auto higher2nd = [unary](nullary_t f1){
11609 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
11610 };
11611 return higher1st(nullary) + higher2nd(nullary)(unary);
11612 }
11613
11614 }
11615
11616 namespace test_variadic_templates
11617 {
11618
11619 template <int...>
11620 struct sum;
11621
11622 template <int N0, int... N1toN>
11623 struct sum<N0, N1toN...>
11624 {
11625 static constexpr auto value = N0 + sum<N1toN...>::value;
11626 };
11627
11628 template <>
11629 struct sum<>
11630 {
11631 static constexpr auto value = 0;
11632 };
11633
11634 static_assert(sum<>::value == 0, "");
11635 static_assert(sum<1>::value == 1, "");
11636 static_assert(sum<23>::value == 23, "");
11637 static_assert(sum<1, 2>::value == 3, "");
11638 static_assert(sum<5, 5, 11>::value == 21, "");
11639 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
11640
11641 }
11642
11643 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
11644 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
11645 // because of this.
11646 namespace test_template_alias_sfinae
11647 {
11648
11649 struct foo {};
11650
11651 template<typename T>
11652 using member = typename T::member_type;
11653
11654 template<typename T>
11655 void func(...) {}
11656
11657 template<typename T>
11658 void func(member<T>*) {}
11659
11660 void test();
11661
11662 void test() { func<foo>(0); }
11663
11664 }
11665
11666 } // namespace cxx11
11667
11668 #endif // __cplusplus >= 201103L
11669
11670
11671
11672 _ACEOF
11673 if ac_fn_cxx_try_compile "$LINENO"
11674 then :
11675 eval $cachevar=yes
11676 else case e in #(
11677 e) eval $cachevar=no ;;
11678 esac
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 CXX="$ac_save_CXX" ;;
11682 esac
11683 fi
11684 eval ac_res=\$$cachevar
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11686 printf "%s\n" "$ac_res" >&6; }
11687 if eval test x\$$cachevar = xyes; then
11688 CXX="$CXX $switch"
11689 ac_success=yes
11690 break
11691 fi
11692 done
11693 fi
11694 ac_ext=c
11695 ac_cpp='$CPP $CPPFLAGS'
11696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11699
11700 if test x$ax_cxx_compile_cxx11_required = xtrue; then
11701 if test x$ac_success = xno; then
11702 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
11703 fi
11704 fi
11705 if test x$ac_success = xno; then
11706 HAVE_CXX11=0
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
11708 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
11709 else
11710 HAVE_CXX11=1
11711
11712 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
11713
11714 fi
11715
11716
11717 have_cxx0x="no"
11718 if test "x$HAVE_CXX11" != x1
11719 then :
11720
11721 ac_ext=cpp
11722 ac_cpp='$CXXCPP $CPPFLAGS'
11723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11726
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
11728 printf %s "checking whether C++ compiler accepts -std=c++0x... " >&6; }
11729 if test ${ax_cv_check_cxxflags___std_cpp0x+y}
11730 then :
11731 printf %s "(cached) " >&6
11732 else case e in #(
11733 e)
11734 ax_check_save_flags=$CXXFLAGS
11735 CXXFLAGS="$CXXFLAGS -std=c++0x"
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738
11739 int
11740 main (void)
11741 {
11742
11743 ;
11744 return 0;
11745 }
11746 _ACEOF
11747 if ac_fn_cxx_try_compile "$LINENO"
11748 then :
11749 ax_cv_check_cxxflags___std_cpp0x=yes
11750 else case e in #(
11751 e) ax_cv_check_cxxflags___std_cpp0x=no ;;
11752 esac
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11755 CXXFLAGS=$ax_check_save_flags ;;
11756 esac
11757 fi
11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
11759 printf "%s\n" "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
11760 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes
11761 then :
11762
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
11764 printf "%s\n" "$as_me: Compiling with -std=c++0x" >&6;}
11765 CXX="$CXX -std=c++0x"
11766 HAVE_CXX11=1
11767 have_cxx0x="yes"
11768
11769 else case e in #(
11770 e)
11771 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
11772 ;;
11773 esac
11774 fi
11775
11776 ac_ext=c
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782
11783 fi
11784
11785 ac_ext=cpp
11786 ac_cpp='$CXXCPP $CPPFLAGS'
11787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11790
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -faligned-new" >&5
11792 printf %s "checking whether C++ compiler accepts -faligned-new... " >&6; }
11793 if test ${ax_cv_check_cxxflags___faligned_new+y}
11794 then :
11795 printf %s "(cached) " >&6
11796 else case e in #(
11797 e)
11798 ax_check_save_flags=$CXXFLAGS
11799 CXXFLAGS="$CXXFLAGS -faligned-new"
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802
11803 int
11804 main (void)
11805 {
11806
11807 ;
11808 return 0;
11809 }
11810 _ACEOF
11811 if ac_fn_cxx_try_compile "$LINENO"
11812 then :
11813 ax_cv_check_cxxflags___faligned_new=yes
11814 else case e in #(
11815 e) ax_cv_check_cxxflags___faligned_new=no ;;
11816 esac
11817 fi
11818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11819 CXXFLAGS=$ax_check_save_flags ;;
11820 esac
11821 fi
11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___faligned_new" >&5
11823 printf "%s\n" "$ax_cv_check_cxxflags___faligned_new" >&6; }
11824 if test "x$ax_cv_check_cxxflags___faligned_new" = xyes
11825 then :
11826 ALIGNEDNEW="-faligned-new"
11827 else case e in #(
11828 e) ALIGNEDNEW="" ;;
11829 esac
11830 fi
11831
11832 ac_ext=c
11833 ac_cpp='$CPP $CPPFLAGS'
11834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846 # Check whether --with-debuginfod was given.
11847 if test ${with_debuginfod+y}
11848 then :
11849 withval=$with_debuginfod;
11850 else case e in #(
11851 e) with_debuginfod=auto ;;
11852 esac
11853 fi
11854
11855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11856 printf %s "checking whether to use debuginfod... " >&6; }
11857 if expr "$with_debuginfod" : "/.*" >/dev/null; then
11858 debuginfod_LDFLAGS=-L$with_debuginfod/lib
11859 debuginfod_LIBS=-ldebuginfod
11860 debuginfod_CFLAGS=-I$with_debuginfod/include
11861 have_debuginfod=1
11862
11863 printf "%s\n" "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11864
11865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 printf "%s\n" "yes" >&6; }
11867 elif test "x$with_debuginfod" != xno; then
11868
11869 pkg_failed=no
11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debuginfod" >&5
11871 printf %s "checking for debuginfod... " >&6; }
11872
11873 if test -n "$debuginfod_CFLAGS"; then
11874 pkg_cv_debuginfod_CFLAGS="$debuginfod_CFLAGS"
11875 elif test -n "$PKG_CONFIG"; then
11876 if test -n "$PKG_CONFIG" && \
11877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11878 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11879 ac_status=$?
11880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; }; then
11882 pkg_cv_debuginfod_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11883 test "x$?" != "x0" && pkg_failed=yes
11884 else
11885 pkg_failed=yes
11886 fi
11887 else
11888 pkg_failed=untried
11889 fi
11890 if test -n "$debuginfod_LIBS"; then
11891 pkg_cv_debuginfod_LIBS="$debuginfod_LIBS"
11892 elif test -n "$PKG_CONFIG"; then
11893 if test -n "$PKG_CONFIG" && \
11894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11895 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11896 ac_status=$?
11897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; }; then
11899 pkg_cv_debuginfod_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11900 test "x$?" != "x0" && pkg_failed=yes
11901 else
11902 pkg_failed=yes
11903 fi
11904 else
11905 pkg_failed=untried
11906 fi
11907
11908
11909
11910 if test $pkg_failed = yes; then
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 printf "%s\n" "no" >&6; }
11913
11914 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11915 _pkg_short_errors_supported=yes
11916 else
11917 _pkg_short_errors_supported=no
11918 fi
11919 if test $_pkg_short_errors_supported = yes; then
11920 debuginfod_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11921 else
11922 debuginfod_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11923 fi
11924 # Put the nasty error message in config.log where it belongs
11925 echo "$debuginfod_PKG_ERRORS" >&5
11926
11927 if test "x$with_debuginfod" = xyes; then
11928 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11929 fi
11930 elif test $pkg_failed = untried; then
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 printf "%s\n" "no" >&6; }
11933 if test "x$with_debuginfod" = xyes; then
11934 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11935 fi
11936 else
11937 debuginfod_CFLAGS=$pkg_cv_debuginfod_CFLAGS
11938 debuginfod_LIBS=$pkg_cv_debuginfod_LIBS
11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940 printf "%s\n" "yes" >&6; }
11941 have_debuginfod=1
11942
11943 printf "%s\n" "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11944
11945 fi
11946 else
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 printf "%s\n" "no" >&6; }
11949 fi
11950
11951 ac_save_CFLAGS="$CFLAGS"
11952 ac_save_LDFLAGS="$LDFLAGS"
11953 CFLAGS="$CFLAGS $debuginfod_CFLAGS"
11954 LDFLAGS="$LDFLAGS $debuginfod_LDFLAGS"
11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debuginfod_find_metadata in -ldebuginfod" >&5
11956 printf %s "checking for debuginfod_find_metadata in -ldebuginfod... " >&6; }
11957 if test ${ac_cv_lib_debuginfod_debuginfod_find_metadata+y}
11958 then :
11959 printf %s "(cached) " >&6
11960 else case e in #(
11961 e) ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-ldebuginfod $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply.
11969 The 'extern "C"' is for builds by C++ compilers;
11970 although this is not generally supported in C code supporting it here
11971 has little cost and some practical benefit (sr 110532). */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char debuginfod_find_metadata (void);
11976 int
11977 main (void)
11978 {
11979 return debuginfod_find_metadata ();
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_link "$LINENO"
11985 then :
11986 ac_cv_lib_debuginfod_debuginfod_find_metadata=yes
11987 else case e in #(
11988 e) ac_cv_lib_debuginfod_debuginfod_find_metadata=no ;;
11989 esac
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS ;;
11994 esac
11995 fi
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_find_metadata" >&5
11997 printf "%s\n" "$ac_cv_lib_debuginfod_debuginfod_find_metadata" >&6; }
11998 if test "x$ac_cv_lib_debuginfod_debuginfod_find_metadata" = xyes
11999 then :
12000
12001
12002 printf "%s\n" "#define METADATA_QUERY_ENABLED 1" >>confdefs.h
12003
12004
12005 fi
12006
12007 CFLAGS="$ac_save_CFLAGS"
12008 LDFLAGS="$ac_save_LDFLAGS"
12009
12010
12011 # Check whether --enable-sqlite was given.
12012 if test ${enable_sqlite+y}
12013 then :
12014 enableval=$enable_sqlite;
12015 else case e in #(
12016 e) enable_sqlite=check ;;
12017 esac
12018 fi
12019 sqlite3_LIBS=
12020 if test "x$enable_sqlite" != xno
12021 then :
12022
12023 pkg_failed=no
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
12025 printf %s "checking for sqlite3... " >&6; }
12026
12027 if test -n "$sqlite3_CFLAGS"; then
12028 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
12029 elif test -n "$PKG_CONFIG"; then
12030 if test -n "$PKG_CONFIG" && \
12031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
12032 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
12033 ac_status=$?
12034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12035 test $ac_status = 0; }; then
12036 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
12037 test "x$?" != "x0" && pkg_failed=yes
12038 else
12039 pkg_failed=yes
12040 fi
12041 else
12042 pkg_failed=untried
12043 fi
12044 if test -n "$sqlite3_LIBS"; then
12045 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
12046 elif test -n "$PKG_CONFIG"; then
12047 if test -n "$PKG_CONFIG" && \
12048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
12049 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
12050 ac_status=$?
12051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052 test $ac_status = 0; }; then
12053 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
12054 test "x$?" != "x0" && pkg_failed=yes
12055 else
12056 pkg_failed=yes
12057 fi
12058 else
12059 pkg_failed=untried
12060 fi
12061
12062
12063
12064 if test $pkg_failed = yes; then
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 printf "%s\n" "no" >&6; }
12067
12068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12069 _pkg_short_errors_supported=yes
12070 else
12071 _pkg_short_errors_supported=no
12072 fi
12073 if test $_pkg_short_errors_supported = yes; then
12074 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
12075 else
12076 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
12077 fi
12078 # Put the nasty error message in config.log where it belongs
12079 echo "$sqlite3_PKG_ERRORS" >&5
12080
12081 if test "x$enable_sqlite" != xcheck; then
12082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12083 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12084 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
12085 See 'config.log' for more details" "$LINENO" 5; }
12086 fi
12087 elif test $pkg_failed = untried; then
12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 printf "%s\n" "no" >&6; }
12090 if test "x$enable_sqlite" != xcheck; then
12091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12093 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
12094 See 'config.log' for more details" "$LINENO" 5; }
12095 fi
12096 else
12097 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
12098 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 printf "%s\n" "yes" >&6; }
12101
12102 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
12103
12104 fi
12105 fi
12106
12107 # Check whether --enable-translator was given.
12108 if test ${enable_translator+y}
12109 then :
12110 enableval=$enable_translator;
12111 else case e in #(
12112 e) enable_translator="yes" ;;
12113 esac
12114 fi
12115
12116 if test "$enable_translator" = "yes"; then
12117 BUILD_TRANSLATOR_TRUE=
12118 BUILD_TRANSLATOR_FALSE='#'
12119 else
12120 BUILD_TRANSLATOR_TRUE='#'
12121 BUILD_TRANSLATOR_FALSE=
12122 fi
12123
12124
12125 # Check whether --enable-crash was given.
12126 if test ${enable_crash+y}
12127 then :
12128 enableval=$enable_crash; if test "$enable_crash" != "no"; then
12129 save_CPPFLAGS="$CPPFLAGS"
12130 if test "$enable_crash" != "yes"; then
12131 staplog_CPPFLAGS=-I$enable_crash
12132 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
12133
12134 fi
12135 for ac_header in crash/defs.h
12136 do :
12137 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
12138 #define NR_CPUS 256
12139
12140 "
12141 if test "x$ac_cv_header_crash_defs_h" = xyes
12142 then :
12143 printf "%s\n" "#define HAVE_CRASH_DEFS_H 1" >>confdefs.h
12144
12145 else case e in #(
12146 e) as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5 ;;
12147 esac
12148 fi
12149
12150 done
12151 CPPFLAGS="$save_CPPFLAGS"
12152 fi
12153 else case e in #(
12154 e) enable_crash="no" ;;
12155 esac
12156 fi
12157
12158 if test "$enable_crash" != "no"; then
12159 BUILD_CRASHMOD_TRUE=
12160 BUILD_CRASHMOD_FALSE='#'
12161 else
12162 BUILD_CRASHMOD_TRUE='#'
12163 BUILD_CRASHMOD_FALSE=
12164 fi
12165
12166
12167 building_docs="no"
12168 installing_prebuilt_docs="yes"
12169 # Check whether --enable-docs was given.
12170 if test ${enable_docs+y}
12171 then :
12172 enableval=$enable_docs; enable_docs=$enableval
12173 else case e in #(
12174 e) enable_docs="prebuilt" ;;
12175 esac
12176 fi
12177
12178 # Extract the first word of "latex", so it can be a program name with args.
12179 set dummy latex; ac_word=$2
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 printf %s "checking for $ac_word... " >&6; }
12182 if test ${ac_cv_prog_have_latex+y}
12183 then :
12184 printf %s "(cached) " >&6
12185 else case e in #(
12186 e) if test -n "$have_latex"; then
12187 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
12188 else
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192 IFS=$as_save_IFS
12193 case $as_dir in #(((
12194 '') as_dir=./ ;;
12195 */) ;;
12196 *) as_dir=$as_dir/ ;;
12197 esac
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_have_latex="yes"
12201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
12209 fi ;;
12210 esac
12211 fi
12212 have_latex=$ac_cv_prog_have_latex
12213 if test -n "$have_latex"; then
12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
12215 printf "%s\n" "$have_latex" >&6; }
12216 else
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 printf "%s\n" "no" >&6; }
12219 fi
12220
12221
12222 # Extract the first word of "dvips", so it can be a program name with args.
12223 set dummy dvips; ac_word=$2
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 printf %s "checking for $ac_word... " >&6; }
12226 if test ${ac_cv_prog_have_dvips+y}
12227 then :
12228 printf %s "(cached) " >&6
12229 else case e in #(
12230 e) if test -n "$have_dvips"; then
12231 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236 IFS=$as_save_IFS
12237 case $as_dir in #(((
12238 '') as_dir=./ ;;
12239 */) ;;
12240 *) as_dir=$as_dir/ ;;
12241 esac
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12244 ac_cv_prog_have_dvips="yes"
12245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12246 break 2
12247 fi
12248 done
12249 done
12250 IFS=$as_save_IFS
12251
12252 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
12253 fi ;;
12254 esac
12255 fi
12256 have_dvips=$ac_cv_prog_have_dvips
12257 if test -n "$have_dvips"; then
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
12259 printf "%s\n" "$have_dvips" >&6; }
12260 else
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 printf "%s\n" "no" >&6; }
12263 fi
12264
12265
12266 # Extract the first word of "ps2pdf", so it can be a program name with args.
12267 set dummy ps2pdf; ac_word=$2
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 printf %s "checking for $ac_word... " >&6; }
12270 if test ${ac_cv_prog_have_ps2pdf+y}
12271 then :
12272 printf %s "(cached) " >&6
12273 else case e in #(
12274 e) if test -n "$have_ps2pdf"; then
12275 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
12276 else
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12279 do
12280 IFS=$as_save_IFS
12281 case $as_dir in #(((
12282 '') as_dir=./ ;;
12283 */) ;;
12284 *) as_dir=$as_dir/ ;;
12285 esac
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12288 ac_cv_prog_have_ps2pdf="yes"
12289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292 done
12293 done
12294 IFS=$as_save_IFS
12295
12296 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
12297 fi ;;
12298 esac
12299 fi
12300 have_ps2pdf=$ac_cv_prog_have_ps2pdf
12301 if test -n "$have_ps2pdf"; then
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
12303 printf "%s\n" "$have_ps2pdf" >&6; }
12304 else
12305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 printf "%s\n" "no" >&6; }
12307 fi
12308
12309
12310 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
12311 if test "$enable_docs" = "yes"; then
12312 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
12313 fi
12314 if test "$enable_docs" = "check"; then
12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
12316 printf "%s\n" "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
12317 fi
12318 fi
12319 if test "$enable_docs" = "prebuilt"; then
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: will only install prebuilt documentation" >&5
12321 printf "%s\n" "$as_me: will only install prebuilt documentation" >&6;}
12322 fi
12323 if test "x${have_latex}${have_dvips}${have_ps2pdf}" = "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
12324 building_docs="yes"
12325 installing_prebuilt_docs="yes"
12326 fi
12327 if test "$enable_docs" = "no"; then
12328 installing_prebuilt_docs="no"
12329 fi
12330 if test "$building_docs" = "yes"; then
12331 BUILD_DOCS_TRUE=
12332 BUILD_DOCS_FALSE='#'
12333 else
12334 BUILD_DOCS_TRUE='#'
12335 BUILD_DOCS_FALSE=
12336 fi
12337
12338 if test "$installing_prebuilt_docs" = "yes"; then
12339 INSTALL_PREBUILT_DOCS_TRUE=
12340 INSTALL_PREBUILT_DOCS_FALSE='#'
12341 else
12342 INSTALL_PREBUILT_DOCS_TRUE='#'
12343 INSTALL_PREBUILT_DOCS_FALSE=
12344 fi
12345
12346
12347
12348 building_refdocs="no"
12349 # Check whether --enable-refdocs was given.
12350 if test ${enable_refdocs+y}
12351 then :
12352 enableval=$enable_refdocs; enable_refdocs=$enableval
12353 else case e in #(
12354 e) enable_refdocs="check" ;;
12355 esac
12356 fi
12357
12358 if test "$building_docs" = "no" -a "$enable_refdocs" = "yes" ; then
12359 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
12360 fi
12361 if test "$enable_refdocs" != "no" -a "${building_docs}" = "yes"; then
12362 building_refdocs="yes"
12363 fi
12364 if test "$building_refdocs" = "yes"; then
12365 BUILD_REFDOCS_TRUE=
12366 BUILD_REFDOCS_FALSE='#'
12367 else
12368 BUILD_REFDOCS_TRUE='#'
12369 BUILD_REFDOCS_FALSE=
12370 fi
12371
12372
12373 # Extract the first word of "xmlto", so it can be a program name with args.
12374 set dummy xmlto; ac_word=$2
12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 printf %s "checking for $ac_word... " >&6; }
12377 if test ${ac_cv_prog_have_xmlto+y}
12378 then :
12379 printf %s "(cached) " >&6
12380 else case e in #(
12381 e) if test -n "$have_xmlto"; then
12382 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 case $as_dir in #(((
12389 '') as_dir=./ ;;
12390 */) ;;
12391 *) as_dir=$as_dir/ ;;
12392 esac
12393 for ac_exec_ext in '' $ac_executable_extensions; do
12394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12395 ac_cv_prog_have_xmlto="yes"
12396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399 done
12400 done
12401 IFS=$as_save_IFS
12402
12403 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
12404 fi ;;
12405 esac
12406 fi
12407 have_xmlto=$ac_cv_prog_have_xmlto
12408 if test -n "$have_xmlto"; then
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
12410 printf "%s\n" "$have_xmlto" >&6; }
12411 else
12412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 printf "%s\n" "no" >&6; }
12414 fi
12415
12416
12417 # Extract the first word of "fop", so it can be a program name with args.
12418 set dummy fop; ac_word=$2
12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 printf %s "checking for $ac_word... " >&6; }
12421 if test ${ac_cv_prog_have_fop+y}
12422 then :
12423 printf %s "(cached) " >&6
12424 else case e in #(
12425 e) if test -n "$have_fop"; then
12426 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
12427 else
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 case $as_dir in #(((
12433 '') as_dir=./ ;;
12434 */) ;;
12435 *) as_dir=$as_dir/ ;;
12436 esac
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12439 ac_cv_prog_have_fop="yes"
12440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12441 break 2
12442 fi
12443 done
12444 done
12445 IFS=$as_save_IFS
12446
12447 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
12448 fi ;;
12449 esac
12450 fi
12451 have_fop=$ac_cv_prog_have_fop
12452 if test -n "$have_fop"; then
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
12454 printf "%s\n" "$have_fop" >&6; }
12455 else
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 printf "%s\n" "no" >&6; }
12458 fi
12459
12460
12461 if test "x${have_fop}" = "xyes"; then
12462 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
12463 # hope that it works.
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
12465 printf %s "checking to see if xmlto --with-fop actually works... " >&6; }
12466 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12468 printf "%s\n" "yes" >&6; }
12469 else
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
12471 printf "%s\n" "it's dead, Jim" >&6; }
12472 have_fop="broken"
12473 fi
12474 rm -f dummy-tapsets.pdf
12475 fi
12476 if test "$have_fop" = "yes"; then
12477 HAVE_FOP_TRUE=
12478 HAVE_FOP_FALSE='#'
12479 else
12480 HAVE_FOP_TRUE='#'
12481 HAVE_FOP_FALSE=
12482 fi
12483
12484 if test "$have_xmlto" = "yes"; then
12485 HAVE_XMLTO_TRUE=
12486 HAVE_XMLTO_FALSE='#'
12487 else
12488 HAVE_XMLTO_TRUE='#'
12489 HAVE_XMLTO_FALSE=
12490 fi
12491
12492
12493 building_htmldocs="no"
12494 # Check whether --enable-htmldocs was given.
12495 if test ${enable_htmldocs+y}
12496 then :
12497 enableval=$enable_htmldocs; building_htmldocs=$enableval
12498 else case e in #(
12499 e) building_htmldocs="no" ;;
12500 esac
12501 fi
12502
12503 if test "$have_xmlto" = "no" -a "$building_htmldocs" = "yes"; then
12504 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
12505 fi
12506
12507 if test "$building_htmldocs" = "yes"; then
12508 BUILD_HTMLDOCS_TRUE=
12509 BUILD_HTMLDOCS_FALSE='#'
12510 else
12511 BUILD_HTMLDOCS_TRUE='#'
12512 BUILD_HTMLDOCS_FALSE=
12513 fi
12514
12515
12516 cat > conftest.xml << 'EOF'
12517 <?xml version="1.0" encoding="UTF-8"?>
12518 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
12519 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
12520 <book lang="en">
12521 <bookinfo><title>foo</title></bookinfo>
12522 <chapter id="logging.stp"><title>Logging Tapset</title>
12523 <refentry id="API-log"><refnamediv><refname>log</refname>
12524 <refpurpose>logging</refpurpose></refnamediv>
12525 <refsect1><title>Description</title>
12526 <para>baz</para></refsect1></refentry></chapter>
12527 </book>
12528 EOF
12529
12530 if test "x${have_xmlto}" = "xyes"; then
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
12532 printf %s "checking for xmlto --stringparam support... " >&6; }
12533 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
12534 if test $? = 0; then
12535 have_xmlto_stringparam="yes"
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12537 printf "%s\n" "yes" >&6; }
12538 else
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 printf "%s\n" "no" >&6; }
12541 fi
12542 rm -f conftest.html
12543 fi
12544 if test "$have_xmlto_stringparam" = "yes"; then
12545 XMLTO_STRINGPARAM_TRUE=
12546 XMLTO_STRINGPARAM_FALSE='#'
12547 else
12548 XMLTO_STRINGPARAM_TRUE='#'
12549 XMLTO_STRINGPARAM_FALSE=
12550 fi
12551
12552
12553 rm -f conftest.xml
12554
12555
12556 # Check whether --with-nss was given.
12557 if test ${with_nss+y}
12558 then :
12559 withval=$with_nss;
12560 fi
12561
12562
12563 if test "x$with_nss" != "xno"
12564 then :
12565
12566
12567 pkg_failed=no
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
12569 printf %s "checking for nss... " >&6; }
12570
12571 if test -n "$nss_CFLAGS"; then
12572 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
12573 elif test -n "$PKG_CONFIG"; then
12574 if test -n "$PKG_CONFIG" && \
12575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
12576 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
12577 ac_status=$?
12578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579 test $ac_status = 0; }; then
12580 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
12581 test "x$?" != "x0" && pkg_failed=yes
12582 else
12583 pkg_failed=yes
12584 fi
12585 else
12586 pkg_failed=untried
12587 fi
12588 if test -n "$nss_LIBS"; then
12589 pkg_cv_nss_LIBS="$nss_LIBS"
12590 elif test -n "$PKG_CONFIG"; then
12591 if test -n "$PKG_CONFIG" && \
12592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
12593 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
12594 ac_status=$?
12595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12596 test $ac_status = 0; }; then
12597 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
12598 test "x$?" != "x0" && pkg_failed=yes
12599 else
12600 pkg_failed=yes
12601 fi
12602 else
12603 pkg_failed=untried
12604 fi
12605
12606
12607
12608 if test $pkg_failed = yes; then
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 printf "%s\n" "no" >&6; }
12611
12612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12613 _pkg_short_errors_supported=yes
12614 else
12615 _pkg_short_errors_supported=no
12616 fi
12617 if test $_pkg_short_errors_supported = yes; then
12618 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
12619 else
12620 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
12621 fi
12622 # Put the nasty error message in config.log where it belongs
12623 echo "$nss_PKG_ERRORS" >&5
12624
12625 have_nss=no
12626 elif test $pkg_failed = untried; then
12627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 printf "%s\n" "no" >&6; }
12629 have_nss=no
12630 else
12631 nss_CFLAGS=$pkg_cv_nss_CFLAGS
12632 nss_LIBS=$pkg_cv_nss_LIBS
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634 printf "%s\n" "yes" >&6; }
12635 have_nss=yes
12636
12637 printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
12638
12639
12640 fi
12641
12642 else case e in #(
12643 e) have_nss=no ;;
12644 esac
12645 fi
12646
12647 if test "${have_nss}" = "yes"; then
12648 HAVE_NSS_TRUE=
12649 HAVE_NSS_FALSE='#'
12650 else
12651 HAVE_NSS_TRUE='#'
12652 HAVE_NSS_FALSE=
12653 fi
12654
12655
12656
12657 # Check whether --with-openssl was given.
12658 if test ${with_openssl+y}
12659 then :
12660 withval=$with_openssl;
12661 fi
12662
12663
12664 if test "x$with_openssl" != "xno"
12665 then :
12666
12667
12668 pkg_failed=no
12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
12670 printf %s "checking for openssl... " >&6; }
12671
12672 if test -n "$openssl_CFLAGS"; then
12673 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
12674 elif test -n "$PKG_CONFIG"; then
12675 if test -n "$PKG_CONFIG" && \
12676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12677 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12678 ac_status=$?
12679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680 test $ac_status = 0; }; then
12681 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
12682 test "x$?" != "x0" && pkg_failed=yes
12683 else
12684 pkg_failed=yes
12685 fi
12686 else
12687 pkg_failed=untried
12688 fi
12689 if test -n "$openssl_LIBS"; then
12690 pkg_cv_openssl_LIBS="$openssl_LIBS"
12691 elif test -n "$PKG_CONFIG"; then
12692 if test -n "$PKG_CONFIG" && \
12693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12694 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12695 ac_status=$?
12696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12697 test $ac_status = 0; }; then
12698 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
12699 test "x$?" != "x0" && pkg_failed=yes
12700 else
12701 pkg_failed=yes
12702 fi
12703 else
12704 pkg_failed=untried
12705 fi
12706
12707
12708
12709 if test $pkg_failed = yes; then
12710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 printf "%s\n" "no" >&6; }
12712
12713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12714 _pkg_short_errors_supported=yes
12715 else
12716 _pkg_short_errors_supported=no
12717 fi
12718 if test $_pkg_short_errors_supported = yes; then
12719 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
12720 else
12721 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
12722 fi
12723 # Put the nasty error message in config.log where it belongs
12724 echo "$openssl_PKG_ERRORS" >&5
12725
12726 have_openssl=no
12727 elif test $pkg_failed = untried; then
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 printf "%s\n" "no" >&6; }
12730 have_openssl=no
12731 else
12732 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
12733 openssl_LIBS=$pkg_cv_openssl_LIBS
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12735 printf "%s\n" "yes" >&6; }
12736 have_openssl=yes
12737
12738 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
12739
12740
12741 fi
12742
12743 else case e in #(
12744 e) have_openssl=no ;;
12745 esac
12746 fi
12747
12748 if test "${have_openssl}" = "yes"; then
12749 HAVE_OPENSSL_TRUE=
12750 HAVE_OPENSSL_FALSE='#'
12751 else
12752 HAVE_OPENSSL_TRUE='#'
12753 HAVE_OPENSSL_FALSE=
12754 fi
12755
12756
12757
12758 # Check whether --with-dracutstap was given.
12759 if test ${with_dracutstap+y}
12760 then :
12761 withval=$with_dracutstap;
12762 fi
12763
12764 if test "x$with_dracutstap" != "x"
12765 then :
12766 dracutstap="$with_dracutstap"
12767 else case e in #(
12768 e) dracutstap=/usr/lib/dracut/modules.d/99stap ;;
12769 esac
12770 fi
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
12772 printf "%s\n" "$as_me: using dracut module directory $dracutstap" >&6;}
12773
12774
12775
12776 # Check whether --with-dracutbindir was given.
12777 if test ${with_dracutbindir+y}
12778 then :
12779 withval=$with_dracutbindir;
12780 fi
12781
12782 if test "x$with_dracutbindir" != "x"
12783 then :
12784 dracutbindir="$with_dracutbindir"
12785 else case e in #(
12786 e) dracutbindir=/sbin ;;
12787 esac
12788 fi
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
12790 printf "%s\n" "$as_me: using dracut binary $dracutbindir" >&6;}
12791
12792
12793 # Check whether --enable-server was given.
12794 if test ${enable_server+y}
12795 then :
12796 enableval=$enable_server; enable_server=$enableval
12797 else case e in #(
12798 e) enable_server="check" ;;
12799 esac
12800 fi
12801
12802
12803 if test "$enable_server" != "no"; then
12804 if test "x${have_nss}" != "xyes"; then
12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
12806 printf "%s\n" "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
12807 fi
12808 fi
12809 if test "${have_nss}" = "yes" -a "$enable_server" != "no"; then
12810 BUILD_SERVER_TRUE=
12811 BUILD_SERVER_FALSE='#'
12812 else
12813 BUILD_SERVER_TRUE='#'
12814 BUILD_SERVER_FALSE=
12815 fi
12816
12817
12818 if test "${have_nss}" != "yes"; then
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
12820 printf "%s\n" "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
12821 fi
12822
12823
12824 # Check whether --with-avahi was given.
12825 if test ${with_avahi+y}
12826 then :
12827 withval=$with_avahi;
12828 fi
12829
12830
12831 if test "x$with_avahi" != "xno"
12832 then :
12833
12834
12835 pkg_failed=no
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
12837 printf %s "checking for avahi... " >&6; }
12838
12839 if test -n "$avahi_CFLAGS"; then
12840 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
12841 elif test -n "$PKG_CONFIG"; then
12842 if test -n "$PKG_CONFIG" && \
12843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
12844 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
12845 ac_status=$?
12846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; }; then
12848 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
12849 test "x$?" != "x0" && pkg_failed=yes
12850 else
12851 pkg_failed=yes
12852 fi
12853 else
12854 pkg_failed=untried
12855 fi
12856 if test -n "$avahi_LIBS"; then
12857 pkg_cv_avahi_LIBS="$avahi_LIBS"
12858 elif test -n "$PKG_CONFIG"; then
12859 if test -n "$PKG_CONFIG" && \
12860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
12861 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
12862 ac_status=$?
12863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }; then
12865 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
12866 test "x$?" != "x0" && pkg_failed=yes
12867 else
12868 pkg_failed=yes
12869 fi
12870 else
12871 pkg_failed=untried
12872 fi
12873
12874
12875
12876 if test $pkg_failed = yes; then
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 printf "%s\n" "no" >&6; }
12879
12880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12881 _pkg_short_errors_supported=yes
12882 else
12883 _pkg_short_errors_supported=no
12884 fi
12885 if test $_pkg_short_errors_supported = yes; then
12886 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
12887 else
12888 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
12889 fi
12890 # Put the nasty error message in config.log where it belongs
12891 echo "$avahi_PKG_ERRORS" >&5
12892
12893 have_avahi=no
12894 elif test $pkg_failed = untried; then
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 printf "%s\n" "no" >&6; }
12897 have_avahi=no
12898 else
12899 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
12900 avahi_LIBS=$pkg_cv_avahi_LIBS
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12902 printf "%s\n" "yes" >&6; }
12903 have_avahi=yes
12904
12905 printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h
12906
12907
12908 fi
12909
12910 else case e in #(
12911 e) have_avahi=no ;;
12912 esac
12913 fi
12914
12915 if test "${have_avahi}" = "yes"; then
12916 HAVE_AVAHI_TRUE=
12917 HAVE_AVAHI_FALSE='#'
12918 else
12919 HAVE_AVAHI_TRUE='#'
12920 HAVE_AVAHI_FALSE=
12921 fi
12922
12923
12924 if test "${have_avahi}" != "yes"; then
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
12926 printf "%s\n" "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
12927 fi
12928
12929
12930
12931 # Check whether --with-rpm was given.
12932 if test ${with_rpm+y}
12933 then :
12934 withval=$with_rpm;
12935 else case e in #(
12936 e) with_rpm="auto" ;;
12937 esac
12938 fi
12939
12940 if test "$with_rpm" != "no"; then
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
12942 printf %s "checking for rpmtsInitIterator in -lrpm... " >&6; }
12943 if test ${ac_cv_lib_rpm_rpmtsInitIterator+y}
12944 then :
12945 printf %s "(cached) " >&6
12946 else case e in #(
12947 e) ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-lrpm $LIBS"
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply.
12955 The 'extern "C"' is for builds by C++ compilers;
12956 although this is not generally supported in C code supporting it here
12957 has little cost and some practical benefit (sr 110532). */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char rpmtsInitIterator (void);
12962 int
12963 main (void)
12964 {
12965 return rpmtsInitIterator ();
12966 ;
12967 return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"
12971 then :
12972 ac_cv_lib_rpm_rpmtsInitIterator=yes
12973 else case e in #(
12974 e) ac_cv_lib_rpm_rpmtsInitIterator=no ;;
12975 esac
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS ;;
12980 esac
12981 fi
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
12983 printf "%s\n" "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
12984 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes
12985 then :
12986
12987
12988 printf "%s\n" "#define HAVE_LIBRPM 1" >>confdefs.h
12989
12990 stap_LIBS="$stap_LIBS -lc -lrpm"
12991 have_librpm="yes"
12992 else case e in #(
12993 e) have_librpm="no" ;;
12994 esac
12995 fi
12996
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
12998 printf %s "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
12999 if test ${ac_cv_lib_rpmdb_rpmdbNextIterator+y}
13000 then :
13001 printf %s "(cached) " >&6
13002 else case e in #(
13003 e) ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lrpmdb $LIBS"
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply.
13011 The 'extern "C"' is for builds by C++ compilers;
13012 although this is not generally supported in C code supporting it here
13013 has little cost and some practical benefit (sr 110532). */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 char rpmdbNextIterator (void);
13018 int
13019 main (void)
13020 {
13021 return rpmdbNextIterator ();
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"
13027 then :
13028 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
13029 else case e in #(
13030 e) ac_cv_lib_rpmdb_rpmdbNextIterator=no ;;
13031 esac
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13034 conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS ;;
13036 esac
13037 fi
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
13039 printf "%s\n" "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
13040 if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes
13041 then :
13042
13043 stap_LIBS="$stap_LIBS -lrpmdb"
13044 fi
13045
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
13047 printf %s "checking for rpmFreeCrypto in -lrpmio... " >&6; }
13048 if test ${ac_cv_lib_rpmio_rpmFreeCrypto+y}
13049 then :
13050 printf %s "(cached) " >&6
13051 else case e in #(
13052 e) ac_check_lib_save_LIBS=$LIBS
13053 LIBS="-lrpmio $LIBS"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply.
13060 The 'extern "C"' is for builds by C++ compilers;
13061 although this is not generally supported in C code supporting it here
13062 has little cost and some practical benefit (sr 110532). */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char rpmFreeCrypto (void);
13067 int
13068 main (void)
13069 {
13070 return rpmFreeCrypto ();
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"
13076 then :
13077 ac_cv_lib_rpmio_rpmFreeCrypto=yes
13078 else case e in #(
13079 e) ac_cv_lib_rpmio_rpmFreeCrypto=no ;;
13080 esac
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13083 conftest$ac_exeext conftest.$ac_ext
13084 LIBS=$ac_check_lib_save_LIBS ;;
13085 esac
13086 fi
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
13088 printf "%s\n" "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
13089 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes
13090 then :
13091
13092
13093 printf "%s\n" "#define HAVE_LIBRPMIO 1" >>confdefs.h
13094
13095 stap_LIBS="$stap_LIBS -lc -lrpmio"
13096 have_librpmio="yes"
13097 else case e in #(
13098 e) have_librpmio="no" ;;
13099 esac
13100 fi
13101
13102 if test "x$have_librpm" != "xyes" -a "$with_rpm" = "yes"; then
13103 as_fn_error $? "cannot find librpm" "$LINENO" 5
13104 fi
13105 if test "x$have_librpmio" != "xyes" -a "$with_rpm" = "yes"; then
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
13107 printf "%s\n" "$as_me: WARNING: cannot find librpmio" >&2;}
13108 fi
13109 fi
13110
13111 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
13112 if test "x$ac_cv_header_stdatomic_h" = xyes
13113 then :
13114 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
13115
13116 fi
13117
13118
13119 for ac_header in rpm/rpmcrypto.h
13120 do :
13121 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmcrypto.h" "ac_cv_header_rpm_rpmcrypto_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_rpm_rpmcrypto_h" = xyes
13123 then :
13124 printf "%s\n" "#define HAVE_RPM_RPMCRYPTO_H 1" >>confdefs.h
13125
13126
13127 printf "%s\n" "#define HAVE_RPMCRYPTO_H 1" >>confdefs.h
13128
13129 have_rpmcrypto_h=yes
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: separate rpm/rpmcrypto.h" >&5
13131 printf "%s\n" "$as_me: separate rpm/rpmcrypto.h" >&6;}
13132 fi
13133
13134 done
13135
13136 LIBS_no_readline=$LIBS
13137
13138 have_libreadline="no"
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
13140 printf %s "checking how to link readline libs... " >&6; }
13141 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
13142 if test -z "$libtermcap"; then
13143 READLINE_LIBS="-lreadline"
13144 else
13145 READLINE_LIBS="-lreadline -l$libtermcap"
13146 fi
13147 LIBS="$READLINE_LIBS $LIBS_no_readline"
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply.
13154 The 'extern "C"' is for builds by C++ compilers;
13155 although this is not generally supported in C code supporting it here
13156 has little cost and some practical benefit (sr 110532). */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char readline (void);
13161 int
13162 main (void)
13163 {
13164 return readline ();
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"
13170 then :
13171 have_libreadline="yes"
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13174 conftest$ac_exeext conftest.$ac_ext
13175 if test "$have_libreadline" = "yes"; then
13176 break
13177 fi
13178 done
13179 if test "$have_libreadline" = "no"; then
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
13181 printf "%s\n" "none" >&6; }
13182 READLINE_LIBS=""
13183 else
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
13185 printf "%s\n" "$READLINE_LIBS" >&6; }
13186
13187 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
13188
13189 fi
13190
13191 if test "$have_libreadline" = "yes"; then
13192 HAVE_LIBREADLINE_TRUE=
13193 HAVE_LIBREADLINE_FALSE='#'
13194 else
13195 HAVE_LIBREADLINE_TRUE='#'
13196 HAVE_LIBREADLINE_FALSE=
13197 fi
13198
13199
13200 LIBS=$LIBS_no_readline
13201
13202
13203 # Check whether --with-python3 was given.
13204 if test ${with_python3+y}
13205 then :
13206 withval=$with_python3;
13207 else case e in #(
13208 e) with_python3="auto" ;;
13209 esac
13210 fi
13211
13212 if test "x$with_python3" = "xyes"
13213 then :
13214 if test "x$PYTHON3" = "x:"
13215 then :
13216 as_fn_error $? "python version 3 is required" "$LINENO" 5
13217 else case e in #(
13218 e) preferred_python=$PYTHON3
13219 ;;
13220 esac
13221 fi
13222 elif test "x$with_python3" = "xno"
13223 then :
13224 if test "x$PYTHON" = "x:"
13225 then :
13226 as_fn_error $? "python version 2 is required" "$LINENO" 5
13227 else case e in #(
13228 e) preferred_python=$PYTHON
13229 ;;
13230 esac
13231 fi
13232 elif test "x$PYTHON3" != "x:"
13233 then :
13234 preferred_python=$PYTHON3
13235
13236 elif test "x$PYTHON" != "x:"
13237 then :
13238 preferred_python=$PYTHON
13239
13240 else case e in #(
13241 e) as_fn_error $? "neither python version 2 nor 3 found" "$LINENO" 5 ;;
13242 esac
13243 fi
13244
13245 if test $enable_translator = yes; then
13246 # Need libdwfl-capable recent elfutils http://elfutils.org/
13247 # On modern debian/ubuntu and modern elfutils, libebl has been
13248 # merged into libdw
13249 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
13250 save_LIBS="$LIBS"
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ebl_strtabinit in -lebl" >&5
13252 printf %s "checking for ebl_strtabinit in -lebl... " >&6; }
13253 if test ${ac_cv_lib_ebl_ebl_strtabinit+y}
13254 then :
13255 printf %s "(cached) " >&6
13256 else case e in #(
13257 e) ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-lebl $LIBS"
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261
13262 /* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply.
13265 The 'extern "C"' is for builds by C++ compilers;
13266 although this is not generally supported in C code supporting it here
13267 has little cost and some practical benefit (sr 110532). */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char ebl_strtabinit (void);
13272 int
13273 main (void)
13274 {
13275 return ebl_strtabinit ();
13276 ;
13277 return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"
13281 then :
13282 ac_cv_lib_ebl_ebl_strtabinit=yes
13283 else case e in #(
13284 e) ac_cv_lib_ebl_ebl_strtabinit=no ;;
13285 esac
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_lib_save_LIBS ;;
13290 esac
13291 fi
13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_strtabinit" >&5
13293 printf "%s\n" "$ac_cv_lib_ebl_ebl_strtabinit" >&6; }
13294 if test "x$ac_cv_lib_ebl_ebl_strtabinit" = xyes
13295 then :
13296 ebl_LIBS=-lebl
13297 else case e in #(
13298 e) ebl_LIBS= ;;
13299 esac
13300 fi
13301
13302 LIBS="$save_LIBS"
13303
13304 save_LIBS="$LIBS"
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
13306 printf %s "checking for dwfl_module_getsym in -ldw... " >&6; }
13307 if test ${ac_cv_lib_dw_dwfl_module_getsym+y}
13308 then :
13309 printf %s "(cached) " >&6
13310 else case e in #(
13311 e) ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply.
13319 The 'extern "C"' is for builds by C++ compilers;
13320 although this is not generally supported in C code supporting it here
13321 has little cost and some practical benefit (sr 110532). */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char dwfl_module_getsym (void);
13326 int
13327 main (void)
13328 {
13329 return dwfl_module_getsym ();
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"
13335 then :
13336 ac_cv_lib_dw_dwfl_module_getsym=yes
13337 else case e in #(
13338 e) ac_cv_lib_dw_dwfl_module_getsym=no ;;
13339 esac
13340 fi
13341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS ;;
13344 esac
13345 fi
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
13347 printf "%s\n" "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
13348 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes
13349 then :
13350 printf "%s\n" "#define HAVE_LIBDW 1" >>confdefs.h
13351
13352 LIBS="-ldw $LIBS"
13353
13354 else case e in #(
13355 e)
13356 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5 ;;
13357 esac
13358 fi
13359
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
13361 printf %s "checking for dwarf_next_unit in -ldw... " >&6; }
13362 if test ${ac_cv_lib_dw_dwarf_next_unit+y}
13363 then :
13364 printf %s "(cached) " >&6
13365 else case e in #(
13366 e) ac_check_lib_save_LIBS=$LIBS
13367 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply.
13374 The 'extern "C"' is for builds by C++ compilers;
13375 although this is not generally supported in C code supporting it here
13376 has little cost and some practical benefit (sr 110532). */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 char dwarf_next_unit (void);
13381 int
13382 main (void)
13383 {
13384 return dwarf_next_unit ();
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_link "$LINENO"
13390 then :
13391 ac_cv_lib_dw_dwarf_next_unit=yes
13392 else case e in #(
13393 e) ac_cv_lib_dw_dwarf_next_unit=no ;;
13394 esac
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13397 conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_lib_save_LIBS ;;
13399 esac
13400 fi
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
13402 printf "%s\n" "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
13403 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes
13404 then :
13405 printf "%s\n" "#define HAVE_LIBDW 1" >>confdefs.h
13406
13407 LIBS="-ldw $LIBS"
13408
13409 else case e in #(
13410 e)
13411 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5 ;;
13412 esac
13413 fi
13414
13415 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
13416 LIBS="$save_LIBS"
13417 fi
13418
13419
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
13421 printf "%s\n" "$as_me: stap will link $stap_LIBS" >&6;}
13422
13423 # staprun has more modest libelf needs
13424 save_LIBS="$LIBS"
13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
13426 printf %s "checking for elf_getshdrstrndx in -lelf... " >&6; }
13427 if test ${ac_cv_lib_elf_elf_getshdrstrndx+y}
13428 then :
13429 printf %s "(cached) " >&6
13430 else case e in #(
13431 e) ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lelf $LIBS"
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435
13436 /* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply.
13439 The 'extern "C"' is for builds by C++ compilers;
13440 although this is not generally supported in C code supporting it here
13441 has little cost and some practical benefit (sr 110532). */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char elf_getshdrstrndx (void);
13446 int
13447 main (void)
13448 {
13449 return elf_getshdrstrndx ();
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"
13455 then :
13456 ac_cv_lib_elf_elf_getshdrstrndx=yes
13457 else case e in #(
13458 e) ac_cv_lib_elf_elf_getshdrstrndx=no ;;
13459 esac
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS ;;
13464 esac
13465 fi
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
13467 printf "%s\n" "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
13468 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes
13469 then :
13470 printf "%s\n" "#define HAVE_LIBELF 1" >>confdefs.h
13471
13472 LIBS="-lelf $LIBS"
13473
13474 else case e in #(
13475 e)
13476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13477 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13478 as_fn_error $? "libelf too old, need 0.142+
13479 See 'config.log' for more details" "$LINENO" 5; } ;;
13480 esac
13481 fi
13482
13483 staprun_LIBS="$staprun_LIBS -lelf"
13484 stapbpf_LIBS="$stapbpf_LIBS -lelf"
13485 LIBS="$save_LIBS"
13486
13487
13488
13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
13490 printf "%s\n" "$as_me: staprun will link $staprun_LIBS" >&6;}
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
13492 printf "%s\n" "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
13493
13494 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
13495 # being compiled on 32-bit userspace but running against 64-bit kernels.
13496 # This is no longer necessary.
13497
13498 ac_ext=cpp
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13503
13504
13505 # PR32788 concurrency goodies
13506 ac_fn_cxx_check_header_compile "$LINENO" "boost/asio/thread_pool.hpp" "ac_cv_header_boost_asio_thread_pool_hpp" "$ac_includes_default"
13507 if test "x$ac_cv_header_boost_asio_thread_pool_hpp" = xyes
13508 then :
13509 printf "%s\n" "#define HAVE_BOOST_ASIO_THREAD_POOL_HPP 1" >>confdefs.h
13510
13511 fi
13512
13513 ac_fn_cxx_check_header_compile "$LINENO" "boost/asio/post.hpp" "ac_cv_header_boost_asio_post_hpp" "$ac_includes_default"
13514 if test "x$ac_cv_header_boost_asio_post_hpp" = xyes
13515 then :
13516 printf "%s\n" "#define HAVE_BOOST_ASIO_POST_HPP 1" >>confdefs.h
13517
13518 fi
13519
13520 # Use boost::string_ref if available; moot with PR32788
13521 # AC_CHECK_HEADERS([boost/utility/string_ref.hpp])
13522
13523 # add boost_system bits for stapdyn with dyninst 10+
13524 saved_LIBS="$LIBS"
13525 LIBS="-lboost_system $LIBS"
13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need for -lboost_system library" >&5
13527 printf %s "checking need for -lboost_system library... " >&6; }
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530
13531 #include <boost/system/system_error.hpp>
13532 int main() {
13533 boost::system::error_condition e();
13534 }
13535
13536 _ACEOF
13537 if ac_fn_cxx_try_link "$LINENO"
13538 then :
13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yup" >&5
13540 printf "%s\n" "yup" >&6; }
13541 BOOST_SYSTEM_LIB="-lboost_system"
13542
13543 else case e in #(
13544 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nope" >&5
13545 printf "%s\n" "nope" >&6; }
13546 BOOST_SYSTEM_LIB=""
13547 ;;
13548 esac
13549 fi
13550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13551 conftest$ac_exeext conftest.$ac_ext
13552 LIBS="$saved_LIBS"
13553
13554
13555 ac_ext=c
13556 ac_cpp='$CPP $CPPFLAGS'
13557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13560
13561
13562 # Check for Dyninst headers and libraries
13563
13564 # Check whether --with-dyninst was given.
13565 if test ${with_dyninst+y}
13566 then :
13567 withval=$with_dyninst;
13568 fi
13569
13570
13571 case "$with_dyninst" in
13572 no) ;;
13573 ''|yes) # Try a simple-minded distro search
13574 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
13575 old_LIBS="$LIBS"
13576 old_LDFLAGS="$LDFLAGS"
13577 old_CPPFLAGS="$CPPFLAGS"
13578 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
13579 ac_ext=cpp
13580 ac_cpp='$CXXCPP $CPPFLAGS'
13581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13584
13585 for location in /usr/lib64/dyninst /usr/lib/dyninst ${libdir}/dyninst; do
13586 LDFLAGS="-L${location}"
13587 LIBS="-lparseAPI ${BOOST_SYSTEM_LIB}"
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <dyninst/CodeSource.h>
13591 int
13592 main (void)
13593 {
13594 char *s; Dyninst::ParseAPI::SymtabCodeSource *sts = new Dyninst::ParseAPI::SymtabCodeSource(s);
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_cxx_try_link "$LINENO"
13600 then :
13601 found_DYNINST_LDFLAGS=yes
13602 else case e in #(
13603 e) found_DYNINST_LDFLAGS=no ;;
13604 esac
13605 fi
13606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13607 conftest$ac_exeext conftest.$ac_ext
13608 if test "$found_DYNINST_LDFLAGS" = "yes"; then
13609 DYNINST_LDFLAGS="$LDFLAGS"
13610 break
13611 fi
13612 done
13613 ac_ext=c
13614 ac_cpp='$CPP $CPPFLAGS'
13615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13618
13619 CPPFLAGS="$old_CPPFLAGS"
13620 LDFLAGS="$old_LDFLAGS"
13621 LIBS="$old_LIBS"
13622
13623 # Add Dyninst libraries only if they are available
13624 if test -d "/usr/include/dyninst"; then
13625 save_LIBS="$LIBS"
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TBB_runtime_interface_version in -ltbb" >&5
13627 printf %s "checking for TBB_runtime_interface_version in -ltbb... " >&6; }
13628 if test ${ac_cv_lib_tbb_TBB_runtime_interface_version+y}
13629 then :
13630 printf %s "(cached) " >&6
13631 else case e in #(
13632 e) ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-ltbb $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply.
13640 The 'extern "C"' is for builds by C++ compilers;
13641 although this is not generally supported in C code supporting it here
13642 has little cost and some practical benefit (sr 110532). */
13643 #ifdef __cplusplus
13644 extern "C"
13645 #endif
13646 char TBB_runtime_interface_version (void);
13647 int
13648 main (void)
13649 {
13650 return TBB_runtime_interface_version ();
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"
13656 then :
13657 ac_cv_lib_tbb_TBB_runtime_interface_version=yes
13658 else case e in #(
13659 e) ac_cv_lib_tbb_TBB_runtime_interface_version=no ;;
13660 esac
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS ;;
13665 esac
13666 fi
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tbb_TBB_runtime_interface_version" >&5
13668 printf "%s\n" "$ac_cv_lib_tbb_TBB_runtime_interface_version" >&6; }
13669 if test "x$ac_cv_lib_tbb_TBB_runtime_interface_version" = xyes
13670 then :
13671 tbb_LIBS=-ltbb
13672 else case e in #(
13673 e) tbb_LIBS= ;;
13674 esac
13675 fi
13676
13677 LIBS="$save_LIBS"
13678 DYNINST_LIBS="-lparseAPI -lsymtabAPI -linstructionAPI $tbb_LIBS -lcommon"
13679 fi
13680 ;;
13681 *) # Use paths in the user-specified prefix
13682 DYNINST_CXXFLAGS="-I$with_dyninst/include -I$with_dyninst/include/dyninst"
13683 DYNINST_LDFLAGS="-L$with_dyninst/lib64/dyninst -Wl,-rpath-link,$with_dyninst/lib64/dyninst"
13684 # Will assume Dyninst libraries are available as the path is specified
13685 save_LIBS="$LIBS"
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TBB_runtime_interface_version in -ltbb" >&5
13687 printf %s "checking for TBB_runtime_interface_version in -ltbb... " >&6; }
13688 if test ${ac_cv_lib_tbb_TBB_runtime_interface_version+y}
13689 then :
13690 printf %s "(cached) " >&6
13691 else case e in #(
13692 e) ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-ltbb $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply.
13700 The 'extern "C"' is for builds by C++ compilers;
13701 although this is not generally supported in C code supporting it here
13702 has little cost and some practical benefit (sr 110532). */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 char TBB_runtime_interface_version (void);
13707 int
13708 main (void)
13709 {
13710 return TBB_runtime_interface_version ();
13711 ;
13712 return 0;
13713 }
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"
13716 then :
13717 ac_cv_lib_tbb_TBB_runtime_interface_version=yes
13718 else case e in #(
13719 e) ac_cv_lib_tbb_TBB_runtime_interface_version=no ;;
13720 esac
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS ;;
13725 esac
13726 fi
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tbb_TBB_runtime_interface_version" >&5
13728 printf "%s\n" "$ac_cv_lib_tbb_TBB_runtime_interface_version" >&6; }
13729 if test "x$ac_cv_lib_tbb_TBB_runtime_interface_version" = xyes
13730 then :
13731 tbb_LIBS=-ltbb
13732 else case e in #(
13733 e) tbb_LIBS= ;;
13734 esac
13735 fi
13736
13737 LIBS="$save_LIBS"
13738 DYNINST_LIBS="-lparseAPI -lsymtabAPI -linstructionAPI $tbb_LIBS -lcommon"
13739 ;;
13740 esac
13741 if test "$with_dyninst" != "no"; then
13742 ac_ext=cpp
13743 ac_cpp='$CXXCPP $CPPFLAGS'
13744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13747
13748 old_CPPFLAGS="$CPPFLAGS"
13749 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
13751 printf "%s\n" "$as_me: checking dyninst support" >&6;}
13752 for ac_header in dyninst/BPatch_object.h
13753 do :
13754 ac_fn_cxx_check_header_compile "$LINENO" "dyninst/BPatch_object.h" "ac_cv_header_dyninst_BPatch_object_h" "$ac_includes_default"
13755 if test "x$ac_cv_header_dyninst_BPatch_object_h" = xyes
13756 then :
13757 printf "%s\n" "#define HAVE_DYNINST_BPATCH_OBJECT_H 1" >>confdefs.h
13758
13759
13760
13761
13762
13763 printf "%s\n" "#define HAVE_DYNINST 1" >>confdefs.h
13764
13765 have_dyninst=yes
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
13767 printf "%s\n" "$as_me: dyninst support available" >&6;}
13768 fi
13769
13770 done
13771 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
13772 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
13773 fi
13774 CPPFLAGS="$old_CPPFLAGS"
13775 ac_ext=c
13776 ac_cpp='$CPP $CPPFLAGS'
13777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13780
13781 fi
13782 if test "${have_dyninst}" = "yes"; then
13783 HAVE_DYNINST_TRUE=
13784 HAVE_DYNINST_FALSE='#'
13785 else
13786 HAVE_DYNINST_TRUE='#'
13787 HAVE_DYNINST_FALSE=
13788 fi
13789
13790
13791
13792
13793 # Check whether --enable-virt was given.
13794 if test ${enable_virt+y}
13795 then :
13796 enableval=$enable_virt; enable_virt=$enableval
13797 else case e in #(
13798 e) enable_virt="check" ;;
13799 esac
13800 fi
13801
13802
13803 # Check whether --enable-libvirt was given.
13804 if test ${enable_libvirt+y}
13805 then :
13806 enableval=$enable_libvirt;
13807 fi
13808
13809
13810 if test "$enable_libvirt" != no; then
13811
13812 pkg_failed=no
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
13814 printf %s "checking for libvirt... " >&6; }
13815
13816 if test -n "$libvirt_CFLAGS"; then
13817 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
13818 elif test -n "$PKG_CONFIG"; then
13819 if test -n "$PKG_CONFIG" && \
13820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
13821 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
13822 ac_status=$?
13823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13824 test $ac_status = 0; }; then
13825 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
13826 test "x$?" != "x0" && pkg_failed=yes
13827 else
13828 pkg_failed=yes
13829 fi
13830 else
13831 pkg_failed=untried
13832 fi
13833 if test -n "$libvirt_LIBS"; then
13834 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
13835 elif test -n "$PKG_CONFIG"; then
13836 if test -n "$PKG_CONFIG" && \
13837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
13838 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
13839 ac_status=$?
13840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }; then
13842 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
13843 test "x$?" != "x0" && pkg_failed=yes
13844 else
13845 pkg_failed=yes
13846 fi
13847 else
13848 pkg_failed=untried
13849 fi
13850
13851
13852
13853 if test $pkg_failed = yes; then
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 printf "%s\n" "no" >&6; }
13856
13857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13858 _pkg_short_errors_supported=yes
13859 else
13860 _pkg_short_errors_supported=no
13861 fi
13862 if test $_pkg_short_errors_supported = yes; then
13863 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
13864 else
13865 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
13866 fi
13867 # Put the nasty error message in config.log where it belongs
13868 echo "$libvirt_PKG_ERRORS" >&5
13869
13870 have_libvirt=no
13871 elif test $pkg_failed = untried; then
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873 printf "%s\n" "no" >&6; }
13874 have_libvirt=no
13875 else
13876 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
13877 libvirt_LIBS=$pkg_cv_libvirt_LIBS
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13879 printf "%s\n" "yes" >&6; }
13880
13881 have_libvirt=yes
13882
13883 printf "%s\n" "#define HAVE_LIBVIRT 1" >>confdefs.h
13884
13885
13886 fi
13887 fi
13888 if test "${have_libvirt}" = "yes"; then
13889 HAVE_LIBVIRT_TRUE=
13890 HAVE_LIBVIRT_FALSE='#'
13891 else
13892 HAVE_LIBVIRT_TRUE='#'
13893 HAVE_LIBVIRT_FALSE=
13894 fi
13895
13896
13897 pkg_failed=no
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
13899 printf %s "checking for libxml2... " >&6; }
13900
13901 if test -n "$libxml2_CFLAGS"; then
13902 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
13903 elif test -n "$PKG_CONFIG"; then
13904 if test -n "$PKG_CONFIG" && \
13905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13906 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13907 ac_status=$?
13908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909 test $ac_status = 0; }; then
13910 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
13911 test "x$?" != "x0" && pkg_failed=yes
13912 else
13913 pkg_failed=yes
13914 fi
13915 else
13916 pkg_failed=untried
13917 fi
13918 if test -n "$libxml2_LIBS"; then
13919 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
13920 elif test -n "$PKG_CONFIG"; then
13921 if test -n "$PKG_CONFIG" && \
13922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13923 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13924 ac_status=$?
13925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; }; then
13927 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
13928 test "x$?" != "x0" && pkg_failed=yes
13929 else
13930 pkg_failed=yes
13931 fi
13932 else
13933 pkg_failed=untried
13934 fi
13935
13936
13937
13938 if test $pkg_failed = yes; then
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 printf "%s\n" "no" >&6; }
13941
13942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13943 _pkg_short_errors_supported=yes
13944 else
13945 _pkg_short_errors_supported=no
13946 fi
13947 if test $_pkg_short_errors_supported = yes; then
13948 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
13949 else
13950 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
13951 fi
13952 # Put the nasty error message in config.log where it belongs
13953 echo "$libxml2_PKG_ERRORS" >&5
13954
13955 have_libxml2=no
13956 elif test $pkg_failed = untried; then
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 printf "%s\n" "no" >&6; }
13959 have_libxml2=no
13960 else
13961 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
13962 libxml2_LIBS=$pkg_cv_libxml2_LIBS
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13964 printf "%s\n" "yes" >&6; }
13965
13966 have_libxml2=yes
13967
13968 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
13969
13970
13971 fi
13972 if test "${have_libxml2}" = "yes"; then
13973 HAVE_LIBXML2_TRUE=
13974 HAVE_LIBXML2_FALSE='#'
13975 else
13976 HAVE_LIBXML2_TRUE='#'
13977 HAVE_LIBXML2_FALSE=
13978 fi
13979
13980
13981 if test "$enable_virt" != "no"; then
13982 if test "x${have_libvirt}" != "xyes"; then
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
13984 printf "%s\n" "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
13985 fi
13986 if test "x${have_libxml2}" != "xyes"; then
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
13988 printf "%s\n" "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
13989 fi
13990 fi
13991 if test "${have_libvirt}" = "yes" -a "${have_libxml2}" = "yes" -a "$enable_virt" != "no"; then
13992 BUILD_VIRT_TRUE=
13993 BUILD_VIRT_FALSE='#'
13994 else
13995 BUILD_VIRT_TRUE='#'
13996 BUILD_VIRT_FALSE=
13997 fi
13998
13999
14000
14001 # Check whether --with-python2-probes was given.
14002 if test ${with_python2_probes+y}
14003 then :
14004 withval=$with_python2_probes;
14005 fi
14006
14007 have_python2_support=no
14008 if test "x$with_python2_probes" != "xno"
14009 then :
14010 if test "x$PYTHON" != "x:"
14011 then :
14012 for ac_prog in ${python_basename}-config python2-config python-config
14013 do
14014 # Extract the first word of "$ac_prog", so it can be a program name with args.
14015 set dummy $ac_prog; ac_word=$2
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017 printf %s "checking for $ac_word... " >&6; }
14018 if test ${ac_cv_path_PYTHON_CONFIG+y}
14019 then :
14020 printf %s "(cached) " >&6
14021 else case e in #(
14022 e) case $PYTHON_CONFIG in
14023 [\\/]* | ?:[\\/]*)
14024 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
14025 ;;
14026 *)
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14029 do
14030 IFS=$as_save_IFS
14031 case $as_dir in #(((
14032 '') as_dir=./ ;;
14033 */) ;;
14034 *) as_dir=$as_dir/ ;;
14035 esac
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14038 ac_cv_path_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext"
14039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14040 break 2
14041 fi
14042 done
14043 done
14044 IFS=$as_save_IFS
14045
14046 ;;
14047 esac ;;
14048 esac
14049 fi
14050 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
14051 if test -n "$PYTHON_CONFIG"; then
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
14053 printf "%s\n" "$PYTHON_CONFIG" >&6; }
14054 else
14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 printf "%s\n" "no" >&6; }
14057 fi
14058
14059
14060 test -n "$PYTHON_CONFIG" && break
14061 done
14062
14063 fi
14064 if test "x$PYTHON_CONFIG" != "x"
14065 then :
14066 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
14067 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
14068
14069 save_CPPFLAGS="$CPPFLAGS"
14070 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
14071 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
14072 for ac_header in Python.h
14073 do :
14074 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14075 if test "x$ac_cv_header_Python_h" = xyes
14076 then :
14077 printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h
14078 have_python2_support=yes
14079 fi
14080
14081 done
14082 CPPFLAGS="$save_CPPFLAGS"
14083 fi
14084 fi
14085 if test "x$have_python2_support" = "xyes"
14086 then :
14087
14088 printf "%s\n" "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
14089
14090 else case e in #(
14091 e) if test "x$with_python2_probes" = "xyes"
14092 then :
14093 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
14094 fi
14095 ;;
14096 esac
14097 fi
14098 if test "x$have_python2_support" = "xyes"; then
14099 HAVE_PYTHON2_PROBES_TRUE=
14100 HAVE_PYTHON2_PROBES_FALSE='#'
14101 else
14102 HAVE_PYTHON2_PROBES_TRUE='#'
14103 HAVE_PYTHON2_PROBES_FALSE=
14104 fi
14105
14106
14107
14108 # Check whether --with-python3-probes was given.
14109 if test ${with_python3_probes+y}
14110 then :
14111 withval=$with_python3_probes;
14112 fi
14113
14114 have_python3_support=no
14115 if test "x$with_python3_probes" != "xno"
14116 then :
14117 if test "x$PYTHON3" != "x:"
14118 then :
14119 # Extract the first word of "${python3_basename}-config", so it can be a program name with args.
14120 set dummy ${python3_basename}-config; ac_word=$2
14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122 printf %s "checking for $ac_word... " >&6; }
14123 if test ${ac_cv_path_PYTHON3_CONFIG+y}
14124 then :
14125 printf %s "(cached) " >&6
14126 else case e in #(
14127 e) case $PYTHON3_CONFIG in
14128 [\\/]* | ?:[\\/]*)
14129 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
14130 ;;
14131 *)
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14134 do
14135 IFS=$as_save_IFS
14136 case $as_dir in #(((
14137 '') as_dir=./ ;;
14138 */) ;;
14139 *) as_dir=$as_dir/ ;;
14140 esac
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14143 ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
14144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147 done
14148 done
14149 IFS=$as_save_IFS
14150
14151 ;;
14152 esac ;;
14153 esac
14154 fi
14155 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
14156 if test -n "$PYTHON3_CONFIG"; then
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
14158 printf "%s\n" "$PYTHON3_CONFIG" >&6; }
14159 else
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 printf "%s\n" "no" >&6; }
14162 fi
14163
14164
14165 fi
14166 if test "x$PYTHON3_CONFIG" != "x"
14167 then :
14168 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
14169 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
14170
14171 save_CPPFLAGS="$CPPFLAGS"
14172 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
14173 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
14174 for ac_header in Python.h
14175 do :
14176 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14177 if test "x$ac_cv_header_Python_h" = xyes
14178 then :
14179 printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h
14180 have_python3_support=yes
14181 fi
14182
14183 done
14184 CPPFLAGS="$save_CPPFLAGS"
14185 fi
14186 fi
14187 if test "x$have_python3_support" = "xyes"
14188 then :
14189
14190 printf "%s\n" "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
14191
14192 else case e in #(
14193 e) if test "x$with_python3_probes" = "xyes"
14194 then :
14195 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
14196 fi
14197 ;;
14198 esac
14199 fi
14200 if test "x$have_python3_support" = "xyes"; then
14201 HAVE_PYTHON3_PROBES_TRUE=
14202 HAVE_PYTHON3_PROBES_FALSE='#'
14203 else
14204 HAVE_PYTHON3_PROBES_TRUE='#'
14205 HAVE_PYTHON3_PROBES_FALSE=
14206 fi
14207
14208
14209 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
14210 HAVE_PYTHON_PROBES_TRUE=
14211 HAVE_PYTHON_PROBES_FALSE='#'
14212 else
14213 HAVE_PYTHON_PROBES_TRUE='#'
14214 HAVE_PYTHON_PROBES_FALSE=
14215 fi
14216
14217
14218
14219 pkg_failed=no
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
14221 printf %s "checking for jsonc... " >&6; }
14222
14223 if test -n "$jsonc_CFLAGS"; then
14224 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
14225 elif test -n "$PKG_CONFIG"; then
14226 if test -n "$PKG_CONFIG" && \
14227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
14228 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
14229 ac_status=$?
14230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; }; then
14232 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.13" 2>/dev/null`
14233 test "x$?" != "x0" && pkg_failed=yes
14234 else
14235 pkg_failed=yes
14236 fi
14237 else
14238 pkg_failed=untried
14239 fi
14240 if test -n "$jsonc_LIBS"; then
14241 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
14242 elif test -n "$PKG_CONFIG"; then
14243 if test -n "$PKG_CONFIG" && \
14244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
14245 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
14246 ac_status=$?
14247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14248 test $ac_status = 0; }; then
14249 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.13" 2>/dev/null`
14250 test "x$?" != "x0" && pkg_failed=yes
14251 else
14252 pkg_failed=yes
14253 fi
14254 else
14255 pkg_failed=untried
14256 fi
14257
14258
14259
14260 if test $pkg_failed = yes; then
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 printf "%s\n" "no" >&6; }
14263
14264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14265 _pkg_short_errors_supported=yes
14266 else
14267 _pkg_short_errors_supported=no
14268 fi
14269 if test $_pkg_short_errors_supported = yes; then
14270 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
14271 else
14272 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
14273 fi
14274 # Put the nasty error message in config.log where it belongs
14275 echo "$jsonc_PKG_ERRORS" >&5
14276
14277 have_jsonc=no
14278 elif test $pkg_failed = untried; then
14279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280 printf "%s\n" "no" >&6; }
14281 have_jsonc=no
14282 else
14283 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
14284 jsonc_LIBS=$pkg_cv_jsonc_LIBS
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14286 printf "%s\n" "yes" >&6; }
14287 have_jsonc=yes
14288 fi
14289
14290 pkg_failed=no
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
14292 printf %s "checking for ncurses... " >&6; }
14293
14294 if test -n "$ncurses_CFLAGS"; then
14295 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
14296 elif test -n "$PKG_CONFIG"; then
14297 if test -n "$PKG_CONFIG" && \
14298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
14299 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
14300 ac_status=$?
14301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; then
14303 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
14304 test "x$?" != "x0" && pkg_failed=yes
14305 else
14306 pkg_failed=yes
14307 fi
14308 else
14309 pkg_failed=untried
14310 fi
14311 if test -n "$ncurses_LIBS"; then
14312 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
14313 elif test -n "$PKG_CONFIG"; then
14314 if test -n "$PKG_CONFIG" && \
14315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
14316 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
14317 ac_status=$?
14318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14319 test $ac_status = 0; }; then
14320 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
14321 test "x$?" != "x0" && pkg_failed=yes
14322 else
14323 pkg_failed=yes
14324 fi
14325 else
14326 pkg_failed=untried
14327 fi
14328
14329
14330
14331 if test $pkg_failed = yes; then
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 printf "%s\n" "no" >&6; }
14334
14335 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14336 _pkg_short_errors_supported=yes
14337 else
14338 _pkg_short_errors_supported=no
14339 fi
14340 if test $_pkg_short_errors_supported = yes; then
14341 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
14342 else
14343 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
14344 fi
14345 # Put the nasty error message in config.log where it belongs
14346 echo "$ncurses_PKG_ERRORS" >&5
14347
14348 have_ncurses=no
14349 elif test $pkg_failed = untried; then
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 printf "%s\n" "no" >&6; }
14352 have_ncurses=no
14353 else
14354 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
14355 ncurses_LIBS=$pkg_cv_ncurses_LIBS
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14357 printf "%s\n" "yes" >&6; }
14358 have_ncurses=yes
14359 fi
14360
14361 # Check whether --enable-monitor was given.
14362 if test ${enable_monitor+y}
14363 then :
14364 enableval=$enable_monitor;
14365 fi
14366
14367 if test "$enable_monitor" != "no"; then
14368 if test "${have_jsonc}" = "yes" -a "${have_ncurses}" = yes; then
14369
14370 printf "%s\n" "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
14371
14372 fi
14373 fi
14374 if test "${have_jsonc}" = "yes" -a "${have_ncurses}" = "yes" -a "$enable_monitor" != "no"; then
14375 HAVE_MONITOR_LIBS_TRUE=
14376 HAVE_MONITOR_LIBS_FALSE='#'
14377 else
14378 HAVE_MONITOR_LIBS_TRUE='#'
14379 HAVE_MONITOR_LIBS_FALSE=
14380 fi
14381
14382 if test "${have_jsonc}" = "yes"; then
14383
14384 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
14385
14386 fi
14387 if test "${have_jsonc}" = "yes"; then
14388 HAVE_JSON_C_TRUE=
14389 HAVE_JSON_C_FALSE='#'
14390 else
14391 HAVE_JSON_C_TRUE='#'
14392 HAVE_JSON_C_FALSE=
14393 fi
14394
14395
14396 # We require gcc >=8 since we use some more modern language features such as lambda-capture [this] and
14397 # initializer list constructors in class template argument deduction
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the language server is supported" >&5
14399 printf %s "checking to see if the language server is supported... " >&6; }
14400 if { echo '#if __GNUC__ >= 8 '
14401 echo ' yes '
14402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14403 have_language_server_support=yes
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14405 printf "%s\n" "yes" >&6; }
14406
14407 printf "%s\n" "#define HAVE_LANGUAGE_SERVER_SUPPORT 1" >>confdefs.h
14408
14409 else
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 printf "%s\n" "no" >&6; }
14412 fi
14413 if test "x$have_language_server_support" = "xyes"; then
14414 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE=
14415 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE='#'
14416 else
14417 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE='#'
14418 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE=
14419 fi
14420
14421
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
14423 printf %s "checking for assembler .section \"?\" flags support... " >&6; }
14424 if test ${stap_cv_sectionq+y}
14425 then :
14426 printf %s "(cached) " >&6
14427 else case e in #(
14428 e)
14429 old_CFLAGS="$CFLAGS"
14430 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 asm(".section .note.foo,\"?\",\"note\"\n"
14434 ".byte 1, 2, 3\n"
14435 ".previous\n"
14436 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
14437 ".byte 1\n"
14438 ".pushsection .note.foo,\"?\",\"note\"\n"
14439 ".byte 4, 5, 6\n"
14440 ".popsection\n"
14441 ".byte 2\n");
14442 _ACEOF
14443 if ac_fn_c_try_compile "$LINENO"
14444 then :
14445 stap_cv_sectionq=yes
14446 else case e in #(
14447 e) stap_cv_sectionq=no ;;
14448 esac
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14451 CFLAGS="$old_CFLAGS" ;;
14452 esac
14453 fi
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
14455 printf "%s\n" "$stap_cv_sectionq" >&6; }
14456
14457 support_section_question=0
14458 if test $stap_cv_sectionq = yes; then
14459 support_section_question=1
14460 fi
14461
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"R\" flags support" >&5
14463 printf %s "checking for assembler .section \"R\" flags support... " >&6; }
14464 if test ${stap_cv_sectionr+y}
14465 then :
14466 printf %s "(cached) " >&6
14467 else case e in #(
14468 e)
14469 old_CFLAGS="$CFLAGS"
14470 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 asm(".section .text,\"aGR\",\"progbits\",foogroup,comdat\n"
14474 ".byte 2\n");
14475 _ACEOF
14476 if ac_fn_c_try_compile "$LINENO"
14477 then :
14478 stap_cv_sectionr=yes
14479 else case e in #(
14480 e) stap_cv_sectionr=no ;;
14481 esac
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14484 CFLAGS="$old_CFLAGS" ;;
14485 esac
14486 fi
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionr" >&5
14488 printf "%s\n" "$stap_cv_sectionr" >&6; }
14489
14490 support_section_retain=0
14491 if test $stap_cv_sectionr = yes; then
14492 support_section_retain=1
14493 fi
14494
14495
14496
14497
14498 # Check whether --with-bpf was given.
14499 if test ${with_bpf+y}
14500 then :
14501 withval=$with_bpf;
14502 fi
14503
14504
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14506 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14507 if test ${ac_cv_c_undeclared_builtin_options+y}
14508 then :
14509 printf %s "(cached) " >&6
14510 else case e in #(
14511 e) ac_save_CFLAGS=$CFLAGS
14512 ac_cv_c_undeclared_builtin_options='cannot detect'
14513 for ac_arg in '' -fno-builtin; do
14514 CFLAGS="$ac_save_CFLAGS $ac_arg"
14515 # This test program should *not* compile successfully.
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518
14519 int
14520 main (void)
14521 {
14522 (void) strchr;
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"
14528 then :
14529
14530 else case e in #(
14531 e) # This test program should compile successfully.
14532 # No library function is consistently available on
14533 # freestanding implementations, so test against a dummy
14534 # declaration. Include always-available headers on the
14535 # off chance that they somehow elicit warnings.
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 #include <float.h>
14539 #include <limits.h>
14540 #include <stdarg.h>
14541 #include <stddef.h>
14542 extern void ac_decl (int, char *);
14543
14544 int
14545 main (void)
14546 {
14547 (void) ac_decl (0, (char *) 0);
14548 (void) ac_decl;
14549
14550 ;
14551 return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_c_try_compile "$LINENO"
14555 then :
14556 if test x"$ac_arg" = x
14557 then :
14558 ac_cv_c_undeclared_builtin_options='none needed'
14559 else case e in #(
14560 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14561 esac
14562 fi
14563 break
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14566 esac
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 done
14570 CFLAGS=$ac_save_CFLAGS
14571 ;;
14572 esac
14573 fi
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14575 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14576 case $ac_cv_c_undeclared_builtin_options in #(
14577 'cannot detect') :
14578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14580 as_fn_error $? "cannot make $CC report undeclared builtins
14581 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14582 'none needed') :
14583 ac_c_undeclared_builtin_options='' ;; #(
14584 *) :
14585 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14586 esac
14587
14588 if test "x$with_bpf" != "xno"
14589 then :
14590
14591 ac_fn_check_decl "$LINENO" "BPF_PROG_TYPE_PERF_EVENT" "ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" "#include <linux/bpf.h>
14592 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14593 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = xyes
14594 then :
14595 ac_have_decl=1
14596 else case e in #(
14597 e) ac_have_decl=0 ;;
14598 esac
14599 fi
14600 printf "%s\n" "#define HAVE_DECL_BPF_PROG_TYPE_PERF_EVENT $ac_have_decl" >>confdefs.h
14601 if test $ac_have_decl = 1
14602 then :
14603
14604 printf "%s\n" "#define HAVE_BPF_DECLS 1" >>confdefs.h
14605
14606 fi
14607
14608
14609 fi
14610 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = "xyes"; then
14611 HAVE_BPF_DECLS_TRUE=
14612 HAVE_BPF_DECLS_FALSE='#'
14613 else
14614 HAVE_BPF_DECLS_TRUE='#'
14615 HAVE_BPF_DECLS_FALSE=
14616 fi
14617
14618 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
14619
14620
14621 ac_fn_check_decl "$LINENO" "BPF_PROG_TYPE_RAW_TRACEPOINT" "ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" "#include <linux/bpf.h>
14622 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14623 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" = xyes
14624 then :
14625 ac_have_decl=1
14626 else case e in #(
14627 e) ac_have_decl=0 ;;
14628 esac
14629 fi
14630 printf "%s\n" "#define HAVE_DECL_BPF_PROG_TYPE_RAW_TRACEPOINT $ac_have_decl" >>confdefs.h
14631 if test $ac_have_decl = 1
14632 then :
14633
14634 printf "%s\n" "#define HAVE_BPF_PROG_TYPE_RAW_TRACEPOINT 1" >>confdefs.h
14635
14636 fi
14637
14638
14639
14640 # Check whether --with-selinux was given.
14641 if test ${with_selinux+y}
14642 then :
14643 withval=$with_selinux;
14644 fi
14645
14646
14647 if test "x$with_selinux" != "xno"
14648 then :
14649
14650
14651 pkg_failed=no
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
14653 printf %s "checking for selinux... " >&6; }
14654
14655 if test -n "$selinux_CFLAGS"; then
14656 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
14657 elif test -n "$PKG_CONFIG"; then
14658 if test -n "$PKG_CONFIG" && \
14659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14660 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14661 ac_status=$?
14662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14663 test $ac_status = 0; }; then
14664 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
14665 test "x$?" != "x0" && pkg_failed=yes
14666 else
14667 pkg_failed=yes
14668 fi
14669 else
14670 pkg_failed=untried
14671 fi
14672 if test -n "$selinux_LIBS"; then
14673 pkg_cv_selinux_LIBS="$selinux_LIBS"
14674 elif test -n "$PKG_CONFIG"; then
14675 if test -n "$PKG_CONFIG" && \
14676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14677 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14678 ac_status=$?
14679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14680 test $ac_status = 0; }; then
14681 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
14682 test "x$?" != "x0" && pkg_failed=yes
14683 else
14684 pkg_failed=yes
14685 fi
14686 else
14687 pkg_failed=untried
14688 fi
14689
14690
14691
14692 if test $pkg_failed = yes; then
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 printf "%s\n" "no" >&6; }
14695
14696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14697 _pkg_short_errors_supported=yes
14698 else
14699 _pkg_short_errors_supported=no
14700 fi
14701 if test $_pkg_short_errors_supported = yes; then
14702 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
14703 else
14704 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
14705 fi
14706 # Put the nasty error message in config.log where it belongs
14707 echo "$selinux_PKG_ERRORS" >&5
14708
14709 have_selinux=no
14710 elif test $pkg_failed = untried; then
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 printf "%s\n" "no" >&6; }
14713 have_selinux=no
14714 else
14715 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
14716 selinux_LIBS=$pkg_cv_selinux_LIBS
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14718 printf "%s\n" "yes" >&6; }
14719 have_selinux=yes
14720
14721 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
14722
14723
14724 fi
14725
14726 else case e in #(
14727 e) have_selinux=no ;;
14728 esac
14729 fi
14730
14731 if test "${have_selinux}" = "yes"; then
14732 HAVE_SELINUX_TRUE=
14733 HAVE_SELINUX_FALSE='#'
14734 else
14735 HAVE_SELINUX_TRUE='#'
14736 HAVE_SELINUX_FALSE=
14737 fi
14738
14739
14740 ac_fn_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
14741 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14742 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes
14743 then :
14744
14745 printf "%s\n" "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
14746
14747 fi
14748
14749 # Extract the first word of "javac", so it can be a program name with args.
14750 set dummy javac; ac_word=$2
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752 printf %s "checking for $ac_word... " >&6; }
14753 if test ${ac_cv_prog_have_javac+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else case e in #(
14757 e) if test -n "$have_javac"; then
14758 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14762 do
14763 IFS=$as_save_IFS
14764 case $as_dir in #(((
14765 '') as_dir=./ ;;
14766 */) ;;
14767 *) as_dir=$as_dir/ ;;
14768 esac
14769 for ac_exec_ext in '' $ac_executable_extensions; do
14770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14771 ac_cv_prog_have_javac="yes"
14772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14773 break 2
14774 fi
14775 done
14776 done
14777 IFS=$as_save_IFS
14778
14779 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
14780 fi ;;
14781 esac
14782 fi
14783 have_javac=$ac_cv_prog_have_javac
14784 if test -n "$have_javac"; then
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
14786 printf "%s\n" "$have_javac" >&6; }
14787 else
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 printf "%s\n" "no" >&6; }
14790 fi
14791
14792
14793 # Extract the first word of "jar", so it can be a program name with args.
14794 set dummy jar; ac_word=$2
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 printf %s "checking for $ac_word... " >&6; }
14797 if test ${ac_cv_prog_have_jar+y}
14798 then :
14799 printf %s "(cached) " >&6
14800 else case e in #(
14801 e) if test -n "$have_jar"; then
14802 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
14803 else
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807 IFS=$as_save_IFS
14808 case $as_dir in #(((
14809 '') as_dir=./ ;;
14810 */) ;;
14811 *) as_dir=$as_dir/ ;;
14812 esac
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14815 ac_cv_prog_have_jar="yes"
14816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14817 break 2
14818 fi
14819 done
14820 done
14821 IFS=$as_save_IFS
14822
14823 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
14824 fi ;;
14825 esac
14826 fi
14827 have_jar=$ac_cv_prog_have_jar
14828 if test -n "$have_jar"; then
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
14830 printf "%s\n" "$have_jar" >&6; }
14831 else
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 printf "%s\n" "no" >&6; }
14834 fi
14835
14836
14837 if test "$have_javac" != no -a "$have_jar" != no; then
14838 echo java found, will try to configure Byteman support
14839
14840
14841 # Check whether --with-java was given.
14842 if test ${with_java+y}
14843 then :
14844 withval=$with_java;
14845 else case e in #(
14846 e) with_java=/usr/lib/jvm/java ;;
14847 esac
14848 fi
14849
14850 if test ! -d "$with_java"; then
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: directory $with_java not found, disabling java support" >&5
14852 printf "%s\n" "$as_me: directory $with_java not found, disabling java support" >&6;}
14853 with_java=no
14854 fi
14855 JAVADIR="${with_java}"
14856 # always needed to compile
14857
14858 if test "$with_java" != "no"; then
14859
14860 printf "%s\n" "#define HAVE_JAVA \"1\"" >>confdefs.h
14861
14862 fi
14863
14864 if test "$with_java" != "no"; then
14865 HAVE_JAVA_TRUE=
14866 HAVE_JAVA_FALSE='#'
14867 else
14868 HAVE_JAVA_TRUE='#'
14869 HAVE_JAVA_FALSE=
14870 fi
14871
14872
14873 else
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
14875 printf "%s\n" "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
14876 if false; then
14877 HAVE_JAVA_TRUE=
14878 HAVE_JAVA_FALSE='#'
14879 else
14880 HAVE_JAVA_TRUE='#'
14881 HAVE_JAVA_FALSE=
14882 fi
14883
14884 fi # java+byteman support
14885
14886 ENABLE_NLS="$USE_NLS"
14887
14888 localedir="$localedir"
14889
14890 LOCALEDIR="$localedir"
14891
14892
14893
14894 # Check whether --with-extra-version was given.
14895 if test ${with_extra_version+y}
14896 then :
14897 withval=$with_extra_version;
14898 fi
14899
14900 if test "x$with_extra_version" != "xno"
14901 then :
14902
14903 stap_extra_version="$with_extra_version"
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
14905 printf "%s\n" "$as_me: Adding extra version $stap_extra_version" >&6;}
14906 else case e in #(
14907 e)
14908 stap_extra_version="" ;;
14909 esac
14910 fi
14911
14912 printf "%s\n" "#define STAP_EXTRA_VERSION \"$stap_extra_version\"" >>confdefs.h
14913
14914 STAP_EXTRA_VERSION="$stap_extra_version"
14915
14916
14917 # Check whether --enable-http was given.
14918 if test ${enable_http+y}
14919 then :
14920 enableval=$enable_http;
14921 fi
14922
14923 have_http_support=no
14924 if test "x$enable_http" = "xyes"
14925 then :
14926
14927 pkg_failed=no
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
14929 printf %s "checking for libmicrohttpd... " >&6; }
14930
14931 if test -n "$libmicrohttpd_CFLAGS"; then
14932 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
14933 elif test -n "$PKG_CONFIG"; then
14934 if test -n "$PKG_CONFIG" && \
14935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
14936 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
14937 ac_status=$?
14938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 test $ac_status = 0; }; then
14940 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
14941 test "x$?" != "x0" && pkg_failed=yes
14942 else
14943 pkg_failed=yes
14944 fi
14945 else
14946 pkg_failed=untried
14947 fi
14948 if test -n "$libmicrohttpd_LIBS"; then
14949 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
14950 elif test -n "$PKG_CONFIG"; then
14951 if test -n "$PKG_CONFIG" && \
14952 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
14953 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
14954 ac_status=$?
14955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14956 test $ac_status = 0; }; then
14957 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
14958 test "x$?" != "x0" && pkg_failed=yes
14959 else
14960 pkg_failed=yes
14961 fi
14962 else
14963 pkg_failed=untried
14964 fi
14965
14966
14967
14968 if test $pkg_failed = yes; then
14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 printf "%s\n" "no" >&6; }
14971
14972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14973 _pkg_short_errors_supported=yes
14974 else
14975 _pkg_short_errors_supported=no
14976 fi
14977 if test $_pkg_short_errors_supported = yes; then
14978 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
14979 else
14980 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
14981 fi
14982 # Put the nasty error message in config.log where it belongs
14983 echo "$libmicrohttpd_PKG_ERRORS" >&5
14984
14985 have_libmicrohttpd=false
14986 elif test $pkg_failed = untried; then
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 printf "%s\n" "no" >&6; }
14989 have_libmicrohttpd=false
14990 else
14991 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
14992 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994 printf "%s\n" "yes" >&6; }
14995 have_libmicrohttpd=true
14996 fi
14997
14998
14999 pkg_failed=no
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
15001 printf %s "checking for uuid... " >&6; }
15002
15003 if test -n "$uuid_CFLAGS"; then
15004 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
15005 elif test -n "$PKG_CONFIG"; then
15006 if test -n "$PKG_CONFIG" && \
15007 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
15008 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
15009 ac_status=$?
15010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15011 test $ac_status = 0; }; then
15012 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
15013 test "x$?" != "x0" && pkg_failed=yes
15014 else
15015 pkg_failed=yes
15016 fi
15017 else
15018 pkg_failed=untried
15019 fi
15020 if test -n "$uuid_LIBS"; then
15021 pkg_cv_uuid_LIBS="$uuid_LIBS"
15022 elif test -n "$PKG_CONFIG"; then
15023 if test -n "$PKG_CONFIG" && \
15024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
15025 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
15026 ac_status=$?
15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15028 test $ac_status = 0; }; then
15029 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
15030 test "x$?" != "x0" && pkg_failed=yes
15031 else
15032 pkg_failed=yes
15033 fi
15034 else
15035 pkg_failed=untried
15036 fi
15037
15038
15039
15040 if test $pkg_failed = yes; then
15041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042 printf "%s\n" "no" >&6; }
15043
15044 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15045 _pkg_short_errors_supported=yes
15046 else
15047 _pkg_short_errors_supported=no
15048 fi
15049 if test $_pkg_short_errors_supported = yes; then
15050 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
15051 else
15052 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
15053 fi
15054 # Put the nasty error message in config.log where it belongs
15055 echo "$uuid_PKG_ERRORS" >&5
15056
15057 have_libuuid=false
15058 elif test $pkg_failed = untried; then
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 printf "%s\n" "no" >&6; }
15061 have_libuuid=false
15062 else
15063 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
15064 uuid_LIBS=$pkg_cv_uuid_LIBS
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15066 printf "%s\n" "yes" >&6; }
15067 have_libuuid=true
15068 fi
15069
15070
15071 pkg_failed=no
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
15073 printf %s "checking for libcurl... " >&6; }
15074
15075 if test -n "$libcurl_CFLAGS"; then
15076 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
15077 elif test -n "$PKG_CONFIG"; then
15078 if test -n "$PKG_CONFIG" && \
15079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
15080 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
15081 ac_status=$?
15082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15083 test $ac_status = 0; }; then
15084 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
15085 test "x$?" != "x0" && pkg_failed=yes
15086 else
15087 pkg_failed=yes
15088 fi
15089 else
15090 pkg_failed=untried
15091 fi
15092 if test -n "$libcurl_LIBS"; then
15093 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
15094 elif test -n "$PKG_CONFIG"; then
15095 if test -n "$PKG_CONFIG" && \
15096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
15097 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
15098 ac_status=$?
15099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }; then
15101 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
15102 test "x$?" != "x0" && pkg_failed=yes
15103 else
15104 pkg_failed=yes
15105 fi
15106 else
15107 pkg_failed=untried
15108 fi
15109
15110
15111
15112 if test $pkg_failed = yes; then
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114 printf "%s\n" "no" >&6; }
15115
15116 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15117 _pkg_short_errors_supported=yes
15118 else
15119 _pkg_short_errors_supported=no
15120 fi
15121 if test $_pkg_short_errors_supported = yes; then
15122 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
15123 else
15124 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
15125 fi
15126 # Put the nasty error message in config.log where it belongs
15127 echo "$libcurl_PKG_ERRORS" >&5
15128
15129 have_libcurl=false
15130 elif test $pkg_failed = untried; then
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 printf "%s\n" "no" >&6; }
15133 have_libcurl=false
15134 else
15135 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
15136 libcurl_LIBS=$pkg_cv_libcurl_LIBS
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15138 printf "%s\n" "yes" >&6; }
15139 have_libcurl=true
15140 fi
15141
15142 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"
15143 then :
15144 have_http_support=yes
15145 fi
15146 fi
15147
15148 if test "x$have_http_support" = "xyes"
15149 then :
15150
15151 printf "%s\n" "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
15152
15153 else case e in #(
15154 e) if test "x$enable_http" = "xyes"
15155 then :
15156 as_fn_error $? "http service support requested but not found" "$LINENO" 5
15157 fi
15158 ;;
15159 esac
15160 fi
15161 if test "x$have_http_support" = "xyes"; then
15162 HAVE_HTTP_SUPPORT_TRUE=
15163 HAVE_HTTP_SUPPORT_FALSE='#'
15164 else
15165 HAVE_HTTP_SUPPORT_TRUE='#'
15166 HAVE_HTTP_SUPPORT_FALSE=
15167 fi
15168
15169
15170 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
15171 NEED_BASE_CLIENT_CODE_TRUE=
15172 NEED_BASE_CLIENT_CODE_FALSE='#'
15173 else
15174 NEED_BASE_CLIENT_CODE_TRUE='#'
15175 NEED_BASE_CLIENT_CODE_FALSE=
15176 fi
15177
15178 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"
15179 then :
15180
15181
15182 printf "%s\n" "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
15183
15184
15185 fi
15186
15187
15188 stap_prefix=$prefix
15189 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
15190
15191 printf "%s\n" "#define STAP_PREFIX \"$stap_prefix\"" >>confdefs.h
15192
15193 STAP_PREFIX="$stap_prefix"
15194
15195
15196 stap_libexecdir=$libexecdir
15197 test "$stap_libexecdir" = '${exec_prefix}/libexec' && stap_libexecdir=$stap_prefix/libexec
15198 pkglibexecdir="$stap_libexecdir/$PACKAGE"
15199
15200
15201 ac_config_headers="$ac_config_headers config.h:config.in"
15202
15203
15204
15205 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"
15206
15207
15208
15209 subdirs="$subdirs testsuite"
15210
15211 if test $enable_translator = "yes"; then
15212 ac_config_files="$ac_config_files run-stap"
15213
15214 fi
15215 ac_config_files="$ac_config_files dtrace"
15216
15217 ac_config_files="$ac_config_files stapdyn/Makefile"
15218
15219 ac_config_files="$ac_config_files java/Makefile"
15220
15221 ac_config_files="$ac_config_files java/stapbm"
15222
15223 ac_config_files="$ac_config_files java/org/systemtap/byteman/helper/HelperSDT.java"
15224
15225 ac_config_files="$ac_config_files python/Makefile"
15226
15227 ac_config_files="$ac_config_files interactive-notebook/Makefile"
15228
15229 ac_config_files="$ac_config_files interactive-notebook/stap-jupyter-container"
15230
15231 ac_config_files="$ac_config_files interactive-notebook/stap-jupyter-install"
15232
15233 ac_config_files="$ac_config_files staprun/Makefile"
15234
15235 ac_config_files="$ac_config_files stapbpf/Makefile"
15236
15237 ac_config_files="$ac_config_files httpd/Makefile httpd/docker/Makefile"
15238
15239 ac_config_files="$ac_config_files staprun/run-staprun"
15240
15241 ac_config_files="$ac_config_files staprun/guest/stapshd"
15242
15243 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
15244
15245 ac_config_files="$ac_config_files staprun/guest/[email protected]"
15246
15247 ac_config_files="$ac_config_files stap-exporter/Makefile"
15248
15249 ac_config_files="$ac_config_files stap-profile-annotate"
15250
15251
15252
15253 # Setup "shadow" directory doc/beginners that has the basic directories setup for
15254 # xmlto in one directory (through directory links if necessary).
15255 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
15256 # the src is a directory and not a file.
15257 ac_config_commands="$ac_config_commands doc/beginners"
15258
15259
15260 cat >confcache <<\_ACEOF
15261 # This file is a shell script that caches the results of configure
15262 # tests run on this system so they can be shared between configure
15263 # scripts and configure runs, see configure's option --config-cache.
15264 # It is not useful on other systems. If it contains results you don't
15265 # want to keep, you may remove or edit it.
15266 #
15267 # config.status only pays attention to the cache file if you give it
15268 # the --recheck option to rerun configure.
15269 #
15270 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15271 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15272 # following values.
15273
15274 _ACEOF
15275
15276 # The following way of writing the cache mishandles newlines in values,
15277 # but we know of no workaround that is simple, portable, and efficient.
15278 # So, we kill variables containing newlines.
15279 # Ultrix sh set writes to stderr and can't be redirected directly,
15280 # and sets the high bit in the cache file unless we assign to the vars.
15281 (
15282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15283 eval ac_val=\$$ac_var
15284 case $ac_val in #(
15285 *${as_nl}*)
15286 case $ac_var in #(
15287 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15288 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15289 esac
15290 case $ac_var in #(
15291 _ | IFS | as_nl) ;; #(
15292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15293 *) { eval $ac_var=; unset $ac_var;} ;;
15294 esac ;;
15295 esac
15296 done
15297
15298 (set) 2>&1 |
15299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15300 *${as_nl}ac_space=\ *)
15301 # 'set' does not quote correctly, so add quotes: double-quote
15302 # substitution turns \\\\ into \\, and sed turns \\ into \.
15303 sed -n \
15304 "s/'/'\\\\''/g;
15305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15306 ;; #(
15307 *)
15308 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15310 ;;
15311 esac |
15312 sort
15313 ) |
15314 sed '
15315 /^ac_cv_env_/b end
15316 t clear
15317 :clear
15318 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15319 t end
15320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15321 :end' >>confcache
15322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15323 if test -w "$cache_file"; then
15324 if test "x$cache_file" != "x/dev/null"; then
15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15326 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15327 if test ! -f "$cache_file" || test -h "$cache_file"; then
15328 cat confcache >"$cache_file"
15329 else
15330 case $cache_file in #(
15331 */* | ?:*)
15332 mv -f confcache "$cache_file"$$ &&
15333 mv -f "$cache_file"$$ "$cache_file" ;; #(
15334 *)
15335 mv -f confcache "$cache_file" ;;
15336 esac
15337 fi
15338 fi
15339 else
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15341 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15342 fi
15343 fi
15344 rm -f confcache
15345
15346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15347 # Let make expand exec_prefix.
15348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15349
15350 DEFS=-DHAVE_CONFIG_H
15351
15352 ac_libobjs=
15353 ac_ltlibobjs=
15354 U=
15355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15356 # 1. Remove the extension, and $U if already installed.
15357 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15358 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15359 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15360 # will be set to the directory where LIBOBJS objects are built.
15361 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15362 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15363 done
15364 LIBOBJS=$ac_libobjs
15365
15366 LTLIBOBJS=$ac_ltlibobjs
15367
15368
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15370 printf %s "checking that generated files are newer than configure... " >&6; }
15371 if test -n "$am_sleep_pid"; then
15372 # Hide warnings about reused PIDs.
15373 wait $am_sleep_pid 2>/dev/null
15374 fi
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15376 printf "%s\n" "done" >&6; }
15377 case $enable_silent_rules in # (((
15378 yes) AM_DEFAULT_VERBOSITY=0;;
15379 no) AM_DEFAULT_VERBOSITY=1;;
15380 esac
15381 if test $am_cv_make_support_nested_variables = yes; then
15382 AM_V='$(V)'
15383 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15384 else
15385 AM_V=$AM_DEFAULT_VERBOSITY
15386 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15387 fi
15388
15389 if test -n "$EXEEXT"; then
15390 am__EXEEXT_TRUE=
15391 am__EXEEXT_FALSE='#'
15392 else
15393 am__EXEEXT_TRUE='#'
15394 am__EXEEXT_FALSE=
15395 fi
15396
15397 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15398 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400 fi
15401 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15402 as_fn_error $? "conditional \"AMDEP\" was never defined.
15403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404 fi
15405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15406 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 fi
15409 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15410 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 fi
15413 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15414 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 fi
15417 # Check whether --enable-year2038 was given.
15418 if test ${enable_year2038+y}
15419 then :
15420 enableval=$enable_year2038;
15421 fi
15422
15423 if test -z "${Werror_TRUE}" && test -z "${Werror_FALSE}"; then
15424 as_fn_error $? "conditional \"Werror\" was never defined.
15425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15426 fi
15427 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
15428 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
15429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15430 fi
15431 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
15432 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
15433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15434 fi
15435 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
15436 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
15437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15438 fi
15439 if test -z "${INSTALL_PREBUILT_DOCS_TRUE}" && test -z "${INSTALL_PREBUILT_DOCS_FALSE}"; then
15440 as_fn_error $? "conditional \"INSTALL_PREBUILT_DOCS\" was never defined.
15441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15442 fi
15443 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
15444 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
15445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15446 fi
15447 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
15448 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
15449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15450 fi
15451 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
15452 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
15453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15454 fi
15455 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
15456 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458 fi
15459 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
15460 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462 fi
15463 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
15464 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466 fi
15467 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
15468 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
15469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15470 fi
15471 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
15472 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
15473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15474 fi
15475 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
15476 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
15477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478 fi
15479 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
15480 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
15481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15482 fi
15483 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
15484 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
15485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15486 fi
15487 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
15488 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
15489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15490 fi
15491 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
15492 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
15493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15494 fi
15495 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
15496 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
15497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15498 fi
15499 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
15500 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
15501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15502 fi
15503 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
15504 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
15505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15506 fi
15507 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
15508 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
15509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15510 fi
15511 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
15512 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
15513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15514 fi
15515 if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then
15516 as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined.
15517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15518 fi
15519 if test -z "${HAVE_LANGUAGE_SERVER_SUPPORT_TRUE}" && test -z "${HAVE_LANGUAGE_SERVER_SUPPORT_FALSE}"; then
15520 as_fn_error $? "conditional \"HAVE_LANGUAGE_SERVER_SUPPORT\" was never defined.
15521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15522 fi
15523 if test -z "${HAVE_BPF_DECLS_TRUE}" && test -z "${HAVE_BPF_DECLS_FALSE}"; then
15524 as_fn_error $? "conditional \"HAVE_BPF_DECLS\" was never defined.
15525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15526 fi
15527 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
15528 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
15529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530 fi
15531 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
15532 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
15533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15534 fi
15535 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
15536 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
15537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15538 fi
15539 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
15540 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
15541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15542 fi
15543 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
15544 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
15545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15546 fi
15547
15548 : "${CONFIG_STATUS=./config.status}"
15549 ac_write_fail=0
15550 ac_clean_files_save=$ac_clean_files
15551 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15553 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15554 as_write_fail=0
15555 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15556 #! $SHELL
15557 # Generated by $as_me.
15558 # Run this file to recreate the current configuration.
15559 # Compiler output produced by configure, useful for debugging
15560 # configure, is in config.log if it exists.
15561
15562 debug=false
15563 ac_cs_recheck=false
15564 ac_cs_silent=false
15565
15566 SHELL=\${CONFIG_SHELL-$SHELL}
15567 export SHELL
15568 _ASEOF
15569 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15570 ## -------------------- ##
15571 ## M4sh Initialization. ##
15572 ## -------------------- ##
15573
15574 # Be more Bourne compatible
15575 DUALCASE=1; export DUALCASE # for MKS sh
15576 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15577 then :
15578 emulate sh
15579 NULLCMD=:
15580 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15581 # is contrary to our usage. Disable this feature.
15582 alias -g '${1+"$@"}'='"$@"'
15583 setopt NO_GLOB_SUBST
15584 else case e in #(
15585 e) case `(set -o) 2>/dev/null` in #(
15586 *posix*) :
15587 set -o posix ;; #(
15588 *) :
15589 ;;
15590 esac ;;
15591 esac
15592 fi
15593
15594
15595
15596 # Reset variables that may have inherited troublesome values from
15597 # the environment.
15598
15599 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15600 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15601 # side effect of setting IFS to empty, thus disabling word splitting.)
15602 # Quoting is to prevent editors from complaining about space-tab.
15603 as_nl='
15604 '
15605 export as_nl
15606 IFS=" "" $as_nl"
15607
15608 PS1='$ '
15609 PS2='> '
15610 PS4='+ '
15611
15612 # Ensure predictable behavior from utilities with locale-dependent output.
15613 LC_ALL=C
15614 export LC_ALL
15615 LANGUAGE=C
15616 export LANGUAGE
15617
15618 # We cannot yet rely on "unset" to work, but we need these variables
15619 # to be unset--not just set to an empty or harmless value--now, to
15620 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15621 # also avoids known problems related to "unset" and subshell syntax
15622 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15623 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15624 do eval test \${$as_var+y} \
15625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15626 done
15627
15628 # Ensure that fds 0, 1, and 2 are open.
15629 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15630 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15631 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15632
15633 # The user is always right.
15634 if ${PATH_SEPARATOR+false} :; then
15635 PATH_SEPARATOR=:
15636 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15637 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15638 PATH_SEPARATOR=';'
15639 }
15640 fi
15641
15642
15643 # Find who we are. Look in the path if we contain no directory separator.
15644 as_myself=
15645 case $0 in #((
15646 *[\\/]* ) as_myself=$0 ;;
15647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648 for as_dir in $PATH
15649 do
15650 IFS=$as_save_IFS
15651 case $as_dir in #(((
15652 '') as_dir=./ ;;
15653 */) ;;
15654 *) as_dir=$as_dir/ ;;
15655 esac
15656 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15657 done
15658 IFS=$as_save_IFS
15659
15660 ;;
15661 esac
15662 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15663 # in which case we are not to be found in the path.
15664 if test "x$as_myself" = x; then
15665 as_myself=$0
15666 fi
15667 if test ! -f "$as_myself"; then
15668 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15669 exit 1
15670 fi
15671
15672
15673
15674 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15675 # ----------------------------------------
15676 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15677 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15678 # script with STATUS, using 1 if that was 0.
15679 as_fn_error ()
15680 {
15681 as_status=$1; test $as_status -eq 0 && as_status=1
15682 if test "$4"; then
15683 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15685 fi
15686 printf "%s\n" "$as_me: error: $2" >&2
15687 as_fn_exit $as_status
15688 } # as_fn_error
15689
15690
15691 # as_fn_set_status STATUS
15692 # -----------------------
15693 # Set $? to STATUS, without forking.
15694 as_fn_set_status ()
15695 {
15696 return $1
15697 } # as_fn_set_status
15698
15699 # as_fn_exit STATUS
15700 # -----------------
15701 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15702 as_fn_exit ()
15703 {
15704 set +e
15705 as_fn_set_status $1
15706 exit $1
15707 } # as_fn_exit
15708
15709 # as_fn_unset VAR
15710 # ---------------
15711 # Portably unset VAR.
15712 as_fn_unset ()
15713 {
15714 { eval $1=; unset $1;}
15715 }
15716 as_unset=as_fn_unset
15717
15718 # as_fn_append VAR VALUE
15719 # ----------------------
15720 # Append the text in VALUE to the end of the definition contained in VAR. Take
15721 # advantage of any shell optimizations that allow amortized linear growth over
15722 # repeated appends, instead of the typical quadratic growth present in naive
15723 # implementations.
15724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15725 then :
15726 eval 'as_fn_append ()
15727 {
15728 eval $1+=\$2
15729 }'
15730 else case e in #(
15731 e) as_fn_append ()
15732 {
15733 eval $1=\$$1\$2
15734 } ;;
15735 esac
15736 fi # as_fn_append
15737
15738 # as_fn_arith ARG...
15739 # ------------------
15740 # Perform arithmetic evaluation on the ARGs, and store the result in the
15741 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15742 # must be portable across $(()) and expr.
15743 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15744 then :
15745 eval 'as_fn_arith ()
15746 {
15747 as_val=$(( $* ))
15748 }'
15749 else case e in #(
15750 e) as_fn_arith ()
15751 {
15752 as_val=`expr "$@" || test $? -eq 1`
15753 } ;;
15754 esac
15755 fi # as_fn_arith
15756
15757
15758 if expr a : '\(a\)' >/dev/null 2>&1 &&
15759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15760 as_expr=expr
15761 else
15762 as_expr=false
15763 fi
15764
15765 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15766 as_basename=basename
15767 else
15768 as_basename=false
15769 fi
15770
15771 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15772 as_dirname=dirname
15773 else
15774 as_dirname=false
15775 fi
15776
15777 as_me=`$as_basename -- "$0" ||
15778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15779 X"$0" : 'X\(//\)$' \| \
15780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15781 printf "%s\n" X/"$0" |
15782 sed '/^.*\/\([^/][^/]*\)\/*$/{
15783 s//\1/
15784 q
15785 }
15786 /^X\/\(\/\/\)$/{
15787 s//\1/
15788 q
15789 }
15790 /^X\/\(\/\).*/{
15791 s//\1/
15792 q
15793 }
15794 s/.*/./; q'`
15795
15796 # Avoid depending upon Character Ranges.
15797 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15798 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15799 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15800 as_cr_digits='0123456789'
15801 as_cr_alnum=$as_cr_Letters$as_cr_digits
15802
15803
15804 # Determine whether it's possible to make 'echo' print without a newline.
15805 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15806 # for compatibility with existing Makefiles.
15807 ECHO_C= ECHO_N= ECHO_T=
15808 case `echo -n x` in #(((((
15809 -n*)
15810 case `echo 'xy\c'` in
15811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15812 xy) ECHO_C='\c';;
15813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15814 ECHO_T=' ';;
15815 esac;;
15816 *)
15817 ECHO_N='-n';;
15818 esac
15819
15820 # For backward compatibility with old third-party macros, we provide
15821 # the shell variables $as_echo and $as_echo_n. New code should use
15822 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15823 as_echo='printf %s\n'
15824 as_echo_n='printf %s'
15825
15826 rm -f conf$$ conf$$.exe conf$$.file
15827 if test -d conf$$.dir; then
15828 rm -f conf$$.dir/conf$$.file
15829 else
15830 rm -f conf$$.dir
15831 mkdir conf$$.dir 2>/dev/null
15832 fi
15833 if (echo >conf$$.file) 2>/dev/null; then
15834 if ln -s conf$$.file conf$$ 2>/dev/null; then
15835 as_ln_s='ln -s'
15836 # ... but there are two gotchas:
15837 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15838 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15839 # In both cases, we have to default to 'cp -pR'.
15840 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15841 as_ln_s='cp -pR'
15842 elif ln conf$$.file conf$$ 2>/dev/null; then
15843 as_ln_s=ln
15844 else
15845 as_ln_s='cp -pR'
15846 fi
15847 else
15848 as_ln_s='cp -pR'
15849 fi
15850 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15851 rmdir conf$$.dir 2>/dev/null
15852
15853
15854 # as_fn_mkdir_p
15855 # -------------
15856 # Create "$as_dir" as a directory, including parents if necessary.
15857 as_fn_mkdir_p ()
15858 {
15859
15860 case $as_dir in #(
15861 -*) as_dir=./$as_dir;;
15862 esac
15863 test -d "$as_dir" || eval $as_mkdir_p || {
15864 as_dirs=
15865 while :; do
15866 case $as_dir in #(
15867 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15868 *) as_qdir=$as_dir;;
15869 esac
15870 as_dirs="'$as_qdir' $as_dirs"
15871 as_dir=`$as_dirname -- "$as_dir" ||
15872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15873 X"$as_dir" : 'X\(//\)[^/]' \| \
15874 X"$as_dir" : 'X\(//\)$' \| \
15875 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15876 printf "%s\n" X"$as_dir" |
15877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15878 s//\1/
15879 q
15880 }
15881 /^X\(\/\/\)[^/].*/{
15882 s//\1/
15883 q
15884 }
15885 /^X\(\/\/\)$/{
15886 s//\1/
15887 q
15888 }
15889 /^X\(\/\).*/{
15890 s//\1/
15891 q
15892 }
15893 s/.*/./; q'`
15894 test -d "$as_dir" && break
15895 done
15896 test -z "$as_dirs" || eval "mkdir $as_dirs"
15897 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15898
15899
15900 } # as_fn_mkdir_p
15901 if mkdir -p . 2>/dev/null; then
15902 as_mkdir_p='mkdir -p "$as_dir"'
15903 else
15904 test -d ./-p && rmdir ./-p
15905 as_mkdir_p=false
15906 fi
15907
15908
15909 # as_fn_executable_p FILE
15910 # -----------------------
15911 # Test if FILE is an executable regular file.
15912 as_fn_executable_p ()
15913 {
15914 test -f "$1" && test -x "$1"
15915 } # as_fn_executable_p
15916 as_test_x='test -x'
15917 as_executable_p=as_fn_executable_p
15918
15919 # Sed expression to map a string onto a valid CPP name.
15920 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15921 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15922
15923 # Sed expression to map a string onto a valid variable name.
15924 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15925 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15926
15927
15928 exec 6>&1
15929 ## ----------------------------------- ##
15930 ## Main body of $CONFIG_STATUS script. ##
15931 ## ----------------------------------- ##
15932 _ASEOF
15933 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15934
15935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936 # Save the log message, to keep $0 and so on meaningful, and to
15937 # report actual input values of CONFIG_FILES etc. instead of their
15938 # values after options handling.
15939 ac_log="
15940 This file was extended by systemtap $as_me 5.4, which was
15941 generated by GNU Autoconf 2.72. Invocation command line was
15942
15943 CONFIG_FILES = $CONFIG_FILES
15944 CONFIG_HEADERS = $CONFIG_HEADERS
15945 CONFIG_LINKS = $CONFIG_LINKS
15946 CONFIG_COMMANDS = $CONFIG_COMMANDS
15947 $ $0 $@
15948
15949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15950 "
15951
15952 _ACEOF
15953
15954 case $ac_config_files in *"
15955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15956 esac
15957
15958 case $ac_config_headers in *"
15959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15960 esac
15961
15962
15963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964 # Files that config.status was made for.
15965 config_files="$ac_config_files"
15966 config_headers="$ac_config_headers"
15967 config_commands="$ac_config_commands"
15968
15969 _ACEOF
15970
15971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15972 ac_cs_usage="\
15973 '$as_me' instantiates files and other configuration actions
15974 from templates according to the current configuration. Unless the files
15975 and actions are specified as TAGs, all are instantiated by default.
15976
15977 Usage: $0 [OPTION]... [TAG]...
15978
15979 -h, --help print this help, then exit
15980 -V, --version print version number and configuration settings, then exit
15981 --config print configuration, then exit
15982 -q, --quiet, --silent
15983 do not print progress messages
15984 -d, --debug don't remove temporary files
15985 --recheck update $as_me by reconfiguring in the same conditions
15986 --file=FILE[:TEMPLATE]
15987 instantiate the configuration file FILE
15988 --header=FILE[:TEMPLATE]
15989 instantiate the configuration header FILE
15990
15991 Configuration files:
15992 $config_files
15993
15994 Configuration headers:
15995 $config_headers
15996
15997 Configuration commands:
15998 $config_commands
15999
16000 Report bugs to <[email protected]>."
16001
16002 _ACEOF
16003 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16004 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006 ac_cs_config='$ac_cs_config_escaped'
16007 ac_cs_version="\\
16008 systemtap config.status 5.4
16009 configured by $0, generated by GNU Autoconf 2.72,
16010 with options \\"\$ac_cs_config\\"
16011
16012 Copyright (C) 2023 Free Software Foundation, Inc.
16013 This config.status script is free software; the Free Software Foundation
16014 gives unlimited permission to copy, distribute and modify it."
16015
16016 ac_pwd='$ac_pwd'
16017 srcdir='$srcdir'
16018 INSTALL='$INSTALL'
16019 MKDIR_P='$MKDIR_P'
16020 AWK='$AWK'
16021 test -n "\$AWK" || AWK=awk
16022 _ACEOF
16023
16024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16025 # The default lists apply if the user does not specify any file.
16026 ac_need_defaults=:
16027 while test $# != 0
16028 do
16029 case $1 in
16030 --*=?*)
16031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16033 ac_shift=:
16034 ;;
16035 --*=)
16036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16037 ac_optarg=
16038 ac_shift=:
16039 ;;
16040 *)
16041 ac_option=$1
16042 ac_optarg=$2
16043 ac_shift=shift
16044 ;;
16045 esac
16046
16047 case $ac_option in
16048 # Handling of the options.
16049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16050 ac_cs_recheck=: ;;
16051 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16052 printf "%s\n" "$ac_cs_version"; exit ;;
16053 --config | --confi | --conf | --con | --co | --c )
16054 printf "%s\n" "$ac_cs_config"; exit ;;
16055 --debug | --debu | --deb | --de | --d | -d )
16056 debug=: ;;
16057 --file | --fil | --fi | --f )
16058 $ac_shift
16059 case $ac_optarg in
16060 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16061 '') as_fn_error $? "missing file argument" ;;
16062 esac
16063 as_fn_append CONFIG_FILES " '$ac_optarg'"
16064 ac_need_defaults=false;;
16065 --header | --heade | --head | --hea )
16066 $ac_shift
16067 case $ac_optarg in
16068 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16069 esac
16070 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16071 ac_need_defaults=false;;
16072 --he | --h)
16073 # Conflict between --help and --header
16074 as_fn_error $? "ambiguous option: '$1'
16075 Try '$0 --help' for more information.";;
16076 --help | --hel | -h )
16077 printf "%s\n" "$ac_cs_usage"; exit ;;
16078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16080 ac_cs_silent=: ;;
16081
16082 # This is an error.
16083 -*) as_fn_error $? "unrecognized option: '$1'
16084 Try '$0 --help' for more information." ;;
16085
16086 *) as_fn_append ac_config_targets " $1"
16087 ac_need_defaults=false ;;
16088
16089 esac
16090 shift
16091 done
16092
16093 ac_configure_extra_args=
16094
16095 if $ac_cs_silent; then
16096 exec 6>/dev/null
16097 ac_configure_extra_args="$ac_configure_extra_args --silent"
16098 fi
16099
16100 _ACEOF
16101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16102 if \$ac_cs_recheck; then
16103 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16104 shift
16105 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16106 CONFIG_SHELL='$SHELL'
16107 export CONFIG_SHELL
16108 exec "\$@"
16109 fi
16110
16111 _ACEOF
16112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113 exec 5>>config.log
16114 {
16115 echo
16116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16117 ## Running $as_me. ##
16118 _ASBOX
16119 printf "%s\n" "$ac_log"
16120 } >&5
16121
16122 _ACEOF
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124 #
16125 # INIT-COMMANDS
16126 #
16127 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16128 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16129 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16130 # from automake < 1.5.
16131 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16132 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16133 LINGUAS="${LINGUAS-%UNSET%}"
16134
16135
16136 _ACEOF
16137
16138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16139
16140 # Handling of arguments.
16141 for ac_config_target in $ac_config_targets
16142 do
16143 case $ac_config_target in
16144 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16145 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16146 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
16147 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16148 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16150 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16151 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16152 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
16153 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
16154 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
16155 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
16156 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
16157 "man/systemtap-service.8") CONFIG_FILES="$CONFIG_FILES man/systemtap-service.8" ;;
16158 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
16159 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
16160 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
16161 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
16162 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
16163 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
16164 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
16165 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
16166 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
16167 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
16168 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
16169 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
16170 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
16171 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
16172 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
16173 "java/org/systemtap/byteman/helper/HelperSDT.java") CONFIG_FILES="$CONFIG_FILES java/org/systemtap/byteman/helper/HelperSDT.java" ;;
16174 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16175 "interactive-notebook/Makefile") CONFIG_FILES="$CONFIG_FILES interactive-notebook/Makefile" ;;
16176 "interactive-notebook/stap-jupyter-container") CONFIG_FILES="$CONFIG_FILES interactive-notebook/stap-jupyter-container" ;;
16177 "interactive-notebook/stap-jupyter-install") CONFIG_FILES="$CONFIG_FILES interactive-notebook/stap-jupyter-install" ;;
16178 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
16179 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
16180 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
16181 "httpd/docker/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/docker/Makefile" ;;
16182 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
16183 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
16184 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
16185 "staprun/guest/[email protected]") CONFIG_FILES="$CONFIG_FILES staprun/guest/[email protected]" ;;
16186 "stap-exporter/Makefile") CONFIG_FILES="$CONFIG_FILES stap-exporter/Makefile" ;;
16187 "stap-profile-annotate") CONFIG_FILES="$CONFIG_FILES stap-profile-annotate" ;;
16188 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
16189
16190 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16191 esac
16192 done
16193
16194
16195 # If the user did not use the arguments to specify the items to instantiate,
16196 # then the envvar interface is used. Set only those that are not.
16197 # We use the long form for the default assignment because of an extremely
16198 # bizarre bug on SunOS 4.1.3.
16199 if $ac_need_defaults; then
16200 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16201 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16202 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16203 fi
16204
16205 # Have a temporary directory for convenience. Make it in the build tree
16206 # simply because there is no reason against having it here, and in addition,
16207 # creating and moving files from /tmp can sometimes cause problems.
16208 # Hook for its removal unless debugging.
16209 # Note that there is a small window in which the directory will not be cleaned:
16210 # after its creation but before its name has been assigned to '$tmp'.
16211 $debug ||
16212 {
16213 tmp= ac_tmp=
16214 trap 'exit_status=$?
16215 : "${ac_tmp:=$tmp}"
16216 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16217 ' 0
16218 trap 'as_fn_exit 1' 1 2 13 15
16219 }
16220 # Create a (secure) tmp directory for tmp files.
16221
16222 {
16223 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16224 test -d "$tmp"
16225 } ||
16226 {
16227 tmp=./conf$$-$RANDOM
16228 (umask 077 && mkdir "$tmp")
16229 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16230 ac_tmp=$tmp
16231
16232 # Set up the scripts for CONFIG_FILES section.
16233 # No need to generate them if there are no CONFIG_FILES.
16234 # This happens for instance with './config.status config.h'.
16235 if test -n "$CONFIG_FILES"; then
16236
16237
16238 ac_cr=`echo X | tr X '\015'`
16239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16240 # But we know of no other shell where ac_cr would be empty at this
16241 # point, so we can use a bashism as a fallback.
16242 if test "x$ac_cr" = x; then
16243 eval ac_cr=\$\'\\r\'
16244 fi
16245 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16247 ac_cs_awk_cr='\\r'
16248 else
16249 ac_cs_awk_cr=$ac_cr
16250 fi
16251
16252 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16253 _ACEOF
16254
16255
16256 {
16257 echo "cat >conf$$subs.awk <<_ACEOF" &&
16258 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16259 echo "_ACEOF"
16260 } >conf$$subs.sh ||
16261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16263 ac_delim='%!_!# '
16264 for ac_last_try in false false false false false :; do
16265 . ./conf$$subs.sh ||
16266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16267
16268 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16269 if test $ac_delim_n = $ac_delim_num; then
16270 break
16271 elif $ac_last_try; then
16272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16273 else
16274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16275 fi
16276 done
16277 rm -f conf$$subs.sh
16278
16279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16281 _ACEOF
16282 sed -n '
16283 h
16284 s/^/S["/; s/!.*/"]=/
16285 p
16286 g
16287 s/^[^!]*!//
16288 :repl
16289 t repl
16290 s/'"$ac_delim"'$//
16291 t delim
16292 :nl
16293 h
16294 s/\(.\{148\}\)..*/\1/
16295 t more1
16296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16297 p
16298 n
16299 b repl
16300 :more1
16301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16302 p
16303 g
16304 s/.\{148\}//
16305 t nl
16306 :delim
16307 h
16308 s/\(.\{148\}\)..*/\1/
16309 t more2
16310 s/["\\]/\\&/g; s/^/"/; s/$/"/
16311 p
16312 b
16313 :more2
16314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16315 p
16316 g
16317 s/.\{148\}//
16318 t delim
16319 ' <conf$$subs.awk | sed '
16320 /^[^""]/{
16321 N
16322 s/\n//
16323 }
16324 ' >>$CONFIG_STATUS || ac_write_fail=1
16325 rm -f conf$$subs.awk
16326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16327 _ACAWK
16328 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16329 for (key in S) S_is_set[key] = 1
16330 FS = ""
16331
16332 }
16333 {
16334 line = $ 0
16335 nfields = split(line, field, "@")
16336 substed = 0
16337 len = length(field[1])
16338 for (i = 2; i < nfields; i++) {
16339 key = field[i]
16340 keylen = length(key)
16341 if (S_is_set[key]) {
16342 value = S[key]
16343 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16344 len += length(value) + length(field[++i])
16345 substed = 1
16346 } else
16347 len += 1 + keylen
16348 }
16349
16350 print line
16351 }
16352
16353 _ACAWK
16354 _ACEOF
16355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16356 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16357 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16358 else
16359 cat
16360 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16361 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16362 _ACEOF
16363
16364 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16365 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16366 # trailing colons and then remove the whole line if VPATH becomes empty
16367 # (actually we leave an empty line to preserve line numbers).
16368 if test "x$srcdir" = x.; then
16369 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16370 h
16371 s///
16372 s/^/:/
16373 s/[ ]*$/:/
16374 s/:\$(srcdir):/:/g
16375 s/:\${srcdir}:/:/g
16376 s/:@srcdir@:/:/g
16377 s/^:*//
16378 s/:*$//
16379 x
16380 s/\(=[ ]*\).*/\1/
16381 G
16382 s/\n//
16383 s/^[^=]*=[ ]*$//
16384 }'
16385 fi
16386
16387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16388 fi # test -n "$CONFIG_FILES"
16389
16390 # Set up the scripts for CONFIG_HEADERS section.
16391 # No need to generate them if there are no CONFIG_HEADERS.
16392 # This happens for instance with './config.status Makefile'.
16393 if test -n "$CONFIG_HEADERS"; then
16394 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16395 BEGIN {
16396 _ACEOF
16397
16398 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16399 # here-document in config.status, that substitutes the proper values into
16400 # config.h.in to produce config.h.
16401
16402 # Create a delimiter string that does not exist in confdefs.h, to ease
16403 # handling of long lines.
16404 ac_delim='%!_!# '
16405 for ac_last_try in false false :; do
16406 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16407 if test -z "$ac_tt"; then
16408 break
16409 elif $ac_last_try; then
16410 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16411 else
16412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16413 fi
16414 done
16415
16416 # For the awk script, D is an array of macro values keyed by name,
16417 # likewise P contains macro parameters if any. Preserve backslash
16418 # newline sequences.
16419
16420 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16421 sed -n '
16422 s/.\{148\}/&'"$ac_delim"'/g
16423 t rset
16424 :rset
16425 s/^[ ]*#[ ]*define[ ][ ]*/ /
16426 t def
16427 d
16428 :def
16429 s/\\$//
16430 t bsnl
16431 s/["\\]/\\&/g
16432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16433 D["\1"]=" \3"/p
16434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16435 d
16436 :bsnl
16437 s/["\\]/\\&/g
16438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16439 D["\1"]=" \3\\\\\\n"\\/p
16440 t cont
16441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16442 t cont
16443 d
16444 :cont
16445 n
16446 s/.\{148\}/&'"$ac_delim"'/g
16447 t clear
16448 :clear
16449 s/\\$//
16450 t bsnlc
16451 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16452 d
16453 :bsnlc
16454 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16455 b cont
16456 ' <confdefs.h | sed '
16457 s/'"$ac_delim"'/"\\\
16458 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16459
16460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16461 for (key in D) D_is_set[key] = 1
16462 FS = ""
16463 }
16464 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16465 line = \$ 0
16466 split(line, arg, " ")
16467 if (arg[1] == "#") {
16468 defundef = arg[2]
16469 mac1 = arg[3]
16470 } else {
16471 defundef = substr(arg[1], 2)
16472 mac1 = arg[2]
16473 }
16474 split(mac1, mac2, "(") #)
16475 macro = mac2[1]
16476 prefix = substr(line, 1, index(line, defundef) - 1)
16477 if (D_is_set[macro]) {
16478 # Preserve the white space surrounding the "#".
16479 print prefix "define", macro P[macro] D[macro]
16480 next
16481 } else {
16482 # Replace #undef with comments. This is necessary, for example,
16483 # in the case of _POSIX_SOURCE, which is predefined and required
16484 # on some systems where configure will not decide to define it.
16485 if (defundef == "undef") {
16486 print "/*", prefix defundef, macro, "*/"
16487 next
16488 }
16489 }
16490 }
16491 { print }
16492 _ACAWK
16493 _ACEOF
16494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16495 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16496 fi # test -n "$CONFIG_HEADERS"
16497
16498
16499 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16500 shift
16501 for ac_tag
16502 do
16503 case $ac_tag in
16504 :[FHLC]) ac_mode=$ac_tag; continue;;
16505 esac
16506 case $ac_mode$ac_tag in
16507 :[FHL]*:*);;
16508 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16509 :[FH]-) ac_tag=-:-;;
16510 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16511 esac
16512 ac_save_IFS=$IFS
16513 IFS=:
16514 set x $ac_tag
16515 IFS=$ac_save_IFS
16516 shift
16517 ac_file=$1
16518 shift
16519
16520 case $ac_mode in
16521 :L) ac_source=$1;;
16522 :[FH])
16523 ac_file_inputs=
16524 for ac_f
16525 do
16526 case $ac_f in
16527 -) ac_f="$ac_tmp/stdin";;
16528 *) # Look for the file first in the build tree, then in the source tree
16529 # (if the path is not absolute). The absolute path cannot be DOS-style,
16530 # because $ac_f cannot contain ':'.
16531 test -f "$ac_f" ||
16532 case $ac_f in
16533 [\\/$]*) false;;
16534 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16535 esac ||
16536 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16537 esac
16538 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16539 as_fn_append ac_file_inputs " '$ac_f'"
16540 done
16541
16542 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16543 # use $as_me), people would be surprised to read:
16544 # /* config.h. Generated by config.status. */
16545 configure_input='Generated from '`
16546 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16547 `' by configure.'
16548 if test x"$ac_file" != x-; then
16549 configure_input="$ac_file. $configure_input"
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16551 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16552 fi
16553 # Neutralize special characters interpreted by sed in replacement strings.
16554 case $configure_input in #(
16555 *\&* | *\|* | *\\* )
16556 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16557 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16558 *) ac_sed_conf_input=$configure_input;;
16559 esac
16560
16561 case $ac_tag in
16562 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16564 esac
16565 ;;
16566 esac
16567
16568 ac_dir=`$as_dirname -- "$ac_file" ||
16569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16570 X"$ac_file" : 'X\(//\)[^/]' \| \
16571 X"$ac_file" : 'X\(//\)$' \| \
16572 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16573 printf "%s\n" X"$ac_file" |
16574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16575 s//\1/
16576 q
16577 }
16578 /^X\(\/\/\)[^/].*/{
16579 s//\1/
16580 q
16581 }
16582 /^X\(\/\/\)$/{
16583 s//\1/
16584 q
16585 }
16586 /^X\(\/\).*/{
16587 s//\1/
16588 q
16589 }
16590 s/.*/./; q'`
16591 as_dir="$ac_dir"; as_fn_mkdir_p
16592 ac_builddir=.
16593
16594 case "$ac_dir" in
16595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16596 *)
16597 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16598 # A ".." for each directory in $ac_dir_suffix.
16599 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16600 case $ac_top_builddir_sub in
16601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16603 esac ;;
16604 esac
16605 ac_abs_top_builddir=$ac_pwd
16606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16607 # for backward compatibility:
16608 ac_top_builddir=$ac_top_build_prefix
16609
16610 case $srcdir in
16611 .) # We are building in place.
16612 ac_srcdir=.
16613 ac_top_srcdir=$ac_top_builddir_sub
16614 ac_abs_top_srcdir=$ac_pwd ;;
16615 [\\/]* | ?:[\\/]* ) # Absolute name.
16616 ac_srcdir=$srcdir$ac_dir_suffix;
16617 ac_top_srcdir=$srcdir
16618 ac_abs_top_srcdir=$srcdir ;;
16619 *) # Relative name.
16620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16621 ac_top_srcdir=$ac_top_build_prefix$srcdir
16622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16623 esac
16624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16625
16626
16627 case $ac_mode in
16628 :F)
16629 #
16630 # CONFIG_FILE
16631 #
16632
16633 case $INSTALL in
16634 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16635 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16636 esac
16637 ac_MKDIR_P=$MKDIR_P
16638 case $MKDIR_P in
16639 [\\/$]* | ?:[\\/]* ) ;;
16640 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16641 esac
16642 _ACEOF
16643
16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645 # If the template does not know about datarootdir, expand it.
16646 # FIXME: This hack should be removed a few years after 2.60.
16647 ac_datarootdir_hack=; ac_datarootdir_seen=
16648 ac_sed_dataroot='
16649 /datarootdir/ {
16650 p
16651 q
16652 }
16653 /@datadir@/p
16654 /@docdir@/p
16655 /@infodir@/p
16656 /@localedir@/p
16657 /@mandir@/p'
16658 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16659 *datarootdir*) ac_datarootdir_seen=yes;;
16660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16662 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16663 _ACEOF
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 ac_datarootdir_hack='
16666 s&@datadir@&$datadir&g
16667 s&@docdir@&$docdir&g
16668 s&@infodir@&$infodir&g
16669 s&@localedir@&$localedir&g
16670 s&@mandir@&$mandir&g
16671 s&\\\${datarootdir}&$datarootdir&g' ;;
16672 esac
16673 _ACEOF
16674
16675 # Neutralize VPATH when '$srcdir' = '.'.
16676 # Shell code in configure.ac might set extrasub.
16677 # FIXME: do we really want to maintain this feature?
16678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679 ac_sed_extra="$ac_vpsub
16680 $extrasub
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16683 :t
16684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16685 s|@configure_input@|$ac_sed_conf_input|;t t
16686 s&@top_builddir@&$ac_top_builddir_sub&;t t
16687 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16688 s&@srcdir@&$ac_srcdir&;t t
16689 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16690 s&@top_srcdir@&$ac_top_srcdir&;t t
16691 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16692 s&@builddir@&$ac_builddir&;t t
16693 s&@abs_builddir@&$ac_abs_builddir&;t t
16694 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16695 s&@INSTALL@&$ac_INSTALL&;t t
16696 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16697 $ac_datarootdir_hack
16698 "
16699 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16700 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16701
16702 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16703 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16704 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16705 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16707 which seems to be undefined. Please make sure it is defined" >&5
16708 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16709 which seems to be undefined. Please make sure it is defined" >&2;}
16710
16711 rm -f "$ac_tmp/stdin"
16712 case $ac_file in
16713 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16714 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16715 esac \
16716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16717 ;;
16718 :H)
16719 #
16720 # CONFIG_HEADER
16721 #
16722 if test x"$ac_file" != x-; then
16723 {
16724 printf "%s\n" "/* $configure_input */" >&1 \
16725 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16726 } >"$ac_tmp/config.h" \
16727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16728 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16730 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16731 else
16732 rm -f "$ac_file"
16733 mv "$ac_tmp/config.h" "$ac_file" \
16734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16735 fi
16736 else
16737 printf "%s\n" "/* $configure_input */" >&1 \
16738 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16739 || as_fn_error $? "could not create -" "$LINENO" 5
16740 fi
16741 # Compute "$ac_file"'s index in $config_headers.
16742 _am_arg="$ac_file"
16743 _am_stamp_count=1
16744 for _am_header in $config_headers :; do
16745 case $_am_header in
16746 $_am_arg | $_am_arg:* )
16747 break ;;
16748 * )
16749 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16750 esac
16751 done
16752 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16753 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16754 X"$_am_arg" : 'X\(//\)[^/]' \| \
16755 X"$_am_arg" : 'X\(//\)$' \| \
16756 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16757 printf "%s\n" X"$_am_arg" |
16758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16759 s//\1/
16760 q
16761 }
16762 /^X\(\/\/\)[^/].*/{
16763 s//\1/
16764 q
16765 }
16766 /^X\(\/\/\)$/{
16767 s//\1/
16768 q
16769 }
16770 /^X\(\/\).*/{
16771 s//\1/
16772 q
16773 }
16774 s/.*/./; q'`/stamp-h$_am_stamp_count
16775 ;;
16776
16777 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16778 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16779 ;;
16780 esac
16781
16782
16783 case $ac_file$ac_mode in
16784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16785 # Older Autoconf quotes --file arguments for eval, but not when files
16786 # are listed without --file. Let's play safe and only enable the eval
16787 # if we detect the quoting.
16788 # TODO: see whether this extra hack can be removed once we start
16789 # requiring Autoconf 2.70 or later.
16790 case $CONFIG_FILES in #(
16791 *\'*) :
16792 eval set x "$CONFIG_FILES" ;; #(
16793 *) :
16794 set x $CONFIG_FILES ;; #(
16795 *) :
16796 ;;
16797 esac
16798 shift
16799 # Used to flag and report bootstrapping failures.
16800 am_rc=0
16801 for am_mf
16802 do
16803 # Strip MF so we end up with the name of the file.
16804 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16805 # Check whether this is an Automake generated Makefile which includes
16806 # dependency-tracking related rules and includes.
16807 # Grep'ing the whole file directly is not great: AIX grep has a line
16808 # limit of 2048, but all sed's we know have understand at least 4000.
16809 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16810 || continue
16811 am_dirpart=`$as_dirname -- "$am_mf" ||
16812 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16813 X"$am_mf" : 'X\(//\)[^/]' \| \
16814 X"$am_mf" : 'X\(//\)$' \| \
16815 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16816 printf "%s\n" X"$am_mf" |
16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16818 s//\1/
16819 q
16820 }
16821 /^X\(\/\/\)[^/].*/{
16822 s//\1/
16823 q
16824 }
16825 /^X\(\/\/\)$/{
16826 s//\1/
16827 q
16828 }
16829 /^X\(\/\).*/{
16830 s//\1/
16831 q
16832 }
16833 s/.*/./; q'`
16834 am_filepart=`$as_basename -- "$am_mf" ||
16835 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16836 X"$am_mf" : 'X\(//\)$' \| \
16837 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16838 printf "%s\n" X/"$am_mf" |
16839 sed '/^.*\/\([^/][^/]*\)\/*$/{
16840 s//\1/
16841 q
16842 }
16843 /^X\/\(\/\/\)$/{
16844 s//\1/
16845 q
16846 }
16847 /^X\/\(\/\).*/{
16848 s//\1/
16849 q
16850 }
16851 s/.*/./; q'`
16852 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16853 && sed -e '/# am--include-marker/d' "$am_filepart" \
16854 | $MAKE -f - am--depfiles" >&5
16855 (cd "$am_dirpart" \
16856 && sed -e '/# am--include-marker/d' "$am_filepart" \
16857 | $MAKE -f - am--depfiles) >&5 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } || am_rc=$?
16861 done
16862 if test $am_rc -ne 0; then
16863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16864 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16865 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16866 for automatic dependency tracking. If GNU make was not used, consider
16867 re-running the configure script with MAKE=\"gmake\" (or whatever is
16868 necessary). You can also try re-running configure with the
16869 '--disable-dependency-tracking' option to at least be able to build
16870 the package (albeit without support for automatic dependency tracking).
16871 See 'config.log' for more details" "$LINENO" 5; }
16872 fi
16873 { am_dirpart=; unset am_dirpart;}
16874 { am_filepart=; unset am_filepart;}
16875 { am_mf=; unset am_mf;}
16876 { am_rc=; unset am_rc;}
16877 rm -f conftest-deps.mk
16878 }
16879 ;;
16880 "po-directories":C)
16881 for ac_file in $CONFIG_FILES; do
16882 # Support "outfile[:infile[:infile...]]"
16883 case "$ac_file" in
16884 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16885 esac
16886 # PO directories have a Makefile.in generated from Makefile.in.in.
16887 case "$ac_file" in */Makefile.in)
16888 # Adjust a relative srcdir.
16889 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16890 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16891 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16892 # In autoconf-2.13 it is called $ac_given_srcdir.
16893 # In autoconf-2.50 it is called $srcdir.
16894 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16895 case "$ac_given_srcdir" in
16896 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16897 /*) top_srcdir="$ac_given_srcdir" ;;
16898 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16899 esac
16900 # Treat a directory as a PO directory if and only if it has a
16901 # POTFILES.in file. This allows packages to have multiple PO
16902 # directories under different names or in different locations.
16903 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16904 rm -f "$ac_dir/POTFILES"
16905 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16906 gt_tab=`printf '\t'`
16907 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"
16908 POMAKEFILEDEPS="POTFILES.in"
16909 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16910 # on $ac_dir but don't depend on user-specified configuration
16911 # parameters.
16912 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16913 # The LINGUAS file contains the set of available languages.
16914 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16915 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16916 fi
16917 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16918 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16919 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16920 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16921 else
16922 # The set of available languages was given in configure.in.
16923 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16924 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16925 fi
16926 # Compute POFILES
16927 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16928 # Compute UPDATEPOFILES
16929 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16930 # Compute DUMMYPOFILES
16931 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16932 # Compute GMOFILES
16933 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16934 case "$ac_given_srcdir" in
16935 .) srcdirpre= ;;
16936 *) srcdirpre='$(srcdir)/' ;;
16937 esac
16938 POFILES=
16939 UPDATEPOFILES=
16940 DUMMYPOFILES=
16941 GMOFILES=
16942 for lang in $ALL_LINGUAS; do
16943 POFILES="$POFILES $srcdirpre$lang.po"
16944 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16945 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16946 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16947 done
16948 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16949 # environment variable.
16950 INST_LINGUAS=
16951 if test -n "$ALL_LINGUAS"; then
16952 for presentlang in $ALL_LINGUAS; do
16953 useit=no
16954 if test "%UNSET%" != "$LINGUAS"; then
16955 desiredlanguages="$LINGUAS"
16956 else
16957 desiredlanguages="$ALL_LINGUAS"
16958 fi
16959 for desiredlang in $desiredlanguages; do
16960 # Use the presentlang catalog if desiredlang is
16961 # a. equal to presentlang, or
16962 # b. a variant of presentlang (because in this case,
16963 # presentlang can be used as a fallback for messages
16964 # which are not translated in the desiredlang catalog).
16965 case "$desiredlang" in
16966 "$presentlang"*) useit=yes;;
16967 esac
16968 done
16969 if test $useit = yes; then
16970 INST_LINGUAS="$INST_LINGUAS $presentlang"
16971 fi
16972 done
16973 fi
16974 CATALOGS=
16975 if test -n "$INST_LINGUAS"; then
16976 for lang in $INST_LINGUAS; do
16977 CATALOGS="$CATALOGS $lang.gmo"
16978 done
16979 fi
16980 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16981 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"
16982 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16983 if test -f "$f"; then
16984 case "$f" in
16985 *.orig | *.bak | *~) ;;
16986 *) cat "$f" >> "$ac_dir/Makefile" ;;
16987 esac
16988 fi
16989 done
16990 fi
16991 ;;
16992 esac
16993 done ;;
16994 "run-stap":F) chmod +x run-stap ;;
16995 "dtrace":F) chmod +x dtrace ;;
16996 "java/stapbm":F) chmod +x java/stapbm ;;
16997 "interactive-notebook/stap-jupyter-container":F) chmod +x interactive-notebook/stap-jupyter-container ;;
16998 "interactive-notebook/stap-jupyter-install":F) chmod +x interactive-notebook/stap-jupyter-install ;;
16999 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
17000 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
17001 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
17002 "stap-profile-annotate":F) chmod +x stap-profile-annotate ;;
17003 "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 ;;
17004
17005 esac
17006 done # for ac_tag
17007
17008
17009 as_fn_exit 0
17010 _ACEOF
17011 ac_clean_files=$ac_clean_files_save
17012
17013 test $ac_write_fail = 0 ||
17014 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17015
17016
17017 # configure is writing to config.log, and then calls config.status.
17018 # config.status does its own redirection, appending to config.log.
17019 # Unfortunately, on DOS this fails, as config.log is still kept open
17020 # by configure, so config.status won't be able to write to it; its
17021 # output is simply discarded. So we exec the FD to /dev/null,
17022 # effectively closing config.log, so it can be properly (re)opened and
17023 # appended to by config.status. When coming back to configure, we
17024 # need to make the FD available again.
17025 if test "$no_create" != yes; then
17026 ac_cs_success=:
17027 ac_config_status_args=
17028 test "$silent" = yes &&
17029 ac_config_status_args="$ac_config_status_args --quiet"
17030 exec 5>/dev/null
17031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17032 exec 5>>config.log
17033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17034 # would make configure fail if this is the last instruction.
17035 $ac_cs_success || as_fn_exit 1
17036 fi
17037
17038 #
17039 # CONFIG_SUBDIRS section.
17040 #
17041 if test "$no_recursion" != yes; then
17042
17043 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17044 # so they do not pile up.
17045 ac_sub_configure_args=
17046 ac_prev=
17047 eval "set x $ac_configure_args"
17048 shift
17049 for ac_arg
17050 do
17051 if test -n "$ac_prev"; then
17052 ac_prev=
17053 continue
17054 fi
17055 case $ac_arg in
17056 -cache-file | --cache-file | --cache-fil | --cache-fi \
17057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17058 ac_prev=cache_file ;;
17059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17061 | --c=*)
17062 ;;
17063 --config-cache | -C)
17064 ;;
17065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17066 ac_prev=srcdir ;;
17067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17068 ;;
17069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17070 ac_prev=prefix ;;
17071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17072 ;;
17073 --disable-option-checking)
17074 ;;
17075 *)
17076 case $ac_arg in
17077 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17078 esac
17079 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17080 esac
17081 done
17082
17083 # Always prepend --prefix to ensure using the same prefix
17084 # in subdir configurations.
17085 ac_arg="--prefix=$prefix"
17086 case $ac_arg in
17087 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17088 esac
17089 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17090
17091 # Pass --silent
17092 if test "$silent" = yes; then
17093 ac_sub_configure_args="--silent $ac_sub_configure_args"
17094 fi
17095
17096 # Always prepend --disable-option-checking to silence warnings, since
17097 # different subdirs can have different --enable and --with options.
17098 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17099
17100 ac_popdir=`pwd`
17101 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17102
17103 # Do not complain, so a configure script can configure whichever
17104 # parts of a large source tree are present.
17105 test -d "$srcdir/$ac_dir" || continue
17106
17107 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17109 printf "%s\n" "$ac_msg" >&6
17110 as_dir="$ac_dir"; as_fn_mkdir_p
17111 ac_builddir=.
17112
17113 case "$ac_dir" in
17114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17115 *)
17116 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17117 # A ".." for each directory in $ac_dir_suffix.
17118 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17119 case $ac_top_builddir_sub in
17120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17122 esac ;;
17123 esac
17124 ac_abs_top_builddir=$ac_pwd
17125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17126 # for backward compatibility:
17127 ac_top_builddir=$ac_top_build_prefix
17128
17129 case $srcdir in
17130 .) # We are building in place.
17131 ac_srcdir=.
17132 ac_top_srcdir=$ac_top_builddir_sub
17133 ac_abs_top_srcdir=$ac_pwd ;;
17134 [\\/]* | ?:[\\/]* ) # Absolute name.
17135 ac_srcdir=$srcdir$ac_dir_suffix;
17136 ac_top_srcdir=$srcdir
17137 ac_abs_top_srcdir=$srcdir ;;
17138 *) # Relative name.
17139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17140 ac_top_srcdir=$ac_top_build_prefix$srcdir
17141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17142 esac
17143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17144
17145
17146 cd "$ac_dir"
17147
17148 # Check for configure.gnu first; this name is used for a wrapper for
17149 # Metaconfig's "Configure" on case-insensitive file systems.
17150 if test -f "$ac_srcdir/configure.gnu"; then
17151 ac_sub_configure=$ac_srcdir/configure.gnu
17152 elif test -f "$ac_srcdir/configure"; then
17153 ac_sub_configure=$ac_srcdir/configure
17154 else
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17156 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17157 ac_sub_configure=
17158 fi
17159
17160 # The recursion is here.
17161 if test -n "$ac_sub_configure"; then
17162 # Make the cache file name correct relative to the subdirectory.
17163 case $cache_file in
17164 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17165 *) # Relative name.
17166 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17167 esac
17168
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17170 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17171 # The eval makes quoting arguments work.
17172 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17173 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17174 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17175 fi
17176
17177 cd "$ac_popdir"
17178 done
17179 fi
17180 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17182 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17183 fi
17184
17185
17186 if test "${prefix}" = "/usr/local"; then
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
17188 printf "%s\n" "$as_me: " >&6;}
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
17190 printf "%s\n" "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
17192 printf "%s\n" "$as_me: configuring with a prefix. For example, try" >&6;}
17193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
17194 printf "%s\n" "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
17196 printf "%s\n" "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: is not supported." >&5
17198 printf "%s\n" "$as_me: is not supported." >&6;}
17199 fi
17200