]> sourceware.org Git - systemtap.git/blob - configure
configury: disable http parts by default
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for systemtap 3.2.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: systemtap@sourceware.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='systemtap'
582 PACKAGE_TARNAME='systemtap'
583 PACKAGE_VERSION='3.2'
584 PACKAGE_STRING='systemtap 3.2'
585 PACKAGE_BUGREPORT='systemtap@sourceware.org'
586 PACKAGE_URL=''
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 gt_needs=
625 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 subdirs
631 STAP_PREFIX
632 NEED_BASE_CLIENT_CODE_FALSE
633 NEED_BASE_CLIENT_CODE_TRUE
634 HAVE_HTTP_SUPPORT_FALSE
635 HAVE_HTTP_SUPPORT_TRUE
636 libcurl_LIBS
637 libcurl_CFLAGS
638 uuid_LIBS
639 uuid_CFLAGS
640 libmicrohttpd_LIBS
641 libmicrohttpd_CFLAGS
642 STAP_EXTRA_VERSION
643 LOCALEDIR
644 ENABLE_NLS
645 HAVE_JAVA_FALSE
646 HAVE_JAVA_TRUE
647 JAVADIR
648 have_jar
649 have_javac
650 HAVE_SELINUX_FALSE
651 HAVE_SELINUX_TRUE
652 selinux_LIBS
653 selinux_CFLAGS
654 HAVE_LINUX_BPF_H_FALSE
655 HAVE_LINUX_BPF_H_TRUE
656 support_section_question
657 HAVE_MONITOR_LIBS_FALSE
658 HAVE_MONITOR_LIBS_TRUE
659 ncurses_LIBS
660 ncurses_CFLAGS
661 jsonc_LIBS
662 jsonc_CFLAGS
663 HAVE_PYTHON_PROBES_FALSE
664 HAVE_PYTHON_PROBES_TRUE
665 HAVE_PYTHON3_PROBES_FALSE
666 HAVE_PYTHON3_PROBES_TRUE
667 PYTHON3_CPPFLAGS
668 PYTHON3_CONFIG
669 HAVE_PYTHON2_PROBES_FALSE
670 HAVE_PYTHON2_PROBES_TRUE
671 PYTHON_CPPFLAGS
672 PYTHON_CONFIG
673 BUILD_VIRT_FALSE
674 BUILD_VIRT_TRUE
675 HAVE_LIBXML2_FALSE
676 HAVE_LIBXML2_TRUE
677 libxml2_LIBS
678 libxml2_CFLAGS
679 HAVE_LIBVIRT_FALSE
680 HAVE_LIBVIRT_TRUE
681 libvirt_LIBS
682 libvirt_CFLAGS
683 HAVE_DYNINST_FALSE
684 HAVE_DYNINST_TRUE
685 DYNINST_LDFLAGS
686 DYNINST_CXXFLAGS
687 CXXCPP
688 DATE
689 stapbpf_LIBS
690 staprun_LIBS
691 stap_LIBS
692 elfutils_abs_srcdir
693 BUILD_ELFUTILS_FALSE
694 BUILD_ELFUTILS_TRUE
695 preferred_python
696 HAVE_LIBREADLINE_FALSE
697 HAVE_LIBREADLINE_TRUE
698 READLINE_LIBS
699 HAVE_AVAHI_FALSE
700 HAVE_AVAHI_TRUE
701 avahi_LIBS
702 avahi_CFLAGS
703 BUILD_SERVER_FALSE
704 BUILD_SERVER_TRUE
705 dracutbindir
706 dracutstap
707 HAVE_NSS_FALSE
708 HAVE_NSS_TRUE
709 nss_LIBS
710 nss_CFLAGS
711 XMLTO_STRINGPARAM_FALSE
712 XMLTO_STRINGPARAM_TRUE
713 BUILD_HTMLDOCS_FALSE
714 BUILD_HTMLDOCS_TRUE
715 HAVE_XMLTO_FALSE
716 HAVE_XMLTO_TRUE
717 HAVE_FOP_FALSE
718 HAVE_FOP_TRUE
719 have_fop
720 have_xmlto
721 BUILD_REFDOCS_FALSE
722 BUILD_REFDOCS_TRUE
723 BUILD_DOCS_FALSE
724 BUILD_DOCS_TRUE
725 have_ps2pdf
726 have_dvips
727 have_latex
728 BUILD_CRASHMOD_FALSE
729 BUILD_CRASHMOD_TRUE
730 staplog_CPPFLAGS
731 BUILD_TRANSLATOR_FALSE
732 BUILD_TRANSLATOR_TRUE
733 sqlite3_LIBS
734 sqlite3_CFLAGS
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 PIECXXFLAGS
739 PIECFLAGS
740 PIELDFLAGS
741 HAVE_CXX11
742 py3execdir
743 python3dir
744 PYTHON3_PLATFORM
745 PYTHON3_EXEC_PREFIX
746 PYTHON3_PREFIX
747 PYTHON3_VERSION
748 PYTHON3
749 pkgpyexecdir
750 pyexecdir
751 pkgpythondir
752 pythondir
753 PYTHON_PLATFORM
754 PYTHON_EXEC_PREFIX
755 PYTHON_PREFIX
756 PYTHON_VERSION
757 PYTHON
758 PYTHON_UNKNOWN
759 POSUB
760 LTLIBINTL
761 LIBINTL
762 INTLLIBS
763 LTLIBICONV
764 LIBICONV
765 INTL_MACOSX_LIBS
766 XGETTEXT_EXTRA_OPTIONS
767 MSGMERGE
768 XGETTEXT_015
769 XGETTEXT
770 GMSGFMT_015
771 MSGFMT_015
772 GMSGFMT
773 MSGFMT
774 GETTEXT_MACRO_VERSION
775 USE_NLS
776 SED
777 RANLIB
778 am__fastdepCXX_FALSE
779 am__fastdepCXX_TRUE
780 CXXDEPMODE
781 ac_ct_CXX
782 CXXFLAGS
783 CXX
784 LN_S
785 EGREP
786 GREP
787 CPP
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 am__nodep
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 MAINT
806 MAINTAINER_MODE_FALSE
807 MAINTAINER_MODE_TRUE
808 AM_BACKSLASH
809 AM_DEFAULT_VERBOSITY
810 AM_DEFAULT_V
811 AM_V
812 am__untar
813 am__tar
814 AMTAR
815 am__leading_dot
816 SET_MAKE
817 AWK
818 mkdir_p
819 MKDIR_P
820 INSTALL_STRIP_PROGRAM
821 STRIP
822 install_sh
823 MAKEINFO
824 AUTOHEADER
825 AUTOMAKE
826 AUTOCONF
827 ACLOCAL
828 VERSION
829 PACKAGE
830 CYGPATH_W
831 am__isrc
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 target_os
836 target_vendor
837 target_cpu
838 target
839 host_os
840 host_vendor
841 host_cpu
842 host
843 build_os
844 build_vendor
845 build_cpu
846 build
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_silent_rules
889 enable_maintainer_mode
890 enable_dependency_tracking
891 enable_largefile
892 enable_nls
893 with_gnu_ld
894 enable_rpath
895 with_libiconv_prefix
896 with_libintl_prefix
897 enable_prologues
898 enable_sdt_probes
899 enable_ssp
900 enable_pie
901 enable_sqlite
902 enable_translator
903 enable_crash
904 enable_docs
905 enable_refdocs
906 enable_htmldocs
907 with_nss
908 with_dracutstap
909 with_dracutbindir
910 enable_server
911 with_avahi
912 with_rpm
913 with_python3
914 with_elfutils
915 with_dyninst
916 enable_virt
917 with_python2_probes
918 with_python3_probes
919 with_selinux
920 with_java
921 with_extra_version
922 enable_http
923 '
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 CXX
934 CXXFLAGS
935 CCC
936 PYTHON
937 PKG_CONFIG
938 PKG_CONFIG_PATH
939 PKG_CONFIG_LIBDIR
940 sqlite3_CFLAGS
941 sqlite3_LIBS
942 nss_CFLAGS
943 nss_LIBS
944 avahi_CFLAGS
945 avahi_LIBS
946 CXXCPP
947 libvirt_CFLAGS
948 libvirt_LIBS
949 libxml2_CFLAGS
950 libxml2_LIBS
951 jsonc_CFLAGS
952 jsonc_LIBS
953 ncurses_CFLAGS
954 ncurses_LIBS
955 selinux_CFLAGS
956 selinux_LIBS
957 libmicrohttpd_CFLAGS
958 libmicrohttpd_LIBS
959 uuid_CFLAGS
960 uuid_LIBS
961 libcurl_CFLAGS
962 libcurl_LIBS'
963 ac_subdirs_all='testsuite'
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1022 fi
1023
1024 case $ac_option in
1025 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *=) ac_optarg= ;;
1027 *) ac_optarg=yes ;;
1028 esac
1029
1030 # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032 case $ac_dashdash$ac_option in
1033 --)
1034 ac_dashdash=yes ;;
1035
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037 ac_prev=bindir ;;
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039 bindir=$ac_optarg ;;
1040
1041 -build | --build | --buil | --bui | --bu)
1042 ac_prev=build_alias ;;
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044 build_alias=$ac_optarg ;;
1045
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048 ac_prev=cache_file ;;
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051 cache_file=$ac_optarg ;;
1052
1053 --config-cache | -C)
1054 cache_file=config.cache ;;
1055
1056 -datadir | --datadir | --datadi | --datad)
1057 ac_prev=datadir ;;
1058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059 datadir=$ac_optarg ;;
1060
1061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1063 ac_prev=datarootdir ;;
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066 datarootdir=$ac_optarg ;;
1067
1068 -disable-* | --disable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=no ;;
1083
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1088
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1093
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=\$ac_optarg ;;
1109
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1118
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1121 with_gas=yes ;;
1122
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1129
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1134
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 ac_prev=htmldir ;;
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1139 htmldir=$ac_optarg ;;
1140
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1147
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 ac_prev=infodir ;;
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1152
1153 -libdir | --libdir | --libdi | --libd)
1154 ac_prev=libdir ;;
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1157
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1164
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1169
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1176
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 ac_prev=mandir ;;
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1181
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1184 with_fp=no ;;
1185
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1188 no_create=yes ;;
1189
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 no_recursion=yes ;;
1193
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1202
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 ac_prev=prefix ;;
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1207
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1214
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1221
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1238
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 ac_prev=pdfdir ;;
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1243
1244 -psdir | --psdir | --psdi | --psd | --ps)
1245 ac_prev=psdir ;;
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 psdir=$ac_optarg ;;
1248
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 silent=yes ;;
1252
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 ac_prev=sbindir ;;
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 | --sbi=* | --sb=*)
1257 sbindir=$ac_optarg ;;
1258
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1262 | --sha | --sh)
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 | --sha=* | --sh=*)
1268 sharedstatedir=$ac_optarg ;;
1269
1270 -site | --site | --sit)
1271 ac_prev=site ;;
1272 -site=* | --site=* | --sit=*)
1273 site=$ac_optarg ;;
1274
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 ac_prev=srcdir ;;
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1279
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1286
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1291
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 verbose=yes ;;
1294
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1297
1298 -with-* | --with-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=\$ac_optarg ;;
1313
1314 -without-* | --without-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error $? "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=no ;;
1329
1330 --x)
1331 # Obsolete; use --with-x.
1332 with_x=yes ;;
1333
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1340
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1347
1348 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1350 ;;
1351
1352 *=*)
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 case $ac_envvar in #(
1356 '' | [0-9]* | *[!_$as_cr_alnum]* )
1357 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1358 esac
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1361
1362 *)
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368 ;;
1369
1370 esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 as_fn_error $? "missing argument to $ac_option"
1376 fi
1377
1378 if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1380 no) ;;
1381 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383 esac
1384 fi
1385
1386 # Check all directory arguments for consistency.
1387 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388 datadir sysconfdir sharedstatedir localstatedir includedir \
1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390 libdir localedir mandir
1391 do
1392 eval ac_val=\$$ac_var
1393 # Remove trailing slashes.
1394 case $ac_val in
1395 */ )
1396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397 eval $ac_var=\$ac_val;;
1398 esac
1399 # Be sure to have absolute directory names.
1400 case $ac_val in
1401 [\\/$]* | ?:[\\/]* ) continue;;
1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1403 esac
1404 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 elif test "x$build_alias" != "x$host_alias"; then
1419 cross_compiling=yes
1420 fi
1421 fi
1422
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426 test "$silent" = yes && exec 6>/dev/null
1427
1428
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error $? "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error $? "pwd does not report name of working directory"
1435
1436
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)[^/].*/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\/\)$/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\).*/{
1460 s//\1/
1461 q
1462 }
1463 s/.*/./; q'`
1464 srcdir=$ac_confdir
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 srcdir=..
1467 fi
1468 else
1469 ac_srcdir_defaulted=no
1470 fi
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 fi
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1478 pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 srcdir=.
1482 fi
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1495
1496 #
1497 # Report the --help message.
1498 #
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1502 cat <<_ACEOF
1503 \`configure' configures systemtap 3.2 to adapt to many kinds of systems.
1504
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1509
1510 Defaults for the options are specified in brackets.
1511
1512 Configuration:
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking ...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1522
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 [PREFIX]
1528
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1533
1534 For better control, use the options below.
1535
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1556 _ACEOF
1557
1558 cat <<\_ACEOF
1559
1560 Program names:
1561 --program-prefix=PREFIX prepend PREFIX to installed program names
1562 --program-suffix=SUFFIX append SUFFIX to installed program names
1563 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1564
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 --target=TARGET configure for building compilers for TARGET [HOST]
1569 _ACEOF
1570 fi
1571
1572 if test -n "$ac_init_help"; then
1573 case $ac_init_help in
1574 short | recursive ) echo "Configuration of systemtap 3.2:";;
1575 esac
1576 cat <<\_ACEOF
1577
1578 Optional Features:
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-silent-rules less verbose build output (undo: "make V=1")
1583 --disable-silent-rules verbose build output (undo: "make V=0")
1584 --enable-maintainer-mode
1585 enable make rules and dependencies not useful (and
1586 sometimes confusing) to the casual installer
1587 --enable-dependency-tracking
1588 do not reject slow dependency extractors
1589 --disable-dependency-tracking
1590 speeds up one-time build
1591 --disable-largefile omit support for large files
1592 --disable-nls do not use Native Language Support
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-prologues make -P prologue-searching default
1595 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1596 --disable-ssp disable gcc stack-protector
1597 --enable-pie enable position-independent-executable
1598 --enable-sqlite build with sqlite support
1599 --disable-translator build only runtime utilities
1600 --enable-crash[=DIRECTORY]
1601 enable crash extension (default is disabled).
1602 Optional DIRECTORY is the path to the crash header
1603 file (needed if installed in a non-standard
1604 location).
1605 --enable-docs enable building documentation (default on if latex
1606 etc. found).
1607 --enable-refdocs enable building reference documentation (default on
1608 if other documentation built).
1609 --enable-htmldocs enable building html documentation (default off).
1610 --enable-server enable building of stap-server (default on if nss
1611 etc. found).
1612 --enable-virt enable building of stapvirt support (default on if
1613 libvirt etc. found).
1614 --enable-http Enable building http web compilation service, if
1615 possible
1616
1617 Optional Packages:
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1620 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1621 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1622 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1623 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1624 --without-libintl-prefix don't search for libintl in includedir and libdir
1625 --without-nss Do not use NSS even if present
1626 --with-dracutstap=DIR Install dracut module files in DIR
1627 --with-dracutbindir=DIR Use the dracut binary located in DIR
1628 --without-avahi Do not use Avahi even if present
1629 --with-rpm query rpm database for missing debuginfos
1630 --with-python3 prefer /usr/bin/python3
1631 --with-elfutils=DIRECTORY
1632 find elfutils source code in DIRECTORY
1633 --with-dyninst=DIRECTORY
1634 find dyninst headers/libraries in DIRECTORY
1635 --without-python2-probes
1636 Disable building python version 2 probe support,
1637 even if it is available
1638 --without-python3-probes
1639 Disable building python version 3 probe support,
1640 even if it is available
1641 --without-selinux Do not use libselinux even if present
1642 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1643 against (default is /usr/lib/jvm/java)
1644 --with-extra-version=STRING
1645 Add STRING to stap -V version
1646
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 CPP C preprocessor
1656 CXX C++ compiler command
1657 CXXFLAGS C++ compiler flags
1658 PYTHON the Python interpreter
1659 PKG_CONFIG path to pkg-config utility
1660 PKG_CONFIG_PATH
1661 directories to add to pkg-config's search path
1662 PKG_CONFIG_LIBDIR
1663 path overriding pkg-config's built-in search path
1664 sqlite3_CFLAGS
1665 C compiler flags for sqlite3, overriding pkg-config
1666 sqlite3_LIBS
1667 linker flags for sqlite3, overriding pkg-config
1668 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1669 nss_LIBS linker flags for nss, overriding pkg-config
1670 avahi_CFLAGS
1671 C compiler flags for avahi, overriding pkg-config
1672 avahi_LIBS linker flags for avahi, overriding pkg-config
1673 CXXCPP C++ preprocessor
1674 libvirt_CFLAGS
1675 C compiler flags for libvirt, overriding pkg-config
1676 libvirt_LIBS
1677 linker flags for libvirt, overriding pkg-config
1678 libxml2_CFLAGS
1679 C compiler flags for libxml2, overriding pkg-config
1680 libxml2_LIBS
1681 linker flags for libxml2, overriding pkg-config
1682 jsonc_CFLAGS
1683 C compiler flags for jsonc, overriding pkg-config
1684 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1685 ncurses_CFLAGS
1686 C compiler flags for ncurses, overriding pkg-config
1687 ncurses_LIBS
1688 linker flags for ncurses, overriding pkg-config
1689 selinux_CFLAGS
1690 C compiler flags for selinux, overriding pkg-config
1691 selinux_LIBS
1692 linker flags for selinux, overriding pkg-config
1693 libmicrohttpd_CFLAGS
1694 C compiler flags for libmicrohttpd, overriding pkg-config
1695 libmicrohttpd_LIBS
1696 linker flags for libmicrohttpd, overriding pkg-config
1697 uuid_CFLAGS C compiler flags for uuid, overriding pkg-config
1698 uuid_LIBS linker flags for uuid, overriding pkg-config
1699 libcurl_CFLAGS
1700 C compiler flags for libcurl, overriding pkg-config
1701 libcurl_LIBS
1702 linker flags for libcurl, overriding pkg-config
1703
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1706
1707 Report bugs to <systemtap@sourceware.org>.
1708 _ACEOF
1709 ac_status=$?
1710 fi
1711
1712 if test "$ac_init_help" = "recursive"; then
1713 # If there are subdirs, report their specific --help.
1714 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715 test -d "$ac_dir" ||
1716 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 continue
1718 ac_builddir=.
1719
1720 case "$ac_dir" in
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *)
1723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724 # A ".." for each directory in $ac_dir_suffix.
1725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726 case $ac_top_builddir_sub in
1727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729 esac ;;
1730 esac
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1735
1736 case $srcdir in
1737 .) # We are building in place.
1738 ac_srcdir=.
1739 ac_top_srcdir=$ac_top_builddir_sub
1740 ac_abs_top_srcdir=$ac_pwd ;;
1741 [\\/]* | ?:[\\/]* ) # Absolute name.
1742 ac_srcdir=$srcdir$ac_dir_suffix;
1743 ac_top_srcdir=$srcdir
1744 ac_abs_top_srcdir=$srcdir ;;
1745 *) # Relative name.
1746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747 ac_top_srcdir=$ac_top_build_prefix$srcdir
1748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 esac
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751
1752 cd "$ac_dir" || { ac_status=$?; continue; }
1753 # Check for guested configure.
1754 if test -f "$ac_srcdir/configure.gnu"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757 elif test -f "$ac_srcdir/configure"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure" --help=recursive
1760 else
1761 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762 fi || ac_status=$?
1763 cd "$ac_pwd" || { ac_status=$?; break; }
1764 done
1765 fi
1766
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1769 cat <<\_ACEOF
1770 systemtap configure 3.2
1771 generated by GNU Autoconf 2.69
1772
1773 Copyright (C) 2012 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1776 _ACEOF
1777 exit
1778 fi
1779
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1783
1784 # ac_fn_c_try_compile LINENO
1785 # --------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_compile
1821
1822 # ac_fn_c_try_cpp LINENO
1823 # ----------------------
1824 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_cpp ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_cpp
1858
1859 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862 # the include files in INCLUDES and setting the cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_header_mongrel ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if eval \${$3+:} false; then :
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 else
1877 # Is the header compilable?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879 $as_echo_n "checking $2 usability... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_header_compiler=yes
1887 else
1888 ac_header_compiler=no
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892 $as_echo "$ac_header_compiler" >&6; }
1893
1894 # Is the header present?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896 $as_echo_n "checking $2 presence... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_cpp "$LINENO"; then :
1902 ac_header_preproc=yes
1903 else
1904 ac_header_preproc=no
1905 fi
1906 rm -f conftest.err conftest.i conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908 $as_echo "$ac_header_preproc" >&6; }
1909
1910 # So? What about this header?
1911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912 yes:no: )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ;;
1918 no:yes:* )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1922 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1926 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929 ( $as_echo "## --------------------------------------- ##
1930 ## Report this to systemtap@sourceware.org ##
1931 ## --------------------------------------- ##"
1932 ) | sed "s/^/$as_me: WARNING: /" >&2
1933 ;;
1934 esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 eval "$3=\$ac_header_compiler"
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 fi
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_header_mongrel
1949
1950 # ac_fn_c_try_run LINENO
1951 # ----------------------
1952 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1953 # that executables *can* be run.
1954 ac_fn_c_try_run ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { { ac_try="$ac_link"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>&5
1965 ac_status=$?
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1968 { { case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_try") 2>&5
1975 ac_status=$?
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; }; }; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: program exited with status $ac_status" >&5
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=$ac_status
1985 fi
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1989
1990 } # ac_fn_c_try_run
1991
1992 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1993 # -------------------------------------------------------
1994 # Tests whether HEADER exists and can be compiled using the include files in
1995 # INCLUDES, setting the cache variable VAR accordingly.
1996 ac_fn_c_check_header_compile ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 eval "$3=yes"
2011 else
2012 eval "$3=no"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_header_compile
2022
2023 # ac_fn_cxx_try_compile LINENO
2024 # ----------------------------
2025 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2026 ac_fn_cxx_try_compile ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 rm -f conftest.$ac_objext
2030 if { { ac_try="$ac_compile"
2031 case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_compile") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && {
2046 test -z "$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 } && test -s conftest.$ac_objext; then :
2049 ac_retval=0
2050 else
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055 fi
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2058
2059 } # ac_fn_cxx_try_compile
2060
2061 # ac_fn_c_try_link LINENO
2062 # -----------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_c_try_link ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext conftest$ac_exeext
2068 if { { ac_try="$ac_link"
2069 case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>conftest.err
2076 ac_status=$?
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2081 fi
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_c_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest$ac_exeext && {
2087 test "$cross_compiling" = yes ||
2088 test -x conftest$ac_exeext
2089 }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_retval=1
2096 fi
2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099 # interfere with the next link command; also delete a directory that is
2100 # left behind by Apple's compiler. We do this before executing the actions.
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
2104
2105 } # ac_fn_c_try_link
2106
2107 # ac_fn_c_check_func LINENO FUNC VAR
2108 # ----------------------------------
2109 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2110 ac_fn_c_check_func ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2122 #define $2 innocuous_$2
2123
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char $2 (); below.
2126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127 <limits.h> exists even on freestanding compilers. */
2128
2129 #ifdef __STDC__
2130 # include <limits.h>
2131 #else
2132 # include <assert.h>
2133 #endif
2134
2135 #undef $2
2136
2137 /* Override any GCC internal prototype to avoid an error.
2138 Use char because int might match the return type of a GCC
2139 builtin and then its argument prototype would still apply. */
2140 #ifdef __cplusplus
2141 extern "C"
2142 #endif
2143 char $2 ();
2144 /* The GNU C library defines this for functions which it implements
2145 to always fail with ENOSYS. Some functions are actually named
2146 something starting with __ and the normal name is an alias. */
2147 #if defined __stub_$2 || defined __stub___$2
2148 choke me
2149 #endif
2150
2151 int
2152 main ()
2153 {
2154 return $2 ();
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_link "$LINENO"; then :
2160 eval "$3=yes"
2161 else
2162 eval "$3=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext \
2165 conftest$ac_exeext conftest.$ac_ext
2166 fi
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172 } # ac_fn_c_check_func
2173
2174 # ac_fn_cxx_try_cpp LINENO
2175 # ------------------------
2176 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_cxx_try_cpp ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if { { ac_try="$ac_cpp conftest.$ac_ext"
2181 case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2188 ac_status=$?
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2193 fi
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } > conftest.i && {
2196 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2197 test ! -s conftest.err
2198 }; then :
2199 ac_retval=0
2200 else
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=1
2205 fi
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2208
2209 } # ac_fn_cxx_try_cpp
2210
2211 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2212 # ---------------------------------------------------------
2213 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2214 # the include files in INCLUDES and setting the cache variable VAR
2215 # accordingly.
2216 ac_fn_cxx_check_header_mongrel ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if eval \${$3+:} false; then :
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if eval \${$3+:} false; then :
2223 $as_echo_n "(cached) " >&6
2224 fi
2225 eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 else
2229 # Is the header compilable?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2231 $as_echo_n "checking $2 usability... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_cxx_try_compile "$LINENO"; then :
2238 ac_header_compiler=yes
2239 else
2240 ac_header_compiler=no
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2244 $as_echo "$ac_header_compiler" >&6; }
2245
2246 # Is the header present?
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2248 $as_echo_n "checking $2 presence... " >&6; }
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 #include <$2>
2252 _ACEOF
2253 if ac_fn_cxx_try_cpp "$LINENO"; then :
2254 ac_header_preproc=yes
2255 else
2256 ac_header_preproc=no
2257 fi
2258 rm -f conftest.err conftest.i conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2260 $as_echo "$ac_header_preproc" >&6; }
2261
2262 # So? What about this header?
2263 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2264 yes:no: )
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2266 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 ;;
2270 no:yes:* )
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2272 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2274 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2276 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2278 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2280 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2281 ( $as_echo "## --------------------------------------- ##
2282 ## Report this to systemtap@sourceware.org ##
2283 ## --------------------------------------- ##"
2284 ) | sed "s/^/$as_me: WARNING: /" >&2
2285 ;;
2286 esac
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2288 $as_echo_n "checking for $2... " >&6; }
2289 if eval \${$3+:} false; then :
2290 $as_echo_n "(cached) " >&6
2291 else
2292 eval "$3=\$ac_header_compiler"
2293 fi
2294 eval ac_res=\$$3
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2297 fi
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300 } # ac_fn_cxx_check_header_mongrel
2301
2302 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2303 # ---------------------------------------------
2304 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2305 # accordingly.
2306 ac_fn_c_check_decl ()
2307 {
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 as_decl_name=`echo $2|sed 's/ *(.*//'`
2310 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2312 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2313 if eval \${$3+:} false; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $4
2319 int
2320 main ()
2321 {
2322 #ifndef $as_decl_name
2323 #ifdef __cplusplus
2324 (void) $as_decl_use;
2325 #else
2326 (void) $as_decl_name;
2327 #endif
2328 #endif
2329
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$3=yes"
2336 else
2337 eval "$3=no"
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346 } # ac_fn_c_check_decl
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2350
2351 It was created by systemtap $as_me 3.2, which was
2352 generated by GNU Autoconf 2.69. Invocation command line was
2353
2354 $ $0 $@
2355
2356 _ACEOF
2357 exec 5>>config.log
2358 {
2359 cat <<_ASUNAME
2360 ## --------- ##
2361 ## Platform. ##
2362 ## --------- ##
2363
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2372
2373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2380
2381 _ASUNAME
2382
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2389 done
2390 IFS=$as_save_IFS
2391
2392 } >&5
2393
2394 cat >&5 <<_ACEOF
2395
2396
2397 ## ----------- ##
2398 ## Core tests. ##
2399 ## ----------- ##
2400
2401 _ACEOF
2402
2403
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_configure_args=
2410 ac_configure_args0=
2411 ac_configure_args1=
2412 ac_must_keep_next=false
2413 for ac_pass in 1 2
2414 do
2415 for ac_arg
2416 do
2417 case $ac_arg in
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2421 continue ;;
2422 *\'*)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 esac
2425 case $ac_pass in
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427 2)
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2431 else
2432 case $ac_arg in
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439 esac
2440 ;;
2441 -* ) ac_must_keep_next=true ;;
2442 esac
2443 fi
2444 as_fn_append ac_configure_args " '$ac_arg'"
2445 ;;
2446 esac
2447 done
2448 done
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2451
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log. We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2459 {
2460 echo
2461
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2465 echo
2466 # The following way of writing the cache mishandles newlines in values,
2467 (
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in #(
2471 *${as_nl}*)
2472 case $ac_var in #(
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475 esac
2476 case $ac_var in #(
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2480 esac ;;
2481 esac
2482 done
2483 (set) 2>&1 |
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2486 sed -n \
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489 ;; #(
2490 *)
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 ;;
2493 esac |
2494 sort
2495 )
2496 echo
2497
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2501 echo
2502 for ac_var in $ac_subst_vars
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511
2512 if test -n "$ac_subst_files"; then
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2516 echo
2517 for ac_var in $ac_subst_files
2518 do
2519 eval ac_val=\$$ac_var
2520 case $ac_val in
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 esac
2523 $as_echo "$ac_var='\''$ac_val'\''"
2524 done | sort
2525 echo
2526 fi
2527
2528 if test -s confdefs.h; then
2529 $as_echo "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
2532 echo
2533 cat confdefs.h
2534 echo
2535 fi
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2539 } >&5
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542 exit $exit_status
2543 ' 0
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 $as_echo "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2578 _ACEOF
2579
2580
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2583 ac_site_file1=NONE
2584 ac_site_file2=NONE
2585 if test -n "$CONFIG_SITE"; then
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2591 esac
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2595 else
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2606 . "$ac_site_file" \
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2611 fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620 case $cache_file in
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2623 esac
2624 fi
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628 >$cache_file
2629 fi
2630
2631 gt_needs="$gt_needs "
2632 # Check that the precious variables saved in the cache have kept the same
2633 # value.
2634 ac_cache_corrupted=false
2635 for ac_var in $ac_precious_vars; do
2636 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2637 eval ac_new_set=\$ac_env_${ac_var}_set
2638 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2639 eval ac_new_val=\$ac_env_${ac_var}_value
2640 case $ac_old_set,$ac_new_set in
2641 set,)
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2643 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2644 ac_cache_corrupted=: ;;
2645 ,set)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2647 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,);;
2650 *)
2651 if test "x$ac_old_val" != "x$ac_new_val"; then
2652 # differences in whitespace do not lead to failure.
2653 ac_old_val_w=`echo x $ac_old_val`
2654 ac_new_val_w=`echo x $ac_new_val`
2655 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2657 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2658 ac_cache_corrupted=:
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2661 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2662 eval $ac_var=\$ac_old_val
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2665 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2667 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2668 fi;;
2669 esac
2670 # Pass precious variables to config.status.
2671 if test "$ac_new_set" = set; then
2672 case $ac_new_val in
2673 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2674 *) ac_arg=$ac_var=$ac_new_val ;;
2675 esac
2676 case " $ac_configure_args " in
2677 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2678 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2679 esac
2680 fi
2681 done
2682 if $ac_cache_corrupted; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2686 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2687 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2688 fi
2689 ## -------------------- ##
2690 ## Main body of script. ##
2691 ## -------------------- ##
2692
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698
2699
2700
2701 ac_aux_dir=
2702 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2703 if test -f "$ac_dir/install-sh"; then
2704 ac_aux_dir=$ac_dir
2705 ac_install_sh="$ac_aux_dir/install-sh -c"
2706 break
2707 elif test -f "$ac_dir/install.sh"; then
2708 ac_aux_dir=$ac_dir
2709 ac_install_sh="$ac_aux_dir/install.sh -c"
2710 break
2711 elif test -f "$ac_dir/shtool"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/shtool install -c"
2714 break
2715 fi
2716 done
2717 if test -z "$ac_aux_dir"; then
2718 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 fi
2720
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728
2729
2730 # Make sure we can run config.sub.
2731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2735 $as_echo_n "checking build system type... " >&6; }
2736 if ${ac_cv_build+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 ac_build_alias=$build_alias
2740 test "x$ac_build_alias" = x &&
2741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2742 test "x$ac_build_alias" = x &&
2743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2749 $as_echo "$ac_cv_build" >&6; }
2750 case $ac_cv_build in
2751 *-*-*) ;;
2752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2753 esac
2754 build=$ac_cv_build
2755 ac_save_IFS=$IFS; IFS='-'
2756 set x $ac_cv_build
2757 shift
2758 build_cpu=$1
2759 build_vendor=$2
2760 shift; shift
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2763 build_os=$*
2764 IFS=$ac_save_IFS
2765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2769 $as_echo_n "checking host system type... " >&6; }
2770 if ${ac_cv_host+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test "x$host_alias" = x; then
2774 ac_cv_host=$ac_cv_build
2775 else
2776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2778 fi
2779
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2783 case $ac_cv_host in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2786 esac
2787 host=$ac_cv_host
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_host
2790 shift
2791 host_cpu=$1
2792 host_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 host_os=$*
2797 IFS=$ac_save_IFS
2798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2802 $as_echo_n "checking target system type... " >&6; }
2803 if ${ac_cv_target+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test "x$target_alias" = x; then
2807 ac_cv_target=$ac_cv_host
2808 else
2809 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2811 fi
2812
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2815 $as_echo "$ac_cv_target" >&6; }
2816 case $ac_cv_target in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2819 esac
2820 target=$ac_cv_target
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_target
2823 shift
2824 target_cpu=$1
2825 target_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 target_os=$*
2830 IFS=$ac_save_IFS
2831 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2832
2833
2834 # The aliases save the names the user supplied, while $host etc.
2835 # will get canonicalized.
2836 test -n "$target_alias" &&
2837 test "$program_prefix$program_suffix$program_transform_name" = \
2838 NONENONEs,x,x, &&
2839 program_prefix=${target_alias}-
2840
2841
2842 am__api_version='1.15'
2843
2844 # Find a good install program. We prefer a C program (faster),
2845 # so one script is as good as another. But avoid the broken or
2846 # incompatible versions:
2847 # SysV /etc/install, /usr/sbin/install
2848 # SunOS /usr/etc/install
2849 # IRIX /sbin/install
2850 # AIX /bin/install
2851 # AmigaOS /C/install, which installs bootblocks on floppy discs
2852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2855 # OS/2's system install, which has a completely different semantic
2856 # ./install, which can be erroneously created by make from ./install.sh.
2857 # Reject install programs that cannot install multiple files.
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2859 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2860 if test -z "$INSTALL"; then
2861 if ${ac_cv_path_install+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 # Account for people who put trailing slashes in PATH elements.
2870 case $as_dir/ in #((
2871 ./ | .// | /[cC]/* | \
2872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2873 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2874 /usr/ucb/* ) ;;
2875 *)
2876 # OSF1 and SCO ODT 3.0 have their own names for install.
2877 # Don't use installbsd from OSF since it installs stuff as root
2878 # by default.
2879 for ac_prog in ginstall scoinst install; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2882 if test $ac_prog = install &&
2883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2884 # AIX install. It has an incompatible calling convention.
2885 :
2886 elif test $ac_prog = install &&
2887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2888 # program-specific install script used by HP pwplus--don't use.
2889 :
2890 else
2891 rm -rf conftest.one conftest.two conftest.dir
2892 echo one > conftest.one
2893 echo two > conftest.two
2894 mkdir conftest.dir
2895 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2896 test -s conftest.one && test -s conftest.two &&
2897 test -s conftest.dir/conftest.one &&
2898 test -s conftest.dir/conftest.two
2899 then
2900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2901 break 3
2902 fi
2903 fi
2904 fi
2905 done
2906 done
2907 ;;
2908 esac
2909
2910 done
2911 IFS=$as_save_IFS
2912
2913 rm -rf conftest.one conftest.two conftest.dir
2914
2915 fi
2916 if test "${ac_cv_path_install+set}" = set; then
2917 INSTALL=$ac_cv_path_install
2918 else
2919 # As a last resort, use the slow shell script. Don't cache a
2920 # value for INSTALL within a source directory, because that will
2921 # break other packages using the cache if that directory is
2922 # removed, or if the value is a relative name.
2923 INSTALL=$ac_install_sh
2924 fi
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2927 $as_echo "$INSTALL" >&6; }
2928
2929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2930 # It thinks the first close brace ends the variable substitution.
2931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2932
2933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2934
2935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2938 $as_echo_n "checking whether build environment is sane... " >&6; }
2939 # Reject unsafe characters in $srcdir or the absolute working directory
2940 # name. Accept space and tab only in the latter.
2941 am_lf='
2942 '
2943 case `pwd` in
2944 *[\\\"\#\$\&\'\`$am_lf]*)
2945 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2946 esac
2947 case $srcdir in
2948 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2949 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2950 esac
2951
2952 # Do 'set' in a subshell so we don't clobber the current shell's
2953 # arguments. Must try -L first in case configure is actually a
2954 # symlink; some systems play weird games with the mod time of symlinks
2955 # (eg FreeBSD returns the mod time of the symlink's containing
2956 # directory).
2957 if (
2958 am_has_slept=no
2959 for am_try in 1 2; do
2960 echo "timestamp, slept: $am_has_slept" > conftest.file
2961 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2962 if test "$*" = "X"; then
2963 # -L didn't work.
2964 set X `ls -t "$srcdir/configure" conftest.file`
2965 fi
2966 if test "$*" != "X $srcdir/configure conftest.file" \
2967 && test "$*" != "X conftest.file $srcdir/configure"; then
2968
2969 # If neither matched, then we have a broken ls. This can happen
2970 # if, for instance, CONFIG_SHELL is bash and it inherits a
2971 # broken ls alias from the environment. This has actually
2972 # happened. Such a system could not be considered "sane".
2973 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2974 alias in your environment" "$LINENO" 5
2975 fi
2976 if test "$2" = conftest.file || test $am_try -eq 2; then
2977 break
2978 fi
2979 # Just in case.
2980 sleep 1
2981 am_has_slept=yes
2982 done
2983 test "$2" = conftest.file
2984 )
2985 then
2986 # Ok.
2987 :
2988 else
2989 as_fn_error $? "newly created file is older than distributed files!
2990 Check your system clock" "$LINENO" 5
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993 $as_echo "yes" >&6; }
2994 # If we didn't sleep, we still need to ensure time stamps of config.status and
2995 # generated files are strictly newer.
2996 am_sleep_pid=
2997 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2998 ( sleep 1 ) &
2999 am_sleep_pid=$!
3000 fi
3001
3002 rm -f conftest.file
3003
3004 test "$program_prefix" != NONE &&
3005 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3006 # Use a double $ so make ignores it.
3007 test "$program_suffix" != NONE &&
3008 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3009 # Double any \ or $.
3010 # By default was `s,x,x', remove it if useless.
3011 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3012 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3013
3014 # Expand $ac_aux_dir to an absolute path.
3015 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3016
3017 if test x"${MISSING+set}" != xset; then
3018 case $am_aux_dir in
3019 *\ * | *\ *)
3020 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3021 *)
3022 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3023 esac
3024 fi
3025 # Use eval to expand $SHELL
3026 if eval "$MISSING --is-lightweight"; then
3027 am_missing_run="$MISSING "
3028 else
3029 am_missing_run=
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3031 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3032 fi
3033
3034 if test x"${install_sh+set}" != xset; then
3035 case $am_aux_dir in
3036 *\ * | *\ *)
3037 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3038 *)
3039 install_sh="\${SHELL} $am_aux_dir/install-sh"
3040 esac
3041 fi
3042
3043 # Installed binaries are usually stripped using 'strip' when the user
3044 # run "make install-strip". However 'strip' might not be the right
3045 # tool to use in cross-compilation environments, therefore Automake
3046 # will honor the 'STRIP' environment variable to overrule this program.
3047 if test "$cross_compiling" != no; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}strip; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_STRIP+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$STRIP"; then
3057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 STRIP=$ac_cv_prog_STRIP
3077 if test -n "$STRIP"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3079 $as_echo "$STRIP" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 fi
3087 if test -z "$ac_cv_prog_STRIP"; then
3088 ac_ct_STRIP=$STRIP
3089 # Extract the first word of "strip", so it can be a program name with args.
3090 set dummy strip; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$ac_ct_STRIP"; then
3097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_STRIP="strip"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117 if test -n "$ac_ct_STRIP"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3119 $as_echo "$ac_ct_STRIP" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125 if test "x$ac_ct_STRIP" = x; then
3126 STRIP=":"
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129 yes:)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 STRIP=$ac_ct_STRIP
3135 fi
3136 else
3137 STRIP="$ac_cv_prog_STRIP"
3138 fi
3139
3140 fi
3141 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3144 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3145 if test -z "$MKDIR_P"; then
3146 if ${ac_cv_path_mkdir+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_prog in mkdir gmkdir; do
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3157 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3158 'mkdir (GNU coreutils) '* | \
3159 'mkdir (coreutils) '* | \
3160 'mkdir (fileutils) '4.1*)
3161 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3162 break 3;;
3163 esac
3164 done
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170
3171 test -d ./--version && rmdir ./--version
3172 if test "${ac_cv_path_mkdir+set}" = set; then
3173 MKDIR_P="$ac_cv_path_mkdir -p"
3174 else
3175 # As a last resort, use the slow shell script. Don't cache a
3176 # value for MKDIR_P within a source directory, because that will
3177 # break other packages using the cache if that directory is
3178 # removed, or if the value is a relative name.
3179 MKDIR_P="$ac_install_sh -d"
3180 fi
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3183 $as_echo "$MKDIR_P" >&6; }
3184
3185 for ac_prog in gawk mawk nawk awk
3186 do
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_AWK+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$AWK"; then
3195 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_AWK="$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 AWK=$ac_cv_prog_AWK
3215 if test -n "$AWK"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3217 $as_echo "$AWK" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 test -n "$AWK" && break
3225 done
3226
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3228 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3229 set x ${MAKE-make}
3230 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3231 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 cat >conftest.make <<\_ACEOF
3235 SHELL = /bin/sh
3236 all:
3237 @echo '@@@%%%=$(MAKE)=@@@%%%'
3238 _ACEOF
3239 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3240 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3241 *@@@%%%=?*=@@@%%%*)
3242 eval ac_cv_prog_make_${ac_make}_set=yes;;
3243 *)
3244 eval ac_cv_prog_make_${ac_make}_set=no;;
3245 esac
3246 rm -f conftest.make
3247 fi
3248 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3251 SET_MAKE=
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 SET_MAKE="MAKE=${MAKE-make}"
3256 fi
3257
3258 rm -rf .tst 2>/dev/null
3259 mkdir .tst 2>/dev/null
3260 if test -d .tst; then
3261 am__leading_dot=.
3262 else
3263 am__leading_dot=_
3264 fi
3265 rmdir .tst 2>/dev/null
3266
3267 # Check whether --enable-silent-rules was given.
3268 if test "${enable_silent_rules+set}" = set; then :
3269 enableval=$enable_silent_rules;
3270 fi
3271
3272 case $enable_silent_rules in # (((
3273 yes) AM_DEFAULT_VERBOSITY=0;;
3274 no) AM_DEFAULT_VERBOSITY=1;;
3275 *) AM_DEFAULT_VERBOSITY=1;;
3276 esac
3277 am_make=${MAKE-make}
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3279 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3280 if ${am_cv_make_support_nested_variables+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if $as_echo 'TRUE=$(BAR$(V))
3284 BAR0=false
3285 BAR1=true
3286 V=1
3287 am__doit:
3288 @$(TRUE)
3289 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3290 am_cv_make_support_nested_variables=yes
3291 else
3292 am_cv_make_support_nested_variables=no
3293 fi
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3296 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3297 if test $am_cv_make_support_nested_variables = yes; then
3298 AM_V='$(V)'
3299 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3300 else
3301 AM_V=$AM_DEFAULT_VERBOSITY
3302 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3303 fi
3304 AM_BACKSLASH='\'
3305
3306 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3307 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3308 # is not polluted with repeated "-I."
3309 am__isrc=' -I$(srcdir)'
3310 # test to see if srcdir already configured
3311 if test -f $srcdir/config.status; then
3312 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3313 fi
3314 fi
3315
3316 # test whether we have cygpath
3317 if test -z "$CYGPATH_W"; then
3318 if (cygpath --version) >/dev/null 2>/dev/null; then
3319 CYGPATH_W='cygpath -w'
3320 else
3321 CYGPATH_W=echo
3322 fi
3323 fi
3324
3325
3326 # Define the identity of the package.
3327 PACKAGE='systemtap'
3328 VERSION='3.2'
3329
3330
3331 cat >>confdefs.h <<_ACEOF
3332 #define PACKAGE "$PACKAGE"
3333 _ACEOF
3334
3335
3336 cat >>confdefs.h <<_ACEOF
3337 #define VERSION "$VERSION"
3338 _ACEOF
3339
3340 # Some tools Automake needs.
3341
3342 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3343
3344
3345 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3346
3347
3348 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3349
3350
3351 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3352
3353
3354 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3355
3356 # For better backward compatibility. To be removed once Automake 1.9.x
3357 # dies out for good. For more background, see:
3358 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3359 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3360 mkdir_p='$(MKDIR_P)'
3361
3362 # We need awk for the "check" target (and possibly the TAP driver). The
3363 # system "awk" is bad on some platforms.
3364 # Always define AMTAR for backward compatibility. Yes, it's still used
3365 # in the wild :-( We should find a proper way to deprecate it ...
3366 AMTAR='$${TAR-tar}'
3367
3368
3369 # We'll loop over all known methods to create a tar archive until one works.
3370 _am_tools='gnutar pax cpio none'
3371
3372 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3373
3374
3375
3376
3377
3378
3379 # POSIX will say in a future version that running "rm -f" with no argument
3380 # is OK; and we want to be able to make that assumption in our Makefile
3381 # recipes. So use an aggressive probe to check that the usage we want is
3382 # actually supported "in the wild" to an acceptable degree.
3383 # See automake bug#10828.
3384 # To make any issue more visible, cause the running configure to be aborted
3385 # by default if the 'rm' program in use doesn't match our expectations; the
3386 # user can still override this though.
3387 if rm -f && rm -fr && rm -rf; then : OK; else
3388 cat >&2 <<'END'
3389 Oops!
3390
3391 Your 'rm' program seems unable to run without file operands specified
3392 on the command line, even when the '-f' option is present. This is contrary
3393 to the behaviour of most rm programs out there, and not conforming with
3394 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3395
3396 Please tell bug-automake@gnu.org about your system, including the value
3397 of your $PATH and any error possibly output before this message. This
3398 can help us improve future automake versions.
3399
3400 END
3401 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3402 echo 'Configuration will proceed anyway, since you have set the' >&2
3403 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3404 echo >&2
3405 else
3406 cat >&2 <<'END'
3407 Aborting the configuration process, to ensure you take notice of the issue.
3408
3409 You can download and install GNU coreutils to get an 'rm' implementation
3410 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3411
3412 If you want to complete the configuration process using your problematic
3413 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3414 to "yes", and re-run configure.
3415
3416 END
3417 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3418 fi
3419 fi
3420
3421
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3423 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3424 # Check whether --enable-maintainer-mode was given.
3425 if test "${enable_maintainer_mode+set}" = set; then :
3426 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3427 else
3428 USE_MAINTAINER_MODE=no
3429 fi
3430
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3432 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3433 if test $USE_MAINTAINER_MODE = yes; then
3434 MAINTAINER_MODE_TRUE=
3435 MAINTAINER_MODE_FALSE='#'
3436 else
3437 MAINTAINER_MODE_TRUE='#'
3438 MAINTAINER_MODE_FALSE=
3439 fi
3440
3441 MAINT=$MAINTAINER_MODE_TRUE
3442
3443
3444
3445 # Check whether --enable-silent-rules was given.
3446 if test "${enable_silent_rules+set}" = set; then :
3447 enableval=$enable_silent_rules;
3448 fi
3449
3450 case $enable_silent_rules in # (((
3451 yes) AM_DEFAULT_VERBOSITY=0;;
3452 no) AM_DEFAULT_VERBOSITY=1;;
3453 *) AM_DEFAULT_VERBOSITY=0;;
3454 esac
3455 am_make=${MAKE-make}
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3457 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3458 if ${am_cv_make_support_nested_variables+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if $as_echo 'TRUE=$(BAR$(V))
3462 BAR0=false
3463 BAR1=true
3464 V=1
3465 am__doit:
3466 @$(TRUE)
3467 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3468 am_cv_make_support_nested_variables=yes
3469 else
3470 am_cv_make_support_nested_variables=no
3471 fi
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3474 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3475 if test $am_cv_make_support_nested_variables = yes; then
3476 AM_V='$(V)'
3477 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3478 else
3479 AM_V=$AM_DEFAULT_VERBOSITY
3480 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3481 fi
3482 AM_BACKSLASH='\'
3483
3484
3485 DEPDIR="${am__leading_dot}deps"
3486
3487 ac_config_commands="$ac_config_commands depfiles"
3488
3489
3490 am_make=${MAKE-make}
3491 cat > confinc << 'END'
3492 am__doit:
3493 @echo this is the am__doit target
3494 .PHONY: am__doit
3495 END
3496 # If we don't find an include directive, just comment out the code.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3498 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3499 am__include="#"
3500 am__quote=
3501 _am_result=none
3502 # First try GNU make style include.
3503 echo "include confinc" > confmf
3504 # Ignore all kinds of additional output from 'make'.
3505 case `$am_make -s -f confmf 2> /dev/null` in #(
3506 *the\ am__doit\ target*)
3507 am__include=include
3508 am__quote=
3509 _am_result=GNU
3510 ;;
3511 esac
3512 # Now try BSD make style include.
3513 if test "$am__include" = "#"; then
3514 echo '.include "confinc"' > confmf
3515 case `$am_make -s -f confmf 2> /dev/null` in #(
3516 *the\ am__doit\ target*)
3517 am__include=.include
3518 am__quote="\""
3519 _am_result=BSD
3520 ;;
3521 esac
3522 fi
3523
3524
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3526 $as_echo "$_am_result" >&6; }
3527 rm -f confinc confmf
3528
3529 # Check whether --enable-dependency-tracking was given.
3530 if test "${enable_dependency_tracking+set}" = set; then :
3531 enableval=$enable_dependency_tracking;
3532 fi
3533
3534 if test "x$enable_dependency_tracking" != xno; then
3535 am_depcomp="$ac_aux_dir/depcomp"
3536 AMDEPBACKSLASH='\'
3537 am__nodep='_no'
3538 fi
3539 if test "x$enable_dependency_tracking" != xno; then
3540 AMDEP_TRUE=
3541 AMDEP_FALSE='#'
3542 else
3543 AMDEP_TRUE='#'
3544 AMDEP_FALSE=
3545 fi
3546
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590
3591 fi
3592 if test -z "$ac_cv_prog_CC"; then
3593 ac_ct_CC=$CC
3594 # Extract the first word of "gcc", so it can be a program name with args.
3595 set dummy gcc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 ac_cv_prog_ac_ct_CC="gcc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630 if test "x$ac_ct_CC" = x; then
3631 CC=""
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CC=$ac_ct_CC
3640 fi
3641 else
3642 CC="$ac_cv_prog_CC"
3643 fi
3644
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3648 set dummy ${ac_tool_prefix}cc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_CC+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}cc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3678 else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683
3684 fi
3685 fi
3686 if test -z "$CC"; then
3687 # Extract the first word of "cc", so it can be a program name with args.
3688 set dummy cc; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_CC+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 ac_prog_rejected=no
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3706 ac_prog_rejected=yes
3707 continue
3708 fi
3709 ac_cv_prog_CC="cc"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713 done
3714 done
3715 IFS=$as_save_IFS
3716
3717 if test $ac_prog_rejected = yes; then
3718 # We found a bogon in the path, so make sure we never use it.
3719 set dummy $ac_cv_prog_CC
3720 shift
3721 if test $# != 0; then
3722 # We chose a different compiler from the bogus one.
3723 # However, it has the same basename, so the bogon will be chosen
3724 # first if we set CC to just the basename; use the full file name.
3725 shift
3726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3727 fi
3728 fi
3729 fi
3730 fi
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741 fi
3742 if test -z "$CC"; then
3743 if test -n "$ac_tool_prefix"; then
3744 for ac_prog in cl.exe
3745 do
3746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_CC+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767 done
3768 done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 CC=$ac_cv_prog_CC
3774 if test -n "$CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776 $as_echo "$CC" >&6; }
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782
3783 test -n "$CC" && break
3784 done
3785 fi
3786 if test -z "$CC"; then
3787 ac_ct_CC=$CC
3788 for ac_prog in cl.exe
3789 do
3790 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy $ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 if test -n "$ac_ct_CC"; then
3798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_ac_ct_CC="$ac_prog"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811 done
3812 done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818 if test -n "$ac_ct_CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820 $as_echo "$ac_ct_CC" >&6; }
3821 else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 fi
3825
3826
3827 test -n "$ac_ct_CC" && break
3828 done
3829
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3840 fi
3841 fi
3842
3843 fi
3844
3845
3846 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "no acceptable C compiler found in \$PATH
3849 See \`config.log' for more details" "$LINENO" 5; }
3850
3851 # Provide some information about the compiler.
3852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853 set X $ac_compile
3854 ac_compiler=$2
3855 for ac_option in --version -v -V -qversion; do
3856 { { ac_try="$ac_compiler $ac_option >&5"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864 ac_status=$?
3865 if test -s conftest.err; then
3866 sed '10a\
3867 ... rest of stderr output deleted ...
3868 10q' conftest.err >conftest.er1
3869 cat conftest.er1 >&5
3870 fi
3871 rm -f conftest.er1 conftest.err
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3874 done
3875
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 ac_clean_files_save=$ac_clean_files
3888 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3889 # Try to create an executable without -o first, disregard a.out.
3890 # It will help us diagnose broken compilers, and finding out an intuition
3891 # of exeext.
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3893 $as_echo_n "checking whether the C compiler works... " >&6; }
3894 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895
3896 # The possible output files:
3897 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898
3899 ac_rmfiles=
3900 for ac_file in $ac_files
3901 do
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3905 esac
3906 done
3907 rm -f $ac_rmfiles
3908
3909 if { { ac_try="$ac_link_default"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link_default") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3923 # so that the user can short-circuit this test for compilers unknown to
3924 # Autoconf.
3925 for ac_file in $ac_files ''
3926 do
3927 test -f "$ac_file" || continue
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3930 ;;
3931 [ab].out )
3932 # We found the default executable, but exeext='' is most
3933 # certainly right.
3934 break;;
3935 *.* )
3936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3937 then :; else
3938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 fi
3940 # We set ac_cv_exeext here because the later test for it is not
3941 # safe: cross compilers may not add the suffix if given an `-o'
3942 # argument, so we may need to know it at that point already.
3943 # Even if this section looks crufty: it has the advantage of
3944 # actually working.
3945 break;;
3946 * )
3947 break;;
3948 esac
3949 done
3950 test "$ac_cv_exeext" = no && ac_cv_exeext=
3951
3952 else
3953 ac_file=''
3954 fi
3955 if test -z "$ac_file"; then :
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error 77 "C compiler cannot create executables
3964 See \`config.log' for more details" "$LINENO" 5; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967 $as_echo "yes" >&6; }
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3970 $as_echo_n "checking for C compiler default output file name... " >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972 $as_echo "$ac_file" >&6; }
3973 ac_exeext=$ac_cv_exeext
3974
3975 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3976 ac_clean_files=$ac_clean_files_save
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3978 $as_echo_n "checking for suffix of executables... " >&6; }
3979 if { { ac_try="$ac_link"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then :
3990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3992 # work properly (i.e., refer to `conftest.exe'), while it won't with
3993 # `rm'.
3994 for ac_file in conftest.exe conftest conftest.*; do
3995 test -f "$ac_file" || continue
3996 case $ac_file in
3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999 break;;
4000 * ) break;;
4001 esac
4002 done
4003 else
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4007 See \`config.log' for more details" "$LINENO" 5; }
4008 fi
4009 rm -f conftest conftest$ac_cv_exeext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4011 $as_echo "$ac_cv_exeext" >&6; }
4012
4013 rm -f conftest.$ac_ext
4014 EXEEXT=$ac_cv_exeext
4015 ac_exeext=$EXEEXT
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <stdio.h>
4019 int
4020 main ()
4021 {
4022 FILE *f = fopen ("conftest.out", "w");
4023 return ferror (f) || fclose (f) != 0;
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 ac_clean_files="$ac_clean_files conftest.out"
4030 # Check that the compiler produces executables we can run. If not, either
4031 # the compiler is broken, or we cross compile.
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033 $as_echo_n "checking whether we are cross compiling... " >&6; }
4034 if test "$cross_compiling" != yes; then
4035 { { ac_try="$ac_link"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_link") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }
4046 if { ac_try='./conftest$ac_cv_exeext'
4047 { { case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; }; then
4057 cross_compiling=no
4058 else
4059 if test "$cross_compiling" = maybe; then
4060 cross_compiling=yes
4061 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error $? "cannot run C compiled programs.
4065 If you meant to cross compile, use \`--host'.
4066 See \`config.log' for more details" "$LINENO" 5; }
4067 fi
4068 fi
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071 $as_echo "$cross_compiling" >&6; }
4072
4073 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4074 ac_clean_files=$ac_clean_files_save
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4076 $as_echo_n "checking for suffix of object files... " >&6; }
4077 if ${ac_cv_objext+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082
4083 int
4084 main ()
4085 {
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 rm -f conftest.o conftest.obj
4092 if { { ac_try="$ac_compile"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098 $as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_compile") 2>&5
4100 ac_status=$?
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; then :
4103 for ac_file in conftest.o conftest.obj conftest.*; do
4104 test -f "$ac_file" || continue;
4105 case $ac_file in
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108 break;;
4109 esac
4110 done
4111 else
4112 $as_echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "cannot compute suffix of object files: cannot compile
4118 See \`config.log' for more details" "$LINENO" 5; }
4119 fi
4120 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4123 $as_echo "$ac_cv_objext" >&6; }
4124 OBJEXT=$ac_cv_objext
4125 ac_objext=$OBJEXT
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4127 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4128 if ${ac_cv_c_compiler_gnu+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133
4134 int
4135 main ()
4136 {
4137 #ifndef __GNUC__
4138 choke me
4139 #endif
4140
4141 ;
4142 return 0;
4143 }
4144 _ACEOF
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_compiler_gnu=yes
4147 else
4148 ac_compiler_gnu=no
4149 fi
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4155 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4156 if test $ac_compiler_gnu = yes; then
4157 GCC=yes
4158 else
4159 GCC=
4160 fi
4161 ac_test_CFLAGS=${CFLAGS+set}
4162 ac_save_CFLAGS=$CFLAGS
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4164 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4165 if ${ac_cv_prog_cc_g+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 ac_save_c_werror_flag=$ac_c_werror_flag
4169 ac_c_werror_flag=yes
4170 ac_cv_prog_cc_g=no
4171 CFLAGS="-g"
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174
4175 int
4176 main ()
4177 {
4178
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_prog_cc_g=yes
4185 else
4186 CFLAGS=""
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189
4190 int
4191 main ()
4192 {
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199
4200 else
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4202 CFLAGS="-g"
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205
4206 int
4207 main ()
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_g=yes
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4225 $as_echo "$ac_cv_prog_cc_g" >&6; }
4226 if test "$ac_test_CFLAGS" = set; then
4227 CFLAGS=$ac_save_CFLAGS
4228 elif test $ac_cv_prog_cc_g = yes; then
4229 if test "$GCC" = yes; then
4230 CFLAGS="-g -O2"
4231 else
4232 CFLAGS="-g"
4233 fi
4234 else
4235 if test "$GCC" = yes; then
4236 CFLAGS="-O2"
4237 else
4238 CFLAGS=
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4242 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4243 if ${ac_cv_prog_cc_c89+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 ac_cv_prog_cc_c89=no
4247 ac_save_CC=$CC
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <stdarg.h>
4251 #include <stdio.h>
4252 struct stat;
4253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4254 struct buf { int x; };
4255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4256 static char *e (p, i)
4257 char **p;
4258 int i;
4259 {
4260 return p[i];
4261 }
4262 static char *f (char * (*g) (char **, int), char **p, ...)
4263 {
4264 char *s;
4265 va_list v;
4266 va_start (v,p);
4267 s = g (p, va_arg (v,int));
4268 va_end (v);
4269 return s;
4270 }
4271
4272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4273 function prototypes and stuff, but not '\xHH' hex character constants.
4274 These don't provoke an error unfortunately, instead are silently treated
4275 as 'x'. The following induces an error, until -std is added to get
4276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4277 array size at least. It's necessary to write '\x00'==0 to get something
4278 that's true only with -std. */
4279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280
4281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4282 inside strings and character constants. */
4283 #define FOO(x) 'x'
4284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285
4286 int test (int i, double x);
4287 struct s1 {int (*f) (int a);};
4288 struct s2 {int (*f) (double a);};
4289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290 int argc;
4291 char **argv;
4292 int
4293 main ()
4294 {
4295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302 do
4303 CC="$ac_save_CC $ac_arg"
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_prog_cc_c89=$ac_arg
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext
4308 test "x$ac_cv_prog_cc_c89" != "xno" && break
4309 done
4310 rm -f conftest.$ac_ext
4311 CC=$ac_save_CC
4312
4313 fi
4314 # AC_CACHE_VAL
4315 case "x$ac_cv_prog_cc_c89" in
4316 x)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318 $as_echo "none needed" >&6; } ;;
4319 xno)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321 $as_echo "unsupported" >&6; } ;;
4322 *)
4323 CC="$CC $ac_cv_prog_cc_c89"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4325 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4326 esac
4327 if test "x$ac_cv_prog_cc_c89" != xno; then :
4328
4329 fi
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4343 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4344 if ${am_cv_prog_cc_c_o+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main ()
4352 {
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 # Make sure it works both with $CC and with simple cc.
4359 # Following AC_PROG_CC_C_O, we do the test twice because some
4360 # compilers refuse to overwrite an existing .o file with -o,
4361 # though they will create one.
4362 am_cv_prog_cc_c_o=yes
4363 for am_i in 1 2; do
4364 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4365 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } \
4369 && test -f conftest2.$ac_objext; then
4370 : OK
4371 else
4372 am_cv_prog_cc_c_o=no
4373 break
4374 fi
4375 done
4376 rm -f core conftest*
4377 unset am_i
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4380 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4381 if test "$am_cv_prog_cc_c_o" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4388 fi
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
4395
4396 depcc="$CC" am_compiler_list=
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4399 $as_echo_n "checking dependency style of $depcc... " >&6; }
4400 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404 # We make a subdir and do the tests there. Otherwise we can end up
4405 # making bogus files that we don't know about and never remove. For
4406 # instance it was reported that on HP-UX the gcc test will end up
4407 # making a dummy file named 'D' -- because '-MD' means "put the output
4408 # in D".
4409 rm -rf conftest.dir
4410 mkdir conftest.dir
4411 # Copy depcomp to subdir because otherwise we won't find it if we're
4412 # using a relative directory.
4413 cp "$am_depcomp" conftest.dir
4414 cd conftest.dir
4415 # We will build objects and dependencies in a subdirectory because
4416 # it helps to detect inapplicable dependency modes. For instance
4417 # both Tru64's cc and ICC support -MD to output dependencies as a
4418 # side effect of compilation, but ICC will put the dependencies in
4419 # the current directory while Tru64 will put them in the object
4420 # directory.
4421 mkdir sub
4422
4423 am_cv_CC_dependencies_compiler_type=none
4424 if test "$am_compiler_list" = ""; then
4425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4426 fi
4427 am__universal=false
4428 case " $depcc " in #(
4429 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4430 esac
4431
4432 for depmode in $am_compiler_list; do
4433 # Setup a source with many dependencies, because some compilers
4434 # like to wrap large dependency lists on column 80 (with \), and
4435 # we should not choose a depcomp mode which is confused by this.
4436 #
4437 # We need to recreate these files for each test, as the compiler may
4438 # overwrite some of them when testing with obscure command lines.
4439 # This happens at least with the AIX C compiler.
4440 : > sub/conftest.c
4441 for i in 1 2 3 4 5 6; do
4442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4443 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4444 # Solaris 10 /bin/sh.
4445 echo '/* dummy */' > sub/conftst$i.h
4446 done
4447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448
4449 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4450 # mode. It turns out that the SunPro C++ compiler does not properly
4451 # handle '-M -o', and we need to detect this. Also, some Intel
4452 # versions had trouble with output in subdirs.
4453 am__obj=sub/conftest.${OBJEXT-o}
4454 am__minus_obj="-o $am__obj"
4455 case $depmode in
4456 gcc)
4457 # This depmode causes a compiler race in universal mode.
4458 test "$am__universal" = false || continue
4459 ;;
4460 nosideeffect)
4461 # After this tag, mechanisms are not by side-effect, so they'll
4462 # only be used when explicitly requested.
4463 if test "x$enable_dependency_tracking" = xyes; then
4464 continue
4465 else
4466 break
4467 fi
4468 ;;
4469 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4470 # This compiler won't grok '-c -o', but also, the minuso test has
4471 # not run yet. These depmodes are late enough in the game, and
4472 # so weak that their functioning should not be impacted.
4473 am__obj=conftest.${OBJEXT-o}
4474 am__minus_obj=
4475 ;;
4476 none) break ;;
4477 esac
4478 if depmode=$depmode \
4479 source=sub/conftest.c object=$am__obj \
4480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4481 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4482 >/dev/null 2>conftest.err &&
4483 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4484 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4485 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4486 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4487 # icc doesn't choke on unknown options, it will just issue warnings
4488 # or remarks (even with -Werror). So we grep stderr for any message
4489 # that says an option was ignored or not supported.
4490 # When given -MP, icc 7.0 and 7.1 complain thusly:
4491 # icc: Command line warning: ignoring option '-M'; no argument required
4492 # The diagnosis changed in icc 8.0:
4493 # icc: Command line remark: option '-MP' not supported
4494 if (grep 'ignoring option' conftest.err ||
4495 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4496 am_cv_CC_dependencies_compiler_type=$depmode
4497 break
4498 fi
4499 fi
4500 done
4501
4502 cd ..
4503 rm -rf conftest.dir
4504 else
4505 am_cv_CC_dependencies_compiler_type=none
4506 fi
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4510 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4511 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4512
4513 if
4514 test "x$enable_dependency_tracking" != xno \
4515 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4516 am__fastdepCC_TRUE=
4517 am__fastdepCC_FALSE='#'
4518 else
4519 am__fastdepCC_TRUE='#'
4520 am__fastdepCC_FALSE=
4521 fi
4522
4523
4524
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4531 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4532 # On Suns, sometimes $CPP names a directory.
4533 if test -n "$CPP" && test -d "$CPP"; then
4534 CPP=
4535 fi
4536 if test -z "$CPP"; then
4537 if ${ac_cv_prog_CPP+:} false; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 # Double quotes because CPP needs to be expanded
4541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4542 do
4543 ac_preproc_ok=false
4544 for ac_c_preproc_warn_flag in '' yes
4545 do
4546 # Use a header file that comes with gcc, so configuring glibc
4547 # with a fresh cross-compiler works.
4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4549 # <limits.h> exists even on freestanding compilers.
4550 # On the NeXT, cc -E runs the code through the compiler's parser,
4551 # not just through cpp. "Syntax error" is here to catch this case.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #ifdef __STDC__
4555 # include <limits.h>
4556 #else
4557 # include <assert.h>
4558 #endif
4559 Syntax error
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562
4563 else
4564 # Broken: fails on valid input.
4565 continue
4566 fi
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4568
4569 # OK, works on sane cases. Now check whether nonexistent headers
4570 # can be detected and how.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <ac_nonexistent.h>
4574 _ACEOF
4575 if ac_fn_c_try_cpp "$LINENO"; then :
4576 # Broken: success on invalid input.
4577 continue
4578 else
4579 # Passes both tests.
4580 ac_preproc_ok=:
4581 break
4582 fi
4583 rm -f conftest.err conftest.i conftest.$ac_ext
4584
4585 done
4586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4587 rm -f conftest.i conftest.err conftest.$ac_ext
4588 if $ac_preproc_ok; then :
4589 break
4590 fi
4591
4592 done
4593 ac_cv_prog_CPP=$CPP
4594
4595 fi
4596 CPP=$ac_cv_prog_CPP
4597 else
4598 ac_cv_prog_CPP=$CPP
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4601 $as_echo "$CPP" >&6; }
4602 ac_preproc_ok=false
4603 for ac_c_preproc_warn_flag in '' yes
4604 do
4605 # Use a header file that comes with gcc, so configuring glibc
4606 # with a fresh cross-compiler works.
4607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 # <limits.h> exists even on freestanding compilers.
4609 # On the NeXT, cc -E runs the code through the compiler's parser,
4610 # not just through cpp. "Syntax error" is here to catch this case.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #ifdef __STDC__
4614 # include <limits.h>
4615 #else
4616 # include <assert.h>
4617 #endif
4618 Syntax error
4619 _ACEOF
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621
4622 else
4623 # Broken: fails on valid input.
4624 continue
4625 fi
4626 rm -f conftest.err conftest.i conftest.$ac_ext
4627
4628 # OK, works on sane cases. Now check whether nonexistent headers
4629 # can be detected and how.
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #include <ac_nonexistent.h>
4633 _ACEOF
4634 if ac_fn_c_try_cpp "$LINENO"; then :
4635 # Broken: success on invalid input.
4636 continue
4637 else
4638 # Passes both tests.
4639 ac_preproc_ok=:
4640 break
4641 fi
4642 rm -f conftest.err conftest.i conftest.$ac_ext
4643
4644 done
4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646 rm -f conftest.i conftest.err conftest.$ac_ext
4647 if $ac_preproc_ok; then :
4648
4649 else
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4653 See \`config.log' for more details" "$LINENO" 5; }
4654 fi
4655
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4664 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4665 if ${ac_cv_path_GREP+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -z "$GREP"; then
4669 ac_path_GREP_found=false
4670 # Loop through the user's path and test for each of PROGNAME-LIST
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_prog in grep ggrep; do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4679 as_fn_executable_p "$ac_path_GREP" || continue
4680 # Check for GNU ac_path_GREP and select it if it is found.
4681 # Check for GNU $ac_path_GREP
4682 case `"$ac_path_GREP" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4685 *)
4686 ac_count=0
4687 $as_echo_n 0123456789 >"conftest.in"
4688 while :
4689 do
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 $as_echo 'GREP' >> "conftest.nl"
4694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_GREP="$ac_path_GREP"
4700 ac_path_GREP_max=$ac_count
4701 fi
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708 $ac_path_GREP_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_GREP"; then
4714 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715 fi
4716 else
4717 ac_cv_path_GREP=$GREP
4718 fi
4719
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4722 $as_echo "$ac_cv_path_GREP" >&6; }
4723 GREP="$ac_cv_path_GREP"
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4727 $as_echo_n "checking for egrep... " >&6; }
4728 if ${ac_cv_path_EGREP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4732 then ac_cv_path_EGREP="$GREP -E"
4733 else
4734 if test -z "$EGREP"; then
4735 ac_path_EGREP_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_prog in egrep; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4745 as_fn_executable_p "$ac_path_EGREP" || continue
4746 # Check for GNU ac_path_EGREP and select it if it is found.
4747 # Check for GNU $ac_path_EGREP
4748 case `"$ac_path_EGREP" --version 2>&1` in
4749 *GNU*)
4750 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4751 *)
4752 ac_count=0
4753 $as_echo_n 0123456789 >"conftest.in"
4754 while :
4755 do
4756 cat "conftest.in" "conftest.in" >"conftest.tmp"
4757 mv "conftest.tmp" "conftest.in"
4758 cp "conftest.in" "conftest.nl"
4759 $as_echo 'EGREP' >> "conftest.nl"
4760 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762 as_fn_arith $ac_count + 1 && ac_count=$as_val
4763 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4764 # Best one so far, save it but keep looking for a better one
4765 ac_cv_path_EGREP="$ac_path_EGREP"
4766 ac_path_EGREP_max=$ac_count
4767 fi
4768 # 10*(2^10) chars as input seems more than enough
4769 test $ac_count -gt 10 && break
4770 done
4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4773
4774 $ac_path_EGREP_found && break 3
4775 done
4776 done
4777 done
4778 IFS=$as_save_IFS
4779 if test -z "$ac_cv_path_EGREP"; then
4780 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781 fi
4782 else
4783 ac_cv_path_EGREP=$EGREP
4784 fi
4785
4786 fi
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4789 $as_echo "$ac_cv_path_EGREP" >&6; }
4790 EGREP="$ac_cv_path_EGREP"
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4794 $as_echo_n "checking for ANSI C header files... " >&6; }
4795 if ${ac_cv_header_stdc+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #include <stdlib.h>
4801 #include <stdarg.h>
4802 #include <string.h>
4803 #include <float.h>
4804
4805 int
4806 main ()
4807 {
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_cv_header_stdc=yes
4815 else
4816 ac_cv_header_stdc=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819
4820 if test $ac_cv_header_stdc = yes; then
4821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 #include <string.h>
4825
4826 _ACEOF
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 $EGREP "memchr" >/dev/null 2>&1; then :
4829
4830 else
4831 ac_cv_header_stdc=no
4832 fi
4833 rm -f conftest*
4834
4835 fi
4836
4837 if test $ac_cv_header_stdc = yes; then
4838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #include <stdlib.h>
4842
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "free" >/dev/null 2>&1; then :
4846
4847 else
4848 ac_cv_header_stdc=no
4849 fi
4850 rm -f conftest*
4851
4852 fi
4853
4854 if test $ac_cv_header_stdc = yes; then
4855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4856 if test "$cross_compiling" = yes; then :
4857 :
4858 else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <ctype.h>
4862 #include <stdlib.h>
4863 #if ((' ' & 0x0FF) == 0x020)
4864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4866 #else
4867 # define ISLOWER(c) \
4868 (('a' <= (c) && (c) <= 'i') \
4869 || ('j' <= (c) && (c) <= 'r') \
4870 || ('s' <= (c) && (c) <= 'z'))
4871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4872 #endif
4873
4874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4875 int
4876 main ()
4877 {
4878 int i;
4879 for (i = 0; i < 256; i++)
4880 if (XOR (islower (i), ISLOWER (i))
4881 || toupper (i) != TOUPPER (i))
4882 return 2;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_run "$LINENO"; then :
4887
4888 else
4889 ac_cv_header_stdc=no
4890 fi
4891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4892 conftest.$ac_objext conftest.beam conftest.$ac_ext
4893 fi
4894
4895 fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4898 $as_echo "$ac_cv_header_stdc" >&6; }
4899 if test $ac_cv_header_stdc = yes; then
4900
4901 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4902
4903 fi
4904
4905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4907 inttypes.h stdint.h unistd.h
4908 do :
4909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4911 "
4912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4913 cat >>confdefs.h <<_ACEOF
4914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915 _ACEOF
4916
4917 fi
4918
4919 done
4920
4921
4922
4923 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4924 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4925 MINIX=yes
4926 else
4927 MINIX=
4928 fi
4929
4930
4931 if test "$MINIX" = yes; then
4932
4933 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4934
4935
4936 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4937
4938
4939 $as_echo "#define _MINIX 1" >>confdefs.h
4940
4941 fi
4942
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4945 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4946 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951
4952 # define __EXTENSIONS__ 1
4953 $ac_includes_default
4954 int
4955 main ()
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_safe_to_define___extensions__=yes
4964 else
4965 ac_cv_safe_to_define___extensions__=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4970 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4971 test $ac_cv_safe_to_define___extensions__ = yes &&
4972 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4973
4974 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4975
4976 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4977
4978 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4979
4980 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4986 $as_echo_n "checking whether ln -s works... " >&6; }
4987 LN_S=$as_ln_s
4988 if test "$LN_S" = "ln -s"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4993 $as_echo "no, using $LN_S" >&6; }
4994 fi
4995
4996 ac_ext=c
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_CC+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$CC"; then
5010 ac_cv_prog_CC="$CC" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 CC=$ac_cv_prog_CC
5030 if test -n "$CC"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5032 $as_echo "$CC" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 fi
5040 if test -z "$ac_cv_prog_CC"; then
5041 ac_ct_CC=$CC
5042 # Extract the first word of "gcc", so it can be a program name with args.
5043 set dummy gcc; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_CC"; then
5050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ac_ct_CC="gcc"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5070 if test -n "$ac_ct_CC"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5072 $as_echo "$ac_ct_CC" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078 if test "x$ac_ct_CC" = x; then
5079 CC=""
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 CC=$ac_ct_CC
5088 fi
5089 else
5090 CC="$ac_cv_prog_CC"
5091 fi
5092
5093 if test -z "$CC"; then
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}cc; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_CC+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$CC"; then
5103 ac_cv_prog_CC="$CC" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_CC="${ac_tool_prefix}cc"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 CC=$ac_cv_prog_CC
5123 if test -n "$CC"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5125 $as_echo "$CC" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131
5132 fi
5133 fi
5134 if test -z "$CC"; then
5135 # Extract the first word of "cc", so it can be a program name with args.
5136 set dummy cc; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_CC+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$CC"; then
5143 ac_cv_prog_CC="$CC" # Let the user override the test.
5144 else
5145 ac_prog_rejected=no
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5154 ac_prog_rejected=yes
5155 continue
5156 fi
5157 ac_cv_prog_CC="cc"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 if test $ac_prog_rejected = yes; then
5166 # We found a bogon in the path, so make sure we never use it.
5167 set dummy $ac_cv_prog_CC
5168 shift
5169 if test $# != 0; then
5170 # We chose a different compiler from the bogus one.
5171 # However, it has the same basename, so the bogon will be chosen
5172 # first if we set CC to just the basename; use the full file name.
5173 shift
5174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5175 fi
5176 fi
5177 fi
5178 fi
5179 CC=$ac_cv_prog_CC
5180 if test -n "$CC"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5182 $as_echo "$CC" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189 fi
5190 if test -z "$CC"; then
5191 if test -n "$ac_tool_prefix"; then
5192 for ac_prog in cl.exe
5193 do
5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_CC+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$CC"; then
5202 ac_cv_prog_CC="$CC" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 CC=$ac_cv_prog_CC
5222 if test -n "$CC"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5224 $as_echo "$CC" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 test -n "$CC" && break
5232 done
5233 fi
5234 if test -z "$CC"; then
5235 ac_ct_CC=$CC
5236 for ac_prog in cl.exe
5237 do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_CC"; then
5246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_CC="$ac_prog"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5266 if test -n "$ac_ct_CC"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5268 $as_echo "$ac_ct_CC" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 test -n "$ac_ct_CC" && break
5276 done
5277
5278 if test "x$ac_ct_CC" = x; then
5279 CC=""
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5286 esac
5287 CC=$ac_ct_CC
5288 fi
5289 fi
5290
5291 fi
5292
5293
5294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5296 as_fn_error $? "no acceptable C compiler found in \$PATH
5297 See \`config.log' for more details" "$LINENO" 5; }
5298
5299 # Provide some information about the compiler.
5300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5301 set X $ac_compile
5302 ac_compiler=$2
5303 for ac_option in --version -v -V -qversion; do
5304 { { ac_try="$ac_compiler $ac_option >&5"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5310 $as_echo "$ac_try_echo"; } >&5
5311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5312 ac_status=$?
5313 if test -s conftest.err; then
5314 sed '10a\
5315 ... rest of stderr output deleted ...
5316 10q' conftest.err >conftest.er1
5317 cat conftest.er1 >&5
5318 fi
5319 rm -f conftest.er1 conftest.err
5320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321 test $ac_status = 0; }
5322 done
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5326 if ${ac_cv_c_compiler_gnu+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331
5332 int
5333 main ()
5334 {
5335 #ifndef __GNUC__
5336 choke me
5337 #endif
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_compiler_gnu=yes
5345 else
5346 ac_compiler_gnu=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5353 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5354 if test $ac_compiler_gnu = yes; then
5355 GCC=yes
5356 else
5357 GCC=
5358 fi
5359 ac_test_CFLAGS=${CFLAGS+set}
5360 ac_save_CFLAGS=$CFLAGS
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5362 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5363 if ${ac_cv_prog_cc_g+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 ac_save_c_werror_flag=$ac_c_werror_flag
5367 ac_c_werror_flag=yes
5368 ac_cv_prog_cc_g=no
5369 CFLAGS="-g"
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372
5373 int
5374 main ()
5375 {
5376
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_prog_cc_g=yes
5383 else
5384 CFLAGS=""
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387
5388 int
5389 main ()
5390 {
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397
5398 else
5399 ac_c_werror_flag=$ac_save_c_werror_flag
5400 CFLAGS="-g"
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_prog_cc_g=yes
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 ac_c_werror_flag=$ac_save_c_werror_flag
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5423 $as_echo "$ac_cv_prog_cc_g" >&6; }
5424 if test "$ac_test_CFLAGS" = set; then
5425 CFLAGS=$ac_save_CFLAGS
5426 elif test $ac_cv_prog_cc_g = yes; then
5427 if test "$GCC" = yes; then
5428 CFLAGS="-g -O2"
5429 else
5430 CFLAGS="-g"
5431 fi
5432 else
5433 if test "$GCC" = yes; then
5434 CFLAGS="-O2"
5435 else
5436 CFLAGS=
5437 fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5441 if ${ac_cv_prog_cc_c89+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_cv_prog_cc_c89=no
5445 ac_save_CC=$CC
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <stdarg.h>
5449 #include <stdio.h>
5450 struct stat;
5451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5452 struct buf { int x; };
5453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5454 static char *e (p, i)
5455 char **p;
5456 int i;
5457 {
5458 return p[i];
5459 }
5460 static char *f (char * (*g) (char **, int), char **p, ...)
5461 {
5462 char *s;
5463 va_list v;
5464 va_start (v,p);
5465 s = g (p, va_arg (v,int));
5466 va_end (v);
5467 return s;
5468 }
5469
5470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5471 function prototypes and stuff, but not '\xHH' hex character constants.
5472 These don't provoke an error unfortunately, instead are silently treated
5473 as 'x'. The following induces an error, until -std is added to get
5474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5475 array size at least. It's necessary to write '\x00'==0 to get something
5476 that's true only with -std. */
5477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5478
5479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5480 inside strings and character constants. */
5481 #define FOO(x) 'x'
5482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5483
5484 int test (int i, double x);
5485 struct s1 {int (*f) (int a);};
5486 struct s2 {int (*f) (double a);};
5487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5488 int argc;
5489 char **argv;
5490 int
5491 main ()
5492 {
5493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5500 do
5501 CC="$ac_save_CC $ac_arg"
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503 ac_cv_prog_cc_c89=$ac_arg
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext
5506 test "x$ac_cv_prog_cc_c89" != "xno" && break
5507 done
5508 rm -f conftest.$ac_ext
5509 CC=$ac_save_CC
5510
5511 fi
5512 # AC_CACHE_VAL
5513 case "x$ac_cv_prog_cc_c89" in
5514 x)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5516 $as_echo "none needed" >&6; } ;;
5517 xno)
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5519 $as_echo "unsupported" >&6; } ;;
5520 *)
5521 CC="$CC $ac_cv_prog_cc_c89"
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5524 esac
5525 if test "x$ac_cv_prog_cc_c89" != xno; then :
5526
5527 fi
5528
5529 ac_ext=c
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535 ac_ext=c
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5541 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5542 if ${am_cv_prog_cc_c_o+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 # Make sure it works both with $CC and with simple cc.
5557 # Following AC_PROG_CC_C_O, we do the test twice because some
5558 # compilers refuse to overwrite an existing .o file with -o,
5559 # though they will create one.
5560 am_cv_prog_cc_c_o=yes
5561 for am_i in 1 2; do
5562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } \
5567 && test -f conftest2.$ac_objext; then
5568 : OK
5569 else
5570 am_cv_prog_cc_c_o=no
5571 break
5572 fi
5573 done
5574 rm -f core conftest*
5575 unset am_i
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5578 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5579 if test "$am_cv_prog_cc_c_o" != yes; then
5580 # Losing compiler, so override with the script.
5581 # FIXME: It is wrong to rewrite CC.
5582 # But if we don't then we get into trouble of one sort or another.
5583 # A longer-term fix would be to have automake use am__CC in this case,
5584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5585 CC="$am_aux_dir/compile $CC"
5586 fi
5587 ac_ext=c
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592
5593
5594 depcc="$CC" am_compiler_list=
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5597 $as_echo_n "checking dependency style of $depcc... " >&6; }
5598 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5602 # We make a subdir and do the tests there. Otherwise we can end up
5603 # making bogus files that we don't know about and never remove. For
5604 # instance it was reported that on HP-UX the gcc test will end up
5605 # making a dummy file named 'D' -- because '-MD' means "put the output
5606 # in D".
5607 rm -rf conftest.dir
5608 mkdir conftest.dir
5609 # Copy depcomp to subdir because otherwise we won't find it if we're
5610 # using a relative directory.
5611 cp "$am_depcomp" conftest.dir
5612 cd conftest.dir
5613 # We will build objects and dependencies in a subdirectory because
5614 # it helps to detect inapplicable dependency modes. For instance
5615 # both Tru64's cc and ICC support -MD to output dependencies as a
5616 # side effect of compilation, but ICC will put the dependencies in
5617 # the current directory while Tru64 will put them in the object
5618 # directory.
5619 mkdir sub
5620
5621 am_cv_CC_dependencies_compiler_type=none
5622 if test "$am_compiler_list" = ""; then
5623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5624 fi
5625 am__universal=false
5626 case " $depcc " in #(
5627 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5628 esac
5629
5630 for depmode in $am_compiler_list; do
5631 # Setup a source with many dependencies, because some compilers
5632 # like to wrap large dependency lists on column 80 (with \), and
5633 # we should not choose a depcomp mode which is confused by this.
5634 #
5635 # We need to recreate these files for each test, as the compiler may
5636 # overwrite some of them when testing with obscure command lines.
5637 # This happens at least with the AIX C compiler.
5638 : > sub/conftest.c
5639 for i in 1 2 3 4 5 6; do
5640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5641 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5642 # Solaris 10 /bin/sh.
5643 echo '/* dummy */' > sub/conftst$i.h
5644 done
5645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5646
5647 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5648 # mode. It turns out that the SunPro C++ compiler does not properly
5649 # handle '-M -o', and we need to detect this. Also, some Intel
5650 # versions had trouble with output in subdirs.
5651 am__obj=sub/conftest.${OBJEXT-o}
5652 am__minus_obj="-o $am__obj"
5653 case $depmode in
5654 gcc)
5655 # This depmode causes a compiler race in universal mode.
5656 test "$am__universal" = false || continue
5657 ;;
5658 nosideeffect)
5659 # After this tag, mechanisms are not by side-effect, so they'll
5660 # only be used when explicitly requested.
5661 if test "x$enable_dependency_tracking" = xyes; then
5662 continue
5663 else
5664 break
5665 fi
5666 ;;
5667 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5668 # This compiler won't grok '-c -o', but also, the minuso test has
5669 # not run yet. These depmodes are late enough in the game, and
5670 # so weak that their functioning should not be impacted.
5671 am__obj=conftest.${OBJEXT-o}
5672 am__minus_obj=
5673 ;;
5674 none) break ;;
5675 esac
5676 if depmode=$depmode \
5677 source=sub/conftest.c object=$am__obj \
5678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5679 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5680 >/dev/null 2>conftest.err &&
5681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5683 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5685 # icc doesn't choke on unknown options, it will just issue warnings
5686 # or remarks (even with -Werror). So we grep stderr for any message
5687 # that says an option was ignored or not supported.
5688 # When given -MP, icc 7.0 and 7.1 complain thusly:
5689 # icc: Command line warning: ignoring option '-M'; no argument required
5690 # The diagnosis changed in icc 8.0:
5691 # icc: Command line remark: option '-MP' not supported
5692 if (grep 'ignoring option' conftest.err ||
5693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5694 am_cv_CC_dependencies_compiler_type=$depmode
5695 break
5696 fi
5697 fi
5698 done
5699
5700 cd ..
5701 rm -rf conftest.dir
5702 else
5703 am_cv_CC_dependencies_compiler_type=none
5704 fi
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5708 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5710
5711 if
5712 test "x$enable_dependency_tracking" != xno \
5713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5714 am__fastdepCC_TRUE=
5715 am__fastdepCC_FALSE='#'
5716 else
5717 am__fastdepCC_TRUE='#'
5718 am__fastdepCC_FALSE=
5719 fi
5720
5721
5722 ac_ext=cpp
5723 ac_cpp='$CXXCPP $CPPFLAGS'
5724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727 if test -z "$CXX"; then
5728 if test -n "$CCC"; then
5729 CXX=$CCC
5730 else
5731 if test -n "$ac_tool_prefix"; then
5732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5733 do
5734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_CXX+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$CXX"; then
5742 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 CXX=$ac_cv_prog_CXX
5762 if test -n "$CXX"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5764 $as_echo "$CXX" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 test -n "$CXX" && break
5772 done
5773 fi
5774 if test -z "$CXX"; then
5775 ac_ct_CXX=$CXX
5776 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5777 do
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$ac_ct_CXX"; then
5786 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_CXX="$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5806 if test -n "$ac_ct_CXX"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5808 $as_echo "$ac_ct_CXX" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814
5815 test -n "$ac_ct_CXX" && break
5816 done
5817
5818 if test "x$ac_ct_CXX" = x; then
5819 CXX="g++"
5820 else
5821 case $cross_compiling:$ac_tool_warned in
5822 yes:)
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825 ac_tool_warned=yes ;;
5826 esac
5827 CXX=$ac_ct_CXX
5828 fi
5829 fi
5830
5831 fi
5832 fi
5833 # Provide some information about the compiler.
5834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5835 set X $ac_compile
5836 ac_compiler=$2
5837 for ac_option in --version -v -V -qversion; do
5838 { { ac_try="$ac_compiler $ac_option >&5"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5844 $as_echo "$ac_try_echo"; } >&5
5845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5846 ac_status=$?
5847 if test -s conftest.err; then
5848 sed '10a\
5849 ... rest of stderr output deleted ...
5850 10q' conftest.err >conftest.er1
5851 cat conftest.er1 >&5
5852 fi
5853 rm -f conftest.er1 conftest.err
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }
5856 done
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5859 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5860 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865
5866 int
5867 main ()
5868 {
5869 #ifndef __GNUC__
5870 choke me
5871 #endif
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_compiler_gnu=yes
5879 else
5880 ac_compiler_gnu=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5887 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5888 if test $ac_compiler_gnu = yes; then
5889 GXX=yes
5890 else
5891 GXX=
5892 fi
5893 ac_test_CXXFLAGS=${CXXFLAGS+set}
5894 ac_save_CXXFLAGS=$CXXFLAGS
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5896 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5897 if ${ac_cv_prog_cxx_g+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5901 ac_cxx_werror_flag=yes
5902 ac_cv_prog_cxx_g=no
5903 CXXFLAGS="-g"
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906
5907 int
5908 main ()
5909 {
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_cxx_try_compile "$LINENO"; then :
5916 ac_cv_prog_cxx_g=yes
5917 else
5918 CXXFLAGS=""
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922 int
5923 main ()
5924 {
5925
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_cxx_try_compile "$LINENO"; then :
5931
5932 else
5933 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5934 CXXFLAGS="-g"
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937
5938 int
5939 main ()
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_cxx_try_compile "$LINENO"; then :
5947 ac_cv_prog_cxx_g=yes
5948 fi
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5957 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5958 if test "$ac_test_CXXFLAGS" = set; then
5959 CXXFLAGS=$ac_save_CXXFLAGS
5960 elif test $ac_cv_prog_cxx_g = yes; then
5961 if test "$GXX" = yes; then
5962 CXXFLAGS="-g -O2"
5963 else
5964 CXXFLAGS="-g"
5965 fi
5966 else
5967 if test "$GXX" = yes; then
5968 CXXFLAGS="-O2"
5969 else
5970 CXXFLAGS=
5971 fi
5972 fi
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978
5979 depcc="$CXX" am_compiler_list=
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5982 $as_echo_n "checking dependency style of $depcc... " >&6; }
5983 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5987 # We make a subdir and do the tests there. Otherwise we can end up
5988 # making bogus files that we don't know about and never remove. For
5989 # instance it was reported that on HP-UX the gcc test will end up
5990 # making a dummy file named 'D' -- because '-MD' means "put the output
5991 # in D".
5992 rm -rf conftest.dir
5993 mkdir conftest.dir
5994 # Copy depcomp to subdir because otherwise we won't find it if we're
5995 # using a relative directory.
5996 cp "$am_depcomp" conftest.dir
5997 cd conftest.dir
5998 # We will build objects and dependencies in a subdirectory because
5999 # it helps to detect inapplicable dependency modes. For instance
6000 # both Tru64's cc and ICC support -MD to output dependencies as a
6001 # side effect of compilation, but ICC will put the dependencies in
6002 # the current directory while Tru64 will put them in the object
6003 # directory.
6004 mkdir sub
6005
6006 am_cv_CXX_dependencies_compiler_type=none
6007 if test "$am_compiler_list" = ""; then
6008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6009 fi
6010 am__universal=false
6011 case " $depcc " in #(
6012 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6013 esac
6014
6015 for depmode in $am_compiler_list; do
6016 # Setup a source with many dependencies, because some compilers
6017 # like to wrap large dependency lists on column 80 (with \), and
6018 # we should not choose a depcomp mode which is confused by this.
6019 #
6020 # We need to recreate these files for each test, as the compiler may
6021 # overwrite some of them when testing with obscure command lines.
6022 # This happens at least with the AIX C compiler.
6023 : > sub/conftest.c
6024 for i in 1 2 3 4 5 6; do
6025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6026 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6027 # Solaris 10 /bin/sh.
6028 echo '/* dummy */' > sub/conftst$i.h
6029 done
6030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6031
6032 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6033 # mode. It turns out that the SunPro C++ compiler does not properly
6034 # handle '-M -o', and we need to detect this. Also, some Intel
6035 # versions had trouble with output in subdirs.
6036 am__obj=sub/conftest.${OBJEXT-o}
6037 am__minus_obj="-o $am__obj"
6038 case $depmode in
6039 gcc)
6040 # This depmode causes a compiler race in universal mode.
6041 test "$am__universal" = false || continue
6042 ;;
6043 nosideeffect)
6044 # After this tag, mechanisms are not by side-effect, so they'll
6045 # only be used when explicitly requested.
6046 if test "x$enable_dependency_tracking" = xyes; then
6047 continue
6048 else
6049 break
6050 fi
6051 ;;
6052 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6053 # This compiler won't grok '-c -o', but also, the minuso test has
6054 # not run yet. These depmodes are late enough in the game, and
6055 # so weak that their functioning should not be impacted.
6056 am__obj=conftest.${OBJEXT-o}
6057 am__minus_obj=
6058 ;;
6059 none) break ;;
6060 esac
6061 if depmode=$depmode \
6062 source=sub/conftest.c object=$am__obj \
6063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6065 >/dev/null 2>conftest.err &&
6066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6070 # icc doesn't choke on unknown options, it will just issue warnings
6071 # or remarks (even with -Werror). So we grep stderr for any message
6072 # that says an option was ignored or not supported.
6073 # When given -MP, icc 7.0 and 7.1 complain thusly:
6074 # icc: Command line warning: ignoring option '-M'; no argument required
6075 # The diagnosis changed in icc 8.0:
6076 # icc: Command line remark: option '-MP' not supported
6077 if (grep 'ignoring option' conftest.err ||
6078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6079 am_cv_CXX_dependencies_compiler_type=$depmode
6080 break
6081 fi
6082 fi
6083 done
6084
6085 cd ..
6086 rm -rf conftest.dir
6087 else
6088 am_cv_CXX_dependencies_compiler_type=none
6089 fi
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6093 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6094 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6095
6096 if
6097 test "x$enable_dependency_tracking" != xno \
6098 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6099 am__fastdepCXX_TRUE=
6100 am__fastdepCXX_FALSE='#'
6101 else
6102 am__fastdepCXX_TRUE='#'
6103 am__fastdepCXX_FALSE=
6104 fi
6105
6106
6107 ac_ext=c
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6113 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6114 # On Suns, sometimes $CPP names a directory.
6115 if test -n "$CPP" && test -d "$CPP"; then
6116 CPP=
6117 fi
6118 if test -z "$CPP"; then
6119 if ${ac_cv_prog_CPP+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 # Double quotes because CPP needs to be expanded
6123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6124 do
6125 ac_preproc_ok=false
6126 for ac_c_preproc_warn_flag in '' yes
6127 do
6128 # Use a header file that comes with gcc, so configuring glibc
6129 # with a fresh cross-compiler works.
6130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6131 # <limits.h> exists even on freestanding compilers.
6132 # On the NeXT, cc -E runs the code through the compiler's parser,
6133 # not just through cpp. "Syntax error" is here to catch this case.
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #ifdef __STDC__
6137 # include <limits.h>
6138 #else
6139 # include <assert.h>
6140 #endif
6141 Syntax error
6142 _ACEOF
6143 if ac_fn_c_try_cpp "$LINENO"; then :
6144
6145 else
6146 # Broken: fails on valid input.
6147 continue
6148 fi
6149 rm -f conftest.err conftest.i conftest.$ac_ext
6150
6151 # OK, works on sane cases. Now check whether nonexistent headers
6152 # can be detected and how.
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 #include <ac_nonexistent.h>
6156 _ACEOF
6157 if ac_fn_c_try_cpp "$LINENO"; then :
6158 # Broken: success on invalid input.
6159 continue
6160 else
6161 # Passes both tests.
6162 ac_preproc_ok=:
6163 break
6164 fi
6165 rm -f conftest.err conftest.i conftest.$ac_ext
6166
6167 done
6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169 rm -f conftest.i conftest.err conftest.$ac_ext
6170 if $ac_preproc_ok; then :
6171 break
6172 fi
6173
6174 done
6175 ac_cv_prog_CPP=$CPP
6176
6177 fi
6178 CPP=$ac_cv_prog_CPP
6179 else
6180 ac_cv_prog_CPP=$CPP
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6183 $as_echo "$CPP" >&6; }
6184 ac_preproc_ok=false
6185 for ac_c_preproc_warn_flag in '' yes
6186 do
6187 # Use a header file that comes with gcc, so configuring glibc
6188 # with a fresh cross-compiler works.
6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6190 # <limits.h> exists even on freestanding compilers.
6191 # On the NeXT, cc -E runs the code through the compiler's parser,
6192 # not just through cpp. "Syntax error" is here to catch this case.
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #ifdef __STDC__
6196 # include <limits.h>
6197 #else
6198 # include <assert.h>
6199 #endif
6200 Syntax error
6201 _ACEOF
6202 if ac_fn_c_try_cpp "$LINENO"; then :
6203
6204 else
6205 # Broken: fails on valid input.
6206 continue
6207 fi
6208 rm -f conftest.err conftest.i conftest.$ac_ext
6209
6210 # OK, works on sane cases. Now check whether nonexistent headers
6211 # can be detected and how.
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 #include <ac_nonexistent.h>
6215 _ACEOF
6216 if ac_fn_c_try_cpp "$LINENO"; then :
6217 # Broken: success on invalid input.
6218 continue
6219 else
6220 # Passes both tests.
6221 ac_preproc_ok=:
6222 break
6223 fi
6224 rm -f conftest.err conftest.i conftest.$ac_ext
6225
6226 done
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.i conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok; then :
6230
6231 else
6232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6234 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6235 See \`config.log' for more details" "$LINENO" 5; }
6236 fi
6237
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_RANLIB+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$RANLIB"; then
6254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 RANLIB=$ac_cv_prog_RANLIB
6274 if test -n "$RANLIB"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6276 $as_echo "$RANLIB" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_RANLIB"; then
6285 ac_ct_RANLIB=$RANLIB
6286 # Extract the first word of "ranlib", so it can be a program name with args.
6287 set dummy ranlib; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$ac_ct_RANLIB"; then
6294 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_RANLIB="ranlib"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6314 if test -n "$ac_ct_RANLIB"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6316 $as_echo "$ac_ct_RANLIB" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322 if test "x$ac_ct_RANLIB" = x; then
6323 RANLIB=":"
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331 RANLIB=$ac_ct_RANLIB
6332 fi
6333 else
6334 RANLIB="$ac_cv_prog_RANLIB"
6335 fi
6336
6337
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6341 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6342 set x ${MAKE-make}
6343 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6344 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 cat >conftest.make <<\_ACEOF
6348 SHELL = /bin/sh
6349 all:
6350 @echo '@@@%%%=$(MAKE)=@@@%%%'
6351 _ACEOF
6352 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6354 *@@@%%%=?*=@@@%%%*)
6355 eval ac_cv_prog_make_${ac_make}_set=yes;;
6356 *)
6357 eval ac_cv_prog_make_${ac_make}_set=no;;
6358 esac
6359 rm -f conftest.make
6360 fi
6361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6363 $as_echo "yes" >&6; }
6364 SET_MAKE=
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 SET_MAKE="MAKE=${MAKE-make}"
6369 fi
6370
6371
6372
6373 # Check whether --enable-largefile was given.
6374 if test "${enable_largefile+set}" = set; then :
6375 enableval=$enable_largefile;
6376 fi
6377
6378 if test "$enable_largefile" != no; then
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6382 if ${ac_cv_sys_largefile_CC+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 ac_cv_sys_largefile_CC=no
6386 if test "$GCC" != yes; then
6387 ac_save_CC=$CC
6388 while :; do
6389 # IRIX 6.2 and later do not support large files by default,
6390 # so use the C compiler's -n32 option if that helps.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393 #include <sys/types.h>
6394 /* Check that off_t can represent 2**63 - 1 correctly.
6395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6396 since some C++ compilers masquerading as C compilers
6397 incorrectly reject 9223372036854775807. */
6398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6400 && LARGE_OFF_T % 2147483647 == 1)
6401 ? 1 : -1];
6402 int
6403 main ()
6404 {
6405
6406 ;
6407 return 0;
6408 }
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 break
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext
6414 CC="$CC -n32"
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 ac_cv_sys_largefile_CC=' -n32'; break
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext
6419 break
6420 done
6421 CC=$ac_save_CC
6422 rm -f conftest.$ac_ext
6423 fi
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6427 if test "$ac_cv_sys_largefile_CC" != no; then
6428 CC=$CC$ac_cv_sys_largefile_CC
6429 fi
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6433 if ${ac_cv_sys_file_offset_bits+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 while :; do
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <sys/types.h>
6440 /* Check that off_t can represent 2**63 - 1 correctly.
6441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6442 since some C++ compilers masquerading as C compilers
6443 incorrectly reject 9223372036854775807. */
6444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6446 && LARGE_OFF_T % 2147483647 == 1)
6447 ? 1 : -1];
6448 int
6449 main ()
6450 {
6451
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_sys_file_offset_bits=no; break
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #define _FILE_OFFSET_BITS 64
6463 #include <sys/types.h>
6464 /* Check that off_t can represent 2**63 - 1 correctly.
6465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6466 since some C++ compilers masquerading as C compilers
6467 incorrectly reject 9223372036854775807. */
6468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6470 && LARGE_OFF_T % 2147483647 == 1)
6471 ? 1 : -1];
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 ac_cv_sys_file_offset_bits=64; break
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 ac_cv_sys_file_offset_bits=unknown
6485 break
6486 done
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6490 case $ac_cv_sys_file_offset_bits in #(
6491 no | unknown) ;;
6492 *)
6493 cat >>confdefs.h <<_ACEOF
6494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6495 _ACEOF
6496 ;;
6497 esac
6498 rm -rf conftest*
6499 if test $ac_cv_sys_file_offset_bits = unknown; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6502 if ${ac_cv_sys_large_files+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 while :; do
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6516 ? 1 : -1];
6517 int
6518 main ()
6519 {
6520
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_sys_large_files=no; break
6527 fi
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _LARGE_FILES 1
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6540 ? 1 : -1];
6541 int
6542 main ()
6543 {
6544
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"; then :
6550 ac_cv_sys_large_files=1; break
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 ac_cv_sys_large_files=unknown
6554 break
6555 done
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6558 $as_echo "$ac_cv_sys_large_files" >&6; }
6559 case $ac_cv_sys_large_files in #(
6560 no | unknown) ;;
6561 *)
6562 cat >>confdefs.h <<_ACEOF
6563 #define _LARGE_FILES $ac_cv_sys_large_files
6564 _ACEOF
6565 ;;
6566 esac
6567 rm -rf conftest*
6568 fi
6569
6570
6571 fi
6572
6573 for ac_func in ppoll
6574 do :
6575 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6576 if test "x$ac_cv_func_ppoll" = xyes; then :
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE_PPOLL 1
6579 _ACEOF
6580
6581 fi
6582 done
6583
6584 for ac_func in openat
6585 do :
6586 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6587 if test "x$ac_cv_func_openat" = xyes; then :
6588 cat >>confdefs.h <<_ACEOF
6589 #define HAVE_OPENAT 1
6590 _ACEOF
6591
6592 fi
6593 done
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6596 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6597 if ${ac_cv_path_SED+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6601 for ac_i in 1 2 3 4 5 6 7; do
6602 ac_script="$ac_script$as_nl$ac_script"
6603 done
6604 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6605 { ac_script=; unset ac_script;}
6606 if test -z "$SED"; then
6607 ac_path_SED_found=false
6608 # Loop through the user's path and test for each of PROGNAME-LIST
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_prog in sed gsed; do
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6617 as_fn_executable_p "$ac_path_SED" || continue
6618 # Check for GNU ac_path_SED and select it if it is found.
6619 # Check for GNU $ac_path_SED
6620 case `"$ac_path_SED" --version 2>&1` in
6621 *GNU*)
6622 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6623 *)
6624 ac_count=0
6625 $as_echo_n 0123456789 >"conftest.in"
6626 while :
6627 do
6628 cat "conftest.in" "conftest.in" >"conftest.tmp"
6629 mv "conftest.tmp" "conftest.in"
6630 cp "conftest.in" "conftest.nl"
6631 $as_echo '' >> "conftest.nl"
6632 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6634 as_fn_arith $ac_count + 1 && ac_count=$as_val
6635 if test $ac_count -gt ${ac_path_SED_max-0}; then
6636 # Best one so far, save it but keep looking for a better one
6637 ac_cv_path_SED="$ac_path_SED"
6638 ac_path_SED_max=$ac_count
6639 fi
6640 # 10*(2^10) chars as input seems more than enough
6641 test $ac_count -gt 10 && break
6642 done
6643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6644 esac
6645
6646 $ac_path_SED_found && break 3
6647 done
6648 done
6649 done
6650 IFS=$as_save_IFS
6651 if test -z "$ac_cv_path_SED"; then
6652 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6653 fi
6654 else
6655 ac_cv_path_SED=$SED
6656 fi
6657
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6660 $as_echo "$ac_cv_path_SED" >&6; }
6661 SED="$ac_cv_path_SED"
6662 rm -f conftest.sed
6663
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6666 $as_echo_n "checking whether NLS is requested... " >&6; }
6667 # Check whether --enable-nls was given.
6668 if test "${enable_nls+set}" = set; then :
6669 enableval=$enable_nls; USE_NLS=$enableval
6670 else
6671 USE_NLS=yes
6672 fi
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6675 $as_echo "$USE_NLS" >&6; }
6676
6677
6678
6679
6680 GETTEXT_MACRO_VERSION=0.19
6681
6682
6683
6684
6685 # Prepare PATH_SEPARATOR.
6686 # The user is always right.
6687 if test "${PATH_SEPARATOR+set}" != set; then
6688 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6689 # contains only /bin. Note that ksh looks also at the FPATH variable,
6690 # so we have to set that as well for the test.
6691 PATH_SEPARATOR=:
6692 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6693 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6694 || PATH_SEPARATOR=';'
6695 }
6696 fi
6697
6698 # Find out how to test for executable files. Don't use a zero-byte file,
6699 # as systems may use methods other than mode bits to determine executability.
6700 cat >conf$$.file <<_ASEOF
6701 #! /bin/sh
6702 exit 0
6703 _ASEOF
6704 chmod +x conf$$.file
6705 if test -x conf$$.file >/dev/null 2>&1; then
6706 ac_executable_p="test -x"
6707 else
6708 ac_executable_p="test -f"
6709 fi
6710 rm -f conf$$.file
6711
6712 # Extract the first word of "msgfmt", so it can be a program name with args.
6713 set dummy msgfmt; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_path_MSGFMT+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 case "$MSGFMT" in
6720 [\\/]* | ?:[\\/]*)
6721 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6722 ;;
6723 *)
6724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6725 for ac_dir in $PATH; do
6726 IFS="$ac_save_IFS"
6727 test -z "$ac_dir" && ac_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6730 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6731 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6732 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6733 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6734 break 2
6735 fi
6736 fi
6737 done
6738 done
6739 IFS="$ac_save_IFS"
6740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6741 ;;
6742 esac
6743 fi
6744 MSGFMT="$ac_cv_path_MSGFMT"
6745 if test "$MSGFMT" != ":"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6747 $as_echo "$MSGFMT" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6754 set dummy gmsgfmt; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_path_GMSGFMT+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 case $GMSGFMT in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6763 ;;
6764 *)
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6781 ;;
6782 esac
6783 fi
6784 GMSGFMT=$ac_cv_path_GMSGFMT
6785 if test -n "$GMSGFMT"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6787 $as_echo "$GMSGFMT" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793
6794
6795 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6796 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6797 *) MSGFMT_015=$MSGFMT ;;
6798 esac
6799
6800 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6801 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6802 *) GMSGFMT_015=$GMSGFMT ;;
6803 esac
6804
6805
6806
6807 # Prepare PATH_SEPARATOR.
6808 # The user is always right.
6809 if test "${PATH_SEPARATOR+set}" != set; then
6810 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6811 # contains only /bin. Note that ksh looks also at the FPATH variable,
6812 # so we have to set that as well for the test.
6813 PATH_SEPARATOR=:
6814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6815 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6816 || PATH_SEPARATOR=';'
6817 }
6818 fi
6819
6820 # Find out how to test for executable files. Don't use a zero-byte file,
6821 # as systems may use methods other than mode bits to determine executability.
6822 cat >conf$$.file <<_ASEOF
6823 #! /bin/sh
6824 exit 0
6825 _ASEOF
6826 chmod +x conf$$.file
6827 if test -x conf$$.file >/dev/null 2>&1; then
6828 ac_executable_p="test -x"
6829 else
6830 ac_executable_p="test -f"
6831 fi
6832 rm -f conf$$.file
6833
6834 # Extract the first word of "xgettext", so it can be a program name with args.
6835 set dummy xgettext; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_path_XGETTEXT+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 case "$XGETTEXT" in
6842 [\\/]* | ?:[\\/]*)
6843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6844 ;;
6845 *)
6846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6847 for ac_dir in $PATH; do
6848 IFS="$ac_save_IFS"
6849 test -z "$ac_dir" && ac_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6852 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6853 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6854 (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
6855 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6856 break 2
6857 fi
6858 fi
6859 done
6860 done
6861 IFS="$ac_save_IFS"
6862 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6863 ;;
6864 esac
6865 fi
6866 XGETTEXT="$ac_cv_path_XGETTEXT"
6867 if test "$XGETTEXT" != ":"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6869 $as_echo "$XGETTEXT" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875 rm -f messages.po
6876
6877 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6878 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6879 *) XGETTEXT_015=$XGETTEXT ;;
6880 esac
6881
6882
6883
6884 # Prepare PATH_SEPARATOR.
6885 # The user is always right.
6886 if test "${PATH_SEPARATOR+set}" != set; then
6887 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6888 # contains only /bin. Note that ksh looks also at the FPATH variable,
6889 # so we have to set that as well for the test.
6890 PATH_SEPARATOR=:
6891 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6892 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6893 || PATH_SEPARATOR=';'
6894 }
6895 fi
6896
6897 # Find out how to test for executable files. Don't use a zero-byte file,
6898 # as systems may use methods other than mode bits to determine executability.
6899 cat >conf$$.file <<_ASEOF
6900 #! /bin/sh
6901 exit 0
6902 _ASEOF
6903 chmod +x conf$$.file
6904 if test -x conf$$.file >/dev/null 2>&1; then
6905 ac_executable_p="test -x"
6906 else
6907 ac_executable_p="test -f"
6908 fi
6909 rm -f conf$$.file
6910
6911 # Extract the first word of "msgmerge", so it can be a program name with args.
6912 set dummy msgmerge; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_path_MSGMERGE+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 case "$MSGMERGE" in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6924 for ac_dir in $PATH; do
6925 IFS="$ac_save_IFS"
6926 test -z "$ac_dir" && ac_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6929 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6930 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6931 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6932 break 2
6933 fi
6934 fi
6935 done
6936 done
6937 IFS="$ac_save_IFS"
6938 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6939 ;;
6940 esac
6941 fi
6942 MSGMERGE="$ac_cv_path_MSGMERGE"
6943 if test "$MSGMERGE" != ":"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6945 $as_echo "$MSGMERGE" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 test -n "$localedir" || localedir='${datadir}/locale'
6953
6954
6955 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6956
6957
6958 ac_config_commands="$ac_config_commands po-directories"
6959
6960
6961
6962 if test "X$prefix" = "XNONE"; then
6963 acl_final_prefix="$ac_default_prefix"
6964 else
6965 acl_final_prefix="$prefix"
6966 fi
6967 if test "X$exec_prefix" = "XNONE"; then
6968 acl_final_exec_prefix='${prefix}'
6969 else
6970 acl_final_exec_prefix="$exec_prefix"
6971 fi
6972 acl_save_prefix="$prefix"
6973 prefix="$acl_final_prefix"
6974 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6975 prefix="$acl_save_prefix"
6976
6977
6978
6979 # Check whether --with-gnu-ld was given.
6980 if test "${with_gnu_ld+set}" = set; then :
6981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6982 else
6983 with_gnu_ld=no
6984 fi
6985
6986 # Prepare PATH_SEPARATOR.
6987 # The user is always right.
6988 if test "${PATH_SEPARATOR+set}" != set; then
6989 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6990 # contains only /bin. Note that ksh looks also at the FPATH variable,
6991 # so we have to set that as well for the test.
6992 PATH_SEPARATOR=:
6993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6994 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6995 || PATH_SEPARATOR=';'
6996 }
6997 fi
6998
6999 ac_prog=ld
7000 if test "$GCC" = yes; then
7001 # Check if gcc -print-prog-name=ld gives a path.
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7003 $as_echo_n "checking for ld used by $CC... " >&6; }
7004 case $host in
7005 *-*-mingw*)
7006 # gcc leaves a trailing carriage return which upsets mingw
7007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7008 *)
7009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7010 esac
7011 case $ac_prog in
7012 # Accept absolute paths.
7013 [\\/]* | ?:[\\/]*)
7014 re_direlt='/[^/][^/]*/\.\./'
7015 # Canonicalize the pathname of ld
7016 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7017 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7018 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7019 done
7020 test -z "$LD" && LD="$ac_prog"
7021 ;;
7022 "")
7023 # If it fails, then pretend we aren't using GCC.
7024 ac_prog=ld
7025 ;;
7026 *)
7027 # If it is relative, then search for the first ld in PATH.
7028 with_gnu_ld=unknown
7029 ;;
7030 esac
7031 elif test "$with_gnu_ld" = yes; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7033 $as_echo_n "checking for GNU ld... " >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7036 $as_echo_n "checking for non-GNU ld... " >&6; }
7037 fi
7038 if ${acl_cv_path_LD+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -z "$LD"; then
7042 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7043 for ac_dir in $PATH; do
7044 IFS="$acl_save_ifs"
7045 test -z "$ac_dir" && ac_dir=.
7046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7047 acl_cv_path_LD="$ac_dir/$ac_prog"
7048 # Check to see if the program is GNU ld. I'd rather use --version,
7049 # but apparently some variants of GNU ld only accept -v.
7050 # Break only if it was the GNU/non-GNU ld that we prefer.
7051 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7052 *GNU* | *'with BFD'*)
7053 test "$with_gnu_ld" != no && break
7054 ;;
7055 *)
7056 test "$with_gnu_ld" != yes && break
7057 ;;
7058 esac
7059 fi
7060 done
7061 IFS="$acl_save_ifs"
7062 else
7063 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7064 fi
7065 fi
7066
7067 LD="$acl_cv_path_LD"
7068 if test -n "$LD"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7070 $as_echo "$LD" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7077 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7078 if ${acl_cv_prog_gnu_ld+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7082 case `$LD -v 2>&1 </dev/null` in
7083 *GNU* | *'with BFD'*)
7084 acl_cv_prog_gnu_ld=yes
7085 ;;
7086 *)
7087 acl_cv_prog_gnu_ld=no
7088 ;;
7089 esac
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7092 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7093 with_gnu_ld=$acl_cv_prog_gnu_ld
7094
7095
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7099 $as_echo_n "checking for shared library run path origin... " >&6; }
7100 if ${acl_cv_rpath+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103
7104 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7105 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7106 . ./conftest.sh
7107 rm -f ./conftest.sh
7108 acl_cv_rpath=done
7109
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7112 $as_echo "$acl_cv_rpath" >&6; }
7113 wl="$acl_cv_wl"
7114 acl_libext="$acl_cv_libext"
7115 acl_shlibext="$acl_cv_shlibext"
7116 acl_libname_spec="$acl_cv_libname_spec"
7117 acl_library_names_spec="$acl_cv_library_names_spec"
7118 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7119 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7120 acl_hardcode_direct="$acl_cv_hardcode_direct"
7121 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7122 # Check whether --enable-rpath was given.
7123 if test "${enable_rpath+set}" = set; then :
7124 enableval=$enable_rpath; :
7125 else
7126 enable_rpath=yes
7127 fi
7128
7129
7130
7131
7132 acl_libdirstem=lib
7133 acl_libdirstem2=
7134 case "$host_os" in
7135 solaris*)
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7137 $as_echo_n "checking for 64-bit host... " >&6; }
7138 if ${gl_cv_solaris_64bit+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143
7144 #ifdef _LP64
7145 sixtyfour bits
7146 #endif
7147
7148 _ACEOF
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7151 gl_cv_solaris_64bit=yes
7152 else
7153 gl_cv_solaris_64bit=no
7154 fi
7155 rm -f conftest*
7156
7157
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7160 $as_echo "$gl_cv_solaris_64bit" >&6; }
7161 if test $gl_cv_solaris_64bit = yes; then
7162 acl_libdirstem=lib/64
7163 case "$host_cpu" in
7164 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7165 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7166 esac
7167 fi
7168 ;;
7169 *)
7170 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7171 if test -n "$searchpath"; then
7172 acl_save_IFS="${IFS= }"; IFS=":"
7173 for searchdir in $searchpath; do
7174 if test -d "$searchdir"; then
7175 case "$searchdir" in
7176 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7177 */../ | */.. )
7178 # Better ignore directories of this form. They are misleading.
7179 ;;
7180 *) searchdir=`cd "$searchdir" && pwd`
7181 case "$searchdir" in
7182 */lib64 ) acl_libdirstem=lib64 ;;
7183 esac ;;
7184 esac
7185 fi
7186 done
7187 IFS="$acl_save_IFS"
7188 fi
7189 ;;
7190 esac
7191 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 use_additional=yes
7205
7206 acl_save_prefix="$prefix"
7207 prefix="$acl_final_prefix"
7208 acl_save_exec_prefix="$exec_prefix"
7209 exec_prefix="$acl_final_exec_prefix"
7210
7211 eval additional_includedir=\"$includedir\"
7212 eval additional_libdir=\"$libdir\"
7213
7214 exec_prefix="$acl_save_exec_prefix"
7215 prefix="$acl_save_prefix"
7216
7217
7218 # Check whether --with-libiconv-prefix was given.
7219 if test "${with_libiconv_prefix+set}" = set; then :
7220 withval=$with_libiconv_prefix;
7221 if test "X$withval" = "Xno"; then
7222 use_additional=no
7223 else
7224 if test "X$withval" = "X"; then
7225
7226 acl_save_prefix="$prefix"
7227 prefix="$acl_final_prefix"
7228 acl_save_exec_prefix="$exec_prefix"
7229 exec_prefix="$acl_final_exec_prefix"
7230
7231 eval additional_includedir=\"$includedir\"
7232 eval additional_libdir=\"$libdir\"
7233
7234 exec_prefix="$acl_save_exec_prefix"
7235 prefix="$acl_save_prefix"
7236
7237 else
7238 additional_includedir="$withval/include"
7239 additional_libdir="$withval/$acl_libdirstem"
7240 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7241 && ! test -d "$withval/$acl_libdirstem"; then
7242 additional_libdir="$withval/$acl_libdirstem2"
7243 fi
7244 fi
7245 fi
7246
7247 fi
7248
7249 LIBICONV=
7250 LTLIBICONV=
7251 INCICONV=
7252 LIBICONV_PREFIX=
7253 HAVE_LIBICONV=
7254 rpathdirs=
7255 ltrpathdirs=
7256 names_already_handled=
7257 names_next_round='iconv '
7258 while test -n "$names_next_round"; do
7259 names_this_round="$names_next_round"
7260 names_next_round=
7261 for name in $names_this_round; do
7262 already_handled=
7263 for n in $names_already_handled; do
7264 if test "$n" = "$name"; then
7265 already_handled=yes
7266 break
7267 fi
7268 done
7269 if test -z "$already_handled"; then
7270 names_already_handled="$names_already_handled $name"
7271 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7272 eval value=\"\$HAVE_LIB$uppername\"
7273 if test -n "$value"; then
7274 if test "$value" = yes; then
7275 eval value=\"\$LIB$uppername\"
7276 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7277 eval value=\"\$LTLIB$uppername\"
7278 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7279 else
7280 :
7281 fi
7282 else
7283 found_dir=
7284 found_la=
7285 found_so=
7286 found_a=
7287 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7288 if test -n "$acl_shlibext"; then
7289 shrext=".$acl_shlibext" # typically: shrext=.so
7290 else
7291 shrext=
7292 fi
7293 if test $use_additional = yes; then
7294 dir="$additional_libdir"
7295 if test -n "$acl_shlibext"; then
7296 if test -f "$dir/$libname$shrext"; then
7297 found_dir="$dir"
7298 found_so="$dir/$libname$shrext"
7299 else
7300 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7301 ver=`(cd "$dir" && \
7302 for f in "$libname$shrext".*; do echo "$f"; done \
7303 | sed -e "s,^$libname$shrext\\\\.,," \
7304 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7305 | sed 1q ) 2>/dev/null`
7306 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7307 found_dir="$dir"
7308 found_so="$dir/$libname$shrext.$ver"
7309 fi
7310 else
7311 eval library_names=\"$acl_library_names_spec\"
7312 for f in $library_names; do
7313 if test -f "$dir/$f"; then
7314 found_dir="$dir"
7315 found_so="$dir/$f"
7316 break
7317 fi
7318 done
7319 fi
7320 fi
7321 fi
7322 if test "X$found_dir" = "X"; then
7323 if test -f "$dir/$libname.$acl_libext"; then
7324 found_dir="$dir"
7325 found_a="$dir/$libname.$acl_libext"
7326 fi
7327 fi
7328 if test "X$found_dir" != "X"; then
7329 if test -f "$dir/$libname.la"; then
7330 found_la="$dir/$libname.la"
7331 fi
7332 fi
7333 fi
7334 if test "X$found_dir" = "X"; then
7335 for x in $LDFLAGS $LTLIBICONV; do
7336
7337 acl_save_prefix="$prefix"
7338 prefix="$acl_final_prefix"
7339 acl_save_exec_prefix="$exec_prefix"
7340 exec_prefix="$acl_final_exec_prefix"
7341 eval x=\"$x\"
7342 exec_prefix="$acl_save_exec_prefix"
7343 prefix="$acl_save_prefix"
7344
7345 case "$x" in
7346 -L*)
7347 dir=`echo "X$x" | sed -e 's/^X-L//'`
7348 if test -n "$acl_shlibext"; then
7349 if test -f "$dir/$libname$shrext"; then
7350 found_dir="$dir"
7351 found_so="$dir/$libname$shrext"
7352 else
7353 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7354 ver=`(cd "$dir" && \
7355 for f in "$libname$shrext".*; do echo "$f"; done \
7356 | sed -e "s,^$libname$shrext\\\\.,," \
7357 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7358 | sed 1q ) 2>/dev/null`
7359 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7360 found_dir="$dir"
7361 found_so="$dir/$libname$shrext.$ver"
7362 fi
7363 else
7364 eval library_names=\"$acl_library_names_spec\"
7365 for f in $library_names; do
7366 if test -f "$dir/$f"; then
7367 found_dir="$dir"
7368 found_so="$dir/$f"
7369 break
7370 fi
7371 done
7372 fi
7373 fi
7374 fi
7375 if test "X$found_dir" = "X"; then
7376 if test -f "$dir/$libname.$acl_libext"; then
7377 found_dir="$dir"
7378 found_a="$dir/$libname.$acl_libext"
7379 fi
7380 fi
7381 if test "X$found_dir" != "X"; then
7382 if test -f "$dir/$libname.la"; then
7383 found_la="$dir/$libname.la"
7384 fi
7385 fi
7386 ;;
7387 esac
7388 if test "X$found_dir" != "X"; then
7389 break
7390 fi
7391 done
7392 fi
7393 if test "X$found_dir" != "X"; then
7394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7395 if test "X$found_so" != "X"; then
7396 if test "$enable_rpath" = no \
7397 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7398 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7400 else
7401 haveit=
7402 for x in $ltrpathdirs; do
7403 if test "X$x" = "X$found_dir"; then
7404 haveit=yes
7405 break
7406 fi
7407 done
7408 if test -z "$haveit"; then
7409 ltrpathdirs="$ltrpathdirs $found_dir"
7410 fi
7411 if test "$acl_hardcode_direct" = yes; then
7412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7413 else
7414 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7415 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7416 haveit=
7417 for x in $rpathdirs; do
7418 if test "X$x" = "X$found_dir"; then
7419 haveit=yes
7420 break
7421 fi
7422 done
7423 if test -z "$haveit"; then
7424 rpathdirs="$rpathdirs $found_dir"
7425 fi
7426 else
7427 haveit=
7428 for x in $LDFLAGS $LIBICONV; do
7429
7430 acl_save_prefix="$prefix"
7431 prefix="$acl_final_prefix"
7432 acl_save_exec_prefix="$exec_prefix"
7433 exec_prefix="$acl_final_exec_prefix"
7434 eval x=\"$x\"
7435 exec_prefix="$acl_save_exec_prefix"
7436 prefix="$acl_save_prefix"
7437
7438 if test "X$x" = "X-L$found_dir"; then
7439 haveit=yes
7440 break
7441 fi
7442 done
7443 if test -z "$haveit"; then
7444 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7445 fi
7446 if test "$acl_hardcode_minus_L" != no; then
7447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7448 else
7449 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7450 fi
7451 fi
7452 fi
7453 fi
7454 else
7455 if test "X$found_a" != "X"; then
7456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7457 else
7458 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7459 fi
7460 fi
7461 additional_includedir=
7462 case "$found_dir" in
7463 */$acl_libdirstem | */$acl_libdirstem/)
7464 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7465 if test "$name" = 'iconv'; then
7466 LIBICONV_PREFIX="$basedir"
7467 fi
7468 additional_includedir="$basedir/include"
7469 ;;
7470 */$acl_libdirstem2 | */$acl_libdirstem2/)
7471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7472 if test "$name" = 'iconv'; then
7473 LIBICONV_PREFIX="$basedir"
7474 fi
7475 additional_includedir="$basedir/include"
7476 ;;
7477 esac
7478 if test "X$additional_includedir" != "X"; then
7479 if test "X$additional_includedir" != "X/usr/include"; then
7480 haveit=
7481 if test "X$additional_includedir" = "X/usr/local/include"; then
7482 if test -n "$GCC"; then
7483 case $host_os in
7484 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7485 esac
7486 fi
7487 fi
7488 if test -z "$haveit"; then
7489 for x in $CPPFLAGS $INCICONV; do
7490
7491 acl_save_prefix="$prefix"
7492 prefix="$acl_final_prefix"
7493 acl_save_exec_prefix="$exec_prefix"
7494 exec_prefix="$acl_final_exec_prefix"
7495 eval x=\"$x\"
7496 exec_prefix="$acl_save_exec_prefix"
7497 prefix="$acl_save_prefix"
7498
7499 if test "X$x" = "X-I$additional_includedir"; then
7500 haveit=yes
7501 break
7502 fi
7503 done
7504 if test -z "$haveit"; then
7505 if test -d "$additional_includedir"; then
7506 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7507 fi
7508 fi
7509 fi
7510 fi
7511 fi
7512 if test -n "$found_la"; then
7513 save_libdir="$libdir"
7514 case "$found_la" in
7515 */* | *\\*) . "$found_la" ;;
7516 *) . "./$found_la" ;;
7517 esac
7518 libdir="$save_libdir"
7519 for dep in $dependency_libs; do
7520 case "$dep" in
7521 -L*)
7522 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7523 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7524 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7525 haveit=
7526 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7527 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7528 if test -n "$GCC"; then
7529 case $host_os in
7530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7531 esac
7532 fi
7533 fi
7534 if test -z "$haveit"; then
7535 haveit=
7536 for x in $LDFLAGS $LIBICONV; do
7537
7538 acl_save_prefix="$prefix"
7539 prefix="$acl_final_prefix"
7540 acl_save_exec_prefix="$exec_prefix"
7541 exec_prefix="$acl_final_exec_prefix"
7542 eval x=\"$x\"
7543 exec_prefix="$acl_save_exec_prefix"
7544 prefix="$acl_save_prefix"
7545
7546 if test "X$x" = "X-L$additional_libdir"; then
7547 haveit=yes
7548 break
7549 fi
7550 done
7551 if test -z "$haveit"; then
7552 if test -d "$additional_libdir"; then
7553 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7554 fi
7555 fi
7556 haveit=
7557 for x in $LDFLAGS $LTLIBICONV; do
7558
7559 acl_save_prefix="$prefix"
7560 prefix="$acl_final_prefix"
7561 acl_save_exec_prefix="$exec_prefix"
7562 exec_prefix="$acl_final_exec_prefix"
7563 eval x=\"$x\"
7564 exec_prefix="$acl_save_exec_prefix"
7565 prefix="$acl_save_prefix"
7566
7567 if test "X$x" = "X-L$additional_libdir"; then
7568 haveit=yes
7569 break
7570 fi
7571 done
7572 if test -z "$haveit"; then
7573 if test -d "$additional_libdir"; then
7574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7575 fi
7576 fi
7577 fi
7578 fi
7579 ;;
7580 -R*)
7581 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7582 if test "$enable_rpath" != no; then
7583 haveit=
7584 for x in $rpathdirs; do
7585 if test "X$x" = "X$dir"; then
7586 haveit=yes
7587 break
7588 fi
7589 done
7590 if test -z "$haveit"; then
7591 rpathdirs="$rpathdirs $dir"
7592 fi
7593 haveit=
7594 for x in $ltrpathdirs; do
7595 if test "X$x" = "X$dir"; then
7596 haveit=yes
7597 break
7598 fi
7599 done
7600 if test -z "$haveit"; then
7601 ltrpathdirs="$ltrpathdirs $dir"
7602 fi
7603 fi
7604 ;;
7605 -l*)
7606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7607 ;;
7608 *.la)
7609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7610 ;;
7611 *)
7612 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7614 ;;
7615 esac
7616 done
7617 fi
7618 else
7619 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7620 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7621 fi
7622 fi
7623 fi
7624 done
7625 done
7626 if test "X$rpathdirs" != "X"; then
7627 if test -n "$acl_hardcode_libdir_separator"; then
7628 alldirs=
7629 for found_dir in $rpathdirs; do
7630 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7631 done
7632 acl_save_libdir="$libdir"
7633 libdir="$alldirs"
7634 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7635 libdir="$acl_save_libdir"
7636 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7637 else
7638 for found_dir in $rpathdirs; do
7639 acl_save_libdir="$libdir"
7640 libdir="$found_dir"
7641 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7642 libdir="$acl_save_libdir"
7643 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7644 done
7645 fi
7646 fi
7647 if test "X$ltrpathdirs" != "X"; then
7648 for found_dir in $ltrpathdirs; do
7649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7650 done
7651 fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7684 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7685 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 gt_save_LIBS="$LIBS"
7689 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #include <CoreFoundation/CFPreferences.h>
7693 int
7694 main ()
7695 {
7696 CFPreferencesCopyAppValue(NULL, NULL)
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_link "$LINENO"; then :
7702 gt_cv_func_CFPreferencesCopyAppValue=yes
7703 else
7704 gt_cv_func_CFPreferencesCopyAppValue=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS="$gt_save_LIBS"
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7711 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7712 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7713
7714 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7718 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7719 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 gt_save_LIBS="$LIBS"
7723 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #include <CoreFoundation/CFLocale.h>
7727 int
7728 main ()
7729 {
7730 CFLocaleCopyCurrent();
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 gt_cv_func_CFLocaleCopyCurrent=yes
7737 else
7738 gt_cv_func_CFLocaleCopyCurrent=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 LIBS="$gt_save_LIBS"
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7745 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7746 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7747
7748 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7749
7750 fi
7751 INTL_MACOSX_LIBS=
7752 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7753 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7754 fi
7755
7756
7757
7758
7759
7760
7761 LIBINTL=
7762 LTLIBINTL=
7763 POSUB=
7764
7765 case " $gt_needs " in
7766 *" need-formatstring-macros "*) gt_api_version=3 ;;
7767 *" need-ngettext "*) gt_api_version=2 ;;
7768 *) gt_api_version=1 ;;
7769 esac
7770 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7771 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7772
7773 if test "$USE_NLS" = "yes"; then
7774 gt_use_preinstalled_gnugettext=no
7775
7776
7777 if test $gt_api_version -ge 3; then
7778 gt_revision_test_code='
7779 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7780 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7781 #endif
7782 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7783 '
7784 else
7785 gt_revision_test_code=
7786 fi
7787 if test $gt_api_version -ge 2; then
7788 gt_expression_test_code=' + * ngettext ("", "", 0)'
7789 else
7790 gt_expression_test_code=
7791 fi
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7794 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7795 if eval \${$gt_func_gnugettext_libc+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800
7801 #include <libintl.h>
7802 $gt_revision_test_code
7803 extern int _nl_msg_cat_cntr;
7804 extern int *_nl_domain_bindings;
7805
7806 int
7807 main ()
7808 {
7809
7810 bindtextdomain ("", "");
7811 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7812
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 eval "$gt_func_gnugettext_libc=yes"
7819 else
7820 eval "$gt_func_gnugettext_libc=no"
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 fi
7825 eval ac_res=\$$gt_func_gnugettext_libc
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828
7829 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7830
7831
7832
7833
7834
7835 am_save_CPPFLAGS="$CPPFLAGS"
7836
7837 for element in $INCICONV; do
7838 haveit=
7839 for x in $CPPFLAGS; do
7840
7841 acl_save_prefix="$prefix"
7842 prefix="$acl_final_prefix"
7843 acl_save_exec_prefix="$exec_prefix"
7844 exec_prefix="$acl_final_exec_prefix"
7845 eval x=\"$x\"
7846 exec_prefix="$acl_save_exec_prefix"
7847 prefix="$acl_save_prefix"
7848
7849 if test "X$x" = "X$element"; then
7850 haveit=yes
7851 break
7852 fi
7853 done
7854 if test -z "$haveit"; then
7855 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7856 fi
7857 done
7858
7859
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7861 $as_echo_n "checking for iconv... " >&6; }
7862 if ${am_cv_func_iconv+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865
7866 am_cv_func_iconv="no, consider installing GNU libiconv"
7867 am_cv_lib_iconv=no
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870
7871 #include <stdlib.h>
7872 #include <iconv.h>
7873
7874 int
7875 main ()
7876 {
7877 iconv_t cd = iconv_open("","");
7878 iconv(cd,NULL,NULL,NULL,NULL);
7879 iconv_close(cd);
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 am_cv_func_iconv=yes
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 if test "$am_cv_func_iconv" != yes; then
7890 am_save_LIBS="$LIBS"
7891 LIBS="$LIBS $LIBICONV"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894
7895 #include <stdlib.h>
7896 #include <iconv.h>
7897
7898 int
7899 main ()
7900 {
7901 iconv_t cd = iconv_open("","");
7902 iconv(cd,NULL,NULL,NULL,NULL);
7903 iconv_close(cd);
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 am_cv_lib_iconv=yes
7910 am_cv_func_iconv=yes
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS="$am_save_LIBS"
7915 fi
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7919 $as_echo "$am_cv_func_iconv" >&6; }
7920 if test "$am_cv_func_iconv" = yes; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7922 $as_echo_n "checking for working iconv... " >&6; }
7923 if ${am_cv_func_iconv_works+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926
7927 am_save_LIBS="$LIBS"
7928 if test $am_cv_lib_iconv = yes; then
7929 LIBS="$LIBS $LIBICONV"
7930 fi
7931 am_cv_func_iconv_works=no
7932 for ac_iconv_const in '' 'const'; do
7933 if test "$cross_compiling" = yes; then :
7934 case "$host_os" in
7935 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7936 *) am_cv_func_iconv_works="guessing yes" ;;
7937 esac
7938 else
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941
7942 #include <iconv.h>
7943 #include <string.h>
7944
7945 #ifndef ICONV_CONST
7946 # define ICONV_CONST $ac_iconv_const
7947 #endif
7948
7949 int
7950 main ()
7951 {
7952 int result = 0;
7953 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7954 returns. */
7955 {
7956 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7957 if (cd_utf8_to_88591 != (iconv_t)(-1))
7958 {
7959 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7960 char buf[10];
7961 ICONV_CONST char *inptr = input;
7962 size_t inbytesleft = strlen (input);
7963 char *outptr = buf;
7964 size_t outbytesleft = sizeof (buf);
7965 size_t res = iconv (cd_utf8_to_88591,
7966 &inptr, &inbytesleft,
7967 &outptr, &outbytesleft);
7968 if (res == 0)
7969 result |= 1;
7970 iconv_close (cd_utf8_to_88591);
7971 }
7972 }
7973 /* Test against Solaris 10 bug: Failures are not distinguishable from
7974 successful returns. */
7975 {
7976 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7977 if (cd_ascii_to_88591 != (iconv_t)(-1))
7978 {
7979 static ICONV_CONST char input[] = "\263";
7980 char buf[10];
7981 ICONV_CONST char *inptr = input;
7982 size_t inbytesleft = strlen (input);
7983 char *outptr = buf;
7984 size_t outbytesleft = sizeof (buf);
7985 size_t res = iconv (cd_ascii_to_88591,
7986 &inptr, &inbytesleft,
7987 &outptr, &outbytesleft);
7988 if (res == 0)
7989 result |= 2;
7990 iconv_close (cd_ascii_to_88591);
7991 }
7992 }
7993 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7994 {
7995 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7996 if (cd_88591_to_utf8 != (iconv_t)(-1))
7997 {
7998 static ICONV_CONST char input[] = "\304";
7999 static char buf[2] = { (char)0xDE, (char)0xAD };
8000 ICONV_CONST char *inptr = input;
8001 size_t inbytesleft = 1;
8002 char *outptr = buf;
8003 size_t outbytesleft = 1;
8004 size_t res = iconv (cd_88591_to_utf8,
8005 &inptr, &inbytesleft,
8006 &outptr, &outbytesleft);
8007 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8008 result |= 4;
8009 iconv_close (cd_88591_to_utf8);
8010 }
8011 }
8012 #if 0 /* This bug could be worked around by the caller. */
8013 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8014 {
8015 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8016 if (cd_88591_to_utf8 != (iconv_t)(-1))
8017 {
8018 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8019 char buf[50];
8020 ICONV_CONST char *inptr = input;
8021 size_t inbytesleft = strlen (input);
8022 char *outptr = buf;
8023 size_t outbytesleft = sizeof (buf);
8024 size_t res = iconv (cd_88591_to_utf8,
8025 &inptr, &inbytesleft,
8026 &outptr, &outbytesleft);
8027 if ((int)res > 0)
8028 result |= 8;
8029 iconv_close (cd_88591_to_utf8);
8030 }
8031 }
8032 #endif
8033 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8034 provided. */
8035 if (/* Try standardized names. */
8036 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8037 /* Try IRIX, OSF/1 names. */
8038 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8039 /* Try AIX names. */
8040 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8041 /* Try HP-UX names. */
8042 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8043 result |= 16;
8044 return result;
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_run "$LINENO"; then :
8051 am_cv_func_iconv_works=yes
8052 fi
8053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8054 conftest.$ac_objext conftest.beam conftest.$ac_ext
8055 fi
8056
8057 test "$am_cv_func_iconv_works" = no || break
8058 done
8059 LIBS="$am_save_LIBS"
8060
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8063 $as_echo "$am_cv_func_iconv_works" >&6; }
8064 case "$am_cv_func_iconv_works" in
8065 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8066 *) am_func_iconv=yes ;;
8067 esac
8068 else
8069 am_func_iconv=no am_cv_lib_iconv=no
8070 fi
8071 if test "$am_func_iconv" = yes; then
8072
8073 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8074
8075 fi
8076 if test "$am_cv_lib_iconv" = yes; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8078 $as_echo_n "checking how to link with libiconv... " >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8080 $as_echo "$LIBICONV" >&6; }
8081 else
8082 CPPFLAGS="$am_save_CPPFLAGS"
8083 LIBICONV=
8084 LTLIBICONV=
8085 fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 use_additional=yes
8098
8099 acl_save_prefix="$prefix"
8100 prefix="$acl_final_prefix"
8101 acl_save_exec_prefix="$exec_prefix"
8102 exec_prefix="$acl_final_exec_prefix"
8103
8104 eval additional_includedir=\"$includedir\"
8105 eval additional_libdir=\"$libdir\"
8106
8107 exec_prefix="$acl_save_exec_prefix"
8108 prefix="$acl_save_prefix"
8109
8110
8111 # Check whether --with-libintl-prefix was given.
8112 if test "${with_libintl_prefix+set}" = set; then :
8113 withval=$with_libintl_prefix;
8114 if test "X$withval" = "Xno"; then
8115 use_additional=no
8116 else
8117 if test "X$withval" = "X"; then
8118
8119 acl_save_prefix="$prefix"
8120 prefix="$acl_final_prefix"
8121 acl_save_exec_prefix="$exec_prefix"
8122 exec_prefix="$acl_final_exec_prefix"
8123
8124 eval additional_includedir=\"$includedir\"
8125 eval additional_libdir=\"$libdir\"
8126
8127 exec_prefix="$acl_save_exec_prefix"
8128 prefix="$acl_save_prefix"
8129
8130 else
8131 additional_includedir="$withval/include"
8132 additional_libdir="$withval/$acl_libdirstem"
8133 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8134 && ! test -d "$withval/$acl_libdirstem"; then
8135 additional_libdir="$withval/$acl_libdirstem2"
8136 fi
8137 fi
8138 fi
8139
8140 fi
8141
8142 LIBINTL=
8143 LTLIBINTL=
8144 INCINTL=
8145 LIBINTL_PREFIX=
8146 HAVE_LIBINTL=
8147 rpathdirs=
8148 ltrpathdirs=
8149 names_already_handled=
8150 names_next_round='intl '
8151 while test -n "$names_next_round"; do
8152 names_this_round="$names_next_round"
8153 names_next_round=
8154 for name in $names_this_round; do
8155 already_handled=
8156 for n in $names_already_handled; do
8157 if test "$n" = "$name"; then
8158 already_handled=yes
8159 break
8160 fi
8161 done
8162 if test -z "$already_handled"; then
8163 names_already_handled="$names_already_handled $name"
8164 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8165 eval value=\"\$HAVE_LIB$uppername\"
8166 if test -n "$value"; then
8167 if test "$value" = yes; then
8168 eval value=\"\$LIB$uppername\"
8169 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8170 eval value=\"\$LTLIB$uppername\"
8171 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8172 else
8173 :
8174 fi
8175 else
8176 found_dir=
8177 found_la=
8178 found_so=
8179 found_a=
8180 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8181 if test -n "$acl_shlibext"; then
8182 shrext=".$acl_shlibext" # typically: shrext=.so
8183 else
8184 shrext=
8185 fi
8186 if test $use_additional = yes; then
8187 dir="$additional_libdir"
8188 if test -n "$acl_shlibext"; then
8189 if test -f "$dir/$libname$shrext"; then
8190 found_dir="$dir"
8191 found_so="$dir/$libname$shrext"
8192 else
8193 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8194 ver=`(cd "$dir" && \
8195 for f in "$libname$shrext".*; do echo "$f"; done \
8196 | sed -e "s,^$libname$shrext\\\\.,," \
8197 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8198 | sed 1q ) 2>/dev/null`
8199 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8200 found_dir="$dir"
8201 found_so="$dir/$libname$shrext.$ver"
8202 fi
8203 else
8204 eval library_names=\"$acl_library_names_spec\"
8205 for f in $library_names; do
8206 if test -f "$dir/$f"; then
8207 found_dir="$dir"
8208 found_so="$dir/$f"
8209 break
8210 fi
8211 done
8212 fi
8213 fi
8214 fi
8215 if test "X$found_dir" = "X"; then
8216 if test -f "$dir/$libname.$acl_libext"; then
8217 found_dir="$dir"
8218 found_a="$dir/$libname.$acl_libext"
8219 fi
8220 fi
8221 if test "X$found_dir" != "X"; then
8222 if test -f "$dir/$libname.la"; then
8223 found_la="$dir/$libname.la"
8224 fi
8225 fi
8226 fi
8227 if test "X$found_dir" = "X"; then
8228 for x in $LDFLAGS $LTLIBINTL; do
8229
8230 acl_save_prefix="$prefix"
8231 prefix="$acl_final_prefix"
8232 acl_save_exec_prefix="$exec_prefix"
8233 exec_prefix="$acl_final_exec_prefix"
8234 eval x=\"$x\"
8235 exec_prefix="$acl_save_exec_prefix"
8236 prefix="$acl_save_prefix"
8237
8238 case "$x" in
8239 -L*)
8240 dir=`echo "X$x" | sed -e 's/^X-L//'`
8241 if test -n "$acl_shlibext"; then
8242 if test -f "$dir/$libname$shrext"; then
8243 found_dir="$dir"
8244 found_so="$dir/$libname$shrext"
8245 else
8246 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8247 ver=`(cd "$dir" && \
8248 for f in "$libname$shrext".*; do echo "$f"; done \
8249 | sed -e "s,^$libname$shrext\\\\.,," \
8250 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8251 | sed 1q ) 2>/dev/null`
8252 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8253 found_dir="$dir"
8254 found_so="$dir/$libname$shrext.$ver"
8255 fi
8256 else
8257 eval library_names=\"$acl_library_names_spec\"
8258 for f in $library_names; do
8259 if test -f "$dir/$f"; then
8260 found_dir="$dir"
8261 found_so="$dir/$f"
8262 break
8263 fi
8264 done
8265 fi
8266 fi
8267 fi
8268 if test "X$found_dir" = "X"; then
8269 if test -f "$dir/$libname.$acl_libext"; then
8270 found_dir="$dir"
8271 found_a="$dir/$libname.$acl_libext"
8272 fi
8273 fi
8274 if test "X$found_dir" != "X"; then
8275 if test -f "$dir/$libname.la"; then
8276 found_la="$dir/$libname.la"
8277 fi
8278 fi
8279 ;;
8280 esac
8281 if test "X$found_dir" != "X"; then
8282 break
8283 fi
8284 done
8285 fi
8286 if test "X$found_dir" != "X"; then
8287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8288 if test "X$found_so" != "X"; then
8289 if test "$enable_rpath" = no \
8290 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8291 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8293 else
8294 haveit=
8295 for x in $ltrpathdirs; do
8296 if test "X$x" = "X$found_dir"; then
8297 haveit=yes
8298 break
8299 fi
8300 done
8301 if test -z "$haveit"; then
8302 ltrpathdirs="$ltrpathdirs $found_dir"
8303 fi
8304 if test "$acl_hardcode_direct" = yes; then
8305 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8306 else
8307 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8308 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8309 haveit=
8310 for x in $rpathdirs; do
8311 if test "X$x" = "X$found_dir"; then
8312 haveit=yes
8313 break
8314 fi
8315 done
8316 if test -z "$haveit"; then
8317 rpathdirs="$rpathdirs $found_dir"
8318 fi
8319 else
8320 haveit=
8321 for x in $LDFLAGS $LIBINTL; do
8322
8323 acl_save_prefix="$prefix"
8324 prefix="$acl_final_prefix"
8325 acl_save_exec_prefix="$exec_prefix"
8326 exec_prefix="$acl_final_exec_prefix"
8327 eval x=\"$x\"
8328 exec_prefix="$acl_save_exec_prefix"
8329 prefix="$acl_save_prefix"
8330
8331 if test "X$x" = "X-L$found_dir"; then
8332 haveit=yes
8333 break
8334 fi
8335 done
8336 if test -z "$haveit"; then
8337 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8338 fi
8339 if test "$acl_hardcode_minus_L" != no; then
8340 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8341 else
8342 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8343 fi
8344 fi
8345 fi
8346 fi
8347 else
8348 if test "X$found_a" != "X"; then
8349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8350 else
8351 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8352 fi
8353 fi
8354 additional_includedir=
8355 case "$found_dir" in
8356 */$acl_libdirstem | */$acl_libdirstem/)
8357 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8358 if test "$name" = 'intl'; then
8359 LIBINTL_PREFIX="$basedir"
8360 fi
8361 additional_includedir="$basedir/include"
8362 ;;
8363 */$acl_libdirstem2 | */$acl_libdirstem2/)
8364 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8365 if test "$name" = 'intl'; then
8366 LIBINTL_PREFIX="$basedir"
8367 fi
8368 additional_includedir="$basedir/include"
8369 ;;
8370 esac
8371 if test "X$additional_includedir" != "X"; then
8372 if test "X$additional_includedir" != "X/usr/include"; then
8373 haveit=
8374 if test "X$additional_includedir" = "X/usr/local/include"; then
8375 if test -n "$GCC"; then
8376 case $host_os in
8377 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8378 esac
8379 fi
8380 fi
8381 if test -z "$haveit"; then
8382 for x in $CPPFLAGS $INCINTL; do
8383
8384 acl_save_prefix="$prefix"
8385 prefix="$acl_final_prefix"
8386 acl_save_exec_prefix="$exec_prefix"
8387 exec_prefix="$acl_final_exec_prefix"
8388 eval x=\"$x\"
8389 exec_prefix="$acl_save_exec_prefix"
8390 prefix="$acl_save_prefix"
8391
8392 if test "X$x" = "X-I$additional_includedir"; then
8393 haveit=yes
8394 break
8395 fi
8396 done
8397 if test -z "$haveit"; then
8398 if test -d "$additional_includedir"; then
8399 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8400 fi
8401 fi
8402 fi
8403 fi
8404 fi
8405 if test -n "$found_la"; then
8406 save_libdir="$libdir"
8407 case "$found_la" in
8408 */* | *\\*) . "$found_la" ;;
8409 *) . "./$found_la" ;;
8410 esac
8411 libdir="$save_libdir"
8412 for dep in $dependency_libs; do
8413 case "$dep" in
8414 -L*)
8415 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8416 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8417 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8418 haveit=
8419 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8420 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8421 if test -n "$GCC"; then
8422 case $host_os in
8423 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8424 esac
8425 fi
8426 fi
8427 if test -z "$haveit"; then
8428 haveit=
8429 for x in $LDFLAGS $LIBINTL; do
8430
8431 acl_save_prefix="$prefix"
8432 prefix="$acl_final_prefix"
8433 acl_save_exec_prefix="$exec_prefix"
8434 exec_prefix="$acl_final_exec_prefix"
8435 eval x=\"$x\"
8436 exec_prefix="$acl_save_exec_prefix"
8437 prefix="$acl_save_prefix"
8438
8439 if test "X$x" = "X-L$additional_libdir"; then
8440 haveit=yes
8441 break
8442 fi
8443 done
8444 if test -z "$haveit"; then
8445 if test -d "$additional_libdir"; then
8446 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8447 fi
8448 fi
8449 haveit=
8450 for x in $LDFLAGS $LTLIBINTL; do
8451
8452 acl_save_prefix="$prefix"
8453 prefix="$acl_final_prefix"
8454 acl_save_exec_prefix="$exec_prefix"
8455 exec_prefix="$acl_final_exec_prefix"
8456 eval x=\"$x\"
8457 exec_prefix="$acl_save_exec_prefix"
8458 prefix="$acl_save_prefix"
8459
8460 if test "X$x" = "X-L$additional_libdir"; then
8461 haveit=yes
8462 break
8463 fi
8464 done
8465 if test -z "$haveit"; then
8466 if test -d "$additional_libdir"; then
8467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8468 fi
8469 fi
8470 fi
8471 fi
8472 ;;
8473 -R*)
8474 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8475 if test "$enable_rpath" != no; then
8476 haveit=
8477 for x in $rpathdirs; do
8478 if test "X$x" = "X$dir"; then
8479 haveit=yes
8480 break
8481 fi
8482 done
8483 if test -z "$haveit"; then
8484 rpathdirs="$rpathdirs $dir"
8485 fi
8486 haveit=
8487 for x in $ltrpathdirs; do
8488 if test "X$x" = "X$dir"; then
8489 haveit=yes
8490 break
8491 fi
8492 done
8493 if test -z "$haveit"; then
8494 ltrpathdirs="$ltrpathdirs $dir"
8495 fi
8496 fi
8497 ;;
8498 -l*)
8499 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8500 ;;
8501 *.la)
8502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8503 ;;
8504 *)
8505 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8506 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8507 ;;
8508 esac
8509 done
8510 fi
8511 else
8512 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8514 fi
8515 fi
8516 fi
8517 done
8518 done
8519 if test "X$rpathdirs" != "X"; then
8520 if test -n "$acl_hardcode_libdir_separator"; then
8521 alldirs=
8522 for found_dir in $rpathdirs; do
8523 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8524 done
8525 acl_save_libdir="$libdir"
8526 libdir="$alldirs"
8527 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8528 libdir="$acl_save_libdir"
8529 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8530 else
8531 for found_dir in $rpathdirs; do
8532 acl_save_libdir="$libdir"
8533 libdir="$found_dir"
8534 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8535 libdir="$acl_save_libdir"
8536 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8537 done
8538 fi
8539 fi
8540 if test "X$ltrpathdirs" != "X"; then
8541 for found_dir in $ltrpathdirs; do
8542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8543 done
8544 fi
8545
8546
8547
8548
8549
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8552 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8553 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 gt_save_CPPFLAGS="$CPPFLAGS"
8557 CPPFLAGS="$CPPFLAGS $INCINTL"
8558 gt_save_LIBS="$LIBS"
8559 LIBS="$LIBS $LIBINTL"
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562
8563 #include <libintl.h>
8564 $gt_revision_test_code
8565 extern int _nl_msg_cat_cntr;
8566 extern
8567 #ifdef __cplusplus
8568 "C"
8569 #endif
8570 const char *_nl_expand_alias (const char *);
8571
8572 int
8573 main ()
8574 {
8575
8576 bindtextdomain ("", "");
8577 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8578
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 eval "$gt_func_gnugettext_libintl=yes"
8585 else
8586 eval "$gt_func_gnugettext_libintl=no"
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8591 LIBS="$LIBS $LIBICONV"
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594
8595 #include <libintl.h>
8596 $gt_revision_test_code
8597 extern int _nl_msg_cat_cntr;
8598 extern
8599 #ifdef __cplusplus
8600 "C"
8601 #endif
8602 const char *_nl_expand_alias (const char *);
8603
8604 int
8605 main ()
8606 {
8607
8608 bindtextdomain ("", "");
8609 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 LIBINTL="$LIBINTL $LIBICONV"
8617 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8618 eval "$gt_func_gnugettext_libintl=yes"
8619
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 fi
8624 CPPFLAGS="$gt_save_CPPFLAGS"
8625 LIBS="$gt_save_LIBS"
8626 fi
8627 eval ac_res=\$$gt_func_gnugettext_libintl
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8629 $as_echo "$ac_res" >&6; }
8630 fi
8631
8632 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8633 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8634 && test "$PACKAGE" != gettext-runtime \
8635 && test "$PACKAGE" != gettext-tools; }; then
8636 gt_use_preinstalled_gnugettext=yes
8637 else
8638 LIBINTL=
8639 LTLIBINTL=
8640 INCINTL=
8641 fi
8642
8643
8644
8645 if test -n "$INTL_MACOSX_LIBS"; then
8646 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8647 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8648 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8649 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8650 fi
8651 fi
8652
8653 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8654 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8655
8656 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8657
8658 else
8659 USE_NLS=no
8660 fi
8661 fi
8662
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8664 $as_echo_n "checking whether to use NLS... " >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8666 $as_echo "$USE_NLS" >&6; }
8667 if test "$USE_NLS" = "yes"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8669 $as_echo_n "checking where the gettext function comes from... " >&6; }
8670 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8671 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8672 gt_source="external libintl"
8673 else
8674 gt_source="libc"
8675 fi
8676 else
8677 gt_source="included intl directory"
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8680 $as_echo "$gt_source" >&6; }
8681 fi
8682
8683 if test "$USE_NLS" = "yes"; then
8684
8685 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8686 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8688 $as_echo_n "checking how to link with libintl... " >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8690 $as_echo "$LIBINTL" >&6; }
8691
8692 for element in $INCINTL; do
8693 haveit=
8694 for x in $CPPFLAGS; do
8695
8696 acl_save_prefix="$prefix"
8697 prefix="$acl_final_prefix"
8698 acl_save_exec_prefix="$exec_prefix"
8699 exec_prefix="$acl_final_exec_prefix"
8700 eval x=\"$x\"
8701 exec_prefix="$acl_save_exec_prefix"
8702 prefix="$acl_save_prefix"
8703
8704 if test "X$x" = "X$element"; then
8705 haveit=yes
8706 break
8707 fi
8708 done
8709 if test -z "$haveit"; then
8710 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8711 fi
8712 done
8713
8714 fi
8715
8716
8717 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8718
8719
8720 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8721
8722 fi
8723
8724 POSUB=po
8725 fi
8726
8727
8728
8729 INTLLIBS="$LIBINTL"
8730
8731
8732
8733
8734
8735
8736
8737
8738 if test "x$GMSGFMT" = "x:"; then
8739 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
8740 fi
8741
8742 # We want the 'PYTHON' varible to be python version 2. We also want
8743 # our custom 'PYTHON3' varible to be python version 3.
8744 #
8745 # Note that the python2/python3 code was inspired by code in the
8746 # 'abrt' configure:
8747 # <https://github.com/abrt/abrt/blob/master/configure.ac>
8748 #
8749 # First, figure out what version of python is in the executable named
8750 # 'python'. On most systems that is python version 2, but on arch
8751 # linux that is python version 3.
8752 # Extract the first word of "python", so it can be a program name with args.
8753 set dummy python; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 case $PYTHON_UNKNOWN in
8760 [\\/]* | ?:[\\/]*)
8761 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
8762 ;;
8763 *)
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775 done
8776 done
8777 IFS=$as_save_IFS
8778
8779 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
8780 ;;
8781 esac
8782 fi
8783 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
8784 if test -n "$PYTHON_UNKNOWN"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
8786 $as_echo "$PYTHON_UNKNOWN" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792
8793 if test "x$PYTHON_UNKNOWN" != "xno"; then
8794 # OK, we found 'python'. What version is it?
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
8796 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
8797 if ${ac_cv_python_unknown_version+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
8803 $as_echo "$ac_cv_python_unknown_version" >&6; }
8804 fi
8805
8806 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
8807 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
8808 # that the m4_define happens when autoconf is run, but the
8809 # FIRST_PYTHON_INTERPRETER variable expansion will happen when the
8810 # user runs configure.
8811 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
8812 FIRST_PYTHON_INTERPRETER=python
8813 else
8814 FIRST_PYTHON_INTERPRETER=python2
8815 fi
8816
8817
8818 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
8819 # version 2 only).
8820
8821
8822
8823
8824
8825
8826 if test -n "$PYTHON"; then
8827 # If the user set $PYTHON, use it and don't search something else.
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8829 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8830 prog="import sys
8831 # split strings by '.' and convert to numeric. Append some zeros
8832 # because we need at least 4 digits for the hex conversion.
8833 # map returns an iterator in Python 3.0 and a list in 2.x
8834 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8835 minverhex = 0
8836 # xrange is not present in Python 3.0 and range returns an iterator
8837 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8838 sys.exit(sys.hexversion < minverhex)"
8839 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8840 ($PYTHON -c "$prog") >&5 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; then :
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8845 $as_echo "yes" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8849 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8850 fi
8851 am_display_PYTHON=$PYTHON
8852 else
8853 # Otherwise, try each interpreter until we find one that satisfies
8854 # VERSION.
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8856 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8857 if ${am_cv_pathless_PYTHON+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860
8861 for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do
8862 test "$am_cv_pathless_PYTHON" = none && break
8863 prog="import sys
8864 # split strings by '.' and convert to numeric. Append some zeros
8865 # because we need at least 4 digits for the hex conversion.
8866 # map returns an iterator in Python 3.0 and a list in 2.x
8867 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8868 minverhex = 0
8869 # xrange is not present in Python 3.0 and range returns an iterator
8870 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8871 sys.exit(sys.hexversion < minverhex)"
8872 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8873 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; then :
8877 break
8878 fi
8879 done
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8882 $as_echo "$am_cv_pathless_PYTHON" >&6; }
8883 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8884 if test "$am_cv_pathless_PYTHON" = none; then
8885 PYTHON=:
8886 else
8887 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8888 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_path_PYTHON+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 case $PYTHON in
8895 [\\/]* | ?:[\\/]*)
8896 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8897 ;;
8898 *)
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8901 do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8906 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910 done
8911 done
8912 IFS=$as_save_IFS
8913
8914 ;;
8915 esac
8916 fi
8917 PYTHON=$ac_cv_path_PYTHON
8918 if test -n "$PYTHON"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8920 $as_echo "$PYTHON" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 fi
8925
8926
8927 fi
8928 am_display_PYTHON=$am_cv_pathless_PYTHON
8929 fi
8930
8931
8932 if test "$PYTHON" = :; then
8933 :
8934 else
8935
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
8938 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
8939 if ${am_cv_python_version+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
8945 $as_echo "$am_cv_python_version" >&6; }
8946 PYTHON_VERSION=$am_cv_python_version
8947
8948
8949
8950 PYTHON_PREFIX='${prefix}'
8951
8952 PYTHON_EXEC_PREFIX='${exec_prefix}'
8953
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
8957 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
8958 if ${am_cv_python_platform+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
8964 $as_echo "$am_cv_python_platform" >&6; }
8965 PYTHON_PLATFORM=$am_cv_python_platform
8966
8967
8968 # Just factor out some code duplication.
8969 am_python_setup_sysconfig="\
8970 import sys
8971 # Prefer sysconfig over distutils.sysconfig, for better compatibility
8972 # with python 3.x. See automake bug#10227.
8973 try:
8974 import sysconfig
8975 except ImportError:
8976 can_use_sysconfig = 0
8977 else:
8978 can_use_sysconfig = 1
8979 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
8980 # <https://github.com/pypa/virtualenv/issues/118>
8981 try:
8982 from platform import python_implementation
8983 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
8984 can_use_sysconfig = 0
8985 except ImportError:
8986 pass"
8987
8988
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
8990 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
8991 if ${am_cv_python_pythondir+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test "x$prefix" = xNONE
8995 then
8996 am_py_prefix=$ac_default_prefix
8997 else
8998 am_py_prefix=$prefix
8999 fi
9000 am_cv_python_pythondir=`$PYTHON -c "
9001 $am_python_setup_sysconfig
9002 if can_use_sysconfig:
9003 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9004 else:
9005 from distutils import sysconfig
9006 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9007 sys.stdout.write(sitedir)"`
9008 case $am_cv_python_pythondir in
9009 $am_py_prefix*)
9010 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9011 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9012 ;;
9013 *)
9014 case $am_py_prefix in
9015 /usr|/System*) ;;
9016 *)
9017 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9018 ;;
9019 esac
9020 ;;
9021 esac
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9025 $as_echo "$am_cv_python_pythondir" >&6; }
9026 pythondir=$am_cv_python_pythondir
9027
9028
9029
9030 pkgpythondir=\${pythondir}/$PACKAGE
9031
9032
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9034 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9035 if ${am_cv_python_pyexecdir+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 if test "x$exec_prefix" = xNONE
9039 then
9040 am_py_exec_prefix=$am_py_prefix
9041 else
9042 am_py_exec_prefix=$exec_prefix
9043 fi
9044 am_cv_python_pyexecdir=`$PYTHON -c "
9045 $am_python_setup_sysconfig
9046 if can_use_sysconfig:
9047 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9048 else:
9049 from distutils import sysconfig
9050 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9051 sys.stdout.write(sitedir)"`
9052 case $am_cv_python_pyexecdir in
9053 $am_py_exec_prefix*)
9054 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9055 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9056 ;;
9057 *)
9058 case $am_py_exec_prefix in
9059 /usr|/System*) ;;
9060 *)
9061 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9062 ;;
9063 esac
9064 ;;
9065 esac
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9069 $as_echo "$am_cv_python_pyexecdir" >&6; }
9070 pyexecdir=$am_cv_python_pyexecdir
9071
9072
9073
9074 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9075
9076
9077
9078 fi
9079
9080
9081 python_basename=$(basename "$PYTHON")
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define PYTHON_BASENAME "${python_basename}"
9085 _ACEOF
9086
9087 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
9088 # pyexecdir variables get sent down to the subconfigure in the
9089 # testsuite directory.
9090 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
9091
9092 # Now let's try to find python version 3.
9093 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then
9094 # Extract the first word of "python", so it can be a program name with args.
9095 set dummy python; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_path_PYTHON3+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 case $PYTHON3 in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9104 ;;
9105 *)
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 ;;
9122 esac
9123 fi
9124 PYTHON3=$ac_cv_path_PYTHON3
9125 if test -n "$PYTHON3"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9127 $as_echo "$PYTHON3" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132
9133
9134 else
9135 for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9136 do
9137 # Extract the first word of "$ac_prog", so it can be a program name with args.
9138 set dummy $ac_prog; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if ${ac_cv_path_PYTHON3+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 case $PYTHON3 in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9147 ;;
9148 *)
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9151 do
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9156 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9159 fi
9160 done
9161 done
9162 IFS=$as_save_IFS
9163
9164 ;;
9165 esac
9166 fi
9167 PYTHON3=$ac_cv_path_PYTHON3
9168 if test -n "$PYTHON3"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9170 $as_echo "$PYTHON3" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177 test -n "$PYTHON3" && break
9178 done
9179
9180 fi
9181 python3_basename=$(basename "$PYTHON3")
9182
9183 cat >>confdefs.h <<_ACEOF
9184 #define PYTHON3_BASENAME "${python3_basename}"
9185 _ACEOF
9186
9187
9188 # If we found python version 3, set up the other variables for python
9189 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9190 if test -n "$PYTHON3"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9192 $as_echo_n "checking for python3 version... " >&6; }
9193 if ${ac_cv_python3_version+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9199 $as_echo "$ac_cv_python3_version" >&6; }
9200 PYTHON3_VERSION=$ac_cv_python3_version
9201
9202 PYTHON3_PREFIX='${prefix}'
9203
9204 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9207 $as_echo_n "checking for python3 platform... " >&6; }
9208 if ${ac_cv_python3_platform+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9214 $as_echo "$ac_cv_python3_platform" >&6; }
9215 PYTHON3_PLATFORM=$ac_cv_python3_platform
9216
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9219 $as_echo_n "checking for python3 script directory... " >&6; }
9220 if ${ac_cv_python3_dir+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9226 $as_echo "$ac_cv_python3_dir" >&6; }
9227 python3dir=$ac_cv_python3_dir
9228
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9231 $as_echo_n "checking for python3 extension module directory... " >&6; }
9232 if ${ac_cv_py3execdir+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9238 $as_echo "$ac_cv_py3execdir" >&6; }
9239 py3execdir=$ac_cv_py3execdir
9240
9241
9242 # Make sure the python3 and py3execdir variables get sent down to
9243 # the subconfigure in the testsuite directory.
9244 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
9245 fi
9246
9247 if test "${enable_prologues+set}" != set; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9249 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9250 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9251 echo ' yes '
9252 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9253 enable_prologues=yes
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9255 $as_echo "yes" >&6; }
9256 else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260 fi
9261 # Check whether --enable-prologues was given.
9262 if test "${enable_prologues+set}" = set; then :
9263 enableval=$enable_prologues;
9264 if test "$enable_prologues" = yes; then
9265
9266 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9267
9268 fi
9269 fi
9270
9271
9272
9273 if test "${enable_sdt_probes+set}" != set; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9275 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9276 if { echo '#if __GNUC__ < 4'
9277 echo ' yes '
9278 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9279 enable_sdt_probes=no
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9284 $as_echo "yes" >&6; }
9285 fi
9286 fi
9287 # Check whether --enable-sdt-probes was given.
9288 if test "${enable_sdt_probes+set}" = set; then :
9289 enableval=$enable_sdt_probes;
9290 fi
9291
9292 if test "x$enable_sdt_probes" != xno; then :
9293
9294
9295 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9296
9297
9298 fi
9299
9300
9301 ax_cxx_compile_cxx11_required=false
9302 ac_ext=cpp
9303 ac_cpp='$CXXCPP $CPPFLAGS'
9304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9307 ac_success=no
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9309 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9310 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315
9316
9317 // If the compiler admits that it is not ready for C++11, why torture it?
9318 // Hopefully, this will speed up the test.
9319
9320 #ifndef __cplusplus
9321
9322 #error "This is not a C++ compiler"
9323
9324 #elif __cplusplus < 201103L
9325
9326 #error "This is not a C++11 compiler"
9327
9328 #else
9329
9330 namespace cxx11
9331 {
9332
9333 namespace test_static_assert
9334 {
9335
9336 template <typename T>
9337 struct check
9338 {
9339 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9340 };
9341
9342 }
9343
9344 namespace test_final_override
9345 {
9346
9347 struct Base
9348 {
9349 virtual void f() {}
9350 };
9351
9352 struct Derived : public Base
9353 {
9354 virtual void f() override {}
9355 };
9356
9357 }
9358
9359 namespace test_double_right_angle_brackets
9360 {
9361
9362 template < typename T >
9363 struct check {};
9364
9365 typedef check<void> single_type;
9366 typedef check<check<void>> double_type;
9367 typedef check<check<check<void>>> triple_type;
9368 typedef check<check<check<check<void>>>> quadruple_type;
9369
9370 }
9371
9372 namespace test_decltype
9373 {
9374
9375 int
9376 f()
9377 {
9378 int a = 1;
9379 decltype(a) b = 2;
9380 return a + b;
9381 }
9382
9383 }
9384
9385 namespace test_type_deduction
9386 {
9387
9388 template < typename T1, typename T2 >
9389 struct is_same
9390 {
9391 static const bool value = false;
9392 };
9393
9394 template < typename T >
9395 struct is_same<T, T>
9396 {
9397 static const bool value = true;
9398 };
9399
9400 template < typename T1, typename T2 >
9401 auto
9402 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9403 {
9404 return a1 + a2;
9405 }
9406
9407 int
9408 test(const int c, volatile int v)
9409 {
9410 static_assert(is_same<int, decltype(0)>::value == true, "");
9411 static_assert(is_same<int, decltype(c)>::value == false, "");
9412 static_assert(is_same<int, decltype(v)>::value == false, "");
9413 auto ac = c;
9414 auto av = v;
9415 auto sumi = ac + av + 'x';
9416 auto sumf = ac + av + 1.0;
9417 static_assert(is_same<int, decltype(ac)>::value == true, "");
9418 static_assert(is_same<int, decltype(av)>::value == true, "");
9419 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9420 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9421 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9422 return (sumf > 0.0) ? sumi : add(c, v);
9423 }
9424
9425 }
9426
9427 namespace test_noexcept
9428 {
9429
9430 int f() { return 0; }
9431 int g() noexcept { return 0; }
9432
9433 static_assert(noexcept(f()) == false, "");
9434 static_assert(noexcept(g()) == true, "");
9435
9436 }
9437
9438 namespace test_constexpr
9439 {
9440
9441 template < typename CharT >
9442 unsigned long constexpr
9443 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9444 {
9445 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9446 }
9447
9448 template < typename CharT >
9449 unsigned long constexpr
9450 strlen_c(const CharT *const s) noexcept
9451 {
9452 return strlen_c_r(s, 0UL);
9453 }
9454
9455 static_assert(strlen_c("") == 0UL, "");
9456 static_assert(strlen_c("1") == 1UL, "");
9457 static_assert(strlen_c("example") == 7UL, "");
9458 static_assert(strlen_c("another\0example") == 7UL, "");
9459
9460 }
9461
9462 namespace test_rvalue_references
9463 {
9464
9465 template < int N >
9466 struct answer
9467 {
9468 static constexpr int value = N;
9469 };
9470
9471 answer<1> f(int&) { return answer<1>(); }
9472 answer<2> f(const int&) { return answer<2>(); }
9473 answer<3> f(int&&) { return answer<3>(); }
9474
9475 void
9476 test()
9477 {
9478 int i = 0;
9479 const int c = 0;
9480 static_assert(decltype(f(i))::value == 1, "");
9481 static_assert(decltype(f(c))::value == 2, "");
9482 static_assert(decltype(f(0))::value == 3, "");
9483 }
9484
9485 }
9486
9487 namespace test_uniform_initialization
9488 {
9489
9490 struct test
9491 {
9492 static const int zero {};
9493 static const int one {1};
9494 };
9495
9496 static_assert(test::zero == 0, "");
9497 static_assert(test::one == 1, "");
9498
9499 }
9500
9501 namespace test_lambdas
9502 {
9503
9504 void
9505 test1()
9506 {
9507 auto lambda1 = [](){};
9508 auto lambda2 = lambda1;
9509 lambda1();
9510 lambda2();
9511 }
9512
9513 int
9514 test2()
9515 {
9516 auto a = [](int i, int j){ return i + j; }(1, 2);
9517 auto b = []() -> int { return '0'; }();
9518 auto c = [=](){ return a + b; }();
9519 auto d = [&](){ return c; }();
9520 auto e = [a, &b](int x) mutable {
9521 const auto identity = [](int y){ return y; };
9522 for (auto i = 0; i < a; ++i)
9523 a += b--;
9524 return x + identity(a + b);
9525 }(0);
9526 return a + b + c + d + e;
9527 }
9528
9529 int
9530 test3()
9531 {
9532 const auto nullary = [](){ return 0; };
9533 const auto unary = [](int x){ return x; };
9534 using nullary_t = decltype(nullary);
9535 using unary_t = decltype(unary);
9536 const auto higher1st = [](nullary_t f){ return f(); };
9537 const auto higher2nd = [unary](nullary_t f1){
9538 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9539 };
9540 return higher1st(nullary) + higher2nd(nullary)(unary);
9541 }
9542
9543 }
9544
9545 namespace test_variadic_templates
9546 {
9547
9548 template <int...>
9549 struct sum;
9550
9551 template <int N0, int... N1toN>
9552 struct sum<N0, N1toN...>
9553 {
9554 static constexpr auto value = N0 + sum<N1toN...>::value;
9555 };
9556
9557 template <>
9558 struct sum<>
9559 {
9560 static constexpr auto value = 0;
9561 };
9562
9563 static_assert(sum<>::value == 0, "");
9564 static_assert(sum<1>::value == 1, "");
9565 static_assert(sum<23>::value == 23, "");
9566 static_assert(sum<1, 2>::value == 3, "");
9567 static_assert(sum<5, 5, 11>::value == 21, "");
9568 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9569
9570 }
9571
9572 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9573 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9574 // because of this.
9575 namespace test_template_alias_sfinae
9576 {
9577
9578 struct foo {};
9579
9580 template<typename T>
9581 using member = typename T::member_type;
9582
9583 template<typename T>
9584 void func(...) {}
9585
9586 template<typename T>
9587 void func(member<T>*) {}
9588
9589 void test();
9590
9591 void test() { func<foo>(0); }
9592
9593 }
9594
9595 } // namespace cxx11
9596
9597 #endif // __cplusplus >= 201103L
9598
9599
9600
9601 _ACEOF
9602 if ac_fn_cxx_try_compile "$LINENO"; then :
9603 ax_cv_cxx_compile_cxx11=yes
9604 else
9605 ax_cv_cxx_compile_cxx11=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9610 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
9611 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9612 ac_success=yes
9613 fi
9614
9615
9616
9617 if test x$ac_success = xno; then
9618 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
9619 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
9621 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
9622 if eval \${$cachevar+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 ac_save_CXX="$CXX"
9626 CXX="$CXX $switch"
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629
9630
9631 // If the compiler admits that it is not ready for C++11, why torture it?
9632 // Hopefully, this will speed up the test.
9633
9634 #ifndef __cplusplus
9635
9636 #error "This is not a C++ compiler"
9637
9638 #elif __cplusplus < 201103L
9639
9640 #error "This is not a C++11 compiler"
9641
9642 #else
9643
9644 namespace cxx11
9645 {
9646
9647 namespace test_static_assert
9648 {
9649
9650 template <typename T>
9651 struct check
9652 {
9653 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9654 };
9655
9656 }
9657
9658 namespace test_final_override
9659 {
9660
9661 struct Base
9662 {
9663 virtual void f() {}
9664 };
9665
9666 struct Derived : public Base
9667 {
9668 virtual void f() override {}
9669 };
9670
9671 }
9672
9673 namespace test_double_right_angle_brackets
9674 {
9675
9676 template < typename T >
9677 struct check {};
9678
9679 typedef check<void> single_type;
9680 typedef check<check<void>> double_type;
9681 typedef check<check<check<void>>> triple_type;
9682 typedef check<check<check<check<void>>>> quadruple_type;
9683
9684 }
9685
9686 namespace test_decltype
9687 {
9688
9689 int
9690 f()
9691 {
9692 int a = 1;
9693 decltype(a) b = 2;
9694 return a + b;
9695 }
9696
9697 }
9698
9699 namespace test_type_deduction
9700 {
9701
9702 template < typename T1, typename T2 >
9703 struct is_same
9704 {
9705 static const bool value = false;
9706 };
9707
9708 template < typename T >
9709 struct is_same<T, T>
9710 {
9711 static const bool value = true;
9712 };
9713
9714 template < typename T1, typename T2 >
9715 auto
9716 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9717 {
9718 return a1 + a2;
9719 }
9720
9721 int
9722 test(const int c, volatile int v)
9723 {
9724 static_assert(is_same<int, decltype(0)>::value == true, "");
9725 static_assert(is_same<int, decltype(c)>::value == false, "");
9726 static_assert(is_same<int, decltype(v)>::value == false, "");
9727 auto ac = c;
9728 auto av = v;
9729 auto sumi = ac + av + 'x';
9730 auto sumf = ac + av + 1.0;
9731 static_assert(is_same<int, decltype(ac)>::value == true, "");
9732 static_assert(is_same<int, decltype(av)>::value == true, "");
9733 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9734 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9735 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9736 return (sumf > 0.0) ? sumi : add(c, v);
9737 }
9738
9739 }
9740
9741 namespace test_noexcept
9742 {
9743
9744 int f() { return 0; }
9745 int g() noexcept { return 0; }
9746
9747 static_assert(noexcept(f()) == false, "");
9748 static_assert(noexcept(g()) == true, "");
9749
9750 }
9751
9752 namespace test_constexpr
9753 {
9754
9755 template < typename CharT >
9756 unsigned long constexpr
9757 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9758 {
9759 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9760 }
9761
9762 template < typename CharT >
9763 unsigned long constexpr
9764 strlen_c(const CharT *const s) noexcept
9765 {
9766 return strlen_c_r(s, 0UL);
9767 }
9768
9769 static_assert(strlen_c("") == 0UL, "");
9770 static_assert(strlen_c("1") == 1UL, "");
9771 static_assert(strlen_c("example") == 7UL, "");
9772 static_assert(strlen_c("another\0example") == 7UL, "");
9773
9774 }
9775
9776 namespace test_rvalue_references
9777 {
9778
9779 template < int N >
9780 struct answer
9781 {
9782 static constexpr int value = N;
9783 };
9784
9785 answer<1> f(int&) { return answer<1>(); }
9786 answer<2> f(const int&) { return answer<2>(); }
9787 answer<3> f(int&&) { return answer<3>(); }
9788
9789 void
9790 test()
9791 {
9792 int i = 0;
9793 const int c = 0;
9794 static_assert(decltype(f(i))::value == 1, "");
9795 static_assert(decltype(f(c))::value == 2, "");
9796 static_assert(decltype(f(0))::value == 3, "");
9797 }
9798
9799 }
9800
9801 namespace test_uniform_initialization
9802 {
9803
9804 struct test
9805 {
9806 static const int zero {};
9807 static const int one {1};
9808 };
9809
9810 static_assert(test::zero == 0, "");
9811 static_assert(test::one == 1, "");
9812
9813 }
9814
9815 namespace test_lambdas
9816 {
9817
9818 void
9819 test1()
9820 {
9821 auto lambda1 = [](){};
9822 auto lambda2 = lambda1;
9823 lambda1();
9824 lambda2();
9825 }
9826
9827 int
9828 test2()
9829 {
9830 auto a = [](int i, int j){ return i + j; }(1, 2);
9831 auto b = []() -> int { return '0'; }();
9832 auto c = [=](){ return a + b; }();
9833 auto d = [&](){ return c; }();
9834 auto e = [a, &b](int x) mutable {
9835 const auto identity = [](int y){ return y; };
9836 for (auto i = 0; i < a; ++i)
9837 a += b--;
9838 return x + identity(a + b);
9839 }(0);
9840 return a + b + c + d + e;
9841 }
9842
9843 int
9844 test3()
9845 {
9846 const auto nullary = [](){ return 0; };
9847 const auto unary = [](int x){ return x; };
9848 using nullary_t = decltype(nullary);
9849 using unary_t = decltype(unary);
9850 const auto higher1st = [](nullary_t f){ return f(); };
9851 const auto higher2nd = [unary](nullary_t f1){
9852 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9853 };
9854 return higher1st(nullary) + higher2nd(nullary)(unary);
9855 }
9856
9857 }
9858
9859 namespace test_variadic_templates
9860 {
9861
9862 template <int...>
9863 struct sum;
9864
9865 template <int N0, int... N1toN>
9866 struct sum<N0, N1toN...>
9867 {
9868 static constexpr auto value = N0 + sum<N1toN...>::value;
9869 };
9870
9871 template <>
9872 struct sum<>
9873 {
9874 static constexpr auto value = 0;
9875 };
9876
9877 static_assert(sum<>::value == 0, "");
9878 static_assert(sum<1>::value == 1, "");
9879 static_assert(sum<23>::value == 23, "");
9880 static_assert(sum<1, 2>::value == 3, "");
9881 static_assert(sum<5, 5, 11>::value == 21, "");
9882 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9883
9884 }
9885
9886 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9887 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9888 // because of this.
9889 namespace test_template_alias_sfinae
9890 {
9891
9892 struct foo {};
9893
9894 template<typename T>
9895 using member = typename T::member_type;
9896
9897 template<typename T>
9898 void func(...) {}
9899
9900 template<typename T>
9901 void func(member<T>*) {}
9902
9903 void test();
9904
9905 void test() { func<foo>(0); }
9906
9907 }
9908
9909 } // namespace cxx11
9910
9911 #endif // __cplusplus >= 201103L
9912
9913
9914
9915 _ACEOF
9916 if ac_fn_cxx_try_compile "$LINENO"; then :
9917 eval $cachevar=yes
9918 else
9919 eval $cachevar=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 CXX="$ac_save_CXX"
9923 fi
9924 eval ac_res=\$$cachevar
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9926 $as_echo "$ac_res" >&6; }
9927 if eval test x\$$cachevar = xyes; then
9928 CXX="$CXX $switch"
9929 ac_success=yes
9930 break
9931 fi
9932 done
9933 fi
9934 ac_ext=c
9935 ac_cpp='$CPP $CPPFLAGS'
9936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9939
9940 if test x$ax_cxx_compile_cxx11_required = xtrue; then
9941 if test x$ac_success = xno; then
9942 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
9943 fi
9944 fi
9945 if test x$ac_success = xno; then
9946 HAVE_CXX11=0
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
9948 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
9949 else
9950 HAVE_CXX11=1
9951
9952 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
9953
9954 fi
9955
9956
9957 if test "x$HAVE_CXX11" != x1; then :
9958
9959 ac_ext=cpp
9960 ac_cpp='$CXXCPP $CPPFLAGS'
9961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
9966 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
9967 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970
9971 ax_check_save_flags=$CXXFLAGS
9972 CXXFLAGS="$CXXFLAGS -std=c++0x"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975
9976 int
9977 main ()
9978 {
9979
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_cxx_try_compile "$LINENO"; then :
9985 ax_cv_check_cxxflags___std_cpp0x=yes
9986 else
9987 ax_cv_check_cxxflags___std_cpp0x=no
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 CXXFLAGS=$ax_check_save_flags
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
9993 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
9994 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
9995
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
9997 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
9998 CXX="$CXX -std=c++0x"
9999 HAVE_CXX11=1
10000
10001 else
10002
10003 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
10004
10005 fi
10006
10007 ac_ext=c
10008 ac_cpp='$CPP $CPPFLAGS'
10009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10012
10013
10014 fi
10015
10016 # Check whether --enable-ssp was given.
10017 if test "${enable_ssp+set}" = set; then :
10018 enableval=$enable_ssp;
10019 fi
10020
10021 if test "x$enable_ssp" != xno; then :
10022
10023 save_CFLAGS="$CFLAGS"
10024 save_CXXFLAGS="$CXXFLAGS"
10025 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10026 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 int something ();
10030 _ACEOF
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
10034 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
10035 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10036 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10037 else
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10040 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10041 CFLAGS="$save_CFLAGS"
10042 CXXFLAGS="$save_CXXFLAGS"
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 fi
10046
10047
10048
10049
10050 # Compiling without fPIE by default (see PR 9922)
10051 # Check whether --enable-pie was given.
10052 if test "${enable_pie+set}" = set; then :
10053 enableval=$enable_pie;
10054 fi
10055
10056 if test "x$enable_pie" == xyes; then :
10057
10058 PIECFLAGS='-fPIE'
10059 PIECXXFLAGS='-fPIE'
10060 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10061 save_CFLAGS="$CFLAGS"
10062 save_CXXFLAGS="$CXXFLAGS"
10063 save_LDFLAGS="$LDFLAGS"
10064 CFLAGS="$CFLAGS $PIECFLAGS"
10065 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10066 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 void main () {}
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10074 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10075
10076 else
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10079 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10080 PIECFLAGS=""
10081 PIECXXFLAGS=""
10082 PIELDFLAGS=""
10083
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 CFLAGS="$save_CFLAGS"
10088 CXXFLAGS="$save_CXXFLAGS"
10089 LDFLAGS="$save_LDFLAGS"
10090
10091 fi
10092
10093
10094
10095
10096 # Check whether --enable-sqlite was given.
10097 if test "${enable_sqlite+set}" = set; then :
10098 enableval=$enable_sqlite;
10099 else
10100 enable_sqlite=check
10101 fi
10102 sqlite3_LIBS=
10103
10104
10105
10106
10107
10108
10109
10110 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10111 if test -n "$ac_tool_prefix"; then
10112 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10113 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 case $PKG_CONFIG in
10120 [\\/]* | ?:[\\/]*)
10121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10122 ;;
10123 *)
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10126 do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10134 fi
10135 done
10136 done
10137 IFS=$as_save_IFS
10138
10139 ;;
10140 esac
10141 fi
10142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10143 if test -n "$PKG_CONFIG"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10145 $as_echo "$PKG_CONFIG" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10149 fi
10150
10151
10152 fi
10153 if test -z "$ac_cv_path_PKG_CONFIG"; then
10154 ac_pt_PKG_CONFIG=$PKG_CONFIG
10155 # Extract the first word of "pkg-config", so it can be a program name with args.
10156 set dummy pkg-config; ac_word=$2
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158 $as_echo_n "checking for $ac_word... " >&6; }
10159 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 case $ac_pt_PKG_CONFIG in
10163 [\\/]* | ?:[\\/]*)
10164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10165 ;;
10166 *)
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10177 fi
10178 done
10179 done
10180 IFS=$as_save_IFS
10181
10182 ;;
10183 esac
10184 fi
10185 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10186 if test -n "$ac_pt_PKG_CONFIG"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10188 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191 $as_echo "no" >&6; }
10192 fi
10193
10194 if test "x$ac_pt_PKG_CONFIG" = x; then
10195 PKG_CONFIG=""
10196 else
10197 case $cross_compiling:$ac_tool_warned in
10198 yes:)
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10201 ac_tool_warned=yes ;;
10202 esac
10203 PKG_CONFIG=$ac_pt_PKG_CONFIG
10204 fi
10205 else
10206 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10207 fi
10208
10209 fi
10210 if test -n "$PKG_CONFIG"; then
10211 _pkg_min_version=0.9.0
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10213 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10214 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216 $as_echo "yes" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10220 PKG_CONFIG=""
10221 fi
10222 fi
10223 if test "x$enable_sqlite" != xno; then :
10224
10225 pkg_failed=no
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
10227 $as_echo_n "checking for sqlite3... " >&6; }
10228
10229 if test -n "$sqlite3_CFLAGS"; then
10230 pkg_cv_sqlite3_CFLAGS="$sqlite3_CFLAGS"
10231 elif test -n "$PKG_CONFIG"; then
10232 if test -n "$PKG_CONFIG" && \
10233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10234 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10235 ac_status=$?
10236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237 test $ac_status = 0; }; then
10238 pkg_cv_sqlite3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 > 3.7" 2>/dev/null`
10239 test "x$?" != "x0" && pkg_failed=yes
10240 else
10241 pkg_failed=yes
10242 fi
10243 else
10244 pkg_failed=untried
10245 fi
10246 if test -n "$sqlite3_LIBS"; then
10247 pkg_cv_sqlite3_LIBS="$sqlite3_LIBS"
10248 elif test -n "$PKG_CONFIG"; then
10249 if test -n "$PKG_CONFIG" && \
10250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 > 3.7\""; } >&5
10251 ($PKG_CONFIG --exists --print-errors "sqlite3 > 3.7") 2>&5
10252 ac_status=$?
10253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254 test $ac_status = 0; }; then
10255 pkg_cv_sqlite3_LIBS=`$PKG_CONFIG --libs "sqlite3 > 3.7" 2>/dev/null`
10256 test "x$?" != "x0" && pkg_failed=yes
10257 else
10258 pkg_failed=yes
10259 fi
10260 else
10261 pkg_failed=untried
10262 fi
10263
10264
10265
10266 if test $pkg_failed = yes; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269
10270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10271 _pkg_short_errors_supported=yes
10272 else
10273 _pkg_short_errors_supported=no
10274 fi
10275 if test $_pkg_short_errors_supported = yes; then
10276 sqlite3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10277 else
10278 sqlite3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 > 3.7" 2>&1`
10279 fi
10280 # Put the nasty error message in config.log where it belongs
10281 echo "$sqlite3_PKG_ERRORS" >&5
10282
10283 if test "x$enable_sqlite" != xcheck; then
10284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10286 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10287 See \`config.log' for more details" "$LINENO" 5; }
10288 fi
10289 elif test $pkg_failed = untried; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 if test "x$enable_sqlite" != xcheck; then
10293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10295 as_fn_error $? "--enable-sqlite was given, but test for sqlite > 3.7 failed
10296 See \`config.log' for more details" "$LINENO" 5; }
10297 fi
10298 else
10299 sqlite3_CFLAGS=$pkg_cv_sqlite3_CFLAGS
10300 sqlite3_LIBS=$pkg_cv_sqlite3_LIBS
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10303
10304 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10305
10306 fi
10307 fi
10308
10309 # Check whether --enable-translator was given.
10310 if test "${enable_translator+set}" = set; then :
10311 enableval=$enable_translator;
10312 else
10313 enable_translator="yes"
10314 fi
10315
10316 if test "$enable_translator" == "yes"; then
10317 BUILD_TRANSLATOR_TRUE=
10318 BUILD_TRANSLATOR_FALSE='#'
10319 else
10320 BUILD_TRANSLATOR_TRUE='#'
10321 BUILD_TRANSLATOR_FALSE=
10322 fi
10323
10324
10325 # Check whether --enable-crash was given.
10326 if test "${enable_crash+set}" = set; then :
10327 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10328 save_CPPFLAGS="$CPPFLAGS"
10329 if test "$enable_crash" != "yes"; then
10330 staplog_CPPFLAGS=-I$enable_crash
10331 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10332
10333 fi
10334 for ac_header in crash/defs.h
10335 do :
10336 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10337 #define NR_CPUS 256
10338
10339 "
10340 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10341 cat >>confdefs.h <<_ACEOF
10342 #define HAVE_CRASH_DEFS_H 1
10343 _ACEOF
10344
10345 else
10346 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10347 fi
10348
10349 done
10350
10351 CPPFLAGS="$save_CPPFLAGS"
10352 fi
10353 else
10354 enable_crash="no"
10355 fi
10356
10357 if test "$enable_crash" != "no"; then
10358 BUILD_CRASHMOD_TRUE=
10359 BUILD_CRASHMOD_FALSE='#'
10360 else
10361 BUILD_CRASHMOD_TRUE='#'
10362 BUILD_CRASHMOD_FALSE=
10363 fi
10364
10365
10366 building_docs="no"
10367 # Check whether --enable-docs was given.
10368 if test "${enable_docs+set}" = set; then :
10369 enableval=$enable_docs; enable_docs=$enableval
10370 else
10371 enable_docs="check"
10372 fi
10373
10374 # Extract the first word of "latex", so it can be a program name with args.
10375 set dummy latex; ac_word=$2
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 $as_echo_n "checking for $ac_word... " >&6; }
10378 if ${ac_cv_prog_have_latex+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 if test -n "$have_latex"; then
10382 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10383 else
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391 ac_cv_prog_have_latex="yes"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10394 fi
10395 done
10396 done
10397 IFS=$as_save_IFS
10398
10399 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10400 fi
10401 fi
10402 have_latex=$ac_cv_prog_have_latex
10403 if test -n "$have_latex"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10405 $as_echo "$have_latex" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411
10412 # Extract the first word of "dvips", so it can be a program name with args.
10413 set dummy dvips; ac_word=$2
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 $as_echo_n "checking for $ac_word... " >&6; }
10416 if ${ac_cv_prog_have_dvips+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419 if test -n "$have_dvips"; then
10420 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10421 else
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10424 do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_prog_have_dvips="yes"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10432 fi
10433 done
10434 done
10435 IFS=$as_save_IFS
10436
10437 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10438 fi
10439 fi
10440 have_dvips=$ac_cv_prog_have_dvips
10441 if test -n "$have_dvips"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10443 $as_echo "$have_dvips" >&6; }
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10447 fi
10448
10449
10450 # Extract the first word of "ps2pdf", so it can be a program name with args.
10451 set dummy ps2pdf; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457 if test -n "$have_ps2pdf"; then
10458 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10459 else
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10462 do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_have_ps2pdf="yes"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471 done
10472 done
10473 IFS=$as_save_IFS
10474
10475 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10476 fi
10477 fi
10478 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10479 if test -n "$have_ps2pdf"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10481 $as_echo "$have_ps2pdf" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485 fi
10486
10487
10488 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10489 if test "$enable_docs" == "yes"; then
10490 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10491 fi
10492 if test "$enable_docs" == "check"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10494 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10495 fi
10496 fi
10497 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
10498 building_docs="yes"
10499 fi
10500 if test "$building_docs" == "yes"; then
10501 BUILD_DOCS_TRUE=
10502 BUILD_DOCS_FALSE='#'
10503 else
10504 BUILD_DOCS_TRUE='#'
10505 BUILD_DOCS_FALSE=
10506 fi
10507
10508
10509
10510 building_refdocs="no"
10511 # Check whether --enable-refdocs was given.
10512 if test "${enable_refdocs+set}" = set; then :
10513 enableval=$enable_refdocs; enable_refdocs=$enableval
10514 else
10515 enable_refdocs="check"
10516 fi
10517
10518 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
10519 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
10520 fi
10521 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
10522 building_refdocs="yes"
10523 fi
10524 if test "$building_refdocs" == "yes"; then
10525 BUILD_REFDOCS_TRUE=
10526 BUILD_REFDOCS_FALSE='#'
10527 else
10528 BUILD_REFDOCS_TRUE='#'
10529 BUILD_REFDOCS_FALSE=
10530 fi
10531
10532
10533 # Extract the first word of "xmlto", so it can be a program name with args.
10534 set dummy xmlto; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_have_xmlto+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$have_xmlto"; then
10541 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_have_xmlto="yes"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554 done
10555 done
10556 IFS=$as_save_IFS
10557
10558 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
10559 fi
10560 fi
10561 have_xmlto=$ac_cv_prog_have_xmlto
10562 if test -n "$have_xmlto"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
10564 $as_echo "$have_xmlto" >&6; }
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10568 fi
10569
10570
10571 # Extract the first word of "fop", so it can be a program name with args.
10572 set dummy fop; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_prog_have_fop+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 if test -n "$have_fop"; then
10579 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_have_fop="yes"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592 done
10593 done
10594 IFS=$as_save_IFS
10595
10596 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
10597 fi
10598 fi
10599 have_fop=$ac_cv_prog_have_fop
10600 if test -n "$have_fop"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
10602 $as_echo "$have_fop" >&6; }
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607
10608
10609 if test "x${have_fop}" == "xyes"; then
10610 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
10611 # hope that it works.
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
10613 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
10614 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
10619 $as_echo "it's dead, Jim" >&6; }
10620 have_fop="broken"
10621 fi
10622 rm -f dummy-tapsets.pdf
10623 fi
10624 if test "$have_fop" == "yes"; then
10625 HAVE_FOP_TRUE=
10626 HAVE_FOP_FALSE='#'
10627 else
10628 HAVE_FOP_TRUE='#'
10629 HAVE_FOP_FALSE=
10630 fi
10631
10632 if test "$have_xmlto" == "yes"; then
10633 HAVE_XMLTO_TRUE=
10634 HAVE_XMLTO_FALSE='#'
10635 else
10636 HAVE_XMLTO_TRUE='#'
10637 HAVE_XMLTO_FALSE=
10638 fi
10639
10640
10641 building_htmldocs="no"
10642 # Check whether --enable-htmldocs was given.
10643 if test "${enable_htmldocs+set}" = set; then :
10644 enableval=$enable_htmldocs; building_htmldocs=$enableval
10645 else
10646 building_htmldocs="no"
10647 fi
10648
10649 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
10650 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
10651 fi
10652
10653 if test "$building_htmldocs" == "yes"; then
10654 BUILD_HTMLDOCS_TRUE=
10655 BUILD_HTMLDOCS_FALSE='#'
10656 else
10657 BUILD_HTMLDOCS_TRUE='#'
10658 BUILD_HTMLDOCS_FALSE=
10659 fi
10660
10661
10662 cat > conftest.xml << 'EOF'
10663 <?xml version="1.0" encoding="UTF-8"?>
10664 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
10665 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
10666 <book lang="en">
10667 <bookinfo><title>foo</title></bookinfo>
10668 <chapter id="logging.stp"><title>Logging Tapset</title>
10669 <refentry id="API-log"><refnamediv><refname>log</refname>
10670 <refpurpose>logging</refpurpose></refnamediv>
10671 <refsect1><title>Description</title>
10672 <para>baz</para></refsect1></refentry></chapter>
10673 </book>
10674 EOF
10675
10676 if test "x${have_xmlto}" == "xyes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
10678 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
10679 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
10680 if test $? == 0; then
10681 have_xmlto_stringparam="yes"
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683 $as_echo "yes" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688 rm -f conftest.html
10689 fi
10690 if test "$have_xmlto_stringparam" == "yes"; then
10691 XMLTO_STRINGPARAM_TRUE=
10692 XMLTO_STRINGPARAM_FALSE='#'
10693 else
10694 XMLTO_STRINGPARAM_TRUE='#'
10695 XMLTO_STRINGPARAM_FALSE=
10696 fi
10697
10698
10699 rm -f conftest.xml
10700
10701
10702 # Check whether --with-nss was given.
10703 if test "${with_nss+set}" = set; then :
10704 withval=$with_nss;
10705 fi
10706
10707
10708 if test "x$with_nss" != "xno"; then :
10709
10710
10711 pkg_failed=no
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10713 $as_echo_n "checking for nss... " >&6; }
10714
10715 if test -n "$nss_CFLAGS"; then
10716 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10717 elif test -n "$PKG_CONFIG"; then
10718 if test -n "$PKG_CONFIG" && \
10719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10720 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10721 ac_status=$?
10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; }; then
10724 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10725 test "x$?" != "x0" && pkg_failed=yes
10726 else
10727 pkg_failed=yes
10728 fi
10729 else
10730 pkg_failed=untried
10731 fi
10732 if test -n "$nss_LIBS"; then
10733 pkg_cv_nss_LIBS="$nss_LIBS"
10734 elif test -n "$PKG_CONFIG"; then
10735 if test -n "$PKG_CONFIG" && \
10736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10737 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10738 ac_status=$?
10739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10740 test $ac_status = 0; }; then
10741 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10742 test "x$?" != "x0" && pkg_failed=yes
10743 else
10744 pkg_failed=yes
10745 fi
10746 else
10747 pkg_failed=untried
10748 fi
10749
10750
10751
10752 if test $pkg_failed = yes; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10755
10756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10757 _pkg_short_errors_supported=yes
10758 else
10759 _pkg_short_errors_supported=no
10760 fi
10761 if test $_pkg_short_errors_supported = yes; then
10762 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10763 else
10764 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10765 fi
10766 # Put the nasty error message in config.log where it belongs
10767 echo "$nss_PKG_ERRORS" >&5
10768
10769 have_nss=no
10770 elif test $pkg_failed = untried; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10773 have_nss=no
10774 else
10775 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10776 nss_LIBS=$pkg_cv_nss_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778 $as_echo "yes" >&6; }
10779 have_nss=yes
10780
10781 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10782
10783
10784 fi
10785
10786 else
10787 have_nss=no
10788 fi
10789
10790 if test "${have_nss}" = "yes"; then
10791 HAVE_NSS_TRUE=
10792 HAVE_NSS_FALSE='#'
10793 else
10794 HAVE_NSS_TRUE='#'
10795 HAVE_NSS_FALSE=
10796 fi
10797
10798
10799
10800 # Check whether --with-dracutstap was given.
10801 if test "${with_dracutstap+set}" = set; then :
10802 withval=$with_dracutstap;
10803 fi
10804
10805 if test "x$with_dracutstap" != "x"; then :
10806 dracutstap="$with_dracutstap"
10807 else
10808 dracutstap=/usr/lib/dracut/modules.d/99stap
10809 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
10811 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
10812
10813
10814
10815 # Check whether --with-dracutbindir was given.
10816 if test "${with_dracutbindir+set}" = set; then :
10817 withval=$with_dracutbindir;
10818 fi
10819
10820 if test "x$with_dracutbindir" != "x"; then :
10821 dracutbindir="$with_dracutbindir"
10822 else
10823 dracutbindir=/sbin
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
10826 $as_echo "$as_me: using dracut binary $dracutbindir" >&6;}
10827
10828
10829 # Check whether --enable-server was given.
10830 if test "${enable_server+set}" = set; then :
10831 enableval=$enable_server; enable_server=$enableval
10832 else
10833 enable_server="check"
10834 fi
10835
10836
10837 if test "$enable_server" != "no"; then
10838 if test "x${have_nss}" != "xyes"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
10840 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
10841 fi
10842 fi
10843 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
10844 BUILD_SERVER_TRUE=
10845 BUILD_SERVER_FALSE='#'
10846 else
10847 BUILD_SERVER_TRUE='#'
10848 BUILD_SERVER_FALSE=
10849 fi
10850
10851
10852 if test "${have_nss}" != "yes"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
10854 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
10855 fi
10856
10857
10858 # Check whether --with-avahi was given.
10859 if test "${with_avahi+set}" = set; then :
10860 withval=$with_avahi;
10861 fi
10862
10863
10864 if test "x$with_avahi" != "xno"; then :
10865
10866
10867 pkg_failed=no
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
10869 $as_echo_n "checking for avahi... " >&6; }
10870
10871 if test -n "$avahi_CFLAGS"; then
10872 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
10873 elif test -n "$PKG_CONFIG"; then
10874 if test -n "$PKG_CONFIG" && \
10875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10876 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879 test $ac_status = 0; }; then
10880 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
10881 test "x$?" != "x0" && pkg_failed=yes
10882 else
10883 pkg_failed=yes
10884 fi
10885 else
10886 pkg_failed=untried
10887 fi
10888 if test -n "$avahi_LIBS"; then
10889 pkg_cv_avahi_LIBS="$avahi_LIBS"
10890 elif test -n "$PKG_CONFIG"; then
10891 if test -n "$PKG_CONFIG" && \
10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10893 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; }; then
10897 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
10898 test "x$?" != "x0" && pkg_failed=yes
10899 else
10900 pkg_failed=yes
10901 fi
10902 else
10903 pkg_failed=untried
10904 fi
10905
10906
10907
10908 if test $pkg_failed = yes; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911
10912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10913 _pkg_short_errors_supported=yes
10914 else
10915 _pkg_short_errors_supported=no
10916 fi
10917 if test $_pkg_short_errors_supported = yes; then
10918 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
10919 else
10920 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
10921 fi
10922 # Put the nasty error message in config.log where it belongs
10923 echo "$avahi_PKG_ERRORS" >&5
10924
10925 have_avahi=no
10926 elif test $pkg_failed = untried; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929 have_avahi=no
10930 else
10931 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
10932 avahi_LIBS=$pkg_cv_avahi_LIBS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10934 $as_echo "yes" >&6; }
10935 have_avahi=yes
10936
10937 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10938
10939
10940 fi
10941
10942 else
10943 have_avahi=no
10944 fi
10945
10946 if test "${have_avahi}" = "yes"; then
10947 HAVE_AVAHI_TRUE=
10948 HAVE_AVAHI_FALSE='#'
10949 else
10950 HAVE_AVAHI_TRUE='#'
10951 HAVE_AVAHI_FALSE=
10952 fi
10953
10954
10955 if test "${have_avahi}" != "yes"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
10957 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
10958 fi
10959
10960
10961
10962 # Check whether --with-rpm was given.
10963 if test "${with_rpm+set}" = set; then :
10964 withval=$with_rpm;
10965 else
10966 with_rpm="auto"
10967 fi
10968
10969 if test "$with_rpm" != "no"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10971 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10972 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lrpm $LIBS"
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979
10980 /* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 char rpmtsInitIterator ();
10987 int
10988 main ()
10989 {
10990 return rpmtsInitIterator ();
10991 ;
10992 return 0;
10993 }
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996 ac_cv_lib_rpm_rpmtsInitIterator=yes
10997 else
10998 ac_cv_lib_rpm_rpmtsInitIterator=no
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
11005 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
11006 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
11007
11008
11009 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
11010
11011 stap_LIBS="$stap_LIBS -lc -lrpm"
11012 have_librpm="yes"
11013 else
11014 have_librpm="no"
11015 fi
11016
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbNextIterator in -lrpmdb" >&5
11018 $as_echo_n "checking for rpmdbNextIterator in -lrpmdb... " >&6; }
11019 if ${ac_cv_lib_rpmdb_rpmdbNextIterator+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-lrpmdb $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char rpmdbNextIterator ();
11034 int
11035 main ()
11036 {
11037 return rpmdbNextIterator ();
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_rpmdb_rpmdbNextIterator=yes
11044 else
11045 ac_cv_lib_rpmdb_rpmdbNextIterator=no
11046 fi
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmdb_rpmdbNextIterator" >&5
11052 $as_echo "$ac_cv_lib_rpmdb_rpmdbNextIterator" >&6; }
11053 if test "x$ac_cv_lib_rpmdb_rpmdbNextIterator" = xyes; then :
11054
11055 stap_LIBS="$stap_LIBS -lrpmdb"
11056 fi
11057
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11059 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
11060 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-lrpmio $LIBS"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char rpmFreeCrypto ();
11075 int
11076 main ()
11077 {
11078 return rpmFreeCrypto ();
11079 ;
11080 return 0;
11081 }
11082 _ACEOF
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11085 else
11086 ac_cv_lib_rpmio_rpmFreeCrypto=no
11087 fi
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11093 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
11094 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
11095
11096
11097 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11098
11099 stap_LIBS="$stap_LIBS -lc -lrpmio"
11100 have_librpmio="yes"
11101 else
11102 have_librpmio="no"
11103 fi
11104
11105 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
11106 as_fn_error $? "cannot find librpm" "$LINENO" 5
11107 fi
11108 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11110 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11111 fi
11112 fi
11113
11114 LIBS_no_readline=$LIBS
11115
11116 have_libreadline="no"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11118 $as_echo_n "checking how to link readline libs... " >&6; }
11119 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11120 if test -z "$libtermcap"; then
11121 READLINE_LIBS="-lreadline"
11122 else
11123 READLINE_LIBS="-lreadline -l$libtermcap"
11124 fi
11125 LIBS="$READLINE_LIBS $LIBS_no_readline"
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11128
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char readline ();
11136 int
11137 main ()
11138 {
11139 return readline ();
11140 ;
11141 return 0;
11142 }
11143 _ACEOF
11144 if ac_fn_c_try_link "$LINENO"; then :
11145 have_libreadline="yes"
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 if test "$have_libreadline" = "yes"; then
11150 break
11151 fi
11152 done
11153 if test "$have_libreadline" = "no"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11155 $as_echo "none" >&6; }
11156 READLINE_LIBS=""
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11159 $as_echo "$READLINE_LIBS" >&6; }
11160
11161 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11162
11163 fi
11164
11165 if test "$have_libreadline" == "yes"; then
11166 HAVE_LIBREADLINE_TRUE=
11167 HAVE_LIBREADLINE_FALSE='#'
11168 else
11169 HAVE_LIBREADLINE_TRUE='#'
11170 HAVE_LIBREADLINE_FALSE=
11171 fi
11172
11173
11174 LIBS=$LIBS_no_readline
11175
11176
11177 # Check whether --with-python3 was given.
11178 if test "${with_python3+set}" = set; then :
11179 withval=$with_python3;
11180 fi
11181
11182 if test "x$with_python3" = "xyes"; then :
11183 if test -z "$PYTHON3"; then :
11184 as_fn_error $? "python version 3 is required" "$LINENO" 5
11185 else
11186 preferred_python=$PYTHON3
11187
11188 fi
11189 else
11190 if test "x$PYTHON" = "x:"; then :
11191 as_fn_error $? "python version 2 is required" "$LINENO" 5
11192 else
11193 preferred_python=$PYTHON
11194
11195 fi
11196 fi
11197
11198 build_elfutils=no
11199
11200 # Check whether --with-elfutils was given.
11201 if test "${with_elfutils+set}" = set; then :
11202 withval=$with_elfutils;
11203 case "$with_elfutils" in
11204 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11205 ''|no) ;;
11206 *) build_elfutils=yes ;;
11207 esac
11208 fi
11209
11210 if test $build_elfutils = yes; then
11211 BUILD_ELFUTILS_TRUE=
11212 BUILD_ELFUTILS_FALSE='#'
11213 else
11214 BUILD_ELFUTILS_TRUE='#'
11215 BUILD_ELFUTILS_FALSE=
11216 fi
11217
11218 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11219 cd $with_elfutils && pwd
11220 fi`
11221
11222
11223 if test $enable_translator = yes; then
11224 if test $build_elfutils = no; then
11225 # Need libdwfl-capable recent elfutils http://elfutils.org/
11226
11227 # On modern debian/ubuntu, libebl has been merged into libdw
11228 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11229 save_LIBS="$LIBS"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11231 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11232 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-lebl $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char ebl_get_elfmachine ();
11247 int
11248 main ()
11249 {
11250 return ebl_get_elfmachine ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11257 else
11258 ac_cv_lib_ebl_ebl_get_elfmachine=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11265 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11266 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11267 ebl_LIBS=-lebl
11268 else
11269 ebl_LIBS=
11270 fi
11271
11272 LIBS="$save_LIBS"
11273
11274 save_LIBS="$LIBS"
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11276 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11277 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 ac_check_lib_save_LIBS=$LIBS
11281 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char dwfl_module_getsym ();
11292 int
11293 main ()
11294 {
11295 return dwfl_module_getsym ();
11296 ;
11297 return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 ac_cv_lib_dw_dwfl_module_getsym=yes
11302 else
11303 ac_cv_lib_dw_dwfl_module_getsym=no
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11310 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11311 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_LIBDW 1
11314 _ACEOF
11315
11316 LIBS="-ldw $LIBS"
11317
11318 else
11319
11320 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11321 fi
11322
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11324 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11325 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char dwarf_next_unit ();
11340 int
11341 main ()
11342 {
11343 return dwarf_next_unit ();
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 ac_cv_lib_dw_dwarf_next_unit=yes
11350 else
11351 ac_cv_lib_dw_dwarf_next_unit=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11358 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11359 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11360 cat >>confdefs.h <<_ACEOF
11361 #define HAVE_LIBDW 1
11362 _ACEOF
11363
11364 LIBS="-ldw $LIBS"
11365
11366 else
11367
11368 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11369 fi
11370
11371 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11372 LIBS="$save_LIBS"
11373 else
11374 # We built our own and stap_LDFLAGS points at the install.
11375 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11376 fi
11377 fi
11378
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11381 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11382
11383 # staprun has more modest libelf needs
11384 if test $build_elfutils = no; then
11385 save_LIBS="$LIBS"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11387 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11388 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 ac_check_lib_save_LIBS=$LIBS
11392 LIBS="-lelf $LIBS"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 char elf_getshdrstrndx ();
11403 int
11404 main ()
11405 {
11406 return elf_getshdrstrndx ();
11407 ;
11408 return 0;
11409 }
11410 _ACEOF
11411 if ac_fn_c_try_link "$LINENO"; then :
11412 ac_cv_lib_elf_elf_getshdrstrndx=yes
11413 else
11414 ac_cv_lib_elf_elf_getshdrstrndx=no
11415 fi
11416 rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418 LIBS=$ac_check_lib_save_LIBS
11419 fi
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11421 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11422 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11423 cat >>confdefs.h <<_ACEOF
11424 #define HAVE_LIBELF 1
11425 _ACEOF
11426
11427 LIBS="-lelf $LIBS"
11428
11429 else
11430
11431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11433 as_fn_error $? "libelf too old, need 0.142+
11434 See \`config.log' for more details" "$LINENO" 5; }
11435 fi
11436
11437 staprun_LIBS="$staprun_LIBS -lelf"
11438 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11439 LIBS="$save_LIBS"
11440 else
11441 # We built our own and staprun_LDFLAGS points at the install.
11442 staprun_LIBS="$staprun_LIBS -lelf"
11443 stapbpf_LIBS="$stapbpf_LIBS -lelf"
11444 fi
11445
11446
11447
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11449 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: stapbpf will link $stapbpf_LIBS" >&5
11451 $as_echo "$as_me: stapbpf will link $stapbpf_LIBS" >&6;}
11452
11453
11454 date=`date +%Y-%m-%d`
11455
11456 cat >>confdefs.h <<_ACEOF
11457 #define DATE "$date"
11458 _ACEOF
11459
11460 DATE="$date"
11461
11462
11463 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11464 # being compiled on 32-bit userspace but running against 64-bit kernels.
11465 # This is no longer necessary.
11466
11467 ac_ext=cpp
11468 ac_cpp='$CXXCPP $CPPFLAGS'
11469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11472
11473 # Use boost::string_ref if available
11474 ac_ext=cpp
11475 ac_cpp='$CXXCPP $CPPFLAGS'
11476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11480 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11481 if test -z "$CXXCPP"; then
11482 if ${ac_cv_prog_CXXCPP+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 # Double quotes because CXXCPP needs to be expanded
11486 for CXXCPP in "$CXX -E" "/lib/cpp"
11487 do
11488 ac_preproc_ok=false
11489 for ac_cxx_preproc_warn_flag in '' yes
11490 do
11491 # Use a header file that comes with gcc, so configuring glibc
11492 # with a fresh cross-compiler works.
11493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 # <limits.h> exists even on freestanding compilers.
11495 # On the NeXT, cc -E runs the code through the compiler's parser,
11496 # not just through cpp. "Syntax error" is here to catch this case.
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 #ifdef __STDC__
11500 # include <limits.h>
11501 #else
11502 # include <assert.h>
11503 #endif
11504 Syntax error
11505 _ACEOF
11506 if ac_fn_cxx_try_cpp "$LINENO"; then :
11507
11508 else
11509 # Broken: fails on valid input.
11510 continue
11511 fi
11512 rm -f conftest.err conftest.i conftest.$ac_ext
11513
11514 # OK, works on sane cases. Now check whether nonexistent headers
11515 # can be detected and how.
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518 #include <ac_nonexistent.h>
11519 _ACEOF
11520 if ac_fn_cxx_try_cpp "$LINENO"; then :
11521 # Broken: success on invalid input.
11522 continue
11523 else
11524 # Passes both tests.
11525 ac_preproc_ok=:
11526 break
11527 fi
11528 rm -f conftest.err conftest.i conftest.$ac_ext
11529
11530 done
11531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11532 rm -f conftest.i conftest.err conftest.$ac_ext
11533 if $ac_preproc_ok; then :
11534 break
11535 fi
11536
11537 done
11538 ac_cv_prog_CXXCPP=$CXXCPP
11539
11540 fi
11541 CXXCPP=$ac_cv_prog_CXXCPP
11542 else
11543 ac_cv_prog_CXXCPP=$CXXCPP
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11546 $as_echo "$CXXCPP" >&6; }
11547 ac_preproc_ok=false
11548 for ac_cxx_preproc_warn_flag in '' yes
11549 do
11550 # Use a header file that comes with gcc, so configuring glibc
11551 # with a fresh cross-compiler works.
11552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553 # <limits.h> exists even on freestanding compilers.
11554 # On the NeXT, cc -E runs the code through the compiler's parser,
11555 # not just through cpp. "Syntax error" is here to catch this case.
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #ifdef __STDC__
11559 # include <limits.h>
11560 #else
11561 # include <assert.h>
11562 #endif
11563 Syntax error
11564 _ACEOF
11565 if ac_fn_cxx_try_cpp "$LINENO"; then :
11566
11567 else
11568 # Broken: fails on valid input.
11569 continue
11570 fi
11571 rm -f conftest.err conftest.i conftest.$ac_ext
11572
11573 # OK, works on sane cases. Now check whether nonexistent headers
11574 # can be detected and how.
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <ac_nonexistent.h>
11578 _ACEOF
11579 if ac_fn_cxx_try_cpp "$LINENO"; then :
11580 # Broken: success on invalid input.
11581 continue
11582 else
11583 # Passes both tests.
11584 ac_preproc_ok=:
11585 break
11586 fi
11587 rm -f conftest.err conftest.i conftest.$ac_ext
11588
11589 done
11590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11591 rm -f conftest.i conftest.err conftest.$ac_ext
11592 if $ac_preproc_ok; then :
11593
11594 else
11595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11597 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11598 See \`config.log' for more details" "$LINENO" 5; }
11599 fi
11600
11601 ac_ext=cpp
11602 ac_cpp='$CXXCPP $CPPFLAGS'
11603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11606
11607
11608 for ac_header in boost/utility/string_ref.hpp
11609 do :
11610 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11611 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11612 cat >>confdefs.h <<_ACEOF
11613 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11614 _ACEOF
11615
11616 fi
11617
11618 done
11619
11620 ac_ext=c
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625
11626
11627
11628 # Check for Dyninst headers and libraries
11629
11630 # Check whether --with-dyninst was given.
11631 if test "${with_dyninst+set}" = set; then :
11632 withval=$with_dyninst;
11633 fi
11634
11635
11636 case "$with_dyninst" in
11637 no) ;;
11638 ''|yes) # Try a simple-minded distro search
11639 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11640 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11641 ;;
11642 *) # Use paths in the user-specified prefix
11643 DYNINST_CXXFLAGS="-I$with_dyninst/include"
11644 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
11645 ;;
11646 esac
11647 if test "$with_dyninst" != "no"; then
11648 ac_ext=cpp
11649 ac_cpp='$CXXCPP $CPPFLAGS'
11650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11653
11654 old_CPPFLAGS="$CPPFLAGS"
11655 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11657 $as_echo "$as_me: checking dyninst support" >&6;}
11658 for ac_header in BPatch_object.h
11659 do :
11660 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11661 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define HAVE_BPATCH_OBJECT_H 1
11664 _ACEOF
11665
11666
11667
11668
11669 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11670
11671 have_dyninst=yes
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11673 $as_echo "$as_me: dyninst support available" >&6;}
11674 fi
11675
11676 done
11677
11678 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11679 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11680 fi
11681 CPPFLAGS="$old_CPPFLAGS"
11682 ac_ext=c
11683 ac_cpp='$CPP $CPPFLAGS'
11684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11687
11688 fi
11689 if test "${have_dyninst}" = "yes"; then
11690 HAVE_DYNINST_TRUE=
11691 HAVE_DYNINST_FALSE='#'
11692 else
11693 HAVE_DYNINST_TRUE='#'
11694 HAVE_DYNINST_FALSE=
11695 fi
11696
11697
11698
11699
11700 # Check whether --enable-virt was given.
11701 if test "${enable_virt+set}" = set; then :
11702 enableval=$enable_virt; enable_virt=$enableval
11703 else
11704 enable_virt="check"
11705 fi
11706
11707
11708
11709 pkg_failed=no
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11711 $as_echo_n "checking for libvirt... " >&6; }
11712
11713 if test -n "$libvirt_CFLAGS"; then
11714 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11715 elif test -n "$PKG_CONFIG"; then
11716 if test -n "$PKG_CONFIG" && \
11717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11718 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11719 ac_status=$?
11720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; }; then
11722 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11723 test "x$?" != "x0" && pkg_failed=yes
11724 else
11725 pkg_failed=yes
11726 fi
11727 else
11728 pkg_failed=untried
11729 fi
11730 if test -n "$libvirt_LIBS"; then
11731 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11732 elif test -n "$PKG_CONFIG"; then
11733 if test -n "$PKG_CONFIG" && \
11734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11735 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11736 ac_status=$?
11737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11738 test $ac_status = 0; }; then
11739 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11740 test "x$?" != "x0" && pkg_failed=yes
11741 else
11742 pkg_failed=yes
11743 fi
11744 else
11745 pkg_failed=untried
11746 fi
11747
11748
11749
11750 if test $pkg_failed = yes; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11753
11754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11755 _pkg_short_errors_supported=yes
11756 else
11757 _pkg_short_errors_supported=no
11758 fi
11759 if test $_pkg_short_errors_supported = yes; then
11760 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11761 else
11762 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11763 fi
11764 # Put the nasty error message in config.log where it belongs
11765 echo "$libvirt_PKG_ERRORS" >&5
11766
11767 have_libvirt=no
11768 elif test $pkg_failed = untried; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 have_libvirt=no
11772 else
11773 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
11774 libvirt_LIBS=$pkg_cv_libvirt_LIBS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11776 $as_echo "yes" >&6; }
11777
11778 have_libvirt=yes
11779
11780 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
11781
11782
11783 fi
11784 if test "${have_libvirt}" = "yes"; then
11785 HAVE_LIBVIRT_TRUE=
11786 HAVE_LIBVIRT_FALSE='#'
11787 else
11788 HAVE_LIBVIRT_TRUE='#'
11789 HAVE_LIBVIRT_FALSE=
11790 fi
11791
11792
11793 pkg_failed=no
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
11795 $as_echo_n "checking for libxml2... " >&6; }
11796
11797 if test -n "$libxml2_CFLAGS"; then
11798 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
11799 elif test -n "$PKG_CONFIG"; then
11800 if test -n "$PKG_CONFIG" && \
11801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11802 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11803 ac_status=$?
11804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805 test $ac_status = 0; }; then
11806 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
11807 test "x$?" != "x0" && pkg_failed=yes
11808 else
11809 pkg_failed=yes
11810 fi
11811 else
11812 pkg_failed=untried
11813 fi
11814 if test -n "$libxml2_LIBS"; then
11815 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
11816 elif test -n "$PKG_CONFIG"; then
11817 if test -n "$PKG_CONFIG" && \
11818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11819 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11820 ac_status=$?
11821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822 test $ac_status = 0; }; then
11823 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
11824 test "x$?" != "x0" && pkg_failed=yes
11825 else
11826 pkg_failed=yes
11827 fi
11828 else
11829 pkg_failed=untried
11830 fi
11831
11832
11833
11834 if test $pkg_failed = yes; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837
11838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11839 _pkg_short_errors_supported=yes
11840 else
11841 _pkg_short_errors_supported=no
11842 fi
11843 if test $_pkg_short_errors_supported = yes; then
11844 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
11845 else
11846 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
11847 fi
11848 # Put the nasty error message in config.log where it belongs
11849 echo "$libxml2_PKG_ERRORS" >&5
11850
11851 have_libxml2=no
11852 elif test $pkg_failed = untried; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 have_libxml2=no
11856 else
11857 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
11858 libxml2_LIBS=$pkg_cv_libxml2_LIBS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 $as_echo "yes" >&6; }
11861
11862 have_libxml2=yes
11863
11864 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11865
11866
11867 fi
11868 if test "${have_libxml2}" = "yes"; then
11869 HAVE_LIBXML2_TRUE=
11870 HAVE_LIBXML2_FALSE='#'
11871 else
11872 HAVE_LIBXML2_TRUE='#'
11873 HAVE_LIBXML2_FALSE=
11874 fi
11875
11876
11877 if test "$enable_virt" != "no"; then
11878 if test "x${have_libvirt}" != "xyes"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
11880 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
11881 fi
11882 if test "x${have_libxml2}" != "xyes"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
11884 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
11885 fi
11886 fi
11887 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
11888 BUILD_VIRT_TRUE=
11889 BUILD_VIRT_FALSE='#'
11890 else
11891 BUILD_VIRT_TRUE='#'
11892 BUILD_VIRT_FALSE=
11893 fi
11894
11895
11896
11897 # Check whether --with-python2-probes was given.
11898 if test "${with_python2_probes+set}" = set; then :
11899 withval=$with_python2_probes;
11900 fi
11901
11902 have_python2_support=no
11903 if test "x$with_python2_probes" != "xno"; then :
11904 pathless_python=$(basename "$PYTHON")
11905 # Extract the first word of "${pathless_python}-config", so it can be a program name with args.
11906 set dummy ${pathless_python}-config; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $PYTHON_CONFIG in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
11915 ;;
11916 *)
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928 done
11929 done
11930 IFS=$as_save_IFS
11931
11932 test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="no"
11933 ;;
11934 esac
11935 fi
11936 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
11937 if test -n "$PYTHON_CONFIG"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
11939 $as_echo "$PYTHON_CONFIG" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944
11945
11946 if test "x$PYTHON_CONFIG" != "xno"; then :
11947 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
11948 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
11949
11950 save_CPPFLAGS="$CPPFLAGS"
11951 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
11952 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
11953 for ac_header in Python.h
11954 do :
11955 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11956 if test "x$ac_cv_header_Python_h" = xyes; then :
11957 cat >>confdefs.h <<_ACEOF
11958 #define HAVE_PYTHON_H 1
11959 _ACEOF
11960 have_python2_support=yes
11961 fi
11962
11963 done
11964
11965 CPPFLAGS="$save_CPPFLAGS"
11966 fi
11967 fi
11968 if test "x$have_python2_support" = "xyes"; then :
11969
11970 $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
11971
11972 else
11973 if test "x$with_python2_probes" = "xyes"; then :
11974 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
11975 fi
11976
11977 fi
11978 if test "x$have_python2_support" = "xyes"; then
11979 HAVE_PYTHON2_PROBES_TRUE=
11980 HAVE_PYTHON2_PROBES_FALSE='#'
11981 else
11982 HAVE_PYTHON2_PROBES_TRUE='#'
11983 HAVE_PYTHON2_PROBES_FALSE=
11984 fi
11985
11986
11987
11988 # Check whether --with-python3-probes was given.
11989 if test "${with_python3_probes+set}" = set; then :
11990 withval=$with_python3_probes;
11991 fi
11992
11993 have_python3_support=no
11994 if test "x$with_python3_probes" != "xno"; then :
11995 pathless_python3=$(basename "$PYTHON3")
11996 if test "x${pathless_python3}" == "x"; then
11997 pathless_python3="python3"
11998 fi
11999 # Extract the first word of "${pathless_python3}-config", so it can be a program name with args.
12000 set dummy ${pathless_python3}-config; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 case $PYTHON3_CONFIG in
12007 [\\/]* | ?:[\\/]*)
12008 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
12009 ;;
12010 *)
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12021 fi
12022 done
12023 done
12024 IFS=$as_save_IFS
12025
12026 test -z "$ac_cv_path_PYTHON3_CONFIG" && ac_cv_path_PYTHON3_CONFIG="no"
12027 ;;
12028 esac
12029 fi
12030 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
12031 if test -n "$PYTHON3_CONFIG"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
12033 $as_echo "$PYTHON3_CONFIG" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 if test "x$PYTHON3_CONFIG" != "xno"; then :
12041 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
12042 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
12043
12044 save_CPPFLAGS="$CPPFLAGS"
12045 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
12046 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
12047 for ac_header in Python.h
12048 do :
12049 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
12050 if test "x$ac_cv_header_Python_h" = xyes; then :
12051 cat >>confdefs.h <<_ACEOF
12052 #define HAVE_PYTHON_H 1
12053 _ACEOF
12054 have_python3_support=yes
12055 fi
12056
12057 done
12058
12059 CPPFLAGS="$save_CPPFLAGS"
12060 fi
12061 fi
12062 if test "x$have_python3_support" = "xyes"; then :
12063
12064 $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
12065
12066 else
12067 if test "x$with_python3_probes" = "xyes"; then :
12068 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
12069 fi
12070
12071 fi
12072 if test "x$have_python3_support" = "xyes"; then
12073 HAVE_PYTHON3_PROBES_TRUE=
12074 HAVE_PYTHON3_PROBES_FALSE='#'
12075 else
12076 HAVE_PYTHON3_PROBES_TRUE='#'
12077 HAVE_PYTHON3_PROBES_FALSE=
12078 fi
12079
12080
12081 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
12082 HAVE_PYTHON_PROBES_TRUE=
12083 HAVE_PYTHON_PROBES_FALSE='#'
12084 else
12085 HAVE_PYTHON_PROBES_TRUE='#'
12086 HAVE_PYTHON_PROBES_FALSE=
12087 fi
12088
12089
12090
12091 pkg_failed=no
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12093 $as_echo_n "checking for jsonc... " >&6; }
12094
12095 if test -n "$jsonc_CFLAGS"; then
12096 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12097 elif test -n "$PKG_CONFIG"; then
12098 if test -n "$PKG_CONFIG" && \
12099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
12100 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
12101 ac_status=$?
12102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103 test $ac_status = 0; }; then
12104 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.12" 2>/dev/null`
12105 test "x$?" != "x0" && pkg_failed=yes
12106 else
12107 pkg_failed=yes
12108 fi
12109 else
12110 pkg_failed=untried
12111 fi
12112 if test -n "$jsonc_LIBS"; then
12113 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12114 elif test -n "$PKG_CONFIG"; then
12115 if test -n "$PKG_CONFIG" && \
12116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
12117 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
12118 ac_status=$?
12119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12120 test $ac_status = 0; }; then
12121 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.12" 2>/dev/null`
12122 test "x$?" != "x0" && pkg_failed=yes
12123 else
12124 pkg_failed=yes
12125 fi
12126 else
12127 pkg_failed=untried
12128 fi
12129
12130
12131
12132 if test $pkg_failed = yes; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135
12136 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12137 _pkg_short_errors_supported=yes
12138 else
12139 _pkg_short_errors_supported=no
12140 fi
12141 if test $_pkg_short_errors_supported = yes; then
12142 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12143 else
12144 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12145 fi
12146 # Put the nasty error message in config.log where it belongs
12147 echo "$jsonc_PKG_ERRORS" >&5
12148
12149 have_jsonc=no
12150 elif test $pkg_failed = untried; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153 have_jsonc=no
12154 else
12155 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12156 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12158 $as_echo "yes" >&6; }
12159 have_jsonc=yes
12160 fi
12161
12162 pkg_failed=no
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12164 $as_echo_n "checking for ncurses... " >&6; }
12165
12166 if test -n "$ncurses_CFLAGS"; then
12167 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12168 elif test -n "$PKG_CONFIG"; then
12169 if test -n "$PKG_CONFIG" && \
12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12171 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12172 ac_status=$?
12173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174 test $ac_status = 0; }; then
12175 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12176 test "x$?" != "x0" && pkg_failed=yes
12177 else
12178 pkg_failed=yes
12179 fi
12180 else
12181 pkg_failed=untried
12182 fi
12183 if test -n "$ncurses_LIBS"; then
12184 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12185 elif test -n "$PKG_CONFIG"; then
12186 if test -n "$PKG_CONFIG" && \
12187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12188 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12189 ac_status=$?
12190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191 test $ac_status = 0; }; then
12192 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12193 test "x$?" != "x0" && pkg_failed=yes
12194 else
12195 pkg_failed=yes
12196 fi
12197 else
12198 pkg_failed=untried
12199 fi
12200
12201
12202
12203 if test $pkg_failed = yes; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206
12207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12208 _pkg_short_errors_supported=yes
12209 else
12210 _pkg_short_errors_supported=no
12211 fi
12212 if test $_pkg_short_errors_supported = yes; then
12213 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12214 else
12215 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12216 fi
12217 # Put the nasty error message in config.log where it belongs
12218 echo "$ncurses_PKG_ERRORS" >&5
12219
12220 have_ncurses=no
12221 elif test $pkg_failed = untried; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 have_ncurses=no
12225 else
12226 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12227 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230 have_ncurses=yes
12231 fi
12232 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12233 HAVE_MONITOR_LIBS_TRUE=
12234 HAVE_MONITOR_LIBS_FALSE='#'
12235 else
12236 HAVE_MONITOR_LIBS_TRUE='#'
12237 HAVE_MONITOR_LIBS_FALSE=
12238 fi
12239
12240 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12241
12242 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12243
12244 fi
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12247 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12248 if ${stap_cv_sectionq+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251
12252 old_CFLAGS="$CFLAGS"
12253 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 asm(".section .note.foo,\"?\",\"note\"\n"
12257 ".byte 1, 2, 3\n"
12258 ".previous\n"
12259 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12260 ".byte 1\n"
12261 ".pushsection .note.foo,\"?\",\"note\"\n"
12262 ".byte 4, 5, 6\n"
12263 ".popsection\n"
12264 ".byte 2\n");
12265 _ACEOF
12266 if ac_fn_c_try_compile "$LINENO"; then :
12267 stap_cv_sectionq=yes
12268 else
12269 stap_cv_sectionq=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 CFLAGS="$old_CFLAGS"
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12275 $as_echo "$stap_cv_sectionq" >&6; }
12276
12277 support_section_question=0
12278 if test $stap_cv_sectionq = yes; then
12279 support_section_question=1
12280 fi
12281
12282 for ac_header in linux/bpf.h
12283 do :
12284 ac_fn_c_check_header_mongrel "$LINENO" "linux/bpf.h" "ac_cv_header_linux_bpf_h" "$ac_includes_default"
12285 if test "x$ac_cv_header_linux_bpf_h" = xyes; then :
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_LINUX_BPF_H 1
12288 _ACEOF
12289
12290 fi
12291
12292 done
12293
12294 if test "x$ac_cv_header_linux_bpf_h" = "xyes"; then
12295 HAVE_LINUX_BPF_H_TRUE=
12296 HAVE_LINUX_BPF_H_FALSE='#'
12297 else
12298 HAVE_LINUX_BPF_H_TRUE='#'
12299 HAVE_LINUX_BPF_H_FALSE=
12300 fi
12301
12302
12303 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12304
12305
12306 if test $build_elfutils = yes -a $enable_translator = yes; then
12307 here=`pwd`
12308 case "$with_elfutils" in
12309 /*) elfutils_srcdir="$with_elfutils" ;;
12310 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12311 esac
12312
12313 if ! test -f ${elfutils_srcdir}/configure; then
12314 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12317 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12318
12319 save_CFLAGS="$CFLAGS"
12320 save_CXXFLAGS="$CXXFLAGS"
12321 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12322 CFLAGS="$CFLAGS -fgnu89-inline"
12323 gnu89_inline_flag=""
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 int something ();
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12331 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12332 gnu89_inline_flag="-fgnu89-inline"
12333 else
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12336 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 CFLAGS="$save_CFLAGS"
12340 CXXFLAGS="$save_CXXFLAGS"
12341
12342 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12343 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12344 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12345 # So we must make sure to pass those settings to elfutils configure.
12346 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12347 # Check whether this is a source release, or a source checkout.
12348 # We need --enable-maintainer-mode if it isn't a source release.
12349 # elfutils.spec is only distributed in source releases.
12350 if test -f ${elfutils_srcdir}/elfutils.spec; then
12351 need_maintainer_option=""
12352 else
12353 need_maintainer_option="--enable-maintainer-mode"
12354 fi
12355 (mkdir -p build-elfutils && cd build-elfutils &&
12356 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12357 --includedir="${here}/include-elfutils" \
12358 --libdir="${here}/lib-elfutils" \
12359 --exec-prefix="$exec_prefix" \
12360 --prefix="$prefix" \
12361 --enable-dwz \
12362 ${need_maintainer_option} \
12363 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12364 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12365 if test -f ${elfutils_srcdir}/config/version.h.in; then
12366 echo Found elfutils/version.h header...
12367 else
12368 echo elfutils/version.h header not found, need elfutils 0.142+...
12369 exit -1
12370 fi
12371 )
12372 if test $? != 0; then exit -1; fi
12373 fi
12374
12375
12376 # Check whether --with-selinux was given.
12377 if test "${with_selinux+set}" = set; then :
12378 withval=$with_selinux;
12379 fi
12380
12381
12382 if test "x$with_selinux" != "xno"; then :
12383
12384
12385 pkg_failed=no
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12387 $as_echo_n "checking for selinux... " >&6; }
12388
12389 if test -n "$selinux_CFLAGS"; then
12390 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12391 elif test -n "$PKG_CONFIG"; then
12392 if test -n "$PKG_CONFIG" && \
12393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12394 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12395 ac_status=$?
12396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12397 test $ac_status = 0; }; then
12398 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12399 test "x$?" != "x0" && pkg_failed=yes
12400 else
12401 pkg_failed=yes
12402 fi
12403 else
12404 pkg_failed=untried
12405 fi
12406 if test -n "$selinux_LIBS"; then
12407 pkg_cv_selinux_LIBS="$selinux_LIBS"
12408 elif test -n "$PKG_CONFIG"; then
12409 if test -n "$PKG_CONFIG" && \
12410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12411 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; }; then
12415 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12416 test "x$?" != "x0" && pkg_failed=yes
12417 else
12418 pkg_failed=yes
12419 fi
12420 else
12421 pkg_failed=untried
12422 fi
12423
12424
12425
12426 if test $pkg_failed = yes; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429
12430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12431 _pkg_short_errors_supported=yes
12432 else
12433 _pkg_short_errors_supported=no
12434 fi
12435 if test $_pkg_short_errors_supported = yes; then
12436 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12437 else
12438 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12439 fi
12440 # Put the nasty error message in config.log where it belongs
12441 echo "$selinux_PKG_ERRORS" >&5
12442
12443 have_selinux=no
12444 elif test $pkg_failed = untried; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 have_selinux=no
12448 else
12449 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12450 selinux_LIBS=$pkg_cv_selinux_LIBS
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12453 have_selinux=yes
12454
12455 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12456
12457
12458 fi
12459
12460 else
12461 have_selinux=no
12462 fi
12463
12464 if test "${have_selinux}" = "yes"; then
12465 HAVE_SELINUX_TRUE=
12466 HAVE_SELINUX_FALSE='#'
12467 else
12468 HAVE_SELINUX_TRUE='#'
12469 HAVE_SELINUX_FALSE=
12470 fi
12471
12472
12473 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12474 "
12475 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12476
12477 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12478
12479 fi
12480
12481
12482 # Extract the first word of "javac", so it can be a program name with args.
12483 set dummy javac; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_prog_have_javac+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 if test -n "$have_javac"; then
12490 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_prog_have_javac="yes"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503 done
12504 done
12505 IFS=$as_save_IFS
12506
12507 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12508 fi
12509 fi
12510 have_javac=$ac_cv_prog_have_javac
12511 if test -n "$have_javac"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12513 $as_echo "$have_javac" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 # Extract the first word of "jar", so it can be a program name with args.
12521 set dummy jar; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if ${ac_cv_prog_have_jar+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 if test -n "$have_jar"; then
12528 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12529 else
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12532 do
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537 ac_cv_prog_have_jar="yes"
12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 break 2
12540 fi
12541 done
12542 done
12543 IFS=$as_save_IFS
12544
12545 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12546 fi
12547 fi
12548 have_jar=$ac_cv_prog_have_jar
12549 if test -n "$have_jar"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12551 $as_echo "$have_jar" >&6; }
12552 else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556
12557
12558 if test "$have_javac" != no -a "$have_jar" != no; then
12559 echo java found, will try to configure Byteman support
12560
12561
12562 # Check whether --with-java was given.
12563 if test "${with_java+set}" = set; then :
12564 withval=$with_java;
12565 else
12566 with_java=/usr/lib/jvm/java
12567 fi
12568
12569 if test ! -d "$with_java"; then
12570 with_java=no
12571 fi
12572 JAVADIR="${with_java}"
12573 # always needed to compile
12574
12575 if test "$with_java" != "no"; then
12576
12577 cat >>confdefs.h <<_ACEOF
12578 #define HAVE_JAVA "1"
12579 _ACEOF
12580
12581 fi
12582
12583 if test "$with_java" != "no"; then
12584 HAVE_JAVA_TRUE=
12585 HAVE_JAVA_FALSE='#'
12586 else
12587 HAVE_JAVA_TRUE='#'
12588 HAVE_JAVA_FALSE=
12589 fi
12590
12591
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12594 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12595 if false; then
12596 HAVE_JAVA_TRUE=
12597 HAVE_JAVA_FALSE='#'
12598 else
12599 HAVE_JAVA_TRUE='#'
12600 HAVE_JAVA_FALSE=
12601 fi
12602
12603 fi # java+byteman support
12604
12605 ENABLE_NLS="$USE_NLS"
12606
12607 localedir="$localedir"
12608
12609 LOCALEDIR="$localedir"
12610
12611
12612
12613 # Check whether --with-extra-version was given.
12614 if test "${with_extra_version+set}" = set; then :
12615 withval=$with_extra_version;
12616 fi
12617
12618 if test "x$with_extra_version" != "xno"; then :
12619
12620 stap_extra_version="$with_extra_version"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12622 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12623 else
12624
12625 stap_extra_version=""
12626 fi
12627
12628 cat >>confdefs.h <<_ACEOF
12629 #define STAP_EXTRA_VERSION "$stap_extra_version"
12630 _ACEOF
12631
12632 STAP_EXTRA_VERSION="$stap_extra_version"
12633
12634
12635 # Check whether --enable-http was given.
12636 if test "${enable_http+set}" = set; then :
12637 enableval=$enable_http;
12638 fi
12639
12640 have_http_support=no
12641 if test "x$enable_http" = "xyes"; then :
12642
12643 pkg_failed=no
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
12645 $as_echo_n "checking for libmicrohttpd... " >&6; }
12646
12647 if test -n "$libmicrohttpd_CFLAGS"; then
12648 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12652 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.0" 2>/dev/null`
12657 test "x$?" != "x0" && pkg_failed=yes
12658 else
12659 pkg_failed=yes
12660 fi
12661 else
12662 pkg_failed=untried
12663 fi
12664 if test -n "$libmicrohttpd_LIBS"; then
12665 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
12666 elif test -n "$PKG_CONFIG"; then
12667 if test -n "$PKG_CONFIG" && \
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.0\""; } >&5
12669 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.0") 2>&5
12670 ac_status=$?
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.0" 2>/dev/null`
12674 test "x$?" != "x0" && pkg_failed=yes
12675 else
12676 pkg_failed=yes
12677 fi
12678 else
12679 pkg_failed=untried
12680 fi
12681
12682
12683
12684 if test $pkg_failed = yes; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687
12688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12689 _pkg_short_errors_supported=yes
12690 else
12691 _pkg_short_errors_supported=no
12692 fi
12693 if test $_pkg_short_errors_supported = yes; then
12694 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12695 else
12696 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.0" 2>&1`
12697 fi
12698 # Put the nasty error message in config.log where it belongs
12699 echo "$libmicrohttpd_PKG_ERRORS" >&5
12700
12701 have_libmicrohttpd=false
12702 elif test $pkg_failed = untried; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705 have_libmicrohttpd=false
12706 else
12707 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
12708 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710 $as_echo "yes" >&6; }
12711 have_libmicrohttpd=true
12712 fi
12713
12714
12715 pkg_failed=no
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid" >&5
12717 $as_echo_n "checking for uuid... " >&6; }
12718
12719 if test -n "$uuid_CFLAGS"; then
12720 pkg_cv_uuid_CFLAGS="$uuid_CFLAGS"
12721 elif test -n "$PKG_CONFIG"; then
12722 if test -n "$PKG_CONFIG" && \
12723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12724 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727 test $ac_status = 0; }; then
12728 pkg_cv_uuid_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.17.0" 2>/dev/null`
12729 test "x$?" != "x0" && pkg_failed=yes
12730 else
12731 pkg_failed=yes
12732 fi
12733 else
12734 pkg_failed=untried
12735 fi
12736 if test -n "$uuid_LIBS"; then
12737 pkg_cv_uuid_LIBS="$uuid_LIBS"
12738 elif test -n "$PKG_CONFIG"; then
12739 if test -n "$PKG_CONFIG" && \
12740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.17.0\""; } >&5
12741 ($PKG_CONFIG --exists --print-errors "uuid >= 2.17.0") 2>&5
12742 ac_status=$?
12743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12744 test $ac_status = 0; }; then
12745 pkg_cv_uuid_LIBS=`$PKG_CONFIG --libs "uuid >= 2.17.0" 2>/dev/null`
12746 test "x$?" != "x0" && pkg_failed=yes
12747 else
12748 pkg_failed=yes
12749 fi
12750 else
12751 pkg_failed=untried
12752 fi
12753
12754
12755
12756 if test $pkg_failed = yes; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759
12760 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12761 _pkg_short_errors_supported=yes
12762 else
12763 _pkg_short_errors_supported=no
12764 fi
12765 if test $_pkg_short_errors_supported = yes; then
12766 uuid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
12767 else
12768 uuid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.17.0" 2>&1`
12769 fi
12770 # Put the nasty error message in config.log where it belongs
12771 echo "$uuid_PKG_ERRORS" >&5
12772
12773 have_libuuid=false
12774 elif test $pkg_failed = untried; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 have_libuuid=false
12778 else
12779 uuid_CFLAGS=$pkg_cv_uuid_CFLAGS
12780 uuid_LIBS=$pkg_cv_uuid_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782 $as_echo "yes" >&6; }
12783 have_libuuid=true
12784 fi
12785
12786
12787 pkg_failed=no
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
12789 $as_echo_n "checking for libcurl... " >&6; }
12790
12791 if test -n "$libcurl_CFLAGS"; then
12792 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
12793 elif test -n "$PKG_CONFIG"; then
12794 if test -n "$PKG_CONFIG" && \
12795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
12796 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
12797 ac_status=$?
12798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12799 test $ac_status = 0; }; then
12800 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.19.7" 2>/dev/null`
12801 test "x$?" != "x0" && pkg_failed=yes
12802 else
12803 pkg_failed=yes
12804 fi
12805 else
12806 pkg_failed=untried
12807 fi
12808 if test -n "$libcurl_LIBS"; then
12809 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
12810 elif test -n "$PKG_CONFIG"; then
12811 if test -n "$PKG_CONFIG" && \
12812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.19.7\""; } >&5
12813 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.19.7") 2>&5
12814 ac_status=$?
12815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816 test $ac_status = 0; }; then
12817 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.19.7" 2>/dev/null`
12818 test "x$?" != "x0" && pkg_failed=yes
12819 else
12820 pkg_failed=yes
12821 fi
12822 else
12823 pkg_failed=untried
12824 fi
12825
12826
12827
12828 if test $pkg_failed = yes; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831
12832 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12833 _pkg_short_errors_supported=yes
12834 else
12835 _pkg_short_errors_supported=no
12836 fi
12837 if test $_pkg_short_errors_supported = yes; then
12838 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
12839 else
12840 libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.19.7" 2>&1`
12841 fi
12842 # Put the nasty error message in config.log where it belongs
12843 echo "$libcurl_PKG_ERRORS" >&5
12844
12845 have_libcurl=false
12846 elif test $pkg_failed = untried; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 have_libcurl=false
12850 else
12851 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
12852 libcurl_LIBS=$pkg_cv_libcurl_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854 $as_echo "yes" >&6; }
12855 have_libcurl=true
12856 fi
12857
12858 if test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_libcurl" == "xtrue" -a "x$have_jsonc" == "xyes"; then :
12859 have_http_support=yes
12860 fi
12861 fi
12862
12863 if test "x$have_http_support" = "xyes"; then :
12864
12865 $as_echo "#define HAVE_HTTP_SUPPORT 1" >>confdefs.h
12866
12867 else
12868 if test "x$enable_http" = "xyes"; then :
12869 as_fn_error $? "http service support requested but not found" "$LINENO" 5
12870 fi
12871
12872 fi
12873 if test "x$have_http_support" = "xyes"; then
12874 HAVE_HTTP_SUPPORT_TRUE=
12875 HAVE_HTTP_SUPPORT_FALSE='#'
12876 else
12877 HAVE_HTTP_SUPPORT_TRUE='#'
12878 HAVE_HTTP_SUPPORT_FALSE=
12879 fi
12880
12881
12882 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then
12883 NEED_BASE_CLIENT_CODE_TRUE=
12884 NEED_BASE_CLIENT_CODE_FALSE='#'
12885 else
12886 NEED_BASE_CLIENT_CODE_TRUE='#'
12887 NEED_BASE_CLIENT_CODE_FALSE=
12888 fi
12889
12890 if test "x$have_http_support" = "xyes" -o "x$have_nss" = "xyes"; then :
12891
12892
12893 $as_echo "#define NEED_BASE_CLIENT_CODE 1" >>confdefs.h
12894
12895
12896 fi
12897
12898
12899 stap_prefix=$prefix
12900 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
12901
12902 cat >>confdefs.h <<_ACEOF
12903 #define STAP_PREFIX "$stap_prefix"
12904 _ACEOF
12905
12906 STAP_PREFIX="$stap_prefix"
12907
12908
12909 ac_config_headers="$ac_config_headers config.h:config.in"
12910
12911 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.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"
12912
12913
12914
12915 subdirs="$subdirs testsuite"
12916
12917 if test $enable_translator == "yes"; then
12918 ac_config_files="$ac_config_files run-stap"
12919
12920 fi
12921 ac_config_files="$ac_config_files dtrace"
12922
12923 ac_config_files="$ac_config_files stapdyn/Makefile"
12924
12925 ac_config_files="$ac_config_files java/Makefile"
12926
12927 ac_config_files="$ac_config_files java/stapbm"
12928
12929 ac_config_files="$ac_config_files python/Makefile"
12930
12931 ac_config_files="$ac_config_files staprun/Makefile"
12932
12933 ac_config_files="$ac_config_files stapbpf/Makefile"
12934
12935 ac_config_files="$ac_config_files httpd/Makefile"
12936
12937 ac_config_files="$ac_config_files staprun/run-staprun"
12938
12939 ac_config_files="$ac_config_files staprun/guest/stapshd"
12940
12941 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
12942
12943 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
12944
12945
12946 # Setup "shadow" directory doc/beginners that has the basic directories setup for
12947 # xmlto in one directory (through directory links if necessary).
12948 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
12949 # the src is a directory and not a file.
12950 ac_config_commands="$ac_config_commands doc/beginners"
12951
12952
12953 cat >confcache <<\_ACEOF
12954 # This file is a shell script that caches the results of configure
12955 # tests run on this system so they can be shared between configure
12956 # scripts and configure runs, see configure's option --config-cache.
12957 # It is not useful on other systems. If it contains results you don't
12958 # want to keep, you may remove or edit it.
12959 #
12960 # config.status only pays attention to the cache file if you give it
12961 # the --recheck option to rerun configure.
12962 #
12963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12965 # following values.
12966
12967 _ACEOF
12968
12969 # The following way of writing the cache mishandles newlines in values,
12970 # but we know of no workaround that is simple, portable, and efficient.
12971 # So, we kill variables containing newlines.
12972 # Ultrix sh set writes to stderr and can't be redirected directly,
12973 # and sets the high bit in the cache file unless we assign to the vars.
12974 (
12975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12976 eval ac_val=\$$ac_var
12977 case $ac_val in #(
12978 *${as_nl}*)
12979 case $ac_var in #(
12980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12982 esac
12983 case $ac_var in #(
12984 _ | IFS | as_nl) ;; #(
12985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12986 *) { eval $ac_var=; unset $ac_var;} ;;
12987 esac ;;
12988 esac
12989 done
12990
12991 (set) 2>&1 |
12992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12993 *${as_nl}ac_space=\ *)
12994 # `set' does not quote correctly, so add quotes: double-quote
12995 # substitution turns \\\\ into \\, and sed turns \\ into \.
12996 sed -n \
12997 "s/'/'\\\\''/g;
12998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12999 ;; #(
13000 *)
13001 # `set' quotes correctly as required by POSIX, so do not add quotes.
13002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13003 ;;
13004 esac |
13005 sort
13006 ) |
13007 sed '
13008 /^ac_cv_env_/b end
13009 t clear
13010 :clear
13011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13012 t end
13013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13014 :end' >>confcache
13015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13016 if test -w "$cache_file"; then
13017 if test "x$cache_file" != "x/dev/null"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13019 $as_echo "$as_me: updating cache $cache_file" >&6;}
13020 if test ! -f "$cache_file" || test -h "$cache_file"; then
13021 cat confcache >"$cache_file"
13022 else
13023 case $cache_file in #(
13024 */* | ?:*)
13025 mv -f confcache "$cache_file"$$ &&
13026 mv -f "$cache_file"$$ "$cache_file" ;; #(
13027 *)
13028 mv -f confcache "$cache_file" ;;
13029 esac
13030 fi
13031 fi
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13034 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13035 fi
13036 fi
13037 rm -f confcache
13038
13039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13040 # Let make expand exec_prefix.
13041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13042
13043 DEFS=-DHAVE_CONFIG_H
13044
13045 ac_libobjs=
13046 ac_ltlibobjs=
13047 U=
13048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13049 # 1. Remove the extension, and $U if already installed.
13050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13053 # will be set to the directory where LIBOBJS objects are built.
13054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13056 done
13057 LIBOBJS=$ac_libobjs
13058
13059 LTLIBOBJS=$ac_ltlibobjs
13060
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13063 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13064 if test -n "$am_sleep_pid"; then
13065 # Hide warnings about reused PIDs.
13066 wait $am_sleep_pid 2>/dev/null
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13069 $as_echo "done" >&6; }
13070 if test -n "$EXEEXT"; then
13071 am__EXEEXT_TRUE=
13072 am__EXEEXT_FALSE='#'
13073 else
13074 am__EXEEXT_TRUE='#'
13075 am__EXEEXT_FALSE=
13076 fi
13077
13078 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13079 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13081 fi
13082 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13083 as_fn_error $? "conditional \"AMDEP\" was never defined.
13084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13085 fi
13086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13087 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13089 fi
13090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13091 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13093 fi
13094 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13095 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13097 fi
13098 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
13099 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
13100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13101 fi
13102 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
13103 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
13104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105 fi
13106 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13107 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13109 fi
13110 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
13111 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
13112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13113 fi
13114 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13115 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13117 fi
13118 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13119 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13121 fi
13122 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13123 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13125 fi
13126 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13127 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
13128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13129 fi
13130 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13131 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
13132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13133 fi
13134 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13135 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
13136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13137 fi
13138 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13139 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
13140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13141 fi
13142 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13143 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13145 fi
13146 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13147 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
13148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13149 fi
13150 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13151 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13153 fi
13154 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13155 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13157 fi
13158 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13159 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13161 fi
13162 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13163 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13165 fi
13166 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
13167 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
13168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13169 fi
13170 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
13171 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
13172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13173 fi
13174 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
13175 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
13176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13177 fi
13178 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13179 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13181 fi
13182 if test -z "${HAVE_LINUX_BPF_H_TRUE}" && test -z "${HAVE_LINUX_BPF_H_FALSE}"; then
13183 as_fn_error $? "conditional \"HAVE_LINUX_BPF_H\" was never defined.
13184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13185 fi
13186 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13187 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13189 fi
13190 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13191 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13193 fi
13194 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13195 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13197 fi
13198 if test -z "${HAVE_HTTP_SUPPORT_TRUE}" && test -z "${HAVE_HTTP_SUPPORT_FALSE}"; then
13199 as_fn_error $? "conditional \"HAVE_HTTP_SUPPORT\" was never defined.
13200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13201 fi
13202 if test -z "${NEED_BASE_CLIENT_CODE_TRUE}" && test -z "${NEED_BASE_CLIENT_CODE_FALSE}"; then
13203 as_fn_error $? "conditional \"NEED_BASE_CLIENT_CODE\" was never defined.
13204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13205 fi
13206
13207 : "${CONFIG_STATUS=./config.status}"
13208 ac_write_fail=0
13209 ac_clean_files_save=$ac_clean_files
13210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13212 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13213 as_write_fail=0
13214 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13215 #! $SHELL
13216 # Generated by $as_me.
13217 # Run this file to recreate the current configuration.
13218 # Compiler output produced by configure, useful for debugging
13219 # configure, is in config.log if it exists.
13220
13221 debug=false
13222 ac_cs_recheck=false
13223 ac_cs_silent=false
13224
13225 SHELL=\${CONFIG_SHELL-$SHELL}
13226 export SHELL
13227 _ASEOF
13228 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13229 ## -------------------- ##
13230 ## M4sh Initialization. ##
13231 ## -------------------- ##
13232
13233 # Be more Bourne compatible
13234 DUALCASE=1; export DUALCASE # for MKS sh
13235 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13236 emulate sh
13237 NULLCMD=:
13238 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13239 # is contrary to our usage. Disable this feature.
13240 alias -g '${1+"$@"}'='"$@"'
13241 setopt NO_GLOB_SUBST
13242 else
13243 case `(set -o) 2>/dev/null` in #(
13244 *posix*) :
13245 set -o posix ;; #(
13246 *) :
13247 ;;
13248 esac
13249 fi
13250
13251
13252 as_nl='
13253 '
13254 export as_nl
13255 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13256 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13257 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13259 # Prefer a ksh shell builtin over an external printf program on Solaris,
13260 # but without wasting forks for bash or zsh.
13261 if test -z "$BASH_VERSION$ZSH_VERSION" \
13262 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13263 as_echo='print -r --'
13264 as_echo_n='print -rn --'
13265 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13266 as_echo='printf %s\n'
13267 as_echo_n='printf %s'
13268 else
13269 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13270 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13271 as_echo_n='/usr/ucb/echo -n'
13272 else
13273 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13274 as_echo_n_body='eval
13275 arg=$1;
13276 case $arg in #(
13277 *"$as_nl"*)
13278 expr "X$arg" : "X\\(.*\\)$as_nl";
13279 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13280 esac;
13281 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13282 '
13283 export as_echo_n_body
13284 as_echo_n='sh -c $as_echo_n_body as_echo'
13285 fi
13286 export as_echo_body
13287 as_echo='sh -c $as_echo_body as_echo'
13288 fi
13289
13290 # The user is always right.
13291 if test "${PATH_SEPARATOR+set}" != set; then
13292 PATH_SEPARATOR=:
13293 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13294 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13295 PATH_SEPARATOR=';'
13296 }
13297 fi
13298
13299
13300 # IFS
13301 # We need space, tab and new line, in precisely that order. Quoting is
13302 # there to prevent editors from complaining about space-tab.
13303 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13304 # splitting by setting IFS to empty value.)
13305 IFS=" "" $as_nl"
13306
13307 # Find who we are. Look in the path if we contain no directory separator.
13308 as_myself=
13309 case $0 in #((
13310 *[\\/]* ) as_myself=$0 ;;
13311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13317 done
13318 IFS=$as_save_IFS
13319
13320 ;;
13321 esac
13322 # We did not find ourselves, most probably we were run as `sh COMMAND'
13323 # in which case we are not to be found in the path.
13324 if test "x$as_myself" = x; then
13325 as_myself=$0
13326 fi
13327 if test ! -f "$as_myself"; then
13328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13329 exit 1
13330 fi
13331
13332 # Unset variables that we do not need and which cause bugs (e.g. in
13333 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13334 # suppresses any "Segmentation fault" message there. '((' could
13335 # trigger a bug in pdksh 5.2.14.
13336 for as_var in BASH_ENV ENV MAIL MAILPATH
13337 do eval test x\${$as_var+set} = xset \
13338 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13339 done
13340 PS1='$ '
13341 PS2='> '
13342 PS4='+ '
13343
13344 # NLS nuisances.
13345 LC_ALL=C
13346 export LC_ALL
13347 LANGUAGE=C
13348 export LANGUAGE
13349
13350 # CDPATH.
13351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13352
13353
13354 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13355 # ----------------------------------------
13356 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13357 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13358 # script with STATUS, using 1 if that was 0.
13359 as_fn_error ()
13360 {
13361 as_status=$1; test $as_status -eq 0 && as_status=1
13362 if test "$4"; then
13363 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13365 fi
13366 $as_echo "$as_me: error: $2" >&2
13367 as_fn_exit $as_status
13368 } # as_fn_error
13369
13370
13371 # as_fn_set_status STATUS
13372 # -----------------------
13373 # Set $? to STATUS, without forking.
13374 as_fn_set_status ()
13375 {
13376 return $1
13377 } # as_fn_set_status
13378
13379 # as_fn_exit STATUS
13380 # -----------------
13381 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13382 as_fn_exit ()
13383 {
13384 set +e
13385 as_fn_set_status $1
13386 exit $1
13387 } # as_fn_exit
13388
13389 # as_fn_unset VAR
13390 # ---------------
13391 # Portably unset VAR.
13392 as_fn_unset ()
13393 {
13394 { eval $1=; unset $1;}
13395 }
13396 as_unset=as_fn_unset
13397 # as_fn_append VAR VALUE
13398 # ----------------------
13399 # Append the text in VALUE to the end of the definition contained in VAR. Take
13400 # advantage of any shell optimizations that allow amortized linear growth over
13401 # repeated appends, instead of the typical quadratic growth present in naive
13402 # implementations.
13403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13404 eval 'as_fn_append ()
13405 {
13406 eval $1+=\$2
13407 }'
13408 else
13409 as_fn_append ()
13410 {
13411 eval $1=\$$1\$2
13412 }
13413 fi # as_fn_append
13414
13415 # as_fn_arith ARG...
13416 # ------------------
13417 # Perform arithmetic evaluation on the ARGs, and store the result in the
13418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13419 # must be portable across $(()) and expr.
13420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13421 eval 'as_fn_arith ()
13422 {
13423 as_val=$(( $* ))
13424 }'
13425 else
13426 as_fn_arith ()
13427 {
13428 as_val=`expr "$@" || test $? -eq 1`
13429 }
13430 fi # as_fn_arith
13431
13432
13433 if expr a : '\(a\)' >/dev/null 2>&1 &&
13434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13435 as_expr=expr
13436 else
13437 as_expr=false
13438 fi
13439
13440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13441 as_basename=basename
13442 else
13443 as_basename=false
13444 fi
13445
13446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13447 as_dirname=dirname
13448 else
13449 as_dirname=false
13450 fi
13451
13452 as_me=`$as_basename -- "$0" ||
13453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13454 X"$0" : 'X\(//\)$' \| \
13455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13456 $as_echo X/"$0" |
13457 sed '/^.*\/\([^/][^/]*\)\/*$/{
13458 s//\1/
13459 q
13460 }
13461 /^X\/\(\/\/\)$/{
13462 s//\1/
13463 q
13464 }
13465 /^X\/\(\/\).*/{
13466 s//\1/
13467 q
13468 }
13469 s/.*/./; q'`
13470
13471 # Avoid depending upon Character Ranges.
13472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13475 as_cr_digits='0123456789'
13476 as_cr_alnum=$as_cr_Letters$as_cr_digits
13477
13478 ECHO_C= ECHO_N= ECHO_T=
13479 case `echo -n x` in #(((((
13480 -n*)
13481 case `echo 'xy\c'` in
13482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13483 xy) ECHO_C='\c';;
13484 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13485 ECHO_T=' ';;
13486 esac;;
13487 *)
13488 ECHO_N='-n';;
13489 esac
13490
13491 rm -f conf$$ conf$$.exe conf$$.file
13492 if test -d conf$$.dir; then
13493 rm -f conf$$.dir/conf$$.file
13494 else
13495 rm -f conf$$.dir
13496 mkdir conf$$.dir 2>/dev/null
13497 fi
13498 if (echo >conf$$.file) 2>/dev/null; then
13499 if ln -s conf$$.file conf$$ 2>/dev/null; then
13500 as_ln_s='ln -s'
13501 # ... but there are two gotchas:
13502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13504 # In both cases, we have to default to `cp -pR'.
13505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13506 as_ln_s='cp -pR'
13507 elif ln conf$$.file conf$$ 2>/dev/null; then
13508 as_ln_s=ln
13509 else
13510 as_ln_s='cp -pR'
13511 fi
13512 else
13513 as_ln_s='cp -pR'
13514 fi
13515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13516 rmdir conf$$.dir 2>/dev/null
13517
13518
13519 # as_fn_mkdir_p
13520 # -------------
13521 # Create "$as_dir" as a directory, including parents if necessary.
13522 as_fn_mkdir_p ()
13523 {
13524
13525 case $as_dir in #(
13526 -*) as_dir=./$as_dir;;
13527 esac
13528 test -d "$as_dir" || eval $as_mkdir_p || {
13529 as_dirs=
13530 while :; do
13531 case $as_dir in #(
13532 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13533 *) as_qdir=$as_dir;;
13534 esac
13535 as_dirs="'$as_qdir' $as_dirs"
13536 as_dir=`$as_dirname -- "$as_dir" ||
13537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13538 X"$as_dir" : 'X\(//\)[^/]' \| \
13539 X"$as_dir" : 'X\(//\)$' \| \
13540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13541 $as_echo X"$as_dir" |
13542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13543 s//\1/
13544 q
13545 }
13546 /^X\(\/\/\)[^/].*/{
13547 s//\1/
13548 q
13549 }
13550 /^X\(\/\/\)$/{
13551 s//\1/
13552 q
13553 }
13554 /^X\(\/\).*/{
13555 s//\1/
13556 q
13557 }
13558 s/.*/./; q'`
13559 test -d "$as_dir" && break
13560 done
13561 test -z "$as_dirs" || eval "mkdir $as_dirs"
13562 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13563
13564
13565 } # as_fn_mkdir_p
13566 if mkdir -p . 2>/dev/null; then
13567 as_mkdir_p='mkdir -p "$as_dir"'
13568 else
13569 test -d ./-p && rmdir ./-p
13570 as_mkdir_p=false
13571 fi
13572
13573
13574 # as_fn_executable_p FILE
13575 # -----------------------
13576 # Test if FILE is an executable regular file.
13577 as_fn_executable_p ()
13578 {
13579 test -f "$1" && test -x "$1"
13580 } # as_fn_executable_p
13581 as_test_x='test -x'
13582 as_executable_p=as_fn_executable_p
13583
13584 # Sed expression to map a string onto a valid CPP name.
13585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13586
13587 # Sed expression to map a string onto a valid variable name.
13588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13589
13590
13591 exec 6>&1
13592 ## ----------------------------------- ##
13593 ## Main body of $CONFIG_STATUS script. ##
13594 ## ----------------------------------- ##
13595 _ASEOF
13596 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13597
13598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13599 # Save the log message, to keep $0 and so on meaningful, and to
13600 # report actual input values of CONFIG_FILES etc. instead of their
13601 # values after options handling.
13602 ac_log="
13603 This file was extended by systemtap $as_me 3.2, which was
13604 generated by GNU Autoconf 2.69. Invocation command line was
13605
13606 CONFIG_FILES = $CONFIG_FILES
13607 CONFIG_HEADERS = $CONFIG_HEADERS
13608 CONFIG_LINKS = $CONFIG_LINKS
13609 CONFIG_COMMANDS = $CONFIG_COMMANDS
13610 $ $0 $@
13611
13612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13613 "
13614
13615 _ACEOF
13616
13617 case $ac_config_files in *"
13618 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13619 esac
13620
13621 case $ac_config_headers in *"
13622 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13623 esac
13624
13625
13626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13627 # Files that config.status was made for.
13628 config_files="$ac_config_files"
13629 config_headers="$ac_config_headers"
13630 config_commands="$ac_config_commands"
13631
13632 _ACEOF
13633
13634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635 ac_cs_usage="\
13636 \`$as_me' instantiates files and other configuration actions
13637 from templates according to the current configuration. Unless the files
13638 and actions are specified as TAGs, all are instantiated by default.
13639
13640 Usage: $0 [OPTION]... [TAG]...
13641
13642 -h, --help print this help, then exit
13643 -V, --version print version number and configuration settings, then exit
13644 --config print configuration, then exit
13645 -q, --quiet, --silent
13646 do not print progress messages
13647 -d, --debug don't remove temporary files
13648 --recheck update $as_me by reconfiguring in the same conditions
13649 --file=FILE[:TEMPLATE]
13650 instantiate the configuration file FILE
13651 --header=FILE[:TEMPLATE]
13652 instantiate the configuration header FILE
13653
13654 Configuration files:
13655 $config_files
13656
13657 Configuration headers:
13658 $config_headers
13659
13660 Configuration commands:
13661 $config_commands
13662
13663 Report bugs to <systemtap@sourceware.org>."
13664
13665 _ACEOF
13666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13667 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13668 ac_cs_version="\\
13669 systemtap config.status 3.2
13670 configured by $0, generated by GNU Autoconf 2.69,
13671 with options \\"\$ac_cs_config\\"
13672
13673 Copyright (C) 2012 Free Software Foundation, Inc.
13674 This config.status script is free software; the Free Software Foundation
13675 gives unlimited permission to copy, distribute and modify it."
13676
13677 ac_pwd='$ac_pwd'
13678 srcdir='$srcdir'
13679 INSTALL='$INSTALL'
13680 MKDIR_P='$MKDIR_P'
13681 AWK='$AWK'
13682 test -n "\$AWK" || AWK=awk
13683 _ACEOF
13684
13685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13686 # The default lists apply if the user does not specify any file.
13687 ac_need_defaults=:
13688 while test $# != 0
13689 do
13690 case $1 in
13691 --*=?*)
13692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13694 ac_shift=:
13695 ;;
13696 --*=)
13697 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13698 ac_optarg=
13699 ac_shift=:
13700 ;;
13701 *)
13702 ac_option=$1
13703 ac_optarg=$2
13704 ac_shift=shift
13705 ;;
13706 esac
13707
13708 case $ac_option in
13709 # Handling of the options.
13710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13711 ac_cs_recheck=: ;;
13712 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13713 $as_echo "$ac_cs_version"; exit ;;
13714 --config | --confi | --conf | --con | --co | --c )
13715 $as_echo "$ac_cs_config"; exit ;;
13716 --debug | --debu | --deb | --de | --d | -d )
13717 debug=: ;;
13718 --file | --fil | --fi | --f )
13719 $ac_shift
13720 case $ac_optarg in
13721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13722 '') as_fn_error $? "missing file argument" ;;
13723 esac
13724 as_fn_append CONFIG_FILES " '$ac_optarg'"
13725 ac_need_defaults=false;;
13726 --header | --heade | --head | --hea )
13727 $ac_shift
13728 case $ac_optarg in
13729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13730 esac
13731 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13732 ac_need_defaults=false;;
13733 --he | --h)
13734 # Conflict between --help and --header
13735 as_fn_error $? "ambiguous option: \`$1'
13736 Try \`$0 --help' for more information.";;
13737 --help | --hel | -h )
13738 $as_echo "$ac_cs_usage"; exit ;;
13739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13741 ac_cs_silent=: ;;
13742
13743 # This is an error.
13744 -*) as_fn_error $? "unrecognized option: \`$1'
13745 Try \`$0 --help' for more information." ;;
13746
13747 *) as_fn_append ac_config_targets " $1"
13748 ac_need_defaults=false ;;
13749
13750 esac
13751 shift
13752 done
13753
13754 ac_configure_extra_args=
13755
13756 if $ac_cs_silent; then
13757 exec 6>/dev/null
13758 ac_configure_extra_args="$ac_configure_extra_args --silent"
13759 fi
13760
13761 _ACEOF
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763 if \$ac_cs_recheck; then
13764 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13765 shift
13766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13767 CONFIG_SHELL='$SHELL'
13768 export CONFIG_SHELL
13769 exec "\$@"
13770 fi
13771
13772 _ACEOF
13773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13774 exec 5>>config.log
13775 {
13776 echo
13777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13778 ## Running $as_me. ##
13779 _ASBOX
13780 $as_echo "$ac_log"
13781 } >&5
13782
13783 _ACEOF
13784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13785 #
13786 # INIT-COMMANDS
13787 #
13788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13789 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13790 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13791 # from automake < 1.5.
13792 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13793 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13794 LINGUAS="${LINGUAS-%UNSET%}"
13795
13796
13797 _ACEOF
13798
13799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800
13801 # Handling of arguments.
13802 for ac_config_target in $ac_config_targets
13803 do
13804 case $ac_config_target in
13805 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13806 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13807 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
13808 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13809 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13810 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13811 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13812 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13813 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13814 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
13815 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
13816 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
13817 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
13818 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
13819 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
13820 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
13821 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
13822 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
13823 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
13824 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
13825 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
13826 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
13827 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
13828 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
13829 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
13830 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
13831 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
13832 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
13833 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
13834 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13835 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
13836 "stapbpf/Makefile") CONFIG_FILES="$CONFIG_FILES stapbpf/Makefile" ;;
13837 "httpd/Makefile") CONFIG_FILES="$CONFIG_FILES httpd/Makefile" ;;
13838 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
13839 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
13840 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
13841 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
13842 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
13843
13844 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13845 esac
13846 done
13847
13848
13849 # If the user did not use the arguments to specify the items to instantiate,
13850 # then the envvar interface is used. Set only those that are not.
13851 # We use the long form for the default assignment because of an extremely
13852 # bizarre bug on SunOS 4.1.3.
13853 if $ac_need_defaults; then
13854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13857 fi
13858
13859 # Have a temporary directory for convenience. Make it in the build tree
13860 # simply because there is no reason against having it here, and in addition,
13861 # creating and moving files from /tmp can sometimes cause problems.
13862 # Hook for its removal unless debugging.
13863 # Note that there is a small window in which the directory will not be cleaned:
13864 # after its creation but before its name has been assigned to `$tmp'.
13865 $debug ||
13866 {
13867 tmp= ac_tmp=
13868 trap 'exit_status=$?
13869 : "${ac_tmp:=$tmp}"
13870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13871 ' 0
13872 trap 'as_fn_exit 1' 1 2 13 15
13873 }
13874 # Create a (secure) tmp directory for tmp files.
13875
13876 {
13877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13878 test -d "$tmp"
13879 } ||
13880 {
13881 tmp=./conf$$-$RANDOM
13882 (umask 077 && mkdir "$tmp")
13883 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13884 ac_tmp=$tmp
13885
13886 # Set up the scripts for CONFIG_FILES section.
13887 # No need to generate them if there are no CONFIG_FILES.
13888 # This happens for instance with `./config.status config.h'.
13889 if test -n "$CONFIG_FILES"; then
13890
13891
13892 ac_cr=`echo X | tr X '\015'`
13893 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13894 # But we know of no other shell where ac_cr would be empty at this
13895 # point, so we can use a bashism as a fallback.
13896 if test "x$ac_cr" = x; then
13897 eval ac_cr=\$\'\\r\'
13898 fi
13899 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13900 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13901 ac_cs_awk_cr='\\r'
13902 else
13903 ac_cs_awk_cr=$ac_cr
13904 fi
13905
13906 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13907 _ACEOF
13908
13909
13910 {
13911 echo "cat >conf$$subs.awk <<_ACEOF" &&
13912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13913 echo "_ACEOF"
13914 } >conf$$subs.sh ||
13915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13916 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13917 ac_delim='%!_!# '
13918 for ac_last_try in false false false false false :; do
13919 . ./conf$$subs.sh ||
13920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13921
13922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13923 if test $ac_delim_n = $ac_delim_num; then
13924 break
13925 elif $ac_last_try; then
13926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13927 else
13928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13929 fi
13930 done
13931 rm -f conf$$subs.sh
13932
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13935 _ACEOF
13936 sed -n '
13937 h
13938 s/^/S["/; s/!.*/"]=/
13939 p
13940 g
13941 s/^[^!]*!//
13942 :repl
13943 t repl
13944 s/'"$ac_delim"'$//
13945 t delim
13946 :nl
13947 h
13948 s/\(.\{148\}\)..*/\1/
13949 t more1
13950 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13951 p
13952 n
13953 b repl
13954 :more1
13955 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13956 p
13957 g
13958 s/.\{148\}//
13959 t nl
13960 :delim
13961 h
13962 s/\(.\{148\}\)..*/\1/
13963 t more2
13964 s/["\\]/\\&/g; s/^/"/; s/$/"/
13965 p
13966 b
13967 :more2
13968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13969 p
13970 g
13971 s/.\{148\}//
13972 t delim
13973 ' <conf$$subs.awk | sed '
13974 /^[^""]/{
13975 N
13976 s/\n//
13977 }
13978 ' >>$CONFIG_STATUS || ac_write_fail=1
13979 rm -f conf$$subs.awk
13980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13981 _ACAWK
13982 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13983 for (key in S) S_is_set[key] = 1
13984 FS = "\a"
13985
13986 }
13987 {
13988 line = $ 0
13989 nfields = split(line, field, "@")
13990 substed = 0
13991 len = length(field[1])
13992 for (i = 2; i < nfields; i++) {
13993 key = field[i]
13994 keylen = length(key)
13995 if (S_is_set[key]) {
13996 value = S[key]
13997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13998 len += length(value) + length(field[++i])
13999 substed = 1
14000 } else
14001 len += 1 + keylen
14002 }
14003
14004 print line
14005 }
14006
14007 _ACAWK
14008 _ACEOF
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14012 else
14013 cat
14014 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14015 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14016 _ACEOF
14017
14018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14020 # trailing colons and then remove the whole line if VPATH becomes empty
14021 # (actually we leave an empty line to preserve line numbers).
14022 if test "x$srcdir" = x.; then
14023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14024 h
14025 s///
14026 s/^/:/
14027 s/[ ]*$/:/
14028 s/:\$(srcdir):/:/g
14029 s/:\${srcdir}:/:/g
14030 s/:@srcdir@:/:/g
14031 s/^:*//
14032 s/:*$//
14033 x
14034 s/\(=[ ]*\).*/\1/
14035 G
14036 s/\n//
14037 s/^[^=]*=[ ]*$//
14038 }'
14039 fi
14040
14041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14042 fi # test -n "$CONFIG_FILES"
14043
14044 # Set up the scripts for CONFIG_HEADERS section.
14045 # No need to generate them if there are no CONFIG_HEADERS.
14046 # This happens for instance with `./config.status Makefile'.
14047 if test -n "$CONFIG_HEADERS"; then
14048 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14049 BEGIN {
14050 _ACEOF
14051
14052 # Transform confdefs.h into an awk script `defines.awk', embedded as
14053 # here-document in config.status, that substitutes the proper values into
14054 # config.h.in to produce config.h.
14055
14056 # Create a delimiter string that does not exist in confdefs.h, to ease
14057 # handling of long lines.
14058 ac_delim='%!_!# '
14059 for ac_last_try in false false :; do
14060 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14061 if test -z "$ac_tt"; then
14062 break
14063 elif $ac_last_try; then
14064 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14065 else
14066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14067 fi
14068 done
14069
14070 # For the awk script, D is an array of macro values keyed by name,
14071 # likewise P contains macro parameters if any. Preserve backslash
14072 # newline sequences.
14073
14074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14075 sed -n '
14076 s/.\{148\}/&'"$ac_delim"'/g
14077 t rset
14078 :rset
14079 s/^[ ]*#[ ]*define[ ][ ]*/ /
14080 t def
14081 d
14082 :def
14083 s/\\$//
14084 t bsnl
14085 s/["\\]/\\&/g
14086 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14087 D["\1"]=" \3"/p
14088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14089 d
14090 :bsnl
14091 s/["\\]/\\&/g
14092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14093 D["\1"]=" \3\\\\\\n"\\/p
14094 t cont
14095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14096 t cont
14097 d
14098 :cont
14099 n
14100 s/.\{148\}/&'"$ac_delim"'/g
14101 t clear
14102 :clear
14103 s/\\$//
14104 t bsnlc
14105 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14106 d
14107 :bsnlc
14108 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14109 b cont
14110 ' <confdefs.h | sed '
14111 s/'"$ac_delim"'/"\\\
14112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14113
14114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115 for (key in D) D_is_set[key] = 1
14116 FS = "\a"
14117 }
14118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14119 line = \$ 0
14120 split(line, arg, " ")
14121 if (arg[1] == "#") {
14122 defundef = arg[2]
14123 mac1 = arg[3]
14124 } else {
14125 defundef = substr(arg[1], 2)
14126 mac1 = arg[2]
14127 }
14128 split(mac1, mac2, "(") #)
14129 macro = mac2[1]
14130 prefix = substr(line, 1, index(line, defundef) - 1)
14131 if (D_is_set[macro]) {
14132 # Preserve the white space surrounding the "#".
14133 print prefix "define", macro P[macro] D[macro]
14134 next
14135 } else {
14136 # Replace #undef with comments. This is necessary, for example,
14137 # in the case of _POSIX_SOURCE, which is predefined and required
14138 # on some systems where configure will not decide to define it.
14139 if (defundef == "undef") {
14140 print "/*", prefix defundef, macro, "*/"
14141 next
14142 }
14143 }
14144 }
14145 { print }
14146 _ACAWK
14147 _ACEOF
14148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14149 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14150 fi # test -n "$CONFIG_HEADERS"
14151
14152
14153 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14154 shift
14155 for ac_tag
14156 do
14157 case $ac_tag in
14158 :[FHLC]) ac_mode=$ac_tag; continue;;
14159 esac
14160 case $ac_mode$ac_tag in
14161 :[FHL]*:*);;
14162 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14163 :[FH]-) ac_tag=-:-;;
14164 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14165 esac
14166 ac_save_IFS=$IFS
14167 IFS=:
14168 set x $ac_tag
14169 IFS=$ac_save_IFS
14170 shift
14171 ac_file=$1
14172 shift
14173
14174 case $ac_mode in
14175 :L) ac_source=$1;;
14176 :[FH])
14177 ac_file_inputs=
14178 for ac_f
14179 do
14180 case $ac_f in
14181 -) ac_f="$ac_tmp/stdin";;
14182 *) # Look for the file first in the build tree, then in the source tree
14183 # (if the path is not absolute). The absolute path cannot be DOS-style,
14184 # because $ac_f cannot contain `:'.
14185 test -f "$ac_f" ||
14186 case $ac_f in
14187 [\\/$]*) false;;
14188 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14189 esac ||
14190 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14191 esac
14192 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14193 as_fn_append ac_file_inputs " '$ac_f'"
14194 done
14195
14196 # Let's still pretend it is `configure' which instantiates (i.e., don't
14197 # use $as_me), people would be surprised to read:
14198 # /* config.h. Generated by config.status. */
14199 configure_input='Generated from '`
14200 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14201 `' by configure.'
14202 if test x"$ac_file" != x-; then
14203 configure_input="$ac_file. $configure_input"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14205 $as_echo "$as_me: creating $ac_file" >&6;}
14206 fi
14207 # Neutralize special characters interpreted by sed in replacement strings.
14208 case $configure_input in #(
14209 *\&* | *\|* | *\\* )
14210 ac_sed_conf_input=`$as_echo "$configure_input" |
14211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14212 *) ac_sed_conf_input=$configure_input;;
14213 esac
14214
14215 case $ac_tag in
14216 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14218 esac
14219 ;;
14220 esac
14221
14222 ac_dir=`$as_dirname -- "$ac_file" ||
14223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14224 X"$ac_file" : 'X\(//\)[^/]' \| \
14225 X"$ac_file" : 'X\(//\)$' \| \
14226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14227 $as_echo X"$ac_file" |
14228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\/\)[^/].*/{
14233 s//\1/
14234 q
14235 }
14236 /^X\(\/\/\)$/{
14237 s//\1/
14238 q
14239 }
14240 /^X\(\/\).*/{
14241 s//\1/
14242 q
14243 }
14244 s/.*/./; q'`
14245 as_dir="$ac_dir"; as_fn_mkdir_p
14246 ac_builddir=.
14247
14248 case "$ac_dir" in
14249 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14250 *)
14251 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14252 # A ".." for each directory in $ac_dir_suffix.
14253 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14254 case $ac_top_builddir_sub in
14255 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14256 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14257 esac ;;
14258 esac
14259 ac_abs_top_builddir=$ac_pwd
14260 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14261 # for backward compatibility:
14262 ac_top_builddir=$ac_top_build_prefix
14263
14264 case $srcdir in
14265 .) # We are building in place.
14266 ac_srcdir=.
14267 ac_top_srcdir=$ac_top_builddir_sub
14268 ac_abs_top_srcdir=$ac_pwd ;;
14269 [\\/]* | ?:[\\/]* ) # Absolute name.
14270 ac_srcdir=$srcdir$ac_dir_suffix;
14271 ac_top_srcdir=$srcdir
14272 ac_abs_top_srcdir=$srcdir ;;
14273 *) # Relative name.
14274 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14275 ac_top_srcdir=$ac_top_build_prefix$srcdir
14276 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14277 esac
14278 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14279
14280
14281 case $ac_mode in
14282 :F)
14283 #
14284 # CONFIG_FILE
14285 #
14286
14287 case $INSTALL in
14288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14289 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14290 esac
14291 ac_MKDIR_P=$MKDIR_P
14292 case $MKDIR_P in
14293 [\\/$]* | ?:[\\/]* ) ;;
14294 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14295 esac
14296 _ACEOF
14297
14298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14299 # If the template does not know about datarootdir, expand it.
14300 # FIXME: This hack should be removed a few years after 2.60.
14301 ac_datarootdir_hack=; ac_datarootdir_seen=
14302 ac_sed_dataroot='
14303 /datarootdir/ {
14304 p
14305 q
14306 }
14307 /@datadir@/p
14308 /@docdir@/p
14309 /@infodir@/p
14310 /@localedir@/p
14311 /@mandir@/p'
14312 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14313 *datarootdir*) ac_datarootdir_seen=yes;;
14314 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14316 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14317 _ACEOF
14318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319 ac_datarootdir_hack='
14320 s&@datadir@&$datadir&g
14321 s&@docdir@&$docdir&g
14322 s&@infodir@&$infodir&g
14323 s&@localedir@&$localedir&g
14324 s&@mandir@&$mandir&g
14325 s&\\\${datarootdir}&$datarootdir&g' ;;
14326 esac
14327 _ACEOF
14328
14329 # Neutralize VPATH when `$srcdir' = `.'.
14330 # Shell code in configure.ac might set extrasub.
14331 # FIXME: do we really want to maintain this feature?
14332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14333 ac_sed_extra="$ac_vpsub
14334 $extrasub
14335 _ACEOF
14336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14337 :t
14338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14339 s|@configure_input@|$ac_sed_conf_input|;t t
14340 s&@top_builddir@&$ac_top_builddir_sub&;t t
14341 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14342 s&@srcdir@&$ac_srcdir&;t t
14343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14344 s&@top_srcdir@&$ac_top_srcdir&;t t
14345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14346 s&@builddir@&$ac_builddir&;t t
14347 s&@abs_builddir@&$ac_abs_builddir&;t t
14348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14349 s&@INSTALL@&$ac_INSTALL&;t t
14350 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14351 $ac_datarootdir_hack
14352 "
14353 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14354 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14355
14356 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14357 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14358 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14359 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14361 which seems to be undefined. Please make sure it is defined" >&5
14362 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14363 which seems to be undefined. Please make sure it is defined" >&2;}
14364
14365 rm -f "$ac_tmp/stdin"
14366 case $ac_file in
14367 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14368 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14369 esac \
14370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14371 ;;
14372 :H)
14373 #
14374 # CONFIG_HEADER
14375 #
14376 if test x"$ac_file" != x-; then
14377 {
14378 $as_echo "/* $configure_input */" \
14379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14380 } >"$ac_tmp/config.h" \
14381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14382 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14384 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14385 else
14386 rm -f "$ac_file"
14387 mv "$ac_tmp/config.h" "$ac_file" \
14388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14389 fi
14390 else
14391 $as_echo "/* $configure_input */" \
14392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14393 || as_fn_error $? "could not create -" "$LINENO" 5
14394 fi
14395 # Compute "$ac_file"'s index in $config_headers.
14396 _am_arg="$ac_file"
14397 _am_stamp_count=1
14398 for _am_header in $config_headers :; do
14399 case $_am_header in
14400 $_am_arg | $_am_arg:* )
14401 break ;;
14402 * )
14403 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14404 esac
14405 done
14406 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14407 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14408 X"$_am_arg" : 'X\(//\)[^/]' \| \
14409 X"$_am_arg" : 'X\(//\)$' \| \
14410 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14411 $as_echo X"$_am_arg" |
14412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14413 s//\1/
14414 q
14415 }
14416 /^X\(\/\/\)[^/].*/{
14417 s//\1/
14418 q
14419 }
14420 /^X\(\/\/\)$/{
14421 s//\1/
14422 q
14423 }
14424 /^X\(\/\).*/{
14425 s//\1/
14426 q
14427 }
14428 s/.*/./; q'`/stamp-h$_am_stamp_count
14429 ;;
14430
14431 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14432 $as_echo "$as_me: executing $ac_file commands" >&6;}
14433 ;;
14434 esac
14435
14436
14437 case $ac_file$ac_mode in
14438 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14439 # Older Autoconf quotes --file arguments for eval, but not when files
14440 # are listed without --file. Let's play safe and only enable the eval
14441 # if we detect the quoting.
14442 case $CONFIG_FILES in
14443 *\'*) eval set x "$CONFIG_FILES" ;;
14444 *) set x $CONFIG_FILES ;;
14445 esac
14446 shift
14447 for mf
14448 do
14449 # Strip MF so we end up with the name of the file.
14450 mf=`echo "$mf" | sed -e 's/:.*$//'`
14451 # Check whether this is an Automake generated Makefile or not.
14452 # We used to match only the files named 'Makefile.in', but
14453 # some people rename them; so instead we look at the file content.
14454 # Grep'ing the first line is not enough: some people post-process
14455 # each Makefile.in and add a new line on top of each file to say so.
14456 # Grep'ing the whole file is not good either: AIX grep has a line
14457 # limit of 2048, but all sed's we know have understand at least 4000.
14458 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14459 dirpart=`$as_dirname -- "$mf" ||
14460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14461 X"$mf" : 'X\(//\)[^/]' \| \
14462 X"$mf" : 'X\(//\)$' \| \
14463 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14464 $as_echo X"$mf" |
14465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14466 s//\1/
14467 q
14468 }
14469 /^X\(\/\/\)[^/].*/{
14470 s//\1/
14471 q
14472 }
14473 /^X\(\/\/\)$/{
14474 s//\1/
14475 q
14476 }
14477 /^X\(\/\).*/{
14478 s//\1/
14479 q
14480 }
14481 s/.*/./; q'`
14482 else
14483 continue
14484 fi
14485 # Extract the definition of DEPDIR, am__include, and am__quote
14486 # from the Makefile without running 'make'.
14487 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14488 test -z "$DEPDIR" && continue
14489 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14490 test -z "$am__include" && continue
14491 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14492 # Find all dependency output files, they are included files with
14493 # $(DEPDIR) in their names. We invoke sed twice because it is the
14494 # simplest approach to changing $(DEPDIR) to its actual value in the
14495 # expansion.
14496 for file in `sed -n "
14497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14499 # Make sure the directory exists.
14500 test -f "$dirpart/$file" && continue
14501 fdir=`$as_dirname -- "$file" ||
14502 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14503 X"$file" : 'X\(//\)[^/]' \| \
14504 X"$file" : 'X\(//\)$' \| \
14505 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14506 $as_echo X"$file" |
14507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\(\/\/\)[^/].*/{
14512 s//\1/
14513 q
14514 }
14515 /^X\(\/\/\)$/{
14516 s//\1/
14517 q
14518 }
14519 /^X\(\/\).*/{
14520 s//\1/
14521 q
14522 }
14523 s/.*/./; q'`
14524 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14525 # echo "creating $dirpart/$file"
14526 echo '# dummy' > "$dirpart/$file"
14527 done
14528 done
14529 }
14530 ;;
14531 "po-directories":C)
14532 for ac_file in $CONFIG_FILES; do
14533 # Support "outfile[:infile[:infile...]]"
14534 case "$ac_file" in
14535 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14536 esac
14537 # PO directories have a Makefile.in generated from Makefile.in.in.
14538 case "$ac_file" in */Makefile.in)
14539 # Adjust a relative srcdir.
14540 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14541 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14542 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14543 # In autoconf-2.13 it is called $ac_given_srcdir.
14544 # In autoconf-2.50 it is called $srcdir.
14545 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14546 case "$ac_given_srcdir" in
14547 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14548 /*) top_srcdir="$ac_given_srcdir" ;;
14549 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14550 esac
14551 # Treat a directory as a PO directory if and only if it has a
14552 # POTFILES.in file. This allows packages to have multiple PO
14553 # directories under different names or in different locations.
14554 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14555 rm -f "$ac_dir/POTFILES"
14556 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14557 gt_tab=`printf '\t'`
14558 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"
14559 POMAKEFILEDEPS="POTFILES.in"
14560 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14561 # on $ac_dir but don't depend on user-specified configuration
14562 # parameters.
14563 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14564 # The LINGUAS file contains the set of available languages.
14565 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14566 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14567 fi
14568 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14569 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14570 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14571 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14572 else
14573 # The set of available languages was given in configure.in.
14574 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14575 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14576 fi
14577 # Compute POFILES
14578 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14579 # Compute UPDATEPOFILES
14580 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14581 # Compute DUMMYPOFILES
14582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14583 # Compute GMOFILES
14584 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14585 case "$ac_given_srcdir" in
14586 .) srcdirpre= ;;
14587 *) srcdirpre='$(srcdir)/' ;;
14588 esac
14589 POFILES=
14590 UPDATEPOFILES=
14591 DUMMYPOFILES=
14592 GMOFILES=
14593 for lang in $ALL_LINGUAS; do
14594 POFILES="$POFILES $srcdirpre$lang.po"
14595 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14596 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14597 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14598 done
14599 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14600 # environment variable.
14601 INST_LINGUAS=
14602 if test -n "$ALL_LINGUAS"; then
14603 for presentlang in $ALL_LINGUAS; do
14604 useit=no
14605 if test "%UNSET%" != "$LINGUAS"; then
14606 desiredlanguages="$LINGUAS"
14607 else
14608 desiredlanguages="$ALL_LINGUAS"
14609 fi
14610 for desiredlang in $desiredlanguages; do
14611 # Use the presentlang catalog if desiredlang is
14612 # a. equal to presentlang, or
14613 # b. a variant of presentlang (because in this case,
14614 # presentlang can be used as a fallback for messages
14615 # which are not translated in the desiredlang catalog).
14616 case "$desiredlang" in
14617 "$presentlang"*) useit=yes;;
14618 esac
14619 done
14620 if test $useit = yes; then
14621 INST_LINGUAS="$INST_LINGUAS $presentlang"
14622 fi
14623 done
14624 fi
14625 CATALOGS=
14626 if test -n "$INST_LINGUAS"; then
14627 for lang in $INST_LINGUAS; do
14628 CATALOGS="$CATALOGS $lang.gmo"
14629 done
14630 fi
14631 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14632 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"
14633 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14634 if test -f "$f"; then
14635 case "$f" in
14636 *.orig | *.bak | *~) ;;
14637 *) cat "$f" >> "$ac_dir/Makefile" ;;
14638 esac
14639 fi
14640 done
14641 fi
14642 ;;
14643 esac
14644 done ;;
14645 "run-stap":F) chmod +x run-stap ;;
14646 "dtrace":F) chmod +x dtrace ;;
14647 "java/stapbm":F) chmod +x java/stapbm ;;
14648 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14649 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14650 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14651 "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 ;;
14652
14653 esac
14654 done # for ac_tag
14655
14656
14657 as_fn_exit 0
14658 _ACEOF
14659 ac_clean_files=$ac_clean_files_save
14660
14661 test $ac_write_fail = 0 ||
14662 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14663
14664
14665 # configure is writing to config.log, and then calls config.status.
14666 # config.status does its own redirection, appending to config.log.
14667 # Unfortunately, on DOS this fails, as config.log is still kept open
14668 # by configure, so config.status won't be able to write to it; its
14669 # output is simply discarded. So we exec the FD to /dev/null,
14670 # effectively closing config.log, so it can be properly (re)opened and
14671 # appended to by config.status. When coming back to configure, we
14672 # need to make the FD available again.
14673 if test "$no_create" != yes; then
14674 ac_cs_success=:
14675 ac_config_status_args=
14676 test "$silent" = yes &&
14677 ac_config_status_args="$ac_config_status_args --quiet"
14678 exec 5>/dev/null
14679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14680 exec 5>>config.log
14681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14682 # would make configure fail if this is the last instruction.
14683 $ac_cs_success || as_fn_exit 1
14684 fi
14685
14686 #
14687 # CONFIG_SUBDIRS section.
14688 #
14689 if test "$no_recursion" != yes; then
14690
14691 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14692 # so they do not pile up.
14693 ac_sub_configure_args=
14694 ac_prev=
14695 eval "set x $ac_configure_args"
14696 shift
14697 for ac_arg
14698 do
14699 if test -n "$ac_prev"; then
14700 ac_prev=
14701 continue
14702 fi
14703 case $ac_arg in
14704 -cache-file | --cache-file | --cache-fil | --cache-fi \
14705 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14706 ac_prev=cache_file ;;
14707 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14708 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14709 | --c=*)
14710 ;;
14711 --config-cache | -C)
14712 ;;
14713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14714 ac_prev=srcdir ;;
14715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14716 ;;
14717 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14718 ac_prev=prefix ;;
14719 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14720 ;;
14721 --disable-option-checking)
14722 ;;
14723 *)
14724 case $ac_arg in
14725 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14726 esac
14727 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14728 esac
14729 done
14730
14731 # Always prepend --prefix to ensure using the same prefix
14732 # in subdir configurations.
14733 ac_arg="--prefix=$prefix"
14734 case $ac_arg in
14735 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14736 esac
14737 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14738
14739 # Pass --silent
14740 if test "$silent" = yes; then
14741 ac_sub_configure_args="--silent $ac_sub_configure_args"
14742 fi
14743
14744 # Always prepend --disable-option-checking to silence warnings, since
14745 # different subdirs can have different --enable and --with options.
14746 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14747
14748 ac_popdir=`pwd`
14749 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14750
14751 # Do not complain, so a configure script can configure whichever
14752 # parts of a large source tree are present.
14753 test -d "$srcdir/$ac_dir" || continue
14754
14755 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14757 $as_echo "$ac_msg" >&6
14758 as_dir="$ac_dir"; as_fn_mkdir_p
14759 ac_builddir=.
14760
14761 case "$ac_dir" in
14762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14763 *)
14764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14765 # A ".." for each directory in $ac_dir_suffix.
14766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14767 case $ac_top_builddir_sub in
14768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14770 esac ;;
14771 esac
14772 ac_abs_top_builddir=$ac_pwd
14773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14774 # for backward compatibility:
14775 ac_top_builddir=$ac_top_build_prefix
14776
14777 case $srcdir in
14778 .) # We are building in place.
14779 ac_srcdir=.
14780 ac_top_srcdir=$ac_top_builddir_sub
14781 ac_abs_top_srcdir=$ac_pwd ;;
14782 [\\/]* | ?:[\\/]* ) # Absolute name.
14783 ac_srcdir=$srcdir$ac_dir_suffix;
14784 ac_top_srcdir=$srcdir
14785 ac_abs_top_srcdir=$srcdir ;;
14786 *) # Relative name.
14787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14788 ac_top_srcdir=$ac_top_build_prefix$srcdir
14789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14790 esac
14791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14792
14793
14794 cd "$ac_dir"
14795
14796 # Check for guested configure; otherwise get Cygnus style configure.
14797 if test -f "$ac_srcdir/configure.gnu"; then
14798 ac_sub_configure=$ac_srcdir/configure.gnu
14799 elif test -f "$ac_srcdir/configure"; then
14800 ac_sub_configure=$ac_srcdir/configure
14801 elif test -f "$ac_srcdir/configure.in"; then
14802 # This should be Cygnus configure.
14803 ac_sub_configure=$ac_aux_dir/configure
14804 else
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14807 ac_sub_configure=
14808 fi
14809
14810 # The recursion is here.
14811 if test -n "$ac_sub_configure"; then
14812 # Make the cache file name correct relative to the subdirectory.
14813 case $cache_file in
14814 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14815 *) # Relative name.
14816 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14817 esac
14818
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14820 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14821 # The eval makes quoting arguments work.
14822 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14823 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14824 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14825 fi
14826
14827 cd "$ac_popdir"
14828 done
14829 fi
14830 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14832 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14833 fi
14834
14835
14836 if test "${prefix}" = "/usr/local"; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14838 $as_echo "$as_me: " >&6;}
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
14840 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
14842 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
14844 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
14846 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
14848 $as_echo "$as_me: is not supported." >&6;}
14849 fi
This page took 0.783747 seconds and 6 git commands to generate.