]> sourceware.org Git - systemtap.git/blob - configure
+ configury refresh for last stap-prep Makefile.am tweak
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for systemtap 5.1.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: systemtap@sourceware.org about your system, including
272 $0: any error possibly output before this message. Then
273 $0: install a modern shell, or manually run the script
274 $0: under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='systemtap'
613 PACKAGE_TARNAME='systemtap'
614 PACKAGE_VERSION='5.1'
615 PACKAGE_STRING='systemtap 5.1'
616 PACKAGE_BUGREPORT='systemtap@sourceware.org'
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 gt_needs=
652 enable_option_checking=no
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 subdirs
658 pkglibexecdir
659 STAP_PREFIX
660 NEED_BASE_CLIENT_CODE_FALSE
661 NEED_BASE_CLIENT_CODE_TRUE
662 HAVE_HTTP_SUPPORT_FALSE
663 HAVE_HTTP_SUPPORT_TRUE
664 libcurl_LIBS
665 libcurl_CFLAGS
666 uuid_LIBS
667 uuid_CFLAGS
668 libmicrohttpd_LIBS
669 libmicrohttpd_CFLAGS
670 STAP_EXTRA_VERSION
671 LOCALEDIR
672 ENABLE_NLS
673 HAVE_JAVA_FALSE
674 HAVE_JAVA_TRUE
675 JAVADIR
676 have_jar
677 have_javac
678 HAVE_SELINUX_FALSE
679 HAVE_SELINUX_TRUE
680 selinux_LIBS
681 selinux_CFLAGS
682 HAVE_BPF_DECLS_FALSE
683 HAVE_BPF_DECLS_TRUE
684 support_section_question
685 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE
686 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE
687 HAVE_JSON_C_FALSE
688 HAVE_JSON_C_TRUE
689 HAVE_MONITOR_LIBS_FALSE
690 HAVE_MONITOR_LIBS_TRUE
691 ncurses_LIBS
692 ncurses_CFLAGS
693 jsonc_LIBS
694 jsonc_CFLAGS
695 HAVE_PYTHON_PROBES_FALSE
696 HAVE_PYTHON_PROBES_TRUE
697 HAVE_PYTHON3_PROBES_FALSE
698 HAVE_PYTHON3_PROBES_TRUE
699 PYTHON3_CPPFLAGS
700 PYTHON3_CONFIG
701 HAVE_PYTHON2_PROBES_FALSE
702 HAVE_PYTHON2_PROBES_TRUE
703 PYTHON_CPPFLAGS
704 PYTHON_CONFIG
705 BUILD_VIRT_FALSE
706 BUILD_VIRT_TRUE
707 HAVE_LIBXML2_FALSE
708 HAVE_LIBXML2_TRUE
709 libxml2_LIBS
710 libxml2_CFLAGS
711 HAVE_LIBVIRT_FALSE
712 HAVE_LIBVIRT_TRUE
713 libvirt_LIBS
714 libvirt_CFLAGS
715 HAVE_DYNINST_FALSE
716 HAVE_DYNINST_TRUE
717 DYNINST_LIBS
718 DYNINST_LDFLAGS
719 DYNINST_CXXFLAGS
720 BOOST_SYSTEM_LIB
721 stapbpf_LIBS
722 staprun_LIBS
723 stap_LIBS
724 preferred_python
725 HAVE_LIBREADLINE_FALSE
726 HAVE_LIBREADLINE_TRUE
727 READLINE_LIBS
728 HAVE_AVAHI_FALSE
729 HAVE_AVAHI_TRUE
730 avahi_LIBS
731 avahi_CFLAGS
732 BUILD_SERVER_FALSE
733 BUILD_SERVER_TRUE
734 dracutbindir
735 dracutstap
736 HAVE_OPENSSL_FALSE
737 HAVE_OPENSSL_TRUE
738 openssl_LIBS
739 openssl_CFLAGS
740 HAVE_NSS_FALSE
741 HAVE_NSS_TRUE
742 nss_LIBS
743 nss_CFLAGS
744 XMLTO_STRINGPARAM_FALSE
745 XMLTO_STRINGPARAM_TRUE
746 BUILD_HTMLDOCS_FALSE
747 BUILD_HTMLDOCS_TRUE
748 HAVE_XMLTO_FALSE
749 HAVE_XMLTO_TRUE
750 HAVE_FOP_FALSE
751 HAVE_FOP_TRUE
752 have_fop
753 have_xmlto
754 BUILD_REFDOCS_FALSE
755 BUILD_REFDOCS_TRUE
756 INSTALL_PREBUILT_DOCS_FALSE
757 INSTALL_PREBUILT_DOCS_TRUE
758 BUILD_DOCS_FALSE
759 BUILD_DOCS_TRUE
760 have_ps2pdf
761 have_dvips
762 have_latex
763 BUILD_CRASHMOD_FALSE
764 BUILD_CRASHMOD_TRUE
765 staplog_CPPFLAGS
766 BUILD_TRANSLATOR_FALSE
767 BUILD_TRANSLATOR_TRUE
768 sqlite3_LIBS
769 sqlite3_CFLAGS
770 debuginfod_LDFLAGS
771 debuginfod_LIBS
772 debuginfod_CFLAGS
773 PIECXXFLAGS
774 PIECFLAGS
775 PIELDFLAGS
776 ALIGNEDNEW
777 HAVE_CXX11
778 Werror_FALSE
779 Werror_TRUE
780 py3execdir
781 python3dir
782 PYTHON3_PLATFORM
783 PYTHON3_EXEC_PREFIX
784 PYTHON3_PREFIX
785 PYTHON3_VERSION
786 PYTHON3
787 pkgpyexecdir
788 pyexecdir
789 pkgpythondir
790 pythondir
791 PYTHON_EXEC_PREFIX
792 PYTHON_PREFIX
793 PYTHON_PLATFORM
794 PYTHON_VERSION
795 PYTHON
796 PYTHON_UNKNOWN
797 POSUB
798 LTLIBINTL
799 LIBINTL
800 INTLLIBS
801 LTLIBICONV
802 LIBICONV
803 INTL_MACOSX_LIBS
804 EGREP
805 GREP
806 XGETTEXT_EXTRA_OPTIONS
807 MSGMERGE
808 XGETTEXT_015
809 XGETTEXT
810 GMSGFMT_015
811 MSGFMT_015
812 GMSGFMT
813 MSGFMT
814 GETTEXT_MACRO_VERSION
815 USE_NLS
816 SED
817 RANLIB
818 ac_ct_AR
819 AR
820 CPP
821 am__fastdepCXX_FALSE
822 am__fastdepCXX_TRUE
823 CXXDEPMODE
824 ac_ct_CXX
825 CXXFLAGS
826 CXX
827 LN_S
828 am__fastdepCC_FALSE
829 am__fastdepCC_TRUE
830 CCDEPMODE
831 am__nodep
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__include
836 DEPDIR
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 PKG_CONFIG_LIBDIR
845 PKG_CONFIG_PATH
846 PKG_CONFIG
847 MAINT
848 MAINTAINER_MODE_FALSE
849 MAINTAINER_MODE_TRUE
850 AM_BACKSLASH
851 AM_DEFAULT_VERBOSITY
852 AM_DEFAULT_V
853 AM_V
854 CSCOPE
855 ETAGS
856 CTAGS
857 am__untar
858 am__tar
859 AMTAR
860 am__leading_dot
861 SET_MAKE
862 AWK
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 STRIP
867 install_sh
868 MAKEINFO
869 AUTOHEADER
870 AUTOMAKE
871 AUTOCONF
872 ACLOCAL
873 VERSION
874 PACKAGE
875 CYGPATH_W
876 am__isrc
877 INSTALL_DATA
878 INSTALL_SCRIPT
879 INSTALL_PROGRAM
880 target_os
881 target_vendor
882 target_cpu
883 target
884 host_os
885 host_vendor
886 host_cpu
887 host
888 build_os
889 build_vendor
890 build_cpu
891 build
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 runstatedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_URL
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL
931 am__quote'
932 ac_subst_files=''
933 ac_user_opts='
934 enable_option_checking
935 enable_silent_rules
936 enable_maintainer_mode
937 enable_dependency_tracking
938 enable_largefile
939 enable_nls
940 with_gnu_ld
941 enable_rpath
942 with_libiconv_prefix
943 with_libintl_prefix
944 with_python_sys_prefix
945 with_python_prefix
946 with_python_exec_prefix
947 enable_Werror
948 enable_prologues
949 enable_sdt_probes
950 with_debuginfod
951 enable_sqlite
952 enable_translator
953 enable_crash
954 enable_docs
955 enable_refdocs
956 enable_htmldocs
957 with_nss
958 with_openssl
959 with_dracutstap
960 with_dracutbindir
961 enable_server
962 with_avahi
963 with_rpm
964 with_python3
965 with_dyninst
966 enable_virt
967 enable_libvirt
968 with_python2_probes
969 with_python3_probes
970 enable_monitor
971 with_bpf
972 with_selinux
973 with_java
974 with_extra_version
975 enable_http
976 '
977 ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 PKG_CONFIG
981 PKG_CONFIG_PATH
982 PKG_CONFIG_LIBDIR
983 CC
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
988 CXX
989 CXXFLAGS
990 CCC
991 CPP
992 PYTHON
993 debuginfod_CFLAGS
994 debuginfod_LIBS
995 sqlite3_CFLAGS
996 sqlite3_LIBS
997 nss_CFLAGS
998 nss_LIBS
999 openssl_CFLAGS
1000 openssl_LIBS
1001 avahi_CFLAGS
1002 avahi_LIBS
1003 libvirt_CFLAGS
1004 libvirt_LIBS
1005 libxml2_CFLAGS
1006 libxml2_LIBS
1007 jsonc_CFLAGS
1008 jsonc_LIBS
1009 ncurses_CFLAGS
1010 ncurses_LIBS
1011 selinux_CFLAGS
1012 selinux_LIBS
1013 libmicrohttpd_CFLAGS
1014 libmicrohttpd_LIBS
1015 uuid_CFLAGS
1016 uuid_LIBS
1017 libcurl_CFLAGS
1018 libcurl_LIBS'
1019 ac_subdirs_all='testsuite'
1020
1021 # Initialize some variables set by options.
1022 ac_init_help=
1023 ac_init_version=false
1024 ac_unrecognized_opts=
1025 ac_unrecognized_sep=
1026 # The variables have the same names as the options, with
1027 # dashes changed to underlines.
1028 cache_file=/dev/null
1029 exec_prefix=NONE
1030 no_create=
1031 no_recursion=
1032 prefix=NONE
1033 program_prefix=NONE
1034 program_suffix=NONE
1035 program_transform_name=s,x,x,
1036 silent=
1037 site=
1038 srcdir=
1039 verbose=
1040 x_includes=NONE
1041 x_libraries=NONE
1042
1043 # Installation directory options.
1044 # These are left unexpanded so users can "make install exec_prefix=/foo"
1045 # and all the variables that are supposed to be based on exec_prefix
1046 # by default will actually change.
1047 # Use braces instead of parens because sh, perl, etc. also accept them.
1048 # (The list follows the same order as the GNU Coding Standards.)
1049 bindir='${exec_prefix}/bin'
1050 sbindir='${exec_prefix}/sbin'
1051 libexecdir='${exec_prefix}/libexec'
1052 datarootdir='${prefix}/share'
1053 datadir='${datarootdir}'
1054 sysconfdir='${prefix}/etc'
1055 sharedstatedir='${prefix}/com'
1056 localstatedir='${prefix}/var'
1057 runstatedir='${localstatedir}/run'
1058 includedir='${prefix}/include'
1059 oldincludedir='/usr/include'
1060 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1061 infodir='${datarootdir}/info'
1062 htmldir='${docdir}'
1063 dvidir='${docdir}'
1064 pdfdir='${docdir}'
1065 psdir='${docdir}'
1066 libdir='${exec_prefix}/lib'
1067 localedir='${datarootdir}/locale'
1068 mandir='${datarootdir}/man'
1069
1070 ac_prev=
1071 ac_dashdash=
1072 for ac_option
1073 do
1074 # If the previous option needs an argument, assign it.
1075 if test -n "$ac_prev"; then
1076 eval $ac_prev=\$ac_option
1077 ac_prev=
1078 continue
1079 fi
1080
1081 case $ac_option in
1082 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1083 *=) ac_optarg= ;;
1084 *) ac_optarg=yes ;;
1085 esac
1086
1087 case $ac_dashdash$ac_option in
1088 --)
1089 ac_dashdash=yes ;;
1090
1091 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1092 ac_prev=bindir ;;
1093 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1094 bindir=$ac_optarg ;;
1095
1096 -build | --build | --buil | --bui | --bu)
1097 ac_prev=build_alias ;;
1098 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1099 build_alias=$ac_optarg ;;
1100
1101 -cache-file | --cache-file | --cache-fil | --cache-fi \
1102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1103 ac_prev=cache_file ;;
1104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1106 cache_file=$ac_optarg ;;
1107
1108 --config-cache | -C)
1109 cache_file=config.cache ;;
1110
1111 -datadir | --datadir | --datadi | --datad)
1112 ac_prev=datadir ;;
1113 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1114 datadir=$ac_optarg ;;
1115
1116 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1117 | --dataroo | --dataro | --datar)
1118 ac_prev=datarootdir ;;
1119 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1120 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1121 datarootdir=$ac_optarg ;;
1122
1123 -disable-* | --disable-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "enable_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval enable_$ac_useropt=no ;;
1138
1139 -docdir | --docdir | --docdi | --doc | --do)
1140 ac_prev=docdir ;;
1141 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1142 docdir=$ac_optarg ;;
1143
1144 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1145 ac_prev=dvidir ;;
1146 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1147 dvidir=$ac_optarg ;;
1148
1149 -enable-* | --enable-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "enable_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval enable_$ac_useropt=\$ac_optarg ;;
1164
1165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1167 | --exec | --exe | --ex)
1168 ac_prev=exec_prefix ;;
1169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1171 | --exec=* | --exe=* | --ex=*)
1172 exec_prefix=$ac_optarg ;;
1173
1174 -gas | --gas | --ga | --g)
1175 # Obsolete; use --with-gas.
1176 with_gas=yes ;;
1177
1178 -help | --help | --hel | --he | -h)
1179 ac_init_help=long ;;
1180 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1181 ac_init_help=recursive ;;
1182 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1183 ac_init_help=short ;;
1184
1185 -host | --host | --hos | --ho)
1186 ac_prev=host_alias ;;
1187 -host=* | --host=* | --hos=* | --ho=*)
1188 host_alias=$ac_optarg ;;
1189
1190 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1191 ac_prev=htmldir ;;
1192 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1193 | --ht=*)
1194 htmldir=$ac_optarg ;;
1195
1196 -includedir | --includedir | --includedi | --included | --include \
1197 | --includ | --inclu | --incl | --inc)
1198 ac_prev=includedir ;;
1199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1200 | --includ=* | --inclu=* | --incl=* | --inc=*)
1201 includedir=$ac_optarg ;;
1202
1203 -infodir | --infodir | --infodi | --infod | --info | --inf)
1204 ac_prev=infodir ;;
1205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1206 infodir=$ac_optarg ;;
1207
1208 -libdir | --libdir | --libdi | --libd)
1209 ac_prev=libdir ;;
1210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1211 libdir=$ac_optarg ;;
1212
1213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1214 | --libexe | --libex | --libe)
1215 ac_prev=libexecdir ;;
1216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1217 | --libexe=* | --libex=* | --libe=*)
1218 libexecdir=$ac_optarg ;;
1219
1220 -localedir | --localedir | --localedi | --localed | --locale)
1221 ac_prev=localedir ;;
1222 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1223 localedir=$ac_optarg ;;
1224
1225 -localstatedir | --localstatedir | --localstatedi | --localstated \
1226 | --localstate | --localstat | --localsta | --localst | --locals)
1227 ac_prev=localstatedir ;;
1228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1229 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1230 localstatedir=$ac_optarg ;;
1231
1232 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1233 ac_prev=mandir ;;
1234 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1235 mandir=$ac_optarg ;;
1236
1237 -nfp | --nfp | --nf)
1238 # Obsolete; use --without-fp.
1239 with_fp=no ;;
1240
1241 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1242 | --no-cr | --no-c | -n)
1243 no_create=yes ;;
1244
1245 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1246 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1247 no_recursion=yes ;;
1248
1249 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1250 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1251 | --oldin | --oldi | --old | --ol | --o)
1252 ac_prev=oldincludedir ;;
1253 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1254 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1255 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1256 oldincludedir=$ac_optarg ;;
1257
1258 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1259 ac_prev=prefix ;;
1260 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1261 prefix=$ac_optarg ;;
1262
1263 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1264 | --program-pre | --program-pr | --program-p)
1265 ac_prev=program_prefix ;;
1266 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1267 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1268 program_prefix=$ac_optarg ;;
1269
1270 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1271 | --program-suf | --program-su | --program-s)
1272 ac_prev=program_suffix ;;
1273 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1274 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1275 program_suffix=$ac_optarg ;;
1276
1277 -program-transform-name | --program-transform-name \
1278 | --program-transform-nam | --program-transform-na \
1279 | --program-transform-n | --program-transform- \
1280 | --program-transform | --program-transfor \
1281 | --program-transfo | --program-transf \
1282 | --program-trans | --program-tran \
1283 | --progr-tra | --program-tr | --program-t)
1284 ac_prev=program_transform_name ;;
1285 -program-transform-name=* | --program-transform-name=* \
1286 | --program-transform-nam=* | --program-transform-na=* \
1287 | --program-transform-n=* | --program-transform-=* \
1288 | --program-transform=* | --program-transfor=* \
1289 | --program-transfo=* | --program-transf=* \
1290 | --program-trans=* | --program-tran=* \
1291 | --progr-tra=* | --program-tr=* | --program-t=*)
1292 program_transform_name=$ac_optarg ;;
1293
1294 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1295 ac_prev=pdfdir ;;
1296 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1297 pdfdir=$ac_optarg ;;
1298
1299 -psdir | --psdir | --psdi | --psd | --ps)
1300 ac_prev=psdir ;;
1301 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1302 psdir=$ac_optarg ;;
1303
1304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305 | -silent | --silent | --silen | --sile | --sil)
1306 silent=yes ;;
1307
1308 -runstatedir | --runstatedir | --runstatedi | --runstated \
1309 | --runstate | --runstat | --runsta | --runst | --runs \
1310 | --run | --ru | --r)
1311 ac_prev=runstatedir ;;
1312 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1313 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1314 | --run=* | --ru=* | --r=*)
1315 runstatedir=$ac_optarg ;;
1316
1317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318 ac_prev=sbindir ;;
1319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320 | --sbi=* | --sb=*)
1321 sbindir=$ac_optarg ;;
1322
1323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325 | --sharedst | --shareds | --shared | --share | --shar \
1326 | --sha | --sh)
1327 ac_prev=sharedstatedir ;;
1328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331 | --sha=* | --sh=*)
1332 sharedstatedir=$ac_optarg ;;
1333
1334 -site | --site | --sit)
1335 ac_prev=site ;;
1336 -site=* | --site=* | --sit=*)
1337 site=$ac_optarg ;;
1338
1339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340 ac_prev=srcdir ;;
1341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342 srcdir=$ac_optarg ;;
1343
1344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345 | --syscon | --sysco | --sysc | --sys | --sy)
1346 ac_prev=sysconfdir ;;
1347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349 sysconfdir=$ac_optarg ;;
1350
1351 -target | --target | --targe | --targ | --tar | --ta | --t)
1352 ac_prev=target_alias ;;
1353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354 target_alias=$ac_optarg ;;
1355
1356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 verbose=yes ;;
1358
1359 -version | --version | --versio | --versi | --vers | -V)
1360 ac_init_version=: ;;
1361
1362 -with-* | --with-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: \`$ac_useropt'"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1370 *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1375 esac
1376 eval with_$ac_useropt=\$ac_optarg ;;
1377
1378 -without-* | --without-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: \`$ac_useropt'"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1386 *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=no ;;
1393
1394 --x)
1395 # Obsolete; use --with-x.
1396 with_x=yes ;;
1397
1398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399 | --x-incl | --x-inc | --x-in | --x-i)
1400 ac_prev=x_includes ;;
1401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403 x_includes=$ac_optarg ;;
1404
1405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407 ac_prev=x_libraries ;;
1408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410 x_libraries=$ac_optarg ;;
1411
1412 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1414 ;;
1415
1416 *=*)
1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 case $ac_envvar in #(
1420 '' | [0-9]* | *[!_$as_cr_alnum]* )
1421 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422 esac
1423 eval $ac_envvar=\$ac_optarg
1424 export $ac_envvar ;;
1425
1426 *)
1427 # FIXME: should be removed in autoconf 3.0.
1428 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1429 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1431 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432 ;;
1433
1434 esac
1435 done
1436
1437 if test -n "$ac_prev"; then
1438 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439 as_fn_error $? "missing argument to $ac_option"
1440 fi
1441
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1444 no) ;;
1445 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447 esac
1448 fi
1449
1450 # Check all directory arguments for consistency.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir runstatedir
1455 do
1456 eval ac_val=\$$ac_var
1457 # Remove trailing slashes.
1458 case $ac_val in
1459 */ )
1460 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461 eval $ac_var=\$ac_val;;
1462 esac
1463 # Be sure to have absolute directory names.
1464 case $ac_val in
1465 [\\/$]* | ?:[\\/]* ) continue;;
1466 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467 esac
1468 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 done
1470
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1474 build=$build_alias
1475 host=$host_alias
1476 target=$target_alias
1477
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480 if test "x$build_alias" = x; then
1481 cross_compiling=maybe
1482 elif test "x$build_alias" != "x$host_alias"; then
1483 cross_compiling=yes
1484 fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 as_fn_error $? "pwd does not report name of working directory"
1499
1500
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503 ac_srcdir_defaulted=yes
1504 # Try the directory containing this script, then the parent directory.
1505 ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507 X"$as_myself" : 'X\(//\)[^/]' \| \
1508 X"$as_myself" : 'X\(//\)$' \| \
1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 printf "%s\n" X"$as_myself" |
1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512 s//\1/
1513 q
1514 }
1515 /^X\(\/\/\)[^/].*/{
1516 s//\1/
1517 q
1518 }
1519 /^X\(\/\/\)$/{
1520 s//\1/
1521 q
1522 }
1523 /^X\(\/\).*/{
1524 s//\1/
1525 q
1526 }
1527 s/.*/./; q'`
1528 srcdir=$ac_confdir
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530 srcdir=..
1531 fi
1532 else
1533 ac_srcdir_defaulted=no
1534 fi
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542 pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545 srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1566 cat <<_ACEOF
1567 \`configure' configures systemtap 5.1 to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking ...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1591 [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1621 _ACEOF
1622
1623 cat <<\_ACEOF
1624
1625 Program names:
1626 --program-prefix=PREFIX prepend PREFIX to installed program names
1627 --program-suffix=SUFFIX append SUFFIX to installed program names
1628 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1629
1630 System types:
1631 --build=BUILD configure for building on BUILD [guessed]
1632 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1633 --target=TARGET configure for building compilers for TARGET [HOST]
1634 _ACEOF
1635 fi
1636
1637 if test -n "$ac_init_help"; then
1638 case $ac_init_help in
1639 short | recursive ) echo "Configuration of systemtap 5.1:";;
1640 esac
1641 cat <<\_ACEOF
1642
1643 Optional Features:
1644 --disable-option-checking ignore unrecognized --enable/--with options
1645 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1646 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1647 --enable-silent-rules less verbose build output (undo: "make V=1")
1648 --disable-silent-rules verbose build output (undo: "make V=0")
1649 --enable-maintainer-mode
1650 enable make rules and dependencies not useful (and
1651 sometimes confusing) to the casual installer
1652 --enable-dependency-tracking
1653 do not reject slow dependency extractors
1654 --disable-dependency-tracking
1655 speeds up one-time build
1656 --disable-largefile omit support for large files
1657 --disable-nls do not use Native Language Support
1658 --disable-rpath do not hardcode runtime library paths
1659 '--enable-Werror compile with -Werror flags
1660 --enable-prologues make -P prologue-searching default
1661 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1662 --enable-sqlite build with sqlite support
1663 --disable-translator build only runtime utilities
1664 --enable-crash[=DIRECTORY]
1665 enable crash extension (default is disabled).
1666 Optional DIRECTORY is the path to the crash header
1667 file (needed if installed in a non-standard
1668 location).
1669 --enable-docs enable building documentation (default to only
1670 installing prebuilt docs).
1671 --enable-refdocs enable building reference documentation (default on
1672 if other documentation built).
1673 --enable-htmldocs enable building html documentation (default off).
1674 --enable-server enable building of stap-server (default on if nss
1675 etc. found).
1676 --enable-virt enable building of stapvirt support (default on if
1677 libvirt etc. found).
1678 --disable-libvirt Do not use libvirt even if present
1679 --disable-monitor Disable monitor
1680 --enable-http Enable building http web compilation service, if
1681 possible
1682
1683 Optional Packages:
1684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1686 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1687 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1688 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1689 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1690 --without-libintl-prefix don't search for libintl in includedir and libdir
1691 --with-python-sys-prefix
1692 use Python's sys.prefix and sys.exec_prefix values
1693 --with-python_prefix override the default PYTHON_PREFIX
1694 --with-python_exec_prefix
1695 override the default PYTHON_EXEC_PREFIX
1696 --with-debuginfod Enable debuginfo lookups with debuginfod
1697 (auto/yes/no)
1698 --without-nss Do not use NSS even if present
1699 --without-openssl Do not use OPENSSL even if present
1700 --with-dracutstap=DIR Install dracut module files in DIR
1701 --with-dracutbindir=DIR Use the dracut binary located in DIR
1702 --without-avahi Do not use Avahi even if present
1703 --with-rpm query rpm database for missing debuginfos
1704 --with-python3 prefer python version 3
1705 --with-dyninst=DIRECTORY
1706 find dyninst headers/libraries in DIRECTORY
1707 --without-python2-probes
1708 Disable building python version 2 probe support,
1709 even if it is available
1710 --without-python3-probes
1711 Disable building python version 3 probe support,
1712 even if it is available
1713 --without-bpf Do not try to build BPF components
1714 --without-selinux Do not use libselinux even if present
1715 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1716 against (default is /usr/lib/jvm/java)
1717 --with-extra-version=STRING
1718 Add STRING to stap -V version
1719
1720 Some influential environment variables:
1721 PKG_CONFIG path to pkg-config utility
1722 PKG_CONFIG_PATH
1723 directories to add to pkg-config's search path
1724 PKG_CONFIG_LIBDIR
1725 path overriding pkg-config's built-in search path
1726 CC C compiler command
1727 CFLAGS C compiler flags
1728 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1729 nonstandard directory <lib dir>
1730 LIBS libraries to pass to the linker, e.g. -l<library>
1731 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1732 you have headers in a nonstandard directory <include dir>
1733 CXX C++ compiler command
1734 CXXFLAGS C++ compiler flags
1735 CPP C preprocessor
1736 PYTHON the Python interpreter
1737 debuginfod_CFLAGS
1738 C compiler flags for debuginfod, overriding pkg-config
1739 debuginfod_LIBS
1740 linker flags for debuginfod, overriding pkg-config
1741 sqlite3_CFLAGS
1742 C compiler flags for sqlite3, overriding pkg-config
1743 sqlite3_LIBS
1744 linker flags for sqlite3, overriding pkg-config
1745 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1746 nss_LIBS linker flags for nss, overriding pkg-config
1747 openssl_CFLAGS
1748 C compiler flags for openssl, overriding pkg-config
1749 openssl_LIBS
1750 linker flags for openssl, overriding pkg-config
1751 avahi_CFLAGS
1752 C compiler flags for avahi, overriding pkg-config
1753 avahi_LIBS linker flags for avahi, overriding pkg-config
1754 libvirt_CFLAGS
1755 C compiler flags for libvirt, overriding pkg-config
1756 libvirt_LIBS
1757 linker flags for libvirt, overriding pkg-config
1758 libxml2_CFLAGS
1759 C compiler flags for libxml2, overriding pkg-config
1760 libxml2_LIBS
1761 linker flags for libxml2, overriding pkg-config
1762 jsonc_CFLAGS
1763 C compiler flags for jsonc, overriding pkg-config
1764 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1765 ncurses_CFLAGS
1766 C compiler flags for ncurses, overriding pkg-config
1767 ncurses_LIBS
1768 linker flags for ncurses, overriding pkg-config
1769 selinux_CFLAGS
1770 C compiler flags for selinux, overriding pkg-config
1771 selinux_LIBS
1772 linker flags for selinux, overriding pkg-config
1773 libmicrohttpd_CFLAGS
1774 C compiler flags for libmicrohttpd, overriding pkg-config
1775 libmicrohttpd_LIBS
1776 linker flags for libmicrohttpd, overriding pkg-config
1777 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1778 uuid_LIBS linker flags for uuid, overriding pkg-config
1779 libcurl_CFLAGS
1780 C compiler flags for libcurl, overriding pkg-config
1781 libcurl_LIBS
1782 linker flags for libcurl, overriding pkg-config
1783
1784 Use these variables to override the choices made by `configure' or to help
1785 it to find libraries and programs with nonstandard names/locations.
1786
1787 Report bugs to <systemtap@sourceware.org>.
1788 _ACEOF
1789 ac_status=$?
1790 fi
1791
1792 if test "$ac_init_help" = "recursive"; then
1793 # If there are subdirs, report their specific --help.
1794 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1795 test -d "$ac_dir" ||
1796 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1797 continue
1798 ac_builddir=.
1799
1800 case "$ac_dir" in
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 *)
1803 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1804 # A ".." for each directory in $ac_dir_suffix.
1805 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1806 case $ac_top_builddir_sub in
1807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1809 esac ;;
1810 esac
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1815
1816 case $srcdir in
1817 .) # We are building in place.
1818 ac_srcdir=.
1819 ac_top_srcdir=$ac_top_builddir_sub
1820 ac_abs_top_srcdir=$ac_pwd ;;
1821 [\\/]* | ?:[\\/]* ) # Absolute name.
1822 ac_srcdir=$srcdir$ac_dir_suffix;
1823 ac_top_srcdir=$srcdir
1824 ac_abs_top_srcdir=$srcdir ;;
1825 *) # Relative name.
1826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827 ac_top_srcdir=$ac_top_build_prefix$srcdir
1828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 esac
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831
1832 cd "$ac_dir" || { ac_status=$?; continue; }
1833 # Check for configure.gnu first; this name is used for a wrapper for
1834 # Metaconfig's "Configure" on case-insensitive file systems.
1835 if test -f "$ac_srcdir/configure.gnu"; then
1836 echo &&
1837 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1838 elif test -f "$ac_srcdir/configure"; then
1839 echo &&
1840 $SHELL "$ac_srcdir/configure" --help=recursive
1841 else
1842 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843 fi || ac_status=$?
1844 cd "$ac_pwd" || { ac_status=$?; break; }
1845 done
1846 fi
1847
1848 test -n "$ac_init_help" && exit $ac_status
1849 if $ac_init_version; then
1850 cat <<\_ACEOF
1851 systemtap configure 5.1
1852 generated by GNU Autoconf 2.71
1853
1854 Copyright (C) 2021 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1857 _ACEOF
1858 exit
1859 fi
1860
1861 ## ------------------------ ##
1862 ## Autoconf initialization. ##
1863 ## ------------------------ ##
1864
1865 # ac_fn_c_try_compile LINENO
1866 # --------------------------
1867 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_compile ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest.beam
1872 if { { ac_try="$ac_compile"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 printf "%s\n" "$ac_try_echo"; } >&5
1879 (eval "$ac_compile") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest.$ac_objext
1891 then :
1892 ac_retval=0
1893 else $as_nop
1894 printf "%s\n" "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898 fi
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902 } # ac_fn_c_try_compile
1903
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 printf %s "checking for $2... " >&6; }
1913 if eval test \${$3+y}
1914 then :
1915 printf %s "(cached) " >&6
1916 else $as_nop
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"
1923 then :
1924 eval "$3=yes"
1925 else $as_nop
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
1966 printf "%s\n" "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970 fi
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_cxx_try_compile
1975
1976 # ac_fn_c_try_cpp LINENO
1977 # ----------------------
1978 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_c_try_cpp ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_cpp conftest.$ac_ext"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 printf "%s\n" "$ac_try_echo"; } >&5
1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } > conftest.i && {
1998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 }
2001 then :
2002 ac_retval=0
2003 else $as_nop
2004 printf "%s\n" "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 ac_retval=1
2008 fi
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2011
2012 } # ac_fn_c_try_cpp
2013
2014 # ac_fn_c_try_link LINENO
2015 # -----------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_c_try_link ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2021 if { { ac_try="$ac_link"
2022 case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 printf "%s\n" "$ac_try_echo"; } >&5
2028 (eval "$ac_link") 2>conftest.err
2029 ac_status=$?
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2034 fi
2035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; } && {
2037 test -z "$ac_c_werror_flag" ||
2038 test ! -s conftest.err
2039 } && test -s conftest$ac_exeext && {
2040 test "$cross_compiling" = yes ||
2041 test -x conftest$ac_exeext
2042 }
2043 then :
2044 ac_retval=0
2045 else $as_nop
2046 printf "%s\n" "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2058
2059 } # ac_fn_c_try_link
2060
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 printf %s "checking for $2... " >&6; }
2069 if eval test \${$3+y}
2070 then :
2071 printf %s "(cached) " >&6
2072 else $as_nop
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2078
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below. */
2081
2082 #include <limits.h>
2083 #undef $2
2084
2085 /* Override any GCC internal prototype to avoid an error.
2086 Use char because int might match the return type of a GCC
2087 builtin and then its argument prototype would still apply. */
2088 #ifdef __cplusplus
2089 extern "C"
2090 #endif
2091 char $2 ();
2092 /* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095 #if defined __stub_$2 || defined __stub___$2
2096 choke me
2097 #endif
2098
2099 int
2100 main (void)
2101 {
2102 return $2 ();
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_link "$LINENO"
2108 then :
2109 eval "$3=yes"
2110 else $as_nop
2111 eval "$3=no"
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2114 conftest$ac_exeext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 printf "%s\n" "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_func
2122
2123 # ac_fn_c_try_run LINENO
2124 # ----------------------
2125 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2126 # executables *can* be run.
2127 ac_fn_c_try_run ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if { { ac_try="$ac_link"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 printf "%s\n" "$ac_try_echo"; } >&5
2137 (eval "$ac_link") 2>&5
2138 ac_status=$?
2139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2141 { { case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 printf "%s\n" "$ac_try_echo"; } >&5
2147 (eval "$ac_try") 2>&5
2148 ac_status=$?
2149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; }; }
2151 then :
2152 ac_retval=0
2153 else $as_nop
2154 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2155 printf "%s\n" "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=$ac_status
2159 fi
2160 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2163
2164 } # ac_fn_c_try_run
2165
2166 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2167 # ---------------------------------------------------------
2168 # Tests whether HEADER exists and can be compiled using the include files in
2169 # INCLUDES, setting the cache variable VAR accordingly.
2170 ac_fn_cxx_check_header_compile ()
2171 {
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 printf %s "checking for $2... " >&6; }
2175 if eval test \${$3+y}
2176 then :
2177 printf %s "(cached) " >&6
2178 else $as_nop
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 #include <$2>
2183 _ACEOF
2184 if ac_fn_cxx_try_compile "$LINENO"
2185 then :
2186 eval "$3=yes"
2187 else $as_nop
2188 eval "$3=no"
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 fi
2192 eval ac_res=\$$3
2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 printf "%s\n" "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197 } # ac_fn_cxx_check_header_compile
2198
2199 # ac_fn_cxx_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_cxx_try_link ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2206 if { { ac_try="$ac_link"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 printf "%s\n" "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>conftest.err
2214 ac_status=$?
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2219 fi
2220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } && {
2222 test -z "$ac_cxx_werror_flag" ||
2223 test ! -s conftest.err
2224 } && test -s conftest$ac_exeext && {
2225 test "$cross_compiling" = yes ||
2226 test -x conftest$ac_exeext
2227 }
2228 then :
2229 ac_retval=0
2230 else $as_nop
2231 printf "%s\n" "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234 ac_retval=1
2235 fi
2236 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2237 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2238 # interfere with the next link command; also delete a directory that is
2239 # left behind by Apple's compiler. We do this before executing the actions.
2240 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2243
2244 } # ac_fn_cxx_try_link
2245
2246 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2247 # ------------------------------------------------------------------
2248 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2249 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2250 ac_fn_check_decl ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 as_decl_name=`echo $2|sed 's/ *(.*//'`
2254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255 printf %s "checking whether $as_decl_name is declared... " >&6; }
2256 if eval test \${$3+y}
2257 then :
2258 printf %s "(cached) " >&6
2259 else $as_nop
2260 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261 eval ac_save_FLAGS=\$$6
2262 as_fn_append $6 " $5"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main (void)
2268 {
2269 #ifndef $as_decl_name
2270 #ifdef __cplusplus
2271 (void) $as_decl_use;
2272 #else
2273 (void) $as_decl_name;
2274 #endif
2275 #endif
2276
2277 ;
2278 return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"
2282 then :
2283 eval "$3=yes"
2284 else $as_nop
2285 eval "$3=no"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2288 eval $6=\$ac_save_FLAGS
2289
2290 fi
2291 eval ac_res=\$$3
2292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 printf "%s\n" "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_check_decl
2297 ac_configure_args_raw=
2298 for ac_arg
2299 do
2300 case $ac_arg in
2301 *\'*)
2302 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 esac
2304 as_fn_append ac_configure_args_raw " '$ac_arg'"
2305 done
2306
2307 case $ac_configure_args_raw in
2308 *$as_nl*)
2309 ac_safe_unquote= ;;
2310 *)
2311 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2312 ac_unsafe_a="$ac_unsafe_z#~"
2313 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2314 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2315 esac
2316
2317 cat >config.log <<_ACEOF
2318 This file contains any messages produced by compilers while
2319 running configure, to aid debugging if configure makes a mistake.
2320
2321 It was created by systemtap $as_me 5.1, which was
2322 generated by GNU Autoconf 2.71. Invocation command line was
2323
2324 $ $0$ac_configure_args_raw
2325
2326 _ACEOF
2327 exec 5>>config.log
2328 {
2329 cat <<_ASUNAME
2330 ## --------- ##
2331 ## Platform. ##
2332 ## --------- ##
2333
2334 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2335 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2336 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2337 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2338 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2339
2340 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2341 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2342
2343 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2344 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2345 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2346 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2347 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2348 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2349 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2350
2351 _ASUNAME
2352
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 case $as_dir in #(((
2358 '') as_dir=./ ;;
2359 */) ;;
2360 *) as_dir=$as_dir/ ;;
2361 esac
2362 printf "%s\n" "PATH: $as_dir"
2363 done
2364 IFS=$as_save_IFS
2365
2366 } >&5
2367
2368 cat >&5 <<_ACEOF
2369
2370
2371 ## ----------- ##
2372 ## Core tests. ##
2373 ## ----------- ##
2374
2375 _ACEOF
2376
2377
2378 # Keep a trace of the command line.
2379 # Strip out --no-create and --no-recursion so they do not pile up.
2380 # Strip out --silent because we don't want to record it for future runs.
2381 # Also quote any args containing shell meta-characters.
2382 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_configure_args=
2384 ac_configure_args0=
2385 ac_configure_args1=
2386 ac_must_keep_next=false
2387 for ac_pass in 1 2
2388 do
2389 for ac_arg
2390 do
2391 case $ac_arg in
2392 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2394 | -silent | --silent | --silen | --sile | --sil)
2395 continue ;;
2396 *\'*)
2397 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 esac
2399 case $ac_pass in
2400 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 2)
2402 as_fn_append ac_configure_args1 " '$ac_arg'"
2403 if test $ac_must_keep_next = true; then
2404 ac_must_keep_next=false # Got value, back to normal.
2405 else
2406 case $ac_arg in
2407 *=* | --config-cache | -C | -disable-* | --disable-* \
2408 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2409 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2410 | -with-* | --with-* | -without-* | --without-* | --x)
2411 case "$ac_configure_args0 " in
2412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2413 esac
2414 ;;
2415 -* ) ac_must_keep_next=true ;;
2416 esac
2417 fi
2418 as_fn_append ac_configure_args " '$ac_arg'"
2419 ;;
2420 esac
2421 done
2422 done
2423 { ac_configure_args0=; unset ac_configure_args0;}
2424 { ac_configure_args1=; unset ac_configure_args1;}
2425
2426 # When interrupted or exit'd, cleanup temporary files, and complete
2427 # config.log. We remove comments because anyway the quotes in there
2428 # would cause problems or look ugly.
2429 # WARNING: Use '\'' to represent an apostrophe within the trap.
2430 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2431 trap 'exit_status=$?
2432 # Sanitize IFS.
2433 IFS=" "" $as_nl"
2434 # Save into config.log some information that might help in debugging.
2435 {
2436 echo
2437
2438 printf "%s\n" "## ---------------- ##
2439 ## Cache variables. ##
2440 ## ---------------- ##"
2441 echo
2442 # The following way of writing the cache mishandles newlines in values,
2443 (
2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in #(
2447 *${as_nl}*)
2448 case $ac_var in #(
2449 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2450 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2451 esac
2452 case $ac_var in #(
2453 _ | IFS | as_nl) ;; #(
2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2455 *) { eval $ac_var=; unset $ac_var;} ;;
2456 esac ;;
2457 esac
2458 done
2459 (set) 2>&1 |
2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2461 *${as_nl}ac_space=\ *)
2462 sed -n \
2463 "s/'\''/'\''\\\\'\'''\''/g;
2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2465 ;; #(
2466 *)
2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2468 ;;
2469 esac |
2470 sort
2471 )
2472 echo
2473
2474 printf "%s\n" "## ----------------- ##
2475 ## Output variables. ##
2476 ## ----------------- ##"
2477 echo
2478 for ac_var in $ac_subst_vars
2479 do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 printf "%s\n" "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2487
2488 if test -n "$ac_subst_files"; then
2489 printf "%s\n" "## ------------------- ##
2490 ## File substitutions. ##
2491 ## ------------------- ##"
2492 echo
2493 for ac_var in $ac_subst_files
2494 do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in
2497 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 esac
2499 printf "%s\n" "$ac_var='\''$ac_val'\''"
2500 done | sort
2501 echo
2502 fi
2503
2504 if test -s confdefs.h; then
2505 printf "%s\n" "## ----------- ##
2506 ## confdefs.h. ##
2507 ## ----------- ##"
2508 echo
2509 cat confdefs.h
2510 echo
2511 fi
2512 test "$ac_signal" != 0 &&
2513 printf "%s\n" "$as_me: caught signal $ac_signal"
2514 printf "%s\n" "$as_me: exit $exit_status"
2515 } >&5
2516 rm -f core *.core core.conftest.* &&
2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518 exit $exit_status
2519 ' 0
2520 for ac_signal in 1 2 13 15; do
2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 done
2523 ac_signal=0
2524
2525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2526 rm -f -r conftest* confdefs.h
2527
2528 printf "%s\n" "/* confdefs.h */" > confdefs.h
2529
2530 # Predefined preprocessor variables.
2531
2532 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2533
2534 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2535
2536 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2537
2538 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2539
2540 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2541
2542 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2543
2544
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 if test -n "$CONFIG_SITE"; then
2548 ac_site_files="$CONFIG_SITE"
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2551 else
2552 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2553 fi
2554
2555 for ac_site_file in $ac_site_files
2556 do
2557 case $ac_site_file in #(
2558 */*) :
2559 ;; #(
2560 *) :
2561 ac_site_file=./$ac_site_file ;;
2562 esac
2563 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2567 . "$ac_site_file" \
2568 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2572 fi
2573 done
2574
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2581 case $cache_file in
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2584 esac
2585 fi
2586 else
2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2589 >$cache_file
2590 fi
2591
2592 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2593 # Test code for whether the C compiler supports C89 (global declarations)
2594 ac_c_conftest_c89_globals='
2595 /* Does the compiler advertise C89 conformance?
2596 Do not test the value of __STDC__, because some compilers set it to 0
2597 while being otherwise adequately conformant. */
2598 #if !defined __STDC__
2599 # error "Compiler does not advertise C89 conformance"
2600 #endif
2601
2602 #include <stddef.h>
2603 #include <stdarg.h>
2604 struct stat;
2605 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2606 struct buf { int x; };
2607 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2608 static char *e (p, i)
2609 char **p;
2610 int i;
2611 {
2612 return p[i];
2613 }
2614 static char *f (char * (*g) (char **, int), char **p, ...)
2615 {
2616 char *s;
2617 va_list v;
2618 va_start (v,p);
2619 s = g (p, va_arg (v,int));
2620 va_end (v);
2621 return s;
2622 }
2623
2624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2625 function prototypes and stuff, but not \xHH hex character constants.
2626 These do not provoke an error unfortunately, instead are silently treated
2627 as an "x". The following induces an error, until -std is added to get
2628 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2629 array size at least. It is necessary to write \x00 == 0 to get something
2630 that is true only with -std. */
2631 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2632
2633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2634 inside strings and character constants. */
2635 #define FOO(x) '\''x'\''
2636 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2637
2638 int test (int i, double x);
2639 struct s1 {int (*f) (int a);};
2640 struct s2 {int (*f) (double a);};
2641 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2642 int, int);'
2643
2644 # Test code for whether the C compiler supports C89 (body of main).
2645 ac_c_conftest_c89_main='
2646 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2647 '
2648
2649 # Test code for whether the C compiler supports C99 (global declarations)
2650 ac_c_conftest_c99_globals='
2651 // Does the compiler advertise C99 conformance?
2652 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2653 # error "Compiler does not advertise C99 conformance"
2654 #endif
2655
2656 #include <stdbool.h>
2657 extern int puts (const char *);
2658 extern int printf (const char *, ...);
2659 extern int dprintf (int, const char *, ...);
2660 extern void *malloc (size_t);
2661
2662 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2663 // dprintf is used instead of fprintf to avoid needing to declare
2664 // FILE and stderr.
2665 #define debug(...) dprintf (2, __VA_ARGS__)
2666 #define showlist(...) puts (#__VA_ARGS__)
2667 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2668 static void
2669 test_varargs_macros (void)
2670 {
2671 int x = 1234;
2672 int y = 5678;
2673 debug ("Flag");
2674 debug ("X = %d\n", x);
2675 showlist (The first, second, and third items.);
2676 report (x>y, "x is %d but y is %d", x, y);
2677 }
2678
2679 // Check long long types.
2680 #define BIG64 18446744073709551615ull
2681 #define BIG32 4294967295ul
2682 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2683 #if !BIG_OK
2684 #error "your preprocessor is broken"
2685 #endif
2686 #if BIG_OK
2687 #else
2688 #error "your preprocessor is broken"
2689 #endif
2690 static long long int bignum = -9223372036854775807LL;
2691 static unsigned long long int ubignum = BIG64;
2692
2693 struct incomplete_array
2694 {
2695 int datasize;
2696 double data[];
2697 };
2698
2699 struct named_init {
2700 int number;
2701 const wchar_t *name;
2702 double average;
2703 };
2704
2705 typedef const char *ccp;
2706
2707 static inline int
2708 test_restrict (ccp restrict text)
2709 {
2710 // See if C++-style comments work.
2711 // Iterate through items via the restricted pointer.
2712 // Also check for declarations in for loops.
2713 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2714 continue;
2715 return 0;
2716 }
2717
2718 // Check varargs and va_copy.
2719 static bool
2720 test_varargs (const char *format, ...)
2721 {
2722 va_list args;
2723 va_start (args, format);
2724 va_list args_copy;
2725 va_copy (args_copy, args);
2726
2727 const char *str = "";
2728 int number = 0;
2729 float fnumber = 0;
2730
2731 while (*format)
2732 {
2733 switch (*format++)
2734 {
2735 case '\''s'\'': // string
2736 str = va_arg (args_copy, const char *);
2737 break;
2738 case '\''d'\'': // int
2739 number = va_arg (args_copy, int);
2740 break;
2741 case '\''f'\'': // float
2742 fnumber = va_arg (args_copy, double);
2743 break;
2744 default:
2745 break;
2746 }
2747 }
2748 va_end (args_copy);
2749 va_end (args);
2750
2751 return *str && number && fnumber;
2752 }
2753 '
2754
2755 # Test code for whether the C compiler supports C99 (body of main).
2756 ac_c_conftest_c99_main='
2757 // Check bool.
2758 _Bool success = false;
2759 success |= (argc != 0);
2760
2761 // Check restrict.
2762 if (test_restrict ("String literal") == 0)
2763 success = true;
2764 char *restrict newvar = "Another string";
2765
2766 // Check varargs.
2767 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2768 test_varargs_macros ();
2769
2770 // Check flexible array members.
2771 struct incomplete_array *ia =
2772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2773 ia->datasize = 10;
2774 for (int i = 0; i < ia->datasize; ++i)
2775 ia->data[i] = i * 1.234;
2776
2777 // Check named initializers.
2778 struct named_init ni = {
2779 .number = 34,
2780 .name = L"Test wide string",
2781 .average = 543.34343,
2782 };
2783
2784 ni.number = 58;
2785
2786 int dynamic_array[ni.number];
2787 dynamic_array[0] = argv[0][0];
2788 dynamic_array[ni.number - 1] = 543;
2789
2790 // work around unused variable warnings
2791 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2792 || dynamic_array[ni.number - 1] != 543);
2793 '
2794
2795 # Test code for whether the C compiler supports C11 (global declarations)
2796 ac_c_conftest_c11_globals='
2797 // Does the compiler advertise C11 conformance?
2798 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2799 # error "Compiler does not advertise C11 conformance"
2800 #endif
2801
2802 // Check _Alignas.
2803 char _Alignas (double) aligned_as_double;
2804 char _Alignas (0) no_special_alignment;
2805 extern char aligned_as_int;
2806 char _Alignas (0) _Alignas (int) aligned_as_int;
2807
2808 // Check _Alignof.
2809 enum
2810 {
2811 int_alignment = _Alignof (int),
2812 int_array_alignment = _Alignof (int[100]),
2813 char_alignment = _Alignof (char)
2814 };
2815 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2816
2817 // Check _Noreturn.
2818 int _Noreturn does_not_return (void) { for (;;) continue; }
2819
2820 // Check _Static_assert.
2821 struct test_static_assert
2822 {
2823 int x;
2824 _Static_assert (sizeof (int) <= sizeof (long int),
2825 "_Static_assert does not work in struct");
2826 long int y;
2827 };
2828
2829 // Check UTF-8 literals.
2830 #define u8 syntax error!
2831 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2832
2833 // Check duplicate typedefs.
2834 typedef long *long_ptr;
2835 typedef long int *long_ptr;
2836 typedef long_ptr long_ptr;
2837
2838 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2839 struct anonymous
2840 {
2841 union {
2842 struct { int i; int j; };
2843 struct { int k; long int l; } w;
2844 };
2845 int m;
2846 } v1;
2847 '
2848
2849 # Test code for whether the C compiler supports C11 (body of main).
2850 ac_c_conftest_c11_main='
2851 _Static_assert ((offsetof (struct anonymous, i)
2852 == offsetof (struct anonymous, w.k)),
2853 "Anonymous union alignment botch");
2854 v1.i = 2;
2855 v1.w.k = 5;
2856 ok |= v1.i != 5;
2857 '
2858
2859 # Test code for whether the C compiler supports C11 (complete).
2860 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2861 ${ac_c_conftest_c99_globals}
2862 ${ac_c_conftest_c11_globals}
2863
2864 int
2865 main (int argc, char **argv)
2866 {
2867 int ok = 0;
2868 ${ac_c_conftest_c89_main}
2869 ${ac_c_conftest_c99_main}
2870 ${ac_c_conftest_c11_main}
2871 return ok;
2872 }
2873 "
2874
2875 # Test code for whether the C compiler supports C99 (complete).
2876 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2877 ${ac_c_conftest_c99_globals}
2878
2879 int
2880 main (int argc, char **argv)
2881 {
2882 int ok = 0;
2883 ${ac_c_conftest_c89_main}
2884 ${ac_c_conftest_c99_main}
2885 return ok;
2886 }
2887 "
2888
2889 # Test code for whether the C compiler supports C89 (complete).
2890 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2891
2892 int
2893 main (int argc, char **argv)
2894 {
2895 int ok = 0;
2896 ${ac_c_conftest_c89_main}
2897 return ok;
2898 }
2899 "
2900
2901 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2902 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2903 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2904 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2905 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2906 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2907 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2908 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2909 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2910 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2911 # Test code for whether the C++ compiler supports C++98 (global declarations)
2912 ac_cxx_conftest_cxx98_globals='
2913 // Does the compiler advertise C++98 conformance?
2914 #if !defined __cplusplus || __cplusplus < 199711L
2915 # error "Compiler does not advertise C++98 conformance"
2916 #endif
2917
2918 // These inclusions are to reject old compilers that
2919 // lack the unsuffixed header files.
2920 #include <cstdlib>
2921 #include <exception>
2922
2923 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2924 extern void assert (int);
2925 namespace std {
2926 extern int strcmp (const char *, const char *);
2927 }
2928
2929 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2930 using std::exception;
2931 using std::strcmp;
2932
2933 namespace {
2934
2935 void test_exception_syntax()
2936 {
2937 try {
2938 throw "test";
2939 } catch (const char *s) {
2940 // Extra parentheses suppress a warning when building autoconf itself,
2941 // due to lint rules shared with more typical C programs.
2942 assert (!(strcmp) (s, "test"));
2943 }
2944 }
2945
2946 template <typename T> struct test_template
2947 {
2948 T const val;
2949 explicit test_template(T t) : val(t) {}
2950 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2951 };
2952
2953 } // anonymous namespace
2954 '
2955
2956 # Test code for whether the C++ compiler supports C++98 (body of main)
2957 ac_cxx_conftest_cxx98_main='
2958 assert (argc);
2959 assert (! argv[0]);
2960 {
2961 test_exception_syntax ();
2962 test_template<double> tt (2.0);
2963 assert (tt.add (4) == 6.0);
2964 assert (true && !false);
2965 }
2966 '
2967
2968 # Test code for whether the C++ compiler supports C++11 (global declarations)
2969 ac_cxx_conftest_cxx11_globals='
2970 // Does the compiler advertise C++ 2011 conformance?
2971 #if !defined __cplusplus || __cplusplus < 201103L
2972 # error "Compiler does not advertise C++11 conformance"
2973 #endif
2974
2975 namespace cxx11test
2976 {
2977 constexpr int get_val() { return 20; }
2978
2979 struct testinit
2980 {
2981 int i;
2982 double d;
2983 };
2984
2985 class delegate
2986 {
2987 public:
2988 delegate(int n) : n(n) {}
2989 delegate(): delegate(2354) {}
2990
2991 virtual int getval() { return this->n; };
2992 protected:
2993 int n;
2994 };
2995
2996 class overridden : public delegate
2997 {
2998 public:
2999 overridden(int n): delegate(n) {}
3000 virtual int getval() override final { return this->n * 2; }
3001 };
3002
3003 class nocopy
3004 {
3005 public:
3006 nocopy(int i): i(i) {}
3007 nocopy() = default;
3008 nocopy(const nocopy&) = delete;
3009 nocopy & operator=(const nocopy&) = delete;
3010 private:
3011 int i;
3012 };
3013
3014 // for testing lambda expressions
3015 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3016 {
3017 return f(v);
3018 }
3019
3020 // for testing variadic templates and trailing return types
3021 template <typename V> auto sum(V first) -> V
3022 {
3023 return first;
3024 }
3025 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3026 {
3027 return first + sum(rest...);
3028 }
3029 }
3030 '
3031
3032 # Test code for whether the C++ compiler supports C++11 (body of main)
3033 ac_cxx_conftest_cxx11_main='
3034 {
3035 // Test auto and decltype
3036 auto a1 = 6538;
3037 auto a2 = 48573953.4;
3038 auto a3 = "String literal";
3039
3040 int total = 0;
3041 for (auto i = a3; *i; ++i) { total += *i; }
3042
3043 decltype(a2) a4 = 34895.034;
3044 }
3045 {
3046 // Test constexpr
3047 short sa[cxx11test::get_val()] = { 0 };
3048 }
3049 {
3050 // Test initializer lists
3051 cxx11test::testinit il = { 4323, 435234.23544 };
3052 }
3053 {
3054 // Test range-based for
3055 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3056 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3057 for (auto &x : array) { x += 23; }
3058 }
3059 {
3060 // Test lambda expressions
3061 using cxx11test::eval;
3062 assert (eval ([](int x) { return x*2; }, 21) == 42);
3063 double d = 2.0;
3064 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3065 assert (d == 5.0);
3066 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3067 assert (d == 5.0);
3068 }
3069 {
3070 // Test use of variadic templates
3071 using cxx11test::sum;
3072 auto a = sum(1);
3073 auto b = sum(1, 2);
3074 auto c = sum(1.0, 2.0, 3.0);
3075 }
3076 {
3077 // Test constructor delegation
3078 cxx11test::delegate d1;
3079 cxx11test::delegate d2();
3080 cxx11test::delegate d3(45);
3081 }
3082 {
3083 // Test override and final
3084 cxx11test::overridden o1(55464);
3085 }
3086 {
3087 // Test nullptr
3088 char *c = nullptr;
3089 }
3090 {
3091 // Test template brackets
3092 test_template<::test_template<int>> v(test_template<int>(12));
3093 }
3094 {
3095 // Unicode literals
3096 char const *utf8 = u8"UTF-8 string \u2500";
3097 char16_t const *utf16 = u"UTF-8 string \u2500";
3098 char32_t const *utf32 = U"UTF-32 string \u2500";
3099 }
3100 '
3101
3102 # Test code for whether the C compiler supports C++11 (complete).
3103 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3104 ${ac_cxx_conftest_cxx11_globals}
3105
3106 int
3107 main (int argc, char **argv)
3108 {
3109 int ok = 0;
3110 ${ac_cxx_conftest_cxx98_main}
3111 ${ac_cxx_conftest_cxx11_main}
3112 return ok;
3113 }
3114 "
3115
3116 # Test code for whether the C compiler supports C++98 (complete).
3117 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3118 int
3119 main (int argc, char **argv)
3120 {
3121 int ok = 0;
3122 ${ac_cxx_conftest_cxx98_main}
3123 return ok;
3124 }
3125 "
3126
3127 gt_needs="$gt_needs "
3128
3129 # Auxiliary files required by this configure script.
3130 ac_aux_files="config.rpath ar-lib compile missing install-sh config.guess config.sub"
3131
3132 # Locations in which to look for auxiliary files.
3133 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3134
3135 # Search for a directory containing all of the required auxiliary files,
3136 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3137 # If we don't find one directory that contains all the files we need,
3138 # we report the set of missing files from the *first* directory in
3139 # $ac_aux_dir_candidates and give up.
3140 ac_missing_aux_files=""
3141 ac_first_candidate=:
3142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 as_found=false
3145 for as_dir in $ac_aux_dir_candidates
3146 do
3147 IFS=$as_save_IFS
3148 case $as_dir in #(((
3149 '') as_dir=./ ;;
3150 */) ;;
3151 *) as_dir=$as_dir/ ;;
3152 esac
3153 as_found=:
3154
3155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3156 ac_aux_dir_found=yes
3157 ac_install_sh=
3158 for ac_aux in $ac_aux_files
3159 do
3160 # As a special case, if "install-sh" is required, that requirement
3161 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3162 # and $ac_install_sh is set appropriately for whichever one is found.
3163 if test x"$ac_aux" = x"install-sh"
3164 then
3165 if test -f "${as_dir}install-sh"; then
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3167 ac_install_sh="${as_dir}install-sh -c"
3168 elif test -f "${as_dir}install.sh"; then
3169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3170 ac_install_sh="${as_dir}install.sh -c"
3171 elif test -f "${as_dir}shtool"; then
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3173 ac_install_sh="${as_dir}shtool install -c"
3174 else
3175 ac_aux_dir_found=no
3176 if $ac_first_candidate; then
3177 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3178 else
3179 break
3180 fi
3181 fi
3182 else
3183 if test -f "${as_dir}${ac_aux}"; then
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3185 else
3186 ac_aux_dir_found=no
3187 if $ac_first_candidate; then
3188 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3189 else
3190 break
3191 fi
3192 fi
3193 fi
3194 done
3195 if test "$ac_aux_dir_found" = yes; then
3196 ac_aux_dir="$as_dir"
3197 break
3198 fi
3199 ac_first_candidate=false
3200
3201 as_found=false
3202 done
3203 IFS=$as_save_IFS
3204 if $as_found
3205 then :
3206
3207 else $as_nop
3208 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3209 fi
3210
3211
3212 # These three variables are undocumented and unsupported,
3213 # and are intended to be withdrawn in a future Autoconf release.
3214 # They can cause serious problems if a builder's source tree is in a directory
3215 # whose full name contains unusual characters.
3216 if test -f "${ac_aux_dir}config.guess"; then
3217 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3218 fi
3219 if test -f "${ac_aux_dir}config.sub"; then
3220 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3221 fi
3222 if test -f "$ac_aux_dir/configure"; then
3223 ac_configure="$SHELL ${ac_aux_dir}configure"
3224 fi
3225
3226 # Check that the precious variables saved in the cache have kept the same
3227 # value.
3228 ac_cache_corrupted=false
3229 for ac_var in $ac_precious_vars; do
3230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3231 eval ac_new_set=\$ac_env_${ac_var}_set
3232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3233 eval ac_new_val=\$ac_env_${ac_var}_value
3234 case $ac_old_set,$ac_new_set in
3235 set,)
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3237 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3239 ,set)
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3241 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3243 ,);;
3244 *)
3245 if test "x$ac_old_val" != "x$ac_new_val"; then
3246 # differences in whitespace do not lead to failure.
3247 ac_old_val_w=`echo x $ac_old_val`
3248 ac_new_val_w=`echo x $ac_new_val`
3249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3251 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3252 ac_cache_corrupted=:
3253 else
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3255 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3256 eval $ac_var=\$ac_old_val
3257 fi
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3259 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3261 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3262 fi;;
3263 esac
3264 # Pass precious variables to config.status.
3265 if test "$ac_new_set" = set; then
3266 case $ac_new_val in
3267 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3268 *) ac_arg=$ac_var=$ac_new_val ;;
3269 esac
3270 case " $ac_configure_args " in
3271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3273 esac
3274 fi
3275 done
3276 if $ac_cache_corrupted; then
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3280 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3281 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3282 and start over" "$LINENO" 5
3283 fi
3284 ## -------------------- ##
3285 ## Main body of script. ##
3286 ## -------------------- ##
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293
3294
3295
3296
3297
3298
3299 # Make sure we can run config.sub.
3300 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3301 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3302
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3304 printf %s "checking build system type... " >&6; }
3305 if test ${ac_cv_build+y}
3306 then :
3307 printf %s "(cached) " >&6
3308 else $as_nop
3309 ac_build_alias=$build_alias
3310 test "x$ac_build_alias" = x &&
3311 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3312 test "x$ac_build_alias" = x &&
3313 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3314 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3315 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3316
3317 fi
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3319 printf "%s\n" "$ac_cv_build" >&6; }
3320 case $ac_cv_build in
3321 *-*-*) ;;
3322 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3323 esac
3324 build=$ac_cv_build
3325 ac_save_IFS=$IFS; IFS='-'
3326 set x $ac_cv_build
3327 shift
3328 build_cpu=$1
3329 build_vendor=$2
3330 shift; shift
3331 # Remember, the first character of IFS is used to create $*,
3332 # except with old shells:
3333 build_os=$*
3334 IFS=$ac_save_IFS
3335 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3336
3337
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3339 printf %s "checking host system type... " >&6; }
3340 if test ${ac_cv_host+y}
3341 then :
3342 printf %s "(cached) " >&6
3343 else $as_nop
3344 if test "x$host_alias" = x; then
3345 ac_cv_host=$ac_cv_build
3346 else
3347 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3348 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3349 fi
3350
3351 fi
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 printf "%s\n" "$ac_cv_host" >&6; }
3354 case $ac_cv_host in
3355 *-*-*) ;;
3356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3357 esac
3358 host=$ac_cv_host
3359 ac_save_IFS=$IFS; IFS='-'
3360 set x $ac_cv_host
3361 shift
3362 host_cpu=$1
3363 host_vendor=$2
3364 shift; shift
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3367 host_os=$*
3368 IFS=$ac_save_IFS
3369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370
3371
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3373 printf %s "checking target system type... " >&6; }
3374 if test ${ac_cv_target+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test "x$target_alias" = x; then
3379 ac_cv_target=$ac_cv_host
3380 else
3381 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3382 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3383 fi
3384
3385 fi
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3387 printf "%s\n" "$ac_cv_target" >&6; }
3388 case $ac_cv_target in
3389 *-*-*) ;;
3390 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3391 esac
3392 target=$ac_cv_target
3393 ac_save_IFS=$IFS; IFS='-'
3394 set x $ac_cv_target
3395 shift
3396 target_cpu=$1
3397 target_vendor=$2
3398 shift; shift
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3401 target_os=$*
3402 IFS=$ac_save_IFS
3403 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3404
3405
3406 # The aliases save the names the user supplied, while $host etc.
3407 # will get canonicalized.
3408 test -n "$target_alias" &&
3409 test "$program_prefix$program_suffix$program_transform_name" = \
3410 NONENONEs,x,x, &&
3411 program_prefix=${target_alias}-
3412
3413
3414 am__api_version='1.16'
3415
3416
3417 # Find a good install program. We prefer a C program (faster),
3418 # so one script is as good as another. But avoid the broken or
3419 # incompatible versions:
3420 # SysV /etc/install, /usr/sbin/install
3421 # SunOS /usr/etc/install
3422 # IRIX /sbin/install
3423 # AIX /bin/install
3424 # AmigaOS /C/install, which installs bootblocks on floppy discs
3425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3428 # OS/2's system install, which has a completely different semantic
3429 # ./install, which can be erroneously created by make from ./install.sh.
3430 # Reject install programs that cannot install multiple files.
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3432 printf %s "checking for a BSD-compatible install... " >&6; }
3433 if test -z "$INSTALL"; then
3434 if test ${ac_cv_path_install+y}
3435 then :
3436 printf %s "(cached) " >&6
3437 else $as_nop
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 case $as_dir in #(((
3443 '') as_dir=./ ;;
3444 */) ;;
3445 *) as_dir=$as_dir/ ;;
3446 esac
3447 # Account for fact that we put trailing slashes in our PATH walk.
3448 case $as_dir in #((
3449 ./ | /[cC]/* | \
3450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3452 /usr/ucb/* ) ;;
3453 *)
3454 # OSF1 and SCO ODT 3.0 have their own names for install.
3455 # Don't use installbsd from OSF since it installs stuff as root
3456 # by default.
3457 for ac_prog in ginstall scoinst install; do
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3460 if test $ac_prog = install &&
3461 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3462 # AIX install. It has an incompatible calling convention.
3463 :
3464 elif test $ac_prog = install &&
3465 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3466 # program-specific install script used by HP pwplus--don't use.
3467 :
3468 else
3469 rm -rf conftest.one conftest.two conftest.dir
3470 echo one > conftest.one
3471 echo two > conftest.two
3472 mkdir conftest.dir
3473 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3474 test -s conftest.one && test -s conftest.two &&
3475 test -s conftest.dir/conftest.one &&
3476 test -s conftest.dir/conftest.two
3477 then
3478 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3479 break 3
3480 fi
3481 fi
3482 fi
3483 done
3484 done
3485 ;;
3486 esac
3487
3488 done
3489 IFS=$as_save_IFS
3490
3491 rm -rf conftest.one conftest.two conftest.dir
3492
3493 fi
3494 if test ${ac_cv_path_install+y}; then
3495 INSTALL=$ac_cv_path_install
3496 else
3497 # As a last resort, use the slow shell script. Don't cache a
3498 # value for INSTALL within a source directory, because that will
3499 # break other packages using the cache if that directory is
3500 # removed, or if the value is a relative name.
3501 INSTALL=$ac_install_sh
3502 fi
3503 fi
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3505 printf "%s\n" "$INSTALL" >&6; }
3506
3507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3508 # It thinks the first close brace ends the variable substitution.
3509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3510
3511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3512
3513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3514
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3516 printf %s "checking whether build environment is sane... " >&6; }
3517 # Reject unsafe characters in $srcdir or the absolute working directory
3518 # name. Accept space and tab only in the latter.
3519 am_lf='
3520 '
3521 case `pwd` in
3522 *[\\\"\#\$\&\'\`$am_lf]*)
3523 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3524 esac
3525 case $srcdir in
3526 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3527 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3528 esac
3529
3530 # Do 'set' in a subshell so we don't clobber the current shell's
3531 # arguments. Must try -L first in case configure is actually a
3532 # symlink; some systems play weird games with the mod time of symlinks
3533 # (eg FreeBSD returns the mod time of the symlink's containing
3534 # directory).
3535 if (
3536 am_has_slept=no
3537 for am_try in 1 2; do
3538 echo "timestamp, slept: $am_has_slept" > conftest.file
3539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3540 if test "$*" = "X"; then
3541 # -L didn't work.
3542 set X `ls -t "$srcdir/configure" conftest.file`
3543 fi
3544 if test "$*" != "X $srcdir/configure conftest.file" \
3545 && test "$*" != "X conftest.file $srcdir/configure"; then
3546
3547 # If neither matched, then we have a broken ls. This can happen
3548 # if, for instance, CONFIG_SHELL is bash and it inherits a
3549 # broken ls alias from the environment. This has actually
3550 # happened. Such a system could not be considered "sane".
3551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3552 alias in your environment" "$LINENO" 5
3553 fi
3554 if test "$2" = conftest.file || test $am_try -eq 2; then
3555 break
3556 fi
3557 # Just in case.
3558 sleep 1
3559 am_has_slept=yes
3560 done
3561 test "$2" = conftest.file
3562 )
3563 then
3564 # Ok.
3565 :
3566 else
3567 as_fn_error $? "newly created file is older than distributed files!
3568 Check your system clock" "$LINENO" 5
3569 fi
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 printf "%s\n" "yes" >&6; }
3572 # If we didn't sleep, we still need to ensure time stamps of config.status and
3573 # generated files are strictly newer.
3574 am_sleep_pid=
3575 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3576 ( sleep 1 ) &
3577 am_sleep_pid=$!
3578 fi
3579
3580 rm -f conftest.file
3581
3582 test "$program_prefix" != NONE &&
3583 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3584 # Use a double $ so make ignores it.
3585 test "$program_suffix" != NONE &&
3586 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3587 # Double any \ or $.
3588 # By default was `s,x,x', remove it if useless.
3589 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3590 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3591
3592
3593 # Expand $ac_aux_dir to an absolute path.
3594 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3595
3596
3597 if test x"${MISSING+set}" != xset; then
3598 MISSING="\${SHELL} '$am_aux_dir/missing'"
3599 fi
3600 # Use eval to expand $SHELL
3601 if eval "$MISSING --is-lightweight"; then
3602 am_missing_run="$MISSING "
3603 else
3604 am_missing_run=
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3606 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3607 fi
3608
3609 if test x"${install_sh+set}" != xset; then
3610 case $am_aux_dir in
3611 *\ * | *\ *)
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613 *)
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3615 esac
3616 fi
3617
3618 # Installed binaries are usually stripped using 'strip' when the user
3619 # run "make install-strip". However 'strip' might not be the right
3620 # tool to use in cross-compilation environments, therefore Automake
3621 # will honor the 'STRIP' environment variable to overrule this program.
3622 if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}strip; ac_word=$2
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 printf %s "checking for $ac_word... " >&6; }
3628 if test ${ac_cv_prog_STRIP+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else $as_nop
3632 if test -n "$STRIP"; then
3633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 case $as_dir in #(((
3640 '') as_dir=./ ;;
3641 */) ;;
3642 *) as_dir=$as_dir/ ;;
3643 esac
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 STRIP=$ac_cv_prog_STRIP
3657 if test -n "$STRIP"; then
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3659 printf "%s\n" "$STRIP" >&6; }
3660 else
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 printf "%s\n" "no" >&6; }
3663 fi
3664
3665
3666 fi
3667 if test -z "$ac_cv_prog_STRIP"; then
3668 ac_ct_STRIP=$STRIP
3669 # Extract the first word of "strip", so it can be a program name with args.
3670 set dummy strip; ac_word=$2
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 printf %s "checking for $ac_word... " >&6; }
3673 if test ${ac_cv_prog_ac_ct_STRIP+y}
3674 then :
3675 printf %s "(cached) " >&6
3676 else $as_nop
3677 if test -n "$ac_ct_STRIP"; then
3678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 case $as_dir in #(((
3685 '') as_dir=./ ;;
3686 */) ;;
3687 *) as_dir=$as_dir/ ;;
3688 esac
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_ac_ct_STRIP="strip"
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695 done
3696 done
3697 IFS=$as_save_IFS
3698
3699 fi
3700 fi
3701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3702 if test -n "$ac_ct_STRIP"; then
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3704 printf "%s\n" "$ac_ct_STRIP" >&6; }
3705 else
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 printf "%s\n" "no" >&6; }
3708 fi
3709
3710 if test "x$ac_ct_STRIP" = x; then
3711 STRIP=":"
3712 else
3713 case $cross_compiling:$ac_tool_warned in
3714 yes:)
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717 ac_tool_warned=yes ;;
3718 esac
3719 STRIP=$ac_ct_STRIP
3720 fi
3721 else
3722 STRIP="$ac_cv_prog_STRIP"
3723 fi
3724
3725 fi
3726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3727
3728
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3730 printf %s "checking for a race-free mkdir -p... " >&6; }
3731 if test -z "$MKDIR_P"; then
3732 if test ${ac_cv_path_mkdir+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else $as_nop
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3738 do
3739 IFS=$as_save_IFS
3740 case $as_dir in #(((
3741 '') as_dir=./ ;;
3742 */) ;;
3743 *) as_dir=$as_dir/ ;;
3744 esac
3745 for ac_prog in mkdir gmkdir; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3748 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3749 'mkdir ('*'coreutils) '* | \
3750 'BusyBox '* | \
3751 'mkdir (fileutils) '4.1*)
3752 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3753 break 3;;
3754 esac
3755 done
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761
3762 test -d ./--version && rmdir ./--version
3763 if test ${ac_cv_path_mkdir+y}; then
3764 MKDIR_P="$ac_cv_path_mkdir -p"
3765 else
3766 # As a last resort, use the slow shell script. Don't cache a
3767 # value for MKDIR_P within a source directory, because that will
3768 # break other packages using the cache if that directory is
3769 # removed, or if the value is a relative name.
3770 MKDIR_P="$ac_install_sh -d"
3771 fi
3772 fi
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3774 printf "%s\n" "$MKDIR_P" >&6; }
3775
3776 for ac_prog in gawk mawk nawk awk
3777 do
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 printf %s "checking for $ac_word... " >&6; }
3782 if test ${ac_cv_prog_AWK+y}
3783 then :
3784 printf %s "(cached) " >&6
3785 else $as_nop
3786 if test -n "$AWK"; then
3787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 case $as_dir in #(((
3794 '') as_dir=./ ;;
3795 */) ;;
3796 *) as_dir=$as_dir/ ;;
3797 esac
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_AWK="$ac_prog"
3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 AWK=$ac_cv_prog_AWK
3811 if test -n "$AWK"; then
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3813 printf "%s\n" "$AWK" >&6; }
3814 else
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 printf "%s\n" "no" >&6; }
3817 fi
3818
3819
3820 test -n "$AWK" && break
3821 done
3822
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3824 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3825 set x ${MAKE-make}
3826 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3827 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3828 then :
3829 printf %s "(cached) " >&6
3830 else $as_nop
3831 cat >conftest.make <<\_ACEOF
3832 SHELL = /bin/sh
3833 all:
3834 @echo '@@@%%%=$(MAKE)=@@@%%%'
3835 _ACEOF
3836 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 *@@@%%%=?*=@@@%%%*)
3839 eval ac_cv_prog_make_${ac_make}_set=yes;;
3840 *)
3841 eval ac_cv_prog_make_${ac_make}_set=no;;
3842 esac
3843 rm -f conftest.make
3844 fi
3845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 printf "%s\n" "yes" >&6; }
3848 SET_MAKE=
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 SET_MAKE="MAKE=${MAKE-make}"
3853 fi
3854
3855 rm -rf .tst 2>/dev/null
3856 mkdir .tst 2>/dev/null
3857 if test -d .tst; then
3858 am__leading_dot=.
3859 else
3860 am__leading_dot=_
3861 fi
3862 rmdir .tst 2>/dev/null
3863
3864 # Check whether --enable-silent-rules was given.
3865 if test ${enable_silent_rules+y}
3866 then :
3867 enableval=$enable_silent_rules;
3868 fi
3869
3870 case $enable_silent_rules in # (((
3871 yes) AM_DEFAULT_VERBOSITY=0;;
3872 no) AM_DEFAULT_VERBOSITY=1;;
3873 *) AM_DEFAULT_VERBOSITY=1;;
3874 esac
3875 am_make=${MAKE-make}
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3877 printf %s "checking whether $am_make supports nested variables... " >&6; }
3878 if test ${am_cv_make_support_nested_variables+y}
3879 then :
3880 printf %s "(cached) " >&6
3881 else $as_nop
3882 if printf "%s\n" 'TRUE=$(BAR$(V))
3883 BAR0=false
3884 BAR1=true
3885 V=1
3886 am__doit:
3887 @$(TRUE)
3888 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3889 am_cv_make_support_nested_variables=yes
3890 else
3891 am_cv_make_support_nested_variables=no
3892 fi
3893 fi
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3895 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3896 if test $am_cv_make_support_nested_variables = yes; then
3897 AM_V='$(V)'
3898 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3899 else
3900 AM_V=$AM_DEFAULT_VERBOSITY
3901 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3902 fi
3903 AM_BACKSLASH='\'
3904
3905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3907 # is not polluted with repeated "-I."
3908 am__isrc=' -I$(srcdir)'
3909 # test to see if srcdir already configured
3910 if test -f $srcdir/config.status; then
3911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3912 fi
3913 fi
3914
3915 # test whether we have cygpath
3916 if test -z "$CYGPATH_W"; then
3917 if (cygpath --version) >/dev/null 2>/dev/null; then
3918 CYGPATH_W='cygpath -w'
3919 else
3920 CYGPATH_W=echo
3921 fi
3922 fi
3923
3924
3925 # Define the identity of the package.
3926 PACKAGE='systemtap'
3927 VERSION='5.1'
3928
3929
3930 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3931
3932
3933 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3934
3935 # Some tools Automake needs.
3936
3937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3938
3939
3940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3941
3942
3943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3944
3945
3946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3947
3948
3949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3950
3951 # For better backward compatibility. To be removed once Automake 1.9.x
3952 # dies out for good. For more background, see:
3953 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3954 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3955 mkdir_p='$(MKDIR_P)'
3956
3957 # We need awk for the "check" target (and possibly the TAP driver). The
3958 # system "awk" is bad on some platforms.
3959 # Always define AMTAR for backward compatibility. Yes, it's still used
3960 # in the wild :-( We should find a proper way to deprecate it ...
3961 AMTAR='$${TAR-tar}'
3962
3963
3964 # We'll loop over all known methods to create a tar archive until one works.
3965 _am_tools='gnutar pax cpio none'
3966
3967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3968
3969
3970
3971
3972
3973 # Variables for tags utilities; see am/tags.am
3974 if test -z "$CTAGS"; then
3975 CTAGS=ctags
3976 fi
3977
3978 if test -z "$ETAGS"; then
3979 ETAGS=etags
3980 fi
3981
3982 if test -z "$CSCOPE"; then
3983 CSCOPE=cscope
3984 fi
3985
3986
3987
3988 # POSIX will say in a future version that running "rm -f" with no argument
3989 # is OK; and we want to be able to make that assumption in our Makefile
3990 # recipes. So use an aggressive probe to check that the usage we want is
3991 # actually supported "in the wild" to an acceptable degree.
3992 # See automake bug#10828.
3993 # To make any issue more visible, cause the running configure to be aborted
3994 # by default if the 'rm' program in use doesn't match our expectations; the
3995 # user can still override this though.
3996 if rm -f && rm -fr && rm -rf; then : OK; else
3997 cat >&2 <<'END'
3998 Oops!
3999
4000 Your 'rm' program seems unable to run without file operands specified
4001 on the command line, even when the '-f' option is present. This is contrary
4002 to the behaviour of most rm programs out there, and not conforming with
4003 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4004
4005 Please tell bug-automake@gnu.org about your system, including the value
4006 of your $PATH and any error possibly output before this message. This
4007 can help us improve future automake versions.
4008
4009 END
4010 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4011 echo 'Configuration will proceed anyway, since you have set the' >&2
4012 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4013 echo >&2
4014 else
4015 cat >&2 <<'END'
4016 Aborting the configuration process, to ensure you take notice of the issue.
4017
4018 You can download and install GNU coreutils to get an 'rm' implementation
4019 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4020
4021 If you want to complete the configuration process using your problematic
4022 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4023 to "yes", and re-run configure.
4024
4025 END
4026 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4027 fi
4028 fi
4029
4030
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4032 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4033 # Check whether --enable-maintainer-mode was given.
4034 if test ${enable_maintainer_mode+y}
4035 then :
4036 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4037 else $as_nop
4038 USE_MAINTAINER_MODE=no
4039 fi
4040
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4042 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4043 if test $USE_MAINTAINER_MODE = yes; then
4044 MAINTAINER_MODE_TRUE=
4045 MAINTAINER_MODE_FALSE='#'
4046 else
4047 MAINTAINER_MODE_TRUE='#'
4048 MAINTAINER_MODE_FALSE=
4049 fi
4050
4051 MAINT=$MAINTAINER_MODE_TRUE
4052
4053
4054
4055 # Check whether --enable-silent-rules was given.
4056 if test ${enable_silent_rules+y}
4057 then :
4058 enableval=$enable_silent_rules;
4059 fi
4060
4061 case $enable_silent_rules in # (((
4062 yes) AM_DEFAULT_VERBOSITY=0;;
4063 no) AM_DEFAULT_VERBOSITY=1;;
4064 *) AM_DEFAULT_VERBOSITY=0;;
4065 esac
4066 am_make=${MAKE-make}
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4068 printf %s "checking whether $am_make supports nested variables... " >&6; }
4069 if test ${am_cv_make_support_nested_variables+y}
4070 then :
4071 printf %s "(cached) " >&6
4072 else $as_nop
4073 if printf "%s\n" 'TRUE=$(BAR$(V))
4074 BAR0=false
4075 BAR1=true
4076 V=1
4077 am__doit:
4078 @$(TRUE)
4079 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4080 am_cv_make_support_nested_variables=yes
4081 else
4082 am_cv_make_support_nested_variables=no
4083 fi
4084 fi
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4086 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4087 if test $am_cv_make_support_nested_variables = yes; then
4088 AM_V='$(V)'
4089 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4090 else
4091 AM_V=$AM_DEFAULT_VERBOSITY
4092 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4093 fi
4094 AM_BACKSLASH='\'
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 printf %s "checking for $ac_word... " >&6; }
4110 if test ${ac_cv_path_PKG_CONFIG+y}
4111 then :
4112 printf %s "(cached) " >&6
4113 else $as_nop
4114 case $PKG_CONFIG in
4115 [\\/]* | ?:[\\/]*)
4116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4117 ;;
4118 *)
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 case $as_dir in #(((
4124 '') as_dir=./ ;;
4125 */) ;;
4126 *) as_dir=$as_dir/ ;;
4127 esac
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4130 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 ;;
4139 esac
4140 fi
4141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4142 if test -n "$PKG_CONFIG"; then
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4144 printf "%s\n" "$PKG_CONFIG" >&6; }
4145 else
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 printf "%s\n" "no" >&6; }
4148 fi
4149
4150
4151 fi
4152 if test -z "$ac_cv_path_PKG_CONFIG"; then
4153 ac_pt_PKG_CONFIG=$PKG_CONFIG
4154 # Extract the first word of "pkg-config", so it can be a program name with args.
4155 set dummy pkg-config; ac_word=$2
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 printf %s "checking for $ac_word... " >&6; }
4158 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else $as_nop
4162 case $ac_pt_PKG_CONFIG in
4163 [\\/]* | ?:[\\/]*)
4164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4165 ;;
4166 *)
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 case $as_dir in #(((
4172 '') as_dir=./ ;;
4173 */) ;;
4174 *) as_dir=$as_dir/ ;;
4175 esac
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4178 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 ;;
4187 esac
4188 fi
4189 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4190 if test -n "$ac_pt_PKG_CONFIG"; then
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4192 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4193 else
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 printf "%s\n" "no" >&6; }
4196 fi
4197
4198 if test "x$ac_pt_PKG_CONFIG" = x; then
4199 PKG_CONFIG=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 PKG_CONFIG=$ac_pt_PKG_CONFIG
4208 fi
4209 else
4210 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4211 fi
4212
4213 fi
4214 if test -n "$PKG_CONFIG"; then
4215 _pkg_min_version=0.9.0
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4217 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220 printf "%s\n" "yes" >&6; }
4221 else
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 printf "%s\n" "no" >&6; }
4224 PKG_CONFIG=""
4225 fi
4226 fi
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 DEPDIR="${am__leading_dot}deps"
4237
4238 ac_config_commands="$ac_config_commands depfiles"
4239
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4241 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4242 cat > confinc.mk << 'END'
4243 am__doit:
4244 @echo this is the am__doit target >confinc.out
4245 .PHONY: am__doit
4246 END
4247 am__include="#"
4248 am__quote=
4249 # BSD make does it like this.
4250 echo '.include "confinc.mk" # ignored' > confmf.BSD
4251 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4252 echo 'include confinc.mk # ignored' > confmf.GNU
4253 _am_result=no
4254 for s in GNU BSD; do
4255 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4256 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }
4260 case $?:`cat confinc.out 2>/dev/null` in #(
4261 '0:this is the am__doit target') :
4262 case $s in #(
4263 BSD) :
4264 am__include='.include' am__quote='"' ;; #(
4265 *) :
4266 am__include='include' am__quote='' ;;
4267 esac ;; #(
4268 *) :
4269 ;;
4270 esac
4271 if test "$am__include" != "#"; then
4272 _am_result="yes ($s style)"
4273 break
4274 fi
4275 done
4276 rm -f confinc.* confmf.*
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4278 printf "%s\n" "${_am_result}" >&6; }
4279
4280 # Check whether --enable-dependency-tracking was given.
4281 if test ${enable_dependency_tracking+y}
4282 then :
4283 enableval=$enable_dependency_tracking;
4284 fi
4285
4286 if test "x$enable_dependency_tracking" != xno; then
4287 am_depcomp="$ac_aux_dir/depcomp"
4288 AMDEPBACKSLASH='\'
4289 am__nodep='_no'
4290 fi
4291 if test "x$enable_dependency_tracking" != xno; then
4292 AMDEP_TRUE=
4293 AMDEP_FALSE='#'
4294 else
4295 AMDEP_TRUE='#'
4296 AMDEP_FALSE=
4297 fi
4298
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 if test -n "$ac_tool_prefix"; then
4306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 printf %s "checking for $ac_word... " >&6; }
4310 if test ${ac_cv_prog_CC+y}
4311 then :
4312 printf %s "(cached) " >&6
4313 else $as_nop
4314 if test -n "$CC"; then
4315 ac_cv_prog_CC="$CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 case $as_dir in #(((
4322 '') as_dir=./ ;;
4323 */) ;;
4324 *) as_dir=$as_dir/ ;;
4325 esac
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 fi
4337 fi
4338 CC=$ac_cv_prog_CC
4339 if test -n "$CC"; then
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4341 printf "%s\n" "$CC" >&6; }
4342 else
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 printf "%s\n" "no" >&6; }
4345 fi
4346
4347
4348 fi
4349 if test -z "$ac_cv_prog_CC"; then
4350 ac_ct_CC=$CC
4351 # Extract the first word of "gcc", so it can be a program name with args.
4352 set dummy gcc; ac_word=$2
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 printf %s "checking for $ac_word... " >&6; }
4355 if test ${ac_cv_prog_ac_ct_CC+y}
4356 then :
4357 printf %s "(cached) " >&6
4358 else $as_nop
4359 if test -n "$ac_ct_CC"; then
4360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365 IFS=$as_save_IFS
4366 case $as_dir in #(((
4367 '') as_dir=./ ;;
4368 */) ;;
4369 *) as_dir=$as_dir/ ;;
4370 esac
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_ac_ct_CC="gcc"
4374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377 done
4378 done
4379 IFS=$as_save_IFS
4380
4381 fi
4382 fi
4383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4384 if test -n "$ac_ct_CC"; then
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4386 printf "%s\n" "$ac_ct_CC" >&6; }
4387 else
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 printf "%s\n" "no" >&6; }
4390 fi
4391
4392 if test "x$ac_ct_CC" = x; then
4393 CC=""
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CC=$ac_ct_CC
4402 fi
4403 else
4404 CC="$ac_cv_prog_CC"
4405 fi
4406
4407 if test -z "$CC"; then
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4410 set dummy ${ac_tool_prefix}cc; ac_word=$2
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 printf %s "checking for $ac_word... " >&6; }
4413 if test ${ac_cv_prog_CC+y}
4414 then :
4415 printf %s "(cached) " >&6
4416 else $as_nop
4417 if test -n "$CC"; then
4418 ac_cv_prog_CC="$CC" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 case $as_dir in #(((
4425 '') as_dir=./ ;;
4426 */) ;;
4427 *) as_dir=$as_dir/ ;;
4428 esac
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CC="${ac_tool_prefix}cc"
4432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 CC=$ac_cv_prog_CC
4442 if test -n "$CC"; then
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 printf "%s\n" "$CC" >&6; }
4445 else
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 printf "%s\n" "no" >&6; }
4448 fi
4449
4450
4451 fi
4452 fi
4453 if test -z "$CC"; then
4454 # Extract the first word of "cc", so it can be a program name with args.
4455 set dummy cc; ac_word=$2
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 printf %s "checking for $ac_word... " >&6; }
4458 if test ${ac_cv_prog_CC+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else $as_nop
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464 else
4465 ac_prog_rejected=no
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 case $as_dir in #(((
4471 '') as_dir=./ ;;
4472 */) ;;
4473 *) as_dir=$as_dir/ ;;
4474 esac
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4477 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_CC="cc"
4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4488
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4499 fi
4500 fi
4501 fi
4502 fi
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 printf "%s\n" "$CC" >&6; }
4507 else
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 printf "%s\n" "no" >&6; }
4510 fi
4511
4512
4513 fi
4514 if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in cl.exe
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 printf %s "checking for $ac_word... " >&6; }
4522 if test ${ac_cv_prog_CC+y}
4523 then :
4524 printf %s "(cached) " >&6
4525 else $as_nop
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 case $as_dir in #(((
4534 '') as_dir=./ ;;
4535 */) ;;
4536 *) as_dir=$as_dir/ ;;
4537 esac
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549 fi
4550 CC=$ac_cv_prog_CC
4551 if test -n "$CC"; then
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4553 printf "%s\n" "$CC" >&6; }
4554 else
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 printf "%s\n" "no" >&6; }
4557 fi
4558
4559
4560 test -n "$CC" && break
4561 done
4562 fi
4563 if test -z "$CC"; then
4564 ac_ct_CC=$CC
4565 for ac_prog in cl.exe
4566 do
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 printf %s "checking for $ac_word... " >&6; }
4571 if test ${ac_cv_prog_ac_ct_CC+y}
4572 then :
4573 printf %s "(cached) " >&6
4574 else $as_nop
4575 if test -n "$ac_ct_CC"; then
4576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 case $as_dir in #(((
4583 '') as_dir=./ ;;
4584 */) ;;
4585 *) as_dir=$as_dir/ ;;
4586 esac
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_CC="$ac_prog"
4590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4600 if test -n "$ac_ct_CC"; then
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4602 printf "%s\n" "$ac_ct_CC" >&6; }
4603 else
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 printf "%s\n" "no" >&6; }
4606 fi
4607
4608
4609 test -n "$ac_ct_CC" && break
4610 done
4611
4612 if test "x$ac_ct_CC" = x; then
4613 CC=""
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616 yes:)
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619 ac_tool_warned=yes ;;
4620 esac
4621 CC=$ac_ct_CC
4622 fi
4623 fi
4624
4625 fi
4626 if test -z "$CC"; then
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}clang; ac_word=$2
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 printf %s "checking for $ac_word... " >&6; }
4632 if test ${ac_cv_prog_CC+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 case $as_dir in #(((
4644 '') as_dir=./ ;;
4645 */) ;;
4646 *) as_dir=$as_dir/ ;;
4647 esac
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_CC="${ac_tool_prefix}clang"
4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 printf "%s\n" "$CC" >&6; }
4664 else
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 printf "%s\n" "no" >&6; }
4667 fi
4668
4669
4670 fi
4671 if test -z "$ac_cv_prog_CC"; then
4672 ac_ct_CC=$CC
4673 # Extract the first word of "clang", so it can be a program name with args.
4674 set dummy clang; ac_word=$2
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 printf %s "checking for $ac_word... " >&6; }
4677 if test ${ac_cv_prog_ac_ct_CC+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else $as_nop
4681 if test -n "$ac_ct_CC"; then
4682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 case $as_dir in #(((
4689 '') as_dir=./ ;;
4690 */) ;;
4691 *) as_dir=$as_dir/ ;;
4692 esac
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_ac_ct_CC="clang"
4696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4706 if test -n "$ac_ct_CC"; then
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4708 printf "%s\n" "$ac_ct_CC" >&6; }
4709 else
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 printf "%s\n" "no" >&6; }
4712 fi
4713
4714 if test "x$ac_ct_CC" = x; then
4715 CC=""
4716 else
4717 case $cross_compiling:$ac_tool_warned in
4718 yes:)
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4722 esac
4723 CC=$ac_ct_CC
4724 fi
4725 else
4726 CC="$ac_cv_prog_CC"
4727 fi
4728
4729 fi
4730
4731
4732 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error $? "no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details" "$LINENO" 5; }
4736
4737 # Provide some information about the compiler.
4738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4739 set X $ac_compile
4740 ac_compiler=$2
4741 for ac_option in --version -v -V -qversion -version; do
4742 { { ac_try="$ac_compiler $ac_option >&5"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 printf "%s\n" "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4750 ac_status=$?
4751 if test -s conftest.err; then
4752 sed '10a\
4753 ... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4756 fi
4757 rm -f conftest.er1 conftest.err
4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4760 done
4761
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764
4765 int
4766 main (void)
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 ac_clean_files_save=$ac_clean_files
4774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4775 # Try to create an executable without -o first, disregard a.out.
4776 # It will help us diagnose broken compilers, and finding out an intuition
4777 # of exeext.
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4779 printf %s "checking whether the C compiler works... " >&6; }
4780 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4781
4782 # The possible output files:
4783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4784
4785 ac_rmfiles=
4786 for ac_file in $ac_files
4787 do
4788 case $ac_file in
4789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4791 esac
4792 done
4793 rm -f $ac_rmfiles
4794
4795 if { { ac_try="$ac_link_default"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 printf "%s\n" "$ac_try_echo"; } >&5
4802 (eval "$ac_link_default") 2>&5
4803 ac_status=$?
4804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4806 then :
4807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4810 # so that the user can short-circuit this test for compilers unknown to
4811 # Autoconf.
4812 for ac_file in $ac_files ''
4813 do
4814 test -f "$ac_file" || continue
4815 case $ac_file in
4816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4817 ;;
4818 [ab].out )
4819 # We found the default executable, but exeext='' is most
4820 # certainly right.
4821 break;;
4822 *.* )
4823 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4824 then :; else
4825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4826 fi
4827 # We set ac_cv_exeext here because the later test for it is not
4828 # safe: cross compilers may not add the suffix if given an `-o'
4829 # argument, so we may need to know it at that point already.
4830 # Even if this section looks crufty: it has the advantage of
4831 # actually working.
4832 break;;
4833 * )
4834 break;;
4835 esac
4836 done
4837 test "$ac_cv_exeext" = no && ac_cv_exeext=
4838
4839 else $as_nop
4840 ac_file=''
4841 fi
4842 if test -z "$ac_file"
4843 then :
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 printf "%s\n" "no" >&6; }
4846 printf "%s\n" "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4850 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4851 as_fn_error 77 "C compiler cannot create executables
4852 See \`config.log' for more details" "$LINENO" 5; }
4853 else $as_nop
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4855 printf "%s\n" "yes" >&6; }
4856 fi
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4858 printf %s "checking for C compiler default output file name... " >&6; }
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4860 printf "%s\n" "$ac_file" >&6; }
4861 ac_exeext=$ac_cv_exeext
4862
4863 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4864 ac_clean_files=$ac_clean_files_save
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4866 printf %s "checking for suffix of executables... " >&6; }
4867 if { { ac_try="$ac_link"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 printf "%s\n" "$ac_try_echo"; } >&5
4874 (eval "$ac_link") 2>&5
4875 ac_status=$?
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; }
4878 then :
4879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4880 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4881 # work properly (i.e., refer to `conftest.exe'), while it won't with
4882 # `rm'.
4883 for ac_file in conftest.exe conftest conftest.*; do
4884 test -f "$ac_file" || continue
4885 case $ac_file in
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4888 break;;
4889 * ) break;;
4890 esac
4891 done
4892 else $as_nop
4893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4895 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4896 See \`config.log' for more details" "$LINENO" 5; }
4897 fi
4898 rm -f conftest conftest$ac_cv_exeext
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4900 printf "%s\n" "$ac_cv_exeext" >&6; }
4901
4902 rm -f conftest.$ac_ext
4903 EXEEXT=$ac_cv_exeext
4904 ac_exeext=$EXEEXT
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <stdio.h>
4908 int
4909 main (void)
4910 {
4911 FILE *f = fopen ("conftest.out", "w");
4912 return ferror (f) || fclose (f) != 0;
4913
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 ac_clean_files="$ac_clean_files conftest.out"
4919 # Check that the compiler produces executables we can run. If not, either
4920 # the compiler is broken, or we cross compile.
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4922 printf %s "checking whether we are cross compiling... " >&6; }
4923 if test "$cross_compiling" != yes; then
4924 { { ac_try="$ac_link"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4930 printf "%s\n" "$ac_try_echo"; } >&5
4931 (eval "$ac_link") 2>&5
4932 ac_status=$?
4933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934 test $ac_status = 0; }
4935 if { ac_try='./conftest$ac_cv_exeext'
4936 { { case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 printf "%s\n" "$ac_try_echo"; } >&5
4942 (eval "$ac_try") 2>&5
4943 ac_status=$?
4944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4945 test $ac_status = 0; }; }; then
4946 cross_compiling=no
4947 else
4948 if test "$cross_compiling" = maybe; then
4949 cross_compiling=yes
4950 else
4951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4953 as_fn_error 77 "cannot run C compiled programs.
4954 If you meant to cross compile, use \`--host'.
4955 See \`config.log' for more details" "$LINENO" 5; }
4956 fi
4957 fi
4958 fi
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4960 printf "%s\n" "$cross_compiling" >&6; }
4961
4962 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4963 ac_clean_files=$ac_clean_files_save
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4965 printf %s "checking for suffix of object files... " >&6; }
4966 if test ${ac_cv_objext+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else $as_nop
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972
4973 int
4974 main (void)
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.o conftest.obj
4982 if { { ac_try="$ac_compile"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 printf "%s\n" "$ac_try_echo"; } >&5
4989 (eval "$ac_compile") 2>&5
4990 ac_status=$?
4991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }
4993 then :
4994 for ac_file in conftest.o conftest.obj conftest.*; do
4995 test -f "$ac_file" || continue;
4996 case $ac_file in
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4999 break;;
5000 esac
5001 done
5002 else $as_nop
5003 printf "%s\n" "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error $? "cannot compute suffix of object files: cannot compile
5009 See \`config.log' for more details" "$LINENO" 5; }
5010 fi
5011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5012 fi
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5014 printf "%s\n" "$ac_cv_objext" >&6; }
5015 OBJEXT=$ac_cv_objext
5016 ac_objext=$OBJEXT
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5018 printf %s "checking whether the compiler supports GNU C... " >&6; }
5019 if test ${ac_cv_c_compiler_gnu+y}
5020 then :
5021 printf %s "(cached) " >&6
5022 else $as_nop
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025
5026 int
5027 main (void)
5028 {
5029 #ifndef __GNUC__
5030 choke me
5031 #endif
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_compile "$LINENO"
5038 then :
5039 ac_compiler_gnu=yes
5040 else $as_nop
5041 ac_compiler_gnu=no
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5045
5046 fi
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5048 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051 if test $ac_compiler_gnu = yes; then
5052 GCC=yes
5053 else
5054 GCC=
5055 fi
5056 ac_test_CFLAGS=${CFLAGS+y}
5057 ac_save_CFLAGS=$CFLAGS
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5059 printf %s "checking whether $CC accepts -g... " >&6; }
5060 if test ${ac_cv_prog_cc_g+y}
5061 then :
5062 printf %s "(cached) " >&6
5063 else $as_nop
5064 ac_save_c_werror_flag=$ac_c_werror_flag
5065 ac_c_werror_flag=yes
5066 ac_cv_prog_cc_g=no
5067 CFLAGS="-g"
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070
5071 int
5072 main (void)
5073 {
5074
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"
5080 then :
5081 ac_cv_prog_cc_g=yes
5082 else $as_nop
5083 CFLAGS=""
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086
5087 int
5088 main (void)
5089 {
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"
5096 then :
5097
5098 else $as_nop
5099 ac_c_werror_flag=$ac_save_c_werror_flag
5100 CFLAGS="-g"
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103
5104 int
5105 main (void)
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"
5113 then :
5114 ac_cv_prog_cc_g=yes
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5121 ac_c_werror_flag=$ac_save_c_werror_flag
5122 fi
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5124 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5125 if test $ac_test_CFLAGS; then
5126 CFLAGS=$ac_save_CFLAGS
5127 elif test $ac_cv_prog_cc_g = yes; then
5128 if test "$GCC" = yes; then
5129 CFLAGS="-g -O2"
5130 else
5131 CFLAGS="-g"
5132 fi
5133 else
5134 if test "$GCC" = yes; then
5135 CFLAGS="-O2"
5136 else
5137 CFLAGS=
5138 fi
5139 fi
5140 ac_prog_cc_stdc=no
5141 if test x$ac_prog_cc_stdc = xno
5142 then :
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5144 printf %s "checking for $CC option to enable C11 features... " >&6; }
5145 if test ${ac_cv_prog_cc_c11+y}
5146 then :
5147 printf %s "(cached) " >&6
5148 else $as_nop
5149 ac_cv_prog_cc_c11=no
5150 ac_save_CC=$CC
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 $ac_c_conftest_c11_program
5154 _ACEOF
5155 for ac_arg in '' -std=gnu11
5156 do
5157 CC="$ac_save_CC $ac_arg"
5158 if ac_fn_c_try_compile "$LINENO"
5159 then :
5160 ac_cv_prog_cc_c11=$ac_arg
5161 fi
5162 rm -f core conftest.err conftest.$ac_objext conftest.beam
5163 test "x$ac_cv_prog_cc_c11" != "xno" && break
5164 done
5165 rm -f conftest.$ac_ext
5166 CC=$ac_save_CC
5167 fi
5168
5169 if test "x$ac_cv_prog_cc_c11" = xno
5170 then :
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5172 printf "%s\n" "unsupported" >&6; }
5173 else $as_nop
5174 if test "x$ac_cv_prog_cc_c11" = x
5175 then :
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5177 printf "%s\n" "none needed" >&6; }
5178 else $as_nop
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5180 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5181 CC="$CC $ac_cv_prog_cc_c11"
5182 fi
5183 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5184 ac_prog_cc_stdc=c11
5185 fi
5186 fi
5187 if test x$ac_prog_cc_stdc = xno
5188 then :
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5190 printf %s "checking for $CC option to enable C99 features... " >&6; }
5191 if test ${ac_cv_prog_cc_c99+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else $as_nop
5195 ac_cv_prog_cc_c99=no
5196 ac_save_CC=$CC
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 $ac_c_conftest_c99_program
5200 _ACEOF
5201 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5202 do
5203 CC="$ac_save_CC $ac_arg"
5204 if ac_fn_c_try_compile "$LINENO"
5205 then :
5206 ac_cv_prog_cc_c99=$ac_arg
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.beam
5209 test "x$ac_cv_prog_cc_c99" != "xno" && break
5210 done
5211 rm -f conftest.$ac_ext
5212 CC=$ac_save_CC
5213 fi
5214
5215 if test "x$ac_cv_prog_cc_c99" = xno
5216 then :
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5218 printf "%s\n" "unsupported" >&6; }
5219 else $as_nop
5220 if test "x$ac_cv_prog_cc_c99" = x
5221 then :
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5223 printf "%s\n" "none needed" >&6; }
5224 else $as_nop
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5226 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5227 CC="$CC $ac_cv_prog_cc_c99"
5228 fi
5229 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5230 ac_prog_cc_stdc=c99
5231 fi
5232 fi
5233 if test x$ac_prog_cc_stdc = xno
5234 then :
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5236 printf %s "checking for $CC option to enable C89 features... " >&6; }
5237 if test ${ac_cv_prog_cc_c89+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 ac_cv_prog_cc_c89=no
5242 ac_save_CC=$CC
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 $ac_c_conftest_c89_program
5246 _ACEOF
5247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5248 do
5249 CC="$ac_save_CC $ac_arg"
5250 if ac_fn_c_try_compile "$LINENO"
5251 then :
5252 ac_cv_prog_cc_c89=$ac_arg
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.beam
5255 test "x$ac_cv_prog_cc_c89" != "xno" && break
5256 done
5257 rm -f conftest.$ac_ext
5258 CC=$ac_save_CC
5259 fi
5260
5261 if test "x$ac_cv_prog_cc_c89" = xno
5262 then :
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5264 printf "%s\n" "unsupported" >&6; }
5265 else $as_nop
5266 if test "x$ac_cv_prog_cc_c89" = x
5267 then :
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5269 printf "%s\n" "none needed" >&6; }
5270 else $as_nop
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5272 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5273 CC="$CC $ac_cv_prog_cc_c89"
5274 fi
5275 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5276 ac_prog_cc_stdc=c89
5277 fi
5278 fi
5279
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285
5286
5287 ac_ext=c
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5293 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5294 if test ${am_cv_prog_cc_c_o+y}
5295 then :
5296 printf %s "(cached) " >&6
5297 else $as_nop
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300
5301 int
5302 main (void)
5303 {
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 # Make sure it works both with $CC and with simple cc.
5310 # Following AC_PROG_CC_C_O, we do the test twice because some
5311 # compilers refuse to overwrite an existing .o file with -o,
5312 # though they will create one.
5313 am_cv_prog_cc_c_o=yes
5314 for am_i in 1 2; do
5315 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5316 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } \
5320 && test -f conftest2.$ac_objext; then
5321 : OK
5322 else
5323 am_cv_prog_cc_c_o=no
5324 break
5325 fi
5326 done
5327 rm -f core conftest*
5328 unset am_i
5329 fi
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5331 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5332 if test "$am_cv_prog_cc_c_o" != yes; then
5333 # Losing compiler, so override with the script.
5334 # FIXME: It is wrong to rewrite CC.
5335 # But if we don't then we get into trouble of one sort or another.
5336 # A longer-term fix would be to have automake use am__CC in this case,
5337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5338 CC="$am_aux_dir/compile $CC"
5339 fi
5340 ac_ext=c
5341 ac_cpp='$CPP $CPPFLAGS'
5342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345
5346
5347 depcc="$CC" am_compiler_list=
5348
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5350 printf %s "checking dependency style of $depcc... " >&6; }
5351 if test ${am_cv_CC_dependencies_compiler_type+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else $as_nop
5355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5356 # We make a subdir and do the tests there. Otherwise we can end up
5357 # making bogus files that we don't know about and never remove. For
5358 # instance it was reported that on HP-UX the gcc test will end up
5359 # making a dummy file named 'D' -- because '-MD' means "put the output
5360 # in D".
5361 rm -rf conftest.dir
5362 mkdir conftest.dir
5363 # Copy depcomp to subdir because otherwise we won't find it if we're
5364 # using a relative directory.
5365 cp "$am_depcomp" conftest.dir
5366 cd conftest.dir
5367 # We will build objects and dependencies in a subdirectory because
5368 # it helps to detect inapplicable dependency modes. For instance
5369 # both Tru64's cc and ICC support -MD to output dependencies as a
5370 # side effect of compilation, but ICC will put the dependencies in
5371 # the current directory while Tru64 will put them in the object
5372 # directory.
5373 mkdir sub
5374
5375 am_cv_CC_dependencies_compiler_type=none
5376 if test "$am_compiler_list" = ""; then
5377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5378 fi
5379 am__universal=false
5380 case " $depcc " in #(
5381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5382 esac
5383
5384 for depmode in $am_compiler_list; do
5385 # Setup a source with many dependencies, because some compilers
5386 # like to wrap large dependency lists on column 80 (with \), and
5387 # we should not choose a depcomp mode which is confused by this.
5388 #
5389 # We need to recreate these files for each test, as the compiler may
5390 # overwrite some of them when testing with obscure command lines.
5391 # This happens at least with the AIX C compiler.
5392 : > sub/conftest.c
5393 for i in 1 2 3 4 5 6; do
5394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5395 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5396 # Solaris 10 /bin/sh.
5397 echo '/* dummy */' > sub/conftst$i.h
5398 done
5399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5400
5401 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5402 # mode. It turns out that the SunPro C++ compiler does not properly
5403 # handle '-M -o', and we need to detect this. Also, some Intel
5404 # versions had trouble with output in subdirs.
5405 am__obj=sub/conftest.${OBJEXT-o}
5406 am__minus_obj="-o $am__obj"
5407 case $depmode in
5408 gcc)
5409 # This depmode causes a compiler race in universal mode.
5410 test "$am__universal" = false || continue
5411 ;;
5412 nosideeffect)
5413 # After this tag, mechanisms are not by side-effect, so they'll
5414 # only be used when explicitly requested.
5415 if test "x$enable_dependency_tracking" = xyes; then
5416 continue
5417 else
5418 break
5419 fi
5420 ;;
5421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5422 # This compiler won't grok '-c -o', but also, the minuso test has
5423 # not run yet. These depmodes are late enough in the game, and
5424 # so weak that their functioning should not be impacted.
5425 am__obj=conftest.${OBJEXT-o}
5426 am__minus_obj=
5427 ;;
5428 none) break ;;
5429 esac
5430 if depmode=$depmode \
5431 source=sub/conftest.c object=$am__obj \
5432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5434 >/dev/null 2>conftest.err &&
5435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5439 # icc doesn't choke on unknown options, it will just issue warnings
5440 # or remarks (even with -Werror). So we grep stderr for any message
5441 # that says an option was ignored or not supported.
5442 # When given -MP, icc 7.0 and 7.1 complain thusly:
5443 # icc: Command line warning: ignoring option '-M'; no argument required
5444 # The diagnosis changed in icc 8.0:
5445 # icc: Command line remark: option '-MP' not supported
5446 if (grep 'ignoring option' conftest.err ||
5447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5448 am_cv_CC_dependencies_compiler_type=$depmode
5449 break
5450 fi
5451 fi
5452 done
5453
5454 cd ..
5455 rm -rf conftest.dir
5456 else
5457 am_cv_CC_dependencies_compiler_type=none
5458 fi
5459
5460 fi
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5462 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5464
5465 if
5466 test "x$enable_dependency_tracking" != xno \
5467 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5468 am__fastdepCC_TRUE=
5469 am__fastdepCC_FALSE='#'
5470 else
5471 am__fastdepCC_TRUE='#'
5472 am__fastdepCC_FALSE=
5473 fi
5474
5475
5476
5477 ac_header= ac_cache=
5478 for ac_item in $ac_header_c_list
5479 do
5480 if test $ac_cache; then
5481 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5482 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5483 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5484 fi
5485 ac_header= ac_cache=
5486 elif test $ac_header; then
5487 ac_cache=$ac_item
5488 else
5489 ac_header=$ac_item
5490 fi
5491 done
5492
5493
5494
5495
5496
5497
5498
5499
5500 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5501 then :
5502
5503 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5504
5505 fi
5506
5507
5508
5509
5510
5511
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5513 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5514 if test ${ac_cv_safe_to_define___extensions__+y}
5515 then :
5516 printf %s "(cached) " >&6
5517 else $as_nop
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520
5521 # define __EXTENSIONS__ 1
5522 $ac_includes_default
5523 int
5524 main (void)
5525 {
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"
5532 then :
5533 ac_cv_safe_to_define___extensions__=yes
5534 else $as_nop
5535 ac_cv_safe_to_define___extensions__=no
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538 fi
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5540 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5541
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5543 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5544 if test ${ac_cv_should_define__xopen_source+y}
5545 then :
5546 printf %s "(cached) " >&6
5547 else $as_nop
5548 ac_cv_should_define__xopen_source=no
5549 if test $ac_cv_header_wchar_h = yes
5550 then :
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553
5554 #include <wchar.h>
5555 mbstate_t x;
5556 int
5557 main (void)
5558 {
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"
5565 then :
5566
5567 else $as_nop
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570
5571 #define _XOPEN_SOURCE 500
5572 #include <wchar.h>
5573 mbstate_t x;
5574 int
5575 main (void)
5576 {
5577
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"
5583 then :
5584 ac_cv_should_define__xopen_source=yes
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5589 fi
5590 fi
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5592 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5593
5594 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5595
5596 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5597
5598 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5599
5600 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5601
5602 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5603
5604 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5605
5606 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5607
5608 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5609
5610 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5611
5612 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5613
5614 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5615
5616 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5617
5618 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5619
5620 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5621
5622 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5623
5624 if test $ac_cv_header_minix_config_h = yes
5625 then :
5626 MINIX=yes
5627 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5628
5629 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5630
5631 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5632
5633 else $as_nop
5634 MINIX=
5635 fi
5636 if test $ac_cv_safe_to_define___extensions__ = yes
5637 then :
5638 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5639
5640 fi
5641 if test $ac_cv_should_define__xopen_source = yes
5642 then :
5643 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5644
5645 fi
5646
5647
5648
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5650 printf %s "checking whether ln -s works... " >&6; }
5651 LN_S=$as_ln_s
5652 if test "$LN_S" = "ln -s"; then
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654 printf "%s\n" "yes" >&6; }
5655 else
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5657 printf "%s\n" "no, using $LN_S" >&6; }
5658 fi
5659
5660 ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 printf %s "checking for $ac_word... " >&6; }
5670 if test ${ac_cv_prog_CC+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else $as_nop
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680 IFS=$as_save_IFS
5681 case $as_dir in #(((
5682 '') as_dir=./ ;;
5683 */) ;;
5684 *) as_dir=$as_dir/ ;;
5685 esac
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 CC=$ac_cv_prog_CC
5699 if test -n "$CC"; then
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5701 printf "%s\n" "$CC" >&6; }
5702 else
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 printf "%s\n" "no" >&6; }
5705 fi
5706
5707
5708 fi
5709 if test -z "$ac_cv_prog_CC"; then
5710 ac_ct_CC=$CC
5711 # Extract the first word of "gcc", so it can be a program name with args.
5712 set dummy gcc; ac_word=$2
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 printf %s "checking for $ac_word... " >&6; }
5715 if test ${ac_cv_prog_ac_ct_CC+y}
5716 then :
5717 printf %s "(cached) " >&6
5718 else $as_nop
5719 if test -n "$ac_ct_CC"; then
5720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 case $as_dir in #(((
5727 '') as_dir=./ ;;
5728 */) ;;
5729 *) as_dir=$as_dir/ ;;
5730 esac
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_ac_ct_CC="gcc"
5734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737 done
5738 done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744 if test -n "$ac_ct_CC"; then
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746 printf "%s\n" "$ac_ct_CC" >&6; }
5747 else
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 printf "%s\n" "no" >&6; }
5750 fi
5751
5752 if test "x$ac_ct_CC" = x; then
5753 CC=""
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761 CC=$ac_ct_CC
5762 fi
5763 else
5764 CC="$ac_cv_prog_CC"
5765 fi
5766
5767 if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770 set dummy ${ac_tool_prefix}cc; ac_word=$2
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 printf %s "checking for $ac_word... " >&6; }
5773 if test ${ac_cv_prog_CC+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 if test -n "$CC"; then
5778 ac_cv_prog_CC="$CC" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 case $as_dir in #(((
5785 '') as_dir=./ ;;
5786 */) ;;
5787 *) as_dir=$as_dir/ ;;
5788 esac
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_CC="${ac_tool_prefix}cc"
5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 CC=$ac_cv_prog_CC
5802 if test -n "$CC"; then
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5804 printf "%s\n" "$CC" >&6; }
5805 else
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf "%s\n" "no" >&6; }
5808 fi
5809
5810
5811 fi
5812 fi
5813 if test -z "$CC"; then
5814 # Extract the first word of "cc", so it can be a program name with args.
5815 set dummy cc; ac_word=$2
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 printf %s "checking for $ac_word... " >&6; }
5818 if test ${ac_cv_prog_CC+y}
5819 then :
5820 printf %s "(cached) " >&6
5821 else $as_nop
5822 if test -n "$CC"; then
5823 ac_cv_prog_CC="$CC" # Let the user override the test.
5824 else
5825 ac_prog_rejected=no
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 case $as_dir in #(((
5831 '') as_dir=./ ;;
5832 */) ;;
5833 *) as_dir=$as_dir/ ;;
5834 esac
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5837 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5838 ac_prog_rejected=yes
5839 continue
5840 fi
5841 ac_cv_prog_CC="cc"
5842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 if test $ac_prog_rejected = yes; then
5850 # We found a bogon in the path, so make sure we never use it.
5851 set dummy $ac_cv_prog_CC
5852 shift
5853 if test $# != 0; then
5854 # We chose a different compiler from the bogus one.
5855 # However, it has the same basename, so the bogon will be chosen
5856 # first if we set CC to just the basename; use the full file name.
5857 shift
5858 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5859 fi
5860 fi
5861 fi
5862 fi
5863 CC=$ac_cv_prog_CC
5864 if test -n "$CC"; then
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5866 printf "%s\n" "$CC" >&6; }
5867 else
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 printf "%s\n" "no" >&6; }
5870 fi
5871
5872
5873 fi
5874 if test -z "$CC"; then
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in cl.exe
5877 do
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 printf %s "checking for $ac_word... " >&6; }
5882 if test ${ac_cv_prog_CC+y}
5883 then :
5884 printf %s "(cached) " >&6
5885 else $as_nop
5886 if test -n "$CC"; then
5887 ac_cv_prog_CC="$CC" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892 IFS=$as_save_IFS
5893 case $as_dir in #(((
5894 '') as_dir=./ ;;
5895 */) ;;
5896 *) as_dir=$as_dir/ ;;
5897 esac
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 CC=$ac_cv_prog_CC
5911 if test -n "$CC"; then
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5913 printf "%s\n" "$CC" >&6; }
5914 else
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 printf "%s\n" "no" >&6; }
5917 fi
5918
5919
5920 test -n "$CC" && break
5921 done
5922 fi
5923 if test -z "$CC"; then
5924 ac_ct_CC=$CC
5925 for ac_prog in cl.exe
5926 do
5927 # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 printf %s "checking for $ac_word... " >&6; }
5931 if test ${ac_cv_prog_ac_ct_CC+y}
5932 then :
5933 printf %s "(cached) " >&6
5934 else $as_nop
5935 if test -n "$ac_ct_CC"; then
5936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941 IFS=$as_save_IFS
5942 case $as_dir in #(((
5943 '') as_dir=./ ;;
5944 */) ;;
5945 *) as_dir=$as_dir/ ;;
5946 esac
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_ac_ct_CC="$ac_prog"
5950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5960 if test -n "$ac_ct_CC"; then
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5962 printf "%s\n" "$ac_ct_CC" >&6; }
5963 else
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 printf "%s\n" "no" >&6; }
5966 fi
5967
5968
5969 test -n "$ac_ct_CC" && break
5970 done
5971
5972 if test "x$ac_ct_CC" = x; then
5973 CC=""
5974 else
5975 case $cross_compiling:$ac_tool_warned in
5976 yes:)
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5978 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5980 esac
5981 CC=$ac_ct_CC
5982 fi
5983 fi
5984
5985 fi
5986 if test -z "$CC"; then
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}clang; ac_word=$2
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 printf %s "checking for $ac_word... " >&6; }
5992 if test ${ac_cv_prog_CC+y}
5993 then :
5994 printf %s "(cached) " >&6
5995 else $as_nop
5996 if test -n "$CC"; then
5997 ac_cv_prog_CC="$CC" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002 IFS=$as_save_IFS
6003 case $as_dir in #(((
6004 '') as_dir=./ ;;
6005 */) ;;
6006 *) as_dir=$as_dir/ ;;
6007 esac
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_CC="${ac_tool_prefix}clang"
6011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 CC=$ac_cv_prog_CC
6021 if test -n "$CC"; then
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6023 printf "%s\n" "$CC" >&6; }
6024 else
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 printf "%s\n" "no" >&6; }
6027 fi
6028
6029
6030 fi
6031 if test -z "$ac_cv_prog_CC"; then
6032 ac_ct_CC=$CC
6033 # Extract the first word of "clang", so it can be a program name with args.
6034 set dummy clang; ac_word=$2
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 printf %s "checking for $ac_word... " >&6; }
6037 if test ${ac_cv_prog_ac_ct_CC+y}
6038 then :
6039 printf %s "(cached) " >&6
6040 else $as_nop
6041 if test -n "$ac_ct_CC"; then
6042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 case $as_dir in #(((
6049 '') as_dir=./ ;;
6050 */) ;;
6051 *) as_dir=$as_dir/ ;;
6052 esac
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_ac_ct_CC="clang"
6056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6066 if test -n "$ac_ct_CC"; then
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6068 printf "%s\n" "$ac_ct_CC" >&6; }
6069 else
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 printf "%s\n" "no" >&6; }
6072 fi
6073
6074 if test "x$ac_ct_CC" = x; then
6075 CC=""
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083 CC=$ac_ct_CC
6084 fi
6085 else
6086 CC="$ac_cv_prog_CC"
6087 fi
6088
6089 fi
6090
6091
6092 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6093 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6094 as_fn_error $? "no acceptable C compiler found in \$PATH
6095 See \`config.log' for more details" "$LINENO" 5; }
6096
6097 # Provide some information about the compiler.
6098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6099 set X $ac_compile
6100 ac_compiler=$2
6101 for ac_option in --version -v -V -qversion -version; do
6102 { { ac_try="$ac_compiler $ac_option >&5"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6108 printf "%s\n" "$ac_try_echo"; } >&5
6109 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6110 ac_status=$?
6111 if test -s conftest.err; then
6112 sed '10a\
6113 ... rest of stderr output deleted ...
6114 10q' conftest.err >conftest.er1
6115 cat conftest.er1 >&5
6116 fi
6117 rm -f conftest.er1 conftest.err
6118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119 test $ac_status = 0; }
6120 done
6121
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6123 printf %s "checking whether the compiler supports GNU C... " >&6; }
6124 if test ${ac_cv_c_compiler_gnu+y}
6125 then :
6126 printf %s "(cached) " >&6
6127 else $as_nop
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130
6131 int
6132 main (void)
6133 {
6134 #ifndef __GNUC__
6135 choke me
6136 #endif
6137
6138 ;
6139 return 0;
6140 }
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"
6143 then :
6144 ac_compiler_gnu=yes
6145 else $as_nop
6146 ac_compiler_gnu=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6150
6151 fi
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6153 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156 if test $ac_compiler_gnu = yes; then
6157 GCC=yes
6158 else
6159 GCC=
6160 fi
6161 ac_test_CFLAGS=${CFLAGS+y}
6162 ac_save_CFLAGS=$CFLAGS
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6164 printf %s "checking whether $CC accepts -g... " >&6; }
6165 if test ${ac_cv_prog_cc_g+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else $as_nop
6169 ac_save_c_werror_flag=$ac_c_werror_flag
6170 ac_c_werror_flag=yes
6171 ac_cv_prog_cc_g=no
6172 CFLAGS="-g"
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175
6176 int
6177 main (void)
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"
6185 then :
6186 ac_cv_prog_cc_g=yes
6187 else $as_nop
6188 CFLAGS=""
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191
6192 int
6193 main (void)
6194 {
6195
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"
6201 then :
6202
6203 else $as_nop
6204 ac_c_werror_flag=$ac_save_c_werror_flag
6205 CFLAGS="-g"
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208
6209 int
6210 main (void)
6211 {
6212
6213 ;
6214 return 0;
6215 }
6216 _ACEOF
6217 if ac_fn_c_try_compile "$LINENO"
6218 then :
6219 ac_cv_prog_cc_g=yes
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6226 ac_c_werror_flag=$ac_save_c_werror_flag
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6229 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6230 if test $ac_test_CFLAGS; then
6231 CFLAGS=$ac_save_CFLAGS
6232 elif test $ac_cv_prog_cc_g = yes; then
6233 if test "$GCC" = yes; then
6234 CFLAGS="-g -O2"
6235 else
6236 CFLAGS="-g"
6237 fi
6238 else
6239 if test "$GCC" = yes; then
6240 CFLAGS="-O2"
6241 else
6242 CFLAGS=
6243 fi
6244 fi
6245 ac_prog_cc_stdc=no
6246 if test x$ac_prog_cc_stdc = xno
6247 then :
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6249 printf %s "checking for $CC option to enable C11 features... " >&6; }
6250 if test ${ac_cv_prog_cc_c11+y}
6251 then :
6252 printf %s "(cached) " >&6
6253 else $as_nop
6254 ac_cv_prog_cc_c11=no
6255 ac_save_CC=$CC
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 $ac_c_conftest_c11_program
6259 _ACEOF
6260 for ac_arg in '' -std=gnu11
6261 do
6262 CC="$ac_save_CC $ac_arg"
6263 if ac_fn_c_try_compile "$LINENO"
6264 then :
6265 ac_cv_prog_cc_c11=$ac_arg
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext conftest.beam
6268 test "x$ac_cv_prog_cc_c11" != "xno" && break
6269 done
6270 rm -f conftest.$ac_ext
6271 CC=$ac_save_CC
6272 fi
6273
6274 if test "x$ac_cv_prog_cc_c11" = xno
6275 then :
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6277 printf "%s\n" "unsupported" >&6; }
6278 else $as_nop
6279 if test "x$ac_cv_prog_cc_c11" = x
6280 then :
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6282 printf "%s\n" "none needed" >&6; }
6283 else $as_nop
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6285 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6286 CC="$CC $ac_cv_prog_cc_c11"
6287 fi
6288 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6289 ac_prog_cc_stdc=c11
6290 fi
6291 fi
6292 if test x$ac_prog_cc_stdc = xno
6293 then :
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6295 printf %s "checking for $CC option to enable C99 features... " >&6; }
6296 if test ${ac_cv_prog_cc_c99+y}
6297 then :
6298 printf %s "(cached) " >&6
6299 else $as_nop
6300 ac_cv_prog_cc_c99=no
6301 ac_save_CC=$CC
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 $ac_c_conftest_c99_program
6305 _ACEOF
6306 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6307 do
6308 CC="$ac_save_CC $ac_arg"
6309 if ac_fn_c_try_compile "$LINENO"
6310 then :
6311 ac_cv_prog_cc_c99=$ac_arg
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.beam
6314 test "x$ac_cv_prog_cc_c99" != "xno" && break
6315 done
6316 rm -f conftest.$ac_ext
6317 CC=$ac_save_CC
6318 fi
6319
6320 if test "x$ac_cv_prog_cc_c99" = xno
6321 then :
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6323 printf "%s\n" "unsupported" >&6; }
6324 else $as_nop
6325 if test "x$ac_cv_prog_cc_c99" = x
6326 then :
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6328 printf "%s\n" "none needed" >&6; }
6329 else $as_nop
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6331 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6332 CC="$CC $ac_cv_prog_cc_c99"
6333 fi
6334 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6335 ac_prog_cc_stdc=c99
6336 fi
6337 fi
6338 if test x$ac_prog_cc_stdc = xno
6339 then :
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6341 printf %s "checking for $CC option to enable C89 features... " >&6; }
6342 if test ${ac_cv_prog_cc_c89+y}
6343 then :
6344 printf %s "(cached) " >&6
6345 else $as_nop
6346 ac_cv_prog_cc_c89=no
6347 ac_save_CC=$CC
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_c_conftest_c89_program
6351 _ACEOF
6352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6353 do
6354 CC="$ac_save_CC $ac_arg"
6355 if ac_fn_c_try_compile "$LINENO"
6356 then :
6357 ac_cv_prog_cc_c89=$ac_arg
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.beam
6360 test "x$ac_cv_prog_cc_c89" != "xno" && break
6361 done
6362 rm -f conftest.$ac_ext
6363 CC=$ac_save_CC
6364 fi
6365
6366 if test "x$ac_cv_prog_cc_c89" = xno
6367 then :
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6369 printf "%s\n" "unsupported" >&6; }
6370 else $as_nop
6371 if test "x$ac_cv_prog_cc_c89" = x
6372 then :
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6374 printf "%s\n" "none needed" >&6; }
6375 else $as_nop
6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6377 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6378 CC="$CC $ac_cv_prog_cc_c89"
6379 fi
6380 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6381 ac_prog_cc_stdc=c89
6382 fi
6383 fi
6384
6385 ac_ext=c
6386 ac_cpp='$CPP $CPPFLAGS'
6387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390
6391
6392 ac_ext=c
6393 ac_cpp='$CPP $CPPFLAGS'
6394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6398 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6399 if test ${am_cv_prog_cc_c_o+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else $as_nop
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405
6406 int
6407 main (void)
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 # Make sure it works both with $CC and with simple cc.
6415 # Following AC_PROG_CC_C_O, we do the test twice because some
6416 # compilers refuse to overwrite an existing .o file with -o,
6417 # though they will create one.
6418 am_cv_prog_cc_c_o=yes
6419 for am_i in 1 2; do
6420 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6421 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } \
6425 && test -f conftest2.$ac_objext; then
6426 : OK
6427 else
6428 am_cv_prog_cc_c_o=no
6429 break
6430 fi
6431 done
6432 rm -f core conftest*
6433 unset am_i
6434 fi
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6436 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6437 if test "$am_cv_prog_cc_c_o" != yes; then
6438 # Losing compiler, so override with the script.
6439 # FIXME: It is wrong to rewrite CC.
6440 # But if we don't then we get into trouble of one sort or another.
6441 # A longer-term fix would be to have automake use am__CC in this case,
6442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6443 CC="$am_aux_dir/compile $CC"
6444 fi
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451
6452 depcc="$CC" am_compiler_list=
6453
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6455 printf %s "checking dependency style of $depcc... " >&6; }
6456 if test ${am_cv_CC_dependencies_compiler_type+y}
6457 then :
6458 printf %s "(cached) " >&6
6459 else $as_nop
6460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6461 # We make a subdir and do the tests there. Otherwise we can end up
6462 # making bogus files that we don't know about and never remove. For
6463 # instance it was reported that on HP-UX the gcc test will end up
6464 # making a dummy file named 'D' -- because '-MD' means "put the output
6465 # in D".
6466 rm -rf conftest.dir
6467 mkdir conftest.dir
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6471 cd conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6477 # directory.
6478 mkdir sub
6479
6480 am_cv_CC_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6483 fi
6484 am__universal=false
6485 case " $depcc " in #(
6486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6487 esac
6488
6489 for depmode in $am_compiler_list; do
6490 # Setup a source with many dependencies, because some compilers
6491 # like to wrap large dependency lists on column 80 (with \), and
6492 # we should not choose a depcomp mode which is confused by this.
6493 #
6494 # We need to recreate these files for each test, as the compiler may
6495 # overwrite some of them when testing with obscure command lines.
6496 # This happens at least with the AIX C compiler.
6497 : > sub/conftest.c
6498 for i in 1 2 3 4 5 6; do
6499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6501 # Solaris 10 /bin/sh.
6502 echo '/* dummy */' > sub/conftst$i.h
6503 done
6504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6505
6506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6507 # mode. It turns out that the SunPro C++ compiler does not properly
6508 # handle '-M -o', and we need to detect this. Also, some Intel
6509 # versions had trouble with output in subdirs.
6510 am__obj=sub/conftest.${OBJEXT-o}
6511 am__minus_obj="-o $am__obj"
6512 case $depmode in
6513 gcc)
6514 # This depmode causes a compiler race in universal mode.
6515 test "$am__universal" = false || continue
6516 ;;
6517 nosideeffect)
6518 # After this tag, mechanisms are not by side-effect, so they'll
6519 # only be used when explicitly requested.
6520 if test "x$enable_dependency_tracking" = xyes; then
6521 continue
6522 else
6523 break
6524 fi
6525 ;;
6526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6527 # This compiler won't grok '-c -o', but also, the minuso test has
6528 # not run yet. These depmodes are late enough in the game, and
6529 # so weak that their functioning should not be impacted.
6530 am__obj=conftest.${OBJEXT-o}
6531 am__minus_obj=
6532 ;;
6533 none) break ;;
6534 esac
6535 if depmode=$depmode \
6536 source=sub/conftest.c object=$am__obj \
6537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6539 >/dev/null 2>conftest.err &&
6540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6544 # icc doesn't choke on unknown options, it will just issue warnings
6545 # or remarks (even with -Werror). So we grep stderr for any message
6546 # that says an option was ignored or not supported.
6547 # When given -MP, icc 7.0 and 7.1 complain thusly:
6548 # icc: Command line warning: ignoring option '-M'; no argument required
6549 # The diagnosis changed in icc 8.0:
6550 # icc: Command line remark: option '-MP' not supported
6551 if (grep 'ignoring option' conftest.err ||
6552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6553 am_cv_CC_dependencies_compiler_type=$depmode
6554 break
6555 fi
6556 fi
6557 done
6558
6559 cd ..
6560 rm -rf conftest.dir
6561 else
6562 am_cv_CC_dependencies_compiler_type=none
6563 fi
6564
6565 fi
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6567 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6569
6570 if
6571 test "x$enable_dependency_tracking" != xno \
6572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6573 am__fastdepCC_TRUE=
6574 am__fastdepCC_FALSE='#'
6575 else
6576 am__fastdepCC_TRUE='#'
6577 am__fastdepCC_FALSE=
6578 fi
6579
6580
6581
6582
6583
6584
6585
6586
6587 ac_ext=cpp
6588 ac_cpp='$CXXCPP $CPPFLAGS'
6589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6592 if test -z "$CXX"; then
6593 if test -n "$CCC"; then
6594 CXX=$CCC
6595 else
6596 if test -n "$ac_tool_prefix"; then
6597 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6598 do
6599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 printf %s "checking for $ac_word... " >&6; }
6603 if test ${ac_cv_prog_CXX+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else $as_nop
6607 if test -n "$CXX"; then
6608 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613 IFS=$as_save_IFS
6614 case $as_dir in #(((
6615 '') as_dir=./ ;;
6616 */) ;;
6617 *) as_dir=$as_dir/ ;;
6618 esac
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 CXX=$ac_cv_prog_CXX
6632 if test -n "$CXX"; then
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6634 printf "%s\n" "$CXX" >&6; }
6635 else
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 printf "%s\n" "no" >&6; }
6638 fi
6639
6640
6641 test -n "$CXX" && break
6642 done
6643 fi
6644 if test -z "$CXX"; then
6645 ac_ct_CXX=$CXX
6646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6647 do
6648 # Extract the first word of "$ac_prog", so it can be a program name with args.
6649 set dummy $ac_prog; ac_word=$2
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 printf %s "checking for $ac_word... " >&6; }
6652 if test ${ac_cv_prog_ac_ct_CXX+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else $as_nop
6656 if test -n "$ac_ct_CXX"; then
6657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 case $as_dir in #(((
6664 '') as_dir=./ ;;
6665 */) ;;
6666 *) as_dir=$as_dir/ ;;
6667 esac
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_CXX="$ac_prog"
6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6681 if test -n "$ac_ct_CXX"; then
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6683 printf "%s\n" "$ac_ct_CXX" >&6; }
6684 else
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 printf "%s\n" "no" >&6; }
6687 fi
6688
6689
6690 test -n "$ac_ct_CXX" && break
6691 done
6692
6693 if test "x$ac_ct_CXX" = x; then
6694 CXX="g++"
6695 else
6696 case $cross_compiling:$ac_tool_warned in
6697 yes:)
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6701 esac
6702 CXX=$ac_ct_CXX
6703 fi
6704 fi
6705
6706 fi
6707 fi
6708 # Provide some information about the compiler.
6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6710 set X $ac_compile
6711 ac_compiler=$2
6712 for ac_option in --version -v -V -qversion; do
6713 { { ac_try="$ac_compiler $ac_option >&5"
6714 case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717 esac
6718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6719 printf "%s\n" "$ac_try_echo"; } >&5
6720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6721 ac_status=$?
6722 if test -s conftest.err; then
6723 sed '10a\
6724 ... rest of stderr output deleted ...
6725 10q' conftest.err >conftest.er1
6726 cat conftest.er1 >&5
6727 fi
6728 rm -f conftest.er1 conftest.err
6729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }
6731 done
6732
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6734 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6735 if test ${ac_cv_cxx_compiler_gnu+y}
6736 then :
6737 printf %s "(cached) " >&6
6738 else $as_nop
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 int
6743 main (void)
6744 {
6745 #ifndef __GNUC__
6746 choke me
6747 #endif
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_cxx_try_compile "$LINENO"
6754 then :
6755 ac_compiler_gnu=yes
6756 else $as_nop
6757 ac_compiler_gnu=no
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6761
6762 fi
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6764 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766
6767 if test $ac_compiler_gnu = yes; then
6768 GXX=yes
6769 else
6770 GXX=
6771 fi
6772 ac_test_CXXFLAGS=${CXXFLAGS+y}
6773 ac_save_CXXFLAGS=$CXXFLAGS
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6775 printf %s "checking whether $CXX accepts -g... " >&6; }
6776 if test ${ac_cv_prog_cxx_g+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else $as_nop
6780 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6781 ac_cxx_werror_flag=yes
6782 ac_cv_prog_cxx_g=no
6783 CXXFLAGS="-g"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786
6787 int
6788 main (void)
6789 {
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_cxx_try_compile "$LINENO"
6796 then :
6797 ac_cv_prog_cxx_g=yes
6798 else $as_nop
6799 CXXFLAGS=""
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802
6803 int
6804 main (void)
6805 {
6806
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 if ac_fn_cxx_try_compile "$LINENO"
6812 then :
6813
6814 else $as_nop
6815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6816 CXXFLAGS="-g"
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819
6820 int
6821 main (void)
6822 {
6823
6824 ;
6825 return 0;
6826 }
6827 _ACEOF
6828 if ac_fn_cxx_try_compile "$LINENO"
6829 then :
6830 ac_cv_prog_cxx_g=yes
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6840 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6841 if test $ac_test_CXXFLAGS; then
6842 CXXFLAGS=$ac_save_CXXFLAGS
6843 elif test $ac_cv_prog_cxx_g = yes; then
6844 if test "$GXX" = yes; then
6845 CXXFLAGS="-g -O2"
6846 else
6847 CXXFLAGS="-g"
6848 fi
6849 else
6850 if test "$GXX" = yes; then
6851 CXXFLAGS="-O2"
6852 else
6853 CXXFLAGS=
6854 fi
6855 fi
6856 ac_prog_cxx_stdcxx=no
6857 if test x$ac_prog_cxx_stdcxx = xno
6858 then :
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6860 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6861 if test ${ac_cv_prog_cxx_cxx11+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else $as_nop
6865 ac_cv_prog_cxx_cxx11=no
6866 ac_save_CXX=$CXX
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 $ac_cxx_conftest_cxx11_program
6870 _ACEOF
6871 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6872 do
6873 CXX="$ac_save_CXX $ac_arg"
6874 if ac_fn_cxx_try_compile "$LINENO"
6875 then :
6876 ac_cv_prog_cxx_cxx11=$ac_arg
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.beam
6879 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6880 done
6881 rm -f conftest.$ac_ext
6882 CXX=$ac_save_CXX
6883 fi
6884
6885 if test "x$ac_cv_prog_cxx_cxx11" = xno
6886 then :
6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6888 printf "%s\n" "unsupported" >&6; }
6889 else $as_nop
6890 if test "x$ac_cv_prog_cxx_cxx11" = x
6891 then :
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6893 printf "%s\n" "none needed" >&6; }
6894 else $as_nop
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6896 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6897 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6898 fi
6899 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6900 ac_prog_cxx_stdcxx=cxx11
6901 fi
6902 fi
6903 if test x$ac_prog_cxx_stdcxx = xno
6904 then :
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6906 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6907 if test ${ac_cv_prog_cxx_cxx98+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else $as_nop
6911 ac_cv_prog_cxx_cxx98=no
6912 ac_save_CXX=$CXX
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 $ac_cxx_conftest_cxx98_program
6916 _ACEOF
6917 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6918 do
6919 CXX="$ac_save_CXX $ac_arg"
6920 if ac_fn_cxx_try_compile "$LINENO"
6921 then :
6922 ac_cv_prog_cxx_cxx98=$ac_arg
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam
6925 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6926 done
6927 rm -f conftest.$ac_ext
6928 CXX=$ac_save_CXX
6929 fi
6930
6931 if test "x$ac_cv_prog_cxx_cxx98" = xno
6932 then :
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6934 printf "%s\n" "unsupported" >&6; }
6935 else $as_nop
6936 if test "x$ac_cv_prog_cxx_cxx98" = x
6937 then :
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6939 printf "%s\n" "none needed" >&6; }
6940 else $as_nop
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6942 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6943 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6944 fi
6945 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6946 ac_prog_cxx_stdcxx=cxx98
6947 fi
6948 fi
6949
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 depcc="$CXX" am_compiler_list=
6957
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6959 printf %s "checking dependency style of $depcc... " >&6; }
6960 if test ${am_cv_CXX_dependencies_compiler_type+y}
6961 then :
6962 printf %s "(cached) " >&6
6963 else $as_nop
6964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6965 # We make a subdir and do the tests there. Otherwise we can end up
6966 # making bogus files that we don't know about and never remove. For
6967 # instance it was reported that on HP-UX the gcc test will end up
6968 # making a dummy file named 'D' -- because '-MD' means "put the output
6969 # in D".
6970 rm -rf conftest.dir
6971 mkdir conftest.dir
6972 # Copy depcomp to subdir because otherwise we won't find it if we're
6973 # using a relative directory.
6974 cp "$am_depcomp" conftest.dir
6975 cd conftest.dir
6976 # We will build objects and dependencies in a subdirectory because
6977 # it helps to detect inapplicable dependency modes. For instance
6978 # both Tru64's cc and ICC support -MD to output dependencies as a
6979 # side effect of compilation, but ICC will put the dependencies in
6980 # the current directory while Tru64 will put them in the object
6981 # directory.
6982 mkdir sub
6983
6984 am_cv_CXX_dependencies_compiler_type=none
6985 if test "$am_compiler_list" = ""; then
6986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6987 fi
6988 am__universal=false
6989 case " $depcc " in #(
6990 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6991 esac
6992
6993 for depmode in $am_compiler_list; do
6994 # Setup a source with many dependencies, because some compilers
6995 # like to wrap large dependency lists on column 80 (with \), and
6996 # we should not choose a depcomp mode which is confused by this.
6997 #
6998 # We need to recreate these files for each test, as the compiler may
6999 # overwrite some of them when testing with obscure command lines.
7000 # This happens at least with the AIX C compiler.
7001 : > sub/conftest.c
7002 for i in 1 2 3 4 5 6; do
7003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7005 # Solaris 10 /bin/sh.
7006 echo '/* dummy */' > sub/conftst$i.h
7007 done
7008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7009
7010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7011 # mode. It turns out that the SunPro C++ compiler does not properly
7012 # handle '-M -o', and we need to detect this. Also, some Intel
7013 # versions had trouble with output in subdirs.
7014 am__obj=sub/conftest.${OBJEXT-o}
7015 am__minus_obj="-o $am__obj"
7016 case $depmode in
7017 gcc)
7018 # This depmode causes a compiler race in universal mode.
7019 test "$am__universal" = false || continue
7020 ;;
7021 nosideeffect)
7022 # After this tag, mechanisms are not by side-effect, so they'll
7023 # only be used when explicitly requested.
7024 if test "x$enable_dependency_tracking" = xyes; then
7025 continue
7026 else
7027 break
7028 fi
7029 ;;
7030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7031 # This compiler won't grok '-c -o', but also, the minuso test has
7032 # not run yet. These depmodes are late enough in the game, and
7033 # so weak that their functioning should not be impacted.
7034 am__obj=conftest.${OBJEXT-o}
7035 am__minus_obj=
7036 ;;
7037 none) break ;;
7038 esac
7039 if depmode=$depmode \
7040 source=sub/conftest.c object=$am__obj \
7041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7043 >/dev/null 2>conftest.err &&
7044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7048 # icc doesn't choke on unknown options, it will just issue warnings
7049 # or remarks (even with -Werror). So we grep stderr for any message
7050 # that says an option was ignored or not supported.
7051 # When given -MP, icc 7.0 and 7.1 complain thusly:
7052 # icc: Command line warning: ignoring option '-M'; no argument required
7053 # The diagnosis changed in icc 8.0:
7054 # icc: Command line remark: option '-MP' not supported
7055 if (grep 'ignoring option' conftest.err ||
7056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7057 am_cv_CXX_dependencies_compiler_type=$depmode
7058 break
7059 fi
7060 fi
7061 done
7062
7063 cd ..
7064 rm -rf conftest.dir
7065 else
7066 am_cv_CXX_dependencies_compiler_type=none
7067 fi
7068
7069 fi
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7071 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7072 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7073
7074 if
7075 test "x$enable_dependency_tracking" != xno \
7076 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7077 am__fastdepCXX_TRUE=
7078 am__fastdepCXX_FALSE='#'
7079 else
7080 am__fastdepCXX_TRUE='#'
7081 am__fastdepCXX_FALSE=
7082 fi
7083
7084
7085 ac_ext=c
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7091 printf %s "checking how to run the C preprocessor... " >&6; }
7092 # On Suns, sometimes $CPP names a directory.
7093 if test -n "$CPP" && test -d "$CPP"; then
7094 CPP=
7095 fi
7096 if test -z "$CPP"; then
7097 if test ${ac_cv_prog_CPP+y}
7098 then :
7099 printf %s "(cached) " >&6
7100 else $as_nop
7101 # Double quotes because $CC needs to be expanded
7102 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7103 do
7104 ac_preproc_ok=false
7105 for ac_c_preproc_warn_flag in '' yes
7106 do
7107 # Use a header file that comes with gcc, so configuring glibc
7108 # with a fresh cross-compiler works.
7109 # On the NeXT, cc -E runs the code through the compiler's parser,
7110 # not just through cpp. "Syntax error" is here to catch this case.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <limits.h>
7114 Syntax error
7115 _ACEOF
7116 if ac_fn_c_try_cpp "$LINENO"
7117 then :
7118
7119 else $as_nop
7120 # Broken: fails on valid input.
7121 continue
7122 fi
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125 # OK, works on sane cases. Now check whether nonexistent headers
7126 # can be detected and how.
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 #include <ac_nonexistent.h>
7130 _ACEOF
7131 if ac_fn_c_try_cpp "$LINENO"
7132 then :
7133 # Broken: success on invalid input.
7134 continue
7135 else $as_nop
7136 # Passes both tests.
7137 ac_preproc_ok=:
7138 break
7139 fi
7140 rm -f conftest.err conftest.i conftest.$ac_ext
7141
7142 done
7143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7144 rm -f conftest.i conftest.err conftest.$ac_ext
7145 if $ac_preproc_ok
7146 then :
7147 break
7148 fi
7149
7150 done
7151 ac_cv_prog_CPP=$CPP
7152
7153 fi
7154 CPP=$ac_cv_prog_CPP
7155 else
7156 ac_cv_prog_CPP=$CPP
7157 fi
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7159 printf "%s\n" "$CPP" >&6; }
7160 ac_preproc_ok=false
7161 for ac_c_preproc_warn_flag in '' yes
7162 do
7163 # Use a header file that comes with gcc, so configuring glibc
7164 # with a fresh cross-compiler works.
7165 # On the NeXT, cc -E runs the code through the compiler's parser,
7166 # not just through cpp. "Syntax error" is here to catch this case.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <limits.h>
7170 Syntax error
7171 _ACEOF
7172 if ac_fn_c_try_cpp "$LINENO"
7173 then :
7174
7175 else $as_nop
7176 # Broken: fails on valid input.
7177 continue
7178 fi
7179 rm -f conftest.err conftest.i conftest.$ac_ext
7180
7181 # OK, works on sane cases. Now check whether nonexistent headers
7182 # can be detected and how.
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <ac_nonexistent.h>
7186 _ACEOF
7187 if ac_fn_c_try_cpp "$LINENO"
7188 then :
7189 # Broken: success on invalid input.
7190 continue
7191 else $as_nop
7192 # Passes both tests.
7193 ac_preproc_ok=:
7194 break
7195 fi
7196 rm -f conftest.err conftest.i conftest.$ac_ext
7197
7198 done
7199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7200 rm -f conftest.i conftest.err conftest.$ac_ext
7201 if $ac_preproc_ok
7202 then :
7203
7204 else $as_nop
7205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7207 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7208 See \`config.log' for more details" "$LINENO" 5; }
7209 fi
7210
7211 ac_ext=c
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216
7217
7218 if test -n "$ac_tool_prefix"; then
7219 for ac_prog in ar lib "link -lib"
7220 do
7221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_prog_AR+y}
7226 then :
7227 printf %s "(cached) " >&6
7228 else $as_nop
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 case $as_dir in #(((
7237 '') as_dir=./ ;;
7238 */) ;;
7239 *) as_dir=$as_dir/ ;;
7240 esac
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 AR=$ac_cv_prog_AR
7254 if test -n "$AR"; then
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7256 printf "%s\n" "$AR" >&6; }
7257 else
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 printf "%s\n" "no" >&6; }
7260 fi
7261
7262
7263 test -n "$AR" && break
7264 done
7265 fi
7266 if test -z "$AR"; then
7267 ac_ct_AR=$AR
7268 for ac_prog in ar lib "link -lib"
7269 do
7270 # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 printf %s "checking for $ac_word... " >&6; }
7274 if test ${ac_cv_prog_ac_ct_AR+y}
7275 then :
7276 printf %s "(cached) " >&6
7277 else $as_nop
7278 if test -n "$ac_ct_AR"; then
7279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 case $as_dir in #(((
7286 '') as_dir=./ ;;
7287 */) ;;
7288 *) as_dir=$as_dir/ ;;
7289 esac
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_ac_ct_AR="$ac_prog"
7293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7303 if test -n "$ac_ct_AR"; then
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7305 printf "%s\n" "$ac_ct_AR" >&6; }
7306 else
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 printf "%s\n" "no" >&6; }
7309 fi
7310
7311
7312 test -n "$ac_ct_AR" && break
7313 done
7314
7315 if test "x$ac_ct_AR" = x; then
7316 AR="false"
7317 else
7318 case $cross_compiling:$ac_tool_warned in
7319 yes:)
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322 ac_tool_warned=yes ;;
7323 esac
7324 AR=$ac_ct_AR
7325 fi
7326 fi
7327
7328 : ${AR=ar}
7329
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7331 printf %s "checking the archiver ($AR) interface... " >&6; }
7332 if test ${am_cv_ar_interface+y}
7333 then :
7334 printf %s "(cached) " >&6
7335 else $as_nop
7336 ac_ext=c
7337 ac_cpp='$CPP $CPPFLAGS'
7338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7341
7342 am_cv_ar_interface=ar
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int some_variable = 0;
7346 _ACEOF
7347 if ac_fn_c_try_compile "$LINENO"
7348 then :
7349 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7351 (eval $am_ar_try) 2>&5
7352 ac_status=$?
7353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }
7355 if test "$ac_status" -eq 0; then
7356 am_cv_ar_interface=ar
7357 else
7358 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7360 (eval $am_ar_try) 2>&5
7361 ac_status=$?
7362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }
7364 if test "$ac_status" -eq 0; then
7365 am_cv_ar_interface=lib
7366 else
7367 am_cv_ar_interface=unknown
7368 fi
7369 fi
7370 rm -f conftest.lib libconftest.a
7371
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 fi
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7382 printf "%s\n" "$am_cv_ar_interface" >&6; }
7383
7384 case $am_cv_ar_interface in
7385 ar)
7386 ;;
7387 lib)
7388 # Microsoft lib, so override with the ar-lib wrapper script.
7389 # FIXME: It is wrong to rewrite AR.
7390 # But if we don't then we get into trouble of one sort or another.
7391 # A longer-term fix would be to have automake use am__AR in this case,
7392 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7393 # similar.
7394 AR="$am_aux_dir/ar-lib $AR"
7395 ;;
7396 unknown)
7397 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7398 ;;
7399 esac
7400
7401
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 printf %s "checking for $ac_word... " >&6; }
7407 if test ${ac_cv_prog_RANLIB+y}
7408 then :
7409 printf %s "(cached) " >&6
7410 else $as_nop
7411 if test -n "$RANLIB"; then
7412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 case $as_dir in #(((
7419 '') as_dir=./ ;;
7420 */) ;;
7421 *) as_dir=$as_dir/ ;;
7422 esac
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 RANLIB=$ac_cv_prog_RANLIB
7436 if test -n "$RANLIB"; then
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438 printf "%s\n" "$RANLIB" >&6; }
7439 else
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 printf "%s\n" "no" >&6; }
7442 fi
7443
7444
7445 fi
7446 if test -z "$ac_cv_prog_RANLIB"; then
7447 ac_ct_RANLIB=$RANLIB
7448 # Extract the first word of "ranlib", so it can be a program name with args.
7449 set dummy ranlib; 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_ac_ct_RANLIB+y}
7453 then :
7454 printf %s "(cached) " >&6
7455 else $as_nop
7456 if test -n "$ac_ct_RANLIB"; then
7457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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 fi
7480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7481 if test -n "$ac_ct_RANLIB"; then
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7483 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7484 else
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 printf "%s\n" "no" >&6; }
7487 fi
7488
7489 if test "x$ac_ct_RANLIB" = x; then
7490 RANLIB=":"
7491 else
7492 case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498 RANLIB=$ac_ct_RANLIB
7499 fi
7500 else
7501 RANLIB="$ac_cv_prog_RANLIB"
7502 fi
7503
7504
7505
7506
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7508 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7509 set x ${MAKE-make}
7510 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7511 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
7512 then :
7513 printf %s "(cached) " >&6
7514 else $as_nop
7515 cat >conftest.make <<\_ACEOF
7516 SHELL = /bin/sh
7517 all:
7518 @echo '@@@%%%=$(MAKE)=@@@%%%'
7519 _ACEOF
7520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7522 *@@@%%%=?*=@@@%%%*)
7523 eval ac_cv_prog_make_${ac_make}_set=yes;;
7524 *)
7525 eval ac_cv_prog_make_${ac_make}_set=no;;
7526 esac
7527 rm -f conftest.make
7528 fi
7529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7531 printf "%s\n" "yes" >&6; }
7532 SET_MAKE=
7533 else
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 printf "%s\n" "no" >&6; }
7536 SET_MAKE="MAKE=${MAKE-make}"
7537 fi
7538
7539
7540
7541 # Check whether --enable-largefile was given.
7542 if test ${enable_largefile+y}
7543 then :
7544 enableval=$enable_largefile;
7545 fi
7546
7547 if test "$enable_largefile" != no; then
7548
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7550 printf %s "checking for special C compiler options needed for large files... " >&6; }
7551 if test ${ac_cv_sys_largefile_CC+y}
7552 then :
7553 printf %s "(cached) " >&6
7554 else $as_nop
7555 ac_cv_sys_largefile_CC=no
7556 if test "$GCC" != yes; then
7557 ac_save_CC=$CC
7558 while :; do
7559 # IRIX 6.2 and later do not support large files by default,
7560 # so use the C compiler's -n32 option if that helps.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <sys/types.h>
7564 /* Check that off_t can represent 2**63 - 1 correctly.
7565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7566 since some C++ compilers masquerading as C compilers
7567 incorrectly reject 9223372036854775807. */
7568 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7570 && LARGE_OFF_T % 2147483647 == 1)
7571 ? 1 : -1];
7572 int
7573 main (void)
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"
7581 then :
7582 break
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.beam
7585 CC="$CC -n32"
7586 if ac_fn_c_try_compile "$LINENO"
7587 then :
7588 ac_cv_sys_largefile_CC=' -n32'; break
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.beam
7591 break
7592 done
7593 CC=$ac_save_CC
7594 rm -f conftest.$ac_ext
7595 fi
7596 fi
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7598 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7599 if test "$ac_cv_sys_largefile_CC" != no; then
7600 CC=$CC$ac_cv_sys_largefile_CC
7601 fi
7602
7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7604 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7605 if test ${ac_cv_sys_file_offset_bits+y}
7606 then :
7607 printf %s "(cached) " >&6
7608 else $as_nop
7609 while :; do
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 #include <sys/types.h>
7613 /* Check that off_t can represent 2**63 - 1 correctly.
7614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7615 since some C++ compilers masquerading as C compilers
7616 incorrectly reject 9223372036854775807. */
7617 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7619 && LARGE_OFF_T % 2147483647 == 1)
7620 ? 1 : -1];
7621 int
7622 main (void)
7623 {
7624
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"
7630 then :
7631 ac_cv_sys_file_offset_bits=no; break
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #define _FILE_OFFSET_BITS 64
7637 #include <sys/types.h>
7638 /* Check that off_t can represent 2**63 - 1 correctly.
7639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7640 since some C++ compilers masquerading as C compilers
7641 incorrectly reject 9223372036854775807. */
7642 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7644 && LARGE_OFF_T % 2147483647 == 1)
7645 ? 1 : -1];
7646 int
7647 main (void)
7648 {
7649
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_c_try_compile "$LINENO"
7655 then :
7656 ac_cv_sys_file_offset_bits=64; break
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7659 ac_cv_sys_file_offset_bits=unknown
7660 break
7661 done
7662 fi
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7664 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7665 case $ac_cv_sys_file_offset_bits in #(
7666 no | unknown) ;;
7667 *)
7668 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7669 ;;
7670 esac
7671 rm -rf conftest*
7672 if test $ac_cv_sys_file_offset_bits = unknown; then
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7674 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7675 if test ${ac_cv_sys_large_files+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else $as_nop
7679 while :; do
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <sys/types.h>
7683 /* Check that off_t can represent 2**63 - 1 correctly.
7684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7685 since some C++ compilers masquerading as C compilers
7686 incorrectly reject 9223372036854775807. */
7687 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7689 && LARGE_OFF_T % 2147483647 == 1)
7690 ? 1 : -1];
7691 int
7692 main (void)
7693 {
7694
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"
7700 then :
7701 ac_cv_sys_large_files=no; break
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 #define _LARGE_FILES 1
7707 #include <sys/types.h>
7708 /* Check that off_t can represent 2**63 - 1 correctly.
7709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7710 since some C++ compilers masquerading as C compilers
7711 incorrectly reject 9223372036854775807. */
7712 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7714 && LARGE_OFF_T % 2147483647 == 1)
7715 ? 1 : -1];
7716 int
7717 main (void)
7718 {
7719
7720 ;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"
7725 then :
7726 ac_cv_sys_large_files=1; break
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7729 ac_cv_sys_large_files=unknown
7730 break
7731 done
7732 fi
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7734 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7735 case $ac_cv_sys_large_files in #(
7736 no | unknown) ;;
7737 *)
7738 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7739 ;;
7740 esac
7741 rm -rf conftest*
7742 fi
7743 fi
7744
7745 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7746 if test "x$ac_cv_func_ppoll" = xyes
7747 then :
7748 printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
7749
7750 fi
7751
7752 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7753 if test "x$ac_cv_func_openat" = xyes
7754 then :
7755 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
7756
7757 fi
7758
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7760 printf %s "checking for a sed that does not truncate output... " >&6; }
7761 if test ${ac_cv_path_SED+y}
7762 then :
7763 printf %s "(cached) " >&6
7764 else $as_nop
7765 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7766 for ac_i in 1 2 3 4 5 6 7; do
7767 ac_script="$ac_script$as_nl$ac_script"
7768 done
7769 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7770 { ac_script=; unset ac_script;}
7771 if test -z "$SED"; then
7772 ac_path_SED_found=false
7773 # Loop through the user's path and test for each of PROGNAME-LIST
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 case $as_dir in #(((
7779 '') as_dir=./ ;;
7780 */) ;;
7781 *) as_dir=$as_dir/ ;;
7782 esac
7783 for ac_prog in sed gsed
7784 do
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7787 as_fn_executable_p "$ac_path_SED" || continue
7788 # Check for GNU ac_path_SED and select it if it is found.
7789 # Check for GNU $ac_path_SED
7790 case `"$ac_path_SED" --version 2>&1` in
7791 *GNU*)
7792 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7793 *)
7794 ac_count=0
7795 printf %s 0123456789 >"conftest.in"
7796 while :
7797 do
7798 cat "conftest.in" "conftest.in" >"conftest.tmp"
7799 mv "conftest.tmp" "conftest.in"
7800 cp "conftest.in" "conftest.nl"
7801 printf "%s\n" '' >> "conftest.nl"
7802 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7804 as_fn_arith $ac_count + 1 && ac_count=$as_val
7805 if test $ac_count -gt ${ac_path_SED_max-0}; then
7806 # Best one so far, save it but keep looking for a better one
7807 ac_cv_path_SED="$ac_path_SED"
7808 ac_path_SED_max=$ac_count
7809 fi
7810 # 10*(2^10) chars as input seems more than enough
7811 test $ac_count -gt 10 && break
7812 done
7813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7814 esac
7815
7816 $ac_path_SED_found && break 3
7817 done
7818 done
7819 done
7820 IFS=$as_save_IFS
7821 if test -z "$ac_cv_path_SED"; then
7822 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7823 fi
7824 else
7825 ac_cv_path_SED=$SED
7826 fi
7827
7828 fi
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7830 printf "%s\n" "$ac_cv_path_SED" >&6; }
7831 SED="$ac_cv_path_SED"
7832 rm -f conftest.sed
7833
7834
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7836 printf %s "checking whether NLS is requested... " >&6; }
7837 # Check whether --enable-nls was given.
7838 if test ${enable_nls+y}
7839 then :
7840 enableval=$enable_nls; USE_NLS=$enableval
7841 else $as_nop
7842 USE_NLS=yes
7843 fi
7844
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7846 printf "%s\n" "$USE_NLS" >&6; }
7847
7848
7849
7850
7851 GETTEXT_MACRO_VERSION=0.19
7852
7853
7854
7855
7856 # Prepare PATH_SEPARATOR.
7857 # The user is always right.
7858 if test "${PATH_SEPARATOR+set}" != set; then
7859 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7860 # contains only /bin. Note that ksh looks also at the FPATH variable,
7861 # so we have to set that as well for the test.
7862 PATH_SEPARATOR=:
7863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7864 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7865 || PATH_SEPARATOR=';'
7866 }
7867 fi
7868
7869 # Find out how to test for executable files. Don't use a zero-byte file,
7870 # as systems may use methods other than mode bits to determine executability.
7871 cat >conf$$.file <<_ASEOF
7872 #! /bin/sh
7873 exit 0
7874 _ASEOF
7875 chmod +x conf$$.file
7876 if test -x conf$$.file >/dev/null 2>&1; then
7877 ac_executable_p="test -x"
7878 else
7879 ac_executable_p="test -f"
7880 fi
7881 rm -f conf$$.file
7882
7883 # Extract the first word of "msgfmt", so it can be a program name with args.
7884 set dummy msgfmt; ac_word=$2
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 printf %s "checking for $ac_word... " >&6; }
7887 if test ${ac_cv_path_MSGFMT+y}
7888 then :
7889 printf %s "(cached) " >&6
7890 else $as_nop
7891 case "$MSGFMT" in
7892 [\\/]* | ?:[\\/]*)
7893 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7894 ;;
7895 *)
7896 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7897 for ac_dir in $PATH; do
7898 IFS="$ac_save_IFS"
7899 test -z "$ac_dir" && ac_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7902 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7903 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7904 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7905 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7906 break 2
7907 fi
7908 fi
7909 done
7910 done
7911 IFS="$ac_save_IFS"
7912 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7913 ;;
7914 esac
7915 fi
7916 MSGFMT="$ac_cv_path_MSGFMT"
7917 if test "$MSGFMT" != ":"; then
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7919 printf "%s\n" "$MSGFMT" >&6; }
7920 else
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 printf "%s\n" "no" >&6; }
7923 fi
7924
7925 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7926 set dummy gmsgfmt; ac_word=$2
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 printf %s "checking for $ac_word... " >&6; }
7929 if test ${ac_cv_path_GMSGFMT+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
7933 case $GMSGFMT in
7934 [\\/]* | ?:[\\/]*)
7935 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7936 ;;
7937 *)
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 case $as_dir in #(((
7943 '') as_dir=./ ;;
7944 */) ;;
7945 *) as_dir=$as_dir/ ;;
7946 esac
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
7950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7958 ;;
7959 esac
7960 fi
7961 GMSGFMT=$ac_cv_path_GMSGFMT
7962 if test -n "$GMSGFMT"; then
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7964 printf "%s\n" "$GMSGFMT" >&6; }
7965 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 printf "%s\n" "no" >&6; }
7968 fi
7969
7970
7971
7972 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7973 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7974 *) MSGFMT_015=$MSGFMT ;;
7975 esac
7976
7977 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7978 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7979 *) GMSGFMT_015=$GMSGFMT ;;
7980 esac
7981
7982
7983
7984 # Prepare PATH_SEPARATOR.
7985 # The user is always right.
7986 if test "${PATH_SEPARATOR+set}" != set; then
7987 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7988 # contains only /bin. Note that ksh looks also at the FPATH variable,
7989 # so we have to set that as well for the test.
7990 PATH_SEPARATOR=:
7991 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7992 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7993 || PATH_SEPARATOR=';'
7994 }
7995 fi
7996
7997 # Find out how to test for executable files. Don't use a zero-byte file,
7998 # as systems may use methods other than mode bits to determine executability.
7999 cat >conf$$.file <<_ASEOF
8000 #! /bin/sh
8001 exit 0
8002 _ASEOF
8003 chmod +x conf$$.file
8004 if test -x conf$$.file >/dev/null 2>&1; then
8005 ac_executable_p="test -x"
8006 else
8007 ac_executable_p="test -f"
8008 fi
8009 rm -f conf$$.file
8010
8011 # Extract the first word of "xgettext", so it can be a program name with args.
8012 set dummy xgettext; ac_word=$2
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 printf %s "checking for $ac_word... " >&6; }
8015 if test ${ac_cv_path_XGETTEXT+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else $as_nop
8019 case "$XGETTEXT" in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8022 ;;
8023 *)
8024 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8025 for ac_dir in $PATH; do
8026 IFS="$ac_save_IFS"
8027 test -z "$ac_dir" && ac_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8030 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8031 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8032 (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
8033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8034 break 2
8035 fi
8036 fi
8037 done
8038 done
8039 IFS="$ac_save_IFS"
8040 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8041 ;;
8042 esac
8043 fi
8044 XGETTEXT="$ac_cv_path_XGETTEXT"
8045 if test "$XGETTEXT" != ":"; then
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8047 printf "%s\n" "$XGETTEXT" >&6; }
8048 else
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 printf "%s\n" "no" >&6; }
8051 fi
8052
8053 rm -f messages.po
8054
8055 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8056 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8057 *) XGETTEXT_015=$XGETTEXT ;;
8058 esac
8059
8060
8061
8062 # Prepare PATH_SEPARATOR.
8063 # The user is always right.
8064 if test "${PATH_SEPARATOR+set}" != set; then
8065 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8066 # contains only /bin. Note that ksh looks also at the FPATH variable,
8067 # so we have to set that as well for the test.
8068 PATH_SEPARATOR=:
8069 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8070 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8071 || PATH_SEPARATOR=';'
8072 }
8073 fi
8074
8075 # Find out how to test for executable files. Don't use a zero-byte file,
8076 # as systems may use methods other than mode bits to determine executability.
8077 cat >conf$$.file <<_ASEOF
8078 #! /bin/sh
8079 exit 0
8080 _ASEOF
8081 chmod +x conf$$.file
8082 if test -x conf$$.file >/dev/null 2>&1; then
8083 ac_executable_p="test -x"
8084 else
8085 ac_executable_p="test -f"
8086 fi
8087 rm -f conf$$.file
8088
8089 # Extract the first word of "msgmerge", so it can be a program name with args.
8090 set dummy msgmerge; ac_word=$2
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 printf %s "checking for $ac_word... " >&6; }
8093 if test ${ac_cv_path_MSGMERGE+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else $as_nop
8097 case "$MSGMERGE" in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8100 ;;
8101 *)
8102 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8103 for ac_dir in $PATH; do
8104 IFS="$ac_save_IFS"
8105 test -z "$ac_dir" && ac_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8108 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8109 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8110 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8111 break 2
8112 fi
8113 fi
8114 done
8115 done
8116 IFS="$ac_save_IFS"
8117 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8118 ;;
8119 esac
8120 fi
8121 MSGMERGE="$ac_cv_path_MSGMERGE"
8122 if test "$MSGMERGE" != ":"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8124 printf "%s\n" "$MSGMERGE" >&6; }
8125 else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 printf "%s\n" "no" >&6; }
8128 fi
8129
8130
8131 test -n "$localedir" || localedir='${datadir}/locale'
8132
8133
8134 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8135
8136
8137 ac_config_commands="$ac_config_commands po-directories"
8138
8139
8140
8141 if test "X$prefix" = "XNONE"; then
8142 acl_final_prefix="$ac_default_prefix"
8143 else
8144 acl_final_prefix="$prefix"
8145 fi
8146 if test "X$exec_prefix" = "XNONE"; then
8147 acl_final_exec_prefix='${prefix}'
8148 else
8149 acl_final_exec_prefix="$exec_prefix"
8150 fi
8151 acl_save_prefix="$prefix"
8152 prefix="$acl_final_prefix"
8153 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8154 prefix="$acl_save_prefix"
8155
8156
8157
8158 # Check whether --with-gnu-ld was given.
8159 if test ${with_gnu_ld+y}
8160 then :
8161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8162 else $as_nop
8163 with_gnu_ld=no
8164 fi
8165
8166 # Prepare PATH_SEPARATOR.
8167 # The user is always right.
8168 if test "${PATH_SEPARATOR+set}" != set; then
8169 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8170 # contains only /bin. Note that ksh looks also at the FPATH variable,
8171 # so we have to set that as well for the test.
8172 PATH_SEPARATOR=:
8173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8174 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8175 || PATH_SEPARATOR=';'
8176 }
8177 fi
8178
8179 ac_prog=ld
8180 if test "$GCC" = yes; then
8181 # Check if gcc -print-prog-name=ld gives a path.
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8183 printf %s "checking for ld used by $CC... " >&6; }
8184 case $host in
8185 *-*-mingw*)
8186 # gcc leaves a trailing carriage return which upsets mingw
8187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8188 *)
8189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8190 esac
8191 case $ac_prog in
8192 # Accept absolute paths.
8193 [\\/]* | ?:[\\/]*)
8194 re_direlt='/[^/][^/]*/\.\./'
8195 # Canonicalize the pathname of ld
8196 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8197 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
8198 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8199 done
8200 test -z "$LD" && LD="$ac_prog"
8201 ;;
8202 "")
8203 # If it fails, then pretend we aren't using GCC.
8204 ac_prog=ld
8205 ;;
8206 *)
8207 # If it is relative, then search for the first ld in PATH.
8208 with_gnu_ld=unknown
8209 ;;
8210 esac
8211 elif test "$with_gnu_ld" = yes; then
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8213 printf %s "checking for GNU ld... " >&6; }
8214 else
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8216 printf %s "checking for non-GNU ld... " >&6; }
8217 fi
8218 if test ${acl_cv_path_LD+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else $as_nop
8222 if test -z "$LD"; then
8223 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8224 for ac_dir in $PATH; do
8225 IFS="$acl_save_ifs"
8226 test -z "$ac_dir" && ac_dir=.
8227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8228 acl_cv_path_LD="$ac_dir/$ac_prog"
8229 # Check to see if the program is GNU ld. I'd rather use --version,
8230 # but apparently some variants of GNU ld only accept -v.
8231 # Break only if it was the GNU/non-GNU ld that we prefer.
8232 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8233 *GNU* | *'with BFD'*)
8234 test "$with_gnu_ld" != no && break
8235 ;;
8236 *)
8237 test "$with_gnu_ld" != yes && break
8238 ;;
8239 esac
8240 fi
8241 done
8242 IFS="$acl_save_ifs"
8243 else
8244 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8245 fi
8246 fi
8247
8248 LD="$acl_cv_path_LD"
8249 if test -n "$LD"; then
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8251 printf "%s\n" "$LD" >&6; }
8252 else
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 printf "%s\n" "no" >&6; }
8255 fi
8256 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8258 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8259 if test ${acl_cv_prog_gnu_ld+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else $as_nop
8263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8264 case `$LD -v 2>&1 </dev/null` in
8265 *GNU* | *'with BFD'*)
8266 acl_cv_prog_gnu_ld=yes
8267 ;;
8268 *)
8269 acl_cv_prog_gnu_ld=no
8270 ;;
8271 esac
8272 fi
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8274 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8275 with_gnu_ld=$acl_cv_prog_gnu_ld
8276
8277
8278
8279
8280
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8282 printf %s "checking for shared library run path origin... " >&6; }
8283 if test ${acl_cv_rpath+y}
8284 then :
8285 printf %s "(cached) " >&6
8286 else $as_nop
8287
8288 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8290 . ./conftest.sh
8291 rm -f ./conftest.sh
8292 acl_cv_rpath=done
8293
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8296 printf "%s\n" "$acl_cv_rpath" >&6; }
8297 wl="$acl_cv_wl"
8298 acl_libext="$acl_cv_libext"
8299 acl_shlibext="$acl_cv_shlibext"
8300 acl_libname_spec="$acl_cv_libname_spec"
8301 acl_library_names_spec="$acl_cv_library_names_spec"
8302 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8303 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8304 acl_hardcode_direct="$acl_cv_hardcode_direct"
8305 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8306 # Check whether --enable-rpath was given.
8307 if test ${enable_rpath+y}
8308 then :
8309 enableval=$enable_rpath; :
8310 else $as_nop
8311 enable_rpath=yes
8312 fi
8313
8314
8315
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8317 printf %s "checking for grep that handles long lines and -e... " >&6; }
8318 if test ${ac_cv_path_GREP+y}
8319 then :
8320 printf %s "(cached) " >&6
8321 else $as_nop
8322 if test -z "$GREP"; then
8323 ac_path_GREP_found=false
8324 # Loop through the user's path and test for each of PROGNAME-LIST
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8327 do
8328 IFS=$as_save_IFS
8329 case $as_dir in #(((
8330 '') as_dir=./ ;;
8331 */) ;;
8332 *) as_dir=$as_dir/ ;;
8333 esac
8334 for ac_prog in grep ggrep
8335 do
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8338 as_fn_executable_p "$ac_path_GREP" || continue
8339 # Check for GNU ac_path_GREP and select it if it is found.
8340 # Check for GNU $ac_path_GREP
8341 case `"$ac_path_GREP" --version 2>&1` in
8342 *GNU*)
8343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8344 *)
8345 ac_count=0
8346 printf %s 0123456789 >"conftest.in"
8347 while :
8348 do
8349 cat "conftest.in" "conftest.in" >"conftest.tmp"
8350 mv "conftest.tmp" "conftest.in"
8351 cp "conftest.in" "conftest.nl"
8352 printf "%s\n" 'GREP' >> "conftest.nl"
8353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8355 as_fn_arith $ac_count + 1 && ac_count=$as_val
8356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8357 # Best one so far, save it but keep looking for a better one
8358 ac_cv_path_GREP="$ac_path_GREP"
8359 ac_path_GREP_max=$ac_count
8360 fi
8361 # 10*(2^10) chars as input seems more than enough
8362 test $ac_count -gt 10 && break
8363 done
8364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8365 esac
8366
8367 $ac_path_GREP_found && break 3
8368 done
8369 done
8370 done
8371 IFS=$as_save_IFS
8372 if test -z "$ac_cv_path_GREP"; then
8373 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8374 fi
8375 else
8376 ac_cv_path_GREP=$GREP
8377 fi
8378
8379 fi
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8381 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8382 GREP="$ac_cv_path_GREP"
8383
8384
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8386 printf %s "checking for egrep... " >&6; }
8387 if test ${ac_cv_path_EGREP+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else $as_nop
8391 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8392 then ac_cv_path_EGREP="$GREP -E"
8393 else
8394 if test -z "$EGREP"; then
8395 ac_path_EGREP_found=false
8396 # Loop through the user's path and test for each of PROGNAME-LIST
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8399 do
8400 IFS=$as_save_IFS
8401 case $as_dir in #(((
8402 '') as_dir=./ ;;
8403 */) ;;
8404 *) as_dir=$as_dir/ ;;
8405 esac
8406 for ac_prog in egrep
8407 do
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8410 as_fn_executable_p "$ac_path_EGREP" || continue
8411 # Check for GNU ac_path_EGREP and select it if it is found.
8412 # Check for GNU $ac_path_EGREP
8413 case `"$ac_path_EGREP" --version 2>&1` in
8414 *GNU*)
8415 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8416 *)
8417 ac_count=0
8418 printf %s 0123456789 >"conftest.in"
8419 while :
8420 do
8421 cat "conftest.in" "conftest.in" >"conftest.tmp"
8422 mv "conftest.tmp" "conftest.in"
8423 cp "conftest.in" "conftest.nl"
8424 printf "%s\n" 'EGREP' >> "conftest.nl"
8425 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8427 as_fn_arith $ac_count + 1 && ac_count=$as_val
8428 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8429 # Best one so far, save it but keep looking for a better one
8430 ac_cv_path_EGREP="$ac_path_EGREP"
8431 ac_path_EGREP_max=$ac_count
8432 fi
8433 # 10*(2^10) chars as input seems more than enough
8434 test $ac_count -gt 10 && break
8435 done
8436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8437 esac
8438
8439 $ac_path_EGREP_found && break 3
8440 done
8441 done
8442 done
8443 IFS=$as_save_IFS
8444 if test -z "$ac_cv_path_EGREP"; then
8445 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8446 fi
8447 else
8448 ac_cv_path_EGREP=$EGREP
8449 fi
8450
8451 fi
8452 fi
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8454 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8455 EGREP="$ac_cv_path_EGREP"
8456
8457
8458
8459
8460 acl_libdirstem=lib
8461 acl_libdirstem2=
8462 case "$host_os" in
8463 solaris*)
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8465 printf %s "checking for 64-bit host... " >&6; }
8466 if test ${gl_cv_solaris_64bit+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else $as_nop
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472
8473 #ifdef _LP64
8474 sixtyfour bits
8475 #endif
8476
8477 _ACEOF
8478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8479 $EGREP "sixtyfour bits" >/dev/null 2>&1
8480 then :
8481 gl_cv_solaris_64bit=yes
8482 else $as_nop
8483 gl_cv_solaris_64bit=no
8484 fi
8485 rm -rf conftest*
8486
8487
8488 fi
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8490 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
8491 if test $gl_cv_solaris_64bit = yes; then
8492 acl_libdirstem=lib/64
8493 case "$host_cpu" in
8494 sparc*) acl_libdirstem2=lib/sparcv9 ;;
8495 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
8496 esac
8497 fi
8498 ;;
8499 *)
8500 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8501 if test -n "$searchpath"; then
8502 acl_save_IFS="${IFS= }"; IFS=":"
8503 for searchdir in $searchpath; do
8504 if test -d "$searchdir"; then
8505 case "$searchdir" in
8506 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8507 */../ | */.. )
8508 # Better ignore directories of this form. They are misleading.
8509 ;;
8510 *) searchdir=`cd "$searchdir" && pwd`
8511 case "$searchdir" in
8512 */lib64 ) acl_libdirstem=lib64 ;;
8513 esac ;;
8514 esac
8515 fi
8516 done
8517 IFS="$acl_save_IFS"
8518 fi
8519 ;;
8520 esac
8521 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534 use_additional=yes
8535
8536 acl_save_prefix="$prefix"
8537 prefix="$acl_final_prefix"
8538 acl_save_exec_prefix="$exec_prefix"
8539 exec_prefix="$acl_final_exec_prefix"
8540
8541 eval additional_includedir=\"$includedir\"
8542 eval additional_libdir=\"$libdir\"
8543
8544 exec_prefix="$acl_save_exec_prefix"
8545 prefix="$acl_save_prefix"
8546
8547
8548 # Check whether --with-libiconv-prefix was given.
8549 if test ${with_libiconv_prefix+y}
8550 then :
8551 withval=$with_libiconv_prefix;
8552 if test "X$withval" = "Xno"; then
8553 use_additional=no
8554 else
8555 if test "X$withval" = "X"; then
8556
8557 acl_save_prefix="$prefix"
8558 prefix="$acl_final_prefix"
8559 acl_save_exec_prefix="$exec_prefix"
8560 exec_prefix="$acl_final_exec_prefix"
8561
8562 eval additional_includedir=\"$includedir\"
8563 eval additional_libdir=\"$libdir\"
8564
8565 exec_prefix="$acl_save_exec_prefix"
8566 prefix="$acl_save_prefix"
8567
8568 else
8569 additional_includedir="$withval/include"
8570 additional_libdir="$withval/$acl_libdirstem"
8571 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8572 && ! test -d "$withval/$acl_libdirstem"; then
8573 additional_libdir="$withval/$acl_libdirstem2"
8574 fi
8575 fi
8576 fi
8577
8578 fi
8579
8580 LIBICONV=
8581 LTLIBICONV=
8582 INCICONV=
8583 LIBICONV_PREFIX=
8584 HAVE_LIBICONV=
8585 rpathdirs=
8586 ltrpathdirs=
8587 names_already_handled=
8588 names_next_round='iconv '
8589 while test -n "$names_next_round"; do
8590 names_this_round="$names_next_round"
8591 names_next_round=
8592 for name in $names_this_round; do
8593 already_handled=
8594 for n in $names_already_handled; do
8595 if test "$n" = "$name"; then
8596 already_handled=yes
8597 break
8598 fi
8599 done
8600 if test -z "$already_handled"; then
8601 names_already_handled="$names_already_handled $name"
8602 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8603 eval value=\"\$HAVE_LIB$uppername\"
8604 if test -n "$value"; then
8605 if test "$value" = yes; then
8606 eval value=\"\$LIB$uppername\"
8607 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8608 eval value=\"\$LTLIB$uppername\"
8609 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8610 else
8611 :
8612 fi
8613 else
8614 found_dir=
8615 found_la=
8616 found_so=
8617 found_a=
8618 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8619 if test -n "$acl_shlibext"; then
8620 shrext=".$acl_shlibext" # typically: shrext=.so
8621 else
8622 shrext=
8623 fi
8624 if test $use_additional = yes; then
8625 dir="$additional_libdir"
8626 if test -n "$acl_shlibext"; then
8627 if test -f "$dir/$libname$shrext"; then
8628 found_dir="$dir"
8629 found_so="$dir/$libname$shrext"
8630 else
8631 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8632 ver=`(cd "$dir" && \
8633 for f in "$libname$shrext".*; do echo "$f"; done \
8634 | sed -e "s,^$libname$shrext\\\\.,," \
8635 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8636 | sed 1q ) 2>/dev/null`
8637 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8638 found_dir="$dir"
8639 found_so="$dir/$libname$shrext.$ver"
8640 fi
8641 else
8642 eval library_names=\"$acl_library_names_spec\"
8643 for f in $library_names; do
8644 if test -f "$dir/$f"; then
8645 found_dir="$dir"
8646 found_so="$dir/$f"
8647 break
8648 fi
8649 done
8650 fi
8651 fi
8652 fi
8653 if test "X$found_dir" = "X"; then
8654 if test -f "$dir/$libname.$acl_libext"; then
8655 found_dir="$dir"
8656 found_a="$dir/$libname.$acl_libext"
8657 fi
8658 fi
8659 if test "X$found_dir" != "X"; then
8660 if test -f "$dir/$libname.la"; then
8661 found_la="$dir/$libname.la"
8662 fi
8663 fi
8664 fi
8665 if test "X$found_dir" = "X"; then
8666 for x in $LDFLAGS $LTLIBICONV; do
8667
8668 acl_save_prefix="$prefix"
8669 prefix="$acl_final_prefix"
8670 acl_save_exec_prefix="$exec_prefix"
8671 exec_prefix="$acl_final_exec_prefix"
8672 eval x=\"$x\"
8673 exec_prefix="$acl_save_exec_prefix"
8674 prefix="$acl_save_prefix"
8675
8676 case "$x" in
8677 -L*)
8678 dir=`echo "X$x" | sed -e 's/^X-L//'`
8679 if test -n "$acl_shlibext"; then
8680 if test -f "$dir/$libname$shrext"; then
8681 found_dir="$dir"
8682 found_so="$dir/$libname$shrext"
8683 else
8684 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8685 ver=`(cd "$dir" && \
8686 for f in "$libname$shrext".*; do echo "$f"; done \
8687 | sed -e "s,^$libname$shrext\\\\.,," \
8688 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8689 | sed 1q ) 2>/dev/null`
8690 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8691 found_dir="$dir"
8692 found_so="$dir/$libname$shrext.$ver"
8693 fi
8694 else
8695 eval library_names=\"$acl_library_names_spec\"
8696 for f in $library_names; do
8697 if test -f "$dir/$f"; then
8698 found_dir="$dir"
8699 found_so="$dir/$f"
8700 break
8701 fi
8702 done
8703 fi
8704 fi
8705 fi
8706 if test "X$found_dir" = "X"; then
8707 if test -f "$dir/$libname.$acl_libext"; then
8708 found_dir="$dir"
8709 found_a="$dir/$libname.$acl_libext"
8710 fi
8711 fi
8712 if test "X$found_dir" != "X"; then
8713 if test -f "$dir/$libname.la"; then
8714 found_la="$dir/$libname.la"
8715 fi
8716 fi
8717 ;;
8718 esac
8719 if test "X$found_dir" != "X"; then
8720 break
8721 fi
8722 done
8723 fi
8724 if test "X$found_dir" != "X"; then
8725 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8726 if test "X$found_so" != "X"; then
8727 if test "$enable_rpath" = no \
8728 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8729 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8730 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8731 else
8732 haveit=
8733 for x in $ltrpathdirs; do
8734 if test "X$x" = "X$found_dir"; then
8735 haveit=yes
8736 break
8737 fi
8738 done
8739 if test -z "$haveit"; then
8740 ltrpathdirs="$ltrpathdirs $found_dir"
8741 fi
8742 if test "$acl_hardcode_direct" = yes; then
8743 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8744 else
8745 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8747 haveit=
8748 for x in $rpathdirs; do
8749 if test "X$x" = "X$found_dir"; then
8750 haveit=yes
8751 break
8752 fi
8753 done
8754 if test -z "$haveit"; then
8755 rpathdirs="$rpathdirs $found_dir"
8756 fi
8757 else
8758 haveit=
8759 for x in $LDFLAGS $LIBICONV; do
8760
8761 acl_save_prefix="$prefix"
8762 prefix="$acl_final_prefix"
8763 acl_save_exec_prefix="$exec_prefix"
8764 exec_prefix="$acl_final_exec_prefix"
8765 eval x=\"$x\"
8766 exec_prefix="$acl_save_exec_prefix"
8767 prefix="$acl_save_prefix"
8768
8769 if test "X$x" = "X-L$found_dir"; then
8770 haveit=yes
8771 break
8772 fi
8773 done
8774 if test -z "$haveit"; then
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8776 fi
8777 if test "$acl_hardcode_minus_L" != no; then
8778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8779 else
8780 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8781 fi
8782 fi
8783 fi
8784 fi
8785 else
8786 if test "X$found_a" != "X"; then
8787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8788 else
8789 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8790 fi
8791 fi
8792 additional_includedir=
8793 case "$found_dir" in
8794 */$acl_libdirstem | */$acl_libdirstem/)
8795 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8796 if test "$name" = 'iconv'; then
8797 LIBICONV_PREFIX="$basedir"
8798 fi
8799 additional_includedir="$basedir/include"
8800 ;;
8801 */$acl_libdirstem2 | */$acl_libdirstem2/)
8802 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8803 if test "$name" = 'iconv'; then
8804 LIBICONV_PREFIX="$basedir"
8805 fi
8806 additional_includedir="$basedir/include"
8807 ;;
8808 esac
8809 if test "X$additional_includedir" != "X"; then
8810 if test "X$additional_includedir" != "X/usr/include"; then
8811 haveit=
8812 if test "X$additional_includedir" = "X/usr/local/include"; then
8813 if test -n "$GCC"; then
8814 case $host_os in
8815 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8816 esac
8817 fi
8818 fi
8819 if test -z "$haveit"; then
8820 for x in $CPPFLAGS $INCICONV; do
8821
8822 acl_save_prefix="$prefix"
8823 prefix="$acl_final_prefix"
8824 acl_save_exec_prefix="$exec_prefix"
8825 exec_prefix="$acl_final_exec_prefix"
8826 eval x=\"$x\"
8827 exec_prefix="$acl_save_exec_prefix"
8828 prefix="$acl_save_prefix"
8829
8830 if test "X$x" = "X-I$additional_includedir"; then
8831 haveit=yes
8832 break
8833 fi
8834 done
8835 if test -z "$haveit"; then
8836 if test -d "$additional_includedir"; then
8837 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8838 fi
8839 fi
8840 fi
8841 fi
8842 fi
8843 if test -n "$found_la"; then
8844 save_libdir="$libdir"
8845 case "$found_la" in
8846 */* | *\\*) . "$found_la" ;;
8847 *) . "./$found_la" ;;
8848 esac
8849 libdir="$save_libdir"
8850 for dep in $dependency_libs; do
8851 case "$dep" in
8852 -L*)
8853 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8854 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8855 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8856 haveit=
8857 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8858 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8859 if test -n "$GCC"; then
8860 case $host_os in
8861 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8862 esac
8863 fi
8864 fi
8865 if test -z "$haveit"; then
8866 haveit=
8867 for x in $LDFLAGS $LIBICONV; do
8868
8869 acl_save_prefix="$prefix"
8870 prefix="$acl_final_prefix"
8871 acl_save_exec_prefix="$exec_prefix"
8872 exec_prefix="$acl_final_exec_prefix"
8873 eval x=\"$x\"
8874 exec_prefix="$acl_save_exec_prefix"
8875 prefix="$acl_save_prefix"
8876
8877 if test "X$x" = "X-L$additional_libdir"; then
8878 haveit=yes
8879 break
8880 fi
8881 done
8882 if test -z "$haveit"; then
8883 if test -d "$additional_libdir"; then
8884 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8885 fi
8886 fi
8887 haveit=
8888 for x in $LDFLAGS $LTLIBICONV; do
8889
8890 acl_save_prefix="$prefix"
8891 prefix="$acl_final_prefix"
8892 acl_save_exec_prefix="$exec_prefix"
8893 exec_prefix="$acl_final_exec_prefix"
8894 eval x=\"$x\"
8895 exec_prefix="$acl_save_exec_prefix"
8896 prefix="$acl_save_prefix"
8897
8898 if test "X$x" = "X-L$additional_libdir"; then
8899 haveit=yes
8900 break
8901 fi
8902 done
8903 if test -z "$haveit"; then
8904 if test -d "$additional_libdir"; then
8905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8906 fi
8907 fi
8908 fi
8909 fi
8910 ;;
8911 -R*)
8912 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8913 if test "$enable_rpath" != no; then
8914 haveit=
8915 for x in $rpathdirs; do
8916 if test "X$x" = "X$dir"; then
8917 haveit=yes
8918 break
8919 fi
8920 done
8921 if test -z "$haveit"; then
8922 rpathdirs="$rpathdirs $dir"
8923 fi
8924 haveit=
8925 for x in $ltrpathdirs; do
8926 if test "X$x" = "X$dir"; then
8927 haveit=yes
8928 break
8929 fi
8930 done
8931 if test -z "$haveit"; then
8932 ltrpathdirs="$ltrpathdirs $dir"
8933 fi
8934 fi
8935 ;;
8936 -l*)
8937 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8938 ;;
8939 *.la)
8940 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8941 ;;
8942 *)
8943 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8944 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8945 ;;
8946 esac
8947 done
8948 fi
8949 else
8950 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8951 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8952 fi
8953 fi
8954 fi
8955 done
8956 done
8957 if test "X$rpathdirs" != "X"; then
8958 if test -n "$acl_hardcode_libdir_separator"; then
8959 alldirs=
8960 for found_dir in $rpathdirs; do
8961 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8962 done
8963 acl_save_libdir="$libdir"
8964 libdir="$alldirs"
8965 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8966 libdir="$acl_save_libdir"
8967 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8968 else
8969 for found_dir in $rpathdirs; do
8970 acl_save_libdir="$libdir"
8971 libdir="$found_dir"
8972 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8973 libdir="$acl_save_libdir"
8974 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8975 done
8976 fi
8977 fi
8978 if test "X$ltrpathdirs" != "X"; then
8979 for found_dir in $ltrpathdirs; do
8980 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8981 done
8982 fi
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9015 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9016 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9017 then :
9018 printf %s "(cached) " >&6
9019 else $as_nop
9020 gt_save_LIBS="$LIBS"
9021 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024 #include <CoreFoundation/CFPreferences.h>
9025 int
9026 main (void)
9027 {
9028 CFPreferencesCopyAppValue(NULL, NULL)
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 if ac_fn_c_try_link "$LINENO"
9034 then :
9035 gt_cv_func_CFPreferencesCopyAppValue=yes
9036 else $as_nop
9037 gt_cv_func_CFPreferencesCopyAppValue=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS="$gt_save_LIBS"
9042 fi
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9044 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9045 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9046
9047 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9048
9049 fi
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9051 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
9052 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else $as_nop
9056 gt_save_LIBS="$LIBS"
9057 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 #include <CoreFoundation/CFLocale.h>
9061 int
9062 main (void)
9063 {
9064 CFLocaleCopyCurrent();
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"
9070 then :
9071 gt_cv_func_CFLocaleCopyCurrent=yes
9072 else $as_nop
9073 gt_cv_func_CFLocaleCopyCurrent=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS="$gt_save_LIBS"
9078 fi
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9080 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9081 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9082
9083 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9084
9085 fi
9086 INTL_MACOSX_LIBS=
9087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9088 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9089 fi
9090
9091
9092
9093
9094
9095
9096 LIBINTL=
9097 LTLIBINTL=
9098 POSUB=
9099
9100 case " $gt_needs " in
9101 *" need-formatstring-macros "*) gt_api_version=3 ;;
9102 *" need-ngettext "*) gt_api_version=2 ;;
9103 *) gt_api_version=1 ;;
9104 esac
9105 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9106 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9107
9108 if test "$USE_NLS" = "yes"; then
9109 gt_use_preinstalled_gnugettext=no
9110
9111
9112 if test $gt_api_version -ge 3; then
9113 gt_revision_test_code='
9114 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9115 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9116 #endif
9117 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9118 '
9119 else
9120 gt_revision_test_code=
9121 fi
9122 if test $gt_api_version -ge 2; then
9123 gt_expression_test_code=' + * ngettext ("", "", 0)'
9124 else
9125 gt_expression_test_code=
9126 fi
9127
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9129 printf %s "checking for GNU gettext in libc... " >&6; }
9130 if eval test \${$gt_func_gnugettext_libc+y}
9131 then :
9132 printf %s "(cached) " >&6
9133 else $as_nop
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136
9137 #include <libintl.h>
9138 $gt_revision_test_code
9139 extern int _nl_msg_cat_cntr;
9140 extern int *_nl_domain_bindings;
9141
9142 int
9143 main (void)
9144 {
9145
9146 bindtextdomain ("", "");
9147 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"
9154 then :
9155 eval "$gt_func_gnugettext_libc=yes"
9156 else $as_nop
9157 eval "$gt_func_gnugettext_libc=no"
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9160 conftest$ac_exeext conftest.$ac_ext
9161 fi
9162 eval ac_res=\$$gt_func_gnugettext_libc
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9164 printf "%s\n" "$ac_res" >&6; }
9165
9166 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9167
9168
9169
9170
9171
9172 am_save_CPPFLAGS="$CPPFLAGS"
9173
9174 for element in $INCICONV; do
9175 haveit=
9176 for x in $CPPFLAGS; do
9177
9178 acl_save_prefix="$prefix"
9179 prefix="$acl_final_prefix"
9180 acl_save_exec_prefix="$exec_prefix"
9181 exec_prefix="$acl_final_exec_prefix"
9182 eval x=\"$x\"
9183 exec_prefix="$acl_save_exec_prefix"
9184 prefix="$acl_save_prefix"
9185
9186 if test "X$x" = "X$element"; then
9187 haveit=yes
9188 break
9189 fi
9190 done
9191 if test -z "$haveit"; then
9192 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9193 fi
9194 done
9195
9196
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9198 printf %s "checking for iconv... " >&6; }
9199 if test ${am_cv_func_iconv+y}
9200 then :
9201 printf %s "(cached) " >&6
9202 else $as_nop
9203
9204 am_cv_func_iconv="no, consider installing GNU libiconv"
9205 am_cv_lib_iconv=no
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208
9209 #include <stdlib.h>
9210 #include <iconv.h>
9211
9212 int
9213 main (void)
9214 {
9215 iconv_t cd = iconv_open("","");
9216 iconv(cd,NULL,NULL,NULL,NULL);
9217 iconv_close(cd);
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"
9223 then :
9224 am_cv_func_iconv=yes
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9227 conftest$ac_exeext conftest.$ac_ext
9228 if test "$am_cv_func_iconv" != yes; then
9229 am_save_LIBS="$LIBS"
9230 LIBS="$LIBS $LIBICONV"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233
9234 #include <stdlib.h>
9235 #include <iconv.h>
9236
9237 int
9238 main (void)
9239 {
9240 iconv_t cd = iconv_open("","");
9241 iconv(cd,NULL,NULL,NULL,NULL);
9242 iconv_close(cd);
9243 ;
9244 return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"
9248 then :
9249 am_cv_lib_iconv=yes
9250 am_cv_func_iconv=yes
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS="$am_save_LIBS"
9255 fi
9256
9257 fi
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9259 printf "%s\n" "$am_cv_func_iconv" >&6; }
9260 if test "$am_cv_func_iconv" = yes; then
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9262 printf %s "checking for working iconv... " >&6; }
9263 if test ${am_cv_func_iconv_works+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else $as_nop
9267
9268 am_save_LIBS="$LIBS"
9269 if test $am_cv_lib_iconv = yes; then
9270 LIBS="$LIBS $LIBICONV"
9271 fi
9272 am_cv_func_iconv_works=no
9273 for ac_iconv_const in '' 'const'; do
9274 if test "$cross_compiling" = yes
9275 then :
9276 case "$host_os" in
9277 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9278 *) am_cv_func_iconv_works="guessing yes" ;;
9279 esac
9280 else $as_nop
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283
9284 #include <iconv.h>
9285 #include <string.h>
9286
9287 #ifndef ICONV_CONST
9288 # define ICONV_CONST $ac_iconv_const
9289 #endif
9290
9291 int
9292 main (void)
9293 {
9294 int result = 0;
9295 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9296 returns. */
9297 {
9298 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9299 if (cd_utf8_to_88591 != (iconv_t)(-1))
9300 {
9301 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
9302 char buf[10];
9303 ICONV_CONST char *inptr = input;
9304 size_t inbytesleft = strlen (input);
9305 char *outptr = buf;
9306 size_t outbytesleft = sizeof (buf);
9307 size_t res = iconv (cd_utf8_to_88591,
9308 &inptr, &inbytesleft,
9309 &outptr, &outbytesleft);
9310 if (res == 0)
9311 result |= 1;
9312 iconv_close (cd_utf8_to_88591);
9313 }
9314 }
9315 /* Test against Solaris 10 bug: Failures are not distinguishable from
9316 successful returns. */
9317 {
9318 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9319 if (cd_ascii_to_88591 != (iconv_t)(-1))
9320 {
9321 static ICONV_CONST char input[] = "\263";
9322 char buf[10];
9323 ICONV_CONST char *inptr = input;
9324 size_t inbytesleft = strlen (input);
9325 char *outptr = buf;
9326 size_t outbytesleft = sizeof (buf);
9327 size_t res = iconv (cd_ascii_to_88591,
9328 &inptr, &inbytesleft,
9329 &outptr, &outbytesleft);
9330 if (res == 0)
9331 result |= 2;
9332 iconv_close (cd_ascii_to_88591);
9333 }
9334 }
9335 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9336 {
9337 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9338 if (cd_88591_to_utf8 != (iconv_t)(-1))
9339 {
9340 static ICONV_CONST char input[] = "\304";
9341 static char buf[2] = { (char)0xDE, (char)0xAD };
9342 ICONV_CONST char *inptr = input;
9343 size_t inbytesleft = 1;
9344 char *outptr = buf;
9345 size_t outbytesleft = 1;
9346 size_t res = iconv (cd_88591_to_utf8,
9347 &inptr, &inbytesleft,
9348 &outptr, &outbytesleft);
9349 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9350 result |= 4;
9351 iconv_close (cd_88591_to_utf8);
9352 }
9353 }
9354 #if 0 /* This bug could be worked around by the caller. */
9355 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9356 {
9357 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9358 if (cd_88591_to_utf8 != (iconv_t)(-1))
9359 {
9360 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9361 char buf[50];
9362 ICONV_CONST char *inptr = input;
9363 size_t inbytesleft = strlen (input);
9364 char *outptr = buf;
9365 size_t outbytesleft = sizeof (buf);
9366 size_t res = iconv (cd_88591_to_utf8,
9367 &inptr, &inbytesleft,
9368 &outptr, &outbytesleft);
9369 if ((int)res > 0)
9370 result |= 8;
9371 iconv_close (cd_88591_to_utf8);
9372 }
9373 }
9374 #endif
9375 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9376 provided. */
9377 if (/* Try standardized names. */
9378 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9379 /* Try IRIX, OSF/1 names. */
9380 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9381 /* Try AIX names. */
9382 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9383 /* Try HP-UX names. */
9384 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9385 result |= 16;
9386 return result;
9387
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_run "$LINENO"
9393 then :
9394 am_cv_func_iconv_works=yes
9395 fi
9396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9397 conftest.$ac_objext conftest.beam conftest.$ac_ext
9398 fi
9399
9400 test "$am_cv_func_iconv_works" = no || break
9401 done
9402 LIBS="$am_save_LIBS"
9403
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9406 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
9407 case "$am_cv_func_iconv_works" in
9408 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9409 *) am_func_iconv=yes ;;
9410 esac
9411 else
9412 am_func_iconv=no am_cv_lib_iconv=no
9413 fi
9414 if test "$am_func_iconv" = yes; then
9415
9416 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
9417
9418 fi
9419 if test "$am_cv_lib_iconv" = yes; then
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9421 printf %s "checking how to link with libiconv... " >&6; }
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9423 printf "%s\n" "$LIBICONV" >&6; }
9424 else
9425 CPPFLAGS="$am_save_CPPFLAGS"
9426 LIBICONV=
9427 LTLIBICONV=
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440 use_additional=yes
9441
9442 acl_save_prefix="$prefix"
9443 prefix="$acl_final_prefix"
9444 acl_save_exec_prefix="$exec_prefix"
9445 exec_prefix="$acl_final_exec_prefix"
9446
9447 eval additional_includedir=\"$includedir\"
9448 eval additional_libdir=\"$libdir\"
9449
9450 exec_prefix="$acl_save_exec_prefix"
9451 prefix="$acl_save_prefix"
9452
9453
9454 # Check whether --with-libintl-prefix was given.
9455 if test ${with_libintl_prefix+y}
9456 then :
9457 withval=$with_libintl_prefix;
9458 if test "X$withval" = "Xno"; then
9459 use_additional=no
9460 else
9461 if test "X$withval" = "X"; then
9462
9463 acl_save_prefix="$prefix"
9464 prefix="$acl_final_prefix"
9465 acl_save_exec_prefix="$exec_prefix"
9466 exec_prefix="$acl_final_exec_prefix"
9467
9468 eval additional_includedir=\"$includedir\"
9469 eval additional_libdir=\"$libdir\"
9470
9471 exec_prefix="$acl_save_exec_prefix"
9472 prefix="$acl_save_prefix"
9473
9474 else
9475 additional_includedir="$withval/include"
9476 additional_libdir="$withval/$acl_libdirstem"
9477 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9478 && ! test -d "$withval/$acl_libdirstem"; then
9479 additional_libdir="$withval/$acl_libdirstem2"
9480 fi
9481 fi
9482 fi
9483
9484 fi
9485
9486 LIBINTL=
9487 LTLIBINTL=
9488 INCINTL=
9489 LIBINTL_PREFIX=
9490 HAVE_LIBINTL=
9491 rpathdirs=
9492 ltrpathdirs=
9493 names_already_handled=
9494 names_next_round='intl '
9495 while test -n "$names_next_round"; do
9496 names_this_round="$names_next_round"
9497 names_next_round=
9498 for name in $names_this_round; do
9499 already_handled=
9500 for n in $names_already_handled; do
9501 if test "$n" = "$name"; then
9502 already_handled=yes
9503 break
9504 fi
9505 done
9506 if test -z "$already_handled"; then
9507 names_already_handled="$names_already_handled $name"
9508 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9509 eval value=\"\$HAVE_LIB$uppername\"
9510 if test -n "$value"; then
9511 if test "$value" = yes; then
9512 eval value=\"\$LIB$uppername\"
9513 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9514 eval value=\"\$LTLIB$uppername\"
9515 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9516 else
9517 :
9518 fi
9519 else
9520 found_dir=
9521 found_la=
9522 found_so=
9523 found_a=
9524 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9525 if test -n "$acl_shlibext"; then
9526 shrext=".$acl_shlibext" # typically: shrext=.so
9527 else
9528 shrext=
9529 fi
9530 if test $use_additional = yes; then
9531 dir="$additional_libdir"
9532 if test -n "$acl_shlibext"; then
9533 if test -f "$dir/$libname$shrext"; then
9534 found_dir="$dir"
9535 found_so="$dir/$libname$shrext"
9536 else
9537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9538 ver=`(cd "$dir" && \
9539 for f in "$libname$shrext".*; do echo "$f"; done \
9540 | sed -e "s,^$libname$shrext\\\\.,," \
9541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9542 | sed 1q ) 2>/dev/null`
9543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9544 found_dir="$dir"
9545 found_so="$dir/$libname$shrext.$ver"
9546 fi
9547 else
9548 eval library_names=\"$acl_library_names_spec\"
9549 for f in $library_names; do
9550 if test -f "$dir/$f"; then
9551 found_dir="$dir"
9552 found_so="$dir/$f"
9553 break
9554 fi
9555 done
9556 fi
9557 fi
9558 fi
9559 if test "X$found_dir" = "X"; then
9560 if test -f "$dir/$libname.$acl_libext"; then
9561 found_dir="$dir"
9562 found_a="$dir/$libname.$acl_libext"
9563 fi
9564 fi
9565 if test "X$found_dir" != "X"; then
9566 if test -f "$dir/$libname.la"; then
9567 found_la="$dir/$libname.la"
9568 fi
9569 fi
9570 fi
9571 if test "X$found_dir" = "X"; then
9572 for x in $LDFLAGS $LTLIBINTL; do
9573
9574 acl_save_prefix="$prefix"
9575 prefix="$acl_final_prefix"
9576 acl_save_exec_prefix="$exec_prefix"
9577 exec_prefix="$acl_final_exec_prefix"
9578 eval x=\"$x\"
9579 exec_prefix="$acl_save_exec_prefix"
9580 prefix="$acl_save_prefix"
9581
9582 case "$x" in
9583 -L*)
9584 dir=`echo "X$x" | sed -e 's/^X-L//'`
9585 if test -n "$acl_shlibext"; then
9586 if test -f "$dir/$libname$shrext"; then
9587 found_dir="$dir"
9588 found_so="$dir/$libname$shrext"
9589 else
9590 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9591 ver=`(cd "$dir" && \
9592 for f in "$libname$shrext".*; do echo "$f"; done \
9593 | sed -e "s,^$libname$shrext\\\\.,," \
9594 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9595 | sed 1q ) 2>/dev/null`
9596 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9597 found_dir="$dir"
9598 found_so="$dir/$libname$shrext.$ver"
9599 fi
9600 else
9601 eval library_names=\"$acl_library_names_spec\"
9602 for f in $library_names; do
9603 if test -f "$dir/$f"; then
9604 found_dir="$dir"
9605 found_so="$dir/$f"
9606 break
9607 fi
9608 done
9609 fi
9610 fi
9611 fi
9612 if test "X$found_dir" = "X"; then
9613 if test -f "$dir/$libname.$acl_libext"; then
9614 found_dir="$dir"
9615 found_a="$dir/$libname.$acl_libext"
9616 fi
9617 fi
9618 if test "X$found_dir" != "X"; then
9619 if test -f "$dir/$libname.la"; then
9620 found_la="$dir/$libname.la"
9621 fi
9622 fi
9623 ;;
9624 esac
9625 if test "X$found_dir" != "X"; then
9626 break
9627 fi
9628 done
9629 fi
9630 if test "X$found_dir" != "X"; then
9631 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9632 if test "X$found_so" != "X"; then
9633 if test "$enable_rpath" = no \
9634 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9635 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9636 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9637 else
9638 haveit=
9639 for x in $ltrpathdirs; do
9640 if test "X$x" = "X$found_dir"; then
9641 haveit=yes
9642 break
9643 fi
9644 done
9645 if test -z "$haveit"; then
9646 ltrpathdirs="$ltrpathdirs $found_dir"
9647 fi
9648 if test "$acl_hardcode_direct" = yes; then
9649 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9650 else
9651 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9652 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9653 haveit=
9654 for x in $rpathdirs; do
9655 if test "X$x" = "X$found_dir"; then
9656 haveit=yes
9657 break
9658 fi
9659 done
9660 if test -z "$haveit"; then
9661 rpathdirs="$rpathdirs $found_dir"
9662 fi
9663 else
9664 haveit=
9665 for x in $LDFLAGS $LIBINTL; do
9666
9667 acl_save_prefix="$prefix"
9668 prefix="$acl_final_prefix"
9669 acl_save_exec_prefix="$exec_prefix"
9670 exec_prefix="$acl_final_exec_prefix"
9671 eval x=\"$x\"
9672 exec_prefix="$acl_save_exec_prefix"
9673 prefix="$acl_save_prefix"
9674
9675 if test "X$x" = "X-L$found_dir"; then
9676 haveit=yes
9677 break
9678 fi
9679 done
9680 if test -z "$haveit"; then
9681 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9682 fi
9683 if test "$acl_hardcode_minus_L" != no; then
9684 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9685 else
9686 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9687 fi
9688 fi
9689 fi
9690 fi
9691 else
9692 if test "X$found_a" != "X"; then
9693 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9694 else
9695 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9696 fi
9697 fi
9698 additional_includedir=
9699 case "$found_dir" in
9700 */$acl_libdirstem | */$acl_libdirstem/)
9701 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9702 if test "$name" = 'intl'; then
9703 LIBINTL_PREFIX="$basedir"
9704 fi
9705 additional_includedir="$basedir/include"
9706 ;;
9707 */$acl_libdirstem2 | */$acl_libdirstem2/)
9708 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9709 if test "$name" = 'intl'; then
9710 LIBINTL_PREFIX="$basedir"
9711 fi
9712 additional_includedir="$basedir/include"
9713 ;;
9714 esac
9715 if test "X$additional_includedir" != "X"; then
9716 if test "X$additional_includedir" != "X/usr/include"; then
9717 haveit=
9718 if test "X$additional_includedir" = "X/usr/local/include"; then
9719 if test -n "$GCC"; then
9720 case $host_os in
9721 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9722 esac
9723 fi
9724 fi
9725 if test -z "$haveit"; then
9726 for x in $CPPFLAGS $INCINTL; do
9727
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9732 eval x=\"$x\"
9733 exec_prefix="$acl_save_exec_prefix"
9734 prefix="$acl_save_prefix"
9735
9736 if test "X$x" = "X-I$additional_includedir"; then
9737 haveit=yes
9738 break
9739 fi
9740 done
9741 if test -z "$haveit"; then
9742 if test -d "$additional_includedir"; then
9743 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9744 fi
9745 fi
9746 fi
9747 fi
9748 fi
9749 if test -n "$found_la"; then
9750 save_libdir="$libdir"
9751 case "$found_la" in
9752 */* | *\\*) . "$found_la" ;;
9753 *) . "./$found_la" ;;
9754 esac
9755 libdir="$save_libdir"
9756 for dep in $dependency_libs; do
9757 case "$dep" in
9758 -L*)
9759 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9760 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9761 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9762 haveit=
9763 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9764 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9765 if test -n "$GCC"; then
9766 case $host_os in
9767 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9768 esac
9769 fi
9770 fi
9771 if test -z "$haveit"; then
9772 haveit=
9773 for x in $LDFLAGS $LIBINTL; do
9774
9775 acl_save_prefix="$prefix"
9776 prefix="$acl_final_prefix"
9777 acl_save_exec_prefix="$exec_prefix"
9778 exec_prefix="$acl_final_exec_prefix"
9779 eval x=\"$x\"
9780 exec_prefix="$acl_save_exec_prefix"
9781 prefix="$acl_save_prefix"
9782
9783 if test "X$x" = "X-L$additional_libdir"; then
9784 haveit=yes
9785 break
9786 fi
9787 done
9788 if test -z "$haveit"; then
9789 if test -d "$additional_libdir"; then
9790 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9791 fi
9792 fi
9793 haveit=
9794 for x in $LDFLAGS $LTLIBINTL; do
9795
9796 acl_save_prefix="$prefix"
9797 prefix="$acl_final_prefix"
9798 acl_save_exec_prefix="$exec_prefix"
9799 exec_prefix="$acl_final_exec_prefix"
9800 eval x=\"$x\"
9801 exec_prefix="$acl_save_exec_prefix"
9802 prefix="$acl_save_prefix"
9803
9804 if test "X$x" = "X-L$additional_libdir"; then
9805 haveit=yes
9806 break
9807 fi
9808 done
9809 if test -z "$haveit"; then
9810 if test -d "$additional_libdir"; then
9811 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9812 fi
9813 fi
9814 fi
9815 fi
9816 ;;
9817 -R*)
9818 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9819 if test "$enable_rpath" != no; then
9820 haveit=
9821 for x in $rpathdirs; do
9822 if test "X$x" = "X$dir"; then
9823 haveit=yes
9824 break
9825 fi
9826 done
9827 if test -z "$haveit"; then
9828 rpathdirs="$rpathdirs $dir"
9829 fi
9830 haveit=
9831 for x in $ltrpathdirs; do
9832 if test "X$x" = "X$dir"; then
9833 haveit=yes
9834 break
9835 fi
9836 done
9837 if test -z "$haveit"; then
9838 ltrpathdirs="$ltrpathdirs $dir"
9839 fi
9840 fi
9841 ;;
9842 -l*)
9843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9844 ;;
9845 *.la)
9846 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9847 ;;
9848 *)
9849 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9850 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9851 ;;
9852 esac
9853 done
9854 fi
9855 else
9856 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9857 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9858 fi
9859 fi
9860 fi
9861 done
9862 done
9863 if test "X$rpathdirs" != "X"; then
9864 if test -n "$acl_hardcode_libdir_separator"; then
9865 alldirs=
9866 for found_dir in $rpathdirs; do
9867 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9868 done
9869 acl_save_libdir="$libdir"
9870 libdir="$alldirs"
9871 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9872 libdir="$acl_save_libdir"
9873 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9874 else
9875 for found_dir in $rpathdirs; do
9876 acl_save_libdir="$libdir"
9877 libdir="$found_dir"
9878 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9879 libdir="$acl_save_libdir"
9880 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9881 done
9882 fi
9883 fi
9884 if test "X$ltrpathdirs" != "X"; then
9885 for found_dir in $ltrpathdirs; do
9886 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9887 done
9888 fi
9889
9890
9891
9892
9893
9894
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9896 printf %s "checking for GNU gettext in libintl... " >&6; }
9897 if eval test \${$gt_func_gnugettext_libintl+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else $as_nop
9901 gt_save_CPPFLAGS="$CPPFLAGS"
9902 CPPFLAGS="$CPPFLAGS $INCINTL"
9903 gt_save_LIBS="$LIBS"
9904 LIBS="$LIBS $LIBINTL"
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907
9908 #include <libintl.h>
9909 $gt_revision_test_code
9910 extern int _nl_msg_cat_cntr;
9911 extern
9912 #ifdef __cplusplus
9913 "C"
9914 #endif
9915 const char *_nl_expand_alias (const char *);
9916
9917 int
9918 main (void)
9919 {
9920
9921 bindtextdomain ("", "");
9922 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9923
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 if ac_fn_c_try_link "$LINENO"
9929 then :
9930 eval "$gt_func_gnugettext_libintl=yes"
9931 else $as_nop
9932 eval "$gt_func_gnugettext_libintl=no"
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9935 conftest$ac_exeext conftest.$ac_ext
9936 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9937 LIBS="$LIBS $LIBICONV"
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940
9941 #include <libintl.h>
9942 $gt_revision_test_code
9943 extern int _nl_msg_cat_cntr;
9944 extern
9945 #ifdef __cplusplus
9946 "C"
9947 #endif
9948 const char *_nl_expand_alias (const char *);
9949
9950 int
9951 main (void)
9952 {
9953
9954 bindtextdomain ("", "");
9955 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9956
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_link "$LINENO"
9962 then :
9963 LIBINTL="$LIBINTL $LIBICONV"
9964 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9965 eval "$gt_func_gnugettext_libintl=yes"
9966
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9969 conftest$ac_exeext conftest.$ac_ext
9970 fi
9971 CPPFLAGS="$gt_save_CPPFLAGS"
9972 LIBS="$gt_save_LIBS"
9973 fi
9974 eval ac_res=\$$gt_func_gnugettext_libintl
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9976 printf "%s\n" "$ac_res" >&6; }
9977 fi
9978
9979 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9980 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9981 && test "$PACKAGE" != gettext-runtime \
9982 && test "$PACKAGE" != gettext-tools; }; then
9983 gt_use_preinstalled_gnugettext=yes
9984 else
9985 LIBINTL=
9986 LTLIBINTL=
9987 INCINTL=
9988 fi
9989
9990
9991
9992 if test -n "$INTL_MACOSX_LIBS"; then
9993 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9994 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9995 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9996 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9997 fi
9998 fi
9999
10000 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10001 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10002
10003 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10004
10005 else
10006 USE_NLS=no
10007 fi
10008 fi
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10011 printf %s "checking whether to use NLS... " >&6; }
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10013 printf "%s\n" "$USE_NLS" >&6; }
10014 if test "$USE_NLS" = "yes"; then
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10016 printf %s "checking where the gettext function comes from... " >&6; }
10017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10018 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10019 gt_source="external libintl"
10020 else
10021 gt_source="libc"
10022 fi
10023 else
10024 gt_source="included intl directory"
10025 fi
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10027 printf "%s\n" "$gt_source" >&6; }
10028 fi
10029
10030 if test "$USE_NLS" = "yes"; then
10031
10032 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10033 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10035 printf %s "checking how to link with libintl... " >&6; }
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10037 printf "%s\n" "$LIBINTL" >&6; }
10038
10039 for element in $INCINTL; do
10040 haveit=
10041 for x in $CPPFLAGS; do
10042
10043 acl_save_prefix="$prefix"
10044 prefix="$acl_final_prefix"
10045 acl_save_exec_prefix="$exec_prefix"
10046 exec_prefix="$acl_final_exec_prefix"
10047 eval x=\"$x\"
10048 exec_prefix="$acl_save_exec_prefix"
10049 prefix="$acl_save_prefix"
10050
10051 if test "X$x" = "X$element"; then
10052 haveit=yes
10053 break
10054 fi
10055 done
10056 if test -z "$haveit"; then
10057 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10058 fi
10059 done
10060
10061 fi
10062
10063
10064 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10065
10066
10067 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10068
10069 fi
10070
10071 POSUB=po
10072 fi
10073
10074
10075
10076 INTLLIBS="$LIBINTL"
10077
10078
10079
10080
10081
10082
10083
10084
10085 # We want the 'PYTHON' varible to be python version 2. We also want
10086 # our custom 'PYTHON3' varible to be python version 3.
10087 #
10088 # Note that the python2/python3 code was inspired by code in the
10089 # 'abrt' configure:
10090 # <https://github.com/abrt/abrt/blob/master/configure.ac>
10091 #
10092 # First, figure out what version of python is in the executable named
10093 # 'python'. On most systems that is python version 2, but on arch
10094 # linux that is python version 3.
10095 # Extract the first word of "python", so it can be a program name with args.
10096 set dummy python; ac_word=$2
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 printf %s "checking for $ac_word... " >&6; }
10099 if test ${ac_cv_path_PYTHON_UNKNOWN+y}
10100 then :
10101 printf %s "(cached) " >&6
10102 else $as_nop
10103 case $PYTHON_UNKNOWN in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
10106 ;;
10107 *)
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10110 do
10111 IFS=$as_save_IFS
10112 case $as_dir in #(((
10113 '') as_dir=./ ;;
10114 */) ;;
10115 *) as_dir=$as_dir/ ;;
10116 esac
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10119 ac_cv_path_PYTHON_UNKNOWN="$as_dir$ac_word$ac_exec_ext"
10120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123 done
10124 done
10125 IFS=$as_save_IFS
10126
10127 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
10128 ;;
10129 esac
10130 fi
10131 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
10132 if test -n "$PYTHON_UNKNOWN"; then
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
10134 printf "%s\n" "$PYTHON_UNKNOWN" >&6; }
10135 else
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 printf "%s\n" "no" >&6; }
10138 fi
10139
10140
10141 if test "x$PYTHON_UNKNOWN" != "xno"; then
10142 # OK, we found 'python'. What version is it?
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
10144 printf %s "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
10145 if test ${ac_cv_python_unknown_version+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else $as_nop
10149 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
10152 printf "%s\n" "$ac_cv_python_unknown_version" >&6; }
10153 fi
10154
10155 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
10156 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
10157 # that the m4_define happens when autoconf is run, but the
10158 # PLAIN_PYTHON_INTERPRETER variable expansion will happen when the
10159 # user runs configure.
10160 #
10161 # Note that for python2, we prefer an executable named 'python2' over
10162 # one just named 'python'.
10163 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
10164 PLAIN_PYTHON_INTERPRETER=python
10165 else
10166 PLAIN_PYTHON_INTERPRETER=python2
10167 fi
10168
10169
10170 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
10171 # version 2 only).
10172
10173
10174
10175
10176
10177
10178 if test -n "$PYTHON"; then
10179 # If the user set $PYTHON, use it and don't search something else.
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
10181 printf %s "checking whether $PYTHON version is >= 2.6... " >&6; }
10182 prog="import sys
10183 # split strings by '.' and convert to numeric. Append some zeros
10184 # because we need at least 4 digits for the hex conversion.
10185 # map returns an iterator in Python 3.0 and a list in 2.x
10186 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
10187 minverhex = 0
10188 # xrange is not present in Python 3.0 and range returns an iterator
10189 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10190 sys.exit(sys.hexversion < minverhex)"
10191 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
10192 ($PYTHON -c "$prog") >&5 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }
10196 then :
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10198 printf "%s\n" "yes" >&6; }
10199 else $as_nop
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 printf "%s\n" "no" >&6; }
10202 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
10203 fi
10204 am_display_PYTHON=$PYTHON
10205 else
10206 # Otherwise, try each interpreter until we find one that satisfies
10207 # VERSION.
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
10209 printf %s "checking for a Python interpreter with version >= 2.6... " >&6; }
10210 if test ${am_cv_pathless_PYTHON+y}
10211 then :
10212 printf %s "(cached) " >&6
10213 else $as_nop
10214
10215 for am_cv_pathless_PYTHON in python2 $PLAIN_PYTHON_INTERPRETER python2.7 python2.6 none; do
10216 test "$am_cv_pathless_PYTHON" = none && break
10217 prog="import sys
10218 # split strings by '.' and convert to numeric. Append some zeros
10219 # because we need at least 4 digits for the hex conversion.
10220 # map returns an iterator in Python 3.0 and a list in 2.x
10221 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
10222 minverhex = 0
10223 # xrange is not present in Python 3.0 and range returns an iterator
10224 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
10225 sys.exit(sys.hexversion < minverhex)"
10226 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
10227 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }
10231 then :
10232 break
10233 fi
10234 done
10235 fi
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
10237 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
10238 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
10239 if test "$am_cv_pathless_PYTHON" = none; then
10240 PYTHON=:
10241 else
10242 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
10243 set dummy $am_cv_pathless_PYTHON; ac_word=$2
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 printf %s "checking for $ac_word... " >&6; }
10246 if test ${ac_cv_path_PYTHON+y}
10247 then :
10248 printf %s "(cached) " >&6
10249 else $as_nop
10250 case $PYTHON in
10251 [\\/]* | ?:[\\/]*)
10252 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10253 ;;
10254 *)
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258 IFS=$as_save_IFS
10259 case $as_dir in #(((
10260 '') as_dir=./ ;;
10261 */) ;;
10262 *) as_dir=$as_dir/ ;;
10263 esac
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10266 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
10267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270 done
10271 done
10272 IFS=$as_save_IFS
10273
10274 ;;
10275 esac
10276 fi
10277 PYTHON=$ac_cv_path_PYTHON
10278 if test -n "$PYTHON"; then
10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10280 printf "%s\n" "$PYTHON" >&6; }
10281 else
10282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 printf "%s\n" "no" >&6; }
10284 fi
10285
10286
10287 fi
10288 am_display_PYTHON=$am_cv_pathless_PYTHON
10289 fi
10290
10291
10292 if test "$PYTHON" = :; then
10293 :
10294 else
10295
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
10297 printf %s "checking for $am_display_PYTHON version... " >&6; }
10298 if test ${am_cv_python_version+y}
10299 then :
10300 printf %s "(cached) " >&6
10301 else $as_nop
10302 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
10303 fi
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
10305 printf "%s\n" "$am_cv_python_version" >&6; }
10306 PYTHON_VERSION=$am_cv_python_version
10307
10308
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
10310 printf %s "checking for $am_display_PYTHON platform... " >&6; }
10311 if test ${am_cv_python_platform+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else $as_nop
10315 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
10316 fi
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
10318 printf "%s\n" "$am_cv_python_platform" >&6; }
10319 PYTHON_PLATFORM=$am_cv_python_platform
10320
10321
10322 if test "x$prefix" = xNONE; then
10323 am__usable_prefix=$ac_default_prefix
10324 else
10325 am__usable_prefix=$prefix
10326 fi
10327
10328 # Allow user to request using sys.* values from Python,
10329 # instead of the GNU $prefix values.
10330
10331 # Check whether --with-python-sys-prefix was given.
10332 if test ${with_python_sys_prefix+y}
10333 then :
10334 withval=$with_python_sys_prefix; am_use_python_sys=:
10335 else $as_nop
10336 am_use_python_sys=false
10337 fi
10338
10339
10340 # Allow user to override whatever the default Python prefix is.
10341
10342 # Check whether --with-python_prefix was given.
10343 if test ${with_python_prefix+y}
10344 then :
10345 withval=$with_python_prefix; am_python_prefix_subst=$withval
10346 am_cv_python_prefix=$withval
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
10348 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
10350 printf "%s\n" "$am_cv_python_prefix" >&6; }
10351 else $as_nop
10352
10353 if $am_use_python_sys; then
10354 # using python sys.prefix value, not GNU
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
10356 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
10357 if test ${am_cv_python_prefix+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else $as_nop
10361 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
10362 fi
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
10364 printf "%s\n" "$am_cv_python_prefix" >&6; }
10365
10366 case $am_cv_python_prefix in
10367 $am__usable_prefix*)
10368 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
10369 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
10370 ;;
10371 *)
10372 am_python_prefix_subst=$am_cv_python_prefix
10373 ;;
10374 esac
10375 else # using GNU prefix value, not python sys.prefix
10376 am_python_prefix_subst='${prefix}'
10377 am_python_prefix=$am_python_prefix_subst
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
10379 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
10381 printf "%s\n" "$am_python_prefix" >&6; }
10382 fi
10383 fi
10384
10385 # Substituting python_prefix_subst value.
10386 PYTHON_PREFIX=$am_python_prefix_subst
10387
10388
10389 # emacs-page Now do it all over again for Python exec_prefix, but with yet
10390 # another conditional: fall back to regular prefix if that was specified.
10391
10392 # Check whether --with-python_exec_prefix was given.
10393 if test ${with_python_exec_prefix+y}
10394 then :
10395 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
10396 am_cv_python_exec_prefix=$withval
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
10398 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10400 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10401 else $as_nop
10402
10403 # no explicit --with-python_exec_prefix, but if
10404 # --with-python_prefix was given, use its value for python_exec_prefix too.
10405 if test -n "$with_python_prefix"
10406 then :
10407 am_python_exec_prefix_subst=$with_python_prefix
10408 am_cv_python_exec_prefix=$with_python_prefix
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
10410 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10412 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10413 else $as_nop
10414
10415 # Set am__usable_exec_prefix whether using GNU or Python values,
10416 # since we use that variable for pyexecdir.
10417 if test "x$exec_prefix" = xNONE; then
10418 am__usable_exec_prefix=$am__usable_prefix
10419 else
10420 am__usable_exec_prefix=$exec_prefix
10421 fi
10422 #
10423 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
10425 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
10426 if test ${am_cv_python_exec_prefix+y}
10427 then :
10428 printf %s "(cached) " >&6
10429 else $as_nop
10430 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
10431 fi
10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
10433 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
10434 case $am_cv_python_exec_prefix in
10435 $am__usable_exec_prefix*)
10436 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
10437 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
10438 ;;
10439 *)
10440 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
10441 ;;
10442 esac
10443 else # using GNU $exec_prefix, not python sys.exec_prefix
10444 am_python_exec_prefix_subst='${exec_prefix}'
10445 am_python_exec_prefix=$am_python_exec_prefix_subst
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
10447 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
10449 printf "%s\n" "$am_python_exec_prefix" >&6; }
10450 fi
10451 fi
10452 fi
10453
10454 # Substituting python_exec_prefix_subst.
10455 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
10456
10457
10458 # Factor out some code duplication into this shell variable.
10459 am_python_setup_sysconfig="\
10460 import sys
10461 # Prefer sysconfig over distutils.sysconfig, for better compatibility
10462 # with python 3.x. See automake bug#10227.
10463 try:
10464 import sysconfig
10465 except ImportError:
10466 can_use_sysconfig = 0
10467 else:
10468 can_use_sysconfig = 1
10469 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
10470 # <https://github.com/pypa/virtualenv/issues/118>
10471 try:
10472 from platform import python_implementation
10473 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
10474 can_use_sysconfig = 0
10475 except ImportError:
10476 pass"
10477
10478
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
10480 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
10481 if test ${am_cv_python_pythondir+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else $as_nop
10485 if test "x$am_cv_python_prefix" = x; then
10486 am_py_prefix=$am__usable_prefix
10487 else
10488 am_py_prefix=$am_cv_python_prefix
10489 fi
10490 am_cv_python_pythondir=`$PYTHON -c "
10491 $am_python_setup_sysconfig
10492 if can_use_sysconfig:
10493 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
10494 else:
10495 from distutils import sysconfig
10496 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
10497 sys.stdout.write(sitedir)"`
10498 #
10499 case $am_cv_python_pythondir in
10500 $am_py_prefix*)
10501 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
10502 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
10503 ;;
10504 *)
10505 case $am_py_prefix in
10506 /usr|/System*) ;;
10507 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10508 ;;
10509 esac
10510 ;;
10511 esac
10512
10513 fi
10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
10515 printf "%s\n" "$am_cv_python_pythondir" >&6; }
10516 pythondir=$am_cv_python_pythondir
10517
10518
10519 pkgpythondir=\${pythondir}/$PACKAGE
10520
10521
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
10523 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
10524 if test ${am_cv_python_pyexecdir+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 if test "x$am_cv_python_exec_prefix" = x; then
10529 am_py_exec_prefix=$am__usable_exec_prefix
10530 else
10531 am_py_exec_prefix=$am_cv_python_exec_prefix
10532 fi
10533 am_cv_python_pyexecdir=`$PYTHON -c "
10534 $am_python_setup_sysconfig
10535 if can_use_sysconfig:
10536 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
10537 else:
10538 from distutils import sysconfig
10539 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
10540 sys.stdout.write(sitedir)"`
10541 #
10542 case $am_cv_python_pyexecdir in
10543 $am_py_exec_prefix*)
10544 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10545 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
10546 ;;
10547 *)
10548 case $am_py_exec_prefix in
10549 /usr|/System*) ;;
10550 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
10551 ;;
10552 esac
10553 ;;
10554 esac
10555
10556 fi
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
10558 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
10559 pyexecdir=$am_cv_python_pyexecdir
10560
10561
10562 pkgpyexecdir=\${pyexecdir}/$PACKAGE
10563
10564
10565
10566 fi
10567
10568 python_basename=$(basename "$PYTHON")
10569
10570 printf "%s\n" "#define PYTHON_BASENAME \"${python_basename}\"" >>confdefs.h
10571
10572 if test "x$PYTHON" != "x:"; then
10573
10574 printf "%s\n" "#define PYTHON_EXISTS /**/" >>confdefs.h
10575
10576 fi
10577
10578 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
10579 # pyexecdir variables get sent down to the subconfigure in the
10580 # testsuite directory.
10581 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
10582
10583 # Now let's try to find python version 3.
10584 for ac_prog in python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
10585 do
10586 # Extract the first word of "$ac_prog", so it can be a program name with args.
10587 set dummy $ac_prog; ac_word=$2
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 printf %s "checking for $ac_word... " >&6; }
10590 if test ${ac_cv_path_PYTHON3+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else $as_nop
10594 case $PYTHON3 in
10595 [\\/]* | ?:[\\/]*)
10596 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
10597 ;;
10598 *)
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602 IFS=$as_save_IFS
10603 case $as_dir in #(((
10604 '') as_dir=./ ;;
10605 */) ;;
10606 *) as_dir=$as_dir/ ;;
10607 esac
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10610 ac_cv_path_PYTHON3="$as_dir$ac_word$ac_exec_ext"
10611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10612 break 2
10613 fi
10614 done
10615 done
10616 IFS=$as_save_IFS
10617
10618 ;;
10619 esac
10620 fi
10621 PYTHON3=$ac_cv_path_PYTHON3
10622 if test -n "$PYTHON3"; then
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
10624 printf "%s\n" "$PYTHON3" >&6; }
10625 else
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 printf "%s\n" "no" >&6; }
10628 fi
10629
10630
10631 test -n "$PYTHON3" && break
10632 done
10633 test -n "$PYTHON3" || PYTHON3=":"
10634
10635 python3_basename=$(basename "$PYTHON3")
10636
10637 printf "%s\n" "#define PYTHON3_BASENAME \"${python3_basename}\"" >>confdefs.h
10638
10639
10640 # If we found python version 3, set up the other variables for python
10641 # version 3 that AM_PATH_PYTHON sets up for python version 2.
10642 if test "x$PYTHON3" != "x:"; then
10643
10644 printf "%s\n" "#define PYTHON3_EXISTS /**/" >>confdefs.h
10645
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
10647 printf %s "checking for python3 version... " >&6; }
10648 if test ${ac_cv_python3_version+y}
10649 then :
10650 printf %s "(cached) " >&6
10651 else $as_nop
10652 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
10653 fi
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
10655 printf "%s\n" "$ac_cv_python3_version" >&6; }
10656 PYTHON3_VERSION=$ac_cv_python3_version
10657
10658 PYTHON3_PREFIX='${prefix}'
10659
10660 PYTHON3_EXEC_PREFIX='${exec_prefix}'
10661
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
10663 printf %s "checking for python3 platform... " >&6; }
10664 if test ${ac_cv_python3_platform+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else $as_nop
10668 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
10669 fi
10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
10671 printf "%s\n" "$ac_cv_python3_platform" >&6; }
10672 PYTHON3_PLATFORM=$ac_cv_python3_platform
10673
10674
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
10676 printf %s "checking for python3 script directory... " >&6; }
10677 if test ${ac_cv_python3_dir+y}
10678 then :
10679 printf %s "(cached) " >&6
10680 else $as_nop
10681 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
10682 fi
10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
10684 printf "%s\n" "$ac_cv_python3_dir" >&6; }
10685 python3dir=$ac_cv_python3_dir
10686
10687
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
10689 printf %s "checking for python3 extension module directory... " >&6; }
10690 if test ${ac_cv_py3execdir+y}
10691 then :
10692 printf %s "(cached) " >&6
10693 else $as_nop
10694 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
10695 fi
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
10697 printf "%s\n" "$ac_cv_py3execdir" >&6; }
10698 py3execdir=$ac_cv_py3execdir
10699
10700 fi
10701
10702 # Make sure the python3 and py3execdir variables get sent down to
10703 # the subconfigure in the testsuite directory.
10704 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
10705
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with -Werror" >&5
10707 printf %s "checking whether to build with -Werror... " >&6; }
10708 # Check whether --enable-Werror was given.
10709 if test ${enable_Werror+y}
10710 then :
10711 enableval=$enable_Werror;
10712 fi
10713
10714 if test "${enable_Werror}" != "no"
10715 then :
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717 printf "%s\n" "yes" >&6; }
10718 else $as_nop
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 printf "%s\n" "no" >&6; }
10721 fi
10722 if test "${enable_Werror}" != "no"; then
10723 Werror_TRUE=
10724 Werror_FALSE='#'
10725 else
10726 Werror_TRUE='#'
10727 Werror_FALSE=
10728 fi
10729
10730
10731 if test "${enable_prologues+set}" != set; then
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
10733 printf %s "checking to see if prologue searching should be the default... " >&6; }
10734 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
10735 echo ' yes '
10736 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10737 enable_prologues=yes
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10739 printf "%s\n" "yes" >&6; }
10740 else
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 printf "%s\n" "no" >&6; }
10743 fi
10744 fi
10745 # Check whether --enable-prologues was given.
10746 if test ${enable_prologues+y}
10747 then :
10748 enableval=$enable_prologues;
10749 if test "$enable_prologues" = yes; then
10750
10751 printf "%s\n" "#define ENABLE_PROLOGUES /**/" >>confdefs.h
10752
10753 fi
10754 fi
10755
10756
10757
10758 if test "${enable_sdt_probes+set}" != set; then
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
10760 printf %s "checking to see if sdt probes should be the default... " >&6; }
10761 if { echo '#if __GNUC__ < 4'
10762 echo ' yes '
10763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10764 enable_sdt_probes=no
10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 printf "%s\n" "no" >&6; }
10767 else
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769 printf "%s\n" "yes" >&6; }
10770 fi
10771 fi
10772 # Check whether --enable-sdt-probes was given.
10773 if test ${enable_sdt_probes+y}
10774 then :
10775 enableval=$enable_sdt_probes;
10776 fi
10777
10778 if test "x$enable_sdt_probes" != xno
10779 then :
10780
10781
10782 printf "%s\n" "#define ENABLE_SDT_PROBES 1" >>confdefs.h
10783
10784
10785 fi
10786
10787
10788 ax_cxx_compile_cxx11_required=false
10789 ac_ext=cpp
10790 ac_cpp='$CXXCPP $CPPFLAGS'
10791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10794 ac_success=no
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
10796 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
10797 if test ${ax_cv_cxx_compile_cxx11+y}
10798 then :
10799 printf %s "(cached) " >&6
10800 else $as_nop
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803
10804
10805 // If the compiler admits that it is not ready for C++11, why torture it?
10806 // Hopefully, this will speed up the test.
10807
10808 #ifndef __cplusplus
10809
10810 #error "This is not a C++ compiler"
10811
10812 #elif __cplusplus < 201103L
10813
10814 #error "This is not a C++11 compiler"
10815
10816 #else
10817
10818 namespace cxx11
10819 {
10820
10821 namespace test_static_assert
10822 {
10823
10824 template <typename T>
10825 struct check
10826 {
10827 static_assert(sizeof(int) <= sizeof(T), "not big enough");
10828 };
10829
10830 }
10831
10832 namespace test_final_override
10833 {
10834
10835 struct Base
10836 {
10837 virtual void f() {}
10838 };
10839
10840 struct Derived : public Base
10841 {
10842 virtual void f() override {}
10843 };
10844
10845 }
10846
10847 namespace test_double_right_angle_brackets
10848 {
10849
10850 template < typename T >
10851 struct check {};
10852
10853 typedef check<void> single_type;
10854 typedef check<check<void>> double_type;
10855 typedef check<check<check<void>>> triple_type;
10856 typedef check<check<check<check<void>>>> quadruple_type;
10857
10858 }
10859
10860 namespace test_decltype
10861 {
10862
10863 int
10864 f()
10865 {
10866 int a = 1;
10867 decltype(a) b = 2;
10868 return a + b;
10869 }
10870
10871 }
10872
10873 namespace test_type_deduction
10874 {
10875
10876 template < typename T1, typename T2 >
10877 struct is_same
10878 {
10879 static const bool value = false;
10880 };
10881
10882 template < typename T >
10883 struct is_same<T, T>
10884 {
10885 static const bool value = true;
10886 };
10887
10888 template < typename T1, typename T2 >
10889 auto
10890 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10891 {
10892 return a1 + a2;
10893 }
10894
10895 int
10896 test(const int c, volatile int v)
10897 {
10898 static_assert(is_same<int, decltype(0)>::value == true, "");
10899 static_assert(is_same<int, decltype(c)>::value == false, "");
10900 static_assert(is_same<int, decltype(v)>::value == false, "");
10901 auto ac = c;
10902 auto av = v;
10903 auto sumi = ac + av + 'x';
10904 auto sumf = ac + av + 1.0;
10905 static_assert(is_same<int, decltype(ac)>::value == true, "");
10906 static_assert(is_same<int, decltype(av)>::value == true, "");
10907 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10908 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10909 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10910 return (sumf > 0.0) ? sumi : add(c, v);
10911 }
10912
10913 }
10914
10915 namespace test_noexcept
10916 {
10917
10918 int f() { return 0; }
10919 int g() noexcept { return 0; }
10920
10921 static_assert(noexcept(f()) == false, "");
10922 static_assert(noexcept(g()) == true, "");
10923
10924 }
10925
10926 namespace test_constexpr
10927 {
10928
10929 template < typename CharT >
10930 unsigned long constexpr
10931 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10932 {
10933 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10934 }
10935
10936 template < typename CharT >
10937 unsigned long constexpr
10938 strlen_c(const CharT *const s) noexcept
10939 {
10940 return strlen_c_r(s, 0UL);
10941 }
10942
10943 static_assert(strlen_c("") == 0UL, "");
10944 static_assert(strlen_c("1") == 1UL, "");
10945 static_assert(strlen_c("example") == 7UL, "");
10946 static_assert(strlen_c("another\0example") == 7UL, "");
10947
10948 }
10949
10950 namespace test_rvalue_references
10951 {
10952
10953 template < int N >
10954 struct answer
10955 {
10956 static constexpr int value = N;
10957 };
10958
10959 answer<1> f(int&) { return answer<1>(); }
10960 answer<2> f(const int&) { return answer<2>(); }
10961 answer<3> f(int&&) { return answer<3>(); }
10962
10963 void
10964 test()
10965 {
10966 int i = 0;
10967 const int c = 0;
10968 static_assert(decltype(f(i))::value == 1, "");
10969 static_assert(decltype(f(c))::value == 2, "");
10970 static_assert(decltype(f(0))::value == 3, "");
10971 }
10972
10973 }
10974
10975 namespace test_uniform_initialization
10976 {
10977
10978 struct test
10979 {
10980 static const int zero {};
10981 static const int one {1};
10982 };
10983
10984 static_assert(test::zero == 0, "");
10985 static_assert(test::one == 1, "");
10986
10987 }
10988
10989 namespace test_lambdas
10990 {
10991
10992 void
10993 test1()
10994 {
10995 auto lambda1 = [](){};
10996 auto lambda2 = lambda1;
10997 lambda1();
10998 lambda2();
10999 }
11000
11001 int
11002 test2()
11003 {
11004 auto a = [](int i, int j){ return i + j; }(1, 2);
11005 auto b = []() -> int { return '0'; }();
11006 auto c = [=](){ return a + b; }();
11007 auto d = [&](){ return c; }();
11008 auto e = [a, &b](int x) mutable {
11009 const auto identity = [](int y){ return y; };
11010 for (auto i = 0; i < a; ++i)
11011 a += b--;
11012 return x + identity(a + b);
11013 }(0);
11014 return a + b + c + d + e;
11015 }
11016
11017 int
11018 test3()
11019 {
11020 const auto nullary = [](){ return 0; };
11021 const auto unary = [](int x){ return x; };
11022 using nullary_t = decltype(nullary);
11023 using unary_t = decltype(unary);
11024 const auto higher1st = [](nullary_t f){ return f(); };
11025 const auto higher2nd = [unary](nullary_t f1){
11026 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
11027 };
11028 return higher1st(nullary) + higher2nd(nullary)(unary);
11029 }
11030
11031 }
11032
11033 namespace test_variadic_templates
11034 {
11035
11036 template <int...>
11037 struct sum;
11038
11039 template <int N0, int... N1toN>
11040 struct sum<N0, N1toN...>
11041 {
11042 static constexpr auto value = N0 + sum<N1toN...>::value;
11043 };
11044
11045 template <>
11046 struct sum<>
11047 {
11048 static constexpr auto value = 0;
11049 };
11050
11051 static_assert(sum<>::value == 0, "");
11052 static_assert(sum<1>::value == 1, "");
11053 static_assert(sum<23>::value == 23, "");
11054 static_assert(sum<1, 2>::value == 3, "");
11055 static_assert(sum<5, 5, 11>::value == 21, "");
11056 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
11057
11058 }
11059
11060 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
11061 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
11062 // because of this.
11063 namespace test_template_alias_sfinae
11064 {
11065
11066 struct foo {};
11067
11068 template<typename T>
11069 using member = typename T::member_type;
11070
11071 template<typename T>
11072 void func(...) {}
11073
11074 template<typename T>
11075 void func(member<T>*) {}
11076
11077 void test();
11078
11079 void test() { func<foo>(0); }
11080
11081 }
11082
11083 } // namespace cxx11
11084
11085 #endif // __cplusplus >= 201103L
11086
11087
11088
11089 _ACEOF
11090 if ac_fn_cxx_try_compile "$LINENO"
11091 then :
11092 ax_cv_cxx_compile_cxx11=yes
11093 else $as_nop
11094 ax_cv_cxx_compile_cxx11=no
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11097 fi
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
11099 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
11100 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
11101 ac_success=yes
11102 fi
11103
11104
11105
11106 if test x$ac_success = xno; then
11107 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
11108 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
11110 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
11111 if eval test \${$cachevar+y}
11112 then :
11113 printf %s "(cached) " >&6
11114 else $as_nop
11115 ac_save_CXX="$CXX"
11116 CXX="$CXX $switch"
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119
11120
11121 // If the compiler admits that it is not ready for C++11, why torture it?
11122 // Hopefully, this will speed up the test.
11123
11124 #ifndef __cplusplus
11125
11126 #error "This is not a C++ compiler"
11127
11128 #elif __cplusplus < 201103L
11129
11130 #error "This is not a C++11 compiler"
11131
11132 #else
11133
11134 namespace cxx11
11135 {
11136
11137 namespace test_static_assert
11138 {
11139
11140 template <typename T>
11141 struct check
11142 {
11143 static_assert(sizeof(int) <= sizeof(T), "not big enough");
11144 };
11145
11146 }
11147
11148 namespace test_final_override
11149 {
11150
11151 struct Base
11152 {
11153 virtual void f() {}
11154 };
11155
11156 struct Derived : public Base
11157 {
11158 virtual void f() override {}
11159 };
11160
11161 }
11162
11163 namespace test_double_right_angle_brackets
11164 {
11165
11166 template < typename T >
11167 struct check {};
11168
11169 typedef check<void> single_type;
11170 typedef check<check<void>> double_type;
11171 typedef check<check<check<void>>> triple_type;
11172 typedef check<check<check<check<void>>>> quadruple_type;
11173
11174 }
11175
11176 namespace test_decltype
11177 {
11178
11179 int
11180 f()
11181 {
11182 int a = 1;
11183 decltype(a) b = 2;
11184 return a + b;
11185 }
11186
11187 }
11188
11189 namespace test_type_deduction
11190 {
11191
11192 template < typename T1, typename T2 >
11193 struct is_same
11194 {
11195 static const bool value = false;
11196 };
11197
11198 template < typename T >
11199 struct is_same<T, T>
11200 {
11201 static const bool value = true;
11202 };
11203
11204 template < typename T1, typename T2 >
11205 auto
11206 add(T1 a1, T2 a2) -> decltype(a1 + a2)
11207 {
11208 return a1 + a2;
11209 }
11210
11211 int
11212 test(const int c, volatile int v)
11213 {
11214 static_assert(is_same<int, decltype(0)>::value == true, "");
11215 static_assert(is_same<int, decltype(c)>::value == false, "");
11216 static_assert(is_same<int, decltype(v)>::value == false, "");
11217 auto ac = c;
11218 auto av = v;
11219 auto sumi = ac + av + 'x';
11220 auto sumf = ac + av + 1.0;
11221 static_assert(is_same<int, decltype(ac)>::value == true, "");
11222 static_assert(is_same<int, decltype(av)>::value == true, "");
11223 static_assert(is_same<int, decltype(sumi)>::value == true, "");
11224 static_assert(is_same<int, decltype(sumf)>::value == false, "");
11225 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
11226 return (sumf > 0.0) ? sumi : add(c, v);
11227 }
11228
11229 }
11230
11231 namespace test_noexcept
11232 {
11233
11234 int f() { return 0; }
11235 int g() noexcept { return 0; }
11236
11237 static_assert(noexcept(f()) == false, "");
11238 static_assert(noexcept(g()) == true, "");
11239
11240 }
11241
11242 namespace test_constexpr
11243 {
11244
11245 template < typename CharT >
11246 unsigned long constexpr
11247 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
11248 {
11249 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
11250 }
11251
11252 template < typename CharT >
11253 unsigned long constexpr
11254 strlen_c(const CharT *const s) noexcept
11255 {
11256 return strlen_c_r(s, 0UL);
11257 }
11258
11259 static_assert(strlen_c("") == 0UL, "");
11260 static_assert(strlen_c("1") == 1UL, "");
11261 static_assert(strlen_c("example") == 7UL, "");
11262 static_assert(strlen_c("another\0example") == 7UL, "");
11263
11264 }
11265
11266 namespace test_rvalue_references
11267 {
11268
11269 template < int N >
11270 struct answer
11271 {
11272 static constexpr int value = N;
11273 };
11274
11275 answer<1> f(int&) { return answer<1>(); }
11276 answer<2> f(const int&) { return answer<2>(); }
11277 answer<3> f(int&&) { return answer<3>(); }
11278
11279 void
11280 test()
11281 {
11282 int i = 0;
11283 const int c = 0;
11284 static_assert(decltype(f(i))::value == 1, "");
11285 static_assert(decltype(f(c))::value == 2, "");
11286 static_assert(decltype(f(0))::value == 3, "");
11287 }
11288
11289 }
11290
11291 namespace test_uniform_initialization
11292 {
11293
11294 struct test
11295 {
11296 static const int zero {};
11297 static const int one {1};
11298 };
11299
11300 static_assert(test::zero == 0, "");
11301 static_assert(test::one == 1, "");
11302
11303 }
11304
11305 namespace test_lambdas
11306 {
11307
11308 void
11309 test1()
11310 {
11311 auto lambda1 = [](){};
11312 auto lambda2 = lambda1;
11313 lambda1();
11314 lambda2();
11315 }
11316
11317 int
11318 test2()
11319 {
11320 auto a = [](int i, int j){ return i + j; }(1, 2);
11321 auto b = []() -> int { return '0'; }();
11322 auto c = [=](){ return a + b; }();
11323 auto d = [&](){ return c; }();
11324 auto e = [a, &b](int x) mutable {
11325 const auto identity = [](int y){ return y; };
11326 for (auto i = 0; i < a; ++i)
11327 a += b--;
11328 return x + identity(a + b);
11329 }(0);
11330 return a + b + c + d + e;
11331 }
11332
11333 int
11334 test3()
11335 {
11336 const auto nullary = [](){ return 0; };
11337 const auto unary = [](int x){ return x; };
11338 using nullary_t = decltype(nullary);
11339 using unary_t = decltype(unary);
11340 const auto higher1st = [](nullary_t f){ return f(); };
11341 const auto higher2nd = [unary](nullary_t f1){
11342 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
11343 };
11344 return higher1st(nullary) + higher2nd(nullary)(unary);
11345 }
11346
11347 }
11348
11349 namespace test_variadic_templates
11350 {
11351
11352 template <int...>
11353 struct sum;
11354
11355 template <int N0, int... N1toN>
11356 struct sum<N0, N1toN...>
11357 {
11358 static constexpr auto value = N0 + sum<N1toN...>::value;
11359 };
11360
11361 template <>
11362 struct sum<>
11363 {
11364 static constexpr auto value = 0;
11365 };
11366
11367 static_assert(sum<>::value == 0, "");
11368 static_assert(sum<1>::value == 1, "");
11369 static_assert(sum<23>::value == 23, "");
11370 static_assert(sum<1, 2>::value == 3, "");
11371 static_assert(sum<5, 5, 11>::value == 21, "");
11372 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
11373
11374 }
11375
11376 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
11377 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
11378 // because of this.
11379 namespace test_template_alias_sfinae
11380 {
11381
11382 struct foo {};
11383
11384 template<typename T>
11385 using member = typename T::member_type;
11386
11387 template<typename T>
11388 void func(...) {}
11389
11390 template<typename T>
11391 void func(member<T>*) {}
11392
11393 void test();
11394
11395 void test() { func<foo>(0); }
11396
11397 }
11398
11399 } // namespace cxx11
11400
11401 #endif // __cplusplus >= 201103L
11402
11403
11404
11405 _ACEOF
11406 if ac_fn_cxx_try_compile "$LINENO"
11407 then :
11408 eval $cachevar=yes
11409 else $as_nop
11410 eval $cachevar=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11413 CXX="$ac_save_CXX"
11414 fi
11415 eval ac_res=\$$cachevar
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11417 printf "%s\n" "$ac_res" >&6; }
11418 if eval test x\$$cachevar = xyes; then
11419 CXX="$CXX $switch"
11420 ac_success=yes
11421 break
11422 fi
11423 done
11424 fi
11425 ac_ext=c
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
11431 if test x$ax_cxx_compile_cxx11_required = xtrue; then
11432 if test x$ac_success = xno; then
11433 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
11434 fi
11435 fi
11436 if test x$ac_success = xno; then
11437 HAVE_CXX11=0
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
11439 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
11440 else
11441 HAVE_CXX11=1
11442
11443 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
11444
11445 fi
11446
11447
11448 have_cxx0x="no"
11449 if test "x$HAVE_CXX11" != x1
11450 then :
11451
11452 ac_ext=cpp
11453 ac_cpp='$CXXCPP $CPPFLAGS'
11454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11457
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
11459 printf %s "checking whether C++ compiler accepts -std=c++0x... " >&6; }
11460 if test ${ax_cv_check_cxxflags___std_cpp0x+y}
11461 then :
11462 printf %s "(cached) " >&6
11463 else $as_nop
11464
11465 ax_check_save_flags=$CXXFLAGS
11466 CXXFLAGS="$CXXFLAGS -std=c++0x"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 int
11471 main (void)
11472 {
11473
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_cxx_try_compile "$LINENO"
11479 then :
11480 ax_cv_check_cxxflags___std_cpp0x=yes
11481 else $as_nop
11482 ax_cv_check_cxxflags___std_cpp0x=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11485 CXXFLAGS=$ax_check_save_flags
11486 fi
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
11488 printf "%s\n" "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
11489 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes
11490 then :
11491
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
11493 printf "%s\n" "$as_me: Compiling with -std=c++0x" >&6;}
11494 CXX="$CXX -std=c++0x"
11495 HAVE_CXX11=1
11496 have_cxx0x="yes"
11497
11498 else $as_nop
11499
11500 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
11501
11502 fi
11503
11504 ac_ext=c
11505 ac_cpp='$CPP $CPPFLAGS'
11506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509
11510
11511 fi
11512
11513 ac_ext=cpp
11514 ac_cpp='$CXXCPP $CPPFLAGS'
11515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11518
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -faligned-new" >&5
11520 printf %s "checking whether C++ compiler accepts -faligned-new... " >&6; }
11521 if test ${ax_cv_check_cxxflags___faligned_new+y}
11522 then :
11523 printf %s "(cached) " >&6
11524 else $as_nop
11525
11526 ax_check_save_flags=$CXXFLAGS
11527 CXXFLAGS="$CXXFLAGS -faligned-new"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530
11531 int
11532 main (void)
11533 {
11534
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_cxx_try_compile "$LINENO"
11540 then :
11541 ax_cv_check_cxxflags___faligned_new=yes
11542 else $as_nop
11543 ax_cv_check_cxxflags___faligned_new=no
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11546 CXXFLAGS=$ax_check_save_flags
11547 fi
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___faligned_new" >&5
11549 printf "%s\n" "$ax_cv_check_cxxflags___faligned_new" >&6; }
11550 if test "x$ax_cv_check_cxxflags___faligned_new" = xyes
11551 then :
11552 ALIGNEDNEW="-faligned-new"
11553 else $as_nop
11554 ALIGNEDNEW=""
11555 fi
11556
11557 ac_ext=c
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571 # Check whether --with-debuginfod was given.
11572 if test ${with_debuginfod+y}
11573 then :
11574 withval=$with_debuginfod;
11575 else $as_nop
11576 with_debuginfod=auto
11577 fi
11578
11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
11580 printf %s "checking whether to use debuginfod... " >&6; }
11581 if expr "$with_debuginfod" : "/.*" >/dev/null; then
11582 debuginfod_LDFLAGS=-L$with_debuginfod/lib
11583 debuginfod_LIBS=-ldebuginfod
11584 debuginfod_CFLAGS=-I$with_debuginfod/include
11585 have_debuginfod=1
11586
11587 printf "%s\n" "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11588
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 printf "%s\n" "yes" >&6; }
11591 elif test "x$with_debuginfod" != xno; then
11592
11593 pkg_failed=no
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debuginfod" >&5
11595 printf %s "checking for debuginfod... " >&6; }
11596
11597 if test -n "$debuginfod_CFLAGS"; then
11598 pkg_cv_debuginfod_CFLAGS="$debuginfod_CFLAGS"
11599 elif test -n "$PKG_CONFIG"; then
11600 if test -n "$PKG_CONFIG" && \
11601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11602 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11603 ac_status=$?
11604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11605 test $ac_status = 0; }; then
11606 pkg_cv_debuginfod_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
11607 test "x$?" != "x0" && pkg_failed=yes
11608 else
11609 pkg_failed=yes
11610 fi
11611 else
11612 pkg_failed=untried
11613 fi
11614 if test -n "$debuginfod_LIBS"; then
11615 pkg_cv_debuginfod_LIBS="$debuginfod_LIBS"
11616 elif test -n "$PKG_CONFIG"; then
11617 if test -n "$PKG_CONFIG" && \
11618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
11619 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
11620 ac_status=$?
11621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622 test $ac_status = 0; }; then
11623 pkg_cv_debuginfod_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
11624 test "x$?" != "x0" && pkg_failed=yes
11625 else
11626 pkg_failed=yes
11627 fi
11628 else
11629 pkg_failed=untried
11630 fi
11631
11632
11633
11634 if test $pkg_failed = yes; then
11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 printf "%s\n" "no" >&6; }
11637
11638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11639 _pkg_short_errors_supported=yes
11640 else
11641 _pkg_short_errors_supported=no
11642 fi
11643 if test $_pkg_short_errors_supported = yes; then
11644 debuginfod_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11645 else
11646 debuginfod_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
11647 fi
11648 # Put the nasty error message in config.log where it belongs
11649 echo "$debuginfod_PKG_ERRORS" >&5
11650
11651 if test "x$with_debuginfod" = xyes; then
11652 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11653 fi
11654 elif test $pkg_failed = untried; then
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 printf "%s\n" "no" >&6; }
11657 if test "x$with_debuginfod" = xyes; then
11658 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
11659 fi
11660 else
11661 debuginfod_CFLAGS=$pkg_cv_debuginfod_CFLAGS
11662 debuginfod_LIBS=$pkg_cv_debuginfod_LIBS
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664 printf "%s\n" "yes" >&6; }
11665 have_debuginfod=1
11666
11667 printf "%s\n" "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
11668
11669 fi
11670 else
11671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 printf "%s\n" "no" >&6; }
11673 fi
11674
11675 ac_save_CFLAGS="$CFLAGS"
11676 ac_save_LDFLAGS="$LDFLAGS"
11677 CFLAGS="$CFLAGS $debuginfod_CFLAGS"
11678 LDFLAGS="$LDFLAGS $debuginfod_LDFLAGS"
11679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debuginfod_find_metadata in -ldebuginfod" >&5
11680 printf %s "checking for debuginfod_find_metadata in -ldebuginfod... " >&6; }
11681 if test ${ac_cv_lib_debuginfod_debuginfod_find_metadata+y}
11682 then :
11683 printf %s "(cached) " >&6
11684 else $as_nop
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-ldebuginfod $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 char debuginfod_find_metadata ();
11694 int
11695 main (void)
11696 {
11697 return debuginfod_find_metadata ();
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"
11703 then :
11704 ac_cv_lib_debuginfod_debuginfod_find_metadata=yes
11705 else $as_nop
11706 ac_cv_lib_debuginfod_debuginfod_find_metadata=no
11707 fi
11708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LIBS=$ac_check_lib_save_LIBS
11711 fi
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_find_metadata" >&5
11713 printf "%s\n" "$ac_cv_lib_debuginfod_debuginfod_find_metadata" >&6; }
11714 if test "x$ac_cv_lib_debuginfod_debuginfod_find_metadata" = xyes
11715 then :
11716
11717
11718 printf "%s\n" "#define METADATA_QUERY_ENABLED 1" >>confdefs.h
11719
11720
11721 fi
11722
11723 CFLAGS="$ac_save_CFLAGS"
11724 LDFLAGS="$ac_save_LDFLAGS"
11725
11726
11727 # Check whether --enable-sqlite was given.
11728 if test ${enable_sqlite+y}
11729 then :
11730 enableval=$enable_sqlite;
11731 else $as_nop
11732 enable_sqlite=check
11733 fi
11734 sqlite3_LIBS=
11735 if test "x$enable_sqlite" != xno
11736 then :
11737
11738 pkg_failed=no
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
11740 printf %s "checking for sqlite3... " >&6; }
11741
11742 if test -n "$sqlite3_CFLAGS"; then
11743 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
11744 elif test -n "$PKG_CONFIG"; then
11745 if test -n "$PKG_CONFIG" && \
11746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
11747 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
11748 ac_status=$?
11749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750 test $ac_status = 0; }; then
11751 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
11752 test "x$?" != "x0" && pkg_failed=yes
11753 else
11754 pkg_failed=yes
11755 fi
11756 else
11757 pkg_failed=untried
11758 fi
11759 if test -n "$sqlite3_LIBS"; then
11760 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
11761 elif test -n "$PKG_CONFIG"; then
11762 if test -n "$PKG_CONFIG" && \
11763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
11764 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
11765 ac_status=$?
11766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11767 test $ac_status = 0; }; then
11768 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
11769 test "x$?" != "x0" && pkg_failed=yes
11770 else
11771 pkg_failed=yes
11772 fi
11773 else
11774 pkg_failed=untried
11775 fi
11776
11777
11778
11779 if test $pkg_failed = yes; then
11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 printf "%s\n" "no" >&6; }
11782
11783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11784 _pkg_short_errors_supported=yes
11785 else
11786 _pkg_short_errors_supported=no
11787 fi
11788 if test $_pkg_short_errors_supported = yes; then
11789 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
11790 else
11791 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
11792 fi
11793 # Put the nasty error message in config.log where it belongs
11794 echo "$sqlite3_PKG_ERRORS" >&5
11795
11796 if test "x$enable_sqlite" != xcheck; then
11797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11799 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
11800 See \`config.log' for more details" "$LINENO" 5; }
11801 fi
11802 elif test $pkg_failed = untried; then
11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 printf "%s\n" "no" >&6; }
11805 if test "x$enable_sqlite" != xcheck; then
11806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11808 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
11809 See \`config.log' for more details" "$LINENO" 5; }
11810 fi
11811 else
11812 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
11813 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11815 printf "%s\n" "yes" >&6; }
11816
11817 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
11818
11819 fi
11820 fi
11821
11822 # Check whether --enable-translator was given.
11823 if test ${enable_translator+y}
11824 then :
11825 enableval=$enable_translator;
11826 else $as_nop
11827 enable_translator="yes"
11828 fi
11829
11830 if test "$enable_translator" = "yes"; then
11831 BUILD_TRANSLATOR_TRUE=
11832 BUILD_TRANSLATOR_FALSE='#'
11833 else
11834 BUILD_TRANSLATOR_TRUE='#'
11835 BUILD_TRANSLATOR_FALSE=
11836 fi
11837
11838
11839 # Check whether --enable-crash was given.
11840 if test ${enable_crash+y}
11841 then :
11842 enableval=$enable_crash; if test "$enable_crash" != "no"; then
11843 save_CPPFLAGS="$CPPFLAGS"
11844 if test "$enable_crash" != "yes"; then
11845 staplog_CPPFLAGS=-I$enable_crash
11846 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
11847
11848 fi
11849 for ac_header in crash/defs.h
11850 do :
11851 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
11852 #define NR_CPUS 256
11853
11854 "
11855 if test "x$ac_cv_header_crash_defs_h" = xyes
11856 then :
11857 printf "%s\n" "#define HAVE_CRASH_DEFS_H 1" >>confdefs.h
11858
11859 else $as_nop
11860 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
11861 fi
11862
11863 done
11864 CPPFLAGS="$save_CPPFLAGS"
11865 fi
11866 else $as_nop
11867 enable_crash="no"
11868 fi
11869
11870 if test "$enable_crash" != "no"; then
11871 BUILD_CRASHMOD_TRUE=
11872 BUILD_CRASHMOD_FALSE='#'
11873 else
11874 BUILD_CRASHMOD_TRUE='#'
11875 BUILD_CRASHMOD_FALSE=
11876 fi
11877
11878
11879 building_docs="no"
11880 installing_prebuilt_docs="yes"
11881 # Check whether --enable-docs was given.
11882 if test ${enable_docs+y}
11883 then :
11884 enableval=$enable_docs; enable_docs=$enableval
11885 else $as_nop
11886 enable_docs="prebuilt"
11887 fi
11888
11889 # Extract the first word of "latex", so it can be a program name with args.
11890 set dummy latex; ac_word=$2
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 printf %s "checking for $ac_word... " >&6; }
11893 if test ${ac_cv_prog_have_latex+y}
11894 then :
11895 printf %s "(cached) " >&6
11896 else $as_nop
11897 if test -n "$have_latex"; then
11898 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
11899 else
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11902 do
11903 IFS=$as_save_IFS
11904 case $as_dir in #(((
11905 '') as_dir=./ ;;
11906 */) ;;
11907 *) as_dir=$as_dir/ ;;
11908 esac
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11911 ac_cv_prog_have_latex="yes"
11912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11913 break 2
11914 fi
11915 done
11916 done
11917 IFS=$as_save_IFS
11918
11919 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
11920 fi
11921 fi
11922 have_latex=$ac_cv_prog_have_latex
11923 if test -n "$have_latex"; then
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
11925 printf "%s\n" "$have_latex" >&6; }
11926 else
11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 printf "%s\n" "no" >&6; }
11929 fi
11930
11931
11932 # Extract the first word of "dvips", so it can be a program name with args.
11933 set dummy dvips; ac_word=$2
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 printf %s "checking for $ac_word... " >&6; }
11936 if test ${ac_cv_prog_have_dvips+y}
11937 then :
11938 printf %s "(cached) " >&6
11939 else $as_nop
11940 if test -n "$have_dvips"; then
11941 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946 IFS=$as_save_IFS
11947 case $as_dir in #(((
11948 '') as_dir=./ ;;
11949 */) ;;
11950 *) as_dir=$as_dir/ ;;
11951 esac
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_have_dvips="yes"
11955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11956 break 2
11957 fi
11958 done
11959 done
11960 IFS=$as_save_IFS
11961
11962 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
11963 fi
11964 fi
11965 have_dvips=$ac_cv_prog_have_dvips
11966 if test -n "$have_dvips"; then
11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
11968 printf "%s\n" "$have_dvips" >&6; }
11969 else
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 printf "%s\n" "no" >&6; }
11972 fi
11973
11974
11975 # Extract the first word of "ps2pdf", so it can be a program name with args.
11976 set dummy ps2pdf; ac_word=$2
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 printf %s "checking for $ac_word... " >&6; }
11979 if test ${ac_cv_prog_have_ps2pdf+y}
11980 then :
11981 printf %s "(cached) " >&6
11982 else $as_nop
11983 if test -n "$have_ps2pdf"; then
11984 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
11985 else
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11988 do
11989 IFS=$as_save_IFS
11990 case $as_dir in #(((
11991 '') as_dir=./ ;;
11992 */) ;;
11993 *) as_dir=$as_dir/ ;;
11994 esac
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_have_ps2pdf="yes"
11998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11999 break 2
12000 fi
12001 done
12002 done
12003 IFS=$as_save_IFS
12004
12005 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
12006 fi
12007 fi
12008 have_ps2pdf=$ac_cv_prog_have_ps2pdf
12009 if test -n "$have_ps2pdf"; then
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
12011 printf "%s\n" "$have_ps2pdf" >&6; }
12012 else
12013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 printf "%s\n" "no" >&6; }
12015 fi
12016
12017
12018 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
12019 if test "$enable_docs" = "yes"; then
12020 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
12021 fi
12022 if test "$enable_docs" = "check"; then
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
12024 printf "%s\n" "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
12025 fi
12026 fi
12027 if test "$enable_docs" = "prebuilt"; then
12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: will only install prebuilt documentation" >&5
12029 printf "%s\n" "$as_me: will only install prebuilt documentation" >&6;}
12030 fi
12031 if test "x${have_latex}${have_dvips}${have_ps2pdf}" = "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
12032 building_docs="yes"
12033 installing_prebuilt_docs="yes"
12034 fi
12035 if test "$enable_docs" = "no"; then
12036 installing_prebuilt_docs="no"
12037 fi
12038 if test "$building_docs" = "yes"; then
12039 BUILD_DOCS_TRUE=
12040 BUILD_DOCS_FALSE='#'
12041 else
12042 BUILD_DOCS_TRUE='#'
12043 BUILD_DOCS_FALSE=
12044 fi
12045
12046 if test "$installing_prebuilt_docs" = "yes"; then
12047 INSTALL_PREBUILT_DOCS_TRUE=
12048 INSTALL_PREBUILT_DOCS_FALSE='#'
12049 else
12050 INSTALL_PREBUILT_DOCS_TRUE='#'
12051 INSTALL_PREBUILT_DOCS_FALSE=
12052 fi
12053
12054
12055
12056 building_refdocs="no"
12057 # Check whether --enable-refdocs was given.
12058 if test ${enable_refdocs+y}
12059 then :
12060 enableval=$enable_refdocs; enable_refdocs=$enableval
12061 else $as_nop
12062 enable_refdocs="check"
12063 fi
12064
12065 if test "$building_docs" = "no" -a "$enable_refdocs" = "yes" ; then
12066 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
12067 fi
12068 if test "$enable_refdocs" != "no" -a "${building_docs}" = "yes"; then
12069 building_refdocs="yes"
12070 fi
12071 if test "$building_refdocs" = "yes"; then
12072 BUILD_REFDOCS_TRUE=
12073 BUILD_REFDOCS_FALSE='#'
12074 else
12075 BUILD_REFDOCS_TRUE='#'
12076 BUILD_REFDOCS_FALSE=
12077 fi
12078
12079
12080 # Extract the first word of "xmlto", so it can be a program name with args.
12081 set dummy xmlto; ac_word=$2
12082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 printf %s "checking for $ac_word... " >&6; }
12084 if test ${ac_cv_prog_have_xmlto+y}
12085 then :
12086 printf %s "(cached) " >&6
12087 else $as_nop
12088 if test -n "$have_xmlto"; then
12089 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094 IFS=$as_save_IFS
12095 case $as_dir in #(((
12096 '') as_dir=./ ;;
12097 */) ;;
12098 *) as_dir=$as_dir/ ;;
12099 esac
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_have_xmlto="yes"
12103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
12111 fi
12112 fi
12113 have_xmlto=$ac_cv_prog_have_xmlto
12114 if test -n "$have_xmlto"; then
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
12116 printf "%s\n" "$have_xmlto" >&6; }
12117 else
12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 printf "%s\n" "no" >&6; }
12120 fi
12121
12122
12123 # Extract the first word of "fop", so it can be a program name with args.
12124 set dummy fop; ac_word=$2
12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 printf %s "checking for $ac_word... " >&6; }
12127 if test ${ac_cv_prog_have_fop+y}
12128 then :
12129 printf %s "(cached) " >&6
12130 else $as_nop
12131 if test -n "$have_fop"; then
12132 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137 IFS=$as_save_IFS
12138 case $as_dir in #(((
12139 '') as_dir=./ ;;
12140 */) ;;
12141 *) as_dir=$as_dir/ ;;
12142 esac
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12145 ac_cv_prog_have_fop="yes"
12146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12147 break 2
12148 fi
12149 done
12150 done
12151 IFS=$as_save_IFS
12152
12153 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
12154 fi
12155 fi
12156 have_fop=$ac_cv_prog_have_fop
12157 if test -n "$have_fop"; then
12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
12159 printf "%s\n" "$have_fop" >&6; }
12160 else
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 printf "%s\n" "no" >&6; }
12163 fi
12164
12165
12166 if test "x${have_fop}" = "xyes"; then
12167 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
12168 # hope that it works.
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
12170 printf %s "checking to see if xmlto --with-fop actually works... " >&6; }
12171 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12173 printf "%s\n" "yes" >&6; }
12174 else
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
12176 printf "%s\n" "it's dead, Jim" >&6; }
12177 have_fop="broken"
12178 fi
12179 rm -f dummy-tapsets.pdf
12180 fi
12181 if test "$have_fop" = "yes"; then
12182 HAVE_FOP_TRUE=
12183 HAVE_FOP_FALSE='#'
12184 else
12185 HAVE_FOP_TRUE='#'
12186 HAVE_FOP_FALSE=
12187 fi
12188
12189 if test "$have_xmlto" = "yes"; then
12190 HAVE_XMLTO_TRUE=
12191 HAVE_XMLTO_FALSE='#'
12192 else
12193 HAVE_XMLTO_TRUE='#'
12194 HAVE_XMLTO_FALSE=
12195 fi
12196
12197
12198 building_htmldocs="no"
12199 # Check whether --enable-htmldocs was given.
12200 if test ${enable_htmldocs+y}
12201 then :
12202 enableval=$enable_htmldocs; building_htmldocs=$enableval
12203 else $as_nop
12204 building_htmldocs="no"
12205 fi
12206
12207 if test "$have_xmlto" = "no" -a "$building_htmldocs" = "yes"; then
12208 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
12209 fi
12210
12211 if test "$building_htmldocs" = "yes"; then
12212 BUILD_HTMLDOCS_TRUE=
12213 BUILD_HTMLDOCS_FALSE='#'
12214 else
12215 BUILD_HTMLDOCS_TRUE='#'
12216 BUILD_HTMLDOCS_FALSE=
12217 fi
12218
12219
12220 cat > conftest.xml << 'EOF'
12221 <?xml version="1.0" encoding="UTF-8"?>
12222 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
12223 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
12224 <book lang="en">
12225 <bookinfo><title>foo</title></bookinfo>
12226 <chapter id="logging.stp"><title>Logging Tapset</title>
12227 <refentry id="API-log"><refnamediv><refname>log</refname>
12228 <refpurpose>logging</refpurpose></refnamediv>
12229 <refsect1><title>Description</title>
12230 <para>baz</para></refsect1></refentry></chapter>
12231 </book>
12232 EOF
12233
12234 if test "x${have_xmlto}" = "xyes"; then
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
12236 printf %s "checking for xmlto --stringparam support... " >&6; }
12237 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
12238 if test $? = 0; then
12239 have_xmlto_stringparam="yes"
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241 printf "%s\n" "yes" >&6; }
12242 else
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 printf "%s\n" "no" >&6; }
12245 fi
12246 rm -f conftest.html
12247 fi
12248 if test "$have_xmlto_stringparam" = "yes"; then
12249 XMLTO_STRINGPARAM_TRUE=
12250 XMLTO_STRINGPARAM_FALSE='#'
12251 else
12252 XMLTO_STRINGPARAM_TRUE='#'
12253 XMLTO_STRINGPARAM_FALSE=
12254 fi
12255
12256
12257 rm -f conftest.xml
12258
12259
12260 # Check whether --with-nss was given.
12261 if test ${with_nss+y}
12262 then :
12263 withval=$with_nss;
12264 fi
12265
12266
12267 if test "x$with_nss" != "xno"
12268 then :
12269
12270
12271 pkg_failed=no
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
12273 printf %s "checking for nss... " >&6; }
12274
12275 if test -n "$nss_CFLAGS"; then
12276 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
12277 elif test -n "$PKG_CONFIG"; then
12278 if test -n "$PKG_CONFIG" && \
12279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
12280 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
12281 ac_status=$?
12282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12283 test $ac_status = 0; }; then
12284 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
12285 test "x$?" != "x0" && pkg_failed=yes
12286 else
12287 pkg_failed=yes
12288 fi
12289 else
12290 pkg_failed=untried
12291 fi
12292 if test -n "$nss_LIBS"; then
12293 pkg_cv_nss_LIBS="$nss_LIBS"
12294 elif test -n "$PKG_CONFIG"; then
12295 if test -n "$PKG_CONFIG" && \
12296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
12297 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
12298 ac_status=$?
12299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300 test $ac_status = 0; }; then
12301 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
12302 test "x$?" != "x0" && pkg_failed=yes
12303 else
12304 pkg_failed=yes
12305 fi
12306 else
12307 pkg_failed=untried
12308 fi
12309
12310
12311
12312 if test $pkg_failed = yes; then
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 printf "%s\n" "no" >&6; }
12315
12316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12317 _pkg_short_errors_supported=yes
12318 else
12319 _pkg_short_errors_supported=no
12320 fi
12321 if test $_pkg_short_errors_supported = yes; then
12322 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
12323 else
12324 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
12325 fi
12326 # Put the nasty error message in config.log where it belongs
12327 echo "$nss_PKG_ERRORS" >&5
12328
12329 have_nss=no
12330 elif test $pkg_failed = untried; then
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 printf "%s\n" "no" >&6; }
12333 have_nss=no
12334 else
12335 nss_CFLAGS=$pkg_cv_nss_CFLAGS
12336 nss_LIBS=$pkg_cv_nss_LIBS
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12338 printf "%s\n" "yes" >&6; }
12339 have_nss=yes
12340
12341 printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
12342
12343
12344 fi
12345
12346 else $as_nop
12347 have_nss=no
12348 fi
12349
12350 if test "${have_nss}" = "yes"; then
12351 HAVE_NSS_TRUE=
12352 HAVE_NSS_FALSE='#'
12353 else
12354 HAVE_NSS_TRUE='#'
12355 HAVE_NSS_FALSE=
12356 fi
12357
12358
12359
12360 # Check whether --with-openssl was given.
12361 if test ${with_openssl+y}
12362 then :
12363 withval=$with_openssl;
12364 fi
12365
12366
12367 if test "x$with_openssl" != "xno"
12368 then :
12369
12370
12371 pkg_failed=no
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
12373 printf %s "checking for openssl... " >&6; }
12374
12375 if test -n "$openssl_CFLAGS"; then
12376 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
12377 elif test -n "$PKG_CONFIG"; then
12378 if test -n "$PKG_CONFIG" && \
12379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12380 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12381 ac_status=$?
12382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383 test $ac_status = 0; }; then
12384 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
12385 test "x$?" != "x0" && pkg_failed=yes
12386 else
12387 pkg_failed=yes
12388 fi
12389 else
12390 pkg_failed=untried
12391 fi
12392 if test -n "$openssl_LIBS"; then
12393 pkg_cv_openssl_LIBS="$openssl_LIBS"
12394 elif test -n "$PKG_CONFIG"; then
12395 if test -n "$PKG_CONFIG" && \
12396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
12397 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
12398 ac_status=$?
12399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400 test $ac_status = 0; }; then
12401 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
12402 test "x$?" != "x0" && pkg_failed=yes
12403 else
12404 pkg_failed=yes
12405 fi
12406 else
12407 pkg_failed=untried
12408 fi
12409
12410
12411
12412 if test $pkg_failed = yes; then
12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 printf "%s\n" "no" >&6; }
12415
12416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12417 _pkg_short_errors_supported=yes
12418 else
12419 _pkg_short_errors_supported=no
12420 fi
12421 if test $_pkg_short_errors_supported = yes; then
12422 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
12423 else
12424 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
12425 fi
12426 # Put the nasty error message in config.log where it belongs
12427 echo "$openssl_PKG_ERRORS" >&5
12428
12429 have_openssl=no
12430 elif test $pkg_failed = untried; then
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 printf "%s\n" "no" >&6; }
12433 have_openssl=no
12434 else
12435 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
12436 openssl_LIBS=$pkg_cv_openssl_LIBS
12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438 printf "%s\n" "yes" >&6; }
12439 have_openssl=yes
12440
12441 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
12442
12443
12444 fi
12445
12446 else $as_nop
12447 have_openssl=no
12448 fi
12449
12450 if test "${have_openssl}" = "yes"; then
12451 HAVE_OPENSSL_TRUE=
12452 HAVE_OPENSSL_FALSE='#'
12453 else
12454 HAVE_OPENSSL_TRUE='#'
12455 HAVE_OPENSSL_FALSE=
12456 fi
12457
12458
12459
12460 # Check whether --with-dracutstap was given.
12461 if test ${with_dracutstap+y}
12462 then :
12463 withval=$with_dracutstap;
12464 fi
12465
12466 if test "x$with_dracutstap" != "x"
12467 then :
12468 dracutstap="$with_dracutstap"
12469 else $as_nop
12470 dracutstap=/usr/lib/dracut/modules.d/99stap
12471 fi
12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
12473 printf "%s\n" "$as_me: using dracut module directory $dracutstap" >&6;}
12474
12475
12476
12477 # Check whether --with-dracutbindir was given.
12478 if test ${with_dracutbindir+y}
12479 then :
12480 withval=$with_dracutbindir;
12481 fi
12482
12483 if test "x$with_dracutbindir" != "x"
12484 then :
12485 dracutbindir="$with_dracutbindir"
12486 else $as_nop
12487 dracutbindir=/sbin
12488 fi
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
12490 printf "%s\n" "$as_me: using dracut binary $dracutbindir" >&6;}
12491
12492
12493 # Check whether --enable-server was given.
12494 if test ${enable_server+y}
12495 then :
12496 enableval=$enable_server; enable_server=$enableval
12497 else $as_nop
12498 enable_server="check"
12499 fi
12500
12501
12502 if test "$enable_server" != "no"; then
12503 if test "x${have_nss}" != "xyes"; then
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
12505 printf "%s\n" "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
12506 fi
12507 fi
12508 if test "${have_nss}" = "yes" -a "$enable_server" != "no"; then
12509 BUILD_SERVER_TRUE=
12510 BUILD_SERVER_FALSE='#'
12511 else
12512 BUILD_SERVER_TRUE='#'
12513 BUILD_SERVER_FALSE=
12514 fi
12515
12516
12517 if test "${have_nss}" != "yes"; then
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
12519 printf "%s\n" "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
12520 fi
12521
12522
12523 # Check whether --with-avahi was given.
12524 if test ${with_avahi+y}
12525 then :
12526 withval=$with_avahi;
12527 fi
12528
12529
12530 if test "x$with_avahi" != "xno"
12531 then :
12532
12533
12534 pkg_failed=no
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
12536 printf %s "checking for avahi... " >&6; }
12537
12538 if test -n "$avahi_CFLAGS"; then
12539 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
12540 elif test -n "$PKG_CONFIG"; then
12541 if test -n "$PKG_CONFIG" && \
12542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
12543 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
12544 ac_status=$?
12545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; }; then
12547 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
12548 test "x$?" != "x0" && pkg_failed=yes
12549 else
12550 pkg_failed=yes
12551 fi
12552 else
12553 pkg_failed=untried
12554 fi
12555 if test -n "$avahi_LIBS"; then
12556 pkg_cv_avahi_LIBS="$avahi_LIBS"
12557 elif test -n "$PKG_CONFIG"; then
12558 if test -n "$PKG_CONFIG" && \
12559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
12560 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
12561 ac_status=$?
12562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563 test $ac_status = 0; }; then
12564 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
12565 test "x$?" != "x0" && pkg_failed=yes
12566 else
12567 pkg_failed=yes
12568 fi
12569 else
12570 pkg_failed=untried
12571 fi
12572
12573
12574
12575 if test $pkg_failed = yes; then
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 printf "%s\n" "no" >&6; }
12578
12579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12580 _pkg_short_errors_supported=yes
12581 else
12582 _pkg_short_errors_supported=no
12583 fi
12584 if test $_pkg_short_errors_supported = yes; then
12585 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
12586 else
12587 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
12588 fi
12589 # Put the nasty error message in config.log where it belongs
12590 echo "$avahi_PKG_ERRORS" >&5
12591
12592 have_avahi=no
12593 elif test $pkg_failed = untried; then
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 printf "%s\n" "no" >&6; }
12596 have_avahi=no
12597 else
12598 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
12599 avahi_LIBS=$pkg_cv_avahi_LIBS
12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 printf "%s\n" "yes" >&6; }
12602 have_avahi=yes
12603
12604 printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h
12605
12606
12607 fi
12608
12609 else $as_nop
12610 have_avahi=no
12611 fi
12612
12613 if test "${have_avahi}" = "yes"; then
12614 HAVE_AVAHI_TRUE=
12615 HAVE_AVAHI_FALSE='#'
12616 else
12617 HAVE_AVAHI_TRUE='#'
12618 HAVE_AVAHI_FALSE=
12619 fi
12620
12621
12622 if test "${have_avahi}" != "yes"; then
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
12624 printf "%s\n" "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
12625 fi
12626
12627
12628
12629 # Check whether --with-rpm was given.
12630 if test ${with_rpm+y}
12631 then :
12632 withval=$with_rpm;
12633 else $as_nop
12634 with_rpm="auto"
12635 fi
12636
12637 if test "$with_rpm" != "no"; then
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
12639 printf %s "checking for rpmtsInitIterator in -lrpm... " >&6; }
12640 if test ${ac_cv_lib_rpm_rpmtsInitIterator+y}
12641 then :
12642 printf %s "(cached) " >&6
12643 else $as_nop
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lrpm $LIBS"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 char rpmtsInitIterator ();
12653 int
12654 main (void)
12655 {
12656 return rpmtsInitIterator ();
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"
12662 then :
12663 ac_cv_lib_rpm_rpmtsInitIterator=yes
12664 else $as_nop
12665 ac_cv_lib_rpm_rpmtsInitIterator=no
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12668 conftest$ac_exeext conftest.$ac_ext
12669 LIBS=$ac_check_lib_save_LIBS
12670 fi
12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
12672 printf "%s\n" "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
12673 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes
12674 then :
12675
12676
12677 printf "%s\n" "#define HAVE_LIBRPM 1" >>confdefs.h
12678
12679 stap_LIBS="$stap_LIBS -lc -lrpm"
12680 have_librpm="yes"
12681 else $as_nop
12682 have_librpm="no"
12683 fi
12684
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
12686 printf %s "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
12687 if test ${ac_cv_lib_rpmdb_rpmdbNextIterator+y}
12688 then :
12689 printf %s "(cached) " >&6
12690 else $as_nop
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lrpmdb $LIBS"
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699 char rpmdbNextIterator ();
12700 int
12701 main (void)
12702 {
12703 return rpmdbNextIterator ();
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"
12709 then :
12710 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
12711 else $as_nop
12712 ac_cv_lib_rpmdb_rpmdbNextIterator=no
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12715 conftest$ac_exeext conftest.$ac_ext
12716 LIBS=$ac_check_lib_save_LIBS
12717 fi
12718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
12719 printf "%s\n" "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
12720 if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes
12721 then :
12722
12723 stap_LIBS="$stap_LIBS -lrpmdb"
12724 fi
12725
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
12727 printf %s "checking for rpmFreeCrypto in -lrpmio... " >&6; }
12728 if test ${ac_cv_lib_rpmio_rpmFreeCrypto+y}
12729 then :
12730 printf %s "(cached) " >&6
12731 else $as_nop
12732 ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lrpmio $LIBS"
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12740 char rpmFreeCrypto ();
12741 int
12742 main (void)
12743 {
12744 return rpmFreeCrypto ();
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"
12750 then :
12751 ac_cv_lib_rpmio_rpmFreeCrypto=yes
12752 else $as_nop
12753 ac_cv_lib_rpmio_rpmFreeCrypto=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12756 conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12758 fi
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
12760 printf "%s\n" "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
12761 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes
12762 then :
12763
12764
12765 printf "%s\n" "#define HAVE_LIBRPMIO 1" >>confdefs.h
12766
12767 stap_LIBS="$stap_LIBS -lc -lrpmio"
12768 have_librpmio="yes"
12769 else $as_nop
12770 have_librpmio="no"
12771 fi
12772
12773 if test "x$have_librpm" != "xyes" -a "$with_rpm" = "yes"; then
12774 as_fn_error $? "cannot find librpm" "$LINENO" 5
12775 fi
12776 if test "x$have_librpmio" != "xyes" -a "$with_rpm" = "yes"; then
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
12778 printf "%s\n" "$as_me: WARNING: cannot find librpmio" >&2;}
12779 fi
12780 fi
12781
12782 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
12783 if test "x$ac_cv_header_stdatomic_h" = xyes
12784 then :
12785 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
12786
12787 fi
12788
12789
12790 for ac_header in rpm/rpmcrypto.h
12791 do :
12792 ac_fn_c_check_header_compile "$LINENO" "rpm/rpmcrypto.h" "ac_cv_header_rpm_rpmcrypto_h" "$ac_includes_default"
12793 if test "x$ac_cv_header_rpm_rpmcrypto_h" = xyes
12794 then :
12795 printf "%s\n" "#define HAVE_RPM_RPMCRYPTO_H 1" >>confdefs.h
12796
12797
12798 printf "%s\n" "#define HAVE_RPMCRYPTO_H 1" >>confdefs.h
12799
12800 have_rpmcrypto_h=yes
12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: separate rpm/rpmcrypto.h" >&5
12802 printf "%s\n" "$as_me: separate rpm/rpmcrypto.h" >&6;}
12803 fi
12804
12805 done
12806
12807 LIBS_no_readline=$LIBS
12808
12809 have_libreadline="no"
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
12811 printf %s "checking how to link readline libs... " >&6; }
12812 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
12813 if test -z "$libtermcap"; then
12814 READLINE_LIBS="-lreadline"
12815 else
12816 READLINE_LIBS="-lreadline -l$libtermcap"
12817 fi
12818 LIBS="$READLINE_LIBS $LIBS_no_readline"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12825 char readline ();
12826 int
12827 main (void)
12828 {
12829 return readline ();
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_link "$LINENO"
12835 then :
12836 have_libreadline="yes"
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12839 conftest$ac_exeext conftest.$ac_ext
12840 if test "$have_libreadline" = "yes"; then
12841 break
12842 fi
12843 done
12844 if test "$have_libreadline" = "no"; then
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12846 printf "%s\n" "none" >&6; }
12847 READLINE_LIBS=""
12848 else
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
12850 printf "%s\n" "$READLINE_LIBS" >&6; }
12851
12852 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
12853
12854 fi
12855
12856 if test "$have_libreadline" = "yes"; then
12857 HAVE_LIBREADLINE_TRUE=
12858 HAVE_LIBREADLINE_FALSE='#'
12859 else
12860 HAVE_LIBREADLINE_TRUE='#'
12861 HAVE_LIBREADLINE_FALSE=
12862 fi
12863
12864
12865 LIBS=$LIBS_no_readline
12866
12867
12868 # Check whether --with-python3 was given.
12869 if test ${with_python3+y}
12870 then :
12871 withval=$with_python3;
12872 else $as_nop
12873 with_python3="auto"
12874 fi
12875
12876 if test "x$with_python3" = "xyes"
12877 then :
12878 if test "x$PYTHON3" = "x:"
12879 then :
12880 as_fn_error $? "python version 3 is required" "$LINENO" 5
12881 else $as_nop
12882 preferred_python=$PYTHON3
12883
12884 fi
12885 elif test "x$with_python3" = "xno"
12886 then :
12887 if test "x$PYTHON" = "x:"
12888 then :
12889 as_fn_error $? "python version 2 is required" "$LINENO" 5
12890 else $as_nop
12891 preferred_python=$PYTHON
12892
12893 fi
12894 elif test "x$PYTHON3" != "x:"
12895 then :
12896 preferred_python=$PYTHON3
12897
12898 elif test "x$PYTHON" != "x:"
12899 then :
12900 preferred_python=$PYTHON
12901
12902 else $as_nop
12903 as_fn_error $? "neither python version 2 nor 3 found" "$LINENO" 5
12904 fi
12905
12906 if test $enable_translator = yes; then
12907 # Need libdwfl-capable recent elfutils http://elfutils.org/
12908 # On modern debian/ubuntu and modern elfutils, libebl has been
12909 # merged into libdw
12910 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
12911 save_LIBS="$LIBS"
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ebl_strtabinit in -lebl" >&5
12913 printf %s "checking for ebl_strtabinit in -lebl... " >&6; }
12914 if test ${ac_cv_lib_ebl_ebl_strtabinit+y}
12915 then :
12916 printf %s "(cached) " >&6
12917 else $as_nop
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lebl $LIBS"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 char ebl_strtabinit ();
12927 int
12928 main (void)
12929 {
12930 return ebl_strtabinit ();
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"
12936 then :
12937 ac_cv_lib_ebl_ebl_strtabinit=yes
12938 else $as_nop
12939 ac_cv_lib_ebl_ebl_strtabinit=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_strtabinit" >&5
12946 printf "%s\n" "$ac_cv_lib_ebl_ebl_strtabinit" >&6; }
12947 if test "x$ac_cv_lib_ebl_ebl_strtabinit" = xyes
12948 then :
12949 ebl_LIBS=-lebl
12950 else $as_nop
12951 ebl_LIBS=
12952 fi
12953
12954 LIBS="$save_LIBS"
12955
12956 save_LIBS="$LIBS"
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
12958 printf %s "checking for dwfl_module_getsym in -ldw... " >&6; }
12959 if test ${ac_cv_lib_dw_dwfl_module_getsym+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else $as_nop
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 char dwfl_module_getsym ();
12972 int
12973 main (void)
12974 {
12975 return dwfl_module_getsym ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"
12981 then :
12982 ac_cv_lib_dw_dwfl_module_getsym=yes
12983 else $as_nop
12984 ac_cv_lib_dw_dwfl_module_getsym=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12989 fi
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
12991 printf "%s\n" "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
12992 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes
12993 then :
12994 printf "%s\n" "#define HAVE_LIBDW 1" >>confdefs.h
12995
12996 LIBS="-ldw $LIBS"
12997
12998 else $as_nop
12999
13000 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
13001 fi
13002
13003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
13004 printf %s "checking for dwarf_next_unit in -ldw... " >&6; }
13005 if test ${ac_cv_lib_dw_dwarf_next_unit+y}
13006 then :
13007 printf %s "(cached) " >&6
13008 else $as_nop
13009 ac_check_lib_save_LIBS=$LIBS
13010 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017 char dwarf_next_unit ();
13018 int
13019 main (void)
13020 {
13021 return dwarf_next_unit ();
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"
13027 then :
13028 ac_cv_lib_dw_dwarf_next_unit=yes
13029 else $as_nop
13030 ac_cv_lib_dw_dwarf_next_unit=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13035 fi
13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
13037 printf "%s\n" "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
13038 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes
13039 then :
13040 printf "%s\n" "#define HAVE_LIBDW 1" >>confdefs.h
13041
13042 LIBS="-ldw $LIBS"
13043
13044 else $as_nop
13045
13046 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
13047 fi
13048
13049 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
13050 LIBS="$save_LIBS"
13051 fi
13052
13053
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
13055 printf "%s\n" "$as_me: stap will link $stap_LIBS" >&6;}
13056
13057 # staprun has more modest libelf needs
13058 save_LIBS="$LIBS"
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
13060 printf %s "checking for elf_getshdrstrndx in -lelf... " >&6; }
13061 if test ${ac_cv_lib_elf_elf_getshdrstrndx+y}
13062 then :
13063 printf %s "(cached) " >&6
13064 else $as_nop
13065 ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-lelf $LIBS"
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13069
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13073 char elf_getshdrstrndx ();
13074 int
13075 main (void)
13076 {
13077 return elf_getshdrstrndx ();
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"
13083 then :
13084 ac_cv_lib_elf_elf_getshdrstrndx=yes
13085 else $as_nop
13086 ac_cv_lib_elf_elf_getshdrstrndx=no
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13091 fi
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
13093 printf "%s\n" "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
13094 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes
13095 then :
13096 printf "%s\n" "#define HAVE_LIBELF 1" >>confdefs.h
13097
13098 LIBS="-lelf $LIBS"
13099
13100 else $as_nop
13101
13102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13103 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13104 as_fn_error $? "libelf too old, need 0.142+
13105 See \`config.log' for more details" "$LINENO" 5; }
13106 fi
13107
13108 staprun_LIBS="$staprun_LIBS -lelf"
13109 stapbpf_LIBS="$stapbpf_LIBS -lelf"
13110 LIBS="$save_LIBS"
13111
13112
13113
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
13115 printf "%s\n" "$as_me: staprun will link $staprun_LIBS" >&6;}
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
13117 printf "%s\n" "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
13118
13119 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
13120 # being compiled on 32-bit userspace but running against 64-bit kernels.
13121 # This is no longer necessary.
13122
13123 ac_ext=cpp
13124 ac_cpp='$CXXCPP $CPPFLAGS'
13125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13128
13129 # Use boost::string_ref if available
13130 ac_fn_cxx_check_header_compile "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
13131 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes
13132 then :
13133 printf "%s\n" "#define HAVE_BOOST_UTILITY_STRING_REF_HPP 1" >>confdefs.h
13134
13135 fi
13136
13137 # add boost_system bits for stapdyn with dyninst 10+
13138 saved_LIBS="$LIBS"
13139 LIBS="-lboost_system $LIBS"
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need for -lboost_system library" >&5
13141 printf %s "checking need for -lboost_system library... " >&6; }
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144
13145 #include <boost/system/system_error.hpp>
13146 int main() {
13147 boost::system::error_condition e();
13148 }
13149
13150 _ACEOF
13151 if ac_fn_cxx_try_link "$LINENO"
13152 then :
13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yup" >&5
13154 printf "%s\n" "yup" >&6; }
13155 BOOST_SYSTEM_LIB="-lboost_system"
13156
13157 else $as_nop
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nope" >&5
13159 printf "%s\n" "nope" >&6; }
13160 BOOST_SYSTEM_LIB=""
13161
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LIBS="$saved_LIBS"
13166
13167
13168 ac_ext=c
13169 ac_cpp='$CPP $CPPFLAGS'
13170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13173
13174
13175 # Check for Dyninst headers and libraries
13176
13177 # Check whether --with-dyninst was given.
13178 if test ${with_dyninst+y}
13179 then :
13180 withval=$with_dyninst;
13181 fi
13182
13183
13184 case "$with_dyninst" in
13185 no) ;;
13186 ''|yes) # Try a simple-minded distro search
13187 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
13188 old_LIBS="$LIBS"
13189 old_LDFLAGS="$LDFLAGS"
13190 old_CPPFLAGS="$CPPFLAGS"
13191 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
13192 ac_ext=cpp
13193 ac_cpp='$CXXCPP $CPPFLAGS'
13194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13197
13198 for location in /usr/lib64/dyninst /usr/lib/dyninst ${libdir}/dyninst; do
13199 LDFLAGS="-L${location}"
13200 LIBS="-lparseAPI ${BOOST_SYSTEM_LIB}"
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <dyninst/CodeSource.h>
13204 int
13205 main (void)
13206 {
13207 char *s; Dyninst::ParseAPI::SymtabCodeSource *sts = new Dyninst::ParseAPI::SymtabCodeSource(s);
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_cxx_try_link "$LINENO"
13213 then :
13214 found_DYNINST_LDFLAGS=yes
13215 else $as_nop
13216 found_DYNINST_LDFLAGS=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13219 conftest$ac_exeext conftest.$ac_ext
13220 if test "$found_DYNINST_LDFLAGS" = "yes"; then
13221 DYNINST_LDFLAGS="$LDFLAGS"
13222 break
13223 fi
13224 done
13225 ac_ext=c
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231 CPPFLAGS="$old_CPPFLAGS"
13232 LDFLAGS="$old_LDFLAGS"
13233 LIBS="$old_LIBS"
13234
13235 # Add Dyninst libraries only if they are available
13236 if test -d "/usr/include/dyninst"; then
13237 save_LIBS="$LIBS"
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TBB_runtime_interface_version in -ltbb" >&5
13239 printf %s "checking for TBB_runtime_interface_version in -ltbb... " >&6; }
13240 if test ${ac_cv_lib_tbb_TBB_runtime_interface_version+y}
13241 then :
13242 printf %s "(cached) " >&6
13243 else $as_nop
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-ltbb $LIBS"
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13252 char TBB_runtime_interface_version ();
13253 int
13254 main (void)
13255 {
13256 return TBB_runtime_interface_version ();
13257 ;
13258 return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"
13262 then :
13263 ac_cv_lib_tbb_TBB_runtime_interface_version=yes
13264 else $as_nop
13265 ac_cv_lib_tbb_TBB_runtime_interface_version=no
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13270 fi
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tbb_TBB_runtime_interface_version" >&5
13272 printf "%s\n" "$ac_cv_lib_tbb_TBB_runtime_interface_version" >&6; }
13273 if test "x$ac_cv_lib_tbb_TBB_runtime_interface_version" = xyes
13274 then :
13275 tbb_LIBS=-ltbb
13276 else $as_nop
13277 tbb_LIBS=
13278 fi
13279
13280 LIBS="$save_LIBS"
13281 DYNINST_LIBS="-lparseAPI -lsymtabAPI -linstructionAPI $tbb_LIBS -lcommon"
13282 fi
13283 ;;
13284 *) # Use paths in the user-specified prefix
13285 DYNINST_CXXFLAGS="-I$with_dyninst/include -I$with_dyninst/include/dyninst"
13286 DYNINST_LDFLAGS="-L$with_dyninst/lib64/dyninst -Wl,-rpath-link,$with_dyninst/lib64/dyninst"
13287 # Will assume Dyninst libraries are available as the path is specified
13288 save_LIBS="$LIBS"
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TBB_runtime_interface_version in -ltbb" >&5
13290 printf %s "checking for TBB_runtime_interface_version in -ltbb... " >&6; }
13291 if test ${ac_cv_lib_tbb_TBB_runtime_interface_version+y}
13292 then :
13293 printf %s "(cached) " >&6
13294 else $as_nop
13295 ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-ltbb $LIBS"
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13299
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13303 char TBB_runtime_interface_version ();
13304 int
13305 main (void)
13306 {
13307 return TBB_runtime_interface_version ();
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"
13313 then :
13314 ac_cv_lib_tbb_TBB_runtime_interface_version=yes
13315 else $as_nop
13316 ac_cv_lib_tbb_TBB_runtime_interface_version=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13319 conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13321 fi
13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tbb_TBB_runtime_interface_version" >&5
13323 printf "%s\n" "$ac_cv_lib_tbb_TBB_runtime_interface_version" >&6; }
13324 if test "x$ac_cv_lib_tbb_TBB_runtime_interface_version" = xyes
13325 then :
13326 tbb_LIBS=-ltbb
13327 else $as_nop
13328 tbb_LIBS=
13329 fi
13330
13331 LIBS="$save_LIBS"
13332 DYNINST_LIBS="-lparseAPI -lsymtabAPI -linstructionAPI $tbb_LIBS -lcommon"
13333 ;;
13334 esac
13335 if test "$with_dyninst" != "no"; then
13336 ac_ext=cpp
13337 ac_cpp='$CXXCPP $CPPFLAGS'
13338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13341
13342 old_CPPFLAGS="$CPPFLAGS"
13343 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
13345 printf "%s\n" "$as_me: checking dyninst support" >&6;}
13346 for ac_header in dyninst/BPatch_object.h
13347 do :
13348 ac_fn_cxx_check_header_compile "$LINENO" "dyninst/BPatch_object.h" "ac_cv_header_dyninst_BPatch_object_h" "$ac_includes_default"
13349 if test "x$ac_cv_header_dyninst_BPatch_object_h" = xyes
13350 then :
13351 printf "%s\n" "#define HAVE_DYNINST_BPATCH_OBJECT_H 1" >>confdefs.h
13352
13353
13354
13355
13356
13357 printf "%s\n" "#define HAVE_DYNINST 1" >>confdefs.h
13358
13359 have_dyninst=yes
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
13361 printf "%s\n" "$as_me: dyninst support available" >&6;}
13362 fi
13363
13364 done
13365 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
13366 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
13367 fi
13368 CPPFLAGS="$old_CPPFLAGS"
13369 ac_ext=c
13370 ac_cpp='$CPP $CPPFLAGS'
13371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13374
13375 fi
13376 if test "${have_dyninst}" = "yes"; then
13377 HAVE_DYNINST_TRUE=
13378 HAVE_DYNINST_FALSE='#'
13379 else
13380 HAVE_DYNINST_TRUE='#'
13381 HAVE_DYNINST_FALSE=
13382 fi
13383
13384
13385
13386
13387 # Check whether --enable-virt was given.
13388 if test ${enable_virt+y}
13389 then :
13390 enableval=$enable_virt; enable_virt=$enableval
13391 else $as_nop
13392 enable_virt="check"
13393 fi
13394
13395
13396 # Check whether --enable-libvirt was given.
13397 if test ${enable_libvirt+y}
13398 then :
13399 enableval=$enable_libvirt;
13400 fi
13401
13402
13403 if test "$enable_libvirt" != no; then
13404
13405 pkg_failed=no
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
13407 printf %s "checking for libvirt... " >&6; }
13408
13409 if test -n "$libvirt_CFLAGS"; then
13410 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
13411 elif test -n "$PKG_CONFIG"; then
13412 if test -n "$PKG_CONFIG" && \
13413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
13414 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
13415 ac_status=$?
13416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13417 test $ac_status = 0; }; then
13418 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
13419 test "x$?" != "x0" && pkg_failed=yes
13420 else
13421 pkg_failed=yes
13422 fi
13423 else
13424 pkg_failed=untried
13425 fi
13426 if test -n "$libvirt_LIBS"; then
13427 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
13428 elif test -n "$PKG_CONFIG"; then
13429 if test -n "$PKG_CONFIG" && \
13430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
13431 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
13432 ac_status=$?
13433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; }; then
13435 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
13436 test "x$?" != "x0" && pkg_failed=yes
13437 else
13438 pkg_failed=yes
13439 fi
13440 else
13441 pkg_failed=untried
13442 fi
13443
13444
13445
13446 if test $pkg_failed = yes; then
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 printf "%s\n" "no" >&6; }
13449
13450 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13451 _pkg_short_errors_supported=yes
13452 else
13453 _pkg_short_errors_supported=no
13454 fi
13455 if test $_pkg_short_errors_supported = yes; then
13456 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
13457 else
13458 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
13459 fi
13460 # Put the nasty error message in config.log where it belongs
13461 echo "$libvirt_PKG_ERRORS" >&5
13462
13463 have_libvirt=no
13464 elif test $pkg_failed = untried; then
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 printf "%s\n" "no" >&6; }
13467 have_libvirt=no
13468 else
13469 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
13470 libvirt_LIBS=$pkg_cv_libvirt_LIBS
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 printf "%s\n" "yes" >&6; }
13473
13474 have_libvirt=yes
13475
13476 printf "%s\n" "#define HAVE_LIBVIRT 1" >>confdefs.h
13477
13478
13479 fi
13480 fi
13481 if test "${have_libvirt}" = "yes"; then
13482 HAVE_LIBVIRT_TRUE=
13483 HAVE_LIBVIRT_FALSE='#'
13484 else
13485 HAVE_LIBVIRT_TRUE='#'
13486 HAVE_LIBVIRT_FALSE=
13487 fi
13488
13489
13490 pkg_failed=no
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
13492 printf %s "checking for libxml2... " >&6; }
13493
13494 if test -n "$libxml2_CFLAGS"; then
13495 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
13496 elif test -n "$PKG_CONFIG"; then
13497 if test -n "$PKG_CONFIG" && \
13498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13499 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13500 ac_status=$?
13501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
13504 test "x$?" != "x0" && pkg_failed=yes
13505 else
13506 pkg_failed=yes
13507 fi
13508 else
13509 pkg_failed=untried
13510 fi
13511 if test -n "$libxml2_LIBS"; then
13512 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
13513 elif test -n "$PKG_CONFIG"; then
13514 if test -n "$PKG_CONFIG" && \
13515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
13516 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
13517 ac_status=$?
13518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; }; then
13520 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
13521 test "x$?" != "x0" && pkg_failed=yes
13522 else
13523 pkg_failed=yes
13524 fi
13525 else
13526 pkg_failed=untried
13527 fi
13528
13529
13530
13531 if test $pkg_failed = yes; then
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 printf "%s\n" "no" >&6; }
13534
13535 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13536 _pkg_short_errors_supported=yes
13537 else
13538 _pkg_short_errors_supported=no
13539 fi
13540 if test $_pkg_short_errors_supported = yes; then
13541 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
13542 else
13543 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
13544 fi
13545 # Put the nasty error message in config.log where it belongs
13546 echo "$libxml2_PKG_ERRORS" >&5
13547
13548 have_libxml2=no
13549 elif test $pkg_failed = untried; then
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 printf "%s\n" "no" >&6; }
13552 have_libxml2=no
13553 else
13554 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
13555 libxml2_LIBS=$pkg_cv_libxml2_LIBS
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 printf "%s\n" "yes" >&6; }
13558
13559 have_libxml2=yes
13560
13561 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
13562
13563
13564 fi
13565 if test "${have_libxml2}" = "yes"; then
13566 HAVE_LIBXML2_TRUE=
13567 HAVE_LIBXML2_FALSE='#'
13568 else
13569 HAVE_LIBXML2_TRUE='#'
13570 HAVE_LIBXML2_FALSE=
13571 fi
13572
13573
13574 if test "$enable_virt" != "no"; then
13575 if test "x${have_libvirt}" != "xyes"; then
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
13577 printf "%s\n" "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
13578 fi
13579 if test "x${have_libxml2}" != "xyes"; then
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
13581 printf "%s\n" "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
13582 fi
13583 fi
13584 if test "${have_libvirt}" = "yes" -a "${have_libxml2}" = "yes" -a "$enable_virt" != "no"; then
13585 BUILD_VIRT_TRUE=
13586 BUILD_VIRT_FALSE='#'
13587 else
13588 BUILD_VIRT_TRUE='#'
13589 BUILD_VIRT_FALSE=
13590 fi
13591
13592
13593
13594 # Check whether --with-python2-probes was given.
13595 if test ${with_python2_probes+y}
13596 then :
13597 withval=$with_python2_probes;
13598 fi
13599
13600 have_python2_support=no
13601 if test "x$with_python2_probes" != "xno"
13602 then :
13603 if test "x$PYTHON" != "x:"
13604 then :
13605 for ac_prog in ${python_basename}-config python2-config python-config
13606 do
13607 # Extract the first word of "$ac_prog", so it can be a program name with args.
13608 set dummy $ac_prog; ac_word=$2
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 printf %s "checking for $ac_word... " >&6; }
13611 if test ${ac_cv_path_PYTHON_CONFIG+y}
13612 then :
13613 printf %s "(cached) " >&6
13614 else $as_nop
13615 case $PYTHON_CONFIG in
13616 [\\/]* | ?:[\\/]*)
13617 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
13618 ;;
13619 *)
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 for as_dir in $PATH
13622 do
13623 IFS=$as_save_IFS
13624 case $as_dir in #(((
13625 '') as_dir=./ ;;
13626 */) ;;
13627 *) as_dir=$as_dir/ ;;
13628 esac
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13631 ac_cv_path_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext"
13632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13633 break 2
13634 fi
13635 done
13636 done
13637 IFS=$as_save_IFS
13638
13639 ;;
13640 esac
13641 fi
13642 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
13643 if test -n "$PYTHON_CONFIG"; then
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
13645 printf "%s\n" "$PYTHON_CONFIG" >&6; }
13646 else
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 printf "%s\n" "no" >&6; }
13649 fi
13650
13651
13652 test -n "$PYTHON_CONFIG" && break
13653 done
13654
13655 fi
13656 if test "x$PYTHON_CONFIG" != "x"
13657 then :
13658 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
13659 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
13660
13661 save_CPPFLAGS="$CPPFLAGS"
13662 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
13663 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
13664 for ac_header in Python.h
13665 do :
13666 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
13667 if test "x$ac_cv_header_Python_h" = xyes
13668 then :
13669 printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h
13670 have_python2_support=yes
13671 fi
13672
13673 done
13674 CPPFLAGS="$save_CPPFLAGS"
13675 fi
13676 fi
13677 if test "x$have_python2_support" = "xyes"
13678 then :
13679
13680 printf "%s\n" "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
13681
13682 else $as_nop
13683 if test "x$with_python2_probes" = "xyes"
13684 then :
13685 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
13686 fi
13687
13688 fi
13689 if test "x$have_python2_support" = "xyes"; then
13690 HAVE_PYTHON2_PROBES_TRUE=
13691 HAVE_PYTHON2_PROBES_FALSE='#'
13692 else
13693 HAVE_PYTHON2_PROBES_TRUE='#'
13694 HAVE_PYTHON2_PROBES_FALSE=
13695 fi
13696
13697
13698
13699 # Check whether --with-python3-probes was given.
13700 if test ${with_python3_probes+y}
13701 then :
13702 withval=$with_python3_probes;
13703 fi
13704
13705 have_python3_support=no
13706 if test "x$with_python3_probes" != "xno"
13707 then :
13708 if test "x$PYTHON3" != "x:"
13709 then :
13710 # Extract the first word of "${python3_basename}-config", so it can be a program name with args.
13711 set dummy ${python3_basename}-config; ac_word=$2
13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 printf %s "checking for $ac_word... " >&6; }
13714 if test ${ac_cv_path_PYTHON3_CONFIG+y}
13715 then :
13716 printf %s "(cached) " >&6
13717 else $as_nop
13718 case $PYTHON3_CONFIG in
13719 [\\/]* | ?:[\\/]*)
13720 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
13721 ;;
13722 *)
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13725 do
13726 IFS=$as_save_IFS
13727 case $as_dir in #(((
13728 '') as_dir=./ ;;
13729 */) ;;
13730 *) as_dir=$as_dir/ ;;
13731 esac
13732 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13734 ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
13735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13736 break 2
13737 fi
13738 done
13739 done
13740 IFS=$as_save_IFS
13741
13742 ;;
13743 esac
13744 fi
13745 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
13746 if test -n "$PYTHON3_CONFIG"; then
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
13748 printf "%s\n" "$PYTHON3_CONFIG" >&6; }
13749 else
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 printf "%s\n" "no" >&6; }
13752 fi
13753
13754
13755 fi
13756 if test "x$PYTHON3_CONFIG" != "x"
13757 then :
13758 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
13759 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
13760
13761 save_CPPFLAGS="$CPPFLAGS"
13762 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
13763 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
13764 for ac_header in Python.h
13765 do :
13766 ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
13767 if test "x$ac_cv_header_Python_h" = xyes
13768 then :
13769 printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h
13770 have_python3_support=yes
13771 fi
13772
13773 done
13774 CPPFLAGS="$save_CPPFLAGS"
13775 fi
13776 fi
13777 if test "x$have_python3_support" = "xyes"
13778 then :
13779
13780 printf "%s\n" "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
13781
13782 else $as_nop
13783 if test "x$with_python3_probes" = "xyes"
13784 then :
13785 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
13786 fi
13787
13788 fi
13789 if test "x$have_python3_support" = "xyes"; then
13790 HAVE_PYTHON3_PROBES_TRUE=
13791 HAVE_PYTHON3_PROBES_FALSE='#'
13792 else
13793 HAVE_PYTHON3_PROBES_TRUE='#'
13794 HAVE_PYTHON3_PROBES_FALSE=
13795 fi
13796
13797
13798 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
13799 HAVE_PYTHON_PROBES_TRUE=
13800 HAVE_PYTHON_PROBES_FALSE='#'
13801 else
13802 HAVE_PYTHON_PROBES_TRUE='#'
13803 HAVE_PYTHON_PROBES_FALSE=
13804 fi
13805
13806
13807
13808 pkg_failed=no
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
13810 printf %s "checking for jsonc... " >&6; }
13811
13812 if test -n "$jsonc_CFLAGS"; then
13813 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
13814 elif test -n "$PKG_CONFIG"; then
13815 if test -n "$PKG_CONFIG" && \
13816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
13817 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
13818 ac_status=$?
13819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }; then
13821 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.13" 2>/dev/null`
13822 test "x$?" != "x0" && pkg_failed=yes
13823 else
13824 pkg_failed=yes
13825 fi
13826 else
13827 pkg_failed=untried
13828 fi
13829 if test -n "$jsonc_LIBS"; then
13830 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
13831 elif test -n "$PKG_CONFIG"; then
13832 if test -n "$PKG_CONFIG" && \
13833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.13\""; } >&5
13834 ($PKG_CONFIG --exists --print-errors "json-c >= 0.13") 2>&5
13835 ac_status=$?
13836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; }; then
13838 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.13" 2>/dev/null`
13839 test "x$?" != "x0" && pkg_failed=yes
13840 else
13841 pkg_failed=yes
13842 fi
13843 else
13844 pkg_failed=untried
13845 fi
13846
13847
13848
13849 if test $pkg_failed = yes; then
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 printf "%s\n" "no" >&6; }
13852
13853 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13854 _pkg_short_errors_supported=yes
13855 else
13856 _pkg_short_errors_supported=no
13857 fi
13858 if test $_pkg_short_errors_supported = yes; then
13859 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
13860 else
13861 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.13" 2>&1`
13862 fi
13863 # Put the nasty error message in config.log where it belongs
13864 echo "$jsonc_PKG_ERRORS" >&5
13865
13866 have_jsonc=no
13867 elif test $pkg_failed = untried; then
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 printf "%s\n" "no" >&6; }
13870 have_jsonc=no
13871 else
13872 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
13873 jsonc_LIBS=$pkg_cv_jsonc_LIBS
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13875 printf "%s\n" "yes" >&6; }
13876 have_jsonc=yes
13877 fi
13878
13879 pkg_failed=no
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
13881 printf %s "checking for ncurses... " >&6; }
13882
13883 if test -n "$ncurses_CFLAGS"; then
13884 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
13885 elif test -n "$PKG_CONFIG"; then
13886 if test -n "$PKG_CONFIG" && \
13887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
13888 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
13889 ac_status=$?
13890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891 test $ac_status = 0; }; then
13892 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
13893 test "x$?" != "x0" && pkg_failed=yes
13894 else
13895 pkg_failed=yes
13896 fi
13897 else
13898 pkg_failed=untried
13899 fi
13900 if test -n "$ncurses_LIBS"; then
13901 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
13902 elif test -n "$PKG_CONFIG"; then
13903 if test -n "$PKG_CONFIG" && \
13904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
13905 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
13906 ac_status=$?
13907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908 test $ac_status = 0; }; then
13909 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
13910 test "x$?" != "x0" && pkg_failed=yes
13911 else
13912 pkg_failed=yes
13913 fi
13914 else
13915 pkg_failed=untried
13916 fi
13917
13918
13919
13920 if test $pkg_failed = yes; then
13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 printf "%s\n" "no" >&6; }
13923
13924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13925 _pkg_short_errors_supported=yes
13926 else
13927 _pkg_short_errors_supported=no
13928 fi
13929 if test $_pkg_short_errors_supported = yes; then
13930 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
13931 else
13932 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
13933 fi
13934 # Put the nasty error message in config.log where it belongs
13935 echo "$ncurses_PKG_ERRORS" >&5
13936
13937 have_ncurses=no
13938 elif test $pkg_failed = untried; then
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 printf "%s\n" "no" >&6; }
13941 have_ncurses=no
13942 else
13943 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
13944 ncurses_LIBS=$pkg_cv_ncurses_LIBS
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13946 printf "%s\n" "yes" >&6; }
13947 have_ncurses=yes
13948 fi
13949
13950 # Check whether --enable-monitor was given.
13951 if test ${enable_monitor+y}
13952 then :
13953 enableval=$enable_monitor;
13954 fi
13955
13956 if test "$enable_monitor" != "no"; then
13957 if test "${have_jsonc}" = "yes" -a "${have_ncurses}" = yes; then
13958
13959 printf "%s\n" "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
13960
13961 fi
13962 fi
13963 if test "${have_jsonc}" = "yes" -a "${have_ncurses}" = "yes" -a "$enable_monitor" != "no"; then
13964 HAVE_MONITOR_LIBS_TRUE=
13965 HAVE_MONITOR_LIBS_FALSE='#'
13966 else
13967 HAVE_MONITOR_LIBS_TRUE='#'
13968 HAVE_MONITOR_LIBS_FALSE=
13969 fi
13970
13971 if test "${have_jsonc}" = "yes"; then
13972
13973 printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
13974
13975 fi
13976 if test "${have_jsonc}" = "yes"; then
13977 HAVE_JSON_C_TRUE=
13978 HAVE_JSON_C_FALSE='#'
13979 else
13980 HAVE_JSON_C_TRUE='#'
13981 HAVE_JSON_C_FALSE=
13982 fi
13983
13984
13985 # We require gcc >=8 since we use some more modern language features such as lambda-capture [this] and
13986 # initializer list constructors in class template argument deduction
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the language server is supported" >&5
13988 printf %s "checking to see if the language server is supported... " >&6; }
13989 if { echo '#if __GNUC__ >= 8 '
13990 echo ' yes '
13991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13992 have_language_server_support=yes
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 printf "%s\n" "yes" >&6; }
13995
13996 printf "%s\n" "#define HAVE_LANGUAGE_SERVER_SUPPORT 1" >>confdefs.h
13997
13998 else
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000 printf "%s\n" "no" >&6; }
14001 fi
14002 if test "x$have_language_server_support" = "xyes"; then
14003 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE=
14004 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE='#'
14005 else
14006 HAVE_LANGUAGE_SERVER_SUPPORT_TRUE='#'
14007 HAVE_LANGUAGE_SERVER_SUPPORT_FALSE=
14008 fi
14009
14010
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
14012 printf %s "checking for assembler .section \"?\" flags support... " >&6; }
14013 if test ${stap_cv_sectionq+y}
14014 then :
14015 printf %s "(cached) " >&6
14016 else $as_nop
14017
14018 old_CFLAGS="$CFLAGS"
14019 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 asm(".section .note.foo,\"?\",\"note\"\n"
14023 ".byte 1, 2, 3\n"
14024 ".previous\n"
14025 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
14026 ".byte 1\n"
14027 ".pushsection .note.foo,\"?\",\"note\"\n"
14028 ".byte 4, 5, 6\n"
14029 ".popsection\n"
14030 ".byte 2\n");
14031 _ACEOF
14032 if ac_fn_c_try_compile "$LINENO"
14033 then :
14034 stap_cv_sectionq=yes
14035 else $as_nop
14036 stap_cv_sectionq=no
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14039 CFLAGS="$old_CFLAGS"
14040 fi
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
14042 printf "%s\n" "$stap_cv_sectionq" >&6; }
14043
14044 support_section_question=0
14045 if test $stap_cv_sectionq = yes; then
14046 support_section_question=1
14047 fi
14048
14049
14050
14051 # Check whether --with-bpf was given.
14052 if test ${with_bpf+y}
14053 then :
14054 withval=$with_bpf;
14055 fi
14056
14057
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14059 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14060 if test ${ac_cv_c_undeclared_builtin_options+y}
14061 then :
14062 printf %s "(cached) " >&6
14063 else $as_nop
14064 ac_save_CFLAGS=$CFLAGS
14065 ac_cv_c_undeclared_builtin_options='cannot detect'
14066 for ac_arg in '' -fno-builtin; do
14067 CFLAGS="$ac_save_CFLAGS $ac_arg"
14068 # This test program should *not* compile successfully.
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071
14072 int
14073 main (void)
14074 {
14075 (void) strchr;
14076 ;
14077 return 0;
14078 }
14079 _ACEOF
14080 if ac_fn_c_try_compile "$LINENO"
14081 then :
14082
14083 else $as_nop
14084 # This test program should compile successfully.
14085 # No library function is consistently available on
14086 # freestanding implementations, so test against a dummy
14087 # declaration. Include always-available headers on the
14088 # off chance that they somehow elicit warnings.
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 #include <float.h>
14092 #include <limits.h>
14093 #include <stdarg.h>
14094 #include <stddef.h>
14095 extern void ac_decl (int, char *);
14096
14097 int
14098 main (void)
14099 {
14100 (void) ac_decl (0, (char *) 0);
14101 (void) ac_decl;
14102
14103 ;
14104 return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_compile "$LINENO"
14108 then :
14109 if test x"$ac_arg" = x
14110 then :
14111 ac_cv_c_undeclared_builtin_options='none needed'
14112 else $as_nop
14113 ac_cv_c_undeclared_builtin_options=$ac_arg
14114 fi
14115 break
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14120 done
14121 CFLAGS=$ac_save_CFLAGS
14122
14123 fi
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14125 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14126 case $ac_cv_c_undeclared_builtin_options in #(
14127 'cannot detect') :
14128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14129 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14130 as_fn_error $? "cannot make $CC report undeclared builtins
14131 See \`config.log' for more details" "$LINENO" 5; } ;; #(
14132 'none needed') :
14133 ac_c_undeclared_builtin_options='' ;; #(
14134 *) :
14135 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14136 esac
14137
14138 if test "x$with_bpf" != "xno"
14139 then :
14140
14141 ac_fn_check_decl "$LINENO" "BPF_PROG_TYPE_PERF_EVENT" "ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" "#include <linux/bpf.h>
14142 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14143 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = xyes
14144 then :
14145 ac_have_decl=1
14146 else $as_nop
14147 ac_have_decl=0
14148 fi
14149 printf "%s\n" "#define HAVE_DECL_BPF_PROG_TYPE_PERF_EVENT $ac_have_decl" >>confdefs.h
14150 if test $ac_have_decl = 1
14151 then :
14152
14153 printf "%s\n" "#define HAVE_BPF_DECLS 1" >>confdefs.h
14154
14155 fi
14156
14157
14158 fi
14159 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = "xyes"; then
14160 HAVE_BPF_DECLS_TRUE=
14161 HAVE_BPF_DECLS_FALSE='#'
14162 else
14163 HAVE_BPF_DECLS_TRUE='#'
14164 HAVE_BPF_DECLS_FALSE=
14165 fi
14166
14167 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
14168
14169
14170 ac_fn_check_decl "$LINENO" "BPF_PROG_TYPE_RAW_TRACEPOINT" "ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" "#include <linux/bpf.h>
14171 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14172 if test "x$ac_cv_have_decl_BPF_PROG_TYPE_RAW_TRACEPOINT" = xyes
14173 then :
14174 ac_have_decl=1
14175 else $as_nop
14176 ac_have_decl=0
14177 fi
14178 printf "%s\n" "#define HAVE_DECL_BPF_PROG_TYPE_RAW_TRACEPOINT $ac_have_decl" >>confdefs.h
14179 if test $ac_have_decl = 1
14180 then :
14181
14182 printf "%s\n" "#define HAVE_BPF_PROG_TYPE_RAW_TRACEPOINT 1" >>confdefs.h
14183
14184 fi
14185
14186
14187
14188 # Check whether --with-selinux was given.
14189 if test ${with_selinux+y}
14190 then :
14191 withval=$with_selinux;
14192 fi
14193
14194
14195 if test "x$with_selinux" != "xno"
14196 then :
14197
14198
14199 pkg_failed=no
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
14201 printf %s "checking for selinux... " >&6; }
14202
14203 if test -n "$selinux_CFLAGS"; then
14204 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
14205 elif test -n "$PKG_CONFIG"; then
14206 if test -n "$PKG_CONFIG" && \
14207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14208 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14209 ac_status=$?
14210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14211 test $ac_status = 0; }; then
14212 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
14213 test "x$?" != "x0" && pkg_failed=yes
14214 else
14215 pkg_failed=yes
14216 fi
14217 else
14218 pkg_failed=untried
14219 fi
14220 if test -n "$selinux_LIBS"; then
14221 pkg_cv_selinux_LIBS="$selinux_LIBS"
14222 elif test -n "$PKG_CONFIG"; then
14223 if test -n "$PKG_CONFIG" && \
14224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14225 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14226 ac_status=$?
14227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; }; then
14229 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
14230 test "x$?" != "x0" && pkg_failed=yes
14231 else
14232 pkg_failed=yes
14233 fi
14234 else
14235 pkg_failed=untried
14236 fi
14237
14238
14239
14240 if test $pkg_failed = yes; then
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 printf "%s\n" "no" >&6; }
14243
14244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14245 _pkg_short_errors_supported=yes
14246 else
14247 _pkg_short_errors_supported=no
14248 fi
14249 if test $_pkg_short_errors_supported = yes; then
14250 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
14251 else
14252 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
14253 fi
14254 # Put the nasty error message in config.log where it belongs
14255 echo "$selinux_PKG_ERRORS" >&5
14256
14257 have_selinux=no
14258 elif test $pkg_failed = untried; then
14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 printf "%s\n" "no" >&6; }
14261 have_selinux=no
14262 else
14263 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
14264 selinux_LIBS=$pkg_cv_selinux_LIBS
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14266 printf "%s\n" "yes" >&6; }
14267 have_selinux=yes
14268
14269 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
14270
14271
14272 fi
14273
14274 else $as_nop
14275 have_selinux=no
14276 fi
14277
14278 if test "${have_selinux}" = "yes"; then
14279 HAVE_SELINUX_TRUE=
14280 HAVE_SELINUX_FALSE='#'
14281 else
14282 HAVE_SELINUX_TRUE='#'
14283 HAVE_SELINUX_FALSE=
14284 fi
14285
14286
14287 ac_fn_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
14288 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14289 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes
14290 then :
14291
14292 printf "%s\n" "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
14293
14294 fi
14295
14296 # Extract the first word of "javac", so it can be a program name with args.
14297 set dummy javac; ac_word=$2
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299 printf %s "checking for $ac_word... " >&6; }
14300 if test ${ac_cv_prog_have_javac+y}
14301 then :
14302 printf %s "(cached) " >&6
14303 else $as_nop
14304 if test -n "$have_javac"; then
14305 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
14306 else
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14309 do
14310 IFS=$as_save_IFS
14311 case $as_dir in #(((
14312 '') as_dir=./ ;;
14313 */) ;;
14314 *) as_dir=$as_dir/ ;;
14315 esac
14316 for ac_exec_ext in '' $ac_executable_extensions; do
14317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14318 ac_cv_prog_have_javac="yes"
14319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14320 break 2
14321 fi
14322 done
14323 done
14324 IFS=$as_save_IFS
14325
14326 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
14327 fi
14328 fi
14329 have_javac=$ac_cv_prog_have_javac
14330 if test -n "$have_javac"; then
14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
14332 printf "%s\n" "$have_javac" >&6; }
14333 else
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 printf "%s\n" "no" >&6; }
14336 fi
14337
14338
14339 # Extract the first word of "jar", so it can be a program name with args.
14340 set dummy jar; ac_word=$2
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 printf %s "checking for $ac_word... " >&6; }
14343 if test ${ac_cv_prog_have_jar+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 if test -n "$have_jar"; then
14348 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 case $as_dir in #(((
14355 '') as_dir=./ ;;
14356 */) ;;
14357 *) as_dir=$as_dir/ ;;
14358 esac
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14361 ac_cv_prog_have_jar="yes"
14362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365 done
14366 done
14367 IFS=$as_save_IFS
14368
14369 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
14370 fi
14371 fi
14372 have_jar=$ac_cv_prog_have_jar
14373 if test -n "$have_jar"; then
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
14375 printf "%s\n" "$have_jar" >&6; }
14376 else
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 printf "%s\n" "no" >&6; }
14379 fi
14380
14381
14382 if test "$have_javac" != no -a "$have_jar" != no; then
14383 echo java found, will try to configure Byteman support
14384
14385
14386 # Check whether --with-java was given.
14387 if test ${with_java+y}
14388 then :
14389 withval=$with_java;
14390 else $as_nop
14391 with_java=/usr/lib/jvm/java
14392 fi
14393
14394 if test ! -d "$with_java"; then
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: directory $with_java not found, disabling java support" >&5
14396 printf "%s\n" "$as_me: directory $with_java not found, disabling java support" >&6;}
14397 with_java=no
14398 fi
14399 JAVADIR="${with_java}"
14400 # always needed to compile
14401
14402 if test "$with_java" != "no"; then
14403
14404 printf "%s\n" "#define HAVE_JAVA \"1\"" >>confdefs.h
14405
14406 fi
14407
14408 if test "$with_java" != "no"; then
14409 HAVE_JAVA_TRUE=
14410 HAVE_JAVA_FALSE='#'
14411 else
14412 HAVE_JAVA_TRUE='#'
14413 HAVE_JAVA_FALSE=
14414 fi
14415
14416
14417 else
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
14419 printf "%s\n" "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
14420 if false; then
14421 HAVE_JAVA_TRUE=
14422 HAVE_JAVA_FALSE='#'
14423 else
14424 HAVE_JAVA_TRUE='#'
14425 HAVE_JAVA_FALSE=
14426 fi
14427
14428 fi # java+byteman support
14429
14430 ENABLE_NLS="$USE_NLS"
14431
14432 localedir="$localedir"
14433
14434 LOCALEDIR="$localedir"
14435
14436
14437
14438 # Check whether --with-extra-version was given.
14439 if test ${with_extra_version+y}
14440 then :
14441 withval=$with_extra_version;
14442 fi
14443
14444 if test "x$with_extra_version" != "xno"
14445 then :
14446
14447 stap_extra_version="$with_extra_version"
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
14449 printf "%s\n" "$as_me: Adding extra version $stap_extra_version" >&6;}
14450 else $as_nop
14451
14452 stap_extra_version=""
14453 fi
14454
14455 printf "%s\n" "#define STAP_EXTRA_VERSION \"$stap_extra_version\"" >>confdefs.h
14456
14457 STAP_EXTRA_VERSION="$stap_extra_version"
14458
14459
14460 # Check whether --enable-http was given.
14461 if test ${enable_http+y}
14462 then :
14463 enableval=$enable_http;
14464 fi
14465
14466 have_http_support=no
14467 if test "x$enable_http" = "xyes"
14468 then :
14469
14470 pkg_failed=no
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
14472 printf %s "checking for libmicrohttpd... " >&6; }
14473
14474 if test -n "$libmicrohttpd_CFLAGS"; then
14475 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
14476 elif test -n "$PKG_CONFIG"; then
14477 if test -n "$PKG_CONFIG" && \
14478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
14479 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
14480 ac_status=$?
14481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482 test $ac_status = 0; }; then
14483 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
14484 test "x$?" != "x0" && pkg_failed=yes
14485 else
14486 pkg_failed=yes
14487 fi
14488 else
14489 pkg_failed=untried
14490 fi
14491 if test -n "$libmicrohttpd_LIBS"; then
14492 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
14493 elif test -n "$PKG_CONFIG"; then
14494 if test -n "$PKG_CONFIG" && \
14495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
14496 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
14497 ac_status=$?
14498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; }; then
14500 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
14501 test "x$?" != "x0" && pkg_failed=yes
14502 else
14503 pkg_failed=yes
14504 fi
14505 else
14506 pkg_failed=untried
14507 fi
14508
14509
14510
14511 if test $pkg_failed = yes; then
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 printf "%s\n" "no" >&6; }
14514
14515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14516 _pkg_short_errors_supported=yes
14517 else
14518 _pkg_short_errors_supported=no
14519 fi
14520 if test $_pkg_short_errors_supported = yes; then
14521 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
14522 else
14523 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
14524 fi
14525 # Put the nasty error message in config.log where it belongs
14526 echo "$libmicrohttpd_PKG_ERRORS" >&5
14527
14528 have_libmicrohttpd=false
14529 elif test $pkg_failed = untried; then
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 printf "%s\n" "no" >&6; }
14532 have_libmicrohttpd=false
14533 else
14534 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
14535 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14537 printf "%s\n" "yes" >&6; }
14538 have_libmicrohttpd=true
14539 fi
14540
14541
14542 pkg_failed=no
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
14544 printf %s "checking for uuid... " >&6; }
14545
14546 if test -n "$uuid_CFLAGS"; then
14547 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
14548 elif test -n "$PKG_CONFIG"; then
14549 if test -n "$PKG_CONFIG" && \
14550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
14551 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
14552 ac_status=$?
14553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; }; then
14555 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
14556 test "x$?" != "x0" && pkg_failed=yes
14557 else
14558 pkg_failed=yes
14559 fi
14560 else
14561 pkg_failed=untried
14562 fi
14563 if test -n "$uuid_LIBS"; then
14564 pkg_cv_uuid_LIBS="$uuid_LIBS"
14565 elif test -n "$PKG_CONFIG"; then
14566 if test -n "$PKG_CONFIG" && \
14567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
14568 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
14569 ac_status=$?
14570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14571 test $ac_status = 0; }; then
14572 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
14573 test "x$?" != "x0" && pkg_failed=yes
14574 else
14575 pkg_failed=yes
14576 fi
14577 else
14578 pkg_failed=untried
14579 fi
14580
14581
14582
14583 if test $pkg_failed = yes; then
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 printf "%s\n" "no" >&6; }
14586
14587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14588 _pkg_short_errors_supported=yes
14589 else
14590 _pkg_short_errors_supported=no
14591 fi
14592 if test $_pkg_short_errors_supported = yes; then
14593 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
14594 else
14595 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
14596 fi
14597 # Put the nasty error message in config.log where it belongs
14598 echo "$uuid_PKG_ERRORS" >&5
14599
14600 have_libuuid=false
14601 elif test $pkg_failed = untried; then
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 printf "%s\n" "no" >&6; }
14604 have_libuuid=false
14605 else
14606 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
14607 uuid_LIBS=$pkg_cv_uuid_LIBS
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14609 printf "%s\n" "yes" >&6; }
14610 have_libuuid=true
14611 fi
14612
14613
14614 pkg_failed=no
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
14616 printf %s "checking for libcurl... " >&6; }
14617
14618 if test -n "$libcurl_CFLAGS"; then
14619 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
14620 elif test -n "$PKG_CONFIG"; then
14621 if test -n "$PKG_CONFIG" && \
14622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
14623 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
14624 ac_status=$?
14625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14626 test $ac_status = 0; }; then
14627 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
14628 test "x$?" != "x0" && pkg_failed=yes
14629 else
14630 pkg_failed=yes
14631 fi
14632 else
14633 pkg_failed=untried
14634 fi
14635 if test -n "$libcurl_LIBS"; then
14636 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
14637 elif test -n "$PKG_CONFIG"; then
14638 if test -n "$PKG_CONFIG" && \
14639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
14640 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
14641 ac_status=$?
14642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }; then
14644 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
14645 test "x$?" != "x0" && pkg_failed=yes
14646 else
14647 pkg_failed=yes
14648 fi
14649 else
14650 pkg_failed=untried
14651 fi
14652
14653
14654
14655 if test $pkg_failed = yes; then
14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 printf "%s\n" "no" >&6; }
14658
14659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14660 _pkg_short_errors_supported=yes
14661 else
14662 _pkg_short_errors_supported=no
14663 fi
14664 if test $_pkg_short_errors_supported = yes; then
14665 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
14666 else
14667 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
14668 fi
14669 # Put the nasty error message in config.log where it belongs
14670 echo "$libcurl_PKG_ERRORS" >&5
14671
14672 have_libcurl=false
14673 elif test $pkg_failed = untried; then
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 printf "%s\n" "no" >&6; }
14676 have_libcurl=false
14677 else
14678 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
14679 libcurl_LIBS=$pkg_cv_libcurl_LIBS
14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681 printf "%s\n" "yes" >&6; }
14682 have_libcurl=true
14683 fi
14684
14685 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"
14686 then :
14687 have_http_support=yes
14688 fi
14689 fi
14690
14691 if test "x$have_http_support" = "xyes"
14692 then :
14693
14694 printf "%s\n" "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
14695
14696 else $as_nop
14697 if test "x$enable_http" = "xyes"
14698 then :
14699 as_fn_error $? "http service support requested but not found" "$LINENO" 5
14700 fi
14701
14702 fi
14703 if test "x$have_http_support" = "xyes"; then
14704 HAVE_HTTP_SUPPORT_TRUE=
14705 HAVE_HTTP_SUPPORT_FALSE='#'
14706 else
14707 HAVE_HTTP_SUPPORT_TRUE='#'
14708 HAVE_HTTP_SUPPORT_FALSE=
14709 fi
14710
14711
14712 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
14713 NEED_BASE_CLIENT_CODE_TRUE=
14714 NEED_BASE_CLIENT_CODE_FALSE='#'
14715 else
14716 NEED_BASE_CLIENT_CODE_TRUE='#'
14717 NEED_BASE_CLIENT_CODE_FALSE=
14718 fi
14719
14720 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"
14721 then :
14722
14723
14724 printf "%s\n" "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
14725
14726
14727 fi
14728
14729
14730 stap_prefix=$prefix
14731 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
14732
14733 printf "%s\n" "#define STAP_PREFIX \"$stap_prefix\"" >>confdefs.h
14734
14735 STAP_PREFIX="$stap_prefix"
14736
14737
14738 stap_libexecdir=$libexecdir
14739 test "$stap_libexecdir" = '${exec_prefix}/libexec' && stap_libexecdir=$stap_prefix/libexec
14740 pkglibexecdir="$stap_libexecdir/$PACKAGE"
14741
14742
14743 ac_config_headers="$ac_config_headers config.h:config.in"
14744
14745
14746
14747 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"
14748
14749
14750
14751 subdirs="$subdirs testsuite"
14752
14753 if test $enable_translator = "yes"; then
14754 ac_config_files="$ac_config_files run-stap"
14755
14756 fi
14757 ac_config_files="$ac_config_files dtrace"
14758
14759 ac_config_files="$ac_config_files stapdyn/Makefile"
14760
14761 ac_config_files="$ac_config_files java/Makefile"
14762
14763 ac_config_files="$ac_config_files java/stapbm"
14764
14765 ac_config_files="$ac_config_files java/org/systemtap/byteman/helper/HelperSDT.java"
14766
14767 ac_config_files="$ac_config_files python/Makefile"
14768
14769 ac_config_files="$ac_config_files interactive-notebook/Makefile"
14770
14771 ac_config_files="$ac_config_files interactive-notebook/stap-jupyter-container"
14772
14773 ac_config_files="$ac_config_files interactive-notebook/stap-jupyter-install"
14774
14775 ac_config_files="$ac_config_files staprun/Makefile"
14776
14777 ac_config_files="$ac_config_files stapbpf/Makefile"
14778
14779 ac_config_files="$ac_config_files httpd/Makefile httpd/docker/Makefile"
14780
14781 ac_config_files="$ac_config_files staprun/run-staprun"
14782
14783 ac_config_files="$ac_config_files staprun/guest/stapshd"
14784
14785 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
14786
14787 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
14788
14789 ac_config_files="$ac_config_files stap-exporter/Makefile"
14790
14791 ac_config_files="$ac_config_files stap-profile-annotate"
14792
14793
14794
14795 # Setup "shadow" directory doc/beginners that has the basic directories setup for
14796 # xmlto in one directory (through directory links if necessary).
14797 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
14798 # the src is a directory and not a file.
14799 ac_config_commands="$ac_config_commands doc/beginners"
14800
14801
14802 cat >confcache <<\_ACEOF
14803 # This file is a shell script that caches the results of configure
14804 # tests run on this system so they can be shared between configure
14805 # scripts and configure runs, see configure's option --config-cache.
14806 # It is not useful on other systems. If it contains results you don't
14807 # want to keep, you may remove or edit it.
14808 #
14809 # config.status only pays attention to the cache file if you give it
14810 # the --recheck option to rerun configure.
14811 #
14812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14814 # following values.
14815
14816 _ACEOF
14817
14818 # The following way of writing the cache mishandles newlines in values,
14819 # but we know of no workaround that is simple, portable, and efficient.
14820 # So, we kill variables containing newlines.
14821 # Ultrix sh set writes to stderr and can't be redirected directly,
14822 # and sets the high bit in the cache file unless we assign to the vars.
14823 (
14824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14825 eval ac_val=\$$ac_var
14826 case $ac_val in #(
14827 *${as_nl}*)
14828 case $ac_var in #(
14829 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14830 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14831 esac
14832 case $ac_var in #(
14833 _ | IFS | as_nl) ;; #(
14834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14835 *) { eval $ac_var=; unset $ac_var;} ;;
14836 esac ;;
14837 esac
14838 done
14839
14840 (set) 2>&1 |
14841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14842 *${as_nl}ac_space=\ *)
14843 # `set' does not quote correctly, so add quotes: double-quote
14844 # substitution turns \\\\ into \\, and sed turns \\ into \.
14845 sed -n \
14846 "s/'/'\\\\''/g;
14847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14848 ;; #(
14849 *)
14850 # `set' quotes correctly as required by POSIX, so do not add quotes.
14851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14852 ;;
14853 esac |
14854 sort
14855 ) |
14856 sed '
14857 /^ac_cv_env_/b end
14858 t clear
14859 :clear
14860 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14861 t end
14862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14863 :end' >>confcache
14864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14865 if test -w "$cache_file"; then
14866 if test "x$cache_file" != "x/dev/null"; then
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14868 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14869 if test ! -f "$cache_file" || test -h "$cache_file"; then
14870 cat confcache >"$cache_file"
14871 else
14872 case $cache_file in #(
14873 */* | ?:*)
14874 mv -f confcache "$cache_file"$$ &&
14875 mv -f "$cache_file"$$ "$cache_file" ;; #(
14876 *)
14877 mv -f confcache "$cache_file" ;;
14878 esac
14879 fi
14880 fi
14881 else
14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14883 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14884 fi
14885 fi
14886 rm -f confcache
14887
14888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14889 # Let make expand exec_prefix.
14890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14891
14892 DEFS=-DHAVE_CONFIG_H
14893
14894 ac_libobjs=
14895 ac_ltlibobjs=
14896 U=
14897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14898 # 1. Remove the extension, and $U if already installed.
14899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14900 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14902 # will be set to the directory where LIBOBJS objects are built.
14903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14905 done
14906 LIBOBJS=$ac_libobjs
14907
14908 LTLIBOBJS=$ac_ltlibobjs
14909
14910
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14912 printf %s "checking that generated files are newer than configure... " >&6; }
14913 if test -n "$am_sleep_pid"; then
14914 # Hide warnings about reused PIDs.
14915 wait $am_sleep_pid 2>/dev/null
14916 fi
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14918 printf "%s\n" "done" >&6; }
14919 if test -n "$EXEEXT"; then
14920 am__EXEEXT_TRUE=
14921 am__EXEEXT_FALSE='#'
14922 else
14923 am__EXEEXT_TRUE='#'
14924 am__EXEEXT_FALSE=
14925 fi
14926
14927 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14928 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14930 fi
14931 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14932 as_fn_error $? "conditional \"AMDEP\" was never defined.
14933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934 fi
14935 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14936 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14938 fi
14939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14940 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14942 fi
14943 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14944 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14946 fi
14947 if test -z "${Werror_TRUE}" && test -z "${Werror_FALSE}"; then
14948 as_fn_error $? "conditional \"Werror\" was never defined.
14949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14950 fi
14951 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
14952 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
14953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14954 fi
14955 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
14956 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
14957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14958 fi
14959 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
14960 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14962 fi
14963 if test -z "${INSTALL_PREBUILT_DOCS_TRUE}" && test -z "${INSTALL_PREBUILT_DOCS_FALSE}"; then
14964 as_fn_error $? "conditional \"INSTALL_PREBUILT_DOCS\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 fi
14967 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
14968 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 fi
14971 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
14972 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974 fi
14975 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
14976 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14978 fi
14979 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
14980 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 fi
14983 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
14984 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 fi
14987 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
14988 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 fi
14991 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
14992 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 fi
14995 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
14996 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
14997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 fi
14999 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
15000 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
15001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 fi
15003 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
15004 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
15005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 fi
15007 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
15008 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
15009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 fi
15011 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
15012 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
15013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014 fi
15015 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
15016 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
15017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 fi
15019 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
15020 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
15021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 fi
15023 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
15024 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
15025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 fi
15027 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
15028 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 fi
15031 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
15032 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 fi
15035 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
15036 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
15037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 fi
15039 if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then
15040 as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined.
15041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042 fi
15043 if test -z "${HAVE_LANGUAGE_SERVER_SUPPORT_TRUE}" && test -z "${HAVE_LANGUAGE_SERVER_SUPPORT_FALSE}"; then
15044 as_fn_error $? "conditional \"HAVE_LANGUAGE_SERVER_SUPPORT\" was never defined.
15045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15046 fi
15047 if test -z "${HAVE_BPF_DECLS_TRUE}" && test -z "${HAVE_BPF_DECLS_FALSE}"; then
15048 as_fn_error $? "conditional \"HAVE_BPF_DECLS\" was never defined.
15049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050 fi
15051 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
15052 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
15053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054 fi
15055 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
15056 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
15057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058 fi
15059 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
15060 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
15061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062 fi
15063 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
15064 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 fi
15067 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
15068 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 fi
15071
15072 : "${CONFIG_STATUS=./config.status}"
15073 ac_write_fail=0
15074 ac_clean_files_save=$ac_clean_files
15075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15077 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15078 as_write_fail=0
15079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15080 #! $SHELL
15081 # Generated by $as_me.
15082 # Run this file to recreate the current configuration.
15083 # Compiler output produced by configure, useful for debugging
15084 # configure, is in config.log if it exists.
15085
15086 debug=false
15087 ac_cs_recheck=false
15088 ac_cs_silent=false
15089
15090 SHELL=\${CONFIG_SHELL-$SHELL}
15091 export SHELL
15092 _ASEOF
15093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15094 ## -------------------- ##
15095 ## M4sh Initialization. ##
15096 ## -------------------- ##
15097
15098 # Be more Bourne compatible
15099 DUALCASE=1; export DUALCASE # for MKS sh
15100 as_nop=:
15101 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15102 then :
15103 emulate sh
15104 NULLCMD=:
15105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15106 # is contrary to our usage. Disable this feature.
15107 alias -g '${1+"$@"}'='"$@"'
15108 setopt NO_GLOB_SUBST
15109 else $as_nop
15110 case `(set -o) 2>/dev/null` in #(
15111 *posix*) :
15112 set -o posix ;; #(
15113 *) :
15114 ;;
15115 esac
15116 fi
15117
15118
15119
15120 # Reset variables that may have inherited troublesome values from
15121 # the environment.
15122
15123 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15124 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15125 # side effect of setting IFS to empty, thus disabling word splitting.)
15126 # Quoting is to prevent editors from complaining about space-tab.
15127 as_nl='
15128 '
15129 export as_nl
15130 IFS=" "" $as_nl"
15131
15132 PS1='$ '
15133 PS2='> '
15134 PS4='+ '
15135
15136 # Ensure predictable behavior from utilities with locale-dependent output.
15137 LC_ALL=C
15138 export LC_ALL
15139 LANGUAGE=C
15140 export LANGUAGE
15141
15142 # We cannot yet rely on "unset" to work, but we need these variables
15143 # to be unset--not just set to an empty or harmless value--now, to
15144 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15145 # also avoids known problems related to "unset" and subshell syntax
15146 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15147 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15148 do eval test \${$as_var+y} \
15149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15150 done
15151
15152 # Ensure that fds 0, 1, and 2 are open.
15153 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15154 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15155 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15156
15157 # The user is always right.
15158 if ${PATH_SEPARATOR+false} :; then
15159 PATH_SEPARATOR=:
15160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15162 PATH_SEPARATOR=';'
15163 }
15164 fi
15165
15166
15167 # Find who we are. Look in the path if we contain no directory separator.
15168 as_myself=
15169 case $0 in #((
15170 *[\\/]* ) as_myself=$0 ;;
15171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15173 do
15174 IFS=$as_save_IFS
15175 case $as_dir in #(((
15176 '') as_dir=./ ;;
15177 */) ;;
15178 *) as_dir=$as_dir/ ;;
15179 esac
15180 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15181 done
15182 IFS=$as_save_IFS
15183
15184 ;;
15185 esac
15186 # We did not find ourselves, most probably we were run as `sh COMMAND'
15187 # in which case we are not to be found in the path.
15188 if test "x$as_myself" = x; then
15189 as_myself=$0
15190 fi
15191 if test ! -f "$as_myself"; then
15192 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15193 exit 1
15194 fi
15195
15196
15197
15198 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15199 # ----------------------------------------
15200 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15201 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15202 # script with STATUS, using 1 if that was 0.
15203 as_fn_error ()
15204 {
15205 as_status=$1; test $as_status -eq 0 && as_status=1
15206 if test "$4"; then
15207 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15209 fi
15210 printf "%s\n" "$as_me: error: $2" >&2
15211 as_fn_exit $as_status
15212 } # as_fn_error
15213
15214
15215
15216 # as_fn_set_status STATUS
15217 # -----------------------
15218 # Set $? to STATUS, without forking.
15219 as_fn_set_status ()
15220 {
15221 return $1
15222 } # as_fn_set_status
15223
15224 # as_fn_exit STATUS
15225 # -----------------
15226 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15227 as_fn_exit ()
15228 {
15229 set +e
15230 as_fn_set_status $1
15231 exit $1
15232 } # as_fn_exit
15233
15234 # as_fn_unset VAR
15235 # ---------------
15236 # Portably unset VAR.
15237 as_fn_unset ()
15238 {
15239 { eval $1=; unset $1;}
15240 }
15241 as_unset=as_fn_unset
15242
15243 # as_fn_append VAR VALUE
15244 # ----------------------
15245 # Append the text in VALUE to the end of the definition contained in VAR. Take
15246 # advantage of any shell optimizations that allow amortized linear growth over
15247 # repeated appends, instead of the typical quadratic growth present in naive
15248 # implementations.
15249 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15250 then :
15251 eval 'as_fn_append ()
15252 {
15253 eval $1+=\$2
15254 }'
15255 else $as_nop
15256 as_fn_append ()
15257 {
15258 eval $1=\$$1\$2
15259 }
15260 fi # as_fn_append
15261
15262 # as_fn_arith ARG...
15263 # ------------------
15264 # Perform arithmetic evaluation on the ARGs, and store the result in the
15265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15266 # must be portable across $(()) and expr.
15267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15268 then :
15269 eval 'as_fn_arith ()
15270 {
15271 as_val=$(( $* ))
15272 }'
15273 else $as_nop
15274 as_fn_arith ()
15275 {
15276 as_val=`expr "$@" || test $? -eq 1`
15277 }
15278 fi # as_fn_arith
15279
15280
15281 if expr a : '\(a\)' >/dev/null 2>&1 &&
15282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15283 as_expr=expr
15284 else
15285 as_expr=false
15286 fi
15287
15288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15289 as_basename=basename
15290 else
15291 as_basename=false
15292 fi
15293
15294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15295 as_dirname=dirname
15296 else
15297 as_dirname=false
15298 fi
15299
15300 as_me=`$as_basename -- "$0" ||
15301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15302 X"$0" : 'X\(//\)$' \| \
15303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15304 printf "%s\n" X/"$0" |
15305 sed '/^.*\/\([^/][^/]*\)\/*$/{
15306 s//\1/
15307 q
15308 }
15309 /^X\/\(\/\/\)$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\/\(\/\).*/{
15314 s//\1/
15315 q
15316 }
15317 s/.*/./; q'`
15318
15319 # Avoid depending upon Character Ranges.
15320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15323 as_cr_digits='0123456789'
15324 as_cr_alnum=$as_cr_Letters$as_cr_digits
15325
15326
15327 # Determine whether it's possible to make 'echo' print without a newline.
15328 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15329 # for compatibility with existing Makefiles.
15330 ECHO_C= ECHO_N= ECHO_T=
15331 case `echo -n x` in #(((((
15332 -n*)
15333 case `echo 'xy\c'` in
15334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15335 xy) ECHO_C='\c';;
15336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15337 ECHO_T=' ';;
15338 esac;;
15339 *)
15340 ECHO_N='-n';;
15341 esac
15342
15343 # For backward compatibility with old third-party macros, we provide
15344 # the shell variables $as_echo and $as_echo_n. New code should use
15345 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15346 as_echo='printf %s\n'
15347 as_echo_n='printf %s'
15348
15349 rm -f conf$$ conf$$.exe conf$$.file
15350 if test -d conf$$.dir; then
15351 rm -f conf$$.dir/conf$$.file
15352 else
15353 rm -f conf$$.dir
15354 mkdir conf$$.dir 2>/dev/null
15355 fi
15356 if (echo >conf$$.file) 2>/dev/null; then
15357 if ln -s conf$$.file conf$$ 2>/dev/null; then
15358 as_ln_s='ln -s'
15359 # ... but there are two gotchas:
15360 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15361 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15362 # In both cases, we have to default to `cp -pR'.
15363 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15364 as_ln_s='cp -pR'
15365 elif ln conf$$.file conf$$ 2>/dev/null; then
15366 as_ln_s=ln
15367 else
15368 as_ln_s='cp -pR'
15369 fi
15370 else
15371 as_ln_s='cp -pR'
15372 fi
15373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15374 rmdir conf$$.dir 2>/dev/null
15375
15376
15377 # as_fn_mkdir_p
15378 # -------------
15379 # Create "$as_dir" as a directory, including parents if necessary.
15380 as_fn_mkdir_p ()
15381 {
15382
15383 case $as_dir in #(
15384 -*) as_dir=./$as_dir;;
15385 esac
15386 test -d "$as_dir" || eval $as_mkdir_p || {
15387 as_dirs=
15388 while :; do
15389 case $as_dir in #(
15390 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15391 *) as_qdir=$as_dir;;
15392 esac
15393 as_dirs="'$as_qdir' $as_dirs"
15394 as_dir=`$as_dirname -- "$as_dir" ||
15395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15396 X"$as_dir" : 'X\(//\)[^/]' \| \
15397 X"$as_dir" : 'X\(//\)$' \| \
15398 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15399 printf "%s\n" X"$as_dir" |
15400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15401 s//\1/
15402 q
15403 }
15404 /^X\(\/\/\)[^/].*/{
15405 s//\1/
15406 q
15407 }
15408 /^X\(\/\/\)$/{
15409 s//\1/
15410 q
15411 }
15412 /^X\(\/\).*/{
15413 s//\1/
15414 q
15415 }
15416 s/.*/./; q'`
15417 test -d "$as_dir" && break
15418 done
15419 test -z "$as_dirs" || eval "mkdir $as_dirs"
15420 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15421
15422
15423 } # as_fn_mkdir_p
15424 if mkdir -p . 2>/dev/null; then
15425 as_mkdir_p='mkdir -p "$as_dir"'
15426 else
15427 test -d ./-p && rmdir ./-p
15428 as_mkdir_p=false
15429 fi
15430
15431
15432 # as_fn_executable_p FILE
15433 # -----------------------
15434 # Test if FILE is an executable regular file.
15435 as_fn_executable_p ()
15436 {
15437 test -f "$1" && test -x "$1"
15438 } # as_fn_executable_p
15439 as_test_x='test -x'
15440 as_executable_p=as_fn_executable_p
15441
15442 # Sed expression to map a string onto a valid CPP name.
15443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15444
15445 # Sed expression to map a string onto a valid variable name.
15446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15447
15448
15449 exec 6>&1
15450 ## ----------------------------------- ##
15451 ## Main body of $CONFIG_STATUS script. ##
15452 ## ----------------------------------- ##
15453 _ASEOF
15454 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15455
15456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15457 # Save the log message, to keep $0 and so on meaningful, and to
15458 # report actual input values of CONFIG_FILES etc. instead of their
15459 # values after options handling.
15460 ac_log="
15461 This file was extended by systemtap $as_me 5.1, which was
15462 generated by GNU Autoconf 2.71. Invocation command line was
15463
15464 CONFIG_FILES = $CONFIG_FILES
15465 CONFIG_HEADERS = $CONFIG_HEADERS
15466 CONFIG_LINKS = $CONFIG_LINKS
15467 CONFIG_COMMANDS = $CONFIG_COMMANDS
15468 $ $0 $@
15469
15470 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15471 "
15472
15473 _ACEOF
15474
15475 case $ac_config_files in *"
15476 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15477 esac
15478
15479 case $ac_config_headers in *"
15480 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15481 esac
15482
15483
15484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15485 # Files that config.status was made for.
15486 config_files="$ac_config_files"
15487 config_headers="$ac_config_headers"
15488 config_commands="$ac_config_commands"
15489
15490 _ACEOF
15491
15492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15493 ac_cs_usage="\
15494 \`$as_me' instantiates files and other configuration actions
15495 from templates according to the current configuration. Unless the files
15496 and actions are specified as TAGs, all are instantiated by default.
15497
15498 Usage: $0 [OPTION]... [TAG]...
15499
15500 -h, --help print this help, then exit
15501 -V, --version print version number and configuration settings, then exit
15502 --config print configuration, then exit
15503 -q, --quiet, --silent
15504 do not print progress messages
15505 -d, --debug don't remove temporary files
15506 --recheck update $as_me by reconfiguring in the same conditions
15507 --file=FILE[:TEMPLATE]
15508 instantiate the configuration file FILE
15509 --header=FILE[:TEMPLATE]
15510 instantiate the configuration header FILE
15511
15512 Configuration files:
15513 $config_files
15514
15515 Configuration headers:
15516 $config_headers
15517
15518 Configuration commands:
15519 $config_commands
15520
15521 Report bugs to <systemtap@sourceware.org>."
15522
15523 _ACEOF
15524 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15525 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 ac_cs_config='$ac_cs_config_escaped'
15528 ac_cs_version="\\
15529 systemtap config.status 5.1
15530 configured by $0, generated by GNU Autoconf 2.71,
15531 with options \\"\$ac_cs_config\\"
15532
15533 Copyright (C) 2021 Free Software Foundation, Inc.
15534 This config.status script is free software; the Free Software Foundation
15535 gives unlimited permission to copy, distribute and modify it."
15536
15537 ac_pwd='$ac_pwd'
15538 srcdir='$srcdir'
15539 INSTALL='$INSTALL'
15540 MKDIR_P='$MKDIR_P'
15541 AWK='$AWK'
15542 test -n "\$AWK" || AWK=awk
15543 _ACEOF
15544
15545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546 # The default lists apply if the user does not specify any file.
15547 ac_need_defaults=:
15548 while test $# != 0
15549 do
15550 case $1 in
15551 --*=?*)
15552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15554 ac_shift=:
15555 ;;
15556 --*=)
15557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15558 ac_optarg=
15559 ac_shift=:
15560 ;;
15561 *)
15562 ac_option=$1
15563 ac_optarg=$2
15564 ac_shift=shift
15565 ;;
15566 esac
15567
15568 case $ac_option in
15569 # Handling of the options.
15570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15571 ac_cs_recheck=: ;;
15572 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15573 printf "%s\n" "$ac_cs_version"; exit ;;
15574 --config | --confi | --conf | --con | --co | --c )
15575 printf "%s\n" "$ac_cs_config"; exit ;;
15576 --debug | --debu | --deb | --de | --d | -d )
15577 debug=: ;;
15578 --file | --fil | --fi | --f )
15579 $ac_shift
15580 case $ac_optarg in
15581 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15582 '') as_fn_error $? "missing file argument" ;;
15583 esac
15584 as_fn_append CONFIG_FILES " '$ac_optarg'"
15585 ac_need_defaults=false;;
15586 --header | --heade | --head | --hea )
15587 $ac_shift
15588 case $ac_optarg in
15589 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15590 esac
15591 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15592 ac_need_defaults=false;;
15593 --he | --h)
15594 # Conflict between --help and --header
15595 as_fn_error $? "ambiguous option: \`$1'
15596 Try \`$0 --help' for more information.";;
15597 --help | --hel | -h )
15598 printf "%s\n" "$ac_cs_usage"; exit ;;
15599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15601 ac_cs_silent=: ;;
15602
15603 # This is an error.
15604 -*) as_fn_error $? "unrecognized option: \`$1'
15605 Try \`$0 --help' for more information." ;;
15606
15607 *) as_fn_append ac_config_targets " $1"
15608 ac_need_defaults=false ;;
15609
15610 esac
15611 shift
15612 done
15613
15614 ac_configure_extra_args=
15615
15616 if $ac_cs_silent; then
15617 exec 6>/dev/null
15618 ac_configure_extra_args="$ac_configure_extra_args --silent"
15619 fi
15620
15621 _ACEOF
15622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15623 if \$ac_cs_recheck; then
15624 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15625 shift
15626 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15627 CONFIG_SHELL='$SHELL'
15628 export CONFIG_SHELL
15629 exec "\$@"
15630 fi
15631
15632 _ACEOF
15633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634 exec 5>>config.log
15635 {
15636 echo
15637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15638 ## Running $as_me. ##
15639 _ASBOX
15640 printf "%s\n" "$ac_log"
15641 } >&5
15642
15643 _ACEOF
15644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 #
15646 # INIT-COMMANDS
15647 #
15648 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15649 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15650 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15651 # from automake < 1.5.
15652 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15653 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15654 LINGUAS="${LINGUAS-%UNSET%}"
15655
15656
15657 _ACEOF
15658
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660
15661 # Handling of arguments.
15662 for ac_config_target in $ac_config_targets
15663 do
15664 case $ac_config_target in
15665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15666 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15667 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
15668 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15669 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15671 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15672 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15673 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
15674 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
15675 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
15676 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
15677 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
15678 "man/systemtap-service.8") CONFIG_FILES="$CONFIG_FILES man/systemtap-service.8" ;;
15679 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
15680 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
15681 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
15682 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
15683 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
15684 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
15685 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
15686 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
15687 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
15688 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
15689 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
15690 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
15691 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
15692 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
15693 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
15694 "java/org/systemtap/byteman/helper/HelperSDT.java") CONFIG_FILES="$CONFIG_FILES java/org/systemtap/byteman/helper/HelperSDT.java" ;;
15695 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15696 "interactive-notebook/Makefile") CONFIG_FILES="$CONFIG_FILES interactive-notebook/Makefile" ;;
15697 "interactive-notebook/stap-jupyter-container") CONFIG_FILES="$CONFIG_FILES interactive-notebook/stap-jupyter-container" ;;
15698 "interactive-notebook/stap-jupyter-install") CONFIG_FILES="$CONFIG_FILES interactive-notebook/stap-jupyter-install" ;;
15699 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
15700 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
15701 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
15702 "httpd/docker/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/docker/Makefile" ;;
15703 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
15704 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
15705 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
15706 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
15707 "stap-exporter/Makefile") CONFIG_FILES="$CONFIG_FILES stap-exporter/Makefile" ;;
15708 "stap-profile-annotate") CONFIG_FILES="$CONFIG_FILES stap-profile-annotate" ;;
15709 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
15710
15711 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15712 esac
15713 done
15714
15715
15716 # If the user did not use the arguments to specify the items to instantiate,
15717 # then the envvar interface is used. Set only those that are not.
15718 # We use the long form for the default assignment because of an extremely
15719 # bizarre bug on SunOS 4.1.3.
15720 if $ac_need_defaults; then
15721 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15722 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15723 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15724 fi
15725
15726 # Have a temporary directory for convenience. Make it in the build tree
15727 # simply because there is no reason against having it here, and in addition,
15728 # creating and moving files from /tmp can sometimes cause problems.
15729 # Hook for its removal unless debugging.
15730 # Note that there is a small window in which the directory will not be cleaned:
15731 # after its creation but before its name has been assigned to `$tmp'.
15732 $debug ||
15733 {
15734 tmp= ac_tmp=
15735 trap 'exit_status=$?
15736 : "${ac_tmp:=$tmp}"
15737 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15738 ' 0
15739 trap 'as_fn_exit 1' 1 2 13 15
15740 }
15741 # Create a (secure) tmp directory for tmp files.
15742
15743 {
15744 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15745 test -d "$tmp"
15746 } ||
15747 {
15748 tmp=./conf$$-$RANDOM
15749 (umask 077 && mkdir "$tmp")
15750 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15751 ac_tmp=$tmp
15752
15753 # Set up the scripts for CONFIG_FILES section.
15754 # No need to generate them if there are no CONFIG_FILES.
15755 # This happens for instance with `./config.status config.h'.
15756 if test -n "$CONFIG_FILES"; then
15757
15758
15759 ac_cr=`echo X | tr X '\015'`
15760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15761 # But we know of no other shell where ac_cr would be empty at this
15762 # point, so we can use a bashism as a fallback.
15763 if test "x$ac_cr" = x; then
15764 eval ac_cr=\$\'\\r\'
15765 fi
15766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15768 ac_cs_awk_cr='\\r'
15769 else
15770 ac_cs_awk_cr=$ac_cr
15771 fi
15772
15773 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15774 _ACEOF
15775
15776
15777 {
15778 echo "cat >conf$$subs.awk <<_ACEOF" &&
15779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15780 echo "_ACEOF"
15781 } >conf$$subs.sh ||
15782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15783 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15784 ac_delim='%!_!# '
15785 for ac_last_try in false false false false false :; do
15786 . ./conf$$subs.sh ||
15787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15788
15789 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15790 if test $ac_delim_n = $ac_delim_num; then
15791 break
15792 elif $ac_last_try; then
15793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15794 else
15795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15796 fi
15797 done
15798 rm -f conf$$subs.sh
15799
15800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15801 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15802 _ACEOF
15803 sed -n '
15804 h
15805 s/^/S["/; s/!.*/"]=/
15806 p
15807 g
15808 s/^[^!]*!//
15809 :repl
15810 t repl
15811 s/'"$ac_delim"'$//
15812 t delim
15813 :nl
15814 h
15815 s/\(.\{148\}\)..*/\1/
15816 t more1
15817 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15818 p
15819 n
15820 b repl
15821 :more1
15822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15823 p
15824 g
15825 s/.\{148\}//
15826 t nl
15827 :delim
15828 h
15829 s/\(.\{148\}\)..*/\1/
15830 t more2
15831 s/["\\]/\\&/g; s/^/"/; s/$/"/
15832 p
15833 b
15834 :more2
15835 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15836 p
15837 g
15838 s/.\{148\}//
15839 t delim
15840 ' <conf$$subs.awk | sed '
15841 /^[^""]/{
15842 N
15843 s/\n//
15844 }
15845 ' >>$CONFIG_STATUS || ac_write_fail=1
15846 rm -f conf$$subs.awk
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 _ACAWK
15849 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15850 for (key in S) S_is_set[key] = 1
15851 FS = "\a"
15852
15853 }
15854 {
15855 line = $ 0
15856 nfields = split(line, field, "@")
15857 substed = 0
15858 len = length(field[1])
15859 for (i = 2; i < nfields; i++) {
15860 key = field[i]
15861 keylen = length(key)
15862 if (S_is_set[key]) {
15863 value = S[key]
15864 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15865 len += length(value) + length(field[++i])
15866 substed = 1
15867 } else
15868 len += 1 + keylen
15869 }
15870
15871 print line
15872 }
15873
15874 _ACAWK
15875 _ACEOF
15876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15879 else
15880 cat
15881 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15882 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15883 _ACEOF
15884
15885 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15886 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15887 # trailing colons and then remove the whole line if VPATH becomes empty
15888 # (actually we leave an empty line to preserve line numbers).
15889 if test "x$srcdir" = x.; then
15890 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15891 h
15892 s///
15893 s/^/:/
15894 s/[ ]*$/:/
15895 s/:\$(srcdir):/:/g
15896 s/:\${srcdir}:/:/g
15897 s/:@srcdir@:/:/g
15898 s/^:*//
15899 s/:*$//
15900 x
15901 s/\(=[ ]*\).*/\1/
15902 G
15903 s/\n//
15904 s/^[^=]*=[ ]*$//
15905 }'
15906 fi
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 fi # test -n "$CONFIG_FILES"
15910
15911 # Set up the scripts for CONFIG_HEADERS section.
15912 # No need to generate them if there are no CONFIG_HEADERS.
15913 # This happens for instance with `./config.status Makefile'.
15914 if test -n "$CONFIG_HEADERS"; then
15915 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15916 BEGIN {
15917 _ACEOF
15918
15919 # Transform confdefs.h into an awk script `defines.awk', embedded as
15920 # here-document in config.status, that substitutes the proper values into
15921 # config.h.in to produce config.h.
15922
15923 # Create a delimiter string that does not exist in confdefs.h, to ease
15924 # handling of long lines.
15925 ac_delim='%!_!# '
15926 for ac_last_try in false false :; do
15927 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15928 if test -z "$ac_tt"; then
15929 break
15930 elif $ac_last_try; then
15931 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15932 else
15933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15934 fi
15935 done
15936
15937 # For the awk script, D is an array of macro values keyed by name,
15938 # likewise P contains macro parameters if any. Preserve backslash
15939 # newline sequences.
15940
15941 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15942 sed -n '
15943 s/.\{148\}/&'"$ac_delim"'/g
15944 t rset
15945 :rset
15946 s/^[ ]*#[ ]*define[ ][ ]*/ /
15947 t def
15948 d
15949 :def
15950 s/\\$//
15951 t bsnl
15952 s/["\\]/\\&/g
15953 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15954 D["\1"]=" \3"/p
15955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15956 d
15957 :bsnl
15958 s/["\\]/\\&/g
15959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15960 D["\1"]=" \3\\\\\\n"\\/p
15961 t cont
15962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15963 t cont
15964 d
15965 :cont
15966 n
15967 s/.\{148\}/&'"$ac_delim"'/g
15968 t clear
15969 :clear
15970 s/\\$//
15971 t bsnlc
15972 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15973 d
15974 :bsnlc
15975 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15976 b cont
15977 ' <confdefs.h | sed '
15978 s/'"$ac_delim"'/"\\\
15979 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15980
15981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15982 for (key in D) D_is_set[key] = 1
15983 FS = "\a"
15984 }
15985 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15986 line = \$ 0
15987 split(line, arg, " ")
15988 if (arg[1] == "#") {
15989 defundef = arg[2]
15990 mac1 = arg[3]
15991 } else {
15992 defundef = substr(arg[1], 2)
15993 mac1 = arg[2]
15994 }
15995 split(mac1, mac2, "(") #)
15996 macro = mac2[1]
15997 prefix = substr(line, 1, index(line, defundef) - 1)
15998 if (D_is_set[macro]) {
15999 # Preserve the white space surrounding the "#".
16000 print prefix "define", macro P[macro] D[macro]
16001 next
16002 } else {
16003 # Replace #undef with comments. This is necessary, for example,
16004 # in the case of _POSIX_SOURCE, which is predefined and required
16005 # on some systems where configure will not decide to define it.
16006 if (defundef == "undef") {
16007 print "/*", prefix defundef, macro, "*/"
16008 next
16009 }
16010 }
16011 }
16012 { print }
16013 _ACAWK
16014 _ACEOF
16015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16017 fi # test -n "$CONFIG_HEADERS"
16018
16019
16020 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16021 shift
16022 for ac_tag
16023 do
16024 case $ac_tag in
16025 :[FHLC]) ac_mode=$ac_tag; continue;;
16026 esac
16027 case $ac_mode$ac_tag in
16028 :[FHL]*:*);;
16029 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16030 :[FH]-) ac_tag=-:-;;
16031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16032 esac
16033 ac_save_IFS=$IFS
16034 IFS=:
16035 set x $ac_tag
16036 IFS=$ac_save_IFS
16037 shift
16038 ac_file=$1
16039 shift
16040
16041 case $ac_mode in
16042 :L) ac_source=$1;;
16043 :[FH])
16044 ac_file_inputs=
16045 for ac_f
16046 do
16047 case $ac_f in
16048 -) ac_f="$ac_tmp/stdin";;
16049 *) # Look for the file first in the build tree, then in the source tree
16050 # (if the path is not absolute). The absolute path cannot be DOS-style,
16051 # because $ac_f cannot contain `:'.
16052 test -f "$ac_f" ||
16053 case $ac_f in
16054 [\\/$]*) false;;
16055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16056 esac ||
16057 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16058 esac
16059 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16060 as_fn_append ac_file_inputs " '$ac_f'"
16061 done
16062
16063 # Let's still pretend it is `configure' which instantiates (i.e., don't
16064 # use $as_me), people would be surprised to read:
16065 # /* config.h. Generated by config.status. */
16066 configure_input='Generated from '`
16067 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16068 `' by configure.'
16069 if test x"$ac_file" != x-; then
16070 configure_input="$ac_file. $configure_input"
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16072 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16073 fi
16074 # Neutralize special characters interpreted by sed in replacement strings.
16075 case $configure_input in #(
16076 *\&* | *\|* | *\\* )
16077 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16079 *) ac_sed_conf_input=$configure_input;;
16080 esac
16081
16082 case $ac_tag in
16083 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16085 esac
16086 ;;
16087 esac
16088
16089 ac_dir=`$as_dirname -- "$ac_file" ||
16090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16091 X"$ac_file" : 'X\(//\)[^/]' \| \
16092 X"$ac_file" : 'X\(//\)$' \| \
16093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16094 printf "%s\n" X"$ac_file" |
16095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16096 s//\1/
16097 q
16098 }
16099 /^X\(\/\/\)[^/].*/{
16100 s//\1/
16101 q
16102 }
16103 /^X\(\/\/\)$/{
16104 s//\1/
16105 q
16106 }
16107 /^X\(\/\).*/{
16108 s//\1/
16109 q
16110 }
16111 s/.*/./; q'`
16112 as_dir="$ac_dir"; as_fn_mkdir_p
16113 ac_builddir=.
16114
16115 case "$ac_dir" in
16116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16117 *)
16118 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16119 # A ".." for each directory in $ac_dir_suffix.
16120 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16121 case $ac_top_builddir_sub in
16122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16124 esac ;;
16125 esac
16126 ac_abs_top_builddir=$ac_pwd
16127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16128 # for backward compatibility:
16129 ac_top_builddir=$ac_top_build_prefix
16130
16131 case $srcdir in
16132 .) # We are building in place.
16133 ac_srcdir=.
16134 ac_top_srcdir=$ac_top_builddir_sub
16135 ac_abs_top_srcdir=$ac_pwd ;;
16136 [\\/]* | ?:[\\/]* ) # Absolute name.
16137 ac_srcdir=$srcdir$ac_dir_suffix;
16138 ac_top_srcdir=$srcdir
16139 ac_abs_top_srcdir=$srcdir ;;
16140 *) # Relative name.
16141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16142 ac_top_srcdir=$ac_top_build_prefix$srcdir
16143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16144 esac
16145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16146
16147
16148 case $ac_mode in
16149 :F)
16150 #
16151 # CONFIG_FILE
16152 #
16153
16154 case $INSTALL in
16155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16157 esac
16158 ac_MKDIR_P=$MKDIR_P
16159 case $MKDIR_P in
16160 [\\/$]* | ?:[\\/]* ) ;;
16161 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16162 esac
16163 _ACEOF
16164
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 # If the template does not know about datarootdir, expand it.
16167 # FIXME: This hack should be removed a few years after 2.60.
16168 ac_datarootdir_hack=; ac_datarootdir_seen=
16169 ac_sed_dataroot='
16170 /datarootdir/ {
16171 p
16172 q
16173 }
16174 /@datadir@/p
16175 /@docdir@/p
16176 /@infodir@/p
16177 /@localedir@/p
16178 /@mandir@/p'
16179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16180 *datarootdir*) ac_datarootdir_seen=yes;;
16181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16183 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16184 _ACEOF
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 ac_datarootdir_hack='
16187 s&@datadir@&$datadir&g
16188 s&@docdir@&$docdir&g
16189 s&@infodir@&$infodir&g
16190 s&@localedir@&$localedir&g
16191 s&@mandir@&$mandir&g
16192 s&\\\${datarootdir}&$datarootdir&g' ;;
16193 esac
16194 _ACEOF
16195
16196 # Neutralize VPATH when `$srcdir' = `.'.
16197 # Shell code in configure.ac might set extrasub.
16198 # FIXME: do we really want to maintain this feature?
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 ac_sed_extra="$ac_vpsub
16201 $extrasub
16202 _ACEOF
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 :t
16205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16206 s|@configure_input@|$ac_sed_conf_input|;t t
16207 s&@top_builddir@&$ac_top_builddir_sub&;t t
16208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16209 s&@srcdir@&$ac_srcdir&;t t
16210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16211 s&@top_srcdir@&$ac_top_srcdir&;t t
16212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16213 s&@builddir@&$ac_builddir&;t t
16214 s&@abs_builddir@&$ac_abs_builddir&;t t
16215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16216 s&@INSTALL@&$ac_INSTALL&;t t
16217 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16218 $ac_datarootdir_hack
16219 "
16220 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16221 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16222
16223 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16224 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16225 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16226 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16228 which seems to be undefined. Please make sure it is defined" >&5
16229 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16230 which seems to be undefined. Please make sure it is defined" >&2;}
16231
16232 rm -f "$ac_tmp/stdin"
16233 case $ac_file in
16234 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16235 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16236 esac \
16237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16238 ;;
16239 :H)
16240 #
16241 # CONFIG_HEADER
16242 #
16243 if test x"$ac_file" != x-; then
16244 {
16245 printf "%s\n" "/* $configure_input */" >&1 \
16246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16247 } >"$ac_tmp/config.h" \
16248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16249 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16251 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16252 else
16253 rm -f "$ac_file"
16254 mv "$ac_tmp/config.h" "$ac_file" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16256 fi
16257 else
16258 printf "%s\n" "/* $configure_input */" >&1 \
16259 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16260 || as_fn_error $? "could not create -" "$LINENO" 5
16261 fi
16262 # Compute "$ac_file"'s index in $config_headers.
16263 _am_arg="$ac_file"
16264 _am_stamp_count=1
16265 for _am_header in $config_headers :; do
16266 case $_am_header in
16267 $_am_arg | $_am_arg:* )
16268 break ;;
16269 * )
16270 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16271 esac
16272 done
16273 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16274 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16275 X"$_am_arg" : 'X\(//\)[^/]' \| \
16276 X"$_am_arg" : 'X\(//\)$' \| \
16277 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16278 printf "%s\n" X"$_am_arg" |
16279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)[^/].*/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\/\)$/{
16288 s//\1/
16289 q
16290 }
16291 /^X\(\/\).*/{
16292 s//\1/
16293 q
16294 }
16295 s/.*/./; q'`/stamp-h$_am_stamp_count
16296 ;;
16297
16298 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16299 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16300 ;;
16301 esac
16302
16303
16304 case $ac_file$ac_mode in
16305 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16306 # Older Autoconf quotes --file arguments for eval, but not when files
16307 # are listed without --file. Let's play safe and only enable the eval
16308 # if we detect the quoting.
16309 # TODO: see whether this extra hack can be removed once we start
16310 # requiring Autoconf 2.70 or later.
16311 case $CONFIG_FILES in #(
16312 *\'*) :
16313 eval set x "$CONFIG_FILES" ;; #(
16314 *) :
16315 set x $CONFIG_FILES ;; #(
16316 *) :
16317 ;;
16318 esac
16319 shift
16320 # Used to flag and report bootstrapping failures.
16321 am_rc=0
16322 for am_mf
16323 do
16324 # Strip MF so we end up with the name of the file.
16325 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16326 # Check whether this is an Automake generated Makefile which includes
16327 # dependency-tracking related rules and includes.
16328 # Grep'ing the whole file directly is not great: AIX grep has a line
16329 # limit of 2048, but all sed's we know have understand at least 4000.
16330 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16331 || continue
16332 am_dirpart=`$as_dirname -- "$am_mf" ||
16333 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16334 X"$am_mf" : 'X\(//\)[^/]' \| \
16335 X"$am_mf" : 'X\(//\)$' \| \
16336 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16337 printf "%s\n" X"$am_mf" |
16338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16339 s//\1/
16340 q
16341 }
16342 /^X\(\/\/\)[^/].*/{
16343 s//\1/
16344 q
16345 }
16346 /^X\(\/\/\)$/{
16347 s//\1/
16348 q
16349 }
16350 /^X\(\/\).*/{
16351 s//\1/
16352 q
16353 }
16354 s/.*/./; q'`
16355 am_filepart=`$as_basename -- "$am_mf" ||
16356 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16357 X"$am_mf" : 'X\(//\)$' \| \
16358 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16359 printf "%s\n" X/"$am_mf" |
16360 sed '/^.*\/\([^/][^/]*\)\/*$/{
16361 s//\1/
16362 q
16363 }
16364 /^X\/\(\/\/\)$/{
16365 s//\1/
16366 q
16367 }
16368 /^X\/\(\/\).*/{
16369 s//\1/
16370 q
16371 }
16372 s/.*/./; q'`
16373 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16374 && sed -e '/# am--include-marker/d' "$am_filepart" \
16375 | $MAKE -f - am--depfiles" >&5
16376 (cd "$am_dirpart" \
16377 && sed -e '/# am--include-marker/d' "$am_filepart" \
16378 | $MAKE -f - am--depfiles) >&5 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } || am_rc=$?
16382 done
16383 if test $am_rc -ne 0; then
16384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16386 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16387 for automatic dependency tracking. If GNU make was not used, consider
16388 re-running the configure script with MAKE=\"gmake\" (or whatever is
16389 necessary). You can also try re-running configure with the
16390 '--disable-dependency-tracking' option to at least be able to build
16391 the package (albeit without support for automatic dependency tracking).
16392 See \`config.log' for more details" "$LINENO" 5; }
16393 fi
16394 { am_dirpart=; unset am_dirpart;}
16395 { am_filepart=; unset am_filepart;}
16396 { am_mf=; unset am_mf;}
16397 { am_rc=; unset am_rc;}
16398 rm -f conftest-deps.mk
16399 }
16400 ;;
16401 "po-directories":C)
16402 for ac_file in $CONFIG_FILES; do
16403 # Support "outfile[:infile[:infile...]]"
16404 case "$ac_file" in
16405 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16406 esac
16407 # PO directories have a Makefile.in generated from Makefile.in.in.
16408 case "$ac_file" in */Makefile.in)
16409 # Adjust a relative srcdir.
16410 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16411 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16412 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16413 # In autoconf-2.13 it is called $ac_given_srcdir.
16414 # In autoconf-2.50 it is called $srcdir.
16415 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16416 case "$ac_given_srcdir" in
16417 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16418 /*) top_srcdir="$ac_given_srcdir" ;;
16419 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16420 esac
16421 # Treat a directory as a PO directory if and only if it has a
16422 # POTFILES.in file. This allows packages to have multiple PO
16423 # directories under different names or in different locations.
16424 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16425 rm -f "$ac_dir/POTFILES"
16426 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16427 gt_tab=`printf '\t'`
16428 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"
16429 POMAKEFILEDEPS="POTFILES.in"
16430 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16431 # on $ac_dir but don't depend on user-specified configuration
16432 # parameters.
16433 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16434 # The LINGUAS file contains the set of available languages.
16435 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16436 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16437 fi
16438 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16439 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16440 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16441 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16442 else
16443 # The set of available languages was given in configure.in.
16444 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16445 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16446 fi
16447 # Compute POFILES
16448 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16449 # Compute UPDATEPOFILES
16450 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16451 # Compute DUMMYPOFILES
16452 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16453 # Compute GMOFILES
16454 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16455 case "$ac_given_srcdir" in
16456 .) srcdirpre= ;;
16457 *) srcdirpre='$(srcdir)/' ;;
16458 esac
16459 POFILES=
16460 UPDATEPOFILES=
16461 DUMMYPOFILES=
16462 GMOFILES=
16463 for lang in $ALL_LINGUAS; do
16464 POFILES="$POFILES $srcdirpre$lang.po"
16465 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16466 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16467 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16468 done
16469 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16470 # environment variable.
16471 INST_LINGUAS=
16472 if test -n "$ALL_LINGUAS"; then
16473 for presentlang in $ALL_LINGUAS; do
16474 useit=no
16475 if test "%UNSET%" != "$LINGUAS"; then
16476 desiredlanguages="$LINGUAS"
16477 else
16478 desiredlanguages="$ALL_LINGUAS"
16479 fi
16480 for desiredlang in $desiredlanguages; do
16481 # Use the presentlang catalog if desiredlang is
16482 # a. equal to presentlang, or
16483 # b. a variant of presentlang (because in this case,
16484 # presentlang can be used as a fallback for messages
16485 # which are not translated in the desiredlang catalog).
16486 case "$desiredlang" in
16487 "$presentlang"*) useit=yes;;
16488 esac
16489 done
16490 if test $useit = yes; then
16491 INST_LINGUAS="$INST_LINGUAS $presentlang"
16492 fi
16493 done
16494 fi
16495 CATALOGS=
16496 if test -n "$INST_LINGUAS"; then
16497 for lang in $INST_LINGUAS; do
16498 CATALOGS="$CATALOGS $lang.gmo"
16499 done
16500 fi
16501 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16502 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"
16503 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16504 if test -f "$f"; then
16505 case "$f" in
16506 *.orig | *.bak | *~) ;;
16507 *) cat "$f" >> "$ac_dir/Makefile" ;;
16508 esac
16509 fi
16510 done
16511 fi
16512 ;;
16513 esac
16514 done ;;
16515 "run-stap":F) chmod +x run-stap ;;
16516 "dtrace":F) chmod +x dtrace ;;
16517 "java/stapbm":F) chmod +x java/stapbm ;;
16518 "interactive-notebook/stap-jupyter-container":F) chmod +x interactive-notebook/stap-jupyter-container ;;
16519 "interactive-notebook/stap-jupyter-install":F) chmod +x interactive-notebook/stap-jupyter-install ;;
16520 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
16521 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
16522 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
16523 "stap-profile-annotate":F) chmod +x stap-profile-annotate ;;
16524 "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 ;;
16525
16526 esac
16527 done # for ac_tag
16528
16529
16530 as_fn_exit 0
16531 _ACEOF
16532 ac_clean_files=$ac_clean_files_save
16533
16534 test $ac_write_fail = 0 ||
16535 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16536
16537
16538 # configure is writing to config.log, and then calls config.status.
16539 # config.status does its own redirection, appending to config.log.
16540 # Unfortunately, on DOS this fails, as config.log is still kept open
16541 # by configure, so config.status won't be able to write to it; its
16542 # output is simply discarded. So we exec the FD to /dev/null,
16543 # effectively closing config.log, so it can be properly (re)opened and
16544 # appended to by config.status. When coming back to configure, we
16545 # need to make the FD available again.
16546 if test "$no_create" != yes; then
16547 ac_cs_success=:
16548 ac_config_status_args=
16549 test "$silent" = yes &&
16550 ac_config_status_args="$ac_config_status_args --quiet"
16551 exec 5>/dev/null
16552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16553 exec 5>>config.log
16554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16555 # would make configure fail if this is the last instruction.
16556 $ac_cs_success || as_fn_exit 1
16557 fi
16558
16559 #
16560 # CONFIG_SUBDIRS section.
16561 #
16562 if test "$no_recursion" != yes; then
16563
16564 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16565 # so they do not pile up.
16566 ac_sub_configure_args=
16567 ac_prev=
16568 eval "set x $ac_configure_args"
16569 shift
16570 for ac_arg
16571 do
16572 if test -n "$ac_prev"; then
16573 ac_prev=
16574 continue
16575 fi
16576 case $ac_arg in
16577 -cache-file | --cache-file | --cache-fil | --cache-fi \
16578 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16579 ac_prev=cache_file ;;
16580 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16581 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16582 | --c=*)
16583 ;;
16584 --config-cache | -C)
16585 ;;
16586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16587 ac_prev=srcdir ;;
16588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16589 ;;
16590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16591 ac_prev=prefix ;;
16592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16593 ;;
16594 --disable-option-checking)
16595 ;;
16596 *)
16597 case $ac_arg in
16598 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16599 esac
16600 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16601 esac
16602 done
16603
16604 # Always prepend --prefix to ensure using the same prefix
16605 # in subdir configurations.
16606 ac_arg="--prefix=$prefix"
16607 case $ac_arg in
16608 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16609 esac
16610 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16611
16612 # Pass --silent
16613 if test "$silent" = yes; then
16614 ac_sub_configure_args="--silent $ac_sub_configure_args"
16615 fi
16616
16617 # Always prepend --disable-option-checking to silence warnings, since
16618 # different subdirs can have different --enable and --with options.
16619 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16620
16621 ac_popdir=`pwd`
16622 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16623
16624 # Do not complain, so a configure script can configure whichever
16625 # parts of a large source tree are present.
16626 test -d "$srcdir/$ac_dir" || continue
16627
16628 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16630 printf "%s\n" "$ac_msg" >&6
16631 as_dir="$ac_dir"; as_fn_mkdir_p
16632 ac_builddir=.
16633
16634 case "$ac_dir" in
16635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16636 *)
16637 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16638 # A ".." for each directory in $ac_dir_suffix.
16639 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16640 case $ac_top_builddir_sub in
16641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16643 esac ;;
16644 esac
16645 ac_abs_top_builddir=$ac_pwd
16646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16647 # for backward compatibility:
16648 ac_top_builddir=$ac_top_build_prefix
16649
16650 case $srcdir in
16651 .) # We are building in place.
16652 ac_srcdir=.
16653 ac_top_srcdir=$ac_top_builddir_sub
16654 ac_abs_top_srcdir=$ac_pwd ;;
16655 [\\/]* | ?:[\\/]* ) # Absolute name.
16656 ac_srcdir=$srcdir$ac_dir_suffix;
16657 ac_top_srcdir=$srcdir
16658 ac_abs_top_srcdir=$srcdir ;;
16659 *) # Relative name.
16660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16661 ac_top_srcdir=$ac_top_build_prefix$srcdir
16662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16663 esac
16664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16665
16666
16667 cd "$ac_dir"
16668
16669 # Check for configure.gnu first; this name is used for a wrapper for
16670 # Metaconfig's "Configure" on case-insensitive file systems.
16671 if test -f "$ac_srcdir/configure.gnu"; then
16672 ac_sub_configure=$ac_srcdir/configure.gnu
16673 elif test -f "$ac_srcdir/configure"; then
16674 ac_sub_configure=$ac_srcdir/configure
16675 else
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16677 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16678 ac_sub_configure=
16679 fi
16680
16681 # The recursion is here.
16682 if test -n "$ac_sub_configure"; then
16683 # Make the cache file name correct relative to the subdirectory.
16684 case $cache_file in
16685 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16686 *) # Relative name.
16687 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16688 esac
16689
16690 { 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
16691 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16692 # The eval makes quoting arguments work.
16693 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16694 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16695 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16696 fi
16697
16698 cd "$ac_popdir"
16699 done
16700 fi
16701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16703 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16704 fi
16705
16706
16707 if test "${prefix}" = "/usr/local"; then
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5
16709 printf "%s\n" "$as_me: " >&6;}
16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
16711 printf "%s\n" "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
16713 printf "%s\n" "$as_me: configuring with a prefix. For example, try" >&6;}
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
16715 printf "%s\n" "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
16717 printf "%s\n" "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: is not supported." >&5
16719 printf "%s\n" "$as_me: is not supported." >&6;}
16720 fi
16721
This page took 0.887604 seconds and 6 git commands to generate.