]> sourceware.org Git - systemtap.git/blob - configure
Merge remote-tracking branch 'origin/master' into dsmith/python
[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.1.
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.1'
584 PACKAGE_STRING='systemtap 3.1'
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 STAP_EXTRA_VERSION
633 LOCALEDIR
634 ENABLE_NLS
635 HAVE_JAVA_FALSE
636 HAVE_JAVA_TRUE
637 JAVADIR
638 have_jar
639 have_javac
640 HAVE_SELINUX_FALSE
641 HAVE_SELINUX_TRUE
642 selinux_LIBS
643 selinux_CFLAGS
644 support_section_question
645 HAVE_MONITOR_LIBS_FALSE
646 HAVE_MONITOR_LIBS_TRUE
647 ncurses_LIBS
648 ncurses_CFLAGS
649 jsonc_LIBS
650 jsonc_CFLAGS
651 HAVE_PYTHON_PROBES_FALSE
652 HAVE_PYTHON_PROBES_TRUE
653 HAVE_PYTHON3_PROBES_FALSE
654 HAVE_PYTHON3_PROBES_TRUE
655 PYTHON3_CPPFLAGS
656 PYTHON3_CONFIG
657 HAVE_PYTHON2_PROBES_FALSE
658 HAVE_PYTHON2_PROBES_TRUE
659 PYTHON_CPPFLAGS
660 PYTHON_CONFIG
661 BUILD_VIRT_FALSE
662 BUILD_VIRT_TRUE
663 HAVE_LIBXML2_FALSE
664 HAVE_LIBXML2_TRUE
665 libxml2_LIBS
666 libxml2_CFLAGS
667 HAVE_LIBVIRT_FALSE
668 HAVE_LIBVIRT_TRUE
669 libvirt_LIBS
670 libvirt_CFLAGS
671 HAVE_DYNINST_FALSE
672 HAVE_DYNINST_TRUE
673 DYNINST_LDFLAGS
674 DYNINST_CXXFLAGS
675 CXXCPP
676 DATE
677 staprun_LIBS
678 stap_LIBS
679 elfutils_abs_srcdir
680 BUILD_ELFUTILS_FALSE
681 BUILD_ELFUTILS_TRUE
682 preferred_python
683 HAVE_LIBREADLINE_FALSE
684 HAVE_LIBREADLINE_TRUE
685 READLINE_LIBS
686 HAVE_AVAHI_FALSE
687 HAVE_AVAHI_TRUE
688 avahi_LIBS
689 avahi_CFLAGS
690 BUILD_SERVER_FALSE
691 BUILD_SERVER_TRUE
692 dracutbindir
693 dracutstap
694 HAVE_NSS_FALSE
695 HAVE_NSS_TRUE
696 nss_LIBS
697 nss_CFLAGS
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 XMLTO_STRINGPARAM_FALSE
702 XMLTO_STRINGPARAM_TRUE
703 BUILD_HTMLDOCS_FALSE
704 BUILD_HTMLDOCS_TRUE
705 HAVE_XMLTO_FALSE
706 HAVE_XMLTO_TRUE
707 HAVE_FOP_FALSE
708 HAVE_FOP_TRUE
709 have_fop
710 have_xmlto
711 BUILD_REFDOCS_FALSE
712 BUILD_REFDOCS_TRUE
713 BUILD_DOCS_FALSE
714 BUILD_DOCS_TRUE
715 have_ps2pdf
716 have_dvips
717 have_latex
718 BUILD_CRASHMOD_FALSE
719 BUILD_CRASHMOD_TRUE
720 staplog_CPPFLAGS
721 BUILD_TRANSLATOR_FALSE
722 BUILD_TRANSLATOR_TRUE
723 sqlite3_LIBS
724 PIECXXFLAGS
725 PIECFLAGS
726 PIELDFLAGS
727 HAVE_CXX11
728 py3execdir
729 python3dir
730 PYTHON3_PLATFORM
731 PYTHON3_EXEC_PREFIX
732 PYTHON3_PREFIX
733 PYTHON3_VERSION
734 PYTHON3
735 pkgpyexecdir
736 pyexecdir
737 pkgpythondir
738 pythondir
739 PYTHON_PLATFORM
740 PYTHON_EXEC_PREFIX
741 PYTHON_PREFIX
742 PYTHON_VERSION
743 PYTHON
744 PYTHON_UNKNOWN
745 POSUB
746 LTLIBINTL
747 LIBINTL
748 INTLLIBS
749 LTLIBICONV
750 LIBICONV
751 INTL_MACOSX_LIBS
752 XGETTEXT_EXTRA_OPTIONS
753 MSGMERGE
754 XGETTEXT_015
755 XGETTEXT
756 GMSGFMT_015
757 MSGFMT_015
758 GMSGFMT
759 MSGFMT
760 GETTEXT_MACRO_VERSION
761 USE_NLS
762 SED
763 RANLIB
764 am__fastdepCXX_FALSE
765 am__fastdepCXX_TRUE
766 CXXDEPMODE
767 ac_ct_CXX
768 CXXFLAGS
769 CXX
770 LN_S
771 EGREP
772 GREP
773 CPP
774 am__fastdepCC_FALSE
775 am__fastdepCC_TRUE
776 CCDEPMODE
777 am__nodep
778 AMDEPBACKSLASH
779 AMDEP_FALSE
780 AMDEP_TRUE
781 am__quote
782 am__include
783 DEPDIR
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 MAINT
792 MAINTAINER_MODE_FALSE
793 MAINTAINER_MODE_TRUE
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 AM_DEFAULT_V
797 AM_V
798 am__untar
799 am__tar
800 AMTAR
801 am__leading_dot
802 SET_MAKE
803 AWK
804 mkdir_p
805 MKDIR_P
806 INSTALL_STRIP_PROGRAM
807 STRIP
808 install_sh
809 MAKEINFO
810 AUTOHEADER
811 AUTOMAKE
812 AUTOCONF
813 ACLOCAL
814 VERSION
815 PACKAGE
816 CYGPATH_W
817 am__isrc
818 INSTALL_DATA
819 INSTALL_SCRIPT
820 INSTALL_PROGRAM
821 target_os
822 target_vendor
823 target_cpu
824 target
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files=''
872 ac_user_opts='
873 enable_option_checking
874 enable_silent_rules
875 enable_maintainer_mode
876 enable_dependency_tracking
877 enable_largefile
878 enable_nls
879 with_gnu_ld
880 enable_rpath
881 with_libiconv_prefix
882 with_libintl_prefix
883 enable_prologues
884 enable_sdt_probes
885 enable_ssp
886 enable_pie
887 enable_sqlite
888 enable_translator
889 enable_crash
890 enable_docs
891 enable_refdocs
892 enable_htmldocs
893 with_nss
894 with_dracutstap
895 with_dracutbindir
896 enable_server
897 with_avahi
898 with_rpm
899 with_python3
900 with_elfutils
901 with_dyninst
902 enable_virt
903 with_python2_probes
904 with_python3_probes
905 with_selinux
906 with_java
907 with_extra_version
908 '
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
912 CC
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
917 CPP
918 CXX
919 CXXFLAGS
920 CCC
921 PYTHON
922 PKG_CONFIG
923 PKG_CONFIG_PATH
924 PKG_CONFIG_LIBDIR
925 nss_CFLAGS
926 nss_LIBS
927 avahi_CFLAGS
928 avahi_LIBS
929 CXXCPP
930 libvirt_CFLAGS
931 libvirt_LIBS
932 libxml2_CFLAGS
933 libxml2_LIBS
934 jsonc_CFLAGS
935 jsonc_LIBS
936 ncurses_CFLAGS
937 ncurses_LIBS
938 selinux_CFLAGS
939 selinux_LIBS'
940 ac_subdirs_all='testsuite'
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *=) ac_optarg= ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $? "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445 else
1446 ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures systemtap 3.1 to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of systemtap 3.1:";;
1552 esac
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-silent-rules less verbose build output (undo: "make V=1")
1560 --disable-silent-rules verbose build output (undo: "make V=0")
1561 --enable-maintainer-mode
1562 enable make rules and dependencies not useful (and
1563 sometimes confusing) to the casual installer
1564 --enable-dependency-tracking
1565 do not reject slow dependency extractors
1566 --disable-dependency-tracking
1567 speeds up one-time build
1568 --disable-largefile omit support for large files
1569 --disable-nls do not use Native Language Support
1570 --disable-rpath do not hardcode runtime library paths
1571 --enable-prologues make -P prologue-searching default
1572 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1573 --disable-ssp disable gcc stack-protector
1574 --enable-pie enable position-independent-executable
1575 --enable-sqlite build with sqlite support
1576 --disable-translator build only runtime utilities
1577 --enable-crash[=DIRECTORY]
1578 enable crash extension (default is disabled).
1579 Optional DIRECTORY is the path to the crash header
1580 file (needed if installed in a non-standard
1581 location).
1582 --enable-docs enable building documentation (default on if latex
1583 etc. found).
1584 --enable-refdocs enable building reference documentation (default on
1585 if other documentation built).
1586 --enable-htmldocs enable building html documentation (default off).
1587 --enable-server enable building of stap-server (default on if nss
1588 etc. found).
1589 --enable-virt enable building of stapvirt support (default on if
1590 libvirt etc. found).
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1597 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1598 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1599 --without-libintl-prefix don't search for libintl in includedir and libdir
1600 --without-nss Do not use NSS even if present
1601 --with-dracutstap=DIR Install dracut module files in DIR
1602 --with-dracutbindir=DIR Use the dracut binary located in DIR
1603 --without-avahi Do not use Avahi even if present
1604 --with-rpm query rpm database for missing debuginfos
1605 --with-python3 prefer /usr/bin/python3
1606 --with-elfutils=DIRECTORY
1607 find elfutils source code in DIRECTORY
1608 --with-dyninst=DIRECTORY
1609 find dyninst headers/libraries in DIRECTORY
1610 --without-python2-probes
1611 Disable building python version 2 probe support,
1612 even if it is available
1613 --without-python3-probes
1614 Disable building python version 3 probe support,
1615 even if it is available
1616 --without-selinux Do not use libselinux even if present
1617 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1618 against (default is /usr/lib/jvm/java)
1619 --with-extra-version=STRING
1620 Add STRING to stap -V version
1621
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CPP C preprocessor
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 PYTHON the Python interpreter
1634 PKG_CONFIG path to pkg-config utility
1635 PKG_CONFIG_PATH
1636 directories to add to pkg-config's search path
1637 PKG_CONFIG_LIBDIR
1638 path overriding pkg-config's built-in search path
1639 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1640 nss_LIBS linker flags for nss, overriding pkg-config
1641 avahi_CFLAGS
1642 C compiler flags for avahi, overriding pkg-config
1643 avahi_LIBS linker flags for avahi, overriding pkg-config
1644 CXXCPP C++ preprocessor
1645 libvirt_CFLAGS
1646 C compiler flags for libvirt, overriding pkg-config
1647 libvirt_LIBS
1648 linker flags for libvirt, overriding pkg-config
1649 libxml2_CFLAGS
1650 C compiler flags for libxml2, overriding pkg-config
1651 libxml2_LIBS
1652 linker flags for libxml2, overriding pkg-config
1653 jsonc_CFLAGS
1654 C compiler flags for jsonc, overriding pkg-config
1655 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1656 ncurses_CFLAGS
1657 C compiler flags for ncurses, overriding pkg-config
1658 ncurses_LIBS
1659 linker flags for ncurses, overriding pkg-config
1660 selinux_CFLAGS
1661 C compiler flags for selinux, overriding pkg-config
1662 selinux_LIBS
1663 linker flags for selinux, overriding pkg-config
1664
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1667
1668 Report bugs to <systemtap@sourceware.org>.
1669 _ACEOF
1670 ac_status=$?
1671 fi
1672
1673 if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678 continue
1679 ac_builddir=.
1680
1681 case "$ac_dir" in
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *)
1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 esac ;;
1691 esac
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1696
1697 case $srcdir in
1698 .) # We are building in place.
1699 ac_srcdir=.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1706 *) # Relative name.
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1710 esac
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1716 echo &&
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1719 echo &&
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1721 else
1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1723 fi || ac_status=$?
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1725 done
1726 fi
1727
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1730 cat <<\_ACEOF
1731 systemtap configure 3.1
1732 generated by GNU Autoconf 2.69
1733
1734 Copyright (C) 2012 Free Software Foundation, Inc.
1735 This configure script is free software; the Free Software Foundation
1736 gives unlimited permission to copy, distribute and modify it.
1737 _ACEOF
1738 exit
1739 fi
1740
1741 ## ------------------------ ##
1742 ## Autoconf initialization. ##
1743 ## ------------------------ ##
1744
1745 # ac_fn_c_try_compile LINENO
1746 # --------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_compile ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777 fi
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_compile
1782
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_cpp ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_cpp
1819
1820 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823 # the include files in INCLUDES and setting the cache variable VAR
1824 # accordingly.
1825 ac_fn_c_check_header_mongrel ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if eval \${$3+:} false; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 else
1838 # Is the header compilable?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840 $as_echo_n "checking $2 usability... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1848 else
1849 ac_header_compiler=no
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853 $as_echo "$ac_header_compiler" >&6; }
1854
1855 # Is the header present?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857 $as_echo_n "checking $2 presence... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 #include <$2>
1861 _ACEOF
1862 if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1864 else
1865 ac_header_preproc=no
1866 fi
1867 rm -f conftest.err conftest.i conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869 $as_echo "$ac_header_preproc" >&6; }
1870
1871 # So? What about this header?
1872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1873 yes:no: )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878 ;;
1879 no:yes:* )
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 ( $as_echo "## --------------------------------------- ##
1891 ## Report this to systemtap@sourceware.org ##
1892 ## --------------------------------------- ##"
1893 ) | sed "s/^/$as_me: WARNING: /" >&2
1894 ;;
1895 esac
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 eval "$3=\$ac_header_compiler"
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 fi
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_header_mongrel
1910
1911 # ac_fn_c_try_run LINENO
1912 # ----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1914 # that executables *can* be run.
1915 ac_fn_c_try_run ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1929 { { case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_try") 2>&5
1936 ac_status=$?
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; }; }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: program exited with status $ac_status" >&5
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=$ac_status
1946 fi
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_run
1952
1953 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists and can be compiled using the include files in
1956 # INCLUDES, setting the cache variable VAR accordingly.
1957 ac_fn_c_check_header_compile ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$3=yes"
1972 else
1973 eval "$3=no"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_header_compile
1983
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext
1991 if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_compile") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest.$ac_objext; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016 fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_compile
2021
2022 # ac_fn_c_try_link LINENO
2023 # -----------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_c_try_link ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext conftest$ac_exeext
2029 if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_c_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 test -x conftest$ac_exeext
2050 }; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=1
2057 fi
2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060 # interfere with the next link command; also delete a directory that is
2061 # left behind by Apple's compiler. We do this before executing the actions.
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2065
2066 } # ac_fn_c_try_link
2067
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2078 else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2083 #define $2 innocuous_$2
2084
2085 /* System header to define __stub macros and hopefully few prototypes,
2086 which can conflict with char $2 (); below.
2087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088 <limits.h> exists even on freestanding compilers. */
2089
2090 #ifdef __STDC__
2091 # include <limits.h>
2092 #else
2093 # include <assert.h>
2094 #endif
2095
2096 #undef $2
2097
2098 /* Override any GCC internal prototype to avoid an error.
2099 Use char because int might match the return type of a GCC
2100 builtin and then its argument prototype would still apply. */
2101 #ifdef __cplusplus
2102 extern "C"
2103 #endif
2104 char $2 ();
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined __stub_$2 || defined __stub___$2
2109 choke me
2110 #endif
2111
2112 int
2113 main ()
2114 {
2115 return $2 ();
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_link "$LINENO"; then :
2121 eval "$3=yes"
2122 else
2123 eval "$3=no"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext \
2126 conftest$ac_exeext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_func
2134
2135 # ac_fn_cxx_try_cpp LINENO
2136 # ------------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_cxx_try_cpp ()
2139 {
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 }; then :
2160 ac_retval=0
2161 else
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_retval=1
2166 fi
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2169
2170 } # ac_fn_cxx_try_cpp
2171
2172 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2173 # ---------------------------------------------------------
2174 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175 # the include files in INCLUDES and setting the cache variable VAR
2176 # accordingly.
2177 ac_fn_cxx_check_header_mongrel ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if eval \${$3+:} false; then :
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 fi
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 else
2190 # Is the header compilable?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192 $as_echo_n "checking $2 usability... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 $4
2196 #include <$2>
2197 _ACEOF
2198 if ac_fn_cxx_try_compile "$LINENO"; then :
2199 ac_header_compiler=yes
2200 else
2201 ac_header_compiler=no
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205 $as_echo "$ac_header_compiler" >&6; }
2206
2207 # Is the header present?
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209 $as_echo_n "checking $2 presence... " >&6; }
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 #include <$2>
2213 _ACEOF
2214 if ac_fn_cxx_try_cpp "$LINENO"; then :
2215 ac_header_preproc=yes
2216 else
2217 ac_header_preproc=no
2218 fi
2219 rm -f conftest.err conftest.i conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221 $as_echo "$ac_header_preproc" >&6; }
2222
2223 # So? What about this header?
2224 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2225 yes:no: )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ;;
2231 no:yes:* )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2235 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2239 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2242 ( $as_echo "## --------------------------------------- ##
2243 ## Report this to systemtap@sourceware.org ##
2244 ## --------------------------------------- ##"
2245 ) | sed "s/^/$as_me: WARNING: /" >&2
2246 ;;
2247 esac
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 eval "$3=\$ac_header_compiler"
2254 fi
2255 eval ac_res=\$$3
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 fi
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
2261 } # ac_fn_cxx_check_header_mongrel
2262
2263 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2264 # ---------------------------------------------
2265 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2266 # accordingly.
2267 ac_fn_c_check_decl ()
2268 {
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 as_decl_name=`echo $2|sed 's/ *(.*//'`
2271 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2273 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2274 if eval \${$3+:} false; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 int
2281 main ()
2282 {
2283 #ifndef $as_decl_name
2284 #ifdef __cplusplus
2285 (void) $as_decl_use;
2286 #else
2287 (void) $as_decl_name;
2288 #endif
2289 #endif
2290
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 eval "$3=yes"
2297 else
2298 eval "$3=no"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$3
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306
2307 } # ac_fn_c_check_decl
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2311
2312 It was created by systemtap $as_me 3.1, which was
2313 generated by GNU Autoconf 2.69. Invocation command line was
2314
2315 $ $0 $@
2316
2317 _ACEOF
2318 exec 5>>config.log
2319 {
2320 cat <<_ASUNAME
2321 ## --------- ##
2322 ## Platform. ##
2323 ## --------- ##
2324
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333
2334 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2338 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341
2342 _ASUNAME
2343
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2350 done
2351 IFS=$as_save_IFS
2352
2353 } >&5
2354
2355 cat >&5 <<_ACEOF
2356
2357
2358 ## ----------- ##
2359 ## Core tests. ##
2360 ## ----------- ##
2361
2362 _ACEOF
2363
2364
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2370 ac_configure_args=
2371 ac_configure_args0=
2372 ac_configure_args1=
2373 ac_must_keep_next=false
2374 for ac_pass in 1 2
2375 do
2376 for ac_arg
2377 do
2378 case $ac_arg in
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2382 continue ;;
2383 *\'*)
2384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 esac
2386 case $ac_pass in
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 2)
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2392 else
2393 case $ac_arg in
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 esac
2401 ;;
2402 -* ) ac_must_keep_next=true ;;
2403 esac
2404 fi
2405 as_fn_append ac_configure_args " '$ac_arg'"
2406 ;;
2407 esac
2408 done
2409 done
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2412
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2420 {
2421 echo
2422
2423 $as_echo "## ---------------- ##
2424 ## Cache variables. ##
2425 ## ---------------- ##"
2426 echo
2427 # The following way of writing the cache mishandles newlines in values,
2428 (
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in #(
2432 *${as_nl}*)
2433 case $ac_var in #(
2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436 esac
2437 case $ac_var in #(
2438 _ | IFS | as_nl) ;; #(
2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440 *) { eval $ac_var=; unset $ac_var;} ;;
2441 esac ;;
2442 esac
2443 done
2444 (set) 2>&1 |
2445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
2447 sed -n \
2448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 ;; #(
2451 *)
2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2453 ;;
2454 esac |
2455 sort
2456 )
2457 echo
2458
2459 $as_echo "## ----------------- ##
2460 ## Output variables. ##
2461 ## ----------------- ##"
2462 echo
2463 for ac_var in $ac_subst_vars
2464 do
2465 eval ac_val=\$$ac_var
2466 case $ac_val in
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 esac
2469 $as_echo "$ac_var='\''$ac_val'\''"
2470 done | sort
2471 echo
2472
2473 if test -n "$ac_subst_files"; then
2474 $as_echo "## ------------------- ##
2475 ## File substitutions. ##
2476 ## ------------------- ##"
2477 echo
2478 for ac_var in $ac_subst_files
2479 do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in
2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2483 esac
2484 $as_echo "$ac_var='\''$ac_val'\''"
2485 done | sort
2486 echo
2487 fi
2488
2489 if test -s confdefs.h; then
2490 $as_echo "## ----------- ##
2491 ## confdefs.h. ##
2492 ## ----------- ##"
2493 echo
2494 cat confdefs.h
2495 echo
2496 fi
2497 test "$ac_signal" != 0 &&
2498 $as_echo "$as_me: caught signal $ac_signal"
2499 $as_echo "$as_me: exit $exit_status"
2500 } >&5
2501 rm -f core *.core core.conftest.* &&
2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2503 exit $exit_status
2504 ' 0
2505 for ac_signal in 1 2 13 15; do
2506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2507 done
2508 ac_signal=0
2509
2510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2511 rm -f -r conftest* confdefs.h
2512
2513 $as_echo "/* confdefs.h */" > confdefs.h
2514
2515 # Predefined preprocessor variables.
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_NAME "$PACKAGE_NAME"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_STRING "$PACKAGE_STRING"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535 _ACEOF
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_URL "$PACKAGE_URL"
2539 _ACEOF
2540
2541
2542 # Let the site file select an alternate cache file if it wants to.
2543 # Prefer an explicitly selected file to automatically selected ones.
2544 ac_site_file1=NONE
2545 ac_site_file2=NONE
2546 if test -n "$CONFIG_SITE"; then
2547 # We do not want a PATH search for config.site.
2548 case $CONFIG_SITE in #((
2549 -*) ac_site_file1=./$CONFIG_SITE;;
2550 */*) ac_site_file1=$CONFIG_SITE;;
2551 *) ac_site_file1=./$CONFIG_SITE;;
2552 esac
2553 elif test "x$prefix" != xNONE; then
2554 ac_site_file1=$prefix/share/config.site
2555 ac_site_file2=$prefix/etc/config.site
2556 else
2557 ac_site_file1=$ac_default_prefix/share/config.site
2558 ac_site_file2=$ac_default_prefix/etc/config.site
2559 fi
2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 do
2562 test "x$ac_site_file" = xNONE && continue
2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2565 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2566 sed 's/^/| /' "$ac_site_file" >&5
2567 . "$ac_site_file" \
2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error $? "failed to load site script $ac_site_file
2571 See \`config.log' for more details" "$LINENO" 5; }
2572 fi
2573 done
2574
2575 if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special files
2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580 $as_echo "$as_me: loading cache $cache_file" >&6;}
2581 case $cache_file in
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2584 esac
2585 fi
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588 $as_echo "$as_me: creating cache $cache_file" >&6;}
2589 >$cache_file
2590 fi
2591
2592 gt_needs="$gt_needs "
2593 # Check that the precious variables saved in the cache have kept the same
2594 # value.
2595 ac_cache_corrupted=false
2596 for ac_var in $ac_precious_vars; do
2597 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598 eval ac_new_set=\$ac_env_${ac_var}_set
2599 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600 eval ac_new_val=\$ac_env_${ac_var}_value
2601 case $ac_old_set,$ac_new_set in
2602 set,)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,set)
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2610 ,);;
2611 *)
2612 if test "x$ac_old_val" != "x$ac_new_val"; then
2613 # differences in whitespace do not lead to failure.
2614 ac_old_val_w=`echo x $ac_old_val`
2615 ac_new_val_w=`echo x $ac_new_val`
2616 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619 ac_cache_corrupted=:
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623 eval $ac_var=\$ac_old_val
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2626 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2628 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2629 fi;;
2630 esac
2631 # Pass precious variables to config.status.
2632 if test "$ac_new_set" = set; then
2633 case $ac_new_val in
2634 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 *) ac_arg=$ac_var=$ac_new_val ;;
2636 esac
2637 case " $ac_configure_args " in
2638 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2639 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640 esac
2641 fi
2642 done
2643 if $ac_cache_corrupted; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2648 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649 fi
2650 ## -------------------- ##
2651 ## Main body of script. ##
2652 ## -------------------- ##
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662 ac_aux_dir=
2663 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2664 if test -f "$ac_dir/install-sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 break
2668 elif test -f "$ac_dir/install.sh"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 break
2672 elif test -f "$ac_dir/shtool"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/shtool install -c"
2675 break
2676 fi
2677 done
2678 if test -z "$ac_aux_dir"; then
2679 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2680 fi
2681
2682 # These three variables are undocumented and unsupported,
2683 # and are intended to be withdrawn in a future Autoconf release.
2684 # They can cause serious problems if a builder's source tree is in a directory
2685 # whose full name contains unusual characters.
2686 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689
2690
2691 # Make sure we can run config.sub.
2692 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2693 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2696 $as_echo_n "checking build system type... " >&6; }
2697 if ${ac_cv_build+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 ac_build_alias=$build_alias
2701 test "x$ac_build_alias" = x &&
2702 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2703 test "x$ac_build_alias" = x &&
2704 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2705 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707
2708 fi
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2710 $as_echo "$ac_cv_build" >&6; }
2711 case $ac_cv_build in
2712 *-*-*) ;;
2713 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2714 esac
2715 build=$ac_cv_build
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_build
2718 shift
2719 build_cpu=$1
2720 build_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 build_os=$*
2725 IFS=$ac_save_IFS
2726 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2730 $as_echo_n "checking host system type... " >&6; }
2731 if ${ac_cv_host+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test "x$host_alias" = x; then
2735 ac_cv_host=$ac_cv_build
2736 else
2737 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2739 fi
2740
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2743 $as_echo "$ac_cv_host" >&6; }
2744 case $ac_cv_host in
2745 *-*-*) ;;
2746 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2747 esac
2748 host=$ac_cv_host
2749 ac_save_IFS=$IFS; IFS='-'
2750 set x $ac_cv_host
2751 shift
2752 host_cpu=$1
2753 host_vendor=$2
2754 shift; shift
2755 # Remember, the first character of IFS is used to create $*,
2756 # except with old shells:
2757 host_os=$*
2758 IFS=$ac_save_IFS
2759 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760
2761
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2763 $as_echo_n "checking target system type... " >&6; }
2764 if ${ac_cv_target+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test "x$target_alias" = x; then
2768 ac_cv_target=$ac_cv_host
2769 else
2770 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2772 fi
2773
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2776 $as_echo "$ac_cv_target" >&6; }
2777 case $ac_cv_target in
2778 *-*-*) ;;
2779 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2780 esac
2781 target=$ac_cv_target
2782 ac_save_IFS=$IFS; IFS='-'
2783 set x $ac_cv_target
2784 shift
2785 target_cpu=$1
2786 target_vendor=$2
2787 shift; shift
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2790 target_os=$*
2791 IFS=$ac_save_IFS
2792 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2793
2794
2795 # The aliases save the names the user supplied, while $host etc.
2796 # will get canonicalized.
2797 test -n "$target_alias" &&
2798 test "$program_prefix$program_suffix$program_transform_name" = \
2799 NONENONEs,x,x, &&
2800 program_prefix=${target_alias}-
2801
2802
2803 am__api_version='1.15'
2804
2805 # Find a good install program. We prefer a C program (faster),
2806 # so one script is as good as another. But avoid the broken or
2807 # incompatible versions:
2808 # SysV /etc/install, /usr/sbin/install
2809 # SunOS /usr/etc/install
2810 # IRIX /sbin/install
2811 # AIX /bin/install
2812 # AmigaOS /C/install, which installs bootblocks on floppy discs
2813 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2814 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2816 # OS/2's system install, which has a completely different semantic
2817 # ./install, which can be erroneously created by make from ./install.sh.
2818 # Reject install programs that cannot install multiple files.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2820 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2821 if test -z "$INSTALL"; then
2822 if ${ac_cv_path_install+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 # Account for people who put trailing slashes in PATH elements.
2831 case $as_dir/ in #((
2832 ./ | .// | /[cC]/* | \
2833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2835 /usr/ucb/* ) ;;
2836 *)
2837 # OSF1 and SCO ODT 3.0 have their own names for install.
2838 # Don't use installbsd from OSF since it installs stuff as root
2839 # by default.
2840 for ac_prog in ginstall scoinst install; do
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2843 if test $ac_prog = install &&
2844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2845 # AIX install. It has an incompatible calling convention.
2846 :
2847 elif test $ac_prog = install &&
2848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2849 # program-specific install script used by HP pwplus--don't use.
2850 :
2851 else
2852 rm -rf conftest.one conftest.two conftest.dir
2853 echo one > conftest.one
2854 echo two > conftest.two
2855 mkdir conftest.dir
2856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2857 test -s conftest.one && test -s conftest.two &&
2858 test -s conftest.dir/conftest.one &&
2859 test -s conftest.dir/conftest.two
2860 then
2861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2862 break 3
2863 fi
2864 fi
2865 fi
2866 done
2867 done
2868 ;;
2869 esac
2870
2871 done
2872 IFS=$as_save_IFS
2873
2874 rm -rf conftest.one conftest.two conftest.dir
2875
2876 fi
2877 if test "${ac_cv_path_install+set}" = set; then
2878 INSTALL=$ac_cv_path_install
2879 else
2880 # As a last resort, use the slow shell script. Don't cache a
2881 # value for INSTALL within a source directory, because that will
2882 # break other packages using the cache if that directory is
2883 # removed, or if the value is a relative name.
2884 INSTALL=$ac_install_sh
2885 fi
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2888 $as_echo "$INSTALL" >&6; }
2889
2890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2891 # It thinks the first close brace ends the variable substitution.
2892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893
2894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895
2896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2899 $as_echo_n "checking whether build environment is sane... " >&6; }
2900 # Reject unsafe characters in $srcdir or the absolute working directory
2901 # name. Accept space and tab only in the latter.
2902 am_lf='
2903 '
2904 case `pwd` in
2905 *[\\\"\#\$\&\'\`$am_lf]*)
2906 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2907 esac
2908 case $srcdir in
2909 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2910 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2911 esac
2912
2913 # Do 'set' in a subshell so we don't clobber the current shell's
2914 # arguments. Must try -L first in case configure is actually a
2915 # symlink; some systems play weird games with the mod time of symlinks
2916 # (eg FreeBSD returns the mod time of the symlink's containing
2917 # directory).
2918 if (
2919 am_has_slept=no
2920 for am_try in 1 2; do
2921 echo "timestamp, slept: $am_has_slept" > conftest.file
2922 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2923 if test "$*" = "X"; then
2924 # -L didn't work.
2925 set X `ls -t "$srcdir/configure" conftest.file`
2926 fi
2927 if test "$*" != "X $srcdir/configure conftest.file" \
2928 && test "$*" != "X conftest.file $srcdir/configure"; then
2929
2930 # If neither matched, then we have a broken ls. This can happen
2931 # if, for instance, CONFIG_SHELL is bash and it inherits a
2932 # broken ls alias from the environment. This has actually
2933 # happened. Such a system could not be considered "sane".
2934 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2936 fi
2937 if test "$2" = conftest.file || test $am_try -eq 2; then
2938 break
2939 fi
2940 # Just in case.
2941 sleep 1
2942 am_has_slept=yes
2943 done
2944 test "$2" = conftest.file
2945 )
2946 then
2947 # Ok.
2948 :
2949 else
2950 as_fn_error $? "newly created file is older than distributed files!
2951 Check your system clock" "$LINENO" 5
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2954 $as_echo "yes" >&6; }
2955 # If we didn't sleep, we still need to ensure time stamps of config.status and
2956 # generated files are strictly newer.
2957 am_sleep_pid=
2958 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2959 ( sleep 1 ) &
2960 am_sleep_pid=$!
2961 fi
2962
2963 rm -f conftest.file
2964
2965 test "$program_prefix" != NONE &&
2966 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2967 # Use a double $ so make ignores it.
2968 test "$program_suffix" != NONE &&
2969 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2970 # Double any \ or $.
2971 # By default was `s,x,x', remove it if useless.
2972 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2973 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2974
2975 # Expand $ac_aux_dir to an absolute path.
2976 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2977
2978 if test x"${MISSING+set}" != xset; then
2979 case $am_aux_dir in
2980 *\ * | *\ *)
2981 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2982 *)
2983 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2984 esac
2985 fi
2986 # Use eval to expand $SHELL
2987 if eval "$MISSING --is-lightweight"; then
2988 am_missing_run="$MISSING "
2989 else
2990 am_missing_run=
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2992 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 fi
2994
2995 if test x"${install_sh+set}" != xset; then
2996 case $am_aux_dir in
2997 *\ * | *\ *)
2998 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2999 *)
3000 install_sh="\${SHELL} $am_aux_dir/install-sh"
3001 esac
3002 fi
3003
3004 # Installed binaries are usually stripped using 'strip' when the user
3005 # run "make install-strip". However 'strip' might not be the right
3006 # tool to use in cross-compilation environments, therefore Automake
3007 # will honor the 'STRIP' environment variable to overrule this program.
3008 if test "$cross_compiling" != no; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}strip; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_STRIP+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$STRIP"; then
3018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 STRIP=$ac_cv_prog_STRIP
3038 if test -n "$STRIP"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3040 $as_echo "$STRIP" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 if test -z "$ac_cv_prog_STRIP"; then
3049 ac_ct_STRIP=$STRIP
3050 # Extract the first word of "strip", so it can be a program name with args.
3051 set dummy strip; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$ac_ct_STRIP"; then
3058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_ac_ct_STRIP="strip"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3078 if test -n "$ac_ct_STRIP"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3080 $as_echo "$ac_ct_STRIP" >&6; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086 if test "x$ac_ct_STRIP" = x; then
3087 STRIP=":"
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 STRIP=$ac_ct_STRIP
3096 fi
3097 else
3098 STRIP="$ac_cv_prog_STRIP"
3099 fi
3100
3101 fi
3102 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3105 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3106 if test -z "$MKDIR_P"; then
3107 if ${ac_cv_path_mkdir+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_prog in mkdir gmkdir; do
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3118 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3119 'mkdir (GNU coreutils) '* | \
3120 'mkdir (coreutils) '* | \
3121 'mkdir (fileutils) '4.1*)
3122 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3123 break 3;;
3124 esac
3125 done
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131
3132 test -d ./--version && rmdir ./--version
3133 if test "${ac_cv_path_mkdir+set}" = set; then
3134 MKDIR_P="$ac_cv_path_mkdir -p"
3135 else
3136 # As a last resort, use the slow shell script. Don't cache a
3137 # value for MKDIR_P within a source directory, because that will
3138 # break other packages using the cache if that directory is
3139 # removed, or if the value is a relative name.
3140 MKDIR_P="$ac_install_sh -d"
3141 fi
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3144 $as_echo "$MKDIR_P" >&6; }
3145
3146 for ac_prog in gawk mawk nawk awk
3147 do
3148 # Extract the first word of "$ac_prog", so it can be a program name with args.
3149 set dummy $ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_AWK+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test -n "$AWK"; then
3156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_AWK="$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 AWK=$ac_cv_prog_AWK
3176 if test -n "$AWK"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3178 $as_echo "$AWK" >&6; }
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 test -n "$AWK" && break
3186 done
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3190 set x ${MAKE-make}
3191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3192 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 cat >conftest.make <<\_ACEOF
3196 SHELL = /bin/sh
3197 all:
3198 @echo '@@@%%%=$(MAKE)=@@@%%%'
3199 _ACEOF
3200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3202 *@@@%%%=?*=@@@%%%*)
3203 eval ac_cv_prog_make_${ac_make}_set=yes;;
3204 *)
3205 eval ac_cv_prog_make_${ac_make}_set=no;;
3206 esac
3207 rm -f conftest.make
3208 fi
3209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211 $as_echo "yes" >&6; }
3212 SET_MAKE=
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 SET_MAKE="MAKE=${MAKE-make}"
3217 fi
3218
3219 rm -rf .tst 2>/dev/null
3220 mkdir .tst 2>/dev/null
3221 if test -d .tst; then
3222 am__leading_dot=.
3223 else
3224 am__leading_dot=_
3225 fi
3226 rmdir .tst 2>/dev/null
3227
3228 # Check whether --enable-silent-rules was given.
3229 if test "${enable_silent_rules+set}" = set; then :
3230 enableval=$enable_silent_rules;
3231 fi
3232
3233 case $enable_silent_rules in # (((
3234 yes) AM_DEFAULT_VERBOSITY=0;;
3235 no) AM_DEFAULT_VERBOSITY=1;;
3236 *) AM_DEFAULT_VERBOSITY=1;;
3237 esac
3238 am_make=${MAKE-make}
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3240 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3241 if ${am_cv_make_support_nested_variables+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if $as_echo 'TRUE=$(BAR$(V))
3245 BAR0=false
3246 BAR1=true
3247 V=1
3248 am__doit:
3249 @$(TRUE)
3250 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3251 am_cv_make_support_nested_variables=yes
3252 else
3253 am_cv_make_support_nested_variables=no
3254 fi
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3257 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3258 if test $am_cv_make_support_nested_variables = yes; then
3259 AM_V='$(V)'
3260 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3261 else
3262 AM_V=$AM_DEFAULT_VERBOSITY
3263 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3264 fi
3265 AM_BACKSLASH='\'
3266
3267 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3269 # is not polluted with repeated "-I."
3270 am__isrc=' -I$(srcdir)'
3271 # test to see if srcdir already configured
3272 if test -f $srcdir/config.status; then
3273 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3274 fi
3275 fi
3276
3277 # test whether we have cygpath
3278 if test -z "$CYGPATH_W"; then
3279 if (cygpath --version) >/dev/null 2>/dev/null; then
3280 CYGPATH_W='cygpath -w'
3281 else
3282 CYGPATH_W=echo
3283 fi
3284 fi
3285
3286
3287 # Define the identity of the package.
3288 PACKAGE='systemtap'
3289 VERSION='3.1'
3290
3291
3292 cat >>confdefs.h <<_ACEOF
3293 #define PACKAGE "$PACKAGE"
3294 _ACEOF
3295
3296
3297 cat >>confdefs.h <<_ACEOF
3298 #define VERSION "$VERSION"
3299 _ACEOF
3300
3301 # Some tools Automake needs.
3302
3303 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3304
3305
3306 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3307
3308
3309 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3310
3311
3312 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3313
3314
3315 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3316
3317 # For better backward compatibility. To be removed once Automake 1.9.x
3318 # dies out for good. For more background, see:
3319 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3320 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3321 mkdir_p='$(MKDIR_P)'
3322
3323 # We need awk for the "check" target (and possibly the TAP driver). The
3324 # system "awk" is bad on some platforms.
3325 # Always define AMTAR for backward compatibility. Yes, it's still used
3326 # in the wild :-( We should find a proper way to deprecate it ...
3327 AMTAR='$${TAR-tar}'
3328
3329
3330 # We'll loop over all known methods to create a tar archive until one works.
3331 _am_tools='gnutar pax cpio none'
3332
3333 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3334
3335
3336
3337
3338
3339
3340 # POSIX will say in a future version that running "rm -f" with no argument
3341 # is OK; and we want to be able to make that assumption in our Makefile
3342 # recipes. So use an aggressive probe to check that the usage we want is
3343 # actually supported "in the wild" to an acceptable degree.
3344 # See automake bug#10828.
3345 # To make any issue more visible, cause the running configure to be aborted
3346 # by default if the 'rm' program in use doesn't match our expectations; the
3347 # user can still override this though.
3348 if rm -f && rm -fr && rm -rf; then : OK; else
3349 cat >&2 <<'END'
3350 Oops!
3351
3352 Your 'rm' program seems unable to run without file operands specified
3353 on the command line, even when the '-f' option is present. This is contrary
3354 to the behaviour of most rm programs out there, and not conforming with
3355 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3356
3357 Please tell bug-automake@gnu.org about your system, including the value
3358 of your $PATH and any error possibly output before this message. This
3359 can help us improve future automake versions.
3360
3361 END
3362 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3363 echo 'Configuration will proceed anyway, since you have set the' >&2
3364 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3365 echo >&2
3366 else
3367 cat >&2 <<'END'
3368 Aborting the configuration process, to ensure you take notice of the issue.
3369
3370 You can download and install GNU coreutils to get an 'rm' implementation
3371 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3372
3373 If you want to complete the configuration process using your problematic
3374 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3375 to "yes", and re-run configure.
3376
3377 END
3378 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3379 fi
3380 fi
3381
3382
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3384 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3385 # Check whether --enable-maintainer-mode was given.
3386 if test "${enable_maintainer_mode+set}" = set; then :
3387 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3388 else
3389 USE_MAINTAINER_MODE=no
3390 fi
3391
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3393 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3394 if test $USE_MAINTAINER_MODE = yes; then
3395 MAINTAINER_MODE_TRUE=
3396 MAINTAINER_MODE_FALSE='#'
3397 else
3398 MAINTAINER_MODE_TRUE='#'
3399 MAINTAINER_MODE_FALSE=
3400 fi
3401
3402 MAINT=$MAINTAINER_MODE_TRUE
3403
3404
3405
3406 # Check whether --enable-silent-rules was given.
3407 if test "${enable_silent_rules+set}" = set; then :
3408 enableval=$enable_silent_rules;
3409 fi
3410
3411 case $enable_silent_rules in # (((
3412 yes) AM_DEFAULT_VERBOSITY=0;;
3413 no) AM_DEFAULT_VERBOSITY=1;;
3414 *) AM_DEFAULT_VERBOSITY=0;;
3415 esac
3416 am_make=${MAKE-make}
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3418 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3419 if ${am_cv_make_support_nested_variables+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if $as_echo 'TRUE=$(BAR$(V))
3423 BAR0=false
3424 BAR1=true
3425 V=1
3426 am__doit:
3427 @$(TRUE)
3428 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3429 am_cv_make_support_nested_variables=yes
3430 else
3431 am_cv_make_support_nested_variables=no
3432 fi
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3435 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3436 if test $am_cv_make_support_nested_variables = yes; then
3437 AM_V='$(V)'
3438 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3439 else
3440 AM_V=$AM_DEFAULT_VERBOSITY
3441 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3442 fi
3443 AM_BACKSLASH='\'
3444
3445
3446 DEPDIR="${am__leading_dot}deps"
3447
3448 ac_config_commands="$ac_config_commands depfiles"
3449
3450
3451 am_make=${MAKE-make}
3452 cat > confinc << 'END'
3453 am__doit:
3454 @echo this is the am__doit target
3455 .PHONY: am__doit
3456 END
3457 # If we don't find an include directive, just comment out the code.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3459 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3460 am__include="#"
3461 am__quote=
3462 _am_result=none
3463 # First try GNU make style include.
3464 echo "include confinc" > confmf
3465 # Ignore all kinds of additional output from 'make'.
3466 case `$am_make -s -f confmf 2> /dev/null` in #(
3467 *the\ am__doit\ target*)
3468 am__include=include
3469 am__quote=
3470 _am_result=GNU
3471 ;;
3472 esac
3473 # Now try BSD make style include.
3474 if test "$am__include" = "#"; then
3475 echo '.include "confinc"' > confmf
3476 case `$am_make -s -f confmf 2> /dev/null` in #(
3477 *the\ am__doit\ target*)
3478 am__include=.include
3479 am__quote="\""
3480 _am_result=BSD
3481 ;;
3482 esac
3483 fi
3484
3485
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3487 $as_echo "$_am_result" >&6; }
3488 rm -f confinc confmf
3489
3490 # Check whether --enable-dependency-tracking was given.
3491 if test "${enable_dependency_tracking+set}" = set; then :
3492 enableval=$enable_dependency_tracking;
3493 fi
3494
3495 if test "x$enable_dependency_tracking" != xno; then
3496 am_depcomp="$ac_aux_dir/depcomp"
3497 AMDEPBACKSLASH='\'
3498 am__nodep='_no'
3499 fi
3500 if test "x$enable_dependency_tracking" != xno; then
3501 AMDEP_TRUE=
3502 AMDEP_FALSE='#'
3503 else
3504 AMDEP_TRUE='#'
3505 AMDEP_FALSE=
3506 fi
3507
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552 fi
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3575 fi
3576 done
3577 done
3578 IFS=$as_save_IFS
3579
3580 fi
3581 fi
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3601 fi
3602 else
3603 CC="$ac_cv_prog_CC"
3604 fi
3605
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 fi
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3669 fi
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3688 fi
3689 fi
3690 fi
3691 fi
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 fi
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3706 do
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 test -n "$CC" && break
3745 done
3746 fi
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3750 do
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772 done
3773 done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 test -n "$ac_ct_CC" && break
3789 done
3790
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3801 fi
3802 fi
3803
3804 fi
3805
3806
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details" "$LINENO" 5; }
3811
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 fi
3832 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3836
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3854 $as_echo_n "checking whether the C compiler works... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3856
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3862 do
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3869
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3887 do
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 ;;
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 fi
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3907 * )
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912
3913 else
3914 ac_file=''
3915 fi
3916 if test -z "$ac_file"; then :
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error 77 "C compiler cannot create executables
3925 See \`config.log' for more details" "$LINENO" 5; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3928 $as_echo "yes" >&6; }
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3931 $as_echo_n "checking for C compiler default output file name... " >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3933 $as_echo "$ac_file" >&6; }
3934 ac_exeext=$ac_cv_exeext
3935
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3937 ac_clean_files=$ac_clean_files_save
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3939 $as_echo_n "checking for suffix of executables... " >&6; }
3940 if { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3952 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3953 # work properly (i.e., refer to `conftest.exe'), while it won't with
3954 # `rm'.
3955 for ac_file in conftest.exe conftest conftest.*; do
3956 test -f "$ac_file" || continue
3957 case $ac_file in
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3959 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 break;;
3961 * ) break;;
3962 esac
3963 done
3964 else
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3968 See \`config.log' for more details" "$LINENO" 5; }
3969 fi
3970 rm -f conftest conftest$ac_cv_exeext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3972 $as_echo "$ac_cv_exeext" >&6; }
3973
3974 rm -f conftest.$ac_ext
3975 EXEEXT=$ac_cv_exeext
3976 ac_exeext=$EXEEXT
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <stdio.h>
3980 int
3981 main ()
3982 {
3983 FILE *f = fopen ("conftest.out", "w");
3984 return ferror (f) || fclose (f) != 0;
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 ac_clean_files="$ac_clean_files conftest.out"
3991 # Check that the compiler produces executables we can run. If not, either
3992 # the compiler is broken, or we cross compile.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3994 $as_echo_n "checking whether we are cross compiling... " >&6; }
3995 if test "$cross_compiling" != yes; then
3996 { { ac_try="$ac_link"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_link") 2>&5
4004 ac_status=$?
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }
4007 if { ac_try='./conftest$ac_cv_exeext'
4008 { { case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; }; then
4018 cross_compiling=no
4019 else
4020 if test "$cross_compiling" = maybe; then
4021 cross_compiling=yes
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "cannot run C compiled programs.
4026 If you meant to cross compile, use \`--host'.
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 fi
4029 fi
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4032 $as_echo "$cross_compiling" >&6; }
4033
4034 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4035 ac_clean_files=$ac_clean_files_save
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4037 $as_echo_n "checking for suffix of object files... " >&6; }
4038 if ${ac_cv_objext+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main ()
4046 {
4047
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.o conftest.obj
4053 if { { ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compile") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 for ac_file in conftest.o conftest.obj conftest.*; do
4065 test -f "$ac_file" || continue;
4066 case $ac_file in
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 break;;
4070 esac
4071 done
4072 else
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error $? "cannot compute suffix of object files: cannot compile
4079 See \`config.log' for more details" "$LINENO" 5; }
4080 fi
4081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4084 $as_echo "$ac_cv_objext" >&6; }
4085 OBJEXT=$ac_cv_objext
4086 ac_objext=$OBJEXT
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4089 if ${ac_cv_c_compiler_gnu+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094
4095 int
4096 main ()
4097 {
4098 #ifndef __GNUC__
4099 choke me
4100 #endif
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_compiler_gnu=yes
4108 else
4109 ac_compiler_gnu=no
4110 fi
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4113
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4117 if test $ac_compiler_gnu = yes; then
4118 GCC=yes
4119 else
4120 GCC=
4121 fi
4122 ac_test_CFLAGS=${CFLAGS+set}
4123 ac_save_CFLAGS=$CFLAGS
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4126 if ${ac_cv_prog_cc_g+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_save_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 ac_cv_prog_cc_g=no
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 else
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150
4151 int
4152 main ()
4153 {
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160
4161 else
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main ()
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4177 fi
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4191 CFLAGS="-g -O2"
4192 else
4193 CFLAGS="-g"
4194 fi
4195 else
4196 if test "$GCC" = yes; then
4197 CFLAGS="-O2"
4198 else
4199 CFLAGS=
4200 fi
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if ${ac_cv_prog_cc_c89+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_prog_cc_c89=no
4208 ac_save_CC=$CC
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdarg.h>
4212 #include <stdio.h>
4213 struct stat;
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218 char **p;
4219 int i;
4220 {
4221 return p[i];
4222 }
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4224 {
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4231 }
4232
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4241
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4246
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4253 int
4254 main ()
4255 {
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4263 do
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270 done
4271 rm -f conftest.$ac_ext
4272 CC=$ac_save_CC
4273
4274 fi
4275 # AC_CACHE_VAL
4276 case "x$ac_cv_prog_cc_c89" in
4277 x)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279 $as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 $as_echo "unsupported" >&6; } ;;
4283 *)
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287 esac
4288 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289
4290 fi
4291
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4304 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4305 if ${am_cv_prog_cc_c_o+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310
4311 int
4312 main ()
4313 {
4314
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 # Make sure it works both with $CC and with simple cc.
4320 # Following AC_PROG_CC_C_O, we do the test twice because some
4321 # compilers refuse to overwrite an existing .o file with -o,
4322 # though they will create one.
4323 am_cv_prog_cc_c_o=yes
4324 for am_i in 1 2; do
4325 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4326 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } \
4330 && test -f conftest2.$ac_objext; then
4331 : OK
4332 else
4333 am_cv_prog_cc_c_o=no
4334 break
4335 fi
4336 done
4337 rm -f core conftest*
4338 unset am_i
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4341 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4342 if test "$am_cv_prog_cc_c_o" != yes; then
4343 # Losing compiler, so override with the script.
4344 # FIXME: It is wrong to rewrite CC.
4345 # But if we don't then we get into trouble of one sort or another.
4346 # A longer-term fix would be to have automake use am__CC in this case,
4347 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4348 CC="$am_aux_dir/compile $CC"
4349 fi
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355
4356
4357 depcc="$CC" am_compiler_list=
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4360 $as_echo_n "checking dependency style of $depcc... " >&6; }
4361 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4365 # We make a subdir and do the tests there. Otherwise we can end up
4366 # making bogus files that we don't know about and never remove. For
4367 # instance it was reported that on HP-UX the gcc test will end up
4368 # making a dummy file named 'D' -- because '-MD' means "put the output
4369 # in D".
4370 rm -rf conftest.dir
4371 mkdir conftest.dir
4372 # Copy depcomp to subdir because otherwise we won't find it if we're
4373 # using a relative directory.
4374 cp "$am_depcomp" conftest.dir
4375 cd conftest.dir
4376 # We will build objects and dependencies in a subdirectory because
4377 # it helps to detect inapplicable dependency modes. For instance
4378 # both Tru64's cc and ICC support -MD to output dependencies as a
4379 # side effect of compilation, but ICC will put the dependencies in
4380 # the current directory while Tru64 will put them in the object
4381 # directory.
4382 mkdir sub
4383
4384 am_cv_CC_dependencies_compiler_type=none
4385 if test "$am_compiler_list" = ""; then
4386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387 fi
4388 am__universal=false
4389 case " $depcc " in #(
4390 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4391 esac
4392
4393 for depmode in $am_compiler_list; do
4394 # Setup a source with many dependencies, because some compilers
4395 # like to wrap large dependency lists on column 80 (with \), and
4396 # we should not choose a depcomp mode which is confused by this.
4397 #
4398 # We need to recreate these files for each test, as the compiler may
4399 # overwrite some of them when testing with obscure command lines.
4400 # This happens at least with the AIX C compiler.
4401 : > sub/conftest.c
4402 for i in 1 2 3 4 5 6; do
4403 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4404 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4405 # Solaris 10 /bin/sh.
4406 echo '/* dummy */' > sub/conftst$i.h
4407 done
4408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4410 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4411 # mode. It turns out that the SunPro C++ compiler does not properly
4412 # handle '-M -o', and we need to detect this. Also, some Intel
4413 # versions had trouble with output in subdirs.
4414 am__obj=sub/conftest.${OBJEXT-o}
4415 am__minus_obj="-o $am__obj"
4416 case $depmode in
4417 gcc)
4418 # This depmode causes a compiler race in universal mode.
4419 test "$am__universal" = false || continue
4420 ;;
4421 nosideeffect)
4422 # After this tag, mechanisms are not by side-effect, so they'll
4423 # only be used when explicitly requested.
4424 if test "x$enable_dependency_tracking" = xyes; then
4425 continue
4426 else
4427 break
4428 fi
4429 ;;
4430 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4431 # This compiler won't grok '-c -o', but also, the minuso test has
4432 # not run yet. These depmodes are late enough in the game, and
4433 # so weak that their functioning should not be impacted.
4434 am__obj=conftest.${OBJEXT-o}
4435 am__minus_obj=
4436 ;;
4437 none) break ;;
4438 esac
4439 if depmode=$depmode \
4440 source=sub/conftest.c object=$am__obj \
4441 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4443 >/dev/null 2>conftest.err &&
4444 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4445 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4446 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4447 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4448 # icc doesn't choke on unknown options, it will just issue warnings
4449 # or remarks (even with -Werror). So we grep stderr for any message
4450 # that says an option was ignored or not supported.
4451 # When given -MP, icc 7.0 and 7.1 complain thusly:
4452 # icc: Command line warning: ignoring option '-M'; no argument required
4453 # The diagnosis changed in icc 8.0:
4454 # icc: Command line remark: option '-MP' not supported
4455 if (grep 'ignoring option' conftest.err ||
4456 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4457 am_cv_CC_dependencies_compiler_type=$depmode
4458 break
4459 fi
4460 fi
4461 done
4462
4463 cd ..
4464 rm -rf conftest.dir
4465 else
4466 am_cv_CC_dependencies_compiler_type=none
4467 fi
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4471 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4472 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473
4474 if
4475 test "x$enable_dependency_tracking" != xno \
4476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4477 am__fastdepCC_TRUE=
4478 am__fastdepCC_FALSE='#'
4479 else
4480 am__fastdepCC_TRUE='#'
4481 am__fastdepCC_FALSE=
4482 fi
4483
4484
4485
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4493 # On Suns, sometimes $CPP names a directory.
4494 if test -n "$CPP" && test -d "$CPP"; then
4495 CPP=
4496 fi
4497 if test -z "$CPP"; then
4498 if ${ac_cv_prog_CPP+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 # Double quotes because CPP needs to be expanded
4502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4503 do
4504 ac_preproc_ok=false
4505 for ac_c_preproc_warn_flag in '' yes
4506 do
4507 # Use a header file that comes with gcc, so configuring glibc
4508 # with a fresh cross-compiler works.
4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 # <limits.h> exists even on freestanding compilers.
4511 # On the NeXT, cc -E runs the code through the compiler's parser,
4512 # not just through cpp. "Syntax error" is here to catch this case.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #ifdef __STDC__
4516 # include <limits.h>
4517 #else
4518 # include <assert.h>
4519 #endif
4520 Syntax error
4521 _ACEOF
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523
4524 else
4525 # Broken: fails on valid input.
4526 continue
4527 fi
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4529
4530 # OK, works on sane cases. Now check whether nonexistent headers
4531 # can be detected and how.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <ac_nonexistent.h>
4535 _ACEOF
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: success on invalid input.
4538 continue
4539 else
4540 # Passes both tests.
4541 ac_preproc_ok=:
4542 break
4543 fi
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4545
4546 done
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.i conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then :
4550 break
4551 fi
4552
4553 done
4554 ac_cv_prog_CPP=$CPP
4555
4556 fi
4557 CPP=$ac_cv_prog_CPP
4558 else
4559 ac_cv_prog_CPP=$CPP
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4562 $as_echo "$CPP" >&6; }
4563 ac_preproc_ok=false
4564 for ac_c_preproc_warn_flag in '' yes
4565 do
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4582
4583 else
4584 # Broken: fails on valid input.
4585 continue
4586 fi
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4588
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4594 _ACEOF
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4597 continue
4598 else
4599 # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4602 fi
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4604
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4609
4610 else
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details" "$LINENO" 5; }
4615 fi
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -z "$GREP"; then
4630 ac_path_GREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_GREP" || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642 # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'GREP' >> "conftest.nl"
4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_GREP_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_GREP=$GREP
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4694 else
4695 if test -z "$EGREP"; then
4696 ac_path_EGREP_found=false
4697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 as_fn_executable_p "$ac_path_EGREP" || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708 # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4710 *GNU*)
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 *)
4713 ac_count=0
4714 $as_echo_n 0123456789 >"conftest.in"
4715 while :
4716 do
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
4720 $as_echo 'EGREP' >> "conftest.nl"
4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723 as_fn_arith $ac_count + 1 && ac_count=$as_val
4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4728 fi
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4731 done
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735 $ac_path_EGREP_found && break 3
4736 done
4737 done
4738 done
4739 IFS=$as_save_IFS
4740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 fi
4743 else
4744 ac_cv_path_EGREP=$EGREP
4745 fi
4746
4747 fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4752
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4755 $as_echo_n "checking for ANSI C header files... " >&6; }
4756 if ${ac_cv_header_stdc+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <stdlib.h>
4762 #include <stdarg.h>
4763 #include <string.h>
4764 #include <float.h>
4765
4766 int
4767 main ()
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_header_stdc=yes
4776 else
4777 ac_cv_header_stdc=no
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780
4781 if test $ac_cv_header_stdc = yes; then
4782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <string.h>
4786
4787 _ACEOF
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 $EGREP "memchr" >/dev/null 2>&1; then :
4790
4791 else
4792 ac_cv_header_stdc=no
4793 fi
4794 rm -f conftest*
4795
4796 fi
4797
4798 if test $ac_cv_header_stdc = yes; then
4799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <stdlib.h>
4803
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 $EGREP "free" >/dev/null 2>&1; then :
4807
4808 else
4809 ac_cv_header_stdc=no
4810 fi
4811 rm -f conftest*
4812
4813 fi
4814
4815 if test $ac_cv_header_stdc = yes; then
4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817 if test "$cross_compiling" = yes; then :
4818 :
4819 else
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <ctype.h>
4823 #include <stdlib.h>
4824 #if ((' ' & 0x0FF) == 0x020)
4825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4827 #else
4828 # define ISLOWER(c) \
4829 (('a' <= (c) && (c) <= 'i') \
4830 || ('j' <= (c) && (c) <= 'r') \
4831 || ('s' <= (c) && (c) <= 'z'))
4832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4833 #endif
4834
4835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836 int
4837 main ()
4838 {
4839 int i;
4840 for (i = 0; i < 256; i++)
4841 if (XOR (islower (i), ISLOWER (i))
4842 || toupper (i) != TOUPPER (i))
4843 return 2;
4844 return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_c_try_run "$LINENO"; then :
4848
4849 else
4850 ac_cv_header_stdc=no
4851 fi
4852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4853 conftest.$ac_objext conftest.beam conftest.$ac_ext
4854 fi
4855
4856 fi
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4859 $as_echo "$ac_cv_header_stdc" >&6; }
4860 if test $ac_cv_header_stdc = yes; then
4861
4862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4863
4864 fi
4865
4866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4868 inttypes.h stdint.h unistd.h
4869 do :
4870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4872 "
4873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4874 cat >>confdefs.h <<_ACEOF
4875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4876 _ACEOF
4877
4878 fi
4879
4880 done
4881
4882
4883
4884 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4885 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4886 MINIX=yes
4887 else
4888 MINIX=
4889 fi
4890
4891
4892 if test "$MINIX" = yes; then
4893
4894 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4895
4896
4897 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4898
4899
4900 $as_echo "#define _MINIX 1" >>confdefs.h
4901
4902 fi
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4906 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4907 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 # define __EXTENSIONS__ 1
4914 $ac_includes_default
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_safe_to_define___extensions__=yes
4925 else
4926 ac_cv_safe_to_define___extensions__=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4931 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4932 test $ac_cv_safe_to_define___extensions__ = yes &&
4933 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4934
4935 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4936
4937 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4938
4939 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4940
4941 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4942
4943
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4947 $as_echo_n "checking whether ln -s works... " >&6; }
4948 LN_S=$as_ln_s
4949 if test "$LN_S" = "ln -s"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 $as_echo "yes" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4954 $as_echo "no, using $LN_S" >&6; }
4955 fi
4956
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 if test -n "$ac_tool_prefix"; then
4963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_CC+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$CC"; then
4971 ac_cv_prog_CC="$CC" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 CC=$ac_cv_prog_CC
4991 if test -n "$CC"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4993 $as_echo "$CC" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999
5000 fi
5001 if test -z "$ac_cv_prog_CC"; then
5002 ac_ct_CC=$CC
5003 # Extract the first word of "gcc", so it can be a program name with args.
5004 set dummy gcc; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if test -n "$ac_ct_CC"; then
5011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_ac_ct_CC="gcc"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5031 if test -n "$ac_ct_CC"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5033 $as_echo "$ac_ct_CC" >&6; }
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5037 fi
5038
5039 if test "x$ac_ct_CC" = x; then
5040 CC=""
5041 else
5042 case $cross_compiling:$ac_tool_warned in
5043 yes:)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5046 ac_tool_warned=yes ;;
5047 esac
5048 CC=$ac_ct_CC
5049 fi
5050 else
5051 CC="$ac_cv_prog_CC"
5052 fi
5053
5054 if test -z "$CC"; then
5055 if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5057 set dummy ${ac_tool_prefix}cc; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_CC+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$CC"; then
5064 ac_cv_prog_CC="$CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CC="${ac_tool_prefix}cc"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 CC=$ac_cv_prog_CC
5084 if test -n "$CC"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5086 $as_echo "$CC" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092
5093 fi
5094 fi
5095 if test -z "$CC"; then
5096 # Extract the first word of "cc", so it can be a program name with args.
5097 set dummy cc; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_CC+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$CC"; then
5104 ac_cv_prog_CC="$CC" # Let the user override the test.
5105 else
5106 ac_prog_rejected=no
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5115 ac_prog_rejected=yes
5116 continue
5117 fi
5118 ac_cv_prog_CC="cc"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 if test $ac_prog_rejected = yes; then
5127 # We found a bogon in the path, so make sure we never use it.
5128 set dummy $ac_cv_prog_CC
5129 shift
5130 if test $# != 0; then
5131 # We chose a different compiler from the bogus one.
5132 # However, it has the same basename, so the bogon will be chosen
5133 # first if we set CC to just the basename; use the full file name.
5134 shift
5135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5136 fi
5137 fi
5138 fi
5139 fi
5140 CC=$ac_cv_prog_CC
5141 if test -n "$CC"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5143 $as_echo "$CC" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150 fi
5151 if test -z "$CC"; then
5152 if test -n "$ac_tool_prefix"; then
5153 for ac_prog in cl.exe
5154 do
5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_CC+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$CC"; then
5163 ac_cv_prog_CC="$CC" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 CC=$ac_cv_prog_CC
5183 if test -n "$CC"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5185 $as_echo "$CC" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 test -n "$CC" && break
5193 done
5194 fi
5195 if test -z "$CC"; then
5196 ac_ct_CC=$CC
5197 for ac_prog in cl.exe
5198 do
5199 # Extract the first word of "$ac_prog", so it can be a program name with args.
5200 set dummy $ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ac_ct_CC"; then
5207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_CC="$ac_prog"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5227 if test -n "$ac_ct_CC"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5229 $as_echo "$ac_ct_CC" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236 test -n "$ac_ct_CC" && break
5237 done
5238
5239 if test "x$ac_ct_CC" = x; then
5240 CC=""
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 CC=$ac_ct_CC
5249 fi
5250 fi
5251
5252 fi
5253
5254
5255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5257 as_fn_error $? "no acceptable C compiler found in \$PATH
5258 See \`config.log' for more details" "$LINENO" 5; }
5259
5260 # Provide some information about the compiler.
5261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5262 set X $ac_compile
5263 ac_compiler=$2
5264 for ac_option in --version -v -V -qversion; do
5265 { { ac_try="$ac_compiler $ac_option >&5"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5271 $as_echo "$ac_try_echo"; } >&5
5272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5273 ac_status=$?
5274 if test -s conftest.err; then
5275 sed '10a\
5276 ... rest of stderr output deleted ...
5277 10q' conftest.err >conftest.er1
5278 cat conftest.er1 >&5
5279 fi
5280 rm -f conftest.er1 conftest.err
5281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282 test $ac_status = 0; }
5283 done
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5286 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5287 if ${ac_cv_c_compiler_gnu+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292
5293 int
5294 main ()
5295 {
5296 #ifndef __GNUC__
5297 choke me
5298 #endif
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_compiler_gnu=yes
5306 else
5307 ac_compiler_gnu=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5311
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5314 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5315 if test $ac_compiler_gnu = yes; then
5316 GCC=yes
5317 else
5318 GCC=
5319 fi
5320 ac_test_CFLAGS=${CFLAGS+set}
5321 ac_save_CFLAGS=$CFLAGS
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5323 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5324 if ${ac_cv_prog_cc_g+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 ac_save_c_werror_flag=$ac_c_werror_flag
5328 ac_c_werror_flag=yes
5329 ac_cv_prog_cc_g=no
5330 CFLAGS="-g"
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333
5334 int
5335 main ()
5336 {
5337
5338 ;
5339 return 0;
5340 }
5341 _ACEOF
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 ac_cv_prog_cc_g=yes
5344 else
5345 CFLAGS=""
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 int
5350 main ()
5351 {
5352
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358
5359 else
5360 ac_c_werror_flag=$ac_save_c_werror_flag
5361 CFLAGS="-g"
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_prog_cc_g=yes
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 ac_c_werror_flag=$ac_save_c_werror_flag
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5384 $as_echo "$ac_cv_prog_cc_g" >&6; }
5385 if test "$ac_test_CFLAGS" = set; then
5386 CFLAGS=$ac_save_CFLAGS
5387 elif test $ac_cv_prog_cc_g = yes; then
5388 if test "$GCC" = yes; then
5389 CFLAGS="-g -O2"
5390 else
5391 CFLAGS="-g"
5392 fi
5393 else
5394 if test "$GCC" = yes; then
5395 CFLAGS="-O2"
5396 else
5397 CFLAGS=
5398 fi
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5401 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5402 if ${ac_cv_prog_cc_c89+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 ac_cv_prog_cc_c89=no
5406 ac_save_CC=$CC
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <stdarg.h>
5410 #include <stdio.h>
5411 struct stat;
5412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5413 struct buf { int x; };
5414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5415 static char *e (p, i)
5416 char **p;
5417 int i;
5418 {
5419 return p[i];
5420 }
5421 static char *f (char * (*g) (char **, int), char **p, ...)
5422 {
5423 char *s;
5424 va_list v;
5425 va_start (v,p);
5426 s = g (p, va_arg (v,int));
5427 va_end (v);
5428 return s;
5429 }
5430
5431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5432 function prototypes and stuff, but not '\xHH' hex character constants.
5433 These don't provoke an error unfortunately, instead are silently treated
5434 as 'x'. The following induces an error, until -std is added to get
5435 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5436 array size at least. It's necessary to write '\x00'==0 to get something
5437 that's true only with -std. */
5438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5439
5440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5441 inside strings and character constants. */
5442 #define FOO(x) 'x'
5443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5444
5445 int test (int i, double x);
5446 struct s1 {int (*f) (int a);};
5447 struct s2 {int (*f) (double a);};
5448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5449 int argc;
5450 char **argv;
5451 int
5452 main ()
5453 {
5454 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5460 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5461 do
5462 CC="$ac_save_CC $ac_arg"
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 ac_cv_prog_cc_c89=$ac_arg
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext
5467 test "x$ac_cv_prog_cc_c89" != "xno" && break
5468 done
5469 rm -f conftest.$ac_ext
5470 CC=$ac_save_CC
5471
5472 fi
5473 # AC_CACHE_VAL
5474 case "x$ac_cv_prog_cc_c89" in
5475 x)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5477 $as_echo "none needed" >&6; } ;;
5478 xno)
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5480 $as_echo "unsupported" >&6; } ;;
5481 *)
5482 CC="$CC $ac_cv_prog_cc_c89"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5484 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5485 esac
5486 if test "x$ac_cv_prog_cc_c89" != xno; then :
5487
5488 fi
5489
5490 ac_ext=c
5491 ac_cpp='$CPP $CPPFLAGS'
5492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495
5496 ac_ext=c
5497 ac_cpp='$CPP $CPPFLAGS'
5498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5502 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5503 if ${am_cv_prog_cc_c_o+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508
5509 int
5510 main ()
5511 {
5512
5513 ;
5514 return 0;
5515 }
5516 _ACEOF
5517 # Make sure it works both with $CC and with simple cc.
5518 # Following AC_PROG_CC_C_O, we do the test twice because some
5519 # compilers refuse to overwrite an existing .o file with -o,
5520 # though they will create one.
5521 am_cv_prog_cc_c_o=yes
5522 for am_i in 1 2; do
5523 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5524 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } \
5528 && test -f conftest2.$ac_objext; then
5529 : OK
5530 else
5531 am_cv_prog_cc_c_o=no
5532 break
5533 fi
5534 done
5535 rm -f core conftest*
5536 unset am_i
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5539 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5540 if test "$am_cv_prog_cc_c_o" != yes; then
5541 # Losing compiler, so override with the script.
5542 # FIXME: It is wrong to rewrite CC.
5543 # But if we don't then we get into trouble of one sort or another.
5544 # A longer-term fix would be to have automake use am__CC in this case,
5545 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5546 CC="$am_aux_dir/compile $CC"
5547 fi
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553
5554
5555 depcc="$CC" am_compiler_list=
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5558 $as_echo_n "checking dependency style of $depcc... " >&6; }
5559 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5563 # We make a subdir and do the tests there. Otherwise we can end up
5564 # making bogus files that we don't know about and never remove. For
5565 # instance it was reported that on HP-UX the gcc test will end up
5566 # making a dummy file named 'D' -- because '-MD' means "put the output
5567 # in D".
5568 rm -rf conftest.dir
5569 mkdir conftest.dir
5570 # Copy depcomp to subdir because otherwise we won't find it if we're
5571 # using a relative directory.
5572 cp "$am_depcomp" conftest.dir
5573 cd conftest.dir
5574 # We will build objects and dependencies in a subdirectory because
5575 # it helps to detect inapplicable dependency modes. For instance
5576 # both Tru64's cc and ICC support -MD to output dependencies as a
5577 # side effect of compilation, but ICC will put the dependencies in
5578 # the current directory while Tru64 will put them in the object
5579 # directory.
5580 mkdir sub
5581
5582 am_cv_CC_dependencies_compiler_type=none
5583 if test "$am_compiler_list" = ""; then
5584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5585 fi
5586 am__universal=false
5587 case " $depcc " in #(
5588 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5589 esac
5590
5591 for depmode in $am_compiler_list; do
5592 # Setup a source with many dependencies, because some compilers
5593 # like to wrap large dependency lists on column 80 (with \), and
5594 # we should not choose a depcomp mode which is confused by this.
5595 #
5596 # We need to recreate these files for each test, as the compiler may
5597 # overwrite some of them when testing with obscure command lines.
5598 # This happens at least with the AIX C compiler.
5599 : > sub/conftest.c
5600 for i in 1 2 3 4 5 6; do
5601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5603 # Solaris 10 /bin/sh.
5604 echo '/* dummy */' > sub/conftst$i.h
5605 done
5606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5607
5608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5609 # mode. It turns out that the SunPro C++ compiler does not properly
5610 # handle '-M -o', and we need to detect this. Also, some Intel
5611 # versions had trouble with output in subdirs.
5612 am__obj=sub/conftest.${OBJEXT-o}
5613 am__minus_obj="-o $am__obj"
5614 case $depmode in
5615 gcc)
5616 # This depmode causes a compiler race in universal mode.
5617 test "$am__universal" = false || continue
5618 ;;
5619 nosideeffect)
5620 # After this tag, mechanisms are not by side-effect, so they'll
5621 # only be used when explicitly requested.
5622 if test "x$enable_dependency_tracking" = xyes; then
5623 continue
5624 else
5625 break
5626 fi
5627 ;;
5628 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5629 # This compiler won't grok '-c -o', but also, the minuso test has
5630 # not run yet. These depmodes are late enough in the game, and
5631 # so weak that their functioning should not be impacted.
5632 am__obj=conftest.${OBJEXT-o}
5633 am__minus_obj=
5634 ;;
5635 none) break ;;
5636 esac
5637 if depmode=$depmode \
5638 source=sub/conftest.c object=$am__obj \
5639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5641 >/dev/null 2>conftest.err &&
5642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5646 # icc doesn't choke on unknown options, it will just issue warnings
5647 # or remarks (even with -Werror). So we grep stderr for any message
5648 # that says an option was ignored or not supported.
5649 # When given -MP, icc 7.0 and 7.1 complain thusly:
5650 # icc: Command line warning: ignoring option '-M'; no argument required
5651 # The diagnosis changed in icc 8.0:
5652 # icc: Command line remark: option '-MP' not supported
5653 if (grep 'ignoring option' conftest.err ||
5654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5655 am_cv_CC_dependencies_compiler_type=$depmode
5656 break
5657 fi
5658 fi
5659 done
5660
5661 cd ..
5662 rm -rf conftest.dir
5663 else
5664 am_cv_CC_dependencies_compiler_type=none
5665 fi
5666
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5669 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5670 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5671
5672 if
5673 test "x$enable_dependency_tracking" != xno \
5674 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5675 am__fastdepCC_TRUE=
5676 am__fastdepCC_FALSE='#'
5677 else
5678 am__fastdepCC_TRUE='#'
5679 am__fastdepCC_FALSE=
5680 fi
5681
5682
5683 ac_ext=cpp
5684 ac_cpp='$CXXCPP $CPPFLAGS'
5685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 if test -z "$CXX"; then
5689 if test -n "$CCC"; then
5690 CXX=$CCC
5691 else
5692 if test -n "$ac_tool_prefix"; then
5693 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5694 do
5695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CXX+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$CXX"; then
5703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 CXX=$ac_cv_prog_CXX
5723 if test -n "$CXX"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5725 $as_echo "$CXX" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 test -n "$CXX" && break
5733 done
5734 fi
5735 if test -z "$CXX"; then
5736 ac_ct_CXX=$CXX
5737 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5738 do
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$ac_ct_CXX"; then
5747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_CXX="$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760 done
5761 done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5767 if test -n "$ac_ct_CXX"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5769 $as_echo "$ac_ct_CXX" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776 test -n "$ac_ct_CXX" && break
5777 done
5778
5779 if test "x$ac_ct_CXX" = x; then
5780 CXX="g++"
5781 else
5782 case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788 CXX=$ac_ct_CXX
5789 fi
5790 fi
5791
5792 fi
5793 fi
5794 # Provide some information about the compiler.
5795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5796 set X $ac_compile
5797 ac_compiler=$2
5798 for ac_option in --version -v -V -qversion; do
5799 { { ac_try="$ac_compiler $ac_option >&5"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5805 $as_echo "$ac_try_echo"; } >&5
5806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5807 ac_status=$?
5808 if test -s conftest.err; then
5809 sed '10a\
5810 ... rest of stderr output deleted ...
5811 10q' conftest.err >conftest.er1
5812 cat conftest.er1 >&5
5813 fi
5814 rm -f conftest.er1 conftest.err
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }
5817 done
5818
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5820 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5821 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826
5827 int
5828 main ()
5829 {
5830 #ifndef __GNUC__
5831 choke me
5832 #endif
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ac_compiler_gnu=yes
5840 else
5841 ac_compiler_gnu=no
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5848 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5849 if test $ac_compiler_gnu = yes; then
5850 GXX=yes
5851 else
5852 GXX=
5853 fi
5854 ac_test_CXXFLAGS=${CXXFLAGS+set}
5855 ac_save_CXXFLAGS=$CXXFLAGS
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5857 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5858 if ${ac_cv_prog_cxx_g+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5862 ac_cxx_werror_flag=yes
5863 ac_cv_prog_cxx_g=no
5864 CXXFLAGS="-g"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867
5868 int
5869 main ()
5870 {
5871
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 if ac_fn_cxx_try_compile "$LINENO"; then :
5877 ac_cv_prog_cxx_g=yes
5878 else
5879 CXXFLAGS=""
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882
5883 int
5884 main ()
5885 {
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_cxx_try_compile "$LINENO"; then :
5892
5893 else
5894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5895 CXXFLAGS="-g"
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_prog_cxx_g=yes
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5918 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5919 if test "$ac_test_CXXFLAGS" = set; then
5920 CXXFLAGS=$ac_save_CXXFLAGS
5921 elif test $ac_cv_prog_cxx_g = yes; then
5922 if test "$GXX" = yes; then
5923 CXXFLAGS="-g -O2"
5924 else
5925 CXXFLAGS="-g"
5926 fi
5927 else
5928 if test "$GXX" = yes; then
5929 CXXFLAGS="-O2"
5930 else
5931 CXXFLAGS=
5932 fi
5933 fi
5934 ac_ext=c
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5939
5940 depcc="$CXX" am_compiler_list=
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5943 $as_echo_n "checking dependency style of $depcc... " >&6; }
5944 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5948 # We make a subdir and do the tests there. Otherwise we can end up
5949 # making bogus files that we don't know about and never remove. For
5950 # instance it was reported that on HP-UX the gcc test will end up
5951 # making a dummy file named 'D' -- because '-MD' means "put the output
5952 # in D".
5953 rm -rf conftest.dir
5954 mkdir conftest.dir
5955 # Copy depcomp to subdir because otherwise we won't find it if we're
5956 # using a relative directory.
5957 cp "$am_depcomp" conftest.dir
5958 cd conftest.dir
5959 # We will build objects and dependencies in a subdirectory because
5960 # it helps to detect inapplicable dependency modes. For instance
5961 # both Tru64's cc and ICC support -MD to output dependencies as a
5962 # side effect of compilation, but ICC will put the dependencies in
5963 # the current directory while Tru64 will put them in the object
5964 # directory.
5965 mkdir sub
5966
5967 am_cv_CXX_dependencies_compiler_type=none
5968 if test "$am_compiler_list" = ""; then
5969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5970 fi
5971 am__universal=false
5972 case " $depcc " in #(
5973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5974 esac
5975
5976 for depmode in $am_compiler_list; do
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5980 #
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5984 : > sub/conftest.c
5985 for i in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5987 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5988 # Solaris 10 /bin/sh.
5989 echo '/* dummy */' > sub/conftst$i.h
5990 done
5991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5992
5993 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5994 # mode. It turns out that the SunPro C++ compiler does not properly
5995 # handle '-M -o', and we need to detect this. Also, some Intel
5996 # versions had trouble with output in subdirs.
5997 am__obj=sub/conftest.${OBJEXT-o}
5998 am__minus_obj="-o $am__obj"
5999 case $depmode in
6000 gcc)
6001 # This depmode causes a compiler race in universal mode.
6002 test "$am__universal" = false || continue
6003 ;;
6004 nosideeffect)
6005 # After this tag, mechanisms are not by side-effect, so they'll
6006 # only be used when explicitly requested.
6007 if test "x$enable_dependency_tracking" = xyes; then
6008 continue
6009 else
6010 break
6011 fi
6012 ;;
6013 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6014 # This compiler won't grok '-c -o', but also, the minuso test has
6015 # not run yet. These depmodes are late enough in the game, and
6016 # so weak that their functioning should not be impacted.
6017 am__obj=conftest.${OBJEXT-o}
6018 am__minus_obj=
6019 ;;
6020 none) break ;;
6021 esac
6022 if depmode=$depmode \
6023 source=sub/conftest.c object=$am__obj \
6024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6026 >/dev/null 2>conftest.err &&
6027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6031 # icc doesn't choke on unknown options, it will just issue warnings
6032 # or remarks (even with -Werror). So we grep stderr for any message
6033 # that says an option was ignored or not supported.
6034 # When given -MP, icc 7.0 and 7.1 complain thusly:
6035 # icc: Command line warning: ignoring option '-M'; no argument required
6036 # The diagnosis changed in icc 8.0:
6037 # icc: Command line remark: option '-MP' not supported
6038 if (grep 'ignoring option' conftest.err ||
6039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6040 am_cv_CXX_dependencies_compiler_type=$depmode
6041 break
6042 fi
6043 fi
6044 done
6045
6046 cd ..
6047 rm -rf conftest.dir
6048 else
6049 am_cv_CXX_dependencies_compiler_type=none
6050 fi
6051
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6054 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6055 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6056
6057 if
6058 test "x$enable_dependency_tracking" != xno \
6059 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6060 am__fastdepCXX_TRUE=
6061 am__fastdepCXX_FALSE='#'
6062 else
6063 am__fastdepCXX_TRUE='#'
6064 am__fastdepCXX_FALSE=
6065 fi
6066
6067
6068 ac_ext=c
6069 ac_cpp='$CPP $CPPFLAGS'
6070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6075 # On Suns, sometimes $CPP names a directory.
6076 if test -n "$CPP" && test -d "$CPP"; then
6077 CPP=
6078 fi
6079 if test -z "$CPP"; then
6080 if ${ac_cv_prog_CPP+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 # Double quotes because CPP needs to be expanded
6084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6085 do
6086 ac_preproc_ok=false
6087 for ac_c_preproc_warn_flag in '' yes
6088 do
6089 # Use a header file that comes with gcc, so configuring glibc
6090 # with a fresh cross-compiler works.
6091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6092 # <limits.h> exists even on freestanding compilers.
6093 # On the NeXT, cc -E runs the code through the compiler's parser,
6094 # not just through cpp. "Syntax error" is here to catch this case.
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #ifdef __STDC__
6098 # include <limits.h>
6099 #else
6100 # include <assert.h>
6101 #endif
6102 Syntax error
6103 _ACEOF
6104 if ac_fn_c_try_cpp "$LINENO"; then :
6105
6106 else
6107 # Broken: fails on valid input.
6108 continue
6109 fi
6110 rm -f conftest.err conftest.i conftest.$ac_ext
6111
6112 # OK, works on sane cases. Now check whether nonexistent headers
6113 # can be detected and how.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #include <ac_nonexistent.h>
6117 _ACEOF
6118 if ac_fn_c_try_cpp "$LINENO"; then :
6119 # Broken: success on invalid input.
6120 continue
6121 else
6122 # Passes both tests.
6123 ac_preproc_ok=:
6124 break
6125 fi
6126 rm -f conftest.err conftest.i conftest.$ac_ext
6127
6128 done
6129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6130 rm -f conftest.i conftest.err conftest.$ac_ext
6131 if $ac_preproc_ok; then :
6132 break
6133 fi
6134
6135 done
6136 ac_cv_prog_CPP=$CPP
6137
6138 fi
6139 CPP=$ac_cv_prog_CPP
6140 else
6141 ac_cv_prog_CPP=$CPP
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6144 $as_echo "$CPP" >&6; }
6145 ac_preproc_ok=false
6146 for ac_c_preproc_warn_flag in '' yes
6147 do
6148 # Use a header file that comes with gcc, so configuring glibc
6149 # with a fresh cross-compiler works.
6150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151 # <limits.h> exists even on freestanding compilers.
6152 # On the NeXT, cc -E runs the code through the compiler's parser,
6153 # not just through cpp. "Syntax error" is here to catch this case.
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #ifdef __STDC__
6157 # include <limits.h>
6158 #else
6159 # include <assert.h>
6160 #endif
6161 Syntax error
6162 _ACEOF
6163 if ac_fn_c_try_cpp "$LINENO"; then :
6164
6165 else
6166 # Broken: fails on valid input.
6167 continue
6168 fi
6169 rm -f conftest.err conftest.i conftest.$ac_ext
6170
6171 # OK, works on sane cases. Now check whether nonexistent headers
6172 # can be detected and how.
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <ac_nonexistent.h>
6176 _ACEOF
6177 if ac_fn_c_try_cpp "$LINENO"; then :
6178 # Broken: success on invalid input.
6179 continue
6180 else
6181 # Passes both tests.
6182 ac_preproc_ok=:
6183 break
6184 fi
6185 rm -f conftest.err conftest.i conftest.$ac_ext
6186
6187 done
6188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6189 rm -f conftest.i conftest.err conftest.$ac_ext
6190 if $ac_preproc_ok; then :
6191
6192 else
6193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6195 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details" "$LINENO" 5; }
6197 fi
6198
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_RANLIB+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$RANLIB"; then
6215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 RANLIB=$ac_cv_prog_RANLIB
6235 if test -n "$RANLIB"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6237 $as_echo "$RANLIB" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244 fi
6245 if test -z "$ac_cv_prog_RANLIB"; then
6246 ac_ct_RANLIB=$RANLIB
6247 # Extract the first word of "ranlib", so it can be a program name with args.
6248 set dummy ranlib; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$ac_ct_RANLIB"; then
6255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_ac_ct_RANLIB="ranlib"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6275 if test -n "$ac_ct_RANLIB"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6277 $as_echo "$ac_ct_RANLIB" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283 if test "x$ac_ct_RANLIB" = x; then
6284 RANLIB=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292 RANLIB=$ac_ct_RANLIB
6293 fi
6294 else
6295 RANLIB="$ac_cv_prog_RANLIB"
6296 fi
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6302 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6303 set x ${MAKE-make}
6304 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6305 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 cat >conftest.make <<\_ACEOF
6309 SHELL = /bin/sh
6310 all:
6311 @echo '@@@%%%=$(MAKE)=@@@%%%'
6312 _ACEOF
6313 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6314 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6315 *@@@%%%=?*=@@@%%%*)
6316 eval ac_cv_prog_make_${ac_make}_set=yes;;
6317 *)
6318 eval ac_cv_prog_make_${ac_make}_set=no;;
6319 esac
6320 rm -f conftest.make
6321 fi
6322 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6324 $as_echo "yes" >&6; }
6325 SET_MAKE=
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 SET_MAKE="MAKE=${MAKE-make}"
6330 fi
6331
6332
6333
6334 # Check whether --enable-largefile was given.
6335 if test "${enable_largefile+set}" = set; then :
6336 enableval=$enable_largefile;
6337 fi
6338
6339 if test "$enable_largefile" != no; then
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6342 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6343 if ${ac_cv_sys_largefile_CC+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 ac_cv_sys_largefile_CC=no
6347 if test "$GCC" != yes; then
6348 ac_save_CC=$CC
6349 while :; do
6350 # IRIX 6.2 and later do not support large files by default,
6351 # so use the C compiler's -n32 option if that helps.
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 #include <sys/types.h>
6355 /* Check that off_t can represent 2**63 - 1 correctly.
6356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6357 since some C++ compilers masquerading as C compilers
6358 incorrectly reject 9223372036854775807. */
6359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6361 && LARGE_OFF_T % 2147483647 == 1)
6362 ? 1 : -1];
6363 int
6364 main ()
6365 {
6366
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 break
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext
6375 CC="$CC -n32"
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 ac_cv_sys_largefile_CC=' -n32'; break
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext
6380 break
6381 done
6382 CC=$ac_save_CC
6383 rm -f conftest.$ac_ext
6384 fi
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6387 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6388 if test "$ac_cv_sys_largefile_CC" != no; then
6389 CC=$CC$ac_cv_sys_largefile_CC
6390 fi
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6393 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6394 if ${ac_cv_sys_file_offset_bits+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 while :; do
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #include <sys/types.h>
6401 /* Check that off_t can represent 2**63 - 1 correctly.
6402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6403 since some C++ compilers masquerading as C compilers
6404 incorrectly reject 9223372036854775807. */
6405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6407 && LARGE_OFF_T % 2147483647 == 1)
6408 ? 1 : -1];
6409 int
6410 main ()
6411 {
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 ac_cv_sys_file_offset_bits=no; break
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #define _FILE_OFFSET_BITS 64
6424 #include <sys/types.h>
6425 /* Check that off_t can represent 2**63 - 1 correctly.
6426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6427 since some C++ compilers masquerading as C compilers
6428 incorrectly reject 9223372036854775807. */
6429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6431 && LARGE_OFF_T % 2147483647 == 1)
6432 ? 1 : -1];
6433 int
6434 main ()
6435 {
6436
6437 ;
6438 return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_compile "$LINENO"; then :
6442 ac_cv_sys_file_offset_bits=64; break
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 ac_cv_sys_file_offset_bits=unknown
6446 break
6447 done
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6450 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6451 case $ac_cv_sys_file_offset_bits in #(
6452 no | unknown) ;;
6453 *)
6454 cat >>confdefs.h <<_ACEOF
6455 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6456 _ACEOF
6457 ;;
6458 esac
6459 rm -rf conftest*
6460 if test $ac_cv_sys_file_offset_bits = unknown; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6462 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6463 if ${ac_cv_sys_large_files+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 while :; do
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6470 /* Check that off_t can represent 2**63 - 1 correctly.
6471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6472 since some C++ compilers masquerading as C compilers
6473 incorrectly reject 9223372036854775807. */
6474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6476 && LARGE_OFF_T % 2147483647 == 1)
6477 ? 1 : -1];
6478 int
6479 main ()
6480 {
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 ac_cv_sys_large_files=no; break
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #define _LARGE_FILES 1
6493 #include <sys/types.h>
6494 /* Check that off_t can represent 2**63 - 1 correctly.
6495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6496 since some C++ compilers masquerading as C compilers
6497 incorrectly reject 9223372036854775807. */
6498 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6500 && LARGE_OFF_T % 2147483647 == 1)
6501 ? 1 : -1];
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 ac_cv_sys_large_files=1; break
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 ac_cv_sys_large_files=unknown
6515 break
6516 done
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6519 $as_echo "$ac_cv_sys_large_files" >&6; }
6520 case $ac_cv_sys_large_files in #(
6521 no | unknown) ;;
6522 *)
6523 cat >>confdefs.h <<_ACEOF
6524 #define _LARGE_FILES $ac_cv_sys_large_files
6525 _ACEOF
6526 ;;
6527 esac
6528 rm -rf conftest*
6529 fi
6530
6531
6532 fi
6533
6534 for ac_func in ppoll
6535 do :
6536 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
6537 if test "x$ac_cv_func_ppoll" = xyes; then :
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_PPOLL 1
6540 _ACEOF
6541
6542 fi
6543 done
6544
6545 for ac_func in openat
6546 do :
6547 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
6548 if test "x$ac_cv_func_openat" = xyes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define HAVE_OPENAT 1
6551 _ACEOF
6552
6553 fi
6554 done
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6557 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6558 if ${ac_cv_path_SED+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6562 for ac_i in 1 2 3 4 5 6 7; do
6563 ac_script="$ac_script$as_nl$ac_script"
6564 done
6565 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6566 { ac_script=; unset ac_script;}
6567 if test -z "$SED"; then
6568 ac_path_SED_found=false
6569 # Loop through the user's path and test for each of PROGNAME-LIST
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_prog in sed gsed; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6578 as_fn_executable_p "$ac_path_SED" || continue
6579 # Check for GNU ac_path_SED and select it if it is found.
6580 # Check for GNU $ac_path_SED
6581 case `"$ac_path_SED" --version 2>&1` in
6582 *GNU*)
6583 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6584 *)
6585 ac_count=0
6586 $as_echo_n 0123456789 >"conftest.in"
6587 while :
6588 do
6589 cat "conftest.in" "conftest.in" >"conftest.tmp"
6590 mv "conftest.tmp" "conftest.in"
6591 cp "conftest.in" "conftest.nl"
6592 $as_echo '' >> "conftest.nl"
6593 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6595 as_fn_arith $ac_count + 1 && ac_count=$as_val
6596 if test $ac_count -gt ${ac_path_SED_max-0}; then
6597 # Best one so far, save it but keep looking for a better one
6598 ac_cv_path_SED="$ac_path_SED"
6599 ac_path_SED_max=$ac_count
6600 fi
6601 # 10*(2^10) chars as input seems more than enough
6602 test $ac_count -gt 10 && break
6603 done
6604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6605 esac
6606
6607 $ac_path_SED_found && break 3
6608 done
6609 done
6610 done
6611 IFS=$as_save_IFS
6612 if test -z "$ac_cv_path_SED"; then
6613 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6614 fi
6615 else
6616 ac_cv_path_SED=$SED
6617 fi
6618
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6621 $as_echo "$ac_cv_path_SED" >&6; }
6622 SED="$ac_cv_path_SED"
6623 rm -f conftest.sed
6624
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6627 $as_echo_n "checking whether NLS is requested... " >&6; }
6628 # Check whether --enable-nls was given.
6629 if test "${enable_nls+set}" = set; then :
6630 enableval=$enable_nls; USE_NLS=$enableval
6631 else
6632 USE_NLS=yes
6633 fi
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6636 $as_echo "$USE_NLS" >&6; }
6637
6638
6639
6640
6641 GETTEXT_MACRO_VERSION=0.19
6642
6643
6644
6645
6646 # Prepare PATH_SEPARATOR.
6647 # The user is always right.
6648 if test "${PATH_SEPARATOR+set}" != set; then
6649 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6650 # contains only /bin. Note that ksh looks also at the FPATH variable,
6651 # so we have to set that as well for the test.
6652 PATH_SEPARATOR=:
6653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6654 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6655 || PATH_SEPARATOR=';'
6656 }
6657 fi
6658
6659 # Find out how to test for executable files. Don't use a zero-byte file,
6660 # as systems may use methods other than mode bits to determine executability.
6661 cat >conf$$.file <<_ASEOF
6662 #! /bin/sh
6663 exit 0
6664 _ASEOF
6665 chmod +x conf$$.file
6666 if test -x conf$$.file >/dev/null 2>&1; then
6667 ac_executable_p="test -x"
6668 else
6669 ac_executable_p="test -f"
6670 fi
6671 rm -f conf$$.file
6672
6673 # Extract the first word of "msgfmt", so it can be a program name with args.
6674 set dummy msgfmt; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_path_MSGFMT+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 case "$MSGFMT" in
6681 [\\/]* | ?:[\\/]*)
6682 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6683 ;;
6684 *)
6685 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6686 for ac_dir in $PATH; do
6687 IFS="$ac_save_IFS"
6688 test -z "$ac_dir" && ac_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6691 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6692 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6693 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6694 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6695 break 2
6696 fi
6697 fi
6698 done
6699 done
6700 IFS="$ac_save_IFS"
6701 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6702 ;;
6703 esac
6704 fi
6705 MSGFMT="$ac_cv_path_MSGFMT"
6706 if test "$MSGFMT" != ":"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6708 $as_echo "$MSGFMT" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6715 set dummy gmsgfmt; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_path_GMSGFMT+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 case $GMSGFMT in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6724 ;;
6725 *)
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6742 ;;
6743 esac
6744 fi
6745 GMSGFMT=$ac_cv_path_GMSGFMT
6746 if test -n "$GMSGFMT"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6748 $as_echo "$GMSGFMT" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754
6755
6756 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6757 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6758 *) MSGFMT_015=$MSGFMT ;;
6759 esac
6760
6761 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6762 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6763 *) GMSGFMT_015=$GMSGFMT ;;
6764 esac
6765
6766
6767
6768 # Prepare PATH_SEPARATOR.
6769 # The user is always right.
6770 if test "${PATH_SEPARATOR+set}" != set; then
6771 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6772 # contains only /bin. Note that ksh looks also at the FPATH variable,
6773 # so we have to set that as well for the test.
6774 PATH_SEPARATOR=:
6775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6776 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6777 || PATH_SEPARATOR=';'
6778 }
6779 fi
6780
6781 # Find out how to test for executable files. Don't use a zero-byte file,
6782 # as systems may use methods other than mode bits to determine executability.
6783 cat >conf$$.file <<_ASEOF
6784 #! /bin/sh
6785 exit 0
6786 _ASEOF
6787 chmod +x conf$$.file
6788 if test -x conf$$.file >/dev/null 2>&1; then
6789 ac_executable_p="test -x"
6790 else
6791 ac_executable_p="test -f"
6792 fi
6793 rm -f conf$$.file
6794
6795 # Extract the first word of "xgettext", so it can be a program name with args.
6796 set dummy xgettext; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_path_XGETTEXT+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 case "$XGETTEXT" in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6808 for ac_dir in $PATH; do
6809 IFS="$ac_save_IFS"
6810 test -z "$ac_dir" && ac_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6813 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6814 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6815 (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
6816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6817 break 2
6818 fi
6819 fi
6820 done
6821 done
6822 IFS="$ac_save_IFS"
6823 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6824 ;;
6825 esac
6826 fi
6827 XGETTEXT="$ac_cv_path_XGETTEXT"
6828 if test "$XGETTEXT" != ":"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6830 $as_echo "$XGETTEXT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836 rm -f messages.po
6837
6838 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6839 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6840 *) XGETTEXT_015=$XGETTEXT ;;
6841 esac
6842
6843
6844
6845 # Prepare PATH_SEPARATOR.
6846 # The user is always right.
6847 if test "${PATH_SEPARATOR+set}" != set; then
6848 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6849 # contains only /bin. Note that ksh looks also at the FPATH variable,
6850 # so we have to set that as well for the test.
6851 PATH_SEPARATOR=:
6852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6853 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6854 || PATH_SEPARATOR=';'
6855 }
6856 fi
6857
6858 # Find out how to test for executable files. Don't use a zero-byte file,
6859 # as systems may use methods other than mode bits to determine executability.
6860 cat >conf$$.file <<_ASEOF
6861 #! /bin/sh
6862 exit 0
6863 _ASEOF
6864 chmod +x conf$$.file
6865 if test -x conf$$.file >/dev/null 2>&1; then
6866 ac_executable_p="test -x"
6867 else
6868 ac_executable_p="test -f"
6869 fi
6870 rm -f conf$$.file
6871
6872 # Extract the first word of "msgmerge", so it can be a program name with args.
6873 set dummy msgmerge; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_path_MSGMERGE+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 case "$MSGMERGE" in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6882 ;;
6883 *)
6884 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6885 for ac_dir in $PATH; do
6886 IFS="$ac_save_IFS"
6887 test -z "$ac_dir" && ac_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6890 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6891 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6892 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6893 break 2
6894 fi
6895 fi
6896 done
6897 done
6898 IFS="$ac_save_IFS"
6899 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6900 ;;
6901 esac
6902 fi
6903 MSGMERGE="$ac_cv_path_MSGMERGE"
6904 if test "$MSGMERGE" != ":"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6906 $as_echo "$MSGMERGE" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912
6913 test -n "$localedir" || localedir='${datadir}/locale'
6914
6915
6916 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6917
6918
6919 ac_config_commands="$ac_config_commands po-directories"
6920
6921
6922
6923 if test "X$prefix" = "XNONE"; then
6924 acl_final_prefix="$ac_default_prefix"
6925 else
6926 acl_final_prefix="$prefix"
6927 fi
6928 if test "X$exec_prefix" = "XNONE"; then
6929 acl_final_exec_prefix='${prefix}'
6930 else
6931 acl_final_exec_prefix="$exec_prefix"
6932 fi
6933 acl_save_prefix="$prefix"
6934 prefix="$acl_final_prefix"
6935 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6936 prefix="$acl_save_prefix"
6937
6938
6939
6940 # Check whether --with-gnu-ld was given.
6941 if test "${with_gnu_ld+set}" = set; then :
6942 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6943 else
6944 with_gnu_ld=no
6945 fi
6946
6947 # Prepare PATH_SEPARATOR.
6948 # The user is always right.
6949 if test "${PATH_SEPARATOR+set}" != set; then
6950 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6951 # contains only /bin. Note that ksh looks also at the FPATH variable,
6952 # so we have to set that as well for the test.
6953 PATH_SEPARATOR=:
6954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6955 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6956 || PATH_SEPARATOR=';'
6957 }
6958 fi
6959
6960 ac_prog=ld
6961 if test "$GCC" = yes; then
6962 # Check if gcc -print-prog-name=ld gives a path.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6964 $as_echo_n "checking for ld used by $CC... " >&6; }
6965 case $host in
6966 *-*-mingw*)
6967 # gcc leaves a trailing carriage return which upsets mingw
6968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6969 *)
6970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6971 esac
6972 case $ac_prog in
6973 # Accept absolute paths.
6974 [\\/]* | ?:[\\/]*)
6975 re_direlt='/[^/][^/]*/\.\./'
6976 # Canonicalize the pathname of ld
6977 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6978 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6979 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6980 done
6981 test -z "$LD" && LD="$ac_prog"
6982 ;;
6983 "")
6984 # If it fails, then pretend we aren't using GCC.
6985 ac_prog=ld
6986 ;;
6987 *)
6988 # If it is relative, then search for the first ld in PATH.
6989 with_gnu_ld=unknown
6990 ;;
6991 esac
6992 elif test "$with_gnu_ld" = yes; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6994 $as_echo_n "checking for GNU ld... " >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6997 $as_echo_n "checking for non-GNU ld... " >&6; }
6998 fi
6999 if ${acl_cv_path_LD+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -z "$LD"; then
7003 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7004 for ac_dir in $PATH; do
7005 IFS="$acl_save_ifs"
7006 test -z "$ac_dir" && ac_dir=.
7007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7008 acl_cv_path_LD="$ac_dir/$ac_prog"
7009 # Check to see if the program is GNU ld. I'd rather use --version,
7010 # but apparently some variants of GNU ld only accept -v.
7011 # Break only if it was the GNU/non-GNU ld that we prefer.
7012 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7013 *GNU* | *'with BFD'*)
7014 test "$with_gnu_ld" != no && break
7015 ;;
7016 *)
7017 test "$with_gnu_ld" != yes && break
7018 ;;
7019 esac
7020 fi
7021 done
7022 IFS="$acl_save_ifs"
7023 else
7024 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7025 fi
7026 fi
7027
7028 LD="$acl_cv_path_LD"
7029 if test -n "$LD"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7031 $as_echo "$LD" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7039 if ${acl_cv_prog_gnu_ld+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7043 case `$LD -v 2>&1 </dev/null` in
7044 *GNU* | *'with BFD'*)
7045 acl_cv_prog_gnu_ld=yes
7046 ;;
7047 *)
7048 acl_cv_prog_gnu_ld=no
7049 ;;
7050 esac
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7053 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7054 with_gnu_ld=$acl_cv_prog_gnu_ld
7055
7056
7057
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7060 $as_echo_n "checking for shared library run path origin... " >&6; }
7061 if ${acl_cv_rpath+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064
7065 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7066 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7067 . ./conftest.sh
7068 rm -f ./conftest.sh
7069 acl_cv_rpath=done
7070
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7073 $as_echo "$acl_cv_rpath" >&6; }
7074 wl="$acl_cv_wl"
7075 acl_libext="$acl_cv_libext"
7076 acl_shlibext="$acl_cv_shlibext"
7077 acl_libname_spec="$acl_cv_libname_spec"
7078 acl_library_names_spec="$acl_cv_library_names_spec"
7079 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7080 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7081 acl_hardcode_direct="$acl_cv_hardcode_direct"
7082 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7083 # Check whether --enable-rpath was given.
7084 if test "${enable_rpath+set}" = set; then :
7085 enableval=$enable_rpath; :
7086 else
7087 enable_rpath=yes
7088 fi
7089
7090
7091
7092
7093 acl_libdirstem=lib
7094 acl_libdirstem2=
7095 case "$host_os" in
7096 solaris*)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7098 $as_echo_n "checking for 64-bit host... " >&6; }
7099 if ${gl_cv_solaris_64bit+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 #ifdef _LP64
7106 sixtyfour bits
7107 #endif
7108
7109 _ACEOF
7110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7112 gl_cv_solaris_64bit=yes
7113 else
7114 gl_cv_solaris_64bit=no
7115 fi
7116 rm -f conftest*
7117
7118
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7121 $as_echo "$gl_cv_solaris_64bit" >&6; }
7122 if test $gl_cv_solaris_64bit = yes; then
7123 acl_libdirstem=lib/64
7124 case "$host_cpu" in
7125 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7126 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7127 esac
7128 fi
7129 ;;
7130 *)
7131 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7132 if test -n "$searchpath"; then
7133 acl_save_IFS="${IFS= }"; IFS=":"
7134 for searchdir in $searchpath; do
7135 if test -d "$searchdir"; then
7136 case "$searchdir" in
7137 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7138 */../ | */.. )
7139 # Better ignore directories of this form. They are misleading.
7140 ;;
7141 *) searchdir=`cd "$searchdir" && pwd`
7142 case "$searchdir" in
7143 */lib64 ) acl_libdirstem=lib64 ;;
7144 esac ;;
7145 esac
7146 fi
7147 done
7148 IFS="$acl_save_IFS"
7149 fi
7150 ;;
7151 esac
7152 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 use_additional=yes
7166
7167 acl_save_prefix="$prefix"
7168 prefix="$acl_final_prefix"
7169 acl_save_exec_prefix="$exec_prefix"
7170 exec_prefix="$acl_final_exec_prefix"
7171
7172 eval additional_includedir=\"$includedir\"
7173 eval additional_libdir=\"$libdir\"
7174
7175 exec_prefix="$acl_save_exec_prefix"
7176 prefix="$acl_save_prefix"
7177
7178
7179 # Check whether --with-libiconv-prefix was given.
7180 if test "${with_libiconv_prefix+set}" = set; then :
7181 withval=$with_libiconv_prefix;
7182 if test "X$withval" = "Xno"; then
7183 use_additional=no
7184 else
7185 if test "X$withval" = "X"; then
7186
7187 acl_save_prefix="$prefix"
7188 prefix="$acl_final_prefix"
7189 acl_save_exec_prefix="$exec_prefix"
7190 exec_prefix="$acl_final_exec_prefix"
7191
7192 eval additional_includedir=\"$includedir\"
7193 eval additional_libdir=\"$libdir\"
7194
7195 exec_prefix="$acl_save_exec_prefix"
7196 prefix="$acl_save_prefix"
7197
7198 else
7199 additional_includedir="$withval/include"
7200 additional_libdir="$withval/$acl_libdirstem"
7201 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7202 && ! test -d "$withval/$acl_libdirstem"; then
7203 additional_libdir="$withval/$acl_libdirstem2"
7204 fi
7205 fi
7206 fi
7207
7208 fi
7209
7210 LIBICONV=
7211 LTLIBICONV=
7212 INCICONV=
7213 LIBICONV_PREFIX=
7214 HAVE_LIBICONV=
7215 rpathdirs=
7216 ltrpathdirs=
7217 names_already_handled=
7218 names_next_round='iconv '
7219 while test -n "$names_next_round"; do
7220 names_this_round="$names_next_round"
7221 names_next_round=
7222 for name in $names_this_round; do
7223 already_handled=
7224 for n in $names_already_handled; do
7225 if test "$n" = "$name"; then
7226 already_handled=yes
7227 break
7228 fi
7229 done
7230 if test -z "$already_handled"; then
7231 names_already_handled="$names_already_handled $name"
7232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7233 eval value=\"\$HAVE_LIB$uppername\"
7234 if test -n "$value"; then
7235 if test "$value" = yes; then
7236 eval value=\"\$LIB$uppername\"
7237 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7238 eval value=\"\$LTLIB$uppername\"
7239 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7240 else
7241 :
7242 fi
7243 else
7244 found_dir=
7245 found_la=
7246 found_so=
7247 found_a=
7248 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7249 if test -n "$acl_shlibext"; then
7250 shrext=".$acl_shlibext" # typically: shrext=.so
7251 else
7252 shrext=
7253 fi
7254 if test $use_additional = yes; then
7255 dir="$additional_libdir"
7256 if test -n "$acl_shlibext"; then
7257 if test -f "$dir/$libname$shrext"; then
7258 found_dir="$dir"
7259 found_so="$dir/$libname$shrext"
7260 else
7261 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7262 ver=`(cd "$dir" && \
7263 for f in "$libname$shrext".*; do echo "$f"; done \
7264 | sed -e "s,^$libname$shrext\\\\.,," \
7265 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7266 | sed 1q ) 2>/dev/null`
7267 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7268 found_dir="$dir"
7269 found_so="$dir/$libname$shrext.$ver"
7270 fi
7271 else
7272 eval library_names=\"$acl_library_names_spec\"
7273 for f in $library_names; do
7274 if test -f "$dir/$f"; then
7275 found_dir="$dir"
7276 found_so="$dir/$f"
7277 break
7278 fi
7279 done
7280 fi
7281 fi
7282 fi
7283 if test "X$found_dir" = "X"; then
7284 if test -f "$dir/$libname.$acl_libext"; then
7285 found_dir="$dir"
7286 found_a="$dir/$libname.$acl_libext"
7287 fi
7288 fi
7289 if test "X$found_dir" != "X"; then
7290 if test -f "$dir/$libname.la"; then
7291 found_la="$dir/$libname.la"
7292 fi
7293 fi
7294 fi
7295 if test "X$found_dir" = "X"; then
7296 for x in $LDFLAGS $LTLIBICONV; do
7297
7298 acl_save_prefix="$prefix"
7299 prefix="$acl_final_prefix"
7300 acl_save_exec_prefix="$exec_prefix"
7301 exec_prefix="$acl_final_exec_prefix"
7302 eval x=\"$x\"
7303 exec_prefix="$acl_save_exec_prefix"
7304 prefix="$acl_save_prefix"
7305
7306 case "$x" in
7307 -L*)
7308 dir=`echo "X$x" | sed -e 's/^X-L//'`
7309 if test -n "$acl_shlibext"; then
7310 if test -f "$dir/$libname$shrext"; then
7311 found_dir="$dir"
7312 found_so="$dir/$libname$shrext"
7313 else
7314 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7315 ver=`(cd "$dir" && \
7316 for f in "$libname$shrext".*; do echo "$f"; done \
7317 | sed -e "s,^$libname$shrext\\\\.,," \
7318 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7319 | sed 1q ) 2>/dev/null`
7320 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7321 found_dir="$dir"
7322 found_so="$dir/$libname$shrext.$ver"
7323 fi
7324 else
7325 eval library_names=\"$acl_library_names_spec\"
7326 for f in $library_names; do
7327 if test -f "$dir/$f"; then
7328 found_dir="$dir"
7329 found_so="$dir/$f"
7330 break
7331 fi
7332 done
7333 fi
7334 fi
7335 fi
7336 if test "X$found_dir" = "X"; then
7337 if test -f "$dir/$libname.$acl_libext"; then
7338 found_dir="$dir"
7339 found_a="$dir/$libname.$acl_libext"
7340 fi
7341 fi
7342 if test "X$found_dir" != "X"; then
7343 if test -f "$dir/$libname.la"; then
7344 found_la="$dir/$libname.la"
7345 fi
7346 fi
7347 ;;
7348 esac
7349 if test "X$found_dir" != "X"; then
7350 break
7351 fi
7352 done
7353 fi
7354 if test "X$found_dir" != "X"; then
7355 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7356 if test "X$found_so" != "X"; then
7357 if test "$enable_rpath" = no \
7358 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7359 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7361 else
7362 haveit=
7363 for x in $ltrpathdirs; do
7364 if test "X$x" = "X$found_dir"; then
7365 haveit=yes
7366 break
7367 fi
7368 done
7369 if test -z "$haveit"; then
7370 ltrpathdirs="$ltrpathdirs $found_dir"
7371 fi
7372 if test "$acl_hardcode_direct" = yes; then
7373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7374 else
7375 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7377 haveit=
7378 for x in $rpathdirs; do
7379 if test "X$x" = "X$found_dir"; then
7380 haveit=yes
7381 break
7382 fi
7383 done
7384 if test -z "$haveit"; then
7385 rpathdirs="$rpathdirs $found_dir"
7386 fi
7387 else
7388 haveit=
7389 for x in $LDFLAGS $LIBICONV; do
7390
7391 acl_save_prefix="$prefix"
7392 prefix="$acl_final_prefix"
7393 acl_save_exec_prefix="$exec_prefix"
7394 exec_prefix="$acl_final_exec_prefix"
7395 eval x=\"$x\"
7396 exec_prefix="$acl_save_exec_prefix"
7397 prefix="$acl_save_prefix"
7398
7399 if test "X$x" = "X-L$found_dir"; then
7400 haveit=yes
7401 break
7402 fi
7403 done
7404 if test -z "$haveit"; then
7405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7406 fi
7407 if test "$acl_hardcode_minus_L" != no; then
7408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7409 else
7410 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7411 fi
7412 fi
7413 fi
7414 fi
7415 else
7416 if test "X$found_a" != "X"; then
7417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7418 else
7419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7420 fi
7421 fi
7422 additional_includedir=
7423 case "$found_dir" in
7424 */$acl_libdirstem | */$acl_libdirstem/)
7425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7426 if test "$name" = 'iconv'; then
7427 LIBICONV_PREFIX="$basedir"
7428 fi
7429 additional_includedir="$basedir/include"
7430 ;;
7431 */$acl_libdirstem2 | */$acl_libdirstem2/)
7432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7433 if test "$name" = 'iconv'; then
7434 LIBICONV_PREFIX="$basedir"
7435 fi
7436 additional_includedir="$basedir/include"
7437 ;;
7438 esac
7439 if test "X$additional_includedir" != "X"; then
7440 if test "X$additional_includedir" != "X/usr/include"; then
7441 haveit=
7442 if test "X$additional_includedir" = "X/usr/local/include"; then
7443 if test -n "$GCC"; then
7444 case $host_os in
7445 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7446 esac
7447 fi
7448 fi
7449 if test -z "$haveit"; then
7450 for x in $CPPFLAGS $INCICONV; do
7451
7452 acl_save_prefix="$prefix"
7453 prefix="$acl_final_prefix"
7454 acl_save_exec_prefix="$exec_prefix"
7455 exec_prefix="$acl_final_exec_prefix"
7456 eval x=\"$x\"
7457 exec_prefix="$acl_save_exec_prefix"
7458 prefix="$acl_save_prefix"
7459
7460 if test "X$x" = "X-I$additional_includedir"; then
7461 haveit=yes
7462 break
7463 fi
7464 done
7465 if test -z "$haveit"; then
7466 if test -d "$additional_includedir"; then
7467 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7468 fi
7469 fi
7470 fi
7471 fi
7472 fi
7473 if test -n "$found_la"; then
7474 save_libdir="$libdir"
7475 case "$found_la" in
7476 */* | *\\*) . "$found_la" ;;
7477 *) . "./$found_la" ;;
7478 esac
7479 libdir="$save_libdir"
7480 for dep in $dependency_libs; do
7481 case "$dep" in
7482 -L*)
7483 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7484 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7485 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7486 haveit=
7487 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7488 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7489 if test -n "$GCC"; then
7490 case $host_os in
7491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7492 esac
7493 fi
7494 fi
7495 if test -z "$haveit"; then
7496 haveit=
7497 for x in $LDFLAGS $LIBICONV; do
7498
7499 acl_save_prefix="$prefix"
7500 prefix="$acl_final_prefix"
7501 acl_save_exec_prefix="$exec_prefix"
7502 exec_prefix="$acl_final_exec_prefix"
7503 eval x=\"$x\"
7504 exec_prefix="$acl_save_exec_prefix"
7505 prefix="$acl_save_prefix"
7506
7507 if test "X$x" = "X-L$additional_libdir"; then
7508 haveit=yes
7509 break
7510 fi
7511 done
7512 if test -z "$haveit"; then
7513 if test -d "$additional_libdir"; then
7514 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7515 fi
7516 fi
7517 haveit=
7518 for x in $LDFLAGS $LTLIBICONV; do
7519
7520 acl_save_prefix="$prefix"
7521 prefix="$acl_final_prefix"
7522 acl_save_exec_prefix="$exec_prefix"
7523 exec_prefix="$acl_final_exec_prefix"
7524 eval x=\"$x\"
7525 exec_prefix="$acl_save_exec_prefix"
7526 prefix="$acl_save_prefix"
7527
7528 if test "X$x" = "X-L$additional_libdir"; then
7529 haveit=yes
7530 break
7531 fi
7532 done
7533 if test -z "$haveit"; then
7534 if test -d "$additional_libdir"; then
7535 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7536 fi
7537 fi
7538 fi
7539 fi
7540 ;;
7541 -R*)
7542 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7543 if test "$enable_rpath" != no; then
7544 haveit=
7545 for x in $rpathdirs; do
7546 if test "X$x" = "X$dir"; then
7547 haveit=yes
7548 break
7549 fi
7550 done
7551 if test -z "$haveit"; then
7552 rpathdirs="$rpathdirs $dir"
7553 fi
7554 haveit=
7555 for x in $ltrpathdirs; do
7556 if test "X$x" = "X$dir"; then
7557 haveit=yes
7558 break
7559 fi
7560 done
7561 if test -z "$haveit"; then
7562 ltrpathdirs="$ltrpathdirs $dir"
7563 fi
7564 fi
7565 ;;
7566 -l*)
7567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7568 ;;
7569 *.la)
7570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7571 ;;
7572 *)
7573 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7575 ;;
7576 esac
7577 done
7578 fi
7579 else
7580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7582 fi
7583 fi
7584 fi
7585 done
7586 done
7587 if test "X$rpathdirs" != "X"; then
7588 if test -n "$acl_hardcode_libdir_separator"; then
7589 alldirs=
7590 for found_dir in $rpathdirs; do
7591 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7592 done
7593 acl_save_libdir="$libdir"
7594 libdir="$alldirs"
7595 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7596 libdir="$acl_save_libdir"
7597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7598 else
7599 for found_dir in $rpathdirs; do
7600 acl_save_libdir="$libdir"
7601 libdir="$found_dir"
7602 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7603 libdir="$acl_save_libdir"
7604 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7605 done
7606 fi
7607 fi
7608 if test "X$ltrpathdirs" != "X"; then
7609 for found_dir in $ltrpathdirs; do
7610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7611 done
7612 fi
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7645 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7646 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 gt_save_LIBS="$LIBS"
7650 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <CoreFoundation/CFPreferences.h>
7654 int
7655 main ()
7656 {
7657 CFPreferencesCopyAppValue(NULL, NULL)
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 gt_cv_func_CFPreferencesCopyAppValue=yes
7664 else
7665 gt_cv_func_CFPreferencesCopyAppValue=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext \
7668 conftest$ac_exeext conftest.$ac_ext
7669 LIBS="$gt_save_LIBS"
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7672 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7673 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7674
7675 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7676
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7679 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7680 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 gt_save_LIBS="$LIBS"
7684 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <CoreFoundation/CFLocale.h>
7688 int
7689 main ()
7690 {
7691 CFLocaleCopyCurrent();
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 gt_cv_func_CFLocaleCopyCurrent=yes
7698 else
7699 gt_cv_func_CFLocaleCopyCurrent=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 LIBS="$gt_save_LIBS"
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7706 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7707 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7708
7709 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7710
7711 fi
7712 INTL_MACOSX_LIBS=
7713 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7714 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7715 fi
7716
7717
7718
7719
7720
7721
7722 LIBINTL=
7723 LTLIBINTL=
7724 POSUB=
7725
7726 case " $gt_needs " in
7727 *" need-formatstring-macros "*) gt_api_version=3 ;;
7728 *" need-ngettext "*) gt_api_version=2 ;;
7729 *) gt_api_version=1 ;;
7730 esac
7731 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7732 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7733
7734 if test "$USE_NLS" = "yes"; then
7735 gt_use_preinstalled_gnugettext=no
7736
7737
7738 if test $gt_api_version -ge 3; then
7739 gt_revision_test_code='
7740 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7741 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7742 #endif
7743 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7744 '
7745 else
7746 gt_revision_test_code=
7747 fi
7748 if test $gt_api_version -ge 2; then
7749 gt_expression_test_code=' + * ngettext ("", "", 0)'
7750 else
7751 gt_expression_test_code=
7752 fi
7753
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7755 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7756 if eval \${$gt_func_gnugettext_libc+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761
7762 #include <libintl.h>
7763 $gt_revision_test_code
7764 extern int _nl_msg_cat_cntr;
7765 extern int *_nl_domain_bindings;
7766
7767 int
7768 main ()
7769 {
7770
7771 bindtextdomain ("", "");
7772 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7773
7774 ;
7775 return 0;
7776 }
7777 _ACEOF
7778 if ac_fn_c_try_link "$LINENO"; then :
7779 eval "$gt_func_gnugettext_libc=yes"
7780 else
7781 eval "$gt_func_gnugettext_libc=no"
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext conftest.$ac_ext
7785 fi
7786 eval ac_res=\$$gt_func_gnugettext_libc
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7788 $as_echo "$ac_res" >&6; }
7789
7790 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7791
7792
7793
7794
7795
7796 am_save_CPPFLAGS="$CPPFLAGS"
7797
7798 for element in $INCICONV; do
7799 haveit=
7800 for x in $CPPFLAGS; do
7801
7802 acl_save_prefix="$prefix"
7803 prefix="$acl_final_prefix"
7804 acl_save_exec_prefix="$exec_prefix"
7805 exec_prefix="$acl_final_exec_prefix"
7806 eval x=\"$x\"
7807 exec_prefix="$acl_save_exec_prefix"
7808 prefix="$acl_save_prefix"
7809
7810 if test "X$x" = "X$element"; then
7811 haveit=yes
7812 break
7813 fi
7814 done
7815 if test -z "$haveit"; then
7816 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7817 fi
7818 done
7819
7820
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7822 $as_echo_n "checking for iconv... " >&6; }
7823 if ${am_cv_func_iconv+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826
7827 am_cv_func_iconv="no, consider installing GNU libiconv"
7828 am_cv_lib_iconv=no
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 #include <stdlib.h>
7833 #include <iconv.h>
7834
7835 int
7836 main ()
7837 {
7838 iconv_t cd = iconv_open("","");
7839 iconv(cd,NULL,NULL,NULL,NULL);
7840 iconv_close(cd);
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_link "$LINENO"; then :
7846 am_cv_func_iconv=yes
7847 fi
7848 rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 if test "$am_cv_func_iconv" != yes; then
7851 am_save_LIBS="$LIBS"
7852 LIBS="$LIBS $LIBICONV"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 #include <stdlib.h>
7857 #include <iconv.h>
7858
7859 int
7860 main ()
7861 {
7862 iconv_t cd = iconv_open("","");
7863 iconv(cd,NULL,NULL,NULL,NULL);
7864 iconv_close(cd);
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 am_cv_lib_iconv=yes
7871 am_cv_func_iconv=yes
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875 LIBS="$am_save_LIBS"
7876 fi
7877
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7880 $as_echo "$am_cv_func_iconv" >&6; }
7881 if test "$am_cv_func_iconv" = yes; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7883 $as_echo_n "checking for working iconv... " >&6; }
7884 if ${am_cv_func_iconv_works+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887
7888 am_save_LIBS="$LIBS"
7889 if test $am_cv_lib_iconv = yes; then
7890 LIBS="$LIBS $LIBICONV"
7891 fi
7892 am_cv_func_iconv_works=no
7893 for ac_iconv_const in '' 'const'; do
7894 if test "$cross_compiling" = yes; then :
7895 case "$host_os" in
7896 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7897 *) am_cv_func_iconv_works="guessing yes" ;;
7898 esac
7899 else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902
7903 #include <iconv.h>
7904 #include <string.h>
7905
7906 #ifndef ICONV_CONST
7907 # define ICONV_CONST $ac_iconv_const
7908 #endif
7909
7910 int
7911 main ()
7912 {
7913 int result = 0;
7914 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7915 returns. */
7916 {
7917 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7918 if (cd_utf8_to_88591 != (iconv_t)(-1))
7919 {
7920 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7921 char buf[10];
7922 ICONV_CONST char *inptr = input;
7923 size_t inbytesleft = strlen (input);
7924 char *outptr = buf;
7925 size_t outbytesleft = sizeof (buf);
7926 size_t res = iconv (cd_utf8_to_88591,
7927 &inptr, &inbytesleft,
7928 &outptr, &outbytesleft);
7929 if (res == 0)
7930 result |= 1;
7931 iconv_close (cd_utf8_to_88591);
7932 }
7933 }
7934 /* Test against Solaris 10 bug: Failures are not distinguishable from
7935 successful returns. */
7936 {
7937 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7938 if (cd_ascii_to_88591 != (iconv_t)(-1))
7939 {
7940 static ICONV_CONST char input[] = "\263";
7941 char buf[10];
7942 ICONV_CONST char *inptr = input;
7943 size_t inbytesleft = strlen (input);
7944 char *outptr = buf;
7945 size_t outbytesleft = sizeof (buf);
7946 size_t res = iconv (cd_ascii_to_88591,
7947 &inptr, &inbytesleft,
7948 &outptr, &outbytesleft);
7949 if (res == 0)
7950 result |= 2;
7951 iconv_close (cd_ascii_to_88591);
7952 }
7953 }
7954 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7955 {
7956 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7957 if (cd_88591_to_utf8 != (iconv_t)(-1))
7958 {
7959 static ICONV_CONST char input[] = "\304";
7960 static char buf[2] = { (char)0xDE, (char)0xAD };
7961 ICONV_CONST char *inptr = input;
7962 size_t inbytesleft = 1;
7963 char *outptr = buf;
7964 size_t outbytesleft = 1;
7965 size_t res = iconv (cd_88591_to_utf8,
7966 &inptr, &inbytesleft,
7967 &outptr, &outbytesleft);
7968 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7969 result |= 4;
7970 iconv_close (cd_88591_to_utf8);
7971 }
7972 }
7973 #if 0 /* This bug could be worked around by the caller. */
7974 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7975 {
7976 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7977 if (cd_88591_to_utf8 != (iconv_t)(-1))
7978 {
7979 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7980 char buf[50];
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_88591_to_utf8,
7986 &inptr, &inbytesleft,
7987 &outptr, &outbytesleft);
7988 if ((int)res > 0)
7989 result |= 8;
7990 iconv_close (cd_88591_to_utf8);
7991 }
7992 }
7993 #endif
7994 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7995 provided. */
7996 if (/* Try standardized names. */
7997 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7998 /* Try IRIX, OSF/1 names. */
7999 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8000 /* Try AIX names. */
8001 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8002 /* Try HP-UX names. */
8003 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8004 result |= 16;
8005 return result;
8006
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_run "$LINENO"; then :
8012 am_cv_func_iconv_works=yes
8013 fi
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015 conftest.$ac_objext conftest.beam conftest.$ac_ext
8016 fi
8017
8018 test "$am_cv_func_iconv_works" = no || break
8019 done
8020 LIBS="$am_save_LIBS"
8021
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8024 $as_echo "$am_cv_func_iconv_works" >&6; }
8025 case "$am_cv_func_iconv_works" in
8026 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8027 *) am_func_iconv=yes ;;
8028 esac
8029 else
8030 am_func_iconv=no am_cv_lib_iconv=no
8031 fi
8032 if test "$am_func_iconv" = yes; then
8033
8034 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8035
8036 fi
8037 if test "$am_cv_lib_iconv" = yes; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8039 $as_echo_n "checking how to link with libiconv... " >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8041 $as_echo "$LIBICONV" >&6; }
8042 else
8043 CPPFLAGS="$am_save_CPPFLAGS"
8044 LIBICONV=
8045 LTLIBICONV=
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 use_additional=yes
8059
8060 acl_save_prefix="$prefix"
8061 prefix="$acl_final_prefix"
8062 acl_save_exec_prefix="$exec_prefix"
8063 exec_prefix="$acl_final_exec_prefix"
8064
8065 eval additional_includedir=\"$includedir\"
8066 eval additional_libdir=\"$libdir\"
8067
8068 exec_prefix="$acl_save_exec_prefix"
8069 prefix="$acl_save_prefix"
8070
8071
8072 # Check whether --with-libintl-prefix was given.
8073 if test "${with_libintl_prefix+set}" = set; then :
8074 withval=$with_libintl_prefix;
8075 if test "X$withval" = "Xno"; then
8076 use_additional=no
8077 else
8078 if test "X$withval" = "X"; then
8079
8080 acl_save_prefix="$prefix"
8081 prefix="$acl_final_prefix"
8082 acl_save_exec_prefix="$exec_prefix"
8083 exec_prefix="$acl_final_exec_prefix"
8084
8085 eval additional_includedir=\"$includedir\"
8086 eval additional_libdir=\"$libdir\"
8087
8088 exec_prefix="$acl_save_exec_prefix"
8089 prefix="$acl_save_prefix"
8090
8091 else
8092 additional_includedir="$withval/include"
8093 additional_libdir="$withval/$acl_libdirstem"
8094 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8095 && ! test -d "$withval/$acl_libdirstem"; then
8096 additional_libdir="$withval/$acl_libdirstem2"
8097 fi
8098 fi
8099 fi
8100
8101 fi
8102
8103 LIBINTL=
8104 LTLIBINTL=
8105 INCINTL=
8106 LIBINTL_PREFIX=
8107 HAVE_LIBINTL=
8108 rpathdirs=
8109 ltrpathdirs=
8110 names_already_handled=
8111 names_next_round='intl '
8112 while test -n "$names_next_round"; do
8113 names_this_round="$names_next_round"
8114 names_next_round=
8115 for name in $names_this_round; do
8116 already_handled=
8117 for n in $names_already_handled; do
8118 if test "$n" = "$name"; then
8119 already_handled=yes
8120 break
8121 fi
8122 done
8123 if test -z "$already_handled"; then
8124 names_already_handled="$names_already_handled $name"
8125 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8126 eval value=\"\$HAVE_LIB$uppername\"
8127 if test -n "$value"; then
8128 if test "$value" = yes; then
8129 eval value=\"\$LIB$uppername\"
8130 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8131 eval value=\"\$LTLIB$uppername\"
8132 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8133 else
8134 :
8135 fi
8136 else
8137 found_dir=
8138 found_la=
8139 found_so=
8140 found_a=
8141 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8142 if test -n "$acl_shlibext"; then
8143 shrext=".$acl_shlibext" # typically: shrext=.so
8144 else
8145 shrext=
8146 fi
8147 if test $use_additional = yes; then
8148 dir="$additional_libdir"
8149 if test -n "$acl_shlibext"; then
8150 if test -f "$dir/$libname$shrext"; then
8151 found_dir="$dir"
8152 found_so="$dir/$libname$shrext"
8153 else
8154 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8155 ver=`(cd "$dir" && \
8156 for f in "$libname$shrext".*; do echo "$f"; done \
8157 | sed -e "s,^$libname$shrext\\\\.,," \
8158 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8159 | sed 1q ) 2>/dev/null`
8160 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8161 found_dir="$dir"
8162 found_so="$dir/$libname$shrext.$ver"
8163 fi
8164 else
8165 eval library_names=\"$acl_library_names_spec\"
8166 for f in $library_names; do
8167 if test -f "$dir/$f"; then
8168 found_dir="$dir"
8169 found_so="$dir/$f"
8170 break
8171 fi
8172 done
8173 fi
8174 fi
8175 fi
8176 if test "X$found_dir" = "X"; then
8177 if test -f "$dir/$libname.$acl_libext"; then
8178 found_dir="$dir"
8179 found_a="$dir/$libname.$acl_libext"
8180 fi
8181 fi
8182 if test "X$found_dir" != "X"; then
8183 if test -f "$dir/$libname.la"; then
8184 found_la="$dir/$libname.la"
8185 fi
8186 fi
8187 fi
8188 if test "X$found_dir" = "X"; then
8189 for x in $LDFLAGS $LTLIBINTL; do
8190
8191 acl_save_prefix="$prefix"
8192 prefix="$acl_final_prefix"
8193 acl_save_exec_prefix="$exec_prefix"
8194 exec_prefix="$acl_final_exec_prefix"
8195 eval x=\"$x\"
8196 exec_prefix="$acl_save_exec_prefix"
8197 prefix="$acl_save_prefix"
8198
8199 case "$x" in
8200 -L*)
8201 dir=`echo "X$x" | sed -e 's/^X-L//'`
8202 if test -n "$acl_shlibext"; then
8203 if test -f "$dir/$libname$shrext"; then
8204 found_dir="$dir"
8205 found_so="$dir/$libname$shrext"
8206 else
8207 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8208 ver=`(cd "$dir" && \
8209 for f in "$libname$shrext".*; do echo "$f"; done \
8210 | sed -e "s,^$libname$shrext\\\\.,," \
8211 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8212 | sed 1q ) 2>/dev/null`
8213 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8214 found_dir="$dir"
8215 found_so="$dir/$libname$shrext.$ver"
8216 fi
8217 else
8218 eval library_names=\"$acl_library_names_spec\"
8219 for f in $library_names; do
8220 if test -f "$dir/$f"; then
8221 found_dir="$dir"
8222 found_so="$dir/$f"
8223 break
8224 fi
8225 done
8226 fi
8227 fi
8228 fi
8229 if test "X$found_dir" = "X"; then
8230 if test -f "$dir/$libname.$acl_libext"; then
8231 found_dir="$dir"
8232 found_a="$dir/$libname.$acl_libext"
8233 fi
8234 fi
8235 if test "X$found_dir" != "X"; then
8236 if test -f "$dir/$libname.la"; then
8237 found_la="$dir/$libname.la"
8238 fi
8239 fi
8240 ;;
8241 esac
8242 if test "X$found_dir" != "X"; then
8243 break
8244 fi
8245 done
8246 fi
8247 if test "X$found_dir" != "X"; then
8248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8249 if test "X$found_so" != "X"; then
8250 if test "$enable_rpath" = no \
8251 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8252 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8253 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8254 else
8255 haveit=
8256 for x in $ltrpathdirs; do
8257 if test "X$x" = "X$found_dir"; then
8258 haveit=yes
8259 break
8260 fi
8261 done
8262 if test -z "$haveit"; then
8263 ltrpathdirs="$ltrpathdirs $found_dir"
8264 fi
8265 if test "$acl_hardcode_direct" = yes; then
8266 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8267 else
8268 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8269 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8270 haveit=
8271 for x in $rpathdirs; do
8272 if test "X$x" = "X$found_dir"; then
8273 haveit=yes
8274 break
8275 fi
8276 done
8277 if test -z "$haveit"; then
8278 rpathdirs="$rpathdirs $found_dir"
8279 fi
8280 else
8281 haveit=
8282 for x in $LDFLAGS $LIBINTL; do
8283
8284 acl_save_prefix="$prefix"
8285 prefix="$acl_final_prefix"
8286 acl_save_exec_prefix="$exec_prefix"
8287 exec_prefix="$acl_final_exec_prefix"
8288 eval x=\"$x\"
8289 exec_prefix="$acl_save_exec_prefix"
8290 prefix="$acl_save_prefix"
8291
8292 if test "X$x" = "X-L$found_dir"; then
8293 haveit=yes
8294 break
8295 fi
8296 done
8297 if test -z "$haveit"; then
8298 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8299 fi
8300 if test "$acl_hardcode_minus_L" != no; then
8301 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8302 else
8303 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8304 fi
8305 fi
8306 fi
8307 fi
8308 else
8309 if test "X$found_a" != "X"; then
8310 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8311 else
8312 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8313 fi
8314 fi
8315 additional_includedir=
8316 case "$found_dir" in
8317 */$acl_libdirstem | */$acl_libdirstem/)
8318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8319 if test "$name" = 'intl'; then
8320 LIBINTL_PREFIX="$basedir"
8321 fi
8322 additional_includedir="$basedir/include"
8323 ;;
8324 */$acl_libdirstem2 | */$acl_libdirstem2/)
8325 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8326 if test "$name" = 'intl'; then
8327 LIBINTL_PREFIX="$basedir"
8328 fi
8329 additional_includedir="$basedir/include"
8330 ;;
8331 esac
8332 if test "X$additional_includedir" != "X"; then
8333 if test "X$additional_includedir" != "X/usr/include"; then
8334 haveit=
8335 if test "X$additional_includedir" = "X/usr/local/include"; then
8336 if test -n "$GCC"; then
8337 case $host_os in
8338 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8339 esac
8340 fi
8341 fi
8342 if test -z "$haveit"; then
8343 for x in $CPPFLAGS $INCINTL; do
8344
8345 acl_save_prefix="$prefix"
8346 prefix="$acl_final_prefix"
8347 acl_save_exec_prefix="$exec_prefix"
8348 exec_prefix="$acl_final_exec_prefix"
8349 eval x=\"$x\"
8350 exec_prefix="$acl_save_exec_prefix"
8351 prefix="$acl_save_prefix"
8352
8353 if test "X$x" = "X-I$additional_includedir"; then
8354 haveit=yes
8355 break
8356 fi
8357 done
8358 if test -z "$haveit"; then
8359 if test -d "$additional_includedir"; then
8360 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8361 fi
8362 fi
8363 fi
8364 fi
8365 fi
8366 if test -n "$found_la"; then
8367 save_libdir="$libdir"
8368 case "$found_la" in
8369 */* | *\\*) . "$found_la" ;;
8370 *) . "./$found_la" ;;
8371 esac
8372 libdir="$save_libdir"
8373 for dep in $dependency_libs; do
8374 case "$dep" in
8375 -L*)
8376 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8377 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8378 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8379 haveit=
8380 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8381 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8382 if test -n "$GCC"; then
8383 case $host_os in
8384 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8385 esac
8386 fi
8387 fi
8388 if test -z "$haveit"; then
8389 haveit=
8390 for x in $LDFLAGS $LIBINTL; do
8391
8392 acl_save_prefix="$prefix"
8393 prefix="$acl_final_prefix"
8394 acl_save_exec_prefix="$exec_prefix"
8395 exec_prefix="$acl_final_exec_prefix"
8396 eval x=\"$x\"
8397 exec_prefix="$acl_save_exec_prefix"
8398 prefix="$acl_save_prefix"
8399
8400 if test "X$x" = "X-L$additional_libdir"; then
8401 haveit=yes
8402 break
8403 fi
8404 done
8405 if test -z "$haveit"; then
8406 if test -d "$additional_libdir"; then
8407 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8408 fi
8409 fi
8410 haveit=
8411 for x in $LDFLAGS $LTLIBINTL; do
8412
8413 acl_save_prefix="$prefix"
8414 prefix="$acl_final_prefix"
8415 acl_save_exec_prefix="$exec_prefix"
8416 exec_prefix="$acl_final_exec_prefix"
8417 eval x=\"$x\"
8418 exec_prefix="$acl_save_exec_prefix"
8419 prefix="$acl_save_prefix"
8420
8421 if test "X$x" = "X-L$additional_libdir"; then
8422 haveit=yes
8423 break
8424 fi
8425 done
8426 if test -z "$haveit"; then
8427 if test -d "$additional_libdir"; then
8428 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8429 fi
8430 fi
8431 fi
8432 fi
8433 ;;
8434 -R*)
8435 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8436 if test "$enable_rpath" != no; then
8437 haveit=
8438 for x in $rpathdirs; do
8439 if test "X$x" = "X$dir"; then
8440 haveit=yes
8441 break
8442 fi
8443 done
8444 if test -z "$haveit"; then
8445 rpathdirs="$rpathdirs $dir"
8446 fi
8447 haveit=
8448 for x in $ltrpathdirs; do
8449 if test "X$x" = "X$dir"; then
8450 haveit=yes
8451 break
8452 fi
8453 done
8454 if test -z "$haveit"; then
8455 ltrpathdirs="$ltrpathdirs $dir"
8456 fi
8457 fi
8458 ;;
8459 -l*)
8460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8461 ;;
8462 *.la)
8463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8464 ;;
8465 *)
8466 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8468 ;;
8469 esac
8470 done
8471 fi
8472 else
8473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8475 fi
8476 fi
8477 fi
8478 done
8479 done
8480 if test "X$rpathdirs" != "X"; then
8481 if test -n "$acl_hardcode_libdir_separator"; then
8482 alldirs=
8483 for found_dir in $rpathdirs; do
8484 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8485 done
8486 acl_save_libdir="$libdir"
8487 libdir="$alldirs"
8488 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8489 libdir="$acl_save_libdir"
8490 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8491 else
8492 for found_dir in $rpathdirs; do
8493 acl_save_libdir="$libdir"
8494 libdir="$found_dir"
8495 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8496 libdir="$acl_save_libdir"
8497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8498 done
8499 fi
8500 fi
8501 if test "X$ltrpathdirs" != "X"; then
8502 for found_dir in $ltrpathdirs; do
8503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8504 done
8505 fi
8506
8507
8508
8509
8510
8511
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8513 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8514 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 gt_save_CPPFLAGS="$CPPFLAGS"
8518 CPPFLAGS="$CPPFLAGS $INCINTL"
8519 gt_save_LIBS="$LIBS"
8520 LIBS="$LIBS $LIBINTL"
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523
8524 #include <libintl.h>
8525 $gt_revision_test_code
8526 extern int _nl_msg_cat_cntr;
8527 extern
8528 #ifdef __cplusplus
8529 "C"
8530 #endif
8531 const char *_nl_expand_alias (const char *);
8532
8533 int
8534 main ()
8535 {
8536
8537 bindtextdomain ("", "");
8538 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 eval "$gt_func_gnugettext_libintl=yes"
8546 else
8547 eval "$gt_func_gnugettext_libintl=no"
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8552 LIBS="$LIBS $LIBICONV"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555
8556 #include <libintl.h>
8557 $gt_revision_test_code
8558 extern int _nl_msg_cat_cntr;
8559 extern
8560 #ifdef __cplusplus
8561 "C"
8562 #endif
8563 const char *_nl_expand_alias (const char *);
8564
8565 int
8566 main ()
8567 {
8568
8569 bindtextdomain ("", "");
8570 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8571
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_link "$LINENO"; then :
8577 LIBINTL="$LIBINTL $LIBICONV"
8578 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8579 eval "$gt_func_gnugettext_libintl=yes"
8580
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 fi
8585 CPPFLAGS="$gt_save_CPPFLAGS"
8586 LIBS="$gt_save_LIBS"
8587 fi
8588 eval ac_res=\$$gt_func_gnugettext_libintl
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8590 $as_echo "$ac_res" >&6; }
8591 fi
8592
8593 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8594 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8595 && test "$PACKAGE" != gettext-runtime \
8596 && test "$PACKAGE" != gettext-tools; }; then
8597 gt_use_preinstalled_gnugettext=yes
8598 else
8599 LIBINTL=
8600 LTLIBINTL=
8601 INCINTL=
8602 fi
8603
8604
8605
8606 if test -n "$INTL_MACOSX_LIBS"; then
8607 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8608 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8609 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8610 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8611 fi
8612 fi
8613
8614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8616
8617 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8618
8619 else
8620 USE_NLS=no
8621 fi
8622 fi
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8625 $as_echo_n "checking whether to use NLS... " >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8627 $as_echo "$USE_NLS" >&6; }
8628 if test "$USE_NLS" = "yes"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8630 $as_echo_n "checking where the gettext function comes from... " >&6; }
8631 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8632 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8633 gt_source="external libintl"
8634 else
8635 gt_source="libc"
8636 fi
8637 else
8638 gt_source="included intl directory"
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8641 $as_echo "$gt_source" >&6; }
8642 fi
8643
8644 if test "$USE_NLS" = "yes"; then
8645
8646 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8647 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8649 $as_echo_n "checking how to link with libintl... " >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8651 $as_echo "$LIBINTL" >&6; }
8652
8653 for element in $INCINTL; do
8654 haveit=
8655 for x in $CPPFLAGS; do
8656
8657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
8661 eval x=\"$x\"
8662 exec_prefix="$acl_save_exec_prefix"
8663 prefix="$acl_save_prefix"
8664
8665 if test "X$x" = "X$element"; then
8666 haveit=yes
8667 break
8668 fi
8669 done
8670 if test -z "$haveit"; then
8671 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8672 fi
8673 done
8674
8675 fi
8676
8677
8678 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8679
8680
8681 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8682
8683 fi
8684
8685 POSUB=po
8686 fi
8687
8688
8689
8690 INTLLIBS="$LIBINTL"
8691
8692
8693
8694
8695
8696
8697
8698
8699 if test "x$GMSGFMT" = "x:"; then
8700 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
8701 fi
8702
8703 # We want the 'PYTHON' varible to be python version 2. We also want
8704 # our custom 'PYTHON3' varible to be python version 3.
8705 #
8706 # Note that the python2/python3 code was inspired by code in the
8707 # 'abrt' configure:
8708 # <https://github.com/abrt/abrt/blob/master/configure.ac>
8709 #
8710 # First, figure out what version of python is in the executable named
8711 # 'python'. On most systems that is python version 2, but on arch
8712 # linux that is python version 3.
8713 # Extract the first word of "python", so it can be a program name with args.
8714 set dummy python; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 case $PYTHON_UNKNOWN in
8721 [\\/]* | ?:[\\/]*)
8722 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
8723 ;;
8724 *)
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8727 do
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8735 fi
8736 done
8737 done
8738 IFS=$as_save_IFS
8739
8740 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
8741 ;;
8742 esac
8743 fi
8744 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
8745 if test -n "$PYTHON_UNKNOWN"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
8747 $as_echo "$PYTHON_UNKNOWN" >&6; }
8748 else
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8751 fi
8752
8753
8754 if test "x$PYTHON_UNKNOWN" != "xno"; then
8755 # OK, we found 'python'. What version is it?
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
8757 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
8758 if ${ac_cv_python_unknown_version+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
8764 $as_echo "$ac_cv_python_unknown_version" >&6; }
8765 fi
8766
8767 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
8768 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
8769 # that the m4_define happens when autoconf is run, but the
8770 # FIRST_PYTHON_INTERPRETER variable expansion will happen when the
8771 # user runs configure.
8772 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
8773 FIRST_PYTHON_INTERPRETER=python
8774 else
8775 FIRST_PYTHON_INTERPRETER=python2
8776 fi
8777
8778
8779 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
8780 # version 2 only).
8781
8782
8783
8784
8785
8786
8787 if test -n "$PYTHON"; then
8788 # If the user set $PYTHON, use it and don't search something else.
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
8790 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
8791 prog="import sys
8792 # split strings by '.' and convert to numeric. Append some zeros
8793 # because we need at least 4 digits for the hex conversion.
8794 # map returns an iterator in Python 3.0 and a list in 2.x
8795 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8796 minverhex = 0
8797 # xrange is not present in Python 3.0 and range returns an iterator
8798 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8799 sys.exit(sys.hexversion < minverhex)"
8800 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8801 ($PYTHON -c "$prog") >&5 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806 $as_echo "yes" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
8811 fi
8812 am_display_PYTHON=$PYTHON
8813 else
8814 # Otherwise, try each interpreter until we find one that satisfies
8815 # VERSION.
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
8817 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
8818 if ${am_cv_pathless_PYTHON+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821
8822 for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do
8823 test "$am_cv_pathless_PYTHON" = none && break
8824 prog="import sys
8825 # split strings by '.' and convert to numeric. Append some zeros
8826 # because we need at least 4 digits for the hex conversion.
8827 # map returns an iterator in Python 3.0 and a list in 2.x
8828 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
8829 minverhex = 0
8830 # xrange is not present in Python 3.0 and range returns an iterator
8831 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
8832 sys.exit(sys.hexversion < minverhex)"
8833 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8834 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; then :
8838 break
8839 fi
8840 done
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
8843 $as_echo "$am_cv_pathless_PYTHON" >&6; }
8844 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8845 if test "$am_cv_pathless_PYTHON" = none; then
8846 PYTHON=:
8847 else
8848 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8849 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_PYTHON+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 case $PYTHON in
8856 [\\/]* | ?:[\\/]*)
8857 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8858 ;;
8859 *)
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8870 fi
8871 done
8872 done
8873 IFS=$as_save_IFS
8874
8875 ;;
8876 esac
8877 fi
8878 PYTHON=$ac_cv_path_PYTHON
8879 if test -n "$PYTHON"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8881 $as_echo "$PYTHON" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886
8887
8888 fi
8889 am_display_PYTHON=$am_cv_pathless_PYTHON
8890 fi
8891
8892
8893 if test "$PYTHON" = :; then
8894 :
8895 else
8896
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
8899 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
8900 if ${am_cv_python_version+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
8906 $as_echo "$am_cv_python_version" >&6; }
8907 PYTHON_VERSION=$am_cv_python_version
8908
8909
8910
8911 PYTHON_PREFIX='${prefix}'
8912
8913 PYTHON_EXEC_PREFIX='${exec_prefix}'
8914
8915
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
8918 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
8919 if ${am_cv_python_platform+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
8925 $as_echo "$am_cv_python_platform" >&6; }
8926 PYTHON_PLATFORM=$am_cv_python_platform
8927
8928
8929 # Just factor out some code duplication.
8930 am_python_setup_sysconfig="\
8931 import sys
8932 # Prefer sysconfig over distutils.sysconfig, for better compatibility
8933 # with python 3.x. See automake bug#10227.
8934 try:
8935 import sysconfig
8936 except ImportError:
8937 can_use_sysconfig = 0
8938 else:
8939 can_use_sysconfig = 1
8940 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
8941 # <https://github.com/pypa/virtualenv/issues/118>
8942 try:
8943 from platform import python_implementation
8944 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
8945 can_use_sysconfig = 0
8946 except ImportError:
8947 pass"
8948
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
8951 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
8952 if ${am_cv_python_pythondir+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 if test "x$prefix" = xNONE
8956 then
8957 am_py_prefix=$ac_default_prefix
8958 else
8959 am_py_prefix=$prefix
8960 fi
8961 am_cv_python_pythondir=`$PYTHON -c "
8962 $am_python_setup_sysconfig
8963 if can_use_sysconfig:
8964 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
8965 else:
8966 from distutils import sysconfig
8967 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
8968 sys.stdout.write(sitedir)"`
8969 case $am_cv_python_pythondir in
8970 $am_py_prefix*)
8971 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
8972 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
8973 ;;
8974 *)
8975 case $am_py_prefix in
8976 /usr|/System*) ;;
8977 *)
8978 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
8979 ;;
8980 esac
8981 ;;
8982 esac
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
8986 $as_echo "$am_cv_python_pythondir" >&6; }
8987 pythondir=$am_cv_python_pythondir
8988
8989
8990
8991 pkgpythondir=\${pythondir}/$PACKAGE
8992
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
8995 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
8996 if ${am_cv_python_pyexecdir+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 if test "x$exec_prefix" = xNONE
9000 then
9001 am_py_exec_prefix=$am_py_prefix
9002 else
9003 am_py_exec_prefix=$exec_prefix
9004 fi
9005 am_cv_python_pyexecdir=`$PYTHON -c "
9006 $am_python_setup_sysconfig
9007 if can_use_sysconfig:
9008 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9009 else:
9010 from distutils import sysconfig
9011 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9012 sys.stdout.write(sitedir)"`
9013 case $am_cv_python_pyexecdir in
9014 $am_py_exec_prefix*)
9015 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9016 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9017 ;;
9018 *)
9019 case $am_py_exec_prefix in
9020 /usr|/System*) ;;
9021 *)
9022 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9023 ;;
9024 esac
9025 ;;
9026 esac
9027
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9030 $as_echo "$am_cv_python_pyexecdir" >&6; }
9031 pyexecdir=$am_cv_python_pyexecdir
9032
9033
9034
9035 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9036
9037
9038
9039 fi
9040
9041
9042 python_basename=$(basename "$PYTHON")
9043
9044 cat >>confdefs.h <<_ACEOF
9045 #define PYTHON_BASENAME "${python_basename}"
9046 _ACEOF
9047
9048 # AM_PATH_PYTHON defines 'pyexecdir'. Make sure the python and
9049 # pyexecdir variables get sent down to the subconfigure in the
9050 # testsuite directory.
9051 as_fn_append ac_configure_args " python='$PYTHON' pyexecdir='$pyexecdir'"
9052
9053 # Now let's try to find python version 3.
9054 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then
9055 # Extract the first word of "python", so it can be a program name with args.
9056 set dummy python; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_path_PYTHON3+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 case $PYTHON3 in
9063 [\\/]* | ?:[\\/]*)
9064 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9065 ;;
9066 *)
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9069 do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9077 fi
9078 done
9079 done
9080 IFS=$as_save_IFS
9081
9082 ;;
9083 esac
9084 fi
9085 PYTHON3=$ac_cv_path_PYTHON3
9086 if test -n "$PYTHON3"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9088 $as_echo "$PYTHON3" >&6; }
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093
9094
9095 else
9096 for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9097 do
9098 # Extract the first word of "$ac_prog", so it can be a program name with args.
9099 set dummy $ac_prog; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if ${ac_cv_path_PYTHON3+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 case $PYTHON3 in
9106 [\\/]* | ?:[\\/]*)
9107 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9108 ;;
9109 *)
9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111 for as_dir in $PATH
9112 do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121 done
9122 done
9123 IFS=$as_save_IFS
9124
9125 ;;
9126 esac
9127 fi
9128 PYTHON3=$ac_cv_path_PYTHON3
9129 if test -n "$PYTHON3"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9131 $as_echo "$PYTHON3" >&6; }
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136
9137
9138 test -n "$PYTHON3" && break
9139 done
9140
9141 fi
9142 python3_basename=$(basename "$PYTHON3")
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define PYTHON3_BASENAME "${python3_basename}"
9146 _ACEOF
9147
9148
9149 # If we found python version 3, set up the other variables for python
9150 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9151 if test -n "$PYTHON3"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9153 $as_echo_n "checking for python3 version... " >&6; }
9154 if ${ac_cv_python3_version+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9160 $as_echo "$ac_cv_python3_version" >&6; }
9161 PYTHON3_VERSION=$ac_cv_python3_version
9162
9163 PYTHON3_PREFIX='${prefix}'
9164
9165 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9168 $as_echo_n "checking for python3 platform... " >&6; }
9169 if ${ac_cv_python3_platform+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9173 fi
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9175 $as_echo "$ac_cv_python3_platform" >&6; }
9176 PYTHON3_PLATFORM=$ac_cv_python3_platform
9177
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9180 $as_echo_n "checking for python3 script directory... " >&6; }
9181 if ${ac_cv_python3_dir+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9187 $as_echo "$ac_cv_python3_dir" >&6; }
9188 python3dir=$ac_cv_python3_dir
9189
9190
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9192 $as_echo_n "checking for python3 extension module directory... " >&6; }
9193 if ${ac_cv_py3execdir+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9199 $as_echo "$ac_cv_py3execdir" >&6; }
9200 py3execdir=$ac_cv_py3execdir
9201
9202
9203 # Make sure the python3 and py3execdir variables get sent down to
9204 # the subconfigure in the testsuite directory.
9205 as_fn_append ac_configure_args " python3='$PYTHON3' py3execdir='$ac_cv_py3execdir'"
9206 fi
9207
9208 if test "${enable_prologues+set}" != set; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9210 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9211 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9212 echo ' yes '
9213 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9214 enable_prologues=yes
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9216 $as_echo "yes" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221 fi
9222 # Check whether --enable-prologues was given.
9223 if test "${enable_prologues+set}" = set; then :
9224 enableval=$enable_prologues;
9225 if test "$enable_prologues" = yes; then
9226
9227 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9228
9229 fi
9230 fi
9231
9232
9233
9234 if test "${enable_sdt_probes+set}" != set; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9236 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9237 if { echo '#if __GNUC__ < 4'
9238 echo ' yes '
9239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9240 enable_sdt_probes=no
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9245 $as_echo "yes" >&6; }
9246 fi
9247 fi
9248 # Check whether --enable-sdt-probes was given.
9249 if test "${enable_sdt_probes+set}" = set; then :
9250 enableval=$enable_sdt_probes;
9251 fi
9252
9253 if test "x$enable_sdt_probes" != xno; then :
9254
9255
9256 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9257
9258
9259 fi
9260
9261
9262 ax_cxx_compile_cxx11_required=false
9263 ac_ext=cpp
9264 ac_cpp='$CXXCPP $CPPFLAGS'
9265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9268 ac_success=no
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9270 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9271 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276
9277
9278 // If the compiler admits that it is not ready for C++11, why torture it?
9279 // Hopefully, this will speed up the test.
9280
9281 #ifndef __cplusplus
9282
9283 #error "This is not a C++ compiler"
9284
9285 #elif __cplusplus < 201103L
9286
9287 #error "This is not a C++11 compiler"
9288
9289 #else
9290
9291 namespace cxx11
9292 {
9293
9294 namespace test_static_assert
9295 {
9296
9297 template <typename T>
9298 struct check
9299 {
9300 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9301 };
9302
9303 }
9304
9305 namespace test_final_override
9306 {
9307
9308 struct Base
9309 {
9310 virtual void f() {}
9311 };
9312
9313 struct Derived : public Base
9314 {
9315 virtual void f() override {}
9316 };
9317
9318 }
9319
9320 namespace test_double_right_angle_brackets
9321 {
9322
9323 template < typename T >
9324 struct check {};
9325
9326 typedef check<void> single_type;
9327 typedef check<check<void>> double_type;
9328 typedef check<check<check<void>>> triple_type;
9329 typedef check<check<check<check<void>>>> quadruple_type;
9330
9331 }
9332
9333 namespace test_decltype
9334 {
9335
9336 int
9337 f()
9338 {
9339 int a = 1;
9340 decltype(a) b = 2;
9341 return a + b;
9342 }
9343
9344 }
9345
9346 namespace test_type_deduction
9347 {
9348
9349 template < typename T1, typename T2 >
9350 struct is_same
9351 {
9352 static const bool value = false;
9353 };
9354
9355 template < typename T >
9356 struct is_same<T, T>
9357 {
9358 static const bool value = true;
9359 };
9360
9361 template < typename T1, typename T2 >
9362 auto
9363 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9364 {
9365 return a1 + a2;
9366 }
9367
9368 int
9369 test(const int c, volatile int v)
9370 {
9371 static_assert(is_same<int, decltype(0)>::value == true, "");
9372 static_assert(is_same<int, decltype(c)>::value == false, "");
9373 static_assert(is_same<int, decltype(v)>::value == false, "");
9374 auto ac = c;
9375 auto av = v;
9376 auto sumi = ac + av + 'x';
9377 auto sumf = ac + av + 1.0;
9378 static_assert(is_same<int, decltype(ac)>::value == true, "");
9379 static_assert(is_same<int, decltype(av)>::value == true, "");
9380 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9381 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9382 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9383 return (sumf > 0.0) ? sumi : add(c, v);
9384 }
9385
9386 }
9387
9388 namespace test_noexcept
9389 {
9390
9391 int f() { return 0; }
9392 int g() noexcept { return 0; }
9393
9394 static_assert(noexcept(f()) == false, "");
9395 static_assert(noexcept(g()) == true, "");
9396
9397 }
9398
9399 namespace test_constexpr
9400 {
9401
9402 template < typename CharT >
9403 unsigned long constexpr
9404 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9405 {
9406 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9407 }
9408
9409 template < typename CharT >
9410 unsigned long constexpr
9411 strlen_c(const CharT *const s) noexcept
9412 {
9413 return strlen_c_r(s, 0UL);
9414 }
9415
9416 static_assert(strlen_c("") == 0UL, "");
9417 static_assert(strlen_c("1") == 1UL, "");
9418 static_assert(strlen_c("example") == 7UL, "");
9419 static_assert(strlen_c("another\0example") == 7UL, "");
9420
9421 }
9422
9423 namespace test_rvalue_references
9424 {
9425
9426 template < int N >
9427 struct answer
9428 {
9429 static constexpr int value = N;
9430 };
9431
9432 answer<1> f(int&) { return answer<1>(); }
9433 answer<2> f(const int&) { return answer<2>(); }
9434 answer<3> f(int&&) { return answer<3>(); }
9435
9436 void
9437 test()
9438 {
9439 int i = 0;
9440 const int c = 0;
9441 static_assert(decltype(f(i))::value == 1, "");
9442 static_assert(decltype(f(c))::value == 2, "");
9443 static_assert(decltype(f(0))::value == 3, "");
9444 }
9445
9446 }
9447
9448 namespace test_uniform_initialization
9449 {
9450
9451 struct test
9452 {
9453 static const int zero {};
9454 static const int one {1};
9455 };
9456
9457 static_assert(test::zero == 0, "");
9458 static_assert(test::one == 1, "");
9459
9460 }
9461
9462 namespace test_lambdas
9463 {
9464
9465 void
9466 test1()
9467 {
9468 auto lambda1 = [](){};
9469 auto lambda2 = lambda1;
9470 lambda1();
9471 lambda2();
9472 }
9473
9474 int
9475 test2()
9476 {
9477 auto a = [](int i, int j){ return i + j; }(1, 2);
9478 auto b = []() -> int { return '0'; }();
9479 auto c = [=](){ return a + b; }();
9480 auto d = [&](){ return c; }();
9481 auto e = [a, &b](int x) mutable {
9482 const auto identity = [](int y){ return y; };
9483 for (auto i = 0; i < a; ++i)
9484 a += b--;
9485 return x + identity(a + b);
9486 }(0);
9487 return a + b + c + d + e;
9488 }
9489
9490 int
9491 test3()
9492 {
9493 const auto nullary = [](){ return 0; };
9494 const auto unary = [](int x){ return x; };
9495 using nullary_t = decltype(nullary);
9496 using unary_t = decltype(unary);
9497 const auto higher1st = [](nullary_t f){ return f(); };
9498 const auto higher2nd = [unary](nullary_t f1){
9499 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9500 };
9501 return higher1st(nullary) + higher2nd(nullary)(unary);
9502 }
9503
9504 }
9505
9506 namespace test_variadic_templates
9507 {
9508
9509 template <int...>
9510 struct sum;
9511
9512 template <int N0, int... N1toN>
9513 struct sum<N0, N1toN...>
9514 {
9515 static constexpr auto value = N0 + sum<N1toN...>::value;
9516 };
9517
9518 template <>
9519 struct sum<>
9520 {
9521 static constexpr auto value = 0;
9522 };
9523
9524 static_assert(sum<>::value == 0, "");
9525 static_assert(sum<1>::value == 1, "");
9526 static_assert(sum<23>::value == 23, "");
9527 static_assert(sum<1, 2>::value == 3, "");
9528 static_assert(sum<5, 5, 11>::value == 21, "");
9529 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9530
9531 }
9532
9533 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9534 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9535 // because of this.
9536 namespace test_template_alias_sfinae
9537 {
9538
9539 struct foo {};
9540
9541 template<typename T>
9542 using member = typename T::member_type;
9543
9544 template<typename T>
9545 void func(...) {}
9546
9547 template<typename T>
9548 void func(member<T>*) {}
9549
9550 void test();
9551
9552 void test() { func<foo>(0); }
9553
9554 }
9555
9556 } // namespace cxx11
9557
9558 #endif // __cplusplus >= 201103L
9559
9560
9561
9562 _ACEOF
9563 if ac_fn_cxx_try_compile "$LINENO"; then :
9564 ax_cv_cxx_compile_cxx11=yes
9565 else
9566 ax_cv_cxx_compile_cxx11=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
9571 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
9572 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
9573 ac_success=yes
9574 fi
9575
9576
9577
9578 if test x$ac_success = xno; then
9579 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
9580 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
9582 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
9583 if eval \${$cachevar+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 ac_save_CXX="$CXX"
9587 CXX="$CXX $switch"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590
9591
9592 // If the compiler admits that it is not ready for C++11, why torture it?
9593 // Hopefully, this will speed up the test.
9594
9595 #ifndef __cplusplus
9596
9597 #error "This is not a C++ compiler"
9598
9599 #elif __cplusplus < 201103L
9600
9601 #error "This is not a C++11 compiler"
9602
9603 #else
9604
9605 namespace cxx11
9606 {
9607
9608 namespace test_static_assert
9609 {
9610
9611 template <typename T>
9612 struct check
9613 {
9614 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9615 };
9616
9617 }
9618
9619 namespace test_final_override
9620 {
9621
9622 struct Base
9623 {
9624 virtual void f() {}
9625 };
9626
9627 struct Derived : public Base
9628 {
9629 virtual void f() override {}
9630 };
9631
9632 }
9633
9634 namespace test_double_right_angle_brackets
9635 {
9636
9637 template < typename T >
9638 struct check {};
9639
9640 typedef check<void> single_type;
9641 typedef check<check<void>> double_type;
9642 typedef check<check<check<void>>> triple_type;
9643 typedef check<check<check<check<void>>>> quadruple_type;
9644
9645 }
9646
9647 namespace test_decltype
9648 {
9649
9650 int
9651 f()
9652 {
9653 int a = 1;
9654 decltype(a) b = 2;
9655 return a + b;
9656 }
9657
9658 }
9659
9660 namespace test_type_deduction
9661 {
9662
9663 template < typename T1, typename T2 >
9664 struct is_same
9665 {
9666 static const bool value = false;
9667 };
9668
9669 template < typename T >
9670 struct is_same<T, T>
9671 {
9672 static const bool value = true;
9673 };
9674
9675 template < typename T1, typename T2 >
9676 auto
9677 add(T1 a1, T2 a2) -> decltype(a1 + a2)
9678 {
9679 return a1 + a2;
9680 }
9681
9682 int
9683 test(const int c, volatile int v)
9684 {
9685 static_assert(is_same<int, decltype(0)>::value == true, "");
9686 static_assert(is_same<int, decltype(c)>::value == false, "");
9687 static_assert(is_same<int, decltype(v)>::value == false, "");
9688 auto ac = c;
9689 auto av = v;
9690 auto sumi = ac + av + 'x';
9691 auto sumf = ac + av + 1.0;
9692 static_assert(is_same<int, decltype(ac)>::value == true, "");
9693 static_assert(is_same<int, decltype(av)>::value == true, "");
9694 static_assert(is_same<int, decltype(sumi)>::value == true, "");
9695 static_assert(is_same<int, decltype(sumf)>::value == false, "");
9696 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
9697 return (sumf > 0.0) ? sumi : add(c, v);
9698 }
9699
9700 }
9701
9702 namespace test_noexcept
9703 {
9704
9705 int f() { return 0; }
9706 int g() noexcept { return 0; }
9707
9708 static_assert(noexcept(f()) == false, "");
9709 static_assert(noexcept(g()) == true, "");
9710
9711 }
9712
9713 namespace test_constexpr
9714 {
9715
9716 template < typename CharT >
9717 unsigned long constexpr
9718 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
9719 {
9720 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
9721 }
9722
9723 template < typename CharT >
9724 unsigned long constexpr
9725 strlen_c(const CharT *const s) noexcept
9726 {
9727 return strlen_c_r(s, 0UL);
9728 }
9729
9730 static_assert(strlen_c("") == 0UL, "");
9731 static_assert(strlen_c("1") == 1UL, "");
9732 static_assert(strlen_c("example") == 7UL, "");
9733 static_assert(strlen_c("another\0example") == 7UL, "");
9734
9735 }
9736
9737 namespace test_rvalue_references
9738 {
9739
9740 template < int N >
9741 struct answer
9742 {
9743 static constexpr int value = N;
9744 };
9745
9746 answer<1> f(int&) { return answer<1>(); }
9747 answer<2> f(const int&) { return answer<2>(); }
9748 answer<3> f(int&&) { return answer<3>(); }
9749
9750 void
9751 test()
9752 {
9753 int i = 0;
9754 const int c = 0;
9755 static_assert(decltype(f(i))::value == 1, "");
9756 static_assert(decltype(f(c))::value == 2, "");
9757 static_assert(decltype(f(0))::value == 3, "");
9758 }
9759
9760 }
9761
9762 namespace test_uniform_initialization
9763 {
9764
9765 struct test
9766 {
9767 static const int zero {};
9768 static const int one {1};
9769 };
9770
9771 static_assert(test::zero == 0, "");
9772 static_assert(test::one == 1, "");
9773
9774 }
9775
9776 namespace test_lambdas
9777 {
9778
9779 void
9780 test1()
9781 {
9782 auto lambda1 = [](){};
9783 auto lambda2 = lambda1;
9784 lambda1();
9785 lambda2();
9786 }
9787
9788 int
9789 test2()
9790 {
9791 auto a = [](int i, int j){ return i + j; }(1, 2);
9792 auto b = []() -> int { return '0'; }();
9793 auto c = [=](){ return a + b; }();
9794 auto d = [&](){ return c; }();
9795 auto e = [a, &b](int x) mutable {
9796 const auto identity = [](int y){ return y; };
9797 for (auto i = 0; i < a; ++i)
9798 a += b--;
9799 return x + identity(a + b);
9800 }(0);
9801 return a + b + c + d + e;
9802 }
9803
9804 int
9805 test3()
9806 {
9807 const auto nullary = [](){ return 0; };
9808 const auto unary = [](int x){ return x; };
9809 using nullary_t = decltype(nullary);
9810 using unary_t = decltype(unary);
9811 const auto higher1st = [](nullary_t f){ return f(); };
9812 const auto higher2nd = [unary](nullary_t f1){
9813 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
9814 };
9815 return higher1st(nullary) + higher2nd(nullary)(unary);
9816 }
9817
9818 }
9819
9820 namespace test_variadic_templates
9821 {
9822
9823 template <int...>
9824 struct sum;
9825
9826 template <int N0, int... N1toN>
9827 struct sum<N0, N1toN...>
9828 {
9829 static constexpr auto value = N0 + sum<N1toN...>::value;
9830 };
9831
9832 template <>
9833 struct sum<>
9834 {
9835 static constexpr auto value = 0;
9836 };
9837
9838 static_assert(sum<>::value == 0, "");
9839 static_assert(sum<1>::value == 1, "");
9840 static_assert(sum<23>::value == 23, "");
9841 static_assert(sum<1, 2>::value == 3, "");
9842 static_assert(sum<5, 5, 11>::value == 21, "");
9843 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
9844
9845 }
9846
9847 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
9848 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
9849 // because of this.
9850 namespace test_template_alias_sfinae
9851 {
9852
9853 struct foo {};
9854
9855 template<typename T>
9856 using member = typename T::member_type;
9857
9858 template<typename T>
9859 void func(...) {}
9860
9861 template<typename T>
9862 void func(member<T>*) {}
9863
9864 void test();
9865
9866 void test() { func<foo>(0); }
9867
9868 }
9869
9870 } // namespace cxx11
9871
9872 #endif // __cplusplus >= 201103L
9873
9874
9875
9876 _ACEOF
9877 if ac_fn_cxx_try_compile "$LINENO"; then :
9878 eval $cachevar=yes
9879 else
9880 eval $cachevar=no
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 CXX="$ac_save_CXX"
9884 fi
9885 eval ac_res=\$$cachevar
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9887 $as_echo "$ac_res" >&6; }
9888 if eval test x\$$cachevar = xyes; then
9889 CXX="$CXX $switch"
9890 ac_success=yes
9891 break
9892 fi
9893 done
9894 fi
9895 ac_ext=c
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9900
9901 if test x$ax_cxx_compile_cxx11_required = xtrue; then
9902 if test x$ac_success = xno; then
9903 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
9904 fi
9905 fi
9906 if test x$ac_success = xno; then
9907 HAVE_CXX11=0
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
9909 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
9910 else
9911 HAVE_CXX11=1
9912
9913 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
9914
9915 fi
9916
9917
9918 if test "x$HAVE_CXX11" != x1; then :
9919
9920 ac_ext=cpp
9921 ac_cpp='$CXXCPP $CPPFLAGS'
9922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
9927 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
9928 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931
9932 ax_check_save_flags=$CXXFLAGS
9933 CXXFLAGS="$CXXFLAGS -std=c++0x"
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936
9937 int
9938 main ()
9939 {
9940
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_cxx_try_compile "$LINENO"; then :
9946 ax_cv_check_cxxflags___std_cpp0x=yes
9947 else
9948 ax_cv_check_cxxflags___std_cpp0x=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 CXXFLAGS=$ax_check_save_flags
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
9954 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
9955 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
9958 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
9959 CXX="$CXX -std=c++0x"
9960 HAVE_CXX11=1
9961
9962 else
9963
9964 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
9965
9966 fi
9967
9968 ac_ext=c
9969 ac_cpp='$CPP $CPPFLAGS'
9970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9973
9974
9975 fi
9976
9977 # Check whether --enable-ssp was given.
9978 if test "${enable_ssp+set}" = set; then :
9979 enableval=$enable_ssp;
9980 fi
9981
9982 if test "x$enable_ssp" != xno; then :
9983
9984 save_CFLAGS="$CFLAGS"
9985 save_CXXFLAGS="$CXXFLAGS"
9986 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9987 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int something ();
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"; then :
9993
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
9995 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
9996 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9997 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9998 else
9999
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10001 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10002 CFLAGS="$save_CFLAGS"
10003 CXXFLAGS="$save_CXXFLAGS"
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 fi
10007
10008
10009
10010
10011 # Compiling without fPIE by default (see PR 9922)
10012 # Check whether --enable-pie was given.
10013 if test "${enable_pie+set}" = set; then :
10014 enableval=$enable_pie;
10015 fi
10016
10017 if test "x$enable_pie" == xyes; then :
10018
10019 PIECFLAGS='-fPIE'
10020 PIECXXFLAGS='-fPIE'
10021 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10022 save_CFLAGS="$CFLAGS"
10023 save_CXXFLAGS="$CXXFLAGS"
10024 save_LDFLAGS="$LDFLAGS"
10025 CFLAGS="$CFLAGS $PIECFLAGS"
10026 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10027 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 void main () {}
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10035 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10036
10037 else
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10040 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10041 PIECFLAGS=""
10042 PIECXXFLAGS=""
10043 PIELDFLAGS=""
10044
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048 CFLAGS="$save_CFLAGS"
10049 CXXFLAGS="$save_CXXFLAGS"
10050 LDFLAGS="$save_LDFLAGS"
10051
10052 fi
10053
10054
10055
10056
10057 # Check whether --enable-sqlite was given.
10058 if test "${enable_sqlite+set}" = set; then :
10059 enableval=$enable_sqlite;
10060 else
10061 enable_sqlite=check
10062 fi
10063 sqlite3_LIBS=
10064 if test "x$enable_sqlite" != xno; then :
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
10066 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
10067 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-lsqlite3 $LIBS"
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char sqlite3_open ();
10082 int
10083 main ()
10084 {
10085 return sqlite3_open ();
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 ac_cv_lib_sqlite3_sqlite3_open=yes
10092 else
10093 ac_cv_lib_sqlite3_sqlite3_open=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
10100 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
10101 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
10102 sqlite3_LIBS=-lsqlite3
10103
10104
10105 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10106
10107 else
10108 if test "x$enable_sqlite" != xcheck; then
10109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10111 as_fn_error $? "--enable-sqlite was given, but test for sqlite failed
10112 See \`config.log' for more details" "$LINENO" 5; }
10113 fi
10114 fi
10115
10116 fi
10117
10118 # Check whether --enable-translator was given.
10119 if test "${enable_translator+set}" = set; then :
10120 enableval=$enable_translator;
10121 else
10122 enable_translator="yes"
10123 fi
10124
10125 if test "$enable_translator" == "yes"; then
10126 BUILD_TRANSLATOR_TRUE=
10127 BUILD_TRANSLATOR_FALSE='#'
10128 else
10129 BUILD_TRANSLATOR_TRUE='#'
10130 BUILD_TRANSLATOR_FALSE=
10131 fi
10132
10133
10134 # Check whether --enable-crash was given.
10135 if test "${enable_crash+set}" = set; then :
10136 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10137 save_CPPFLAGS="$CPPFLAGS"
10138 if test "$enable_crash" != "yes"; then
10139 staplog_CPPFLAGS=-I$enable_crash
10140 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10141
10142 fi
10143 for ac_header in crash/defs.h
10144 do :
10145 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10146 #define NR_CPUS 256
10147
10148 "
10149 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10150 cat >>confdefs.h <<_ACEOF
10151 #define HAVE_CRASH_DEFS_H 1
10152 _ACEOF
10153
10154 else
10155 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10156 fi
10157
10158 done
10159
10160 CPPFLAGS="$save_CPPFLAGS"
10161 fi
10162 else
10163 enable_crash="no"
10164 fi
10165
10166 if test "$enable_crash" != "no"; then
10167 BUILD_CRASHMOD_TRUE=
10168 BUILD_CRASHMOD_FALSE='#'
10169 else
10170 BUILD_CRASHMOD_TRUE='#'
10171 BUILD_CRASHMOD_FALSE=
10172 fi
10173
10174
10175 building_docs="no"
10176 # Check whether --enable-docs was given.
10177 if test "${enable_docs+set}" = set; then :
10178 enableval=$enable_docs; enable_docs=$enableval
10179 else
10180 enable_docs="check"
10181 fi
10182
10183 # Extract the first word of "latex", so it can be a program name with args.
10184 set dummy latex; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_prog_have_latex+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test -n "$have_latex"; then
10191 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_have_latex="yes"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204 done
10205 done
10206 IFS=$as_save_IFS
10207
10208 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10209 fi
10210 fi
10211 have_latex=$ac_cv_prog_have_latex
10212 if test -n "$have_latex"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10214 $as_echo "$have_latex" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221 # Extract the first word of "dvips", so it can be a program name with args.
10222 set dummy dvips; ac_word=$2
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224 $as_echo_n "checking for $ac_word... " >&6; }
10225 if ${ac_cv_prog_have_dvips+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 if test -n "$have_dvips"; then
10229 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10230 else
10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10233 do
10234 IFS=$as_save_IFS
10235 test -z "$as_dir" && as_dir=.
10236 for ac_exec_ext in '' $ac_executable_extensions; do
10237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10238 ac_cv_prog_have_dvips="yes"
10239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 break 2
10241 fi
10242 done
10243 done
10244 IFS=$as_save_IFS
10245
10246 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10247 fi
10248 fi
10249 have_dvips=$ac_cv_prog_have_dvips
10250 if test -n "$have_dvips"; then
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10252 $as_echo "$have_dvips" >&6; }
10253 else
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }
10256 fi
10257
10258
10259 # Extract the first word of "ps2pdf", so it can be a program name with args.
10260 set dummy ps2pdf; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test -n "$have_ps2pdf"; then
10267 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_prog_have_ps2pdf="yes"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10279 fi
10280 done
10281 done
10282 IFS=$as_save_IFS
10283
10284 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10285 fi
10286 fi
10287 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10288 if test -n "$have_ps2pdf"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10290 $as_echo "$have_ps2pdf" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296
10297 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10298 if test "$enable_docs" == "yes"; then
10299 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10300 fi
10301 if test "$enable_docs" == "check"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10303 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10304 fi
10305 fi
10306 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
10307 building_docs="yes"
10308 fi
10309 if test "$building_docs" == "yes"; then
10310 BUILD_DOCS_TRUE=
10311 BUILD_DOCS_FALSE='#'
10312 else
10313 BUILD_DOCS_TRUE='#'
10314 BUILD_DOCS_FALSE=
10315 fi
10316
10317
10318
10319 building_refdocs="no"
10320 # Check whether --enable-refdocs was given.
10321 if test "${enable_refdocs+set}" = set; then :
10322 enableval=$enable_refdocs; enable_refdocs=$enableval
10323 else
10324 enable_refdocs="check"
10325 fi
10326
10327 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
10328 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
10329 fi
10330 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
10331 building_refdocs="yes"
10332 fi
10333 if test "$building_refdocs" == "yes"; then
10334 BUILD_REFDOCS_TRUE=
10335 BUILD_REFDOCS_FALSE='#'
10336 else
10337 BUILD_REFDOCS_TRUE='#'
10338 BUILD_REFDOCS_FALSE=
10339 fi
10340
10341
10342 # Extract the first word of "xmlto", so it can be a program name with args.
10343 set dummy xmlto; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_prog_have_xmlto+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 if test -n "$have_xmlto"; then
10350 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359 ac_cv_prog_have_xmlto="yes"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363 done
10364 done
10365 IFS=$as_save_IFS
10366
10367 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
10368 fi
10369 fi
10370 have_xmlto=$ac_cv_prog_have_xmlto
10371 if test -n "$have_xmlto"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
10373 $as_echo "$have_xmlto" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10377 fi
10378
10379
10380 # Extract the first word of "fop", so it can be a program name with args.
10381 set dummy fop; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_prog_have_fop+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 if test -n "$have_fop"; then
10388 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397 ac_cv_prog_have_fop="yes"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401 done
10402 done
10403 IFS=$as_save_IFS
10404
10405 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
10406 fi
10407 fi
10408 have_fop=$ac_cv_prog_have_fop
10409 if test -n "$have_fop"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
10411 $as_echo "$have_fop" >&6; }
10412 else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417
10418 if test "x${have_fop}" == "xyes"; then
10419 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
10420 # hope that it works.
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
10422 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
10423 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425 $as_echo "yes" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
10428 $as_echo "it's dead, Jim" >&6; }
10429 have_fop="broken"
10430 fi
10431 rm -f dummy-tapsets.pdf
10432 fi
10433 if test "$have_fop" == "yes"; then
10434 HAVE_FOP_TRUE=
10435 HAVE_FOP_FALSE='#'
10436 else
10437 HAVE_FOP_TRUE='#'
10438 HAVE_FOP_FALSE=
10439 fi
10440
10441 if test "$have_xmlto" == "yes"; then
10442 HAVE_XMLTO_TRUE=
10443 HAVE_XMLTO_FALSE='#'
10444 else
10445 HAVE_XMLTO_TRUE='#'
10446 HAVE_XMLTO_FALSE=
10447 fi
10448
10449
10450 building_htmldocs="no"
10451 # Check whether --enable-htmldocs was given.
10452 if test "${enable_htmldocs+set}" = set; then :
10453 enableval=$enable_htmldocs; building_htmldocs=$enableval
10454 else
10455 building_htmldocs="no"
10456 fi
10457
10458 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
10459 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
10460 fi
10461
10462 if test "$building_htmldocs" == "yes"; then
10463 BUILD_HTMLDOCS_TRUE=
10464 BUILD_HTMLDOCS_FALSE='#'
10465 else
10466 BUILD_HTMLDOCS_TRUE='#'
10467 BUILD_HTMLDOCS_FALSE=
10468 fi
10469
10470
10471 cat > conftest.xml << 'EOF'
10472 <?xml version="1.0" encoding="UTF-8"?>
10473 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
10474 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
10475 <book lang="en">
10476 <bookinfo><title>foo</title></bookinfo>
10477 <chapter id="logging.stp"><title>Logging Tapset</title>
10478 <refentry id="API-log"><refnamediv><refname>log</refname>
10479 <refpurpose>logging</refpurpose></refnamediv>
10480 <refsect1><title>Description</title>
10481 <para>baz</para></refsect1></refentry></chapter>
10482 </book>
10483 EOF
10484
10485 if test "x${have_xmlto}" == "xyes"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
10487 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
10488 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
10489 if test $? == 0; then
10490 have_xmlto_stringparam="yes"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10492 $as_echo "yes" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497 rm -f conftest.html
10498 fi
10499 if test "$have_xmlto_stringparam" == "yes"; then
10500 XMLTO_STRINGPARAM_TRUE=
10501 XMLTO_STRINGPARAM_FALSE='#'
10502 else
10503 XMLTO_STRINGPARAM_TRUE='#'
10504 XMLTO_STRINGPARAM_FALSE=
10505 fi
10506
10507
10508 rm -f conftest.xml
10509
10510
10511 # Check whether --with-nss was given.
10512 if test "${with_nss+set}" = set; then :
10513 withval=$with_nss;
10514 fi
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10525 if test -n "$ac_tool_prefix"; then
10526 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10527 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 case $PKG_CONFIG in
10534 [\\/]* | ?:[\\/]*)
10535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10536 ;;
10537 *)
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10548 fi
10549 done
10550 done
10551 IFS=$as_save_IFS
10552
10553 ;;
10554 esac
10555 fi
10556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10557 if test -n "$PKG_CONFIG"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10559 $as_echo "$PKG_CONFIG" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564
10565
10566 fi
10567 if test -z "$ac_cv_path_PKG_CONFIG"; then
10568 ac_pt_PKG_CONFIG=$PKG_CONFIG
10569 # Extract the first word of "pkg-config", so it can be a program name with args.
10570 set dummy pkg-config; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 case $ac_pt_PKG_CONFIG in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10579 ;;
10580 *)
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_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
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 ;;
10597 esac
10598 fi
10599 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10600 if test -n "$ac_pt_PKG_CONFIG"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10602 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607
10608 if test "x$ac_pt_PKG_CONFIG" = x; then
10609 PKG_CONFIG=""
10610 else
10611 case $cross_compiling:$ac_tool_warned in
10612 yes:)
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10615 ac_tool_warned=yes ;;
10616 esac
10617 PKG_CONFIG=$ac_pt_PKG_CONFIG
10618 fi
10619 else
10620 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10621 fi
10622
10623 fi
10624 if test -n "$PKG_CONFIG"; then
10625 _pkg_min_version=0.9.0
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10627 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10628 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 PKG_CONFIG=""
10635 fi
10636 fi
10637 if test "x$with_nss" != "xno"; then :
10638
10639
10640 pkg_failed=no
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10642 $as_echo_n "checking for nss... " >&6; }
10643
10644 if test -n "$nss_CFLAGS"; then
10645 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10646 elif test -n "$PKG_CONFIG"; then
10647 if test -n "$PKG_CONFIG" && \
10648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10649 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10650 ac_status=$?
10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10652 test $ac_status = 0; }; then
10653 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10654 test "x$?" != "x0" && pkg_failed=yes
10655 else
10656 pkg_failed=yes
10657 fi
10658 else
10659 pkg_failed=untried
10660 fi
10661 if test -n "$nss_LIBS"; then
10662 pkg_cv_nss_LIBS="$nss_LIBS"
10663 elif test -n "$PKG_CONFIG"; then
10664 if test -n "$PKG_CONFIG" && \
10665 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10666 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10667 ac_status=$?
10668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669 test $ac_status = 0; }; then
10670 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10671 test "x$?" != "x0" && pkg_failed=yes
10672 else
10673 pkg_failed=yes
10674 fi
10675 else
10676 pkg_failed=untried
10677 fi
10678
10679
10680
10681 if test $pkg_failed = yes; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10684
10685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10686 _pkg_short_errors_supported=yes
10687 else
10688 _pkg_short_errors_supported=no
10689 fi
10690 if test $_pkg_short_errors_supported = yes; then
10691 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10692 else
10693 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10694 fi
10695 # Put the nasty error message in config.log where it belongs
10696 echo "$nss_PKG_ERRORS" >&5
10697
10698 have_nss=no
10699 elif test $pkg_failed = untried; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 have_nss=no
10703 else
10704 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10705 nss_LIBS=$pkg_cv_nss_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; }
10708 have_nss=yes
10709
10710 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10711
10712
10713 fi
10714
10715 else
10716 have_nss=no
10717 fi
10718
10719 if test "${have_nss}" = "yes"; then
10720 HAVE_NSS_TRUE=
10721 HAVE_NSS_FALSE='#'
10722 else
10723 HAVE_NSS_TRUE='#'
10724 HAVE_NSS_FALSE=
10725 fi
10726
10727
10728
10729 # Check whether --with-dracutstap was given.
10730 if test "${with_dracutstap+set}" = set; then :
10731 withval=$with_dracutstap;
10732 fi
10733
10734 if test "x$with_dracutstap" != "x"; then :
10735 dracutstap="$with_dracutstap"
10736 else
10737 dracutstap=/usr/lib/dracut/modules.d/99stap
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
10740 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
10741
10742
10743
10744 # Check whether --with-dracutbindir was given.
10745 if test "${with_dracutbindir+set}" = set; then :
10746 withval=$with_dracutbindir;
10747 fi
10748
10749 if test "x$with_dracutbindir" != "x"; then :
10750 dracutbindir="$with_dracutbindir"
10751 else
10752 dracutbindir=/sbin
10753 fi
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut binary $dracutbindir" >&5
10755 $as_echo "$as_me: using dracut binary $dracutbindir" >&6;}
10756
10757
10758 # Check whether --enable-server was given.
10759 if test "${enable_server+set}" = set; then :
10760 enableval=$enable_server; enable_server=$enableval
10761 else
10762 enable_server="check"
10763 fi
10764
10765
10766 if test "$enable_server" != "no"; then
10767 if test "x${have_nss}" != "xyes"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
10769 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
10770 fi
10771 fi
10772 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
10773 BUILD_SERVER_TRUE=
10774 BUILD_SERVER_FALSE='#'
10775 else
10776 BUILD_SERVER_TRUE='#'
10777 BUILD_SERVER_FALSE=
10778 fi
10779
10780
10781 if test "${have_nss}" != "yes"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
10783 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
10784 fi
10785
10786
10787 # Check whether --with-avahi was given.
10788 if test "${with_avahi+set}" = set; then :
10789 withval=$with_avahi;
10790 fi
10791
10792
10793 if test "x$with_avahi" != "xno"; then :
10794
10795
10796 pkg_failed=no
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
10798 $as_echo_n "checking for avahi... " >&6; }
10799
10800 if test -n "$avahi_CFLAGS"; then
10801 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
10802 elif test -n "$PKG_CONFIG"; then
10803 if test -n "$PKG_CONFIG" && \
10804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10805 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10806 ac_status=$?
10807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10808 test $ac_status = 0; }; then
10809 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
10810 test "x$?" != "x0" && pkg_failed=yes
10811 else
10812 pkg_failed=yes
10813 fi
10814 else
10815 pkg_failed=untried
10816 fi
10817 if test -n "$avahi_LIBS"; then
10818 pkg_cv_avahi_LIBS="$avahi_LIBS"
10819 elif test -n "$PKG_CONFIG"; then
10820 if test -n "$PKG_CONFIG" && \
10821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10822 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10823 ac_status=$?
10824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825 test $ac_status = 0; }; then
10826 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
10827 test "x$?" != "x0" && pkg_failed=yes
10828 else
10829 pkg_failed=yes
10830 fi
10831 else
10832 pkg_failed=untried
10833 fi
10834
10835
10836
10837 if test $pkg_failed = yes; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10840
10841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10842 _pkg_short_errors_supported=yes
10843 else
10844 _pkg_short_errors_supported=no
10845 fi
10846 if test $_pkg_short_errors_supported = yes; then
10847 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
10848 else
10849 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
10850 fi
10851 # Put the nasty error message in config.log where it belongs
10852 echo "$avahi_PKG_ERRORS" >&5
10853
10854 have_avahi=no
10855 elif test $pkg_failed = untried; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10858 have_avahi=no
10859 else
10860 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
10861 avahi_LIBS=$pkg_cv_avahi_LIBS
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10863 $as_echo "yes" >&6; }
10864 have_avahi=yes
10865
10866 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10867
10868
10869 fi
10870
10871 else
10872 have_avahi=no
10873 fi
10874
10875 if test "${have_avahi}" = "yes"; then
10876 HAVE_AVAHI_TRUE=
10877 HAVE_AVAHI_FALSE='#'
10878 else
10879 HAVE_AVAHI_TRUE='#'
10880 HAVE_AVAHI_FALSE=
10881 fi
10882
10883
10884 if test "${have_avahi}" != "yes"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
10886 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
10887 fi
10888
10889
10890
10891 # Check whether --with-rpm was given.
10892 if test "${with_rpm+set}" = set; then :
10893 withval=$with_rpm;
10894 else
10895 with_rpm="auto"
10896 fi
10897
10898 if test "$with_rpm" != "no"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10900 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10901 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-lrpm $LIBS"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char rpmtsInitIterator ();
10916 int
10917 main ()
10918 {
10919 return rpmtsInitIterator ();
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_lib_rpm_rpmtsInitIterator=yes
10926 else
10927 ac_cv_lib_rpm_rpmtsInitIterator=no
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10932 fi
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
10934 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
10935 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
10936
10937
10938 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
10939
10940 stap_LIBS="$stap_LIBS -lc -lrpm"
10941 have_librpm="yes"
10942 else
10943 have_librpm="no"
10944 fi
10945
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
10947 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
10948 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-lrpmio $LIBS"
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 /* Override any GCC internal prototype to avoid an error.
10957 Use char because int might match the return type of a GCC
10958 builtin and then its argument prototype would still apply. */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 char rpmFreeCrypto ();
10963 int
10964 main ()
10965 {
10966 return rpmFreeCrypto ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"; then :
10972 ac_cv_lib_rpmio_rpmFreeCrypto=yes
10973 else
10974 ac_cv_lib_rpmio_rpmFreeCrypto=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978 LIBS=$ac_check_lib_save_LIBS
10979 fi
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
10981 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
10982 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
10983
10984
10985 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
10986
10987 stap_LIBS="$stap_LIBS -lc -lrpmio"
10988 have_librpmio="yes"
10989 else
10990 have_librpmio="no"
10991 fi
10992
10993 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
10994 as_fn_error $? "cannot find librpm" "$LINENO" 5
10995 fi
10996 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
10998 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
10999 fi
11000 fi
11001
11002 LIBS_no_readline=$LIBS
11003
11004 have_libreadline="no"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11006 $as_echo_n "checking how to link readline libs... " >&6; }
11007 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11008 if test -z "$libtermcap"; then
11009 READLINE_LIBS="-lreadline"
11010 else
11011 READLINE_LIBS="-lreadline -l$libtermcap"
11012 fi
11013 LIBS="$READLINE_LIBS $LIBS_no_readline"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char readline ();
11024 int
11025 main ()
11026 {
11027 return readline ();
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 have_libreadline="yes"
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 if test "$have_libreadline" = "yes"; then
11038 break
11039 fi
11040 done
11041 if test "$have_libreadline" = "no"; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11043 $as_echo "none" >&6; }
11044 READLINE_LIBS=""
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11047 $as_echo "$READLINE_LIBS" >&6; }
11048
11049 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11050
11051 fi
11052
11053 if test "$have_libreadline" == "yes"; then
11054 HAVE_LIBREADLINE_TRUE=
11055 HAVE_LIBREADLINE_FALSE='#'
11056 else
11057 HAVE_LIBREADLINE_TRUE='#'
11058 HAVE_LIBREADLINE_FALSE=
11059 fi
11060
11061
11062 LIBS=$LIBS_no_readline
11063
11064
11065 # Check whether --with-python3 was given.
11066 if test "${with_python3+set}" = set; then :
11067 withval=$with_python3;
11068 fi
11069
11070 if test "x$with_python3" = "xyes"; then :
11071 if test -z "$PYTHON3"; then :
11072 as_fn_error $? "python version 3 is required" "$LINENO" 5
11073 else
11074 preferred_python=$PYTHON3
11075
11076 fi
11077 else
11078 if test "x$PYTHON" = "x:"; then :
11079 as_fn_error $? "python version 2 is required" "$LINENO" 5
11080 else
11081 preferred_python=$PYTHON
11082
11083 fi
11084 fi
11085
11086 build_elfutils=no
11087
11088 # Check whether --with-elfutils was given.
11089 if test "${with_elfutils+set}" = set; then :
11090 withval=$with_elfutils;
11091 case "$with_elfutils" in
11092 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11093 ''|no) ;;
11094 *) build_elfutils=yes ;;
11095 esac
11096 fi
11097
11098 if test $build_elfutils = yes; then
11099 BUILD_ELFUTILS_TRUE=
11100 BUILD_ELFUTILS_FALSE='#'
11101 else
11102 BUILD_ELFUTILS_TRUE='#'
11103 BUILD_ELFUTILS_FALSE=
11104 fi
11105
11106 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11107 cd $with_elfutils && pwd
11108 fi`
11109
11110
11111 if test $enable_translator = yes; then
11112 if test $build_elfutils = no; then
11113 # Need libdwfl-capable recent elfutils http://elfutils.org/
11114
11115 # On modern debian/ubuntu, libebl has been merged into libdw
11116 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11117 save_LIBS="$LIBS"
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11119 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11120 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_check_lib_save_LIBS=$LIBS
11124 LIBS="-lebl $LIBS"
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11127
11128 /* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 char ebl_get_elfmachine ();
11135 int
11136 main ()
11137 {
11138 return ebl_get_elfmachine ();
11139 ;
11140 return 0;
11141 }
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11145 else
11146 ac_cv_lib_ebl_ebl_get_elfmachine=no
11147 fi
11148 rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11153 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11154 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11155 ebl_LIBS=-lebl
11156 else
11157 ebl_LIBS=
11158 fi
11159
11160 LIBS="$save_LIBS"
11161
11162 save_LIBS="$LIBS"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11164 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11165 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char dwfl_module_getsym ();
11180 int
11181 main ()
11182 {
11183 return dwfl_module_getsym ();
11184 ;
11185 return 0;
11186 }
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_dw_dwfl_module_getsym=yes
11190 else
11191 ac_cv_lib_dw_dwfl_module_getsym=no
11192 fi
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11198 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11199 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11200 cat >>confdefs.h <<_ACEOF
11201 #define HAVE_LIBDW 1
11202 _ACEOF
11203
11204 LIBS="-ldw $LIBS"
11205
11206 else
11207
11208 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11209 fi
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11212 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11213 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char dwarf_next_unit ();
11228 int
11229 main ()
11230 {
11231 return dwarf_next_unit ();
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_dw_dwarf_next_unit=yes
11238 else
11239 ac_cv_lib_dw_dwarf_next_unit=no
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11246 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11247 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_LIBDW 1
11250 _ACEOF
11251
11252 LIBS="-ldw $LIBS"
11253
11254 else
11255
11256 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11257 fi
11258
11259 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11260 LIBS="$save_LIBS"
11261 else
11262 # We built our own and stap_LDFLAGS points at the install.
11263 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11264 fi
11265 fi
11266
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11269 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11270
11271 # staprun has more modest libelf needs
11272 if test $build_elfutils = no; then
11273 save_LIBS="$LIBS"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11275 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11276 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 ac_check_lib_save_LIBS=$LIBS
11280 LIBS="-lelf $LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char elf_getshdrstrndx ();
11291 int
11292 main ()
11293 {
11294 return elf_getshdrstrndx ();
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 ac_cv_lib_elf_elf_getshdrstrndx=yes
11301 else
11302 ac_cv_lib_elf_elf_getshdrstrndx=no
11303 fi
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_lib_save_LIBS
11307 fi
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11309 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11310 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_LIBELF 1
11313 _ACEOF
11314
11315 LIBS="-lelf $LIBS"
11316
11317 else
11318
11319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11321 as_fn_error $? "libelf too old, need 0.142+
11322 See \`config.log' for more details" "$LINENO" 5; }
11323 fi
11324
11325 staprun_LIBS="$staprun_LIBS -lelf"
11326 LIBS="$save_LIBS"
11327 else
11328 # We built our own and staprun_LDFLAGS points at the install.
11329 staprun_LIBS="$staprun_LIBS -lelf"
11330 fi
11331
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
11334 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
11335
11336
11337 date=`date +%Y-%m-%d`
11338
11339 cat >>confdefs.h <<_ACEOF
11340 #define DATE "$date"
11341 _ACEOF
11342
11343 DATE="$date"
11344
11345
11346 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
11347 # being compiled on 32-bit userspace but running against 64-bit kernels.
11348 # This is no longer necessary.
11349
11350 ac_ext=cpp
11351 ac_cpp='$CXXCPP $CPPFLAGS'
11352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11355
11356 # Use boost::string_ref if available
11357 ac_ext=cpp
11358 ac_cpp='$CXXCPP $CPPFLAGS'
11359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11363 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11364 if test -z "$CXXCPP"; then
11365 if ${ac_cv_prog_CXXCPP+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 # Double quotes because CXXCPP needs to be expanded
11369 for CXXCPP in "$CXX -E" "/lib/cpp"
11370 do
11371 ac_preproc_ok=false
11372 for ac_cxx_preproc_warn_flag in '' yes
11373 do
11374 # Use a header file that comes with gcc, so configuring glibc
11375 # with a fresh cross-compiler works.
11376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 # <limits.h> exists even on freestanding compilers.
11378 # On the NeXT, cc -E runs the code through the compiler's parser,
11379 # not just through cpp. "Syntax error" is here to catch this case.
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 #ifdef __STDC__
11383 # include <limits.h>
11384 #else
11385 # include <assert.h>
11386 #endif
11387 Syntax error
11388 _ACEOF
11389 if ac_fn_cxx_try_cpp "$LINENO"; then :
11390
11391 else
11392 # Broken: fails on valid input.
11393 continue
11394 fi
11395 rm -f conftest.err conftest.i conftest.$ac_ext
11396
11397 # OK, works on sane cases. Now check whether nonexistent headers
11398 # can be detected and how.
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401 #include <ac_nonexistent.h>
11402 _ACEOF
11403 if ac_fn_cxx_try_cpp "$LINENO"; then :
11404 # Broken: success on invalid input.
11405 continue
11406 else
11407 # Passes both tests.
11408 ac_preproc_ok=:
11409 break
11410 fi
11411 rm -f conftest.err conftest.i conftest.$ac_ext
11412
11413 done
11414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11415 rm -f conftest.i conftest.err conftest.$ac_ext
11416 if $ac_preproc_ok; then :
11417 break
11418 fi
11419
11420 done
11421 ac_cv_prog_CXXCPP=$CXXCPP
11422
11423 fi
11424 CXXCPP=$ac_cv_prog_CXXCPP
11425 else
11426 ac_cv_prog_CXXCPP=$CXXCPP
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11429 $as_echo "$CXXCPP" >&6; }
11430 ac_preproc_ok=false
11431 for ac_cxx_preproc_warn_flag in '' yes
11432 do
11433 # Use a header file that comes with gcc, so configuring glibc
11434 # with a fresh cross-compiler works.
11435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11436 # <limits.h> exists even on freestanding compilers.
11437 # On the NeXT, cc -E runs the code through the compiler's parser,
11438 # not just through cpp. "Syntax error" is here to catch this case.
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #ifdef __STDC__
11442 # include <limits.h>
11443 #else
11444 # include <assert.h>
11445 #endif
11446 Syntax error
11447 _ACEOF
11448 if ac_fn_cxx_try_cpp "$LINENO"; then :
11449
11450 else
11451 # Broken: fails on valid input.
11452 continue
11453 fi
11454 rm -f conftest.err conftest.i conftest.$ac_ext
11455
11456 # OK, works on sane cases. Now check whether nonexistent headers
11457 # can be detected and how.
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 #include <ac_nonexistent.h>
11461 _ACEOF
11462 if ac_fn_cxx_try_cpp "$LINENO"; then :
11463 # Broken: success on invalid input.
11464 continue
11465 else
11466 # Passes both tests.
11467 ac_preproc_ok=:
11468 break
11469 fi
11470 rm -f conftest.err conftest.i conftest.$ac_ext
11471
11472 done
11473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11474 rm -f conftest.i conftest.err conftest.$ac_ext
11475 if $ac_preproc_ok; then :
11476
11477 else
11478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11480 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11481 See \`config.log' for more details" "$LINENO" 5; }
11482 fi
11483
11484 ac_ext=cpp
11485 ac_cpp='$CXXCPP $CPPFLAGS'
11486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11489
11490
11491 for ac_header in boost/utility/string_ref.hpp
11492 do :
11493 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
11494 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
11497 _ACEOF
11498
11499 fi
11500
11501 done
11502
11503 ac_ext=c
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508
11509
11510
11511 # Check for Dyninst headers and libraries
11512
11513 # Check whether --with-dyninst was given.
11514 if test "${with_dyninst+set}" = set; then :
11515 withval=$with_dyninst;
11516 fi
11517
11518
11519 case "$with_dyninst" in
11520 no) ;;
11521 ''|yes) # Try a simple-minded distro search
11522 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
11523 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
11524 ;;
11525 *) # Use paths in the user-specified prefix
11526 DYNINST_CXXFLAGS="-I$with_dyninst/include"
11527 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
11528 ;;
11529 esac
11530 if test "$with_dyninst" != "no"; then
11531 ac_ext=cpp
11532 ac_cpp='$CXXCPP $CPPFLAGS'
11533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11536
11537 old_CPPFLAGS="$CPPFLAGS"
11538 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
11540 $as_echo "$as_me: checking dyninst support" >&6;}
11541 for ac_header in BPatch_object.h
11542 do :
11543 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
11544 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
11545 cat >>confdefs.h <<_ACEOF
11546 #define HAVE_BPATCH_OBJECT_H 1
11547 _ACEOF
11548
11549
11550
11551
11552 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11553
11554 have_dyninst=yes
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11556 $as_echo "$as_me: dyninst support available" >&6;}
11557 fi
11558
11559 done
11560
11561 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11562 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11563 fi
11564 CPPFLAGS="$old_CPPFLAGS"
11565 ac_ext=c
11566 ac_cpp='$CPP $CPPFLAGS'
11567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11570
11571 fi
11572 if test "${have_dyninst}" = "yes"; then
11573 HAVE_DYNINST_TRUE=
11574 HAVE_DYNINST_FALSE='#'
11575 else
11576 HAVE_DYNINST_TRUE='#'
11577 HAVE_DYNINST_FALSE=
11578 fi
11579
11580
11581
11582
11583 # Check whether --enable-virt was given.
11584 if test "${enable_virt+set}" = set; then :
11585 enableval=$enable_virt; enable_virt=$enableval
11586 else
11587 enable_virt="check"
11588 fi
11589
11590
11591
11592 pkg_failed=no
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11594 $as_echo_n "checking for libvirt... " >&6; }
11595
11596 if test -n "$libvirt_CFLAGS"; then
11597 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11598 elif test -n "$PKG_CONFIG"; then
11599 if test -n "$PKG_CONFIG" && \
11600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11601 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11602 ac_status=$?
11603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604 test $ac_status = 0; }; then
11605 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11606 test "x$?" != "x0" && pkg_failed=yes
11607 else
11608 pkg_failed=yes
11609 fi
11610 else
11611 pkg_failed=untried
11612 fi
11613 if test -n "$libvirt_LIBS"; then
11614 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11615 elif test -n "$PKG_CONFIG"; then
11616 if test -n "$PKG_CONFIG" && \
11617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11618 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; }; then
11622 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11623 test "x$?" != "x0" && pkg_failed=yes
11624 else
11625 pkg_failed=yes
11626 fi
11627 else
11628 pkg_failed=untried
11629 fi
11630
11631
11632
11633 if test $pkg_failed = yes; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636
11637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11638 _pkg_short_errors_supported=yes
11639 else
11640 _pkg_short_errors_supported=no
11641 fi
11642 if test $_pkg_short_errors_supported = yes; then
11643 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11644 else
11645 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11646 fi
11647 # Put the nasty error message in config.log where it belongs
11648 echo "$libvirt_PKG_ERRORS" >&5
11649
11650 have_libvirt=no
11651 elif test $pkg_failed = untried; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 have_libvirt=no
11655 else
11656 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
11657 libvirt_LIBS=$pkg_cv_libvirt_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659 $as_echo "yes" >&6; }
11660
11661 have_libvirt=yes
11662
11663 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
11664
11665
11666 fi
11667 if test "${have_libvirt}" = "yes"; then
11668 HAVE_LIBVIRT_TRUE=
11669 HAVE_LIBVIRT_FALSE='#'
11670 else
11671 HAVE_LIBVIRT_TRUE='#'
11672 HAVE_LIBVIRT_FALSE=
11673 fi
11674
11675
11676 pkg_failed=no
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
11678 $as_echo_n "checking for libxml2... " >&6; }
11679
11680 if test -n "$libxml2_CFLAGS"; then
11681 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
11682 elif test -n "$PKG_CONFIG"; then
11683 if test -n "$PKG_CONFIG" && \
11684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11685 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11686 ac_status=$?
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; }; then
11689 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
11690 test "x$?" != "x0" && pkg_failed=yes
11691 else
11692 pkg_failed=yes
11693 fi
11694 else
11695 pkg_failed=untried
11696 fi
11697 if test -n "$libxml2_LIBS"; then
11698 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
11699 elif test -n "$PKG_CONFIG"; then
11700 if test -n "$PKG_CONFIG" && \
11701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11702 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11703 ac_status=$?
11704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11705 test $ac_status = 0; }; then
11706 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
11707 test "x$?" != "x0" && pkg_failed=yes
11708 else
11709 pkg_failed=yes
11710 fi
11711 else
11712 pkg_failed=untried
11713 fi
11714
11715
11716
11717 if test $pkg_failed = yes; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720
11721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11722 _pkg_short_errors_supported=yes
11723 else
11724 _pkg_short_errors_supported=no
11725 fi
11726 if test $_pkg_short_errors_supported = yes; then
11727 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
11728 else
11729 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
11730 fi
11731 # Put the nasty error message in config.log where it belongs
11732 echo "$libxml2_PKG_ERRORS" >&5
11733
11734 have_libxml2=no
11735 elif test $pkg_failed = untried; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 have_libxml2=no
11739 else
11740 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
11741 libxml2_LIBS=$pkg_cv_libxml2_LIBS
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744
11745 have_libxml2=yes
11746
11747 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11748
11749
11750 fi
11751 if test "${have_libxml2}" = "yes"; then
11752 HAVE_LIBXML2_TRUE=
11753 HAVE_LIBXML2_FALSE='#'
11754 else
11755 HAVE_LIBXML2_TRUE='#'
11756 HAVE_LIBXML2_FALSE=
11757 fi
11758
11759
11760 if test "$enable_virt" != "no"; then
11761 if test "x${have_libvirt}" != "xyes"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
11763 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
11764 fi
11765 if test "x${have_libxml2}" != "xyes"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
11767 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
11768 fi
11769 fi
11770 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
11771 BUILD_VIRT_TRUE=
11772 BUILD_VIRT_FALSE='#'
11773 else
11774 BUILD_VIRT_TRUE='#'
11775 BUILD_VIRT_FALSE=
11776 fi
11777
11778
11779
11780 # Check whether --with-python2-probes was given.
11781 if test "${with_python2_probes+set}" = set; then :
11782 withval=$with_python2_probes;
11783 fi
11784
11785 have_python2_support=no
11786 if test "x$with_python2_probes" != "xno"; then :
11787 pathless_python=$(basename "$PYTHON")
11788 # Extract the first word of "${pathless_python}-config", so it can be a program name with args.
11789 set dummy ${pathless_python}-config; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11791 $as_echo_n "checking for $ac_word... " >&6; }
11792 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 case $PYTHON_CONFIG in
11796 [\\/]* | ?:[\\/]*)
11797 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
11798 ;;
11799 *)
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811 done
11812 done
11813 IFS=$as_save_IFS
11814
11815 test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="no"
11816 ;;
11817 esac
11818 fi
11819 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
11820 if test -n "$PYTHON_CONFIG"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
11822 $as_echo "$PYTHON_CONFIG" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829 if test "x$PYTHON_CONFIG" != "xno"; then :
11830 PYTHON_CPPFLAGS=`$PYTHON_CONFIG --includes 2> /dev/null`
11831 PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
11832
11833 save_CPPFLAGS="$CPPFLAGS"
11834 CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
11835 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
11836 for ac_header in Python.h
11837 do :
11838 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11839 if test "x$ac_cv_header_Python_h" = xyes; then :
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_PYTHON_H 1
11842 _ACEOF
11843 have_python2_support=yes
11844 fi
11845
11846 done
11847
11848 CPPFLAGS="$save_CPPFLAGS"
11849 fi
11850 fi
11851 if test "x$have_python2_support" = "xyes"; then :
11852
11853 $as_echo "#define HAVE_PYTHON2_PROBES 1" >>confdefs.h
11854
11855 else
11856 if test "x$with_python2_probes" = "xyes"; then :
11857 as_fn_error $? "python version 2 probe support requested but not found" "$LINENO" 5
11858 fi
11859
11860 fi
11861 if test "x$have_python2_support" = "xyes"; then
11862 HAVE_PYTHON2_PROBES_TRUE=
11863 HAVE_PYTHON2_PROBES_FALSE='#'
11864 else
11865 HAVE_PYTHON2_PROBES_TRUE='#'
11866 HAVE_PYTHON2_PROBES_FALSE=
11867 fi
11868
11869
11870
11871 # Check whether --with-python3-probes was given.
11872 if test "${with_python3_probes+set}" = set; then :
11873 withval=$with_python3_probes;
11874 fi
11875
11876 have_python3_support=no
11877 if test "x$with_python3_probes" != "xno"; then :
11878 pathless_python3=$(basename "$PYTHON3")
11879 if test "x${pathless_python3}" == "x"; then
11880 pathless_python3="python3"
11881 fi
11882 # Extract the first word of "${pathless_python3}-config", so it can be a program name with args.
11883 set dummy ${pathless_python3}-config; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_PYTHON3_CONFIG+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $PYTHON3_CONFIG in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
11892 ;;
11893 *)
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_path_PYTHON3_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905 done
11906 done
11907 IFS=$as_save_IFS
11908
11909 test -z "$ac_cv_path_PYTHON3_CONFIG" && ac_cv_path_PYTHON3_CONFIG="no"
11910 ;;
11911 esac
11912 fi
11913 PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
11914 if test -n "$PYTHON3_CONFIG"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
11916 $as_echo "$PYTHON3_CONFIG" >&6; }
11917 else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921
11922
11923 if test "x$PYTHON3_CONFIG" != "xno"; then :
11924 PYTHON3_CPPFLAGS=`$PYTHON3_CONFIG --includes 2> /dev/null`
11925 PYTHON3_CPPFLAGS=$PYTHON3_CPPFLAGS
11926
11927 save_CPPFLAGS="$CPPFLAGS"
11928 CPPFLAGS="$PYTHON3_CPPFLAGS $CPPFLAGS"
11929 { ac_cv_header_Python_h=; unset ac_cv_header_Python_h;}
11930 for ac_header in Python.h
11931 do :
11932 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_Python_h" = xyes; then :
11934 cat >>confdefs.h <<_ACEOF
11935 #define HAVE_PYTHON_H 1
11936 _ACEOF
11937 have_python3_support=yes
11938 fi
11939
11940 done
11941
11942 CPPFLAGS="$save_CPPFLAGS"
11943 fi
11944 fi
11945 if test "x$have_python3_support" = "xyes"; then :
11946
11947 $as_echo "#define HAVE_PYTHON3_PROBES 1" >>confdefs.h
11948
11949 else
11950 if test "x$with_python3_probes" = "xyes"; then :
11951 as_fn_error $? "python version 3 probe support requested but not found" "$LINENO" 5
11952 fi
11953
11954 fi
11955 if test "x$have_python3_support" = "xyes"; then
11956 HAVE_PYTHON3_PROBES_TRUE=
11957 HAVE_PYTHON3_PROBES_FALSE='#'
11958 else
11959 HAVE_PYTHON3_PROBES_TRUE='#'
11960 HAVE_PYTHON3_PROBES_FALSE=
11961 fi
11962
11963
11964 if test "x$have_python2_support" = "xyes" -o "x$have_python3_support" = "xyes"; then
11965 HAVE_PYTHON_PROBES_TRUE=
11966 HAVE_PYTHON_PROBES_FALSE='#'
11967 else
11968 HAVE_PYTHON_PROBES_TRUE='#'
11969 HAVE_PYTHON_PROBES_FALSE=
11970 fi
11971
11972
11973
11974 pkg_failed=no
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
11976 $as_echo_n "checking for jsonc... " >&6; }
11977
11978 if test -n "$jsonc_CFLAGS"; then
11979 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
11980 elif test -n "$PKG_CONFIG"; then
11981 if test -n "$PKG_CONFIG" && \
11982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
11983 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
11984 ac_status=$?
11985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986 test $ac_status = 0; }; then
11987 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.12" 2>/dev/null`
11988 test "x$?" != "x0" && pkg_failed=yes
11989 else
11990 pkg_failed=yes
11991 fi
11992 else
11993 pkg_failed=untried
11994 fi
11995 if test -n "$jsonc_LIBS"; then
11996 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
11997 elif test -n "$PKG_CONFIG"; then
11998 if test -n "$PKG_CONFIG" && \
11999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.12\""; } >&5
12000 ($PKG_CONFIG --exists --print-errors "json-c >= 0.12") 2>&5
12001 ac_status=$?
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; }; then
12004 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c >= 0.12" 2>/dev/null`
12005 test "x$?" != "x0" && pkg_failed=yes
12006 else
12007 pkg_failed=yes
12008 fi
12009 else
12010 pkg_failed=untried
12011 fi
12012
12013
12014
12015 if test $pkg_failed = yes; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018
12019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12020 _pkg_short_errors_supported=yes
12021 else
12022 _pkg_short_errors_supported=no
12023 fi
12024 if test $_pkg_short_errors_supported = yes; then
12025 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12026 else
12027 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.12" 2>&1`
12028 fi
12029 # Put the nasty error message in config.log where it belongs
12030 echo "$jsonc_PKG_ERRORS" >&5
12031
12032 have_jsonc=no
12033 elif test $pkg_failed = untried; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035 $as_echo "no" >&6; }
12036 have_jsonc=no
12037 else
12038 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12039 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041 $as_echo "yes" >&6; }
12042 have_jsonc=yes
12043 fi
12044
12045 pkg_failed=no
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12047 $as_echo_n "checking for ncurses... " >&6; }
12048
12049 if test -n "$ncurses_CFLAGS"; then
12050 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12051 elif test -n "$PKG_CONFIG"; then
12052 if test -n "$PKG_CONFIG" && \
12053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12054 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }; then
12058 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12059 test "x$?" != "x0" && pkg_failed=yes
12060 else
12061 pkg_failed=yes
12062 fi
12063 else
12064 pkg_failed=untried
12065 fi
12066 if test -n "$ncurses_LIBS"; then
12067 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12068 elif test -n "$PKG_CONFIG"; then
12069 if test -n "$PKG_CONFIG" && \
12070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12071 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12072 ac_status=$?
12073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12074 test $ac_status = 0; }; then
12075 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12076 test "x$?" != "x0" && pkg_failed=yes
12077 else
12078 pkg_failed=yes
12079 fi
12080 else
12081 pkg_failed=untried
12082 fi
12083
12084
12085
12086 if test $pkg_failed = yes; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089
12090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12091 _pkg_short_errors_supported=yes
12092 else
12093 _pkg_short_errors_supported=no
12094 fi
12095 if test $_pkg_short_errors_supported = yes; then
12096 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12097 else
12098 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12099 fi
12100 # Put the nasty error message in config.log where it belongs
12101 echo "$ncurses_PKG_ERRORS" >&5
12102
12103 have_ncurses=no
12104 elif test $pkg_failed = untried; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12107 have_ncurses=no
12108 else
12109 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12110 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12112 $as_echo "yes" >&6; }
12113 have_ncurses=yes
12114 fi
12115 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12116 HAVE_MONITOR_LIBS_TRUE=
12117 HAVE_MONITOR_LIBS_FALSE='#'
12118 else
12119 HAVE_MONITOR_LIBS_TRUE='#'
12120 HAVE_MONITOR_LIBS_FALSE=
12121 fi
12122
12123 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12124
12125 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12126
12127 fi
12128
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12130 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12131 if ${stap_cv_sectionq+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134
12135 old_CFLAGS="$CFLAGS"
12136 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 asm(".section .note.foo,\"?\",\"note\"\n"
12140 ".byte 1, 2, 3\n"
12141 ".previous\n"
12142 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12143 ".byte 1\n"
12144 ".pushsection .note.foo,\"?\",\"note\"\n"
12145 ".byte 4, 5, 6\n"
12146 ".popsection\n"
12147 ".byte 2\n");
12148 _ACEOF
12149 if ac_fn_c_try_compile "$LINENO"; then :
12150 stap_cv_sectionq=yes
12151 else
12152 stap_cv_sectionq=no
12153 fi
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 CFLAGS="$old_CFLAGS"
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12158 $as_echo "$stap_cv_sectionq" >&6; }
12159
12160 support_section_question=0
12161 if test $stap_cv_sectionq = yes; then
12162 support_section_question=1
12163 fi
12164 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12165
12166
12167 if test $build_elfutils = yes -a $enable_translator = yes; then
12168 here=`pwd`
12169 case "$with_elfutils" in
12170 /*) elfutils_srcdir="$with_elfutils" ;;
12171 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12172 esac
12173
12174 if ! test -f ${elfutils_srcdir}/configure; then
12175 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12178 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12179
12180 save_CFLAGS="$CFLAGS"
12181 save_CXXFLAGS="$CXXFLAGS"
12182 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12183 CFLAGS="$CFLAGS -fgnu89-inline"
12184 gnu89_inline_flag=""
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 int something ();
12188 _ACEOF
12189 if ac_fn_c_try_compile "$LINENO"; then :
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12192 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12193 gnu89_inline_flag="-fgnu89-inline"
12194 else
12195
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12197 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 CFLAGS="$save_CFLAGS"
12201 CXXFLAGS="$save_CXXFLAGS"
12202
12203 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12204 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12205 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12206 # So we must make sure to pass those settings to elfutils configure.
12207 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12208 # Check whether this is a source release, or a source checkout.
12209 # We need --enable-maintainer-mode if it isn't a source release.
12210 # elfutils.spec is only distributed in source releases.
12211 if test -f ${elfutils_srcdir}/elfutils.spec; then
12212 need_maintainer_option=""
12213 else
12214 need_maintainer_option="--enable-maintainer-mode"
12215 fi
12216 (mkdir -p build-elfutils && cd build-elfutils &&
12217 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12218 --includedir="${here}/include-elfutils" \
12219 --libdir="${here}/lib-elfutils" \
12220 --exec-prefix="$exec_prefix" \
12221 --prefix="$prefix" \
12222 --enable-dwz \
12223 ${need_maintainer_option} \
12224 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12225 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12226 if test -f ${elfutils_srcdir}/config/version.h.in; then
12227 echo Found elfutils/version.h header...
12228 else
12229 echo elfutils/version.h header not found, need elfutils 0.142+...
12230 exit -1
12231 fi
12232 )
12233 if test $? != 0; then exit -1; fi
12234 fi
12235
12236
12237 # Check whether --with-selinux was given.
12238 if test "${with_selinux+set}" = set; then :
12239 withval=$with_selinux;
12240 fi
12241
12242
12243 if test "x$with_selinux" != "xno"; then :
12244
12245
12246 pkg_failed=no
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12248 $as_echo_n "checking for selinux... " >&6; }
12249
12250 if test -n "$selinux_CFLAGS"; then
12251 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12252 elif test -n "$PKG_CONFIG"; then
12253 if test -n "$PKG_CONFIG" && \
12254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12255 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12256 ac_status=$?
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; }; then
12259 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12260 test "x$?" != "x0" && pkg_failed=yes
12261 else
12262 pkg_failed=yes
12263 fi
12264 else
12265 pkg_failed=untried
12266 fi
12267 if test -n "$selinux_LIBS"; then
12268 pkg_cv_selinux_LIBS="$selinux_LIBS"
12269 elif test -n "$PKG_CONFIG"; then
12270 if test -n "$PKG_CONFIG" && \
12271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12272 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12273 ac_status=$?
12274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12275 test $ac_status = 0; }; then
12276 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12277 test "x$?" != "x0" && pkg_failed=yes
12278 else
12279 pkg_failed=yes
12280 fi
12281 else
12282 pkg_failed=untried
12283 fi
12284
12285
12286
12287 if test $pkg_failed = yes; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290
12291 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12292 _pkg_short_errors_supported=yes
12293 else
12294 _pkg_short_errors_supported=no
12295 fi
12296 if test $_pkg_short_errors_supported = yes; then
12297 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12298 else
12299 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12300 fi
12301 # Put the nasty error message in config.log where it belongs
12302 echo "$selinux_PKG_ERRORS" >&5
12303
12304 have_selinux=no
12305 elif test $pkg_failed = untried; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 have_selinux=no
12309 else
12310 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12311 selinux_LIBS=$pkg_cv_selinux_LIBS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 have_selinux=yes
12315
12316 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12317
12318
12319 fi
12320
12321 else
12322 have_selinux=no
12323 fi
12324
12325 if test "${have_selinux}" = "yes"; then
12326 HAVE_SELINUX_TRUE=
12327 HAVE_SELINUX_FALSE='#'
12328 else
12329 HAVE_SELINUX_TRUE='#'
12330 HAVE_SELINUX_FALSE=
12331 fi
12332
12333
12334 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12335 "
12336 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12337
12338 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12339
12340 fi
12341
12342
12343 # Extract the first word of "javac", so it can be a program name with args.
12344 set dummy javac; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_prog_have_javac+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if test -n "$have_javac"; then
12351 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_prog_have_javac="yes"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364 done
12365 done
12366 IFS=$as_save_IFS
12367
12368 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12369 fi
12370 fi
12371 have_javac=$ac_cv_prog_have_javac
12372 if test -n "$have_javac"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12374 $as_echo "$have_javac" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 fi
12379
12380
12381 # Extract the first word of "jar", so it can be a program name with args.
12382 set dummy jar; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if ${ac_cv_prog_have_jar+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 if test -n "$have_jar"; then
12389 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12393 do
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12398 ac_cv_prog_have_jar="yes"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12401 fi
12402 done
12403 done
12404 IFS=$as_save_IFS
12405
12406 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12407 fi
12408 fi
12409 have_jar=$ac_cv_prog_have_jar
12410 if test -n "$have_jar"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12412 $as_echo "$have_jar" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419 if test "$have_javac" != no -a "$have_jar" != no; then
12420 echo java found, will try to configure Byteman support
12421
12422
12423 # Check whether --with-java was given.
12424 if test "${with_java+set}" = set; then :
12425 withval=$with_java;
12426 else
12427 with_java=/usr/lib/jvm/java
12428 fi
12429
12430 if test ! -d "$with_java"; then
12431 with_java=no
12432 fi
12433 JAVADIR="${with_java}"
12434 # always needed to compile
12435
12436 if test "$with_java" != "no"; then
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define HAVE_JAVA "1"
12440 _ACEOF
12441
12442 fi
12443
12444 if test "$with_java" != "no"; then
12445 HAVE_JAVA_TRUE=
12446 HAVE_JAVA_FALSE='#'
12447 else
12448 HAVE_JAVA_TRUE='#'
12449 HAVE_JAVA_FALSE=
12450 fi
12451
12452
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12455 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12456 if false; then
12457 HAVE_JAVA_TRUE=
12458 HAVE_JAVA_FALSE='#'
12459 else
12460 HAVE_JAVA_TRUE='#'
12461 HAVE_JAVA_FALSE=
12462 fi
12463
12464 fi # java+byteman support
12465
12466 ENABLE_NLS="$USE_NLS"
12467
12468 localedir="$localedir"
12469
12470 LOCALEDIR="$localedir"
12471
12472
12473
12474 # Check whether --with-extra-version was given.
12475 if test "${with_extra_version+set}" = set; then :
12476 withval=$with_extra_version;
12477 fi
12478
12479 if test "x$with_extra_version" != "xno"; then :
12480
12481 stap_extra_version="$with_extra_version"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
12483 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
12484 else
12485
12486 stap_extra_version=""
12487 fi
12488
12489 cat >>confdefs.h <<_ACEOF
12490 #define STAP_EXTRA_VERSION "$stap_extra_version"
12491 _ACEOF
12492
12493 STAP_EXTRA_VERSION="$stap_extra_version"
12494
12495
12496
12497 stap_prefix=$prefix
12498 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
12499
12500 cat >>confdefs.h <<_ACEOF
12501 #define STAP_PREFIX "$stap_prefix"
12502 _ACEOF
12503
12504 STAP_PREFIX="$stap_prefix"
12505
12506
12507 ac_config_headers="$ac_config_headers config.h:config.in"
12508
12509 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"
12510
12511
12512
12513 subdirs="$subdirs testsuite"
12514
12515 if test $enable_translator == "yes"; then
12516 ac_config_files="$ac_config_files run-stap"
12517
12518 fi
12519 ac_config_files="$ac_config_files dtrace"
12520
12521 ac_config_files="$ac_config_files stapdyn/Makefile"
12522
12523 ac_config_files="$ac_config_files java/Makefile"
12524
12525 ac_config_files="$ac_config_files java/stapbm"
12526
12527 ac_config_files="$ac_config_files python/Makefile"
12528
12529 ac_config_files="$ac_config_files staprun/Makefile"
12530
12531 ac_config_files="$ac_config_files staprun/run-staprun"
12532
12533 ac_config_files="$ac_config_files staprun/guest/stapshd"
12534
12535 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
12536
12537 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
12538
12539
12540 # Setup "shadow" directory doc/beginners that has the basic directories setup for
12541 # xmlto in one directory (through directory links if necessary).
12542 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
12543 # the src is a directory and not a file.
12544 ac_config_commands="$ac_config_commands doc/beginners"
12545
12546
12547 cat >confcache <<\_ACEOF
12548 # This file is a shell script that caches the results of configure
12549 # tests run on this system so they can be shared between configure
12550 # scripts and configure runs, see configure's option --config-cache.
12551 # It is not useful on other systems. If it contains results you don't
12552 # want to keep, you may remove or edit it.
12553 #
12554 # config.status only pays attention to the cache file if you give it
12555 # the --recheck option to rerun configure.
12556 #
12557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12559 # following values.
12560
12561 _ACEOF
12562
12563 # The following way of writing the cache mishandles newlines in values,
12564 # but we know of no workaround that is simple, portable, and efficient.
12565 # So, we kill variables containing newlines.
12566 # Ultrix sh set writes to stderr and can't be redirected directly,
12567 # and sets the high bit in the cache file unless we assign to the vars.
12568 (
12569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12570 eval ac_val=\$$ac_var
12571 case $ac_val in #(
12572 *${as_nl}*)
12573 case $ac_var in #(
12574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12576 esac
12577 case $ac_var in #(
12578 _ | IFS | as_nl) ;; #(
12579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12580 *) { eval $ac_var=; unset $ac_var;} ;;
12581 esac ;;
12582 esac
12583 done
12584
12585 (set) 2>&1 |
12586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12587 *${as_nl}ac_space=\ *)
12588 # `set' does not quote correctly, so add quotes: double-quote
12589 # substitution turns \\\\ into \\, and sed turns \\ into \.
12590 sed -n \
12591 "s/'/'\\\\''/g;
12592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12593 ;; #(
12594 *)
12595 # `set' quotes correctly as required by POSIX, so do not add quotes.
12596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12597 ;;
12598 esac |
12599 sort
12600 ) |
12601 sed '
12602 /^ac_cv_env_/b end
12603 t clear
12604 :clear
12605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12606 t end
12607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12608 :end' >>confcache
12609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12610 if test -w "$cache_file"; then
12611 if test "x$cache_file" != "x/dev/null"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12613 $as_echo "$as_me: updating cache $cache_file" >&6;}
12614 if test ! -f "$cache_file" || test -h "$cache_file"; then
12615 cat confcache >"$cache_file"
12616 else
12617 case $cache_file in #(
12618 */* | ?:*)
12619 mv -f confcache "$cache_file"$$ &&
12620 mv -f "$cache_file"$$ "$cache_file" ;; #(
12621 *)
12622 mv -f confcache "$cache_file" ;;
12623 esac
12624 fi
12625 fi
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12629 fi
12630 fi
12631 rm -f confcache
12632
12633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12634 # Let make expand exec_prefix.
12635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12636
12637 DEFS=-DHAVE_CONFIG_H
12638
12639 ac_libobjs=
12640 ac_ltlibobjs=
12641 U=
12642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12643 # 1. Remove the extension, and $U if already installed.
12644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12647 # will be set to the directory where LIBOBJS objects are built.
12648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12650 done
12651 LIBOBJS=$ac_libobjs
12652
12653 LTLIBOBJS=$ac_ltlibobjs
12654
12655
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12657 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12658 if test -n "$am_sleep_pid"; then
12659 # Hide warnings about reused PIDs.
12660 wait $am_sleep_pid 2>/dev/null
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12663 $as_echo "done" >&6; }
12664 if test -n "$EXEEXT"; then
12665 am__EXEEXT_TRUE=
12666 am__EXEEXT_FALSE='#'
12667 else
12668 am__EXEEXT_TRUE='#'
12669 am__EXEEXT_FALSE=
12670 fi
12671
12672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12673 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12675 fi
12676 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12677 as_fn_error $? "conditional \"AMDEP\" was never defined.
12678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12679 fi
12680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12683 fi
12684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12687 fi
12688 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12689 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
12690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12691 fi
12692 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
12693 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
12694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12695 fi
12696 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
12697 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
12698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12699 fi
12700 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
12701 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
12702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12703 fi
12704 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
12705 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
12706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12707 fi
12708 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12709 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12711 fi
12712 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12713 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12715 fi
12716 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
12717 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
12718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12719 fi
12720 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
12721 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
12722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12723 fi
12724 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
12725 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
12726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12727 fi
12728 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
12729 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
12730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12731 fi
12732 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
12733 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
12734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12735 fi
12736 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
12737 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
12738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12739 fi
12740 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
12741 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
12742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12743 fi
12744 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
12745 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
12746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12747 fi
12748 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
12749 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
12750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12751 fi
12752 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
12753 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
12754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12755 fi
12756 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
12757 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
12758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12759 fi
12760 if test -z "${HAVE_PYTHON2_PROBES_TRUE}" && test -z "${HAVE_PYTHON2_PROBES_FALSE}"; then
12761 as_fn_error $? "conditional \"HAVE_PYTHON2_PROBES\" was never defined.
12762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12763 fi
12764 if test -z "${HAVE_PYTHON3_PROBES_TRUE}" && test -z "${HAVE_PYTHON3_PROBES_FALSE}"; then
12765 as_fn_error $? "conditional \"HAVE_PYTHON3_PROBES\" was never defined.
12766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12767 fi
12768 if test -z "${HAVE_PYTHON_PROBES_TRUE}" && test -z "${HAVE_PYTHON_PROBES_FALSE}"; then
12769 as_fn_error $? "conditional \"HAVE_PYTHON_PROBES\" was never defined.
12770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12771 fi
12772 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
12773 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
12774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12775 fi
12776 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
12777 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
12778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12779 fi
12780 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
12781 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
12782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12783 fi
12784 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
12785 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
12786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12787 fi
12788
12789 : "${CONFIG_STATUS=./config.status}"
12790 ac_write_fail=0
12791 ac_clean_files_save=$ac_clean_files
12792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12795 as_write_fail=0
12796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12797 #! $SHELL
12798 # Generated by $as_me.
12799 # Run this file to recreate the current configuration.
12800 # Compiler output produced by configure, useful for debugging
12801 # configure, is in config.log if it exists.
12802
12803 debug=false
12804 ac_cs_recheck=false
12805 ac_cs_silent=false
12806
12807 SHELL=\${CONFIG_SHELL-$SHELL}
12808 export SHELL
12809 _ASEOF
12810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12811 ## -------------------- ##
12812 ## M4sh Initialization. ##
12813 ## -------------------- ##
12814
12815 # Be more Bourne compatible
12816 DUALCASE=1; export DUALCASE # for MKS sh
12817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12818 emulate sh
12819 NULLCMD=:
12820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12821 # is contrary to our usage. Disable this feature.
12822 alias -g '${1+"$@"}'='"$@"'
12823 setopt NO_GLOB_SUBST
12824 else
12825 case `(set -o) 2>/dev/null` in #(
12826 *posix*) :
12827 set -o posix ;; #(
12828 *) :
12829 ;;
12830 esac
12831 fi
12832
12833
12834 as_nl='
12835 '
12836 export as_nl
12837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12841 # Prefer a ksh shell builtin over an external printf program on Solaris,
12842 # but without wasting forks for bash or zsh.
12843 if test -z "$BASH_VERSION$ZSH_VERSION" \
12844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12845 as_echo='print -r --'
12846 as_echo_n='print -rn --'
12847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12848 as_echo='printf %s\n'
12849 as_echo_n='printf %s'
12850 else
12851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12853 as_echo_n='/usr/ucb/echo -n'
12854 else
12855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12856 as_echo_n_body='eval
12857 arg=$1;
12858 case $arg in #(
12859 *"$as_nl"*)
12860 expr "X$arg" : "X\\(.*\\)$as_nl";
12861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12862 esac;
12863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12864 '
12865 export as_echo_n_body
12866 as_echo_n='sh -c $as_echo_n_body as_echo'
12867 fi
12868 export as_echo_body
12869 as_echo='sh -c $as_echo_body as_echo'
12870 fi
12871
12872 # The user is always right.
12873 if test "${PATH_SEPARATOR+set}" != set; then
12874 PATH_SEPARATOR=:
12875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12877 PATH_SEPARATOR=';'
12878 }
12879 fi
12880
12881
12882 # IFS
12883 # We need space, tab and new line, in precisely that order. Quoting is
12884 # there to prevent editors from complaining about space-tab.
12885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12886 # splitting by setting IFS to empty value.)
12887 IFS=" "" $as_nl"
12888
12889 # Find who we are. Look in the path if we contain no directory separator.
12890 as_myself=
12891 case $0 in #((
12892 *[\\/]* ) as_myself=$0 ;;
12893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12899 done
12900 IFS=$as_save_IFS
12901
12902 ;;
12903 esac
12904 # We did not find ourselves, most probably we were run as `sh COMMAND'
12905 # in which case we are not to be found in the path.
12906 if test "x$as_myself" = x; then
12907 as_myself=$0
12908 fi
12909 if test ! -f "$as_myself"; then
12910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12911 exit 1
12912 fi
12913
12914 # Unset variables that we do not need and which cause bugs (e.g. in
12915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12916 # suppresses any "Segmentation fault" message there. '((' could
12917 # trigger a bug in pdksh 5.2.14.
12918 for as_var in BASH_ENV ENV MAIL MAILPATH
12919 do eval test x\${$as_var+set} = xset \
12920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12921 done
12922 PS1='$ '
12923 PS2='> '
12924 PS4='+ '
12925
12926 # NLS nuisances.
12927 LC_ALL=C
12928 export LC_ALL
12929 LANGUAGE=C
12930 export LANGUAGE
12931
12932 # CDPATH.
12933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12934
12935
12936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12937 # ----------------------------------------
12938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12940 # script with STATUS, using 1 if that was 0.
12941 as_fn_error ()
12942 {
12943 as_status=$1; test $as_status -eq 0 && as_status=1
12944 if test "$4"; then
12945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12947 fi
12948 $as_echo "$as_me: error: $2" >&2
12949 as_fn_exit $as_status
12950 } # as_fn_error
12951
12952
12953 # as_fn_set_status STATUS
12954 # -----------------------
12955 # Set $? to STATUS, without forking.
12956 as_fn_set_status ()
12957 {
12958 return $1
12959 } # as_fn_set_status
12960
12961 # as_fn_exit STATUS
12962 # -----------------
12963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12964 as_fn_exit ()
12965 {
12966 set +e
12967 as_fn_set_status $1
12968 exit $1
12969 } # as_fn_exit
12970
12971 # as_fn_unset VAR
12972 # ---------------
12973 # Portably unset VAR.
12974 as_fn_unset ()
12975 {
12976 { eval $1=; unset $1;}
12977 }
12978 as_unset=as_fn_unset
12979 # as_fn_append VAR VALUE
12980 # ----------------------
12981 # Append the text in VALUE to the end of the definition contained in VAR. Take
12982 # advantage of any shell optimizations that allow amortized linear growth over
12983 # repeated appends, instead of the typical quadratic growth present in naive
12984 # implementations.
12985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12986 eval 'as_fn_append ()
12987 {
12988 eval $1+=\$2
12989 }'
12990 else
12991 as_fn_append ()
12992 {
12993 eval $1=\$$1\$2
12994 }
12995 fi # as_fn_append
12996
12997 # as_fn_arith ARG...
12998 # ------------------
12999 # Perform arithmetic evaluation on the ARGs, and store the result in the
13000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13001 # must be portable across $(()) and expr.
13002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13003 eval 'as_fn_arith ()
13004 {
13005 as_val=$(( $* ))
13006 }'
13007 else
13008 as_fn_arith ()
13009 {
13010 as_val=`expr "$@" || test $? -eq 1`
13011 }
13012 fi # as_fn_arith
13013
13014
13015 if expr a : '\(a\)' >/dev/null 2>&1 &&
13016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13017 as_expr=expr
13018 else
13019 as_expr=false
13020 fi
13021
13022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13023 as_basename=basename
13024 else
13025 as_basename=false
13026 fi
13027
13028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13029 as_dirname=dirname
13030 else
13031 as_dirname=false
13032 fi
13033
13034 as_me=`$as_basename -- "$0" ||
13035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13036 X"$0" : 'X\(//\)$' \| \
13037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13038 $as_echo X/"$0" |
13039 sed '/^.*\/\([^/][^/]*\)\/*$/{
13040 s//\1/
13041 q
13042 }
13043 /^X\/\(\/\/\)$/{
13044 s//\1/
13045 q
13046 }
13047 /^X\/\(\/\).*/{
13048 s//\1/
13049 q
13050 }
13051 s/.*/./; q'`
13052
13053 # Avoid depending upon Character Ranges.
13054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13057 as_cr_digits='0123456789'
13058 as_cr_alnum=$as_cr_Letters$as_cr_digits
13059
13060 ECHO_C= ECHO_N= ECHO_T=
13061 case `echo -n x` in #(((((
13062 -n*)
13063 case `echo 'xy\c'` in
13064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13065 xy) ECHO_C='\c';;
13066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13067 ECHO_T=' ';;
13068 esac;;
13069 *)
13070 ECHO_N='-n';;
13071 esac
13072
13073 rm -f conf$$ conf$$.exe conf$$.file
13074 if test -d conf$$.dir; then
13075 rm -f conf$$.dir/conf$$.file
13076 else
13077 rm -f conf$$.dir
13078 mkdir conf$$.dir 2>/dev/null
13079 fi
13080 if (echo >conf$$.file) 2>/dev/null; then
13081 if ln -s conf$$.file conf$$ 2>/dev/null; then
13082 as_ln_s='ln -s'
13083 # ... but there are two gotchas:
13084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13086 # In both cases, we have to default to `cp -pR'.
13087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13088 as_ln_s='cp -pR'
13089 elif ln conf$$.file conf$$ 2>/dev/null; then
13090 as_ln_s=ln
13091 else
13092 as_ln_s='cp -pR'
13093 fi
13094 else
13095 as_ln_s='cp -pR'
13096 fi
13097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13098 rmdir conf$$.dir 2>/dev/null
13099
13100
13101 # as_fn_mkdir_p
13102 # -------------
13103 # Create "$as_dir" as a directory, including parents if necessary.
13104 as_fn_mkdir_p ()
13105 {
13106
13107 case $as_dir in #(
13108 -*) as_dir=./$as_dir;;
13109 esac
13110 test -d "$as_dir" || eval $as_mkdir_p || {
13111 as_dirs=
13112 while :; do
13113 case $as_dir in #(
13114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13115 *) as_qdir=$as_dir;;
13116 esac
13117 as_dirs="'$as_qdir' $as_dirs"
13118 as_dir=`$as_dirname -- "$as_dir" ||
13119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13120 X"$as_dir" : 'X\(//\)[^/]' \| \
13121 X"$as_dir" : 'X\(//\)$' \| \
13122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13123 $as_echo X"$as_dir" |
13124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13125 s//\1/
13126 q
13127 }
13128 /^X\(\/\/\)[^/].*/{
13129 s//\1/
13130 q
13131 }
13132 /^X\(\/\/\)$/{
13133 s//\1/
13134 q
13135 }
13136 /^X\(\/\).*/{
13137 s//\1/
13138 q
13139 }
13140 s/.*/./; q'`
13141 test -d "$as_dir" && break
13142 done
13143 test -z "$as_dirs" || eval "mkdir $as_dirs"
13144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13145
13146
13147 } # as_fn_mkdir_p
13148 if mkdir -p . 2>/dev/null; then
13149 as_mkdir_p='mkdir -p "$as_dir"'
13150 else
13151 test -d ./-p && rmdir ./-p
13152 as_mkdir_p=false
13153 fi
13154
13155
13156 # as_fn_executable_p FILE
13157 # -----------------------
13158 # Test if FILE is an executable regular file.
13159 as_fn_executable_p ()
13160 {
13161 test -f "$1" && test -x "$1"
13162 } # as_fn_executable_p
13163 as_test_x='test -x'
13164 as_executable_p=as_fn_executable_p
13165
13166 # Sed expression to map a string onto a valid CPP name.
13167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13168
13169 # Sed expression to map a string onto a valid variable name.
13170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13171
13172
13173 exec 6>&1
13174 ## ----------------------------------- ##
13175 ## Main body of $CONFIG_STATUS script. ##
13176 ## ----------------------------------- ##
13177 _ASEOF
13178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13179
13180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181 # Save the log message, to keep $0 and so on meaningful, and to
13182 # report actual input values of CONFIG_FILES etc. instead of their
13183 # values after options handling.
13184 ac_log="
13185 This file was extended by systemtap $as_me 3.1, which was
13186 generated by GNU Autoconf 2.69. Invocation command line was
13187
13188 CONFIG_FILES = $CONFIG_FILES
13189 CONFIG_HEADERS = $CONFIG_HEADERS
13190 CONFIG_LINKS = $CONFIG_LINKS
13191 CONFIG_COMMANDS = $CONFIG_COMMANDS
13192 $ $0 $@
13193
13194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13195 "
13196
13197 _ACEOF
13198
13199 case $ac_config_files in *"
13200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13201 esac
13202
13203 case $ac_config_headers in *"
13204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13205 esac
13206
13207
13208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13209 # Files that config.status was made for.
13210 config_files="$ac_config_files"
13211 config_headers="$ac_config_headers"
13212 config_commands="$ac_config_commands"
13213
13214 _ACEOF
13215
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 ac_cs_usage="\
13218 \`$as_me' instantiates files and other configuration actions
13219 from templates according to the current configuration. Unless the files
13220 and actions are specified as TAGs, all are instantiated by default.
13221
13222 Usage: $0 [OPTION]... [TAG]...
13223
13224 -h, --help print this help, then exit
13225 -V, --version print version number and configuration settings, then exit
13226 --config print configuration, then exit
13227 -q, --quiet, --silent
13228 do not print progress messages
13229 -d, --debug don't remove temporary files
13230 --recheck update $as_me by reconfiguring in the same conditions
13231 --file=FILE[:TEMPLATE]
13232 instantiate the configuration file FILE
13233 --header=FILE[:TEMPLATE]
13234 instantiate the configuration header FILE
13235
13236 Configuration files:
13237 $config_files
13238
13239 Configuration headers:
13240 $config_headers
13241
13242 Configuration commands:
13243 $config_commands
13244
13245 Report bugs to <systemtap@sourceware.org>."
13246
13247 _ACEOF
13248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13250 ac_cs_version="\\
13251 systemtap config.status 3.1
13252 configured by $0, generated by GNU Autoconf 2.69,
13253 with options \\"\$ac_cs_config\\"
13254
13255 Copyright (C) 2012 Free Software Foundation, Inc.
13256 This config.status script is free software; the Free Software Foundation
13257 gives unlimited permission to copy, distribute and modify it."
13258
13259 ac_pwd='$ac_pwd'
13260 srcdir='$srcdir'
13261 INSTALL='$INSTALL'
13262 MKDIR_P='$MKDIR_P'
13263 AWK='$AWK'
13264 test -n "\$AWK" || AWK=awk
13265 _ACEOF
13266
13267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13268 # The default lists apply if the user does not specify any file.
13269 ac_need_defaults=:
13270 while test $# != 0
13271 do
13272 case $1 in
13273 --*=?*)
13274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13276 ac_shift=:
13277 ;;
13278 --*=)
13279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13280 ac_optarg=
13281 ac_shift=:
13282 ;;
13283 *)
13284 ac_option=$1
13285 ac_optarg=$2
13286 ac_shift=shift
13287 ;;
13288 esac
13289
13290 case $ac_option in
13291 # Handling of the options.
13292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13293 ac_cs_recheck=: ;;
13294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13295 $as_echo "$ac_cs_version"; exit ;;
13296 --config | --confi | --conf | --con | --co | --c )
13297 $as_echo "$ac_cs_config"; exit ;;
13298 --debug | --debu | --deb | --de | --d | -d )
13299 debug=: ;;
13300 --file | --fil | --fi | --f )
13301 $ac_shift
13302 case $ac_optarg in
13303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13304 '') as_fn_error $? "missing file argument" ;;
13305 esac
13306 as_fn_append CONFIG_FILES " '$ac_optarg'"
13307 ac_need_defaults=false;;
13308 --header | --heade | --head | --hea )
13309 $ac_shift
13310 case $ac_optarg in
13311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13312 esac
13313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13314 ac_need_defaults=false;;
13315 --he | --h)
13316 # Conflict between --help and --header
13317 as_fn_error $? "ambiguous option: \`$1'
13318 Try \`$0 --help' for more information.";;
13319 --help | --hel | -h )
13320 $as_echo "$ac_cs_usage"; exit ;;
13321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13323 ac_cs_silent=: ;;
13324
13325 # This is an error.
13326 -*) as_fn_error $? "unrecognized option: \`$1'
13327 Try \`$0 --help' for more information." ;;
13328
13329 *) as_fn_append ac_config_targets " $1"
13330 ac_need_defaults=false ;;
13331
13332 esac
13333 shift
13334 done
13335
13336 ac_configure_extra_args=
13337
13338 if $ac_cs_silent; then
13339 exec 6>/dev/null
13340 ac_configure_extra_args="$ac_configure_extra_args --silent"
13341 fi
13342
13343 _ACEOF
13344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345 if \$ac_cs_recheck; then
13346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13347 shift
13348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13349 CONFIG_SHELL='$SHELL'
13350 export CONFIG_SHELL
13351 exec "\$@"
13352 fi
13353
13354 _ACEOF
13355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356 exec 5>>config.log
13357 {
13358 echo
13359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13360 ## Running $as_me. ##
13361 _ASBOX
13362 $as_echo "$ac_log"
13363 } >&5
13364
13365 _ACEOF
13366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13367 #
13368 # INIT-COMMANDS
13369 #
13370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13371 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13372 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13373 # from automake < 1.5.
13374 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13375 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13376 LINGUAS="${LINGUAS-%UNSET%}"
13377
13378
13379 _ACEOF
13380
13381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382
13383 # Handling of arguments.
13384 for ac_config_target in $ac_config_targets
13385 do
13386 case $ac_config_target in
13387 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13388 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13389 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
13390 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13391 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13393 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13394 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13395 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13396 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
13397 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
13398 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
13399 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
13400 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
13401 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
13402 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
13403 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
13404 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
13405 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
13406 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
13407 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
13408 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
13409 "initscript/99stap/install") CONFIG_FILES="$CONFIG_FILES initscript/99stap/install" ;;
13410 "initscript/99stap/check") CONFIG_FILES="$CONFIG_FILES initscript/99stap/check" ;;
13411 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
13412 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
13413 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
13414 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
13415 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
13416 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13417 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
13418 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
13419 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
13420 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
13421 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
13422 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
13423
13424 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13425 esac
13426 done
13427
13428
13429 # If the user did not use the arguments to specify the items to instantiate,
13430 # then the envvar interface is used. Set only those that are not.
13431 # We use the long form for the default assignment because of an extremely
13432 # bizarre bug on SunOS 4.1.3.
13433 if $ac_need_defaults; then
13434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13437 fi
13438
13439 # Have a temporary directory for convenience. Make it in the build tree
13440 # simply because there is no reason against having it here, and in addition,
13441 # creating and moving files from /tmp can sometimes cause problems.
13442 # Hook for its removal unless debugging.
13443 # Note that there is a small window in which the directory will not be cleaned:
13444 # after its creation but before its name has been assigned to `$tmp'.
13445 $debug ||
13446 {
13447 tmp= ac_tmp=
13448 trap 'exit_status=$?
13449 : "${ac_tmp:=$tmp}"
13450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13451 ' 0
13452 trap 'as_fn_exit 1' 1 2 13 15
13453 }
13454 # Create a (secure) tmp directory for tmp files.
13455
13456 {
13457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13458 test -d "$tmp"
13459 } ||
13460 {
13461 tmp=./conf$$-$RANDOM
13462 (umask 077 && mkdir "$tmp")
13463 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13464 ac_tmp=$tmp
13465
13466 # Set up the scripts for CONFIG_FILES section.
13467 # No need to generate them if there are no CONFIG_FILES.
13468 # This happens for instance with `./config.status config.h'.
13469 if test -n "$CONFIG_FILES"; then
13470
13471
13472 ac_cr=`echo X | tr X '\015'`
13473 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13474 # But we know of no other shell where ac_cr would be empty at this
13475 # point, so we can use a bashism as a fallback.
13476 if test "x$ac_cr" = x; then
13477 eval ac_cr=\$\'\\r\'
13478 fi
13479 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13480 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13481 ac_cs_awk_cr='\\r'
13482 else
13483 ac_cs_awk_cr=$ac_cr
13484 fi
13485
13486 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13487 _ACEOF
13488
13489
13490 {
13491 echo "cat >conf$$subs.awk <<_ACEOF" &&
13492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13493 echo "_ACEOF"
13494 } >conf$$subs.sh ||
13495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13497 ac_delim='%!_!# '
13498 for ac_last_try in false false false false false :; do
13499 . ./conf$$subs.sh ||
13500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13501
13502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13503 if test $ac_delim_n = $ac_delim_num; then
13504 break
13505 elif $ac_last_try; then
13506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13507 else
13508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13509 fi
13510 done
13511 rm -f conf$$subs.sh
13512
13513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13514 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13515 _ACEOF
13516 sed -n '
13517 h
13518 s/^/S["/; s/!.*/"]=/
13519 p
13520 g
13521 s/^[^!]*!//
13522 :repl
13523 t repl
13524 s/'"$ac_delim"'$//
13525 t delim
13526 :nl
13527 h
13528 s/\(.\{148\}\)..*/\1/
13529 t more1
13530 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13531 p
13532 n
13533 b repl
13534 :more1
13535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13536 p
13537 g
13538 s/.\{148\}//
13539 t nl
13540 :delim
13541 h
13542 s/\(.\{148\}\)..*/\1/
13543 t more2
13544 s/["\\]/\\&/g; s/^/"/; s/$/"/
13545 p
13546 b
13547 :more2
13548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13549 p
13550 g
13551 s/.\{148\}//
13552 t delim
13553 ' <conf$$subs.awk | sed '
13554 /^[^""]/{
13555 N
13556 s/\n//
13557 }
13558 ' >>$CONFIG_STATUS || ac_write_fail=1
13559 rm -f conf$$subs.awk
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 _ACAWK
13562 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13563 for (key in S) S_is_set[key] = 1
13564 FS = "\a"
13565
13566 }
13567 {
13568 line = $ 0
13569 nfields = split(line, field, "@")
13570 substed = 0
13571 len = length(field[1])
13572 for (i = 2; i < nfields; i++) {
13573 key = field[i]
13574 keylen = length(key)
13575 if (S_is_set[key]) {
13576 value = S[key]
13577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13578 len += length(value) + length(field[++i])
13579 substed = 1
13580 } else
13581 len += 1 + keylen
13582 }
13583
13584 print line
13585 }
13586
13587 _ACAWK
13588 _ACEOF
13589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13592 else
13593 cat
13594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13596 _ACEOF
13597
13598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13600 # trailing colons and then remove the whole line if VPATH becomes empty
13601 # (actually we leave an empty line to preserve line numbers).
13602 if test "x$srcdir" = x.; then
13603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13604 h
13605 s///
13606 s/^/:/
13607 s/[ ]*$/:/
13608 s/:\$(srcdir):/:/g
13609 s/:\${srcdir}:/:/g
13610 s/:@srcdir@:/:/g
13611 s/^:*//
13612 s/:*$//
13613 x
13614 s/\(=[ ]*\).*/\1/
13615 G
13616 s/\n//
13617 s/^[^=]*=[ ]*$//
13618 }'
13619 fi
13620
13621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13622 fi # test -n "$CONFIG_FILES"
13623
13624 # Set up the scripts for CONFIG_HEADERS section.
13625 # No need to generate them if there are no CONFIG_HEADERS.
13626 # This happens for instance with `./config.status Makefile'.
13627 if test -n "$CONFIG_HEADERS"; then
13628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13629 BEGIN {
13630 _ACEOF
13631
13632 # Transform confdefs.h into an awk script `defines.awk', embedded as
13633 # here-document in config.status, that substitutes the proper values into
13634 # config.h.in to produce config.h.
13635
13636 # Create a delimiter string that does not exist in confdefs.h, to ease
13637 # handling of long lines.
13638 ac_delim='%!_!# '
13639 for ac_last_try in false false :; do
13640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13641 if test -z "$ac_tt"; then
13642 break
13643 elif $ac_last_try; then
13644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13645 else
13646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13647 fi
13648 done
13649
13650 # For the awk script, D is an array of macro values keyed by name,
13651 # likewise P contains macro parameters if any. Preserve backslash
13652 # newline sequences.
13653
13654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13655 sed -n '
13656 s/.\{148\}/&'"$ac_delim"'/g
13657 t rset
13658 :rset
13659 s/^[ ]*#[ ]*define[ ][ ]*/ /
13660 t def
13661 d
13662 :def
13663 s/\\$//
13664 t bsnl
13665 s/["\\]/\\&/g
13666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13667 D["\1"]=" \3"/p
13668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13669 d
13670 :bsnl
13671 s/["\\]/\\&/g
13672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13673 D["\1"]=" \3\\\\\\n"\\/p
13674 t cont
13675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13676 t cont
13677 d
13678 :cont
13679 n
13680 s/.\{148\}/&'"$ac_delim"'/g
13681 t clear
13682 :clear
13683 s/\\$//
13684 t bsnlc
13685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13686 d
13687 :bsnlc
13688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13689 b cont
13690 ' <confdefs.h | sed '
13691 s/'"$ac_delim"'/"\\\
13692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13693
13694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13695 for (key in D) D_is_set[key] = 1
13696 FS = "\a"
13697 }
13698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13699 line = \$ 0
13700 split(line, arg, " ")
13701 if (arg[1] == "#") {
13702 defundef = arg[2]
13703 mac1 = arg[3]
13704 } else {
13705 defundef = substr(arg[1], 2)
13706 mac1 = arg[2]
13707 }
13708 split(mac1, mac2, "(") #)
13709 macro = mac2[1]
13710 prefix = substr(line, 1, index(line, defundef) - 1)
13711 if (D_is_set[macro]) {
13712 # Preserve the white space surrounding the "#".
13713 print prefix "define", macro P[macro] D[macro]
13714 next
13715 } else {
13716 # Replace #undef with comments. This is necessary, for example,
13717 # in the case of _POSIX_SOURCE, which is predefined and required
13718 # on some systems where configure will not decide to define it.
13719 if (defundef == "undef") {
13720 print "/*", prefix defundef, macro, "*/"
13721 next
13722 }
13723 }
13724 }
13725 { print }
13726 _ACAWK
13727 _ACEOF
13728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13730 fi # test -n "$CONFIG_HEADERS"
13731
13732
13733 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13734 shift
13735 for ac_tag
13736 do
13737 case $ac_tag in
13738 :[FHLC]) ac_mode=$ac_tag; continue;;
13739 esac
13740 case $ac_mode$ac_tag in
13741 :[FHL]*:*);;
13742 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13743 :[FH]-) ac_tag=-:-;;
13744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13745 esac
13746 ac_save_IFS=$IFS
13747 IFS=:
13748 set x $ac_tag
13749 IFS=$ac_save_IFS
13750 shift
13751 ac_file=$1
13752 shift
13753
13754 case $ac_mode in
13755 :L) ac_source=$1;;
13756 :[FH])
13757 ac_file_inputs=
13758 for ac_f
13759 do
13760 case $ac_f in
13761 -) ac_f="$ac_tmp/stdin";;
13762 *) # Look for the file first in the build tree, then in the source tree
13763 # (if the path is not absolute). The absolute path cannot be DOS-style,
13764 # because $ac_f cannot contain `:'.
13765 test -f "$ac_f" ||
13766 case $ac_f in
13767 [\\/$]*) false;;
13768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13769 esac ||
13770 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13771 esac
13772 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13773 as_fn_append ac_file_inputs " '$ac_f'"
13774 done
13775
13776 # Let's still pretend it is `configure' which instantiates (i.e., don't
13777 # use $as_me), people would be surprised to read:
13778 # /* config.h. Generated by config.status. */
13779 configure_input='Generated from '`
13780 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13781 `' by configure.'
13782 if test x"$ac_file" != x-; then
13783 configure_input="$ac_file. $configure_input"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13785 $as_echo "$as_me: creating $ac_file" >&6;}
13786 fi
13787 # Neutralize special characters interpreted by sed in replacement strings.
13788 case $configure_input in #(
13789 *\&* | *\|* | *\\* )
13790 ac_sed_conf_input=`$as_echo "$configure_input" |
13791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13792 *) ac_sed_conf_input=$configure_input;;
13793 esac
13794
13795 case $ac_tag in
13796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13798 esac
13799 ;;
13800 esac
13801
13802 ac_dir=`$as_dirname -- "$ac_file" ||
13803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13804 X"$ac_file" : 'X\(//\)[^/]' \| \
13805 X"$ac_file" : 'X\(//\)$' \| \
13806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13807 $as_echo X"$ac_file" |
13808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13809 s//\1/
13810 q
13811 }
13812 /^X\(\/\/\)[^/].*/{
13813 s//\1/
13814 q
13815 }
13816 /^X\(\/\/\)$/{
13817 s//\1/
13818 q
13819 }
13820 /^X\(\/\).*/{
13821 s//\1/
13822 q
13823 }
13824 s/.*/./; q'`
13825 as_dir="$ac_dir"; as_fn_mkdir_p
13826 ac_builddir=.
13827
13828 case "$ac_dir" in
13829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13830 *)
13831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13832 # A ".." for each directory in $ac_dir_suffix.
13833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13834 case $ac_top_builddir_sub in
13835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13837 esac ;;
13838 esac
13839 ac_abs_top_builddir=$ac_pwd
13840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13841 # for backward compatibility:
13842 ac_top_builddir=$ac_top_build_prefix
13843
13844 case $srcdir in
13845 .) # We are building in place.
13846 ac_srcdir=.
13847 ac_top_srcdir=$ac_top_builddir_sub
13848 ac_abs_top_srcdir=$ac_pwd ;;
13849 [\\/]* | ?:[\\/]* ) # Absolute name.
13850 ac_srcdir=$srcdir$ac_dir_suffix;
13851 ac_top_srcdir=$srcdir
13852 ac_abs_top_srcdir=$srcdir ;;
13853 *) # Relative name.
13854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13855 ac_top_srcdir=$ac_top_build_prefix$srcdir
13856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13857 esac
13858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13859
13860
13861 case $ac_mode in
13862 :F)
13863 #
13864 # CONFIG_FILE
13865 #
13866
13867 case $INSTALL in
13868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13870 esac
13871 ac_MKDIR_P=$MKDIR_P
13872 case $MKDIR_P in
13873 [\\/$]* | ?:[\\/]* ) ;;
13874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13875 esac
13876 _ACEOF
13877
13878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13879 # If the template does not know about datarootdir, expand it.
13880 # FIXME: This hack should be removed a few years after 2.60.
13881 ac_datarootdir_hack=; ac_datarootdir_seen=
13882 ac_sed_dataroot='
13883 /datarootdir/ {
13884 p
13885 q
13886 }
13887 /@datadir@/p
13888 /@docdir@/p
13889 /@infodir@/p
13890 /@localedir@/p
13891 /@mandir@/p'
13892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13893 *datarootdir*) ac_datarootdir_seen=yes;;
13894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13897 _ACEOF
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 ac_datarootdir_hack='
13900 s&@datadir@&$datadir&g
13901 s&@docdir@&$docdir&g
13902 s&@infodir@&$infodir&g
13903 s&@localedir@&$localedir&g
13904 s&@mandir@&$mandir&g
13905 s&\\\${datarootdir}&$datarootdir&g' ;;
13906 esac
13907 _ACEOF
13908
13909 # Neutralize VPATH when `$srcdir' = `.'.
13910 # Shell code in configure.ac might set extrasub.
13911 # FIXME: do we really want to maintain this feature?
13912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913 ac_sed_extra="$ac_vpsub
13914 $extrasub
13915 _ACEOF
13916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13917 :t
13918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13919 s|@configure_input@|$ac_sed_conf_input|;t t
13920 s&@top_builddir@&$ac_top_builddir_sub&;t t
13921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13922 s&@srcdir@&$ac_srcdir&;t t
13923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13924 s&@top_srcdir@&$ac_top_srcdir&;t t
13925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13926 s&@builddir@&$ac_builddir&;t t
13927 s&@abs_builddir@&$ac_abs_builddir&;t t
13928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13929 s&@INSTALL@&$ac_INSTALL&;t t
13930 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13931 $ac_datarootdir_hack
13932 "
13933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13934 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13935
13936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13937 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13939 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13941 which seems to be undefined. Please make sure it is defined" >&5
13942 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13943 which seems to be undefined. Please make sure it is defined" >&2;}
13944
13945 rm -f "$ac_tmp/stdin"
13946 case $ac_file in
13947 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13948 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13949 esac \
13950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13951 ;;
13952 :H)
13953 #
13954 # CONFIG_HEADER
13955 #
13956 if test x"$ac_file" != x-; then
13957 {
13958 $as_echo "/* $configure_input */" \
13959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13960 } >"$ac_tmp/config.h" \
13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13962 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13964 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13965 else
13966 rm -f "$ac_file"
13967 mv "$ac_tmp/config.h" "$ac_file" \
13968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13969 fi
13970 else
13971 $as_echo "/* $configure_input */" \
13972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13973 || as_fn_error $? "could not create -" "$LINENO" 5
13974 fi
13975 # Compute "$ac_file"'s index in $config_headers.
13976 _am_arg="$ac_file"
13977 _am_stamp_count=1
13978 for _am_header in $config_headers :; do
13979 case $_am_header in
13980 $_am_arg | $_am_arg:* )
13981 break ;;
13982 * )
13983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13984 esac
13985 done
13986 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13987 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13988 X"$_am_arg" : 'X\(//\)[^/]' \| \
13989 X"$_am_arg" : 'X\(//\)$' \| \
13990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13991 $as_echo X"$_am_arg" |
13992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13993 s//\1/
13994 q
13995 }
13996 /^X\(\/\/\)[^/].*/{
13997 s//\1/
13998 q
13999 }
14000 /^X\(\/\/\)$/{
14001 s//\1/
14002 q
14003 }
14004 /^X\(\/\).*/{
14005 s//\1/
14006 q
14007 }
14008 s/.*/./; q'`/stamp-h$_am_stamp_count
14009 ;;
14010
14011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14012 $as_echo "$as_me: executing $ac_file commands" >&6;}
14013 ;;
14014 esac
14015
14016
14017 case $ac_file$ac_mode in
14018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14019 # Older Autoconf quotes --file arguments for eval, but not when files
14020 # are listed without --file. Let's play safe and only enable the eval
14021 # if we detect the quoting.
14022 case $CONFIG_FILES in
14023 *\'*) eval set x "$CONFIG_FILES" ;;
14024 *) set x $CONFIG_FILES ;;
14025 esac
14026 shift
14027 for mf
14028 do
14029 # Strip MF so we end up with the name of the file.
14030 mf=`echo "$mf" | sed -e 's/:.*$//'`
14031 # Check whether this is an Automake generated Makefile or not.
14032 # We used to match only the files named 'Makefile.in', but
14033 # some people rename them; so instead we look at the file content.
14034 # Grep'ing the first line is not enough: some people post-process
14035 # each Makefile.in and add a new line on top of each file to say so.
14036 # Grep'ing the whole file is not good either: AIX grep has a line
14037 # limit of 2048, but all sed's we know have understand at least 4000.
14038 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14039 dirpart=`$as_dirname -- "$mf" ||
14040 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14041 X"$mf" : 'X\(//\)[^/]' \| \
14042 X"$mf" : 'X\(//\)$' \| \
14043 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14044 $as_echo X"$mf" |
14045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\/\)[^/].*/{
14050 s//\1/
14051 q
14052 }
14053 /^X\(\/\/\)$/{
14054 s//\1/
14055 q
14056 }
14057 /^X\(\/\).*/{
14058 s//\1/
14059 q
14060 }
14061 s/.*/./; q'`
14062 else
14063 continue
14064 fi
14065 # Extract the definition of DEPDIR, am__include, and am__quote
14066 # from the Makefile without running 'make'.
14067 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14068 test -z "$DEPDIR" && continue
14069 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14070 test -z "$am__include" && continue
14071 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14072 # Find all dependency output files, they are included files with
14073 # $(DEPDIR) in their names. We invoke sed twice because it is the
14074 # simplest approach to changing $(DEPDIR) to its actual value in the
14075 # expansion.
14076 for file in `sed -n "
14077 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14078 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14079 # Make sure the directory exists.
14080 test -f "$dirpart/$file" && continue
14081 fdir=`$as_dirname -- "$file" ||
14082 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14083 X"$file" : 'X\(//\)[^/]' \| \
14084 X"$file" : 'X\(//\)$' \| \
14085 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14086 $as_echo X"$file" |
14087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\/\)[^/].*/{
14092 s//\1/
14093 q
14094 }
14095 /^X\(\/\/\)$/{
14096 s//\1/
14097 q
14098 }
14099 /^X\(\/\).*/{
14100 s//\1/
14101 q
14102 }
14103 s/.*/./; q'`
14104 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14105 # echo "creating $dirpart/$file"
14106 echo '# dummy' > "$dirpart/$file"
14107 done
14108 done
14109 }
14110 ;;
14111 "po-directories":C)
14112 for ac_file in $CONFIG_FILES; do
14113 # Support "outfile[:infile[:infile...]]"
14114 case "$ac_file" in
14115 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14116 esac
14117 # PO directories have a Makefile.in generated from Makefile.in.in.
14118 case "$ac_file" in */Makefile.in)
14119 # Adjust a relative srcdir.
14120 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14121 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14122 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14123 # In autoconf-2.13 it is called $ac_given_srcdir.
14124 # In autoconf-2.50 it is called $srcdir.
14125 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14126 case "$ac_given_srcdir" in
14127 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14128 /*) top_srcdir="$ac_given_srcdir" ;;
14129 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14130 esac
14131 # Treat a directory as a PO directory if and only if it has a
14132 # POTFILES.in file. This allows packages to have multiple PO
14133 # directories under different names or in different locations.
14134 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14135 rm -f "$ac_dir/POTFILES"
14136 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14137 gt_tab=`printf '\t'`
14138 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"
14139 POMAKEFILEDEPS="POTFILES.in"
14140 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14141 # on $ac_dir but don't depend on user-specified configuration
14142 # parameters.
14143 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14144 # The LINGUAS file contains the set of available languages.
14145 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14146 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14147 fi
14148 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14149 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14150 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14151 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14152 else
14153 # The set of available languages was given in configure.in.
14154 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14155 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14156 fi
14157 # Compute POFILES
14158 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14159 # Compute UPDATEPOFILES
14160 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14161 # Compute DUMMYPOFILES
14162 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14163 # Compute GMOFILES
14164 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14165 case "$ac_given_srcdir" in
14166 .) srcdirpre= ;;
14167 *) srcdirpre='$(srcdir)/' ;;
14168 esac
14169 POFILES=
14170 UPDATEPOFILES=
14171 DUMMYPOFILES=
14172 GMOFILES=
14173 for lang in $ALL_LINGUAS; do
14174 POFILES="$POFILES $srcdirpre$lang.po"
14175 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14176 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14177 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14178 done
14179 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14180 # environment variable.
14181 INST_LINGUAS=
14182 if test -n "$ALL_LINGUAS"; then
14183 for presentlang in $ALL_LINGUAS; do
14184 useit=no
14185 if test "%UNSET%" != "$LINGUAS"; then
14186 desiredlanguages="$LINGUAS"
14187 else
14188 desiredlanguages="$ALL_LINGUAS"
14189 fi
14190 for desiredlang in $desiredlanguages; do
14191 # Use the presentlang catalog if desiredlang is
14192 # a. equal to presentlang, or
14193 # b. a variant of presentlang (because in this case,
14194 # presentlang can be used as a fallback for messages
14195 # which are not translated in the desiredlang catalog).
14196 case "$desiredlang" in
14197 "$presentlang"*) useit=yes;;
14198 esac
14199 done
14200 if test $useit = yes; then
14201 INST_LINGUAS="$INST_LINGUAS $presentlang"
14202 fi
14203 done
14204 fi
14205 CATALOGS=
14206 if test -n "$INST_LINGUAS"; then
14207 for lang in $INST_LINGUAS; do
14208 CATALOGS="$CATALOGS $lang.gmo"
14209 done
14210 fi
14211 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14212 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"
14213 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14214 if test -f "$f"; then
14215 case "$f" in
14216 *.orig | *.bak | *~) ;;
14217 *) cat "$f" >> "$ac_dir/Makefile" ;;
14218 esac
14219 fi
14220 done
14221 fi
14222 ;;
14223 esac
14224 done ;;
14225 "run-stap":F) chmod +x run-stap ;;
14226 "dtrace":F) chmod +x dtrace ;;
14227 "java/stapbm":F) chmod +x java/stapbm ;;
14228 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14229 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14230 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14231 "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 ;;
14232
14233 esac
14234 done # for ac_tag
14235
14236
14237 as_fn_exit 0
14238 _ACEOF
14239 ac_clean_files=$ac_clean_files_save
14240
14241 test $ac_write_fail = 0 ||
14242 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14243
14244
14245 # configure is writing to config.log, and then calls config.status.
14246 # config.status does its own redirection, appending to config.log.
14247 # Unfortunately, on DOS this fails, as config.log is still kept open
14248 # by configure, so config.status won't be able to write to it; its
14249 # output is simply discarded. So we exec the FD to /dev/null,
14250 # effectively closing config.log, so it can be properly (re)opened and
14251 # appended to by config.status. When coming back to configure, we
14252 # need to make the FD available again.
14253 if test "$no_create" != yes; then
14254 ac_cs_success=:
14255 ac_config_status_args=
14256 test "$silent" = yes &&
14257 ac_config_status_args="$ac_config_status_args --quiet"
14258 exec 5>/dev/null
14259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14260 exec 5>>config.log
14261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14262 # would make configure fail if this is the last instruction.
14263 $ac_cs_success || as_fn_exit 1
14264 fi
14265
14266 #
14267 # CONFIG_SUBDIRS section.
14268 #
14269 if test "$no_recursion" != yes; then
14270
14271 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14272 # so they do not pile up.
14273 ac_sub_configure_args=
14274 ac_prev=
14275 eval "set x $ac_configure_args"
14276 shift
14277 for ac_arg
14278 do
14279 if test -n "$ac_prev"; then
14280 ac_prev=
14281 continue
14282 fi
14283 case $ac_arg in
14284 -cache-file | --cache-file | --cache-fil | --cache-fi \
14285 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14286 ac_prev=cache_file ;;
14287 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14288 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14289 | --c=*)
14290 ;;
14291 --config-cache | -C)
14292 ;;
14293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14294 ac_prev=srcdir ;;
14295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14296 ;;
14297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14298 ac_prev=prefix ;;
14299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14300 ;;
14301 --disable-option-checking)
14302 ;;
14303 *)
14304 case $ac_arg in
14305 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14306 esac
14307 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14308 esac
14309 done
14310
14311 # Always prepend --prefix to ensure using the same prefix
14312 # in subdir configurations.
14313 ac_arg="--prefix=$prefix"
14314 case $ac_arg in
14315 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14316 esac
14317 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14318
14319 # Pass --silent
14320 if test "$silent" = yes; then
14321 ac_sub_configure_args="--silent $ac_sub_configure_args"
14322 fi
14323
14324 # Always prepend --disable-option-checking to silence warnings, since
14325 # different subdirs can have different --enable and --with options.
14326 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14327
14328 ac_popdir=`pwd`
14329 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14330
14331 # Do not complain, so a configure script can configure whichever
14332 # parts of a large source tree are present.
14333 test -d "$srcdir/$ac_dir" || continue
14334
14335 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14337 $as_echo "$ac_msg" >&6
14338 as_dir="$ac_dir"; as_fn_mkdir_p
14339 ac_builddir=.
14340
14341 case "$ac_dir" in
14342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14343 *)
14344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14345 # A ".." for each directory in $ac_dir_suffix.
14346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14347 case $ac_top_builddir_sub in
14348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14350 esac ;;
14351 esac
14352 ac_abs_top_builddir=$ac_pwd
14353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14354 # for backward compatibility:
14355 ac_top_builddir=$ac_top_build_prefix
14356
14357 case $srcdir in
14358 .) # We are building in place.
14359 ac_srcdir=.
14360 ac_top_srcdir=$ac_top_builddir_sub
14361 ac_abs_top_srcdir=$ac_pwd ;;
14362 [\\/]* | ?:[\\/]* ) # Absolute name.
14363 ac_srcdir=$srcdir$ac_dir_suffix;
14364 ac_top_srcdir=$srcdir
14365 ac_abs_top_srcdir=$srcdir ;;
14366 *) # Relative name.
14367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14368 ac_top_srcdir=$ac_top_build_prefix$srcdir
14369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14370 esac
14371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14372
14373
14374 cd "$ac_dir"
14375
14376 # Check for guested configure; otherwise get Cygnus style configure.
14377 if test -f "$ac_srcdir/configure.gnu"; then
14378 ac_sub_configure=$ac_srcdir/configure.gnu
14379 elif test -f "$ac_srcdir/configure"; then
14380 ac_sub_configure=$ac_srcdir/configure
14381 elif test -f "$ac_srcdir/configure.in"; then
14382 # This should be Cygnus configure.
14383 ac_sub_configure=$ac_aux_dir/configure
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14387 ac_sub_configure=
14388 fi
14389
14390 # The recursion is here.
14391 if test -n "$ac_sub_configure"; then
14392 # Make the cache file name correct relative to the subdirectory.
14393 case $cache_file in
14394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14395 *) # Relative name.
14396 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14397 esac
14398
14399 { $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
14400 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14401 # The eval makes quoting arguments work.
14402 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14403 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14404 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14405 fi
14406
14407 cd "$ac_popdir"
14408 done
14409 fi
14410 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14412 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14413 fi
14414
14415
14416 if test "${prefix}" = "/usr/local"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14418 $as_echo "$as_me: " >&6;}
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
14420 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
14422 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
14424 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
14426 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
14428 $as_echo "$as_me: is not supported." >&6;}
14429 fi
This page took 0.759678 seconds and 6 git commands to generate.