Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for aide 0.19.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # contradicts POSIX and common usage. Disable this.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 case $# in # ((
133 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
134 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
135 esac
136 # Admittedly, this is quite paranoid, since all the known shells bail
137 # out after a failed 'exec'.
138 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
139 exit 255
140 fi
141 # We don't want this to propagate to other subprocesses.
142 { _as_can_reexec=; unset _as_can_reexec;}
143 if test "x$CONFIG_SHELL" = x; then
144 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # contradicts POSIX and common usage. Disable this.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else case e in #(
153 e) case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac ;;
159 esac
160 fi
161 "
162 as_required="as_fn_return () { (exit \$1); }
163 as_fn_success () { as_fn_return 0; }
164 as_fn_failure () { as_fn_return 1; }
165 as_fn_ret_success () { return 0; }
166 as_fn_ret_failure () { return 1; }
167
168 exitcode=0
169 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
170 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
171 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
172 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
173 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 then :
175
176 else case e in #(
177 e) exitcode=1; echo positional parameters were not saved. ;;
178 esac
179 fi
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
183 test -x / || exit 1"
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188 test \$(( 1 + 1 )) = 2 || exit 1"
189 if (eval "$as_required") 2>/dev/null
190 then :
191 as_have_required=yes
192 else case e in #(
193 e) as_have_required=no ;;
194 esac
195 fi
196 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
197 then :
198
199 else case e in #(
200 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
201 as_found=false
202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
203 do
204 IFS=$as_save_IFS
205 case $as_dir in #(((
206 '') as_dir=./ ;;
207 */) ;;
208 *) as_dir=$as_dir/ ;;
209 esac
210 as_found=:
211 case $as_dir in #(
212 /*)
213 for as_base in sh bash ksh sh5; do
214 # Try only shells that exist, to save several forks.
215 as_shell=$as_dir$as_base
216 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
217 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
218 then :
219 CONFIG_SHELL=$as_shell as_have_required=yes
220 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
221 then :
222 break 2
223 fi
224 fi
225 done;;
226 esac
227 as_found=false
228 done
229 IFS=$as_save_IFS
230 if $as_found
231 then :
232
233 else case e in #(
234 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
236 then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
238 fi ;;
239 esac
240 fi
241
242
243 if test "x$CONFIG_SHELL" != x
244 then :
245 export CONFIG_SHELL
246 # We cannot yet assume a decent shell, so we have to provide a
247 # neutralization value for shells without unset; and this also
248 # works around shells that cannot unset nonexistent variables.
249 # Preserve -v and -x to the replacement shell.
250 BASH_ENV=/dev/null
251 ENV=/dev/null
252 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253 case $- in # ((((
254 *v*x* | *x*v* ) as_opts=-vx ;;
255 *v* ) as_opts=-v ;;
256 *x* ) as_opts=-x ;;
257 * ) as_opts= ;;
258 esac
259 case $# in # ((
260 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
261 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
262 esac
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed 'exec'.
265 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
267 fi
268
269 if test x$as_have_required = xno
270 then :
271 printf '%s\n' "$0: This script requires a shell more modern than all"
272 printf '%s\n' "$0: the shells that I found on your system."
273 if test ${ZSH_VERSION+y} ; then
274 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 printf '%s\n' "$0: Please tell [email protected] about your system,
278 $0: including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi ;;
284 esac
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf '%s\n' X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else case e in #(
392 e) as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 } ;;
396 esac
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else case e in #(
411 e) as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 } ;;
415 esac
416 fi # as_fn_arith
417
418
419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
420 # ----------------------------------------
421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
423 # script with STATUS, using 1 if that was 0.
424 as_fn_error ()
425 {
426 as_status=$1; test $as_status -eq 0 && as_status=1
427 if test "$4"; then
428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
429 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
430 fi
431 printf '%s\n' "$as_me: error: $2" >&2
432 as_fn_exit $as_status
433 } # as_fn_error
434
435 if expr a : '\(a\)' >/dev/null 2>&1 &&
436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 as_expr=expr
438 else
439 as_expr=false
440 fi
441
442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 as_basename=basename
444 else
445 as_basename=false
446 fi
447
448 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_dirname=dirname
450 else
451 as_dirname=false
452 fi
453
454 as_me=`$as_basename -- "$0" ||
455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
456 X"$0" : 'X\(//\)$' \| \
457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
458 printf '%s\n' X/"$0" |
459 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\/\)$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\).*/{
468 s//\1/
469 q
470 }
471 s/.*/./; q'`
472
473 # Avoid depending upon Character Ranges.
474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
477 as_cr_digits='0123456789'
478 as_cr_alnum=$as_cr_Letters$as_cr_digits
479
480
481 as_lineno_1=$LINENO as_lineno_1a=$LINENO
482 as_lineno_2=$LINENO as_lineno_2a=$LINENO
483 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
484 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
485 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 sed -n '
487 p
488 /[$]LINENO/=
489 ' <$as_myself |
490 sed '
491 t clear
492 :clear
493 s/[$]LINENO.*/&-/
494 t lineno
495 b
496 :lineno
497 N
498 :loop
499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
500 t loop
501 s/-\n.*//
502 ' >$as_me.lineno &&
503 chmod +x "$as_me.lineno" ||
504 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
505
506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
507 # already done that, so ensure we don't try to do so again and fall
508 # in an infinite loop. This has already happened in practice.
509 _as_can_reexec=no; export _as_can_reexec
510 # Don't try to exec as it changes $[0], causing all sort of problems
511 # (the dirname of $[0] is not the place where we might find the
512 # original and so on. Autoconf is especially sensitive to this).
513 . "./$as_me.lineno"
514 # Exit status is that of the last command.
515 exit
516 }
517
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
521 else
522 rm -f conf$$.dir
523 mkdir conf$$.dir 2>/dev/null
524 fi
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s='ln -s'
528 # ... but there are two gotchas:
529 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
531 # In both cases, we have to default to 'cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 as_ln_s='cp -pR'
534 elif ln conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s=ln
536 else
537 as_ln_s='cp -pR'
538 fi
539 else
540 as_ln_s='cp -pR'
541 fi
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
544
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
550 fi
551
552 as_test_x='test -x'
553 as_executable_p=as_fn_executable_p
554
555 # Sed expression to map a string onto a valid CPP name.
556 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
557 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
558
559 # Sed expression to map a string onto a valid variable name.
560 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
562
563
564 test -n "$DJDIR" || exec 7<&0 </dev/null
565 exec 6>&1
566
567 # Name of the host.
568 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
569 # so uname gets run too.
570 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571
572 #
573 # Initializations.
574 #
575 ac_default_prefix=/usr/local
576 ac_clean_CONFIG_STATUS=
577 ac_clean_files=
578 ac_config_libobj_dir=.
579 LIBOBJS=
580 cross_compiling=no
581 subdirs=
582 MFLAGS=
583 MAKEFLAGS=
584
585 # Identity of this package.
586 PACKAGE_NAME='aide'
587 PACKAGE_TARNAME='aide'
588 PACKAGE_VERSION='0.19.4'
589 PACKAGE_STRING='aide 0.19.4'
590 PACKAGE_BUGREPORT=''
591 PACKAGE_URL=''
592
593 # Factoring default headers for most tests.
594 ac_includes_default="\
595 #include <stddef.h>
596 #ifdef HAVE_STDIO_H
597 # include <stdio.h>
598 #endif
599 #ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 #endif
602 #ifdef HAVE_STRING_H
603 # include <string.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_SYS_TYPES_H
615 # include <sys/types.h>
616 #endif
617 #ifdef HAVE_SYS_STAT_H
618 # include <sys/stat.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_header_c_list=
625 : ${enable_year2038:=no}
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 AIDE_DEFS
631 HAVE_CHECK_FALSE
632 HAVE_CHECK_TRUE
633 CHECK_LIBS
634 CHECK_CFLAGS
635 HAVE_LOCALE_FALSE
636 HAVE_LOCALE_TRUE
637 HAVE_AUDIT_FALSE
638 HAVE_AUDIT_TRUE
639 AUDIT_LIBS
640 AUDIT_CFLAGS
641 HAVE_GCRYPT_FALSE
642 HAVE_GCRYPT_TRUE
643 HAVE_NETTLE_FALSE
644 HAVE_NETTLE_TRUE
645 GCRYPT_LIBS
646 GCRYPT_CFLAGS
647 NETTLE_LIBS
648 NETTLE_CFLAGS
649 HAVE_CURL_FALSE
650 HAVE_CURL_TRUE
651 CURL_LIBS
652 CURL_CFLAGS
653 HAVE_E2FSATTRS_FALSE
654 HAVE_E2FSATTRS_TRUE
655 E2FSATTRS_LIBS
656 E2FSATTRS_CFLAGS
657 HAVE_CAPABILITIES_FALSE
658 HAVE_CAPABILITIES_TRUE
659 CAPABILITIES_LIBS
660 CAPABILITIES_CFLAGS
661 HAVE_XATTR_FALSE
662 HAVE_XATTR_TRUE
663 XATTR_LIBS
664 XATTR_CFLAGS
665 HAVE_SELINUX_FALSE
666 HAVE_SELINUX_TRUE
667 SELINUX_LIBS
668 SELINUX_CFLAGS
669 HAVE_POSIX_ACL_FALSE
670 HAVE_POSIX_ACL_TRUE
671 POSIX_ACL_LIBS
672 POSIX_ACL_CFLAGS
673 HAVE_ZLIB_FALSE
674 HAVE_ZLIB_TRUE
675 ZLIB_LIBS
676 ZLIB_CFLAGS
677 PTHREAD_CFLAGS
678 PTHREAD_LIBS
679 PTHREAD_CXX
680 PTHREAD_CC
681 ax_pthread_config
682 CPP
683 SED
684 PCRE2_LIBS
685 PCRE2_CFLAGS
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 LD
690 LEXLIB
691 LEX_OUTPUT_ROOT
692 LEX
693 YFLAGS
694 YACC
695 RANLIB
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 am__xargs_n
713 am__rm_f_notfound
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 CSCOPE
719 ETAGS
720 CTAGS
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 runstatedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL
795 am__quote'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_silent_rules
800 enable_dependency_tracking
801 enable_largefile
802 with_extra_includes
803 with_extra_libs
804 with_extra_link_libs
805 enable_static
806 with_fstype
807 with_zlib
808 with_posix_acl
809 with_selinux
810 with_xattr
811 with_capabilities
812 with_e2fsattrs
813 with_curl
814 with_nettle
815 with_gcrypt
816 with_audit
817 with_locale
818 with_syslog_ident
819 with_syslog_logopt
820 with_syslog_priority
821 with_syslog_facility
822 with_config_file
823 enable_default_db
824 enable_year2038
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 YACC
835 YFLAGS
836 PKG_CONFIG
837 PKG_CONFIG_PATH
838 PKG_CONFIG_LIBDIR
839 PCRE2_CFLAGS
840 PCRE2_LIBS
841 CPP
842 ZLIB_CFLAGS
843 ZLIB_LIBS
844 POSIX_ACL_CFLAGS
845 POSIX_ACL_LIBS
846 SELINUX_CFLAGS
847 SELINUX_LIBS
848 XATTR_CFLAGS
849 XATTR_LIBS
850 CAPABILITIES_CFLAGS
851 CAPABILITIES_LIBS
852 E2FSATTRS_CFLAGS
853 E2FSATTRS_LIBS
854 CURL_CFLAGS
855 CURL_LIBS
856 NETTLE_CFLAGS
857 NETTLE_LIBS
858 GCRYPT_CFLAGS
859 GCRYPT_LIBS
860 AUDIT_CFLAGS
861 AUDIT_LIBS
862 CHECK_CFLAGS
863 CHECK_LIBS'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: '$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
993
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: '$ac_useropt'"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -runstatedir | --runstatedir | --runstatedi | --runstated \
1154 | --runstate | --runstat | --runsta | --runst | --runs \
1155 | --run | --ru | --r)
1156 ac_prev=runstatedir ;;
1157 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159 | --run=* | --ru=* | --r=*)
1160 runstatedir=$ac_optarg ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: '$ac_useropt'"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: '$ac_useropt'"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) as_fn_error $? "unrecognized option: '$ac_option'
1258 Try '$0 --help' for more information"
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1267 esac
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir runstatedir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: '$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 printf '%s\n' X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 'configure' configures aide 0.19.4 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print 'checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for '--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or '..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, 'make install' will install all the files in
1439 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than '$ac_default_prefix' using '--prefix',
1441 for instance '--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/aide]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 --target=TARGET configure for building compilers for TARGET [HOST]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of aide 0.19.4:";;
1485 esac
1486 cat <<\_ACEOF
1487
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-silent-rules less verbose build output (undo: "make V=1")
1493 --disable-silent-rules verbose build output (undo: "make V=0")
1494 --enable-dependency-tracking
1495 do not reject slow dependency extractors
1496 --disable-dependency-tracking
1497 speeds up one-time build
1498 --disable-largefile omit support for large files
1499 --enable-static enable static linking (might increase the security of aide, see README for details)
1500 --disable-default-db do not set default values for database_in and
1501 database_out config options
1502 --enable-year2038 support timestamps after 2038
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-extra-includes Specify additional paths with -I to find headerfiles
1508 --with-extra-libs Specify additional paths with -L to find libraries
1509 --with-extra-link-libs Specify additional libraries to link
1510 --without-fstype Disable file system type support for restricted
1511 rules (Linux only)
1512 --with-zlib use zlib compression (default: yes)
1513 --with-posix-acl use POSIX ACLs (default: no)
1514 --with-selinux use SELinux (default: no)
1515 --with-xattr use xattr (default: no)
1516 --with-capabilities use POSIX 1003.1e capabilities (default: no)
1517 --with-e2fsattrs use e2fsattrs (default: no)
1518 --with-curl use cURL (default: no)
1519 --with-nettle use Nettle crypto library (default: check)
1520 --with-gcrypt use GNU crypto library (default: check)
1521 --with-audit use Linux Auditing Framework (default: no)
1522 --with-locale locale (default: no)
1523 --with-syslog-ident syslog ident (default: "aide")
1524 --with-syslog-logopt syslog logopt (default: LOG_CONS)
1525 --with-syslog-priority syslog priority (default: LOG_NOTICE)
1526 --with-syslog-facility default syslog facility (default: LOG_LOCAL0)
1527 --with-config-file=config-file
1528 specify default config file (use
1529 --without-config-file to disable default config
1530 file)
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 YACC The 'Yet Another Compiler Compiler' implementation to use.
1541 Defaults to the first program found out of: 'bison -y', 'byacc',
1542 'yacc'.
1543 YFLAGS The list of arguments that will be passed by default to $YACC.
1544 This script will default YFLAGS to the empty string to avoid a
1545 default value of '-d' given by some make applications.
1546 PKG_CONFIG path to pkg-config utility
1547 PKG_CONFIG_PATH
1548 directories to add to pkg-config's search path
1549 PKG_CONFIG_LIBDIR
1550 path overriding pkg-config's built-in search path
1551 PCRE2_CFLAGS
1552 C compiler flags for PCRE2, overriding pkg-config
1553 PCRE2_LIBS linker flags for PCRE2, overriding pkg-config
1554 CPP C preprocessor
1555 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1556 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1557 POSIX_ACL_CFLAGS
1558 C compiler flags for POSIX_ACL, overriding pkg-config
1559 POSIX_ACL_LIBS
1560 linker flags for POSIX_ACL, overriding pkg-config
1561 SELINUX_CFLAGS
1562 C compiler flags for SELINUX, overriding pkg-config
1563 SELINUX_LIBS
1564 linker flags for SELINUX, overriding pkg-config
1565 XATTR_CFLAGS
1566 C compiler flags for XATTR, overriding pkg-config
1567 XATTR_LIBS linker flags for XATTR, overriding pkg-config
1568 CAPABILITIES_CFLAGS
1569 C compiler flags for CAPABILITIES, overriding pkg-config
1570 CAPABILITIES_LIBS
1571 linker flags for CAPABILITIES, overriding pkg-config
1572 E2FSATTRS_CFLAGS
1573 C compiler flags for E2FSATTRS, overriding pkg-config
1574 E2FSATTRS_LIBS
1575 linker flags for E2FSATTRS, overriding pkg-config
1576 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1577 CURL_LIBS linker flags for CURL, overriding pkg-config
1578 NETTLE_CFLAGS
1579 C compiler flags for NETTLE, overriding pkg-config
1580 NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
1581 GCRYPT_CFLAGS
1582 C compiler flags for GCRYPT, overriding pkg-config
1583 GCRYPT_LIBS linker flags for GCRYPT, overriding pkg-config
1584 AUDIT_CFLAGS
1585 C compiler flags for AUDIT, overriding pkg-config
1586 AUDIT_LIBS linker flags for AUDIT, overriding pkg-config
1587 CHECK_CFLAGS
1588 C compiler flags for CHECK, overriding pkg-config
1589 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1590
1591 Use these variables to override the choices made by 'configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to the package provider.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for configure.gnu first; this name is used for a wrapper for
1641 # Metaconfig's "Configure" on case-insensitive file systems.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 aide configure 0.19.4
1659 generated by GNU Autoconf 2.73
1660
1661 Copyright (C) 2026 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest.beam
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 printf '%s\n' "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext
1698 then :
1699 ac_retval=0
1700 else case e in #(
1701 e) printf '%s\n' "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1 ;;
1705 esac
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 printf '%s\n' "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 test -x conftest$ac_exeext
1740 }
1741 then :
1742 ac_retval=0
1743 else case e in #(
1744 e) printf '%s\n' "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1 ;;
1748 esac
1749 fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_link
1759
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 printf %s "checking for $2... " >&6; }
1768 if eval test \${$3+y}
1769 then :
1770 printf %s "(cached) " >&6
1771 else case e in #(
1772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776 #define $2 innocuous_$2
1777
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (void); below. */
1780
1781 #include <limits.h>
1782 #undef $2
1783
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 (void);
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1797
1798 int
1799 main (void)
1800 {
1801 return $2 ();
1802 ;
1803 return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"
1807 then :
1808 eval "$3=yes"
1809 else case e in #(
1810 e) eval "$3=no" ;;
1811 esac
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1814 conftest$ac_exeext conftest.$ac_ext ;;
1815 esac
1816 fi
1817 eval ac_res=\$$3
1818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf '%s\n' "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1827 # executables *can* be run.
1828 ac_fn_c_try_run ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 printf '%s\n' "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf '%s\n' "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }
1852 then :
1853 ac_retval=0
1854 else case e in #(
1855 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
1856 printf '%s\n' "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=$ac_status ;;
1860 esac
1861 fi
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_run
1867
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 printf %s "checking for $2... " >&6; }
1877 if eval test \${$3+y}
1878 then :
1879 printf %s "(cached) " >&6
1880 else case e in #(
1881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"
1887 then :
1888 eval "$3=yes"
1889 else case e in #(
1890 e) eval "$3=no" ;;
1891 esac
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1894 esac
1895 fi
1896 eval ac_res=\$$3
1897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf '%s\n' "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_header_compile
1902
1903 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1904 # -------------------------------------------
1905 # Tests whether TYPE exists after having included INCLUDES, setting cache
1906 # variable VAR accordingly.
1907 ac_fn_c_check_type ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 printf %s "checking for $2... " >&6; }
1912 if eval test \${$3+y}
1913 then :
1914 printf %s "(cached) " >&6
1915 else case e in #(
1916 e) eval "$3=no"
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main (void)
1922 {
1923 if (sizeof ($2))
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"
1930 then :
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main (void)
1936 {
1937 if (sizeof (($2)))
1938 return 0;
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"
1944 then :
1945
1946 else case e in #(
1947 e) eval "$3=yes" ;;
1948 esac
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1953 esac
1954 fi
1955 eval ac_res=\$$3
1956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 printf '%s\n' "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_type
1961
1962 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963 # --------------------------------------------
1964 # Tries to find the compile-time value of EXPR in a program that includes
1965 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1966 # computed
1967 ac_fn_c_compute_int ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $4
1975 int
1976 main (void)
1977 {
1978 static int test_array [1 - 2 * !(($2) >= 0)];
1979 test_array [0] = 0;
1980 return test_array [0];
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"
1987 then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 int
1994 main (void)
1995 {
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0;
1998 return test_array [0];
1999
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"
2005 then :
2006 ac_hi=$ac_mid; break
2007 else case e in #(
2008 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2009 if test $ac_lo -le $ac_mid; then
2010 ac_lo= ac_hi=
2011 break
2012 fi
2013 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2014 esac
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2017 done
2018 else case e in #(
2019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main (void)
2024 {
2025 static int test_array [1 - 2 * !(($2) < 0)];
2026 test_array [0] = 0;
2027 return test_array [0];
2028
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"
2034 then :
2035 ac_hi=-1 ac_mid=-1
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main (void)
2042 {
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"
2052 then :
2053 ac_lo=$ac_mid; break
2054 else case e in #(
2055 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056 if test $ac_mid -le $ac_hi; then
2057 ac_lo= ac_hi=
2058 break
2059 fi
2060 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2061 esac
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 done
2065 else case e in #(
2066 e) ac_lo= ac_hi= ;;
2067 esac
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 # Binary search between lo and hi bounds.
2074 while test "x$ac_lo" != "x$ac_hi"; do
2075 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main (void)
2081 {
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 test_array [0] = 0;
2084 return test_array [0];
2085
2086 ;
2087 return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"
2091 then :
2092 ac_hi=$ac_mid
2093 else case e in #(
2094 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2095 esac
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2098 done
2099 case $ac_lo in #((
2100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 '') ac_retval=1 ;;
2102 esac
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 static long int longval (void) { return $2; }
2108 static unsigned long int ulongval (void) { return $2; }
2109 #include <stdio.h>
2110 #include <stdlib.h>
2111 int
2112 main (void)
2113 {
2114
2115 FILE *f = fopen ("conftest.val", "w");
2116 if (! f)
2117 return 1;
2118 if (($2) < 0)
2119 {
2120 long int i = longval ();
2121 if (i != ($2))
2122 return 1;
2123 fprintf (f, "%ld", i);
2124 }
2125 else
2126 {
2127 unsigned long int i = ulongval ();
2128 if (i != ($2))
2129 return 1;
2130 fprintf (f, "%lu", i);
2131 }
2132 /* Do not output a trailing newline, as this causes \r\n confusion
2133 on some platforms. */
2134 return ferror (f) || fclose (f) != 0;
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_run "$LINENO"
2141 then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 else case e in #(
2144 e) ac_retval=1 ;;
2145 esac
2146 fi
2147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2148 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149 rm -f conftest.val
2150
2151 fi
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153 as_fn_set_status $ac_retval
2154
2155 } # ac_fn_c_compute_int
2156
2157 # ac_fn_c_try_cpp LINENO
2158 # ----------------------
2159 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2160 ac_fn_c_try_cpp ()
2161 {
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 if { { ac_try="$ac_cpp conftest.$ac_ext"
2164 case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167 esac
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 printf '%s\n' "$ac_try_echo"; } >&5
2170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2171 ac_status=$?
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2176 fi
2177 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } > conftest.i && {
2179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2180 test ! -s conftest.err
2181 }
2182 then :
2183 ac_retval=0
2184 else case e in #(
2185 e) printf '%s\n' "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 ac_retval=1 ;;
2189 esac
2190 fi
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_try_cpp
2195 ac_configure_args_raw=
2196 for ac_arg
2197 do
2198 case $ac_arg in
2199 *\'*)
2200 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 esac
2202 as_fn_append ac_configure_args_raw " '$ac_arg'"
2203 done
2204
2205 case $ac_configure_args_raw in
2206 *$as_nl*)
2207 ac_safe_unquote= ;;
2208 *)
2209 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2210 ac_unsafe_a="$ac_unsafe_z#~"
2211 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2212 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2213 esac
2214
2215 cat >config.log <<_ACEOF
2216 This file contains any messages produced by compilers while
2217 running configure, to aid debugging if configure makes a mistake.
2218
2219 It was created by aide $as_me 0.19.4, which was
2220 generated by GNU Autoconf 2.73. Invocation command line was
2221
2222 $ $0$ac_configure_args_raw
2223
2224 _ACEOF
2225 exec 5>>config.log
2226 {
2227 cat <<_ASUNAME
2228 ## --------- ##
2229 ## Platform. ##
2230 ## --------- ##
2231
2232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2237
2238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2240
2241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2248
2249 _ASUNAME
2250
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 case $as_dir in #(((
2256 '') as_dir=./ ;;
2257 */) ;;
2258 *) as_dir=$as_dir/ ;;
2259 esac
2260 printf '%s\n' "PATH: $as_dir"
2261 done
2262 IFS=$as_save_IFS
2263
2264 } >&5
2265
2266 cat >&5 <<_ACEOF
2267
2268
2269 ## ----------- ##
2270 ## Core tests. ##
2271 ## ----------- ##
2272
2273 _ACEOF
2274
2275
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_configure_args=
2282 ac_configure_args0=
2283 ac_configure_args1=
2284 ac_must_keep_next=false
2285 for ac_pass in 1 2
2286 do
2287 for ac_arg
2288 do
2289 case $ac_arg in
2290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292 | -silent | --silent | --silen | --sile | --sil)
2293 continue ;;
2294 *\'*)
2295 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 esac
2297 case $ac_pass in
2298 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299 2)
2300 as_fn_append ac_configure_args1 " '$ac_arg'"
2301 if test $ac_must_keep_next = true; then
2302 ac_must_keep_next=false # Got value, back to normal.
2303 else
2304 case $ac_arg in
2305 *=* | --config-cache | -C | -disable-* | --disable-* \
2306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308 | -with-* | --with-* | -without-* | --without-* | --x)
2309 case "$ac_configure_args0 " in
2310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2311 esac
2312 ;;
2313 -* ) ac_must_keep_next=true ;;
2314 esac
2315 fi
2316 as_fn_append ac_configure_args " '$ac_arg'"
2317 ;;
2318 esac
2319 done
2320 done
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2323
2324 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2325 ac_cache_dump ()
2326 {
2327 # The following way of writing the cache mishandles newlines in values,
2328 # but we know of no workaround that is simple, portable, and efficient.
2329 # So, we kill variables containing newlines.
2330 # Ultrix sh set writes to stderr and can't be redirected directly,
2331 # and sets the high bit in the cache file unless we assign to the vars.
2332 (
2333 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in #(
2336 *${as_nl}*)
2337 case $ac_var in #(
2338 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2339 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2340 esac
2341 case $ac_var in #(
2342 _ | IFS | as_nl) ;; #(
2343 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2344 *) { eval $ac_var=; unset $ac_var;} ;;
2345 esac ;;
2346 esac
2347 done
2348
2349 (set) 2>&1 |
2350 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2352 # 'set' does not quote correctly, so add quotes: double-quote
2353 # substitution turns \\\\ into \\, and sed turns \\ into \.
2354 sed -n \
2355 "s/'/'\\\\''/g;
2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2357 ;; #(
2358 *)
2359 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 ;;
2362 esac |
2363 sort
2364 )
2365 }
2366
2367 # Print debugging info to stdout.
2368 ac_dump_debugging_info ()
2369 {
2370 echo
2371
2372 printf '%s\n' "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 ac_cache_dump
2377 echo
2378
2379 printf '%s\n' "## ----------------- ##
2380 ## Output variables. ##
2381 ## ----------------- ##"
2382 echo
2383 for ac_var in $ac_subst_vars
2384 do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in
2387 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2388 esac
2389 printf '%s\n' "$ac_var='$ac_val'"
2390 done | sort
2391 echo
2392
2393 if test -n "$ac_subst_files"; then
2394 printf '%s\n' "## ------------------- ##
2395 ## File substitutions. ##
2396 ## ------------------- ##"
2397 echo
2398 for ac_var in $ac_subst_files
2399 do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in
2402 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2403 esac
2404 printf '%s\n' "$ac_var='$ac_val'"
2405 done | sort
2406 echo
2407 fi
2408
2409 if test -s confdefs.h; then
2410 printf '%s\n' "## ----------- ##
2411 ## confdefs.h. ##
2412 ## ----------- ##"
2413 echo
2414 cat confdefs.h
2415 echo
2416 fi
2417 test "$ac_signal" != 0 &&
2418 printf '%s\n' "$as_me: caught signal $ac_signal"
2419 printf '%s\n' "$as_me: exit $exit_status"
2420 }
2421
2422 # When interrupted or exit'd, cleanup temporary files, and complete
2423 # config.log.
2424 ac_exit_trap ()
2425 {
2426 exit_status=
2427 # Sanitize IFS.
2428 IFS=" "" $as_nl"
2429 # Save into config.log some information that might help in debugging.
2430 ac_dump_debugging_info >&5
2431 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2432 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433 exit $exit_status
2434 }
2435
2436 trap 'ac_exit_trap $?' 0
2437 for ac_signal in 1 2 13 15; do
2438 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 done
2440 ac_signal=0
2441
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2444
2445 printf '%s\n' "/* confdefs.h */" > confdefs.h
2446
2447 # Predefined preprocessor variables.
2448
2449 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2450
2451 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2452
2453 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2454
2455 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2456
2457 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2458
2459 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2460
2461
2462 # Let the site file select an alternate cache file if it wants to.
2463 # Prefer an explicitly selected file to automatically selected ones.
2464 if test -n "$CONFIG_SITE"; then
2465 ac_site_files="$CONFIG_SITE"
2466 elif test "x$prefix" != xNONE; then
2467 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2468 else
2469 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2470 fi
2471
2472 for ac_site_file in $ac_site_files
2473 do
2474 case $ac_site_file in #(
2475 */*) :
2476 ;; #(
2477 *) :
2478 ac_site_file=./$ac_site_file ;;
2479 esac
2480 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2484 . "$ac_site_file" \
2485 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2486 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2487 as_fn_error $? "failed to load site script $ac_site_file
2488 See 'config.log' for more details" "$LINENO" 5; }
2489 fi
2490 done
2491
2492 if test -r "$cache_file"; then
2493 # Some versions of bash will fail to source /dev/null (special files
2494 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2495 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2498 case $cache_file in
2499 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500 *) . "./$cache_file";;
2501 esac
2502 fi
2503 else
2504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2506 >$cache_file
2507 fi
2508
2509 # Test code for whether the C compiler supports C23 (global declarations)
2510 ac_c_conftest_c23_globals='
2511 /* Does the compiler advertise conformance to C17 or earlier?
2512 Although GCC 14 does not do that, even with -std=gnu23,
2513 it is close enough, and defines __STDC_VERSION == 202000L. */
2514 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2515 # error "Compiler advertises conformance to C17 or earlier"
2516 #endif
2517
2518 // Check alignas.
2519 char alignas (double) c23_aligned_as_double;
2520 char alignas (0) c23_no_special_alignment;
2521 extern char c23_aligned_as_int;
2522 char alignas (0) alignas (int) c23_aligned_as_int;
2523
2524 // Check alignof.
2525 enum
2526 {
2527 c23_int_alignment = alignof (int),
2528 c23_int_array_alignment = alignof (int[100]),
2529 c23_char_alignment = alignof (char)
2530 };
2531 static_assert (0 < -alignof (int), "alignof is signed");
2532
2533 int function_with_unnamed_parameter (int) { return 0; }
2534
2535 void c23_noreturn ();
2536
2537 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2538 The parens pacify GCC 15. */
2539 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2540
2541 bool check_that_bool_works = true | false | !nullptr;
2542 #if !true
2543 # error "true does not work in #if"
2544 #endif
2545 #if false
2546 #elifdef __STDC_VERSION__
2547 #else
2548 # error "#elifdef does not work"
2549 #endif
2550
2551 #ifndef __has_c_attribute
2552 # error "__has_c_attribute not defined"
2553 #endif
2554
2555 #ifndef __has_include
2556 # error "__has_include not defined"
2557 #endif
2558
2559 #define LPAREN() (
2560 #define FORTY_TWO(x) 42
2561 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2562 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2563
2564 static_assert (0b101010 == 42);
2565 static_assert (0B101010 == 42);
2566 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2567 static_assert (0.500'\''000'\''000 == 0.5);
2568
2569 enum unsignedish : unsigned int { uione = 1 };
2570 static_assert (0 < -uione);
2571
2572 #include <stddef.h>
2573 constexpr nullptr_t null_pointer = nullptr;
2574
2575 static typeof (1 + 1L) two () { return 2; }
2576 static long int three () { return 3; }
2577 '
2578
2579 # Test code for whether the C compiler supports C23 (body of main).
2580 ac_c_conftest_c23_main='
2581 {
2582 label_before_declaration:
2583 int arr[10] = {};
2584 if (arr[0])
2585 goto label_before_declaration;
2586 if (!arr[0])
2587 goto label_at_end_of_block;
2588 label_at_end_of_block:
2589 }
2590 ok |= !null_pointer;
2591 ok |= two != three;
2592 '
2593
2594 # Test code for whether the C compiler supports C23 (complete).
2595 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2596
2597 int
2598 main (int, char **)
2599 {
2600 int ok = 0;
2601 ${ac_c_conftest_c23_main}
2602 return ok;
2603 }
2604 "
2605
2606 # Test code for whether the C compiler supports C89 (global declarations)
2607 ac_c_conftest_c89_globals='
2608 /* Do not test the value of __STDC__, because some compilers define it to 0
2609 or do not define it, while otherwise adequately conforming. */
2610
2611 #include <stddef.h>
2612 #include <stdarg.h>
2613 struct stat;
2614 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2615 struct buf { int x; };
2616 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2617 static char *e (char **p, int i)
2618 {
2619 return p[i];
2620 }
2621 static char *f (char * (*g) (char **, int), char **p, ...)
2622 {
2623 char *s;
2624 va_list v;
2625 va_start (v,p);
2626 s = g (p, va_arg (v,int));
2627 va_end (v);
2628 return s;
2629 }
2630
2631 /* C89 style stringification. */
2632 #define noexpand_stringify(a) #a
2633 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2634
2635 /* C89 style token pasting. Exercises some of the corner cases that
2636 e.g. old MSVC gets wrong, but not very hard. */
2637 #define noexpand_concat(a,b) a##b
2638 #define expand_concat(a,b) noexpand_concat(a,b)
2639 extern int vA;
2640 extern int vbee;
2641 #define aye A
2642 #define bee B
2643 int *pvA = &expand_concat(v,aye);
2644 int *pvbee = &noexpand_concat(v,bee);
2645
2646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2647 function prototypes and stuff, but not \xHH hex character constants.
2648 These do not provoke an error unfortunately, instead are silently treated
2649 as an "x". The following induces an error, until -std is added to get
2650 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2651 array size at least. It is necessary to write \x00 == 0 to get something
2652 that is true only with -std. */
2653 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2654
2655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2656 inside strings and character constants. */
2657 #define FOO(x) '\''x'\''
2658 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2659
2660 int test (int i, double x);
2661 struct s1 {int (*f) (int a);};
2662 struct s2 {int (*f) (double a);};
2663 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2664 int, int);'
2665
2666 # Test code for whether the C compiler supports C89 (body of main).
2667 ac_c_conftest_c89_main='
2668 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2669 '
2670
2671 # Test code for whether the C compiler supports C99 (global declarations)
2672 ac_c_conftest_c99_globals='
2673 /* Does the compiler advertise C99 conformance? */
2674 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2675 # error "Compiler does not advertise C99 conformance"
2676 #endif
2677
2678 // See if C++-style comments work.
2679
2680 #include <stdbool.h>
2681 extern int puts (const char *);
2682 extern int printf (const char *, ...);
2683 extern int dprintf (int, const char *, ...);
2684 extern void *malloc (size_t);
2685 extern void free (void *);
2686
2687 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2688 // dprintf is used instead of fprintf to avoid needing to declare
2689 // FILE and stderr, and "aND" is used instead of "and" to work around
2690 // GCC bug 40564 which is irrelevant here.
2691 #define debug(...) dprintf (2, __VA_ARGS__)
2692 #define showlist(...) puts (#__VA_ARGS__)
2693 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2694 static void
2695 test_varargs_macros (void)
2696 {
2697 int x = 1234;
2698 int y = 5678;
2699 debug ("Flag");
2700 debug ("X = %d\n", x);
2701 showlist (The first, second, aND third items.);
2702 report (x>y, "x is %d but y is %d", x, y);
2703 }
2704
2705 // Check long long types.
2706 #define BIG64 18446744073709551615ull
2707 #define BIG32 4294967295ul
2708 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2709 #if !BIG_OK
2710 #error "your preprocessor is broken"
2711 #endif
2712 #if BIG_OK
2713 #else
2714 #error "your preprocessor is broken"
2715 #endif
2716 static long long int bignum = -9223372036854775807LL;
2717 static unsigned long long int ubignum = BIG64;
2718
2719 struct incomplete_array
2720 {
2721 int datasize;
2722 double data[];
2723 };
2724
2725 struct named_init {
2726 int number;
2727 const wchar_t *name;
2728 double average;
2729 };
2730
2731 typedef const char *ccp;
2732
2733 static inline int
2734 test_restrict (ccp restrict text)
2735 {
2736 // Iterate through items via the restricted pointer.
2737 // Also check for declarations in for loops.
2738 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2739 continue;
2740 return 0;
2741 }
2742
2743 // Check varargs and va_copy.
2744 static bool
2745 test_varargs (const char *format, ...)
2746 {
2747 va_list args;
2748 va_start (args, format);
2749 va_list args_copy;
2750 va_copy (args_copy, args);
2751
2752 const char *str = "";
2753 int number = 0;
2754 float fnumber = 0;
2755
2756 while (*format)
2757 {
2758 switch (*format++)
2759 {
2760 case '\''s'\'': // string
2761 str = va_arg (args_copy, const char *);
2762 break;
2763 case '\''d'\'': // int
2764 number = va_arg (args_copy, int);
2765 break;
2766 case '\''f'\'': // float
2767 fnumber = va_arg (args_copy, double);
2768 break;
2769 default:
2770 break;
2771 }
2772 }
2773 va_end (args_copy);
2774 va_end (args);
2775
2776 return *str && number && fnumber;
2777 }
2778 '
2779
2780 # Test code for whether the C compiler supports C99 (body of main).
2781 ac_c_conftest_c99_main='
2782 // Check bool.
2783 _Bool success = false;
2784 success |= (argc != 0);
2785
2786 // Check restrict.
2787 if (test_restrict ("String literal") == 0)
2788 success = true;
2789 const char *restrict newvar = "Another string";
2790
2791 // Check varargs.
2792 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2793 test_varargs_macros ();
2794
2795 // Check flexible array members.
2796 static struct incomplete_array *volatile incomplete_array_pointer;
2797 struct incomplete_array *ia = incomplete_array_pointer;
2798 ia->datasize = 10;
2799 for (int i = 0; i < ia->datasize; ++i)
2800 ia->data[i] = i * 1.234;
2801 // Work around memory leak warnings.
2802 free (ia);
2803
2804 // Check named initializers.
2805 struct named_init ni = {
2806 .number = 34,
2807 .name = L"Test wide string",
2808 .average = 543.34343,
2809 };
2810
2811 ni.number = 58;
2812
2813 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2814 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2815
2816 // work around unused variable warnings
2817 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2818 || ni.number != 58);
2819 '
2820
2821 # Test code for whether the C compiler supports C11 (global declarations)
2822 ac_c_conftest_c11_globals='
2823 /* Does the compiler advertise C11 conformance? */
2824 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2825 # error "Compiler does not advertise C11 conformance"
2826 #endif
2827
2828 // Check _Alignas.
2829 char _Alignas (double) aligned_as_double;
2830 char _Alignas (0) no_special_alignment;
2831 extern char aligned_as_int;
2832 char _Alignas (0) _Alignas (int) aligned_as_int;
2833
2834 // Check _Alignof.
2835 enum
2836 {
2837 int_alignment = _Alignof (int),
2838 int_array_alignment = _Alignof (int[100]),
2839 char_alignment = _Alignof (char)
2840 };
2841 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2842
2843 // Check _Noreturn.
2844 int _Noreturn does_not_return (void) { for (;;) continue; }
2845
2846 // Check _Static_assert.
2847 struct test_static_assert
2848 {
2849 int x;
2850 _Static_assert (sizeof (int) <= sizeof (long int),
2851 "_Static_assert does not work in struct");
2852 long int y;
2853 };
2854
2855 // Check UTF-8 literals.
2856 #define u8 syntax error!
2857 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2858
2859 // Check duplicate typedefs.
2860 typedef long *long_ptr;
2861 typedef long int *long_ptr;
2862 typedef long_ptr long_ptr;
2863
2864 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2865 struct anonymous
2866 {
2867 union {
2868 struct { int i; int j; };
2869 struct { int k; long int l; } w;
2870 };
2871 int m;
2872 } v1;
2873 '
2874
2875 # Test code for whether the C compiler supports C11 (body of main).
2876 ac_c_conftest_c11_main='
2877 _Static_assert ((offsetof (struct anonymous, i)
2878 == offsetof (struct anonymous, w.k)),
2879 "Anonymous union alignment botch");
2880 v1.i = 2;
2881 v1.w.k = 5;
2882 ok |= v1.i != 5;
2883 '
2884
2885 # Test code for whether the C compiler supports C11 (complete).
2886 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2887 ${ac_c_conftest_c99_globals}
2888 ${ac_c_conftest_c11_globals}
2889
2890 int
2891 main (int argc, char **argv)
2892 {
2893 int ok = 0;
2894 ${ac_c_conftest_c89_main}
2895 ${ac_c_conftest_c99_main}
2896 ${ac_c_conftest_c11_main}
2897 return ok;
2898 }
2899 "
2900
2901 # Test code for whether the C compiler supports C99 (complete).
2902 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2903 ${ac_c_conftest_c99_globals}
2904
2905 int
2906 main (int argc, char **argv)
2907 {
2908 int ok = 0;
2909 ${ac_c_conftest_c89_main}
2910 ${ac_c_conftest_c99_main}
2911 return ok;
2912 }
2913 "
2914
2915 # Test code for whether the C compiler supports C89 (complete).
2916 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2917
2918 int
2919 main (int argc, char **argv)
2920 {
2921 int ok = 0;
2922 ${ac_c_conftest_c89_main}
2923 return ok;
2924 }
2925 "
2926
2927 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2928 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2929 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2930 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2931 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2932 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2933 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2934 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2935 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2936
2937 # Auxiliary files required by this configure script.
2938 ac_aux_files="compile missing install-sh config.guess config.sub"
2939
2940 # Locations in which to look for auxiliary files.
2941 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2942
2943 # Search for a directory containing all of the required auxiliary files,
2944 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2945 # If we don't find one directory that contains all the files we need,
2946 # we report the set of missing files from the *first* directory in
2947 # $ac_aux_dir_candidates and give up.
2948 ac_missing_aux_files=""
2949 ac_first_candidate=:
2950 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 as_found=false
2953 for as_dir in $ac_aux_dir_candidates
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 as_found=:
2962
2963 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2964 ac_aux_dir_found=yes
2965 ac_install_sh=
2966 for ac_aux in $ac_aux_files
2967 do
2968 # As a special case, if "install-sh" is required, that requirement
2969 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2970 # and $ac_install_sh is set appropriately for whichever one is found.
2971 if test x"$ac_aux" = x"install-sh"
2972 then
2973 if test -f "${as_dir}install-sh"; then
2974 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2975 ac_install_sh="${as_dir}install-sh -c"
2976 elif test -f "${as_dir}install.sh"; then
2977 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2978 ac_install_sh="${as_dir}install.sh -c"
2979 elif test -f "${as_dir}shtool"; then
2980 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2981 ac_install_sh="${as_dir}shtool install -c"
2982 else
2983 ac_aux_dir_found=no
2984 if $ac_first_candidate; then
2985 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2986 else
2987 break
2988 fi
2989 fi
2990 else
2991 if test -f "${as_dir}${ac_aux}"; then
2992 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2993 else
2994 ac_aux_dir_found=no
2995 if $ac_first_candidate; then
2996 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2997 else
2998 break
2999 fi
3000 fi
3001 fi
3002 done
3003 if test "$ac_aux_dir_found" = yes; then
3004 ac_aux_dir="$as_dir"
3005 break
3006 fi
3007 ac_first_candidate=false
3008
3009 as_found=false
3010 done
3011 IFS=$as_save_IFS
3012 if $as_found
3013 then :
3014
3015 else case e in #(
3016 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3017 esac
3018 fi
3019
3020
3021 # These three variables are undocumented and unsupported,
3022 # and are intended to be withdrawn in a future Autoconf release.
3023 # They can cause serious problems if a builder's source tree is in a directory
3024 # whose full name contains unusual characters.
3025 if test -f "${ac_aux_dir}config.guess"; then
3026 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3027 fi
3028 if test -f "${ac_aux_dir}config.sub"; then
3029 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3030 fi
3031 if test -f "$ac_aux_dir/configure"; then
3032 ac_configure="$SHELL ${ac_aux_dir}configure"
3033 fi
3034
3035 # Check that the precious variables saved in the cache have kept the same
3036 # value.
3037 ac_cache_corrupted=false
3038 for ac_var in $ac_precious_vars; do
3039 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3040 eval ac_new_set=\$ac_env_${ac_var}_set
3041 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3042 eval ac_new_val=\$ac_env_${ac_var}_value
3043 case $ac_old_set,$ac_new_set in
3044 set,)
3045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3046 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3047 ac_cache_corrupted=: ;;
3048 ,set)
3049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3050 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3051 ac_cache_corrupted=: ;;
3052 ,);;
3053 *)
3054 if test "x$ac_old_val" != "x$ac_new_val"; then
3055 # differences in whitespace do not lead to failure.
3056 ac_old_val_w=
3057 for ac_val in x $ac_old_val; do
3058 ac_old_val_w="$ac_old_val_w $ac_val"
3059 done
3060 ac_new_val_w=
3061 for ac_val in x $ac_new_val; do
3062 ac_new_val_w="$ac_new_val_w $ac_val"
3063 done
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3066 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3067 ac_cache_corrupted=:
3068 else
3069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3070 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3072 fi
3073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3074 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
3075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3076 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
3077 fi;;
3078 esac
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3081 case $ac_new_val in
3082 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3084 esac
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3088 esac
3089 fi
3090 done
3091 if $ac_cache_corrupted; then
3092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3093 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3097 and start over" "$LINENO" 5
3098 fi
3099 ## -------------------- ##
3100 ## Main body of script. ##
3101 ## -------------------- ##
3102
3103
3104 # Determine whether it's possible to make 'echo' print without a newline.
3105 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
3106 # for compatibility with existing Makefiles.
3107 ECHO_C= ECHO_N= ECHO_T=
3108 case `echo -n x` in #(((((
3109 -n*)
3110 case `echo 'xy\c'` in
3111 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3112 xy) ECHO_C='\c';;
3113 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3114 ECHO_T=' ';;
3115 esac;;
3116 *)
3117 ECHO_N='-n';;
3118 esac
3119
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
3126
3127
3128
3129
3130 # Make sure we can run config.sub.
3131 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3132 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3133
3134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3135 printf %s "checking build system type... " >&6; }
3136 if test ${ac_cv_build+y}
3137 then :
3138 printf %s "(cached) " >&6
3139 else case e in #(
3140 e) ac_build_alias=$build_alias
3141 test "x$ac_build_alias" = x &&
3142 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3143 test "x$ac_build_alias" = x &&
3144 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3145 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3146 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3147 ;;
3148 esac
3149 fi
3150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3151 printf '%s\n' "$ac_cv_build" >&6; }
3152 case $ac_cv_build in
3153 *-*-*) ;;
3154 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3155 esac
3156 build=$ac_cv_build
3157 ac_save_IFS=$IFS; IFS='-'
3158 set x $ac_cv_build
3159 shift
3160 build_cpu=$1
3161 build_vendor=$2
3162 shift; shift
3163 # Remember, the first character of IFS is used to create $*,
3164 # except with old shells:
3165 build_os=$*
3166 IFS=$ac_save_IFS
3167 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
3168
3169
3170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3171 printf %s "checking host system type... " >&6; }
3172 if test ${ac_cv_host+y}
3173 then :
3174 printf %s "(cached) " >&6
3175 else case e in #(
3176 e) if test "x$host_alias" = x; then
3177 ac_cv_host=$ac_cv_build
3178 else
3179 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3180 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3181 fi
3182 ;;
3183 esac
3184 fi
3185 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3186 printf '%s\n' "$ac_cv_host" >&6; }
3187 case $ac_cv_host in
3188 *-*-*) ;;
3189 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3190 esac
3191 host=$ac_cv_host
3192 ac_save_IFS=$IFS; IFS='-'
3193 set x $ac_cv_host
3194 shift
3195 host_cpu=$1
3196 host_vendor=$2
3197 shift; shift
3198 # Remember, the first character of IFS is used to create $*,
3199 # except with old shells:
3200 host_os=$*
3201 IFS=$ac_save_IFS
3202 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
3203
3204
3205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3206 printf %s "checking target system type... " >&6; }
3207 if test ${ac_cv_target+y}
3208 then :
3209 printf %s "(cached) " >&6
3210 else case e in #(
3211 e) if test "x$target_alias" = x; then
3212 ac_cv_target=$ac_cv_host
3213 else
3214 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3215 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3216 fi
3217 ;;
3218 esac
3219 fi
3220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3221 printf '%s\n' "$ac_cv_target" >&6; }
3222 case $ac_cv_target in
3223 *-*-*) ;;
3224 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3225 esac
3226 target=$ac_cv_target
3227 ac_save_IFS=$IFS; IFS='-'
3228 set x $ac_cv_target
3229 shift
3230 target_cpu=$1
3231 target_vendor=$2
3232 shift; shift
3233 # Remember, the first character of IFS is used to create $*,
3234 # except with old shells:
3235 target_os=$*
3236 IFS=$ac_save_IFS
3237 case $target_os in *\ *) target_os=`printf '%s\n' "$target_os" | sed 's/ /-/g'`;; esac
3238
3239
3240 # The aliases save the names the user supplied, while $host etc.
3241 # will get canonicalized.
3242 test -n "$target_alias" &&
3243 test "$program_prefix$program_suffix$program_transform_name" = \
3244 NONENONEs,x,x, &&
3245 program_prefix=${target_alias}-
3246 am__api_version='1.18'
3247
3248
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3255 # AIX /bin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # OS/2's system install, which has a completely different semantic
3261 # ./install, which can be erroneously created by make from ./install.sh.
3262 # Reject install programs that cannot install multiple files.
3263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3264 printf %s "checking for a BSD-compatible install... " >&6; }
3265 if test -z "$INSTALL"; then
3266 if test ${ac_cv_path_install+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else case e in #(
3270 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273 IFS=$as_save_IFS
3274 case $as_dir in #(((
3275 '') as_dir=./ ;;
3276 */) ;;
3277 *) as_dir=$as_dir/ ;;
3278 esac
3279 # Account for fact that we put trailing slashes in our PATH walk.
3280 case $as_dir in #((
3281 ./ | /[cC]/* | \
3282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3284 /usr/ucb/* ) ;;
3285 *)
3286 # OSF/1 and SCO ODT 3.0 have their own names for install.
3287 # Don't use installbsd from OSF/1 since it installs stuff as root
3288 # by default.
3289 for ac_prog in ginstall scoinst install; do
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3292 if test $ac_prog = install &&
3293 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3294 # AIX install. It has an incompatible calling convention.
3295 :
3296 elif test $ac_prog = install &&
3297 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298 # program-specific install script used by HP pwplus--don't use.
3299 :
3300 else
3301 rm -rf conftest.one conftest.two conftest.dir
3302 echo one > conftest.one
3303 echo two > conftest.two
3304 mkdir conftest.dir
3305 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3306 test -s conftest.one && test -s conftest.two &&
3307 test -s conftest.dir/conftest.one &&
3308 test -s conftest.dir/conftest.two
3309 then
3310 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3311 break 3
3312 fi
3313 fi
3314 fi
3315 done
3316 done
3317 ;;
3318 esac
3319
3320 done
3321 IFS=$as_save_IFS
3322
3323 rm -rf conftest.one conftest.two conftest.dir
3324 ;;
3325 esac
3326 fi
3327 if test ${ac_cv_path_install+y}; then
3328 INSTALL=$ac_cv_path_install
3329 else
3330 # As a last resort, use the slow shell script. Don't cache a
3331 # value for INSTALL within a source directory, because that will
3332 # break other packages using the cache if that directory is
3333 # removed, or if the value is a relative name.
3334 INSTALL=$ac_install_sh
3335 fi
3336 fi
3337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3338 printf '%s\n' "$INSTALL" >&6; }
3339
3340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3341 # It thinks the first close brace ends the variable substitution.
3342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3343
3344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3345
3346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3347
3348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3349 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3350 if test ${am_cv_sleep_fractional_seconds+y}
3351 then :
3352 printf %s "(cached) " >&6
3353 else case e in #(
3354 e) if sleep 0.001 2>/dev/null
3355 then :
3356 am_cv_sleep_fractional_seconds=yes
3357 else case e in #(
3358 e) am_cv_sleep_fractional_seconds=no ;;
3359 esac
3360 fi
3361 ;;
3362 esac
3363 fi
3364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3365 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
3366
3367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3368 printf %s "checking filesystem timestamp resolution... " >&6; }
3369 if test ${am_cv_filesystem_timestamp_resolution+y}
3370 then :
3371 printf %s "(cached) " >&6
3372 else case e in #(
3373 e) # Default to the worst case.
3374 am_cv_filesystem_timestamp_resolution=2
3375
3376 # Only try to go finer than 1 sec if sleep can do it.
3377 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3378 # - 1 sec is not much of a win compared to 2 sec, and
3379 # - it takes 2 seconds to perform the test whether 1 sec works.
3380 #
3381 # Instead, just use the default 2s on platforms that have 1s resolution,
3382 # accept the extra 1s delay when using $sleep in the Automake tests, in
3383 # exchange for not incurring the 2s delay for running the test for all
3384 # packages.
3385 #
3386 am_try_resolutions=
3387 if test "$am_cv_sleep_fractional_seconds" = yes; then
3388 # Even a millisecond often causes a bunch of false positives,
3389 # so just try a hundredth of a second. The time saved between .001 and
3390 # .01 is not terribly consequential.
3391 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3392 fi
3393
3394 # In order to catch current-generation FAT out, we must *modify* files
3395 # that already exist; the *creation* timestamp is finer. Use names
3396 # that make ls -t sort them differently when they have equal
3397 # timestamps than when they have distinct timestamps, keeping
3398 # in mind that ls -t prints the *newest* file first.
3399 rm -f conftest.ts?
3400 : > conftest.ts1
3401 : > conftest.ts2
3402 : > conftest.ts3
3403
3404 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3405 # clobber the current shell's arguments. (Outer-level square brackets
3406 # are removed by m4; they're present so that m4 does not expand
3407 # <dollar><star>; be careful, easy to get confused.)
3408 if (
3409 set X `ls -t conftest.ts[12]` &&
3410 {
3411 test "$*" != "X conftest.ts1 conftest.ts2" ||
3412 test "$*" != "X conftest.ts2 conftest.ts1";
3413 }
3414 ); then :; else
3415 # If neither matched, then we have a broken ls. This can happen
3416 # if, for instance, CONFIG_SHELL is bash and it inherits a
3417 # broken ls alias from the environment. This has actually
3418 # happened. Such a system could not be considered "sane".
3419 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3420 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3421 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3422 as_fn_error $? "ls -t produces unexpected output.
3423 Make sure there is not a broken ls alias in your environment.
3424 See 'config.log' for more details" "$LINENO" 5; }
3425 fi
3426
3427 for am_try_res in $am_try_resolutions; do
3428 # Any one fine-grained sleep might happen to cross the boundary
3429 # between two values of a coarser actual resolution, but if we do
3430 # two fine-grained sleeps in a row, at least one of them will fall
3431 # entirely within a coarse interval.
3432 echo alpha > conftest.ts1
3433 sleep $am_try_res
3434 echo beta > conftest.ts2
3435 sleep $am_try_res
3436 echo gamma > conftest.ts3
3437
3438 # We assume that 'ls -t' will make use of high-resolution
3439 # timestamps if the operating system supports them at all.
3440 if (set X `ls -t conftest.ts?` &&
3441 test "$2" = conftest.ts3 &&
3442 test "$3" = conftest.ts2 &&
3443 test "$4" = conftest.ts1); then
3444 #
3445 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3446 # because we don't need to test make.
3447 make_ok=true
3448 if test $am_try_res != 1; then
3449 # But if we've succeeded so far with a subsecond resolution, we
3450 # have one more thing to check: make. It can happen that
3451 # everything else supports the subsecond mtimes, but make doesn't;
3452 # notably on macOS, which ships make 3.81 from 2006 (the last one
3453 # released under GPLv2). https://bugs.gnu.org/68808
3454 #
3455 # We test $MAKE if it is defined in the environment, else "make".
3456 # It might get overridden later, but our hope is that in practice
3457 # it does not matter: it is the system "make" which is (by far)
3458 # the most likely to be broken, whereas if the user overrides it,
3459 # probably they did so with a better, or at least not worse, make.
3460 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3461 #
3462 # Create a Makefile (real tab character here):
3463 rm -f conftest.mk
3464 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3465 echo ' touch conftest.ts2' >>conftest.mk
3466 #
3467 # Now, running
3468 # touch conftest.ts1; touch conftest.ts2; make
3469 # should touch ts1 because ts2 is newer. This could happen by luck,
3470 # but most often, it will fail if make's support is insufficient. So
3471 # test for several consecutive successes.
3472 #
3473 # (We reuse conftest.ts[12] because we still want to modify existing
3474 # files, not create new ones, per above.)
3475 n=0
3476 make=${MAKE-make}
3477 until test $n -eq 3; do
3478 echo one > conftest.ts1
3479 sleep $am_try_res
3480 echo two > conftest.ts2 # ts2 should now be newer than ts1
3481 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3482 make_ok=false
3483 break # out of $n loop
3484 fi
3485 n=`expr $n + 1`
3486 done
3487 fi
3488 #
3489 if $make_ok; then
3490 # Everything we know to check worked out, so call this resolution good.
3491 am_cv_filesystem_timestamp_resolution=$am_try_res
3492 break # out of $am_try_res loop
3493 fi
3494 # Otherwise, we'll go on to check the next resolution.
3495 fi
3496 done
3497 rm -f conftest.ts?
3498 # (end _am_filesystem_timestamp_resolution)
3499 ;;
3500 esac
3501 fi
3502 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3503 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
3504
3505 # This check should not be cached, as it may vary across builds of
3506 # different projects.
3507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3508 printf %s "checking whether build environment is sane... " >&6; }
3509 # Reject unsafe characters in $srcdir or the absolute working directory
3510 # name. Accept space and tab only in the latter.
3511 am_lf='
3512 '
3513 case `pwd` in
3514 *[\\\"\#\$\&\'\`$am_lf]*)
3515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 printf '%s\n' "no" >&6; }
3517 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3518 esac
3519 case $srcdir in
3520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 printf '%s\n' "no" >&6; }
3523 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3524 esac
3525
3526 # Do 'set' in a subshell so we don't clobber the current shell's
3527 # arguments. Must try -L first in case configure is actually a
3528 # symlink; some systems play weird games with the mod time of symlinks
3529 # (eg FreeBSD returns the mod time of the symlink's containing
3530 # directory).
3531 am_build_env_is_sane=no
3532 am_has_slept=no
3533 rm -f conftest.file
3534 for am_try in 1 2; do
3535 echo "timestamp, slept: $am_has_slept" > conftest.file
3536 if (
3537 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3538 if test "$*" = "X"; then
3539 # -L didn't work.
3540 set X `ls -t "$srcdir/configure" conftest.file`
3541 fi
3542 test "$2" = conftest.file
3543 ); then
3544 am_build_env_is_sane=yes
3545 break
3546 fi
3547 # Just in case.
3548 sleep "$am_cv_filesystem_timestamp_resolution"
3549 am_has_slept=yes
3550 done
3551
3552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3553 printf '%s\n' "$am_build_env_is_sane" >&6; }
3554 if test "$am_build_env_is_sane" = no; then
3555 as_fn_error $? "newly created file is older than distributed files!
3556 Check your system clock" "$LINENO" 5
3557 fi
3558
3559 # If we didn't sleep, we still need to ensure time stamps of config.status and
3560 # generated files are strictly newer.
3561 am_sleep_pid=
3562 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3563 then :
3564
3565 else case e in #(
3566 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3567 am_sleep_pid=$!
3568 ;;
3569 esac
3570 fi
3571
3572 rm -f conftest.file
3573
3574 test "$program_prefix" != NONE &&
3575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3576 # Use a double $ so make ignores it.
3577 test "$program_suffix" != NONE &&
3578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3579 # Double any \ or $.
3580 # By default was 's,x,x', remove it if useless.
3581 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3582 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
3583
3584
3585 # Expand $ac_aux_dir to an absolute path.
3586 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3587
3588
3589 if test x"${MISSING+set}" != xset; then
3590 MISSING="\${SHELL} '$am_aux_dir/missing'"
3591 fi
3592 # Use eval to expand $SHELL
3593 if eval "$MISSING --is-lightweight"; then
3594 am_missing_run="$MISSING "
3595 else
3596 am_missing_run=
3597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3598 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3599 fi
3600
3601 if test x"${install_sh+set}" != xset; then
3602 case $am_aux_dir in
3603 *\ * | *\ *)
3604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3605 *)
3606 install_sh="\${SHELL} $am_aux_dir/install-sh"
3607 esac
3608 fi
3609
3610 # Installed binaries are usually stripped using 'strip' when the user
3611 # run "make install-strip". However 'strip' might not be the right
3612 # tool to use in cross-compilation environments, therefore Automake
3613 # will honor the 'STRIP' environment variable to overrule this program.
3614 if test "$cross_compiling" != no; then
3615 if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}strip; ac_word=$2
3618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 printf %s "checking for $ac_word... " >&6; }
3620 if test ${ac_cv_prog_STRIP+y}
3621 then :
3622 printf %s "(cached) " >&6
3623 else case e in #(
3624 e) if test -n "$STRIP"; then
3625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 case $as_dir in #(((
3632 '') as_dir=./ ;;
3633 */) ;;
3634 *) as_dir=$as_dir/ ;;
3635 esac
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3639 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi ;;
3647 esac
3648 fi
3649 STRIP=$ac_cv_prog_STRIP
3650 if test -n "$STRIP"; then
3651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3652 printf '%s\n' "$STRIP" >&6; }
3653 else
3654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 printf '%s\n' "no" >&6; }
3656 fi
3657
3658
3659 fi
3660 if test -z "$ac_cv_prog_STRIP"; then
3661 ac_ct_STRIP=$STRIP
3662 # Extract the first word of "strip", so it can be a program name with args.
3663 set dummy strip; ac_word=$2
3664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 printf %s "checking for $ac_word... " >&6; }
3666 if test ${ac_cv_prog_ac_ct_STRIP+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else case e in #(
3670 e) if test -n "$ac_ct_STRIP"; then
3671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676 IFS=$as_save_IFS
3677 case $as_dir in #(((
3678 '') as_dir=./ ;;
3679 */) ;;
3680 *) as_dir=$as_dir/ ;;
3681 esac
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_ac_ct_STRIP="strip"
3685 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688 done
3689 done
3690 IFS=$as_save_IFS
3691
3692 fi ;;
3693 esac
3694 fi
3695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3696 if test -n "$ac_ct_STRIP"; then
3697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3698 printf '%s\n' "$ac_ct_STRIP" >&6; }
3699 else
3700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 printf '%s\n' "no" >&6; }
3702 fi
3703
3704 if test "x$ac_ct_STRIP" = x; then
3705 STRIP=":"
3706 else
3707 case $cross_compiling:$ac_tool_warned in
3708 yes:)
3709 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713 STRIP=$ac_ct_STRIP
3714 fi
3715 else
3716 STRIP="$ac_cv_prog_STRIP"
3717 fi
3718
3719 fi
3720 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3721
3722
3723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3724 printf %s "checking for a race-free mkdir -p... " >&6; }
3725 if test -z "$MKDIR_P"; then
3726 if test ${ac_cv_path_mkdir+y}
3727 then :
3728 printf %s "(cached) " >&6
3729 else case e in #(
3730 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3732 do
3733 IFS=$as_save_IFS
3734 case $as_dir in #(((
3735 '') as_dir=./ ;;
3736 */) ;;
3737 *) as_dir=$as_dir/ ;;
3738 esac
3739 for ac_prog in mkdir gmkdir; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3742 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3743 'mkdir ('*'coreutils) '* | \
3744 *'BusyBox '* | \
3745 'mkdir (fileutils) '4.1*)
3746 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3747 break 3;;
3748 esac
3749 done
3750 done
3751 done
3752 IFS=$as_save_IFS
3753 ;;
3754 esac
3755 fi
3756
3757 test -d ./--version && rmdir ./--version
3758 if test ${ac_cv_path_mkdir+y}; then
3759 MKDIR_P="$ac_cv_path_mkdir -p"
3760 else
3761 # As a last resort, use plain mkdir -p,
3762 # in the hope it doesn't have the bugs of ancient mkdir.
3763 MKDIR_P='mkdir -p'
3764 fi
3765 fi
3766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3767 printf '%s\n' "$MKDIR_P" >&6; }
3768
3769 for ac_prog in gawk mawk nawk awk 'busybox awk'
3770 do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 printf %s "checking for $ac_word... " >&6; }
3775 if test ${ac_cv_prog_AWK+y}
3776 then :
3777 printf %s "(cached) " >&6
3778 else case e in #(
3779 e) if test -n "$AWK"; then
3780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 case $as_dir in #(((
3787 '') as_dir=./ ;;
3788 */) ;;
3789 *) as_dir=$as_dir/ ;;
3790 esac
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_AWK="$ac_prog"
3794 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi ;;
3802 esac
3803 fi
3804 AWK=$ac_cv_prog_AWK
3805 if test -n "$AWK"; then
3806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3807 printf '%s\n' "$AWK" >&6; }
3808 else
3809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 printf '%s\n' "no" >&6; }
3811 fi
3812
3813
3814 test -n "$AWK" && break
3815 done
3816
3817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3818 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3819 set x ${MAKE-make}
3820 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3821 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3822 then :
3823 printf %s "(cached) " >&6
3824 else case e in #(
3825 e) cat >conftest.make <<\_ACEOF
3826 SHELL = /bin/sh
3827 all:
3828 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3829 _ACEOF
3830 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3832 *@@@%%%=?*=@@@%%%*)
3833 eval ac_cv_prog_make_${ac_make}_set=yes;;
3834 *)
3835 eval ac_cv_prog_make_${ac_make}_set=no;;
3836 esac
3837 rm -f conftest.make ;;
3838 esac
3839 fi
3840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3842 printf '%s\n' "yes" >&6; }
3843 SET_MAKE=
3844 else
3845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf '%s\n' "no" >&6; }
3847 SET_MAKE="MAKE=${MAKE-make}"
3848 fi
3849
3850 rm -rf .tst 2>/dev/null
3851 mkdir .tst 2>/dev/null
3852 if test -d .tst; then
3853 am__leading_dot=.
3854 else
3855 am__leading_dot=_
3856 fi
3857 rmdir .tst 2>/dev/null
3858
3859 AM_DEFAULT_VERBOSITY=1
3860 # Check whether --enable-silent-rules was given.
3861 if test ${enable_silent_rules+y}
3862 then :
3863 enableval=$enable_silent_rules;
3864 fi
3865
3866 am_make=${MAKE-make}
3867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3868 printf %s "checking whether $am_make supports nested variables... " >&6; }
3869 if test ${am_cv_make_support_nested_variables+y}
3870 then :
3871 printf %s "(cached) " >&6
3872 else case e in #(
3873 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3874 BAR0=false
3875 BAR1=true
3876 V=1
3877 am__doit:
3878 @$(TRUE)
3879 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3880 am_cv_make_support_nested_variables=yes
3881 else
3882 am_cv_make_support_nested_variables=no
3883 fi ;;
3884 esac
3885 fi
3886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3887 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3888 AM_BACKSLASH='\'
3889
3890 am__rm_f_notfound=
3891 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3892 then :
3893
3894 else case e in #(
3895 e) am__rm_f_notfound='""' ;;
3896 esac
3897 fi
3898
3899
3900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3901 printf %s "checking xargs -n works... " >&6; }
3902 if test ${am_cv_xargs_n_works+y}
3903 then :
3904 printf %s "(cached) " >&6
3905 else case e in #(
3906 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3907 3"
3908 then :
3909 am_cv_xargs_n_works=yes
3910 else case e in #(
3911 e) am_cv_xargs_n_works=no ;;
3912 esac
3913 fi ;;
3914 esac
3915 fi
3916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3917 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3918 if test "$am_cv_xargs_n_works" = yes
3919 then :
3920 am__xargs_n='xargs -n'
3921 else case e in #(
3922 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3923 ;;
3924 esac
3925 fi
3926
3927 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3928 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3929 # is not polluted with repeated "-I."
3930 am__isrc=' -I$(srcdir)'
3931 # test to see if srcdir already configured
3932 if test -f $srcdir/config.status; then
3933 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3934 fi
3935 fi
3936
3937 # test whether we have cygpath
3938 if test -z "$CYGPATH_W"; then
3939 if (cygpath --version) >/dev/null 2>/dev/null; then
3940 CYGPATH_W='cygpath -w'
3941 else
3942 CYGPATH_W=echo
3943 fi
3944 fi
3945
3946
3947 # Define the identity of the package.
3948 PACKAGE='aide'
3949 VERSION='0.19.4'
3950
3951
3952 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3953
3954
3955 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3956
3957 # Some tools Automake needs.
3958
3959 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3960
3961
3962 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3963
3964
3965 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3966
3967
3968 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3969
3970
3971 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3972
3973 # For better backward compatibility. To be removed once Automake 1.9.x
3974 # dies out for good. For more background, see:
3975 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3976 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3977 mkdir_p='$(MKDIR_P)'
3978
3979 # We need awk for the "check" target (and possibly the TAP driver). The
3980 # system "awk" is bad on some platforms.
3981 # Always define AMTAR for backward compatibility. Yes, it's still used
3982 # in the wild :-( We should find a proper way to deprecate it ...
3983 AMTAR='$${TAR-tar}'
3984
3985
3986 # We'll loop over all known methods to create a tar archive until one works.
3987 _am_tools='gnutar plaintar pax cpio none'
3988
3989 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3990 # There is notably a 21 bits limit for the UID and the GID. In fact,
3991 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3992 # and bug#13588).
3993 am_max_uid=2097151 # 2^21 - 1
3994 am_max_gid=$am_max_uid
3995 # The $UID and $GID variables are not portable, so we need to resort
3996 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3997 # below are definitely unexpected, so allow the users to see them
3998 # (that is, avoid stderr redirection).
3999 am_uid=`id -u || echo unknown`
4000 am_gid=`id -g || echo unknown`
4001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4002 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4003 if test x$am_uid = xunknown; then
4004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4005 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4006 elif test $am_uid -le $am_max_uid; then
4007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008 printf '%s\n' "yes" >&6; }
4009 else
4010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 printf '%s\n' "no" >&6; }
4012 _am_tools=none
4013 fi
4014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4015 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4016 if test x$gm_gid = xunknown; then
4017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4018 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4019 elif test $am_gid -le $am_max_gid; then
4020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 printf '%s\n' "yes" >&6; }
4022 else
4023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 printf '%s\n' "no" >&6; }
4025 _am_tools=none
4026 fi
4027
4028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4029 printf %s "checking how to create a ustar tar archive... " >&6; }
4030
4031 # Go ahead even if we have the value already cached. We do so because we
4032 # need to set the values for the 'am__tar' and 'am__untar' variables.
4033 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4034
4035 for _am_tool in $_am_tools; do
4036 case $_am_tool in
4037 gnutar)
4038 for _am_tar in tar gnutar gtar; do
4039 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4040 ($_am_tar --version) >&5 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && break
4044 done
4045 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4046 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4047 am__untar="$_am_tar -xf -"
4048 ;;
4049 plaintar)
4050 # Must skip GNU tar: if it does not support --format= it doesn't create
4051 # ustar tarball either.
4052 (tar --version) >/dev/null 2>&1 && continue
4053 am__tar='tar chf - "$$tardir"'
4054 am__tar_='tar chf - "$tardir"'
4055 am__untar='tar xf -'
4056 ;;
4057 pax)
4058 am__tar='pax -L -x ustar -w "$$tardir"'
4059 am__tar_='pax -L -x ustar -w "$tardir"'
4060 am__untar='pax -r'
4061 ;;
4062 cpio)
4063 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4064 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4065 am__untar='cpio -i -H ustar -d'
4066 ;;
4067 none)
4068 am__tar=false
4069 am__tar_=false
4070 am__untar=false
4071 ;;
4072 esac
4073
4074 # If the value was cached, stop now. We just wanted to have am__tar
4075 # and am__untar set.
4076 test -n "${am_cv_prog_tar_ustar}" && break
4077
4078 # tar/untar a dummy directory, and stop if the command works.
4079 rm -rf conftest.dir
4080 mkdir conftest.dir
4081 echo GrepMe > conftest.dir/file
4082 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4083 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
4087 rm -rf conftest.dir
4088 if test -s conftest.tar; then
4089 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4090 ($am__untar <conftest.tar) >&5 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }
4094 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4095 (cat conftest.dir/file) >&5 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }
4099 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4100 fi
4101 done
4102 rm -rf conftest.dir
4103
4104 if test ${am_cv_prog_tar_ustar+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else case e in #(
4108 e) am_cv_prog_tar_ustar=$_am_tool ;;
4109 esac
4110 fi
4111
4112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4113 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4114
4115
4116
4117
4118
4119 # Variables for tags utilities; see am/tags.am
4120 if test -z "$CTAGS"; then
4121 CTAGS=ctags
4122 fi
4123
4124 if test -z "$ETAGS"; then
4125 ETAGS=etags
4126 fi
4127
4128 if test -z "$CSCOPE"; then
4129 CSCOPE=cscope
4130 fi
4131
4132
4133
4134
4135
4136
4137
4138
4139 printf '%s\n' "#define AIDEVERSION \"0.19.4\"" >>confdefs.h
4140
4141
4142
4143 ac_config_headers="$ac_config_headers include/config.h"
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 printf %s "checking for $ac_word... " >&6; }
4168 if test ${ac_cv_prog_CC+y}
4169 then :
4170 printf %s "(cached) " >&6
4171 else case e in #(
4172 e) if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 case $as_dir in #(((
4180 '') as_dir=./ ;;
4181 */) ;;
4182 *) as_dir=$as_dir/ ;;
4183 esac
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4187 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi ;;
4195 esac
4196 fi
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 printf '%s\n' "$CC" >&6; }
4201 else
4202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf '%s\n' "no" >&6; }
4204 fi
4205
4206
4207 fi
4208 if test -z "$ac_cv_prog_CC"; then
4209 ac_ct_CC=$CC
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc; ac_word=$2
4212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 printf %s "checking for $ac_word... " >&6; }
4214 if test ${ac_cv_prog_ac_ct_CC+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else case e in #(
4218 e) if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 case $as_dir in #(((
4226 '') as_dir=./ ;;
4227 */) ;;
4228 *) as_dir=$as_dir/ ;;
4229 esac
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_CC="gcc"
4233 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi ;;
4241 esac
4242 fi
4243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4244 if test -n "$ac_ct_CC"; then
4245 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4246 printf '%s\n' "$ac_ct_CC" >&6; }
4247 else
4248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 printf '%s\n' "no" >&6; }
4250 fi
4251
4252 if test "x$ac_ct_CC" = x; then
4253 CC=""
4254 else
4255 case $cross_compiling:$ac_tool_warned in
4256 yes:)
4257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259 ac_tool_warned=yes ;;
4260 esac
4261 CC=$ac_ct_CC
4262 fi
4263 else
4264 CC="$ac_cv_prog_CC"
4265 fi
4266
4267 if test -z "$CC"; then
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}cc; ac_word=$2
4271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 printf %s "checking for $ac_word... " >&6; }
4273 if test ${ac_cv_prog_CC+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else case e in #(
4277 e) if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 case $as_dir in #(((
4285 '') as_dir=./ ;;
4286 */) ;;
4287 *) as_dir=$as_dir/ ;;
4288 esac
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_CC="${ac_tool_prefix}cc"
4292 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi ;;
4300 esac
4301 fi
4302 CC=$ac_cv_prog_CC
4303 if test -n "$CC"; then
4304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4305 printf '%s\n' "$CC" >&6; }
4306 else
4307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 printf '%s\n' "no" >&6; }
4309 fi
4310
4311
4312 fi
4313 fi
4314 if test -z "$CC"; then
4315 # Extract the first word of "cc", so it can be a program name with args.
4316 set dummy cc; ac_word=$2
4317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 printf %s "checking for $ac_word... " >&6; }
4319 if test ${ac_cv_prog_CC+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else case e in #(
4323 e) if test -n "$CC"; then
4324 ac_cv_prog_CC="$CC" # Let the user override the test.
4325 else
4326 ac_prog_rejected=no
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330 IFS=$as_save_IFS
4331 case $as_dir in #(((
4332 '') as_dir=./ ;;
4333 */) ;;
4334 *) as_dir=$as_dir/ ;;
4335 esac
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4338 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4339 ac_prog_rejected=yes
4340 continue
4341 fi
4342 ac_cv_prog_CC="cc"
4343 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4344 break 2
4345 fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 if test $ac_prog_rejected = yes; then
4351 # We found a bogon in the path, so make sure we never use it.
4352 set dummy $ac_cv_prog_CC
4353 shift
4354 if test $# != 0; then
4355 # We chose a different compiler from the bogus one.
4356 # However, it has the same basename, so the bogon will be chosen
4357 # first if we set CC to just the basename; use the full file name.
4358 shift
4359 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4360 fi
4361 fi
4362 fi ;;
4363 esac
4364 fi
4365 CC=$ac_cv_prog_CC
4366 if test -n "$CC"; then
4367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4368 printf '%s\n' "$CC" >&6; }
4369 else
4370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 printf '%s\n' "no" >&6; }
4372 fi
4373
4374
4375 fi
4376 if test -z "$CC"; then
4377 if test -n "$ac_tool_prefix"; then
4378 for ac_prog in cl.exe
4379 do
4380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 printf %s "checking for $ac_word... " >&6; }
4384 if test ${ac_cv_prog_CC+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else case e in #(
4388 e) if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 case $as_dir in #(((
4396 '') as_dir=./ ;;
4397 */) ;;
4398 *) as_dir=$as_dir/ ;;
4399 esac
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4403 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi ;;
4411 esac
4412 fi
4413 CC=$ac_cv_prog_CC
4414 if test -n "$CC"; then
4415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416 printf '%s\n' "$CC" >&6; }
4417 else
4418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 printf '%s\n' "no" >&6; }
4420 fi
4421
4422
4423 test -n "$CC" && break
4424 done
4425 fi
4426 if test -z "$CC"; then
4427 ac_ct_CC=$CC
4428 for ac_prog in cl.exe
4429 do
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 printf %s "checking for $ac_word... " >&6; }
4434 if test ${ac_cv_prog_ac_ct_CC+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else case e in #(
4438 e) if test -n "$ac_ct_CC"; then
4439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444 IFS=$as_save_IFS
4445 case $as_dir in #(((
4446 '') as_dir=./ ;;
4447 */) ;;
4448 *) as_dir=$as_dir/ ;;
4449 esac
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="$ac_prog"
4453 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi ;;
4461 esac
4462 fi
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4466 printf '%s\n' "$ac_ct_CC" >&6; }
4467 else
4468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 printf '%s\n' "no" >&6; }
4470 fi
4471
4472
4473 test -n "$ac_ct_CC" && break
4474 done
4475
4476 if test "x$ac_ct_CC" = x; then
4477 CC=""
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480 yes:)
4481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483 ac_tool_warned=yes ;;
4484 esac
4485 CC=$ac_ct_CC
4486 fi
4487 fi
4488
4489 fi
4490 if test -z "$CC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4493 set dummy ${ac_tool_prefix}clang; ac_word=$2
4494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 printf %s "checking for $ac_word... " >&6; }
4496 if test ${ac_cv_prog_CC+y}
4497 then :
4498 printf %s "(cached) " >&6
4499 else case e in #(
4500 e) if test -n "$CC"; then
4501 ac_cv_prog_CC="$CC" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 case $as_dir in #(((
4508 '') as_dir=./ ;;
4509 */) ;;
4510 *) as_dir=$as_dir/ ;;
4511 esac
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="${ac_tool_prefix}clang"
4515 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518 done
4519 done
4520 IFS=$as_save_IFS
4521
4522 fi ;;
4523 esac
4524 fi
4525 CC=$ac_cv_prog_CC
4526 if test -n "$CC"; then
4527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4528 printf '%s\n' "$CC" >&6; }
4529 else
4530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 printf '%s\n' "no" >&6; }
4532 fi
4533
4534
4535 fi
4536 if test -z "$ac_cv_prog_CC"; then
4537 ac_ct_CC=$CC
4538 # Extract the first word of "clang", so it can be a program name with args.
4539 set dummy clang; ac_word=$2
4540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 printf %s "checking for $ac_word... " >&6; }
4542 if test ${ac_cv_prog_ac_ct_CC+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else case e in #(
4546 e) if test -n "$ac_ct_CC"; then
4547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552 IFS=$as_save_IFS
4553 case $as_dir in #(((
4554 '') as_dir=./ ;;
4555 */) ;;
4556 *) as_dir=$as_dir/ ;;
4557 esac
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_ac_ct_CC="clang"
4561 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi ;;
4569 esac
4570 fi
4571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572 if test -n "$ac_ct_CC"; then
4573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4574 printf '%s\n' "$ac_ct_CC" >&6; }
4575 else
4576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 printf '%s\n' "no" >&6; }
4578 fi
4579
4580 if test "x$ac_ct_CC" = x; then
4581 CC=""
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 CC=$ac_ct_CC
4590 fi
4591 else
4592 CC="$ac_cv_prog_CC"
4593 fi
4594
4595 fi
4596
4597
4598 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4599 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4600 as_fn_error $? "no acceptable C compiler found in \$PATH
4601 See 'config.log' for more details" "$LINENO" 5; }
4602
4603 # Provide some information about the compiler.
4604 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 for ac_option in --version -v -V -qversion -version; do
4608 { { ac_try="$ac_compiler $ac_option >&5"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 printf '%s\n' "$ac_try_echo"; } >&5
4615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 ac_status=$?
4617 if test -s conftest.err; then
4618 sed '10a\
4619 ... rest of stderr output deleted ...
4620 10q' conftest.err >conftest.er1
4621 cat conftest.er1 >&5
4622 fi
4623 rm -f conftest.er1 conftest.err
4624 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4626 done
4627
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630
4631 int
4632 main (void)
4633 {
4634
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 ac_clean_files_save=$ac_clean_files
4640 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4641 # Try to create an executable without -o first, disregard a.out.
4642 # It will help us diagnose broken compilers, and finding out an intuition
4643 # of exeext.
4644 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4645 printf %s "checking whether the C compiler works... " >&6; }
4646 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4647
4648 # The possible output files:
4649 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4650
4651 ac_rmfiles=
4652 for ac_file in $ac_files
4653 do
4654 case $ac_file in
4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4657 esac
4658 done
4659 rm -f $ac_rmfiles
4660
4661 if { { ac_try="$ac_link_default"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 printf '%s\n' "$ac_try_echo"; } >&5
4668 (eval "$ac_link_default") 2>&5
4669 ac_status=$?
4670 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 then :
4673 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4674 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4675 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4676 # so that the user can short-circuit this test for compilers unknown to
4677 # Autoconf.
4678 for ac_file in $ac_files ''
4679 do
4680 test -f "$ac_file" || continue
4681 case $ac_file in
4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4683 ;;
4684 [ab].out )
4685 # We found the default executable, but exeext='' is most
4686 # certainly right.
4687 break;;
4688 *.* )
4689 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4690 then :; else
4691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4692 fi
4693 # We set ac_cv_exeext here because the later test for it is not
4694 # safe: cross compilers may not add the suffix if given an '-o'
4695 # argument, so we may need to know it at that point already.
4696 # Even if this section looks crufty: it has the advantage of
4697 # actually working.
4698 break;;
4699 * )
4700 break;;
4701 esac
4702 done
4703 test "$ac_cv_exeext" = no && ac_cv_exeext=
4704
4705 else case e in #(
4706 e) ac_file='' ;;
4707 esac
4708 fi
4709 if test -z "$ac_file"
4710 then :
4711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 printf '%s\n' "no" >&6; }
4713 printf '%s\n' "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4717 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4718 as_fn_error 77 "C compiler cannot create executables
4719 See 'config.log' for more details" "$LINENO" 5; }
4720 else case e in #(
4721 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4722 printf '%s\n' "yes" >&6; } ;;
4723 esac
4724 fi
4725 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4726 printf %s "checking for C compiler default output file name... " >&6; }
4727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4728 printf '%s\n' "$ac_file" >&6; }
4729 ac_exeext=$ac_cv_exeext
4730
4731 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4732 ac_clean_files=$ac_clean_files_save
4733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4734 printf %s "checking for suffix of executables... " >&6; }
4735 if { { ac_try="$ac_link"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741 printf '%s\n' "$ac_try_echo"; } >&5
4742 (eval "$ac_link") 2>&5
4743 ac_status=$?
4744 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4745 test $ac_status = 0; }
4746 then :
4747 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4748 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4749 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4750 # 'rm'.
4751 for ac_file in conftest.exe conftest conftest.*; do
4752 test -f "$ac_file" || continue
4753 case $ac_file in
4754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4756 break;;
4757 * ) break;;
4758 esac
4759 done
4760 else case e in #(
4761 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4762 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4764 See 'config.log' for more details" "$LINENO" 5; } ;;
4765 esac
4766 fi
4767 rm -f conftest conftest$ac_cv_exeext
4768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4769 printf '%s\n' "$ac_cv_exeext" >&6; }
4770
4771 rm -f conftest.$ac_ext
4772 EXEEXT=$ac_cv_exeext
4773 ac_exeext=$EXEEXT
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <stdio.h>
4777 int
4778 main (void)
4779 {
4780 FILE *f = fopen ("conftest.out", "w");
4781 if (!f)
4782 return 1;
4783 return ferror (f) || fclose (f) != 0;
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 ac_clean_files="$ac_clean_files conftest.out"
4790 # Check that the compiler produces executables we can run. If not, either
4791 # the compiler is broken, or we cross compile.
4792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4793 printf %s "checking whether we are cross compiling... " >&6; }
4794 if test "$cross_compiling" != yes; then
4795 { { ac_try="$ac_link"
4796 case "(($ac_try" in
4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 printf '%s\n' "$ac_try_echo"; } >&5
4802 (eval "$ac_link") 2>&5
4803 ac_status=$?
4804 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4806 if { ac_try='./conftest$ac_cv_exeext'
4807 { { case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4812 printf '%s\n' "$ac_try_echo"; } >&5
4813 (eval "$ac_try") 2>&5
4814 ac_status=$?
4815 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; }; then
4817 cross_compiling=no
4818 else
4819 if test "$cross_compiling" = maybe; then
4820 cross_compiling=yes
4821 else
4822 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4823 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4824 as_fn_error 77 "cannot run C compiled programs.
4825 If you meant to cross compile, use '--host'.
4826 See 'config.log' for more details" "$LINENO" 5; }
4827 fi
4828 fi
4829 fi
4830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4831 printf '%s\n' "$cross_compiling" >&6; }
4832
4833 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4834 conftest.o conftest.obj conftest.out
4835 ac_clean_files=$ac_clean_files_save
4836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4837 printf %s "checking for suffix of object files... " >&6; }
4838 if test ${ac_cv_objext+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main (void)
4847 {
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.o conftest.obj
4854 if { { ac_try="$ac_compile"
4855 case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858 esac
4859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4860 printf '%s\n' "$ac_try_echo"; } >&5
4861 (eval "$ac_compile") 2>&5
4862 ac_status=$?
4863 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865 then :
4866 for ac_file in conftest.o conftest.obj conftest.*; do
4867 test -f "$ac_file" || continue;
4868 case $ac_file in
4869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4871 break;;
4872 esac
4873 done
4874 else case e in #(
4875 e) printf '%s\n' "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4879 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4880 as_fn_error $? "cannot compute suffix of object files: cannot compile
4881 See 'config.log' for more details" "$LINENO" 5; } ;;
4882 esac
4883 fi
4884 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4885 esac
4886 fi
4887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4888 printf '%s\n' "$ac_cv_objext" >&6; }
4889 OBJEXT=$ac_cv_objext
4890 ac_objext=$OBJEXT
4891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4892 printf %s "checking whether the compiler supports GNU C... " >&6; }
4893 if test ${ac_cv_c_compiler_gnu+y}
4894 then :
4895 printf %s "(cached) " >&6
4896 else case e in #(
4897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899
4900 int
4901 main (void)
4902 {
4903 #ifndef __GNUC__
4904 choke me
4905 #endif
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_c_try_compile "$LINENO"
4912 then :
4913 ac_compiler_gnu=yes
4914 else case e in #(
4915 e) ac_compiler_gnu=no ;;
4916 esac
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4920 ;;
4921 esac
4922 fi
4923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4924 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927 if test $ac_compiler_gnu = yes; then
4928 GCC=yes
4929 else
4930 GCC=
4931 fi
4932 ac_test_CFLAGS=${CFLAGS+y}
4933 ac_save_CFLAGS=$CFLAGS
4934 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4935 printf %s "checking whether $CC accepts -g... " >&6; }
4936 if test ${ac_cv_prog_cc_g+y}
4937 then :
4938 printf %s "(cached) " >&6
4939 else case e in #(
4940 e) ac_save_c_werror_flag=$ac_c_werror_flag
4941 ac_c_werror_flag=yes
4942 ac_cv_prog_cc_g=no
4943 CFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main (void)
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"
4956 then :
4957 ac_cv_prog_cc_g=yes
4958 else case e in #(
4959 e) CFLAGS=""
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 int
4964 main (void)
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"
4972 then :
4973
4974 else case e in #(
4975 e) ac_c_werror_flag=$ac_save_c_werror_flag
4976 CFLAGS="-g"
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main (void)
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_c_try_compile "$LINENO"
4989 then :
4990 ac_cv_prog_cc_g=yes
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4993 esac
4994 fi
4995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4996 esac
4997 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4999 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5000 esac
5001 fi
5002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5003 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
5004 if test $ac_test_CFLAGS; then
5005 CFLAGS=$ac_save_CFLAGS
5006 elif test $ac_cv_prog_cc_g = yes; then
5007 if test "$GCC" = yes; then
5008 CFLAGS="-g -O2"
5009 else
5010 CFLAGS="-g"
5011 fi
5012 else
5013 if test "$GCC" = yes; then
5014 CFLAGS="-O2"
5015 else
5016 CFLAGS=
5017 fi
5018 fi
5019 ac_prog_cc_stdc=no
5020 if test x$ac_prog_cc_stdc = xno
5021 then :
5022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
5023 printf %s "checking for $CC option to enable C23 features... " >&6; }
5024 if test ${ac_cv_prog_cc_c23+y}
5025 then :
5026 printf %s "(cached) " >&6
5027 else case e in #(
5028 e) ac_cv_prog_cc_c23=no
5029 ac_save_CC=$CC
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 $ac_c_conftest_c23_program
5033 _ACEOF
5034 for ac_arg in '' -std=gnu23
5035 do
5036 CC="$ac_save_CC $ac_arg"
5037 if ac_fn_c_try_compile "$LINENO"
5038 then :
5039 ac_cv_prog_cc_c23=$ac_arg
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.beam
5042 test "x$ac_cv_prog_cc_c23" != "xno" && break
5043 done
5044 rm -f conftest.$ac_ext
5045 CC=$ac_save_CC ;;
5046 esac
5047 fi
5048
5049 if test "x$ac_cv_prog_cc_c23" = xno
5050 then :
5051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5052 printf '%s\n' "unsupported" >&6; }
5053 else case e in #(
5054 e) if test "x$ac_cv_prog_cc_c23" = x
5055 then :
5056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057 printf '%s\n' "none needed" >&6; }
5058 else case e in #(
5059 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
5060 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
5061 CC="$CC $ac_cv_prog_cc_c23" ;;
5062 esac
5063 fi
5064 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
5065 ac_prog_cc_stdc=c23 ;;
5066 esac
5067 fi
5068 fi
5069 if test x$ac_prog_cc_stdc = xno
5070 then :
5071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5072 printf %s "checking for $CC option to enable C11 features... " >&6; }
5073 if test ${ac_cv_prog_cc_c11+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else case e in #(
5077 e) ac_cv_prog_cc_c11=no
5078 ac_save_CC=$CC
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 $ac_c_conftest_c11_program
5082 _ACEOF
5083 for ac_arg in '' -std=gnu11 -std:c11
5084 do
5085 CC="$ac_save_CC $ac_arg"
5086 if ac_fn_c_try_compile "$LINENO"
5087 then :
5088 ac_cv_prog_cc_c11=$ac_arg
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext conftest.beam
5091 test "x$ac_cv_prog_cc_c11" != "xno" && break
5092 done
5093 rm -f conftest.$ac_ext
5094 CC=$ac_save_CC ;;
5095 esac
5096 fi
5097
5098 if test "x$ac_cv_prog_cc_c11" = xno
5099 then :
5100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5101 printf '%s\n' "unsupported" >&6; }
5102 else case e in #(
5103 e) if test "x$ac_cv_prog_cc_c11" = x
5104 then :
5105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5106 printf '%s\n' "none needed" >&6; }
5107 else case e in #(
5108 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5109 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
5110 CC="$CC $ac_cv_prog_cc_c11" ;;
5111 esac
5112 fi
5113 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5114 ac_prog_cc_stdc=c11 ;;
5115 esac
5116 fi
5117 fi
5118 if test x$ac_prog_cc_stdc = xno
5119 then :
5120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5121 printf %s "checking for $CC option to enable C99 features... " >&6; }
5122 if test ${ac_cv_prog_cc_c99+y}
5123 then :
5124 printf %s "(cached) " >&6
5125 else case e in #(
5126 e) ac_cv_prog_cc_c99=no
5127 ac_save_CC=$CC
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 $ac_c_conftest_c99_program
5131 _ACEOF
5132 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5133 do
5134 CC="$ac_save_CC $ac_arg"
5135 if ac_fn_c_try_compile "$LINENO"
5136 then :
5137 ac_cv_prog_cc_c99=$ac_arg
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.beam
5140 test "x$ac_cv_prog_cc_c99" != "xno" && break
5141 done
5142 rm -f conftest.$ac_ext
5143 CC=$ac_save_CC ;;
5144 esac
5145 fi
5146
5147 if test "x$ac_cv_prog_cc_c99" = xno
5148 then :
5149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 printf '%s\n' "unsupported" >&6; }
5151 else case e in #(
5152 e) if test "x$ac_cv_prog_cc_c99" = x
5153 then :
5154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5155 printf '%s\n' "none needed" >&6; }
5156 else case e in #(
5157 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5158 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
5159 CC="$CC $ac_cv_prog_cc_c99" ;;
5160 esac
5161 fi
5162 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5163 ac_prog_cc_stdc=c99 ;;
5164 esac
5165 fi
5166 fi
5167 if test x$ac_prog_cc_stdc = xno
5168 then :
5169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5170 printf %s "checking for $CC option to enable C89 features... " >&6; }
5171 if test ${ac_cv_prog_cc_c89+y}
5172 then :
5173 printf %s "(cached) " >&6
5174 else case e in #(
5175 e) ac_cv_prog_cc_c89=no
5176 ac_save_CC=$CC
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 $ac_c_conftest_c89_program
5180 _ACEOF
5181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182 do
5183 CC="$ac_save_CC $ac_arg"
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 ac_cv_prog_cc_c89=$ac_arg
5187 fi
5188 rm -f core conftest.err conftest.$ac_objext conftest.beam
5189 test "x$ac_cv_prog_cc_c89" != "xno" && break
5190 done
5191 rm -f conftest.$ac_ext
5192 CC=$ac_save_CC ;;
5193 esac
5194 fi
5195
5196 if test "x$ac_cv_prog_cc_c89" = xno
5197 then :
5198 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5199 printf '%s\n' "unsupported" >&6; }
5200 else case e in #(
5201 e) if test "x$ac_cv_prog_cc_c89" = x
5202 then :
5203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5204 printf '%s\n' "none needed" >&6; }
5205 else case e in #(
5206 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5207 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
5208 CC="$CC $ac_cv_prog_cc_c89" ;;
5209 esac
5210 fi
5211 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5212 ac_prog_cc_stdc=c89 ;;
5213 esac
5214 fi
5215 fi
5216
5217 ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5230 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5231 if test ${am_cv_prog_cc_c_o+y}
5232 then :
5233 printf %s "(cached) " >&6
5234 else case e in #(
5235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237
5238 int
5239 main (void)
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 # Make sure it works both with $CC and with simple cc.
5247 # Following AC_PROG_CC_C_O, we do the test twice because some
5248 # compilers refuse to overwrite an existing .o file with -o,
5249 # though they will create one.
5250 am_cv_prog_cc_c_o=yes
5251 for am_i in 1 2; do
5252 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5253 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } \
5257 && test -f conftest2.$ac_objext; then
5258 : OK
5259 else
5260 am_cv_prog_cc_c_o=no
5261 break
5262 fi
5263 done
5264 # aligned with autoconf, so not including core; see bug#72225.
5265 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5266 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5267 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5268 unset am_i ;;
5269 esac
5270 fi
5271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5272 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
5273 if test "$am_cv_prog_cc_c_o" != yes; then
5274 # Losing compiler, so override with the script.
5275 # FIXME: It is wrong to rewrite CC.
5276 # But if we don't then we get into trouble of one sort or another.
5277 # A longer-term fix would be to have automake use am__CC in this case,
5278 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5279 CC="$am_aux_dir/compile $CC"
5280 fi
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286
5287 DEPDIR="${am__leading_dot}deps"
5288
5289 ac_config_commands="$ac_config_commands depfiles"
5290
5291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5292 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5293 cat > confinc.mk << 'END'
5294 am__doit:
5295 @echo this is the am__doit target >confinc.out
5296 .PHONY: am__doit
5297 END
5298 am__include="#"
5299 am__quote=
5300 # BSD make does it like this.
5301 echo '.include "confinc.mk" # ignored' > confmf.BSD
5302 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5303 echo 'include confinc.mk # ignored' > confmf.GNU
5304 _am_result=no
5305 for s in GNU BSD; do
5306 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5307 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }
5311 case $?:`cat confinc.out 2>/dev/null` in #(
5312 '0:this is the am__doit target') :
5313 case $s in #(
5314 BSD) :
5315 am__include='.include' am__quote='"' ;; #(
5316 *) :
5317 am__include='include' am__quote='' ;;
5318 esac ;; #(
5319 *) :
5320 ;;
5321 esac
5322 if test "$am__include" != "#"; then
5323 _am_result="yes ($s style)"
5324 break
5325 fi
5326 done
5327 rm -f confinc.* confmf.*
5328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5329 printf '%s\n' "${_am_result}" >&6; }
5330
5331 # Check whether --enable-dependency-tracking was given.
5332 if test ${enable_dependency_tracking+y}
5333 then :
5334 enableval=$enable_dependency_tracking;
5335 fi
5336
5337 if test "x$enable_dependency_tracking" != xno; then
5338 am_depcomp="$ac_aux_dir/depcomp"
5339 AMDEPBACKSLASH='\'
5340 am__nodep='_no'
5341 fi
5342 if test "x$enable_dependency_tracking" != xno; then
5343 AMDEP_TRUE=
5344 AMDEP_FALSE='#'
5345 else
5346 AMDEP_TRUE='#'
5347 AMDEP_FALSE=
5348 fi
5349
5350
5351
5352 depcc="$CC" am_compiler_list=
5353
5354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5355 printf %s "checking dependency style of $depcc... " >&6; }
5356 if test ${am_cv_CC_dependencies_compiler_type+y}
5357 then :
5358 printf %s "(cached) " >&6
5359 else case e in #(
5360 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5361 # We make a subdir and do the tests there. Otherwise we can end up
5362 # making bogus files that we don't know about and never remove. For
5363 # instance it was reported that on HP-UX the gcc test will end up
5364 # making a dummy file named 'D' -- because '-MD' means "put the output
5365 # in D".
5366 rm -rf conftest.dir
5367 mkdir conftest.dir
5368 # Copy depcomp to subdir because otherwise we won't find it if we're
5369 # using a relative directory.
5370 cp "$am_depcomp" conftest.dir
5371 cd conftest.dir
5372 # We will build objects and dependencies in a subdirectory because
5373 # it helps to detect inapplicable dependency modes. For instance
5374 # both Tru64's cc and ICC support -MD to output dependencies as a
5375 # side effect of compilation, but ICC will put the dependencies in
5376 # the current directory while Tru64 will put them in the object
5377 # directory.
5378 mkdir sub
5379
5380 am_cv_CC_dependencies_compiler_type=none
5381 if test "$am_compiler_list" = ""; then
5382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5383 fi
5384 am__universal=false
5385 case " $depcc " in #(
5386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5387 esac
5388
5389 for depmode in $am_compiler_list; do
5390 # Setup a source with many dependencies, because some compilers
5391 # like to wrap large dependency lists on column 80 (with \), and
5392 # we should not choose a depcomp mode which is confused by this.
5393 #
5394 # We need to recreate these files for each test, as the compiler may
5395 # overwrite some of them when testing with obscure command lines.
5396 # This happens at least with the AIX C compiler.
5397 : > sub/conftest.c
5398 for i in 1 2 3 4 5 6; do
5399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5400 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5401 # Solaris 10 /bin/sh.
5402 echo '/* dummy */' > sub/conftst$i.h
5403 done
5404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5405
5406 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5407 # mode. It turns out that the SunPro C++ compiler does not properly
5408 # handle '-M -o', and we need to detect this. Also, some Intel
5409 # versions had trouble with output in subdirs.
5410 am__obj=sub/conftest.${OBJEXT-o}
5411 am__minus_obj="-o $am__obj"
5412 case $depmode in
5413 gcc)
5414 # This depmode causes a compiler race in universal mode.
5415 test "$am__universal" = false || continue
5416 ;;
5417 nosideeffect)
5418 # After this tag, mechanisms are not by side-effect, so they'll
5419 # only be used when explicitly requested.
5420 if test "x$enable_dependency_tracking" = xyes; then
5421 continue
5422 else
5423 break
5424 fi
5425 ;;
5426 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5427 # This compiler won't grok '-c -o', but also, the minuso test has
5428 # not run yet. These depmodes are late enough in the game, and
5429 # so weak that their functioning should not be impacted.
5430 am__obj=conftest.${OBJEXT-o}
5431 am__minus_obj=
5432 ;;
5433 none) break ;;
5434 esac
5435 if depmode=$depmode \
5436 source=sub/conftest.c object=$am__obj \
5437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5439 >/dev/null 2>conftest.err &&
5440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5444 # icc doesn't choke on unknown options, it will just issue warnings
5445 # or remarks (even with -Werror). So we grep stderr for any message
5446 # that says an option was ignored or not supported.
5447 # When given -MP, icc 7.0 and 7.1 complain thus:
5448 # icc: Command line warning: ignoring option '-M'; no argument required
5449 # The diagnosis changed in icc 8.0:
5450 # icc: Command line remark: option '-MP' not supported
5451 if (grep 'ignoring option' conftest.err ||
5452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5453 am_cv_CC_dependencies_compiler_type=$depmode
5454 break
5455 fi
5456 fi
5457 done
5458
5459 cd ..
5460 rm -rf conftest.dir
5461 else
5462 am_cv_CC_dependencies_compiler_type=none
5463 fi
5464 ;;
5465 esac
5466 fi
5467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5468 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5470
5471 if
5472 test "x$enable_dependency_tracking" != xno \
5473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5474 am__fastdepCC_TRUE=
5475 am__fastdepCC_FALSE='#'
5476 else
5477 am__fastdepCC_TRUE='#'
5478 am__fastdepCC_FALSE=
5479 fi
5480
5481
5482 if test "x$ac_cv_prog_cc_c99" = xno; then
5483 as_fn_error $? "AIDE needs a C99 compatible compiler" "$LINENO" 5
5484 fi
5485
5486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5487 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5488 set x ${MAKE-make}
5489 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5490 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else case e in #(
5494 e) cat >conftest.make <<\_ACEOF
5495 SHELL = /bin/sh
5496 all:
5497 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
5498 _ACEOF
5499 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5500 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5501 *@@@%%%=?*=@@@%%%*)
5502 eval ac_cv_prog_make_${ac_make}_set=yes;;
5503 *)
5504 eval ac_cv_prog_make_${ac_make}_set=no;;
5505 esac
5506 rm -f conftest.make ;;
5507 esac
5508 fi
5509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 printf '%s\n' "yes" >&6; }
5512 SET_MAKE=
5513 else
5514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 printf '%s\n' "no" >&6; }
5516 SET_MAKE="MAKE=${MAKE-make}"
5517 fi
5518
5519 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 printf %s "checking for $ac_word... " >&6; }
5524 if test ${ac_cv_prog_RANLIB+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) if test -n "$RANLIB"; then
5529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 case $as_dir in #(((
5536 '') as_dir=./ ;;
5537 */) ;;
5538 *) as_dir=$as_dir/ ;;
5539 esac
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5543 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi ;;
5551 esac
5552 fi
5553 RANLIB=$ac_cv_prog_RANLIB
5554 if test -n "$RANLIB"; then
5555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5556 printf '%s\n' "$RANLIB" >&6; }
5557 else
5558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 printf '%s\n' "no" >&6; }
5560 fi
5561
5562
5563 fi
5564 if test -z "$ac_cv_prog_RANLIB"; then
5565 ac_ct_RANLIB=$RANLIB
5566 # Extract the first word of "ranlib", so it can be a program name with args.
5567 set dummy ranlib; ac_word=$2
5568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 printf %s "checking for $ac_word... " >&6; }
5570 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else case e in #(
5574 e) if test -n "$ac_ct_RANLIB"; then
5575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 case $as_dir in #(((
5582 '') as_dir=./ ;;
5583 */) ;;
5584 *) as_dir=$as_dir/ ;;
5585 esac
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_RANLIB="ranlib"
5589 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi ;;
5597 esac
5598 fi
5599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5600 if test -n "$ac_ct_RANLIB"; then
5601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5602 printf '%s\n' "$ac_ct_RANLIB" >&6; }
5603 else
5604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 printf '%s\n' "no" >&6; }
5606 fi
5607
5608 if test "x$ac_ct_RANLIB" = x; then
5609 RANLIB=":"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5616 esac
5617 RANLIB=$ac_ct_RANLIB
5618 fi
5619 else
5620 RANLIB="$ac_cv_prog_RANLIB"
5621 fi
5622
5623
5624 for ac_prog in 'bison -y' byacc
5625 do
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 printf %s "checking for $ac_word... " >&6; }
5630 if test ${ac_cv_prog_YACC+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else case e in #(
5634 e) if test -n "$YACC"; then
5635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 case $as_dir in #(((
5642 '') as_dir=./ ;;
5643 */) ;;
5644 *) as_dir=$as_dir/ ;;
5645 esac
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_YACC="$ac_prog"
5649 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi ;;
5657 esac
5658 fi
5659 YACC=$ac_cv_prog_YACC
5660 if test -n "$YACC"; then
5661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5662 printf '%s\n' "$YACC" >&6; }
5663 else
5664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 printf '%s\n' "no" >&6; }
5666 fi
5667
5668
5669 test -n "$YACC" && break
5670 done
5671 test -n "$YACC" || YACC="yacc"
5672
5673 if test "x${YACC}" != "xbison -y"; then
5674 echo "AIDE requires GNU bison"
5675 exit 5
5676 fi
5677
5678
5679 for ac_prog in flex lex
5680 do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 printf %s "checking for $ac_word... " >&6; }
5685 if test ${ac_cv_prog_LEX+y}
5686 then :
5687 printf %s "(cached) " >&6
5688 else case e in #(
5689 e) if test -n "$LEX"; then
5690 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 case $as_dir in #(((
5697 '') as_dir=./ ;;
5698 */) ;;
5699 *) as_dir=$as_dir/ ;;
5700 esac
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_LEX="$ac_prog"
5704 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi ;;
5712 esac
5713 fi
5714 LEX=$ac_cv_prog_LEX
5715 if test -n "$LEX"; then
5716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5717 printf '%s\n' "$LEX" >&6; }
5718 else
5719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 printf '%s\n' "no" >&6; }
5721 fi
5722
5723
5724 test -n "$LEX" && break
5725 done
5726 test -n "$LEX" || LEX=":"
5727
5728 if test "x$LEX" != "x:"; then
5729 cat >conftest.l <<_ACEOF
5730 %{
5731 #ifdef __cplusplus
5732 extern "C"
5733 #endif
5734 int yywrap(void);
5735 %}
5736 %%
5737 a { ECHO; }
5738 b { REJECT; }
5739 c { yymore (); }
5740 d { yyless (1); }
5741 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5742 #ifdef __cplusplus
5743 yyless ((yyinput () != 0));
5744 #else
5745 yyless ((input () != 0));
5746 #endif
5747 }
5748 f { unput (yytext[0]); }
5749 . { BEGIN INITIAL; }
5750 %%
5751 #ifdef YYTEXT_POINTER
5752 extern char *yytext;
5753 #endif
5754 int
5755 yywrap (void)
5756 {
5757 return 1;
5758 }
5759 int
5760 main (void)
5761 {
5762 return ! yylex ();
5763 }
5764 _ACEOF
5765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
5766 printf %s "checking for lex output file root... " >&6; }
5767 if test ${ac_cv_prog_lex_root+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e)
5772 ac_cv_prog_lex_root=unknown
5773 { { ac_try="$LEX conftest.l"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 printf '%s\n' "$ac_try_echo"; } >&5
5780 (eval "$LEX conftest.l") 2>&5
5781 ac_status=$?
5782 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; } &&
5784 if test -f lex.yy.c; then
5785 ac_cv_prog_lex_root=lex.yy
5786 elif test -f lexyy.c; then
5787 ac_cv_prog_lex_root=lexyy
5788 fi ;;
5789 esac
5790 fi
5791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5792 printf '%s\n' "$ac_cv_prog_lex_root" >&6; }
5793 if test "$ac_cv_prog_lex_root" = unknown
5794 then :
5795 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
5796 printf '%s\n' "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
5797 LEX=: LEXLIB=
5798 fi
5799 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5800
5801 # When compiled as C++, the test lexer declares yywrap with extern "C".
5802 # Solaris 10 lex (Software Generation Utilities (SGU) Solaris-ELF (4.0))'s
5803 # scanner skeleton will provide a conflicting declaration of yywrap,
5804 # *without* extern "C", unless we define this macro on the command line.
5805 # The %{ %} block is not early enough for the definition to be effective.
5806 ac_save_CPPFLAGS="$CPPFLAGS"
5807 CPPFLAGS="$CPPFLAGS -D__EXTERN_C__=1"
5808
5809 if test ${LEXLIB+y}
5810 then :
5811
5812 else case e in #(
5813 e)
5814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
5815 printf %s "checking for lex library... " >&6; }
5816 if test ${ac_cv_lib_lex+y}
5817 then :
5818 printf %s "(cached) " >&6
5819 else case e in #(
5820 e)
5821 ac_save_LIBS="$LIBS"
5822 ac_found=false
5823 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
5824 case $ac_cv_lib_lex in #(
5825 'none needed') :
5826 ;; #(
5827 'not found') :
5828 break ;; #(
5829 *) :
5830 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
5831 *) :
5832 ;;
5833 esac
5834
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 `cat $LEX_OUTPUT_ROOT.c`
5838 _ACEOF
5839 if ac_fn_c_try_link "$LINENO"
5840 then :
5841 ac_found=:
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5844 conftest$ac_exeext conftest.$ac_ext
5845 if $ac_found; then
5846 break
5847 fi
5848 done
5849 LIBS="$ac_save_LIBS"
5850 ;;
5851 esac
5852 fi
5853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5854 printf '%s\n' "$ac_cv_lib_lex" >&6; }
5855 if test "$ac_cv_lib_lex" = 'not found'
5856 then :
5857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
5858 printf '%s\n' "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
5859 LEX=: LEXLIB=
5860 elif test "$ac_cv_lib_lex" = 'none needed'
5861 then :
5862 LEXLIB=''
5863 else case e in #(
5864 e) LEXLIB=$ac_cv_lib_lex ;;
5865 esac
5866 fi
5867 ;;
5868 esac
5869 fi
5870
5871
5872 if test "$LEX" != :
5873 then :
5874
5875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5876 printf %s "checking whether yytext is a pointer... " >&6; }
5877 if test ${ac_cv_prog_lex_yytext_pointer+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) # POSIX says lex can declare yytext either as a pointer or an array; the
5882 # default is implementation-dependent. Figure out which it is, since
5883 # not all implementations provide the %pointer and %array declarations.
5884 ac_cv_prog_lex_yytext_pointer=no
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887
5888 #define YYTEXT_POINTER 1
5889 `cat $LEX_OUTPUT_ROOT.c`
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"
5892 then :
5893 ac_cv_prog_lex_yytext_pointer=yes
5894 fi
5895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5896 ;;
5897 esac
5898 fi
5899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5900 printf '%s\n' "$ac_cv_prog_lex_yytext_pointer" >&6; }
5901 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5902
5903 printf '%s\n' "#define YYTEXT_POINTER 1" >>confdefs.h
5904
5905 fi
5906
5907 fi
5908 CPPFLAGS="$ac_save_CPPFLAGS"
5909 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5910
5911 fi
5912 if test "x${LEX}" != "xflex"; then
5913 echo "AIDE requires GNU flex"
5914 exit 5
5915 fi
5916 for ac_prog in ld
5917 do
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 printf %s "checking for $ac_word... " >&6; }
5922 if test ${ac_cv_prog_LD+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else case e in #(
5926 e) if test -n "$LD"; then
5927 ac_cv_prog_LD="$LD" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932 IFS=$as_save_IFS
5933 case $as_dir in #(((
5934 '') as_dir=./ ;;
5935 */) ;;
5936 *) as_dir=$as_dir/ ;;
5937 esac
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_LD="$ac_prog"
5941 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi ;;
5949 esac
5950 fi
5951 LD=$ac_cv_prog_LD
5952 if test -n "$LD"; then
5953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5954 printf '%s\n' "$LD" >&6; }
5955 else
5956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 printf '%s\n' "no" >&6; }
5958 fi
5959
5960
5961 test -n "$LD" && break
5962 done
5963
5964
5965 if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5967 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 printf %s "checking for $ac_word... " >&6; }
5970 if test ${ac_cv_path_PKG_CONFIG+y}
5971 then :
5972 printf %s "(cached) " >&6
5973 else case e in #(
5974 e) case $PKG_CONFIG in
5975 [\\/]* | ?:[\\/]*)
5976 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5977 ;;
5978 *)
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 case $as_dir in #(((
5984 '') as_dir=./ ;;
5985 */) ;;
5986 *) as_dir=$as_dir/ ;;
5987 esac
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5990 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5991 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 ;;
5999 esac ;;
6000 esac
6001 fi
6002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6003 if test -n "$PKG_CONFIG"; then
6004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6005 printf '%s\n' "$PKG_CONFIG" >&6; }
6006 else
6007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 printf '%s\n' "no" >&6; }
6009 fi
6010
6011
6012 fi
6013 if test -z "$ac_cv_path_PKG_CONFIG"; then
6014 ac_pt_PKG_CONFIG=$PKG_CONFIG
6015 # Extract the first word of "pkg-config", so it can be a program name with args.
6016 set dummy pkg-config; ac_word=$2
6017 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 printf %s "checking for $ac_word... " >&6; }
6019 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6020 then :
6021 printf %s "(cached) " >&6
6022 else case e in #(
6023 e) case $ac_pt_PKG_CONFIG in
6024 [\\/]* | ?:[\\/]*)
6025 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6026 ;;
6027 *)
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031 IFS=$as_save_IFS
6032 case $as_dir in #(((
6033 '') as_dir=./ ;;
6034 */) ;;
6035 *) as_dir=$as_dir/ ;;
6036 esac
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6040 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 ;;
6048 esac ;;
6049 esac
6050 fi
6051 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6052 if test -n "$ac_pt_PKG_CONFIG"; then
6053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6054 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
6055 else
6056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 printf '%s\n' "no" >&6; }
6058 fi
6059
6060 if test "x$ac_pt_PKG_CONFIG" = x; then
6061 PKG_CONFIG="no"
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069 PKG_CONFIG=$ac_pt_PKG_CONFIG
6070 fi
6071 else
6072 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6073 fi
6074
6075
6076
6077 # Check whether --enable-largefile was given.
6078 if test ${enable_largefile+y}
6079 then :
6080 enableval=$enable_largefile;
6081 fi
6082 if test "$enable_largefile,$enable_year2038" != no,no
6083 then :
6084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
6085 printf %s "checking for $CC option to support large files... " >&6; }
6086 if test ${ac_cv_sys_largefile_opts+y}
6087 then :
6088 printf %s "(cached) " >&6
6089 else case e in #(
6090 e) ac_save_CPPFLAGS=$CPPFLAGS
6091 ac_opt_found=no
6092 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
6093 if test x"$ac_opt" != x"none needed"
6094 then :
6095 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6096 fi
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #ifndef FTYPE
6101 # define FTYPE off_t
6102 #endif
6103 /* Check that FTYPE can represent 2**63 - 1 correctly.
6104 We can't simply define LARGE_FTYPE to be 9223372036854775807,
6105 since some C++ compilers masquerading as C compilers
6106 incorrectly reject 9223372036854775807. */
6107 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
6108 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
6109 && LARGE_FTYPE % 2147483647 == 1)
6110 ? 1 : -1];
6111 int
6112 main (void)
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_compile "$LINENO"
6120 then :
6121 if test x"$ac_opt" = x"none needed"
6122 then :
6123 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
6124 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
6125 if ac_fn_c_try_compile "$LINENO"
6126 then :
6127
6128 else case e in #(
6129 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
6130 if ac_fn_c_try_compile "$LINENO"
6131 then :
6132 ac_opt='-D_FILE_OFFSET_BITS=64'
6133 fi
6134 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
6135 esac
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam
6138 fi
6139 ac_cv_sys_largefile_opts=$ac_opt
6140 ac_opt_found=yes
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 test $ac_opt_found = no || break
6144 done
6145 CPPFLAGS=$ac_save_CPPFLAGS
6146
6147 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
6148 esac
6149 fi
6150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
6151 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }
6152
6153 ac_have_largefile=yes
6154 case $ac_cv_sys_largefile_opts in #(
6155 "none needed") :
6156 ;; #(
6157 "supported through gnulib") :
6158 ;; #(
6159 "support not detected") :
6160 ac_have_largefile=no ;; #(
6161 "-D_FILE_OFFSET_BITS=64") :
6162
6163 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6164 ;; #(
6165 "-D_LARGE_FILES=1") :
6166
6167 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h
6168 ;; #(
6169 *) :
6170 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
6171 esac
6172
6173 if test "$enable_year2038" != no
6174 then :
6175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
6176 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
6177 if test ${ac_cv_sys_year2038_opts+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else case e in #(
6181 e) ac_save_CPPFLAGS="$CPPFLAGS"
6182 ac_opt_found=no
6183 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
6184 if test x"$ac_opt" != x"none needed"
6185 then :
6186 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6187 fi
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190
6191 #include <time.h>
6192 /* Check that time_t can represent 2**32 - 1 correctly. */
6193 #define LARGE_TIME_T \\
6194 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6195 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6196 && LARGE_TIME_T % 65537 == 0)
6197 ? 1 : -1];
6198
6199 int
6200 main (void)
6201 {
6202
6203 ;
6204 return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_compile "$LINENO"
6208 then :
6209 ac_cv_sys_year2038_opts="$ac_opt"
6210 ac_opt_found=yes
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213 test $ac_opt_found = no || break
6214 done
6215 CPPFLAGS="$ac_save_CPPFLAGS"
6216 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
6217 esac
6218 fi
6219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
6220 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }
6221
6222 ac_have_year2038=yes
6223 case $ac_cv_sys_year2038_opts in #(
6224 "none needed") :
6225 ;; #(
6226 "support not detected") :
6227 ac_have_year2038=no ;; #(
6228 "-D_TIME_BITS=64") :
6229
6230 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h
6231 ;; #(
6232 "-D__MINGW_USE_VC2005_COMPAT") :
6233
6234 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
6235 ;; #(
6236 "-U_USE_32_BIT_TIME_T"*) :
6237 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6238 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
6239 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
6240 will stop working after mid-January 2038. Remove
6241 _USE_32BIT_TIME_T from the compiler flags.
6242 See 'config.log' for more details" "$LINENO" 5; } ;; #(
6243 *) :
6244 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
6245 esac
6246
6247 fi
6248
6249 fi
6250
6251
6252
6253 # Check whether --with-extra-includes was given.
6254 if test ${with_extra_includes+y}
6255 then :
6256 withval=$with_extra_includes; CPPFLAGS="$CPPFLAGS $withval"
6257
6258 fi
6259
6260
6261 # Check whether --with-extra-libs was given.
6262 if test ${with_extra_libs+y}
6263 then :
6264 withval=$with_extra_libs; LDFLAGS="$LDFLAGS $withval"
6265
6266 fi
6267
6268
6269 # Check whether --with-extra-link-libs was given.
6270 if test ${with_extra_link_libs+y}
6271 then :
6272 withval=$with_extra_link_libs; LIBS="$LIBS $withval"
6273
6274 fi
6275
6276
6277 AIDE_DEFS="-D_GNU_SOURCE"
6278
6279
6280 if test $ac_cv_c_compiler_gnu = yes; then
6281 LD_STATIC_FLAG='-static'
6282
6283 case "$host_os" in
6284 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
6285 # PIC is the default for these OSes.
6286 ;;
6287 aix*)
6288 # Below there is a dirty hack to force normal static linking with -ldl
6289 # The problem is because libdl dynamically linked with both libc and
6290 # libC (AIX C++ library), which obviously doesn't included in libraries
6291 # list by gcc. This cause undefined symbols with -static flags.
6292 # This hack allows C programs to be linked with "-static -ldl", but
6293 # we not sure about C++ programs.
6294 LD_STATIC_FLAG="$LD_STATIC_FLAG ${wl}-lC"
6295 ;;
6296 cygwin* | mingw* | os2*)
6297 # We can build DLLs from non-PIC.
6298 ;;
6299 amigaos*)
6300 # FIXME: we need at least 68020 code to build shared libraries, but
6301 # adding the `-m68020' flag to GCC prevents building anything better,
6302 # like `-m68040'.
6303 ## pic_flag='-m68020 -resident32 -malways-restore-a4'
6304 ;;
6305 sysv4*MP*)
6306 ## if test -d /usr/nec; then
6307 ## pic_flag=-Kconform_pic
6308 ## fi
6309 ;;
6310 *)
6311 ## pic_flag='-fPIC'
6312 ;;
6313 esac
6314 else
6315 # PORTME Check for PIC flags for the system compiler.
6316 case "$host_os" in
6317 aix3* | aix4*)
6318 # All AIX code is PIC.
6319 LD_STATIC_FLAG='-bnso -bI:/lib/syscalls.exp'
6320 ;;
6321
6322 hpux9* | hpux10* | hpux11*)
6323 # Is there a better LD_STATIC_FLAG that works with the bundled CC?
6324 ## wl='-Wl,'
6325 LD_STATIC_FLAG="${wl}-a ${wl}archive"
6326 ## pic_flag='+Z'
6327 ;;
6328
6329 irix5* | irix6*)
6330 ## wl='-Wl,'
6331 LD_STATIC_FLAG='-non_shared'
6332 # PIC (with -KPIC) is the default.
6333 ;;
6334
6335 cygwin* | mingw* | os2*)
6336 # We can build DLLs from non-PIC.
6337 ;;
6338
6339 osf3* | osf4* | osf5*)
6340 # All OSF/1 code is PIC.
6341 ## wl='-Wl,'
6342 LD_STATIC_FLAG='-non_shared'
6343 ;;
6344
6345 sco3.2v5*)
6346 ## pic_flag='-Kpic'
6347 LD_STATIC_FLAG='-dn'
6348 ## special_shlib_compile_flags='-belf'
6349 ;;
6350
6351 solaris*)
6352 ## pic_flag='-KPIC'
6353 LD_STATIC_FLAG='-Bstatic'
6354 ## wl='-Wl,'
6355 ;;
6356
6357 sunos4*)
6358 ## pic_flag='-PIC'
6359 LD_STATIC_FLAG='-Bstatic'
6360 ## wl='-Qoption ld '
6361 ;;
6362
6363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6364 ## pic_flag='-KPIC'
6365 LD_STATIC_FLAG='-Bstatic'
6366 ## wl='-Wl,'
6367 ;;
6368
6369 uts4*)
6370 ## pic_flag='-pic'
6371 LD_STATIC_FLAG='-Bstatic'
6372 ;;
6373 sysv4*MP*)
6374 if test -d /usr/nec ;then
6375 ## pic_flag='-Kconform_pic'
6376 LD_STATIC_FLAG='-Bstatic'
6377 fi
6378 ;;
6379 *)
6380 ## can_build_shared=no
6381 ;;
6382 esac
6383 fi
6384
6385 # Check whether static linking has explicitly been enabled
6386 # Check whether --enable-static was given.
6387 if test ${enable_static+y}
6388 then :
6389 enableval=$enable_static; aide_static_choice=$enableval
6390 else case e in #(
6391 e) aide_static_choice=no ;;
6392 esac
6393 fi
6394
6395
6396 cc_supports_flag() {
6397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC supports \"$@\"" >&5
6398 printf %s "checking whether $CC supports \"$@\"... " >&6; }
6399 Cfile=/tmp/foo${$}
6400 touch ${Cfile}.c
6401 $CC -c "$@" ${Cfile}.c -o ${Cfile}.o >/dev/null 2>&1
6402 rc=$?
6403 rm -f ${Cfile}.c ${Cfile}.o
6404 case $rc in
6405 0) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6406 printf '%s\n' "yes" >&6; };;
6407 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 printf '%s\n' "no" >&6; };;
6409 esac
6410 return $rc
6411 }
6412
6413 ld_supports_flag() {
6414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $LD supports \"$@\"" >&5
6415 printf %s "checking whether $LD supports \"$@\"... " >&6; }
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418
6419 int one(void) { return 1; }
6420 int two(void) { return 2; }
6421
6422 int
6423 main (void)
6424 {
6425 two();
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_link "$LINENO"
6431 then :
6432 _ac_ld_flag_supported=yes
6433 else case e in #(
6434 e) _ac_ld_flag_supported=no ;;
6435 esac
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6438 conftest$ac_exeext conftest.$ac_ext
6439
6440 if test "$_ac_ld_flag_supported" = "yes"; then
6441 rm -f conftest.c
6442 touch conftest.c
6443 if $CC -c conftest.c; then
6444 ld_out=`$LD $@ -o conftest conftest.o 2>&1`
6445 ld_ret=$?
6446 if test $ld_ret -ne 0 ; then
6447 _ac_ld_flag_supported=no
6448 elif echo "$ld_out" | egrep 'option ignored|^usage:|unrecognized option|illegal option' >/dev/null ; then
6449 _ac_ld_flag_supported=no
6450 fi
6451 fi
6452 rm -f conftest.c conftest.o conftest
6453 fi
6454
6455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $_ac_ld_flag_supported" >&5
6456 printf '%s\n' "$_ac_ld_flag_supported" >&6; }
6457 if test "$_ac_ld_flag_supported" = "yes" ; then
6458 return 0
6459 else
6460 return 1
6461 fi
6462 }
6463
6464 if test "$aide_static_choice" != "yes"; then
6465 LD_STATIC_FLAG=""
6466 EXTRA_LDFLAGS=""
6467 EXTRA_CFLAGS=""
6468 if test x$CC = "xgcc"; then
6469 if ld_supports_flag -z,relro; then
6470 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,relro"
6471 fi
6472 if ld_supports_flag -z,now; then
6473 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,now"
6474 fi
6475 if cc_supports_flag -fPIE -DPIE; then
6476 EXTRA_CFLAGS="$EXTRA_CFLAGS -fPIE -DPIE"
6477 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -pie"
6478 fi
6479 if cc_supports_flag -Wundef; then
6480 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wundef"
6481 fi
6482 if cc_supports_flag -Wmissing-format-attribute; then
6483 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wmissing-format-attribute"
6484 fi
6485 if cc_supports_flag -Wshadow; then
6486 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
6487 fi
6488 if cc_supports_flag -Wlogical-op; then
6489 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wlogical-op"
6490 fi
6491 fi
6492 fi
6493
6494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
6495 printf %s "checking for library containing syslog... " >&6; }
6496 if test ${ac_cv_search_syslog+y}
6497 then :
6498 printf %s "(cached) " >&6
6499 else case e in #(
6500 e) ac_func_search_save_LIBS=$LIBS
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503
6504 /* Override any GCC internal prototype to avoid an error.
6505 Use char because int might match the return type of a GCC
6506 builtin and then its argument prototype would still apply.
6507 The 'extern "C"' is for builds by C++ compilers;
6508 although this is not generally supported in C code supporting it here
6509 has little cost and some practical benefit (sr 110532). */
6510 #ifdef __cplusplus
6511 extern "C"
6512 #endif
6513 char syslog (void);
6514 int
6515 main (void)
6516 {
6517 return syslog ();
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 for ac_lib in '' bsd socket inet
6523 do
6524 if test -z "$ac_lib"; then
6525 ac_res="none required"
6526 else
6527 ac_res=-l$ac_lib
6528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6529 fi
6530 if ac_fn_c_try_link "$LINENO"
6531 then :
6532 ac_cv_search_syslog=$ac_res
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6535 conftest$ac_exeext
6536 if test ${ac_cv_search_syslog+y}
6537 then :
6538 break
6539 fi
6540 done
6541 if test ${ac_cv_search_syslog+y}
6542 then :
6543
6544 else case e in #(
6545 e) ac_cv_search_syslog=no ;;
6546 esac
6547 fi
6548 rm conftest.$ac_ext
6549 LIBS=$ac_func_search_save_LIBS ;;
6550 esac
6551 fi
6552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
6553 printf '%s\n' "$ac_cv_search_syslog" >&6; }
6554 ac_res=$ac_cv_search_syslog
6555 if test "$ac_res" != no
6556 then :
6557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6558
6559 printf '%s\n' "#define HAVE_SYSLOG 1" >>confdefs.h
6560
6561 fi
6562
6563 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
6564 if test "x$ac_cv_func_vsyslog" = xyes
6565 then :
6566 printf '%s\n' "#define HAVE_VSYSLOG 1" >>confdefs.h
6567
6568 fi
6569
6570
6571 ac_header= ac_cache=
6572 for ac_item in $ac_header_c_list
6573 do
6574 if test $ac_cache; then
6575 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6576 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6577 printf '%s\n' "#define $ac_item 1" >> confdefs.h
6578 fi
6579 ac_header= ac_cache=
6580 elif test $ac_header; then
6581 ac_cache=$ac_item
6582 else
6583 ac_header=$ac_item
6584 fi
6585 done
6586
6587
6588
6589
6590
6591
6592
6593
6594 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6595 then :
6596
6597 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
6598
6599 fi
6600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6601 printf %s "checking whether byte ordering is bigendian... " >&6; }
6602 if test ${ac_cv_c_bigendian+y}
6603 then :
6604 printf %s "(cached) " >&6
6605 else case e in #(
6606 e) ac_cv_c_bigendian=unknown
6607 # See if we're dealing with a universal compiler.
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #ifndef __APPLE_CC__
6611 not a universal capable compiler
6612 #endif
6613 typedef int dummy;
6614
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"
6617 then :
6618
6619 # Check for potential -arch flags. It is not universal unless
6620 # there are at least two -arch flags with different values.
6621 ac_arch=
6622 ac_prev=
6623 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6624 if test -n "$ac_prev"; then
6625 case $ac_word in
6626 i?86 | x86_64 | ppc | ppc64)
6627 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6628 ac_arch=$ac_word
6629 else
6630 ac_cv_c_bigendian=universal
6631 break
6632 fi
6633 ;;
6634 esac
6635 ac_prev=
6636 elif test "x$ac_word" = "x-arch"; then
6637 ac_prev=arch
6638 fi
6639 done
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6642 if test $ac_cv_c_bigendian = unknown; then
6643 # See if sys/param.h defines the BYTE_ORDER macro.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 #include <sys/types.h>
6647 #include <sys/param.h>
6648
6649 int
6650 main (void)
6651 {
6652 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
6653 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
6654 && LITTLE_ENDIAN)
6655 bogus endian macros
6656 #endif
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"
6663 then :
6664 # It does; now see whether it defined to BIG_ENDIAN or not.
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 #include <sys/types.h>
6668 #include <sys/param.h>
6669
6670 int
6671 main (void)
6672 {
6673 #if BYTE_ORDER != BIG_ENDIAN
6674 not big endian
6675 #endif
6676
6677 ;
6678 return 0;
6679 }
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"
6682 then :
6683 ac_cv_c_bigendian=yes
6684 else case e in #(
6685 e) ac_cv_c_bigendian=no ;;
6686 esac
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6691 fi
6692 if test $ac_cv_c_bigendian = unknown; then
6693 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <limits.h>
6697
6698 int
6699 main (void)
6700 {
6701 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6702 bogus endian macros
6703 #endif
6704
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"
6710 then :
6711 # It does; now see whether it defined to _BIG_ENDIAN or not.
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 #include <limits.h>
6715
6716 int
6717 main (void)
6718 {
6719 #ifndef _BIG_ENDIAN
6720 not big endian
6721 #endif
6722
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"
6728 then :
6729 ac_cv_c_bigendian=yes
6730 else case e in #(
6731 e) ac_cv_c_bigendian=no ;;
6732 esac
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6737 fi
6738 if test $ac_cv_c_bigendian = unknown; then
6739 # Compile a test program.
6740 if test "$cross_compiling" = yes
6741 then :
6742 # Try to guess by grepping values from an object file.
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 unsigned short int ascii_mm[] =
6746 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6747 unsigned short int ascii_ii[] =
6748 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6749 int use_ascii (int i) {
6750 return ascii_mm[i] + ascii_ii[i];
6751 }
6752 unsigned short int ebcdic_ii[] =
6753 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6754 unsigned short int ebcdic_mm[] =
6755 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6756 int use_ebcdic (int i) {
6757 return ebcdic_mm[i] + ebcdic_ii[i];
6758 }
6759 int
6760 main (int argc, char **argv)
6761 {
6762 /* Intimidate the compiler so that it does not
6763 optimize the arrays away. */
6764 char *p = argv[0];
6765 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
6766 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
6767 return use_ascii (argc) == use_ebcdic (*p);
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"
6771 then :
6772 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
6773 ac_cv_c_bigendian=yes
6774 fi
6775 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
6776 if test "$ac_cv_c_bigendian" = unknown; then
6777 ac_cv_c_bigendian=no
6778 else
6779 # finding both strings is unlikely to happen, but who knows?
6780 ac_cv_c_bigendian=unknown
6781 fi
6782 fi
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6785 conftest$ac_exeext conftest.$ac_ext
6786 else case e in #(
6787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 $ac_includes_default
6790 int
6791 main (void)
6792 {
6793
6794 /* Are we little or big endian? From Harbison&Steele. */
6795 union
6796 {
6797 long int l;
6798 char c[sizeof (long int)];
6799 } u;
6800 u.l = 1;
6801 return u.c[sizeof (long int) - 1] == 1;
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_c_try_run "$LINENO"
6808 then :
6809 ac_cv_c_bigendian=no
6810 else case e in #(
6811 e) ac_cv_c_bigendian=yes ;;
6812 esac
6813 fi
6814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6815 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6816 esac
6817 fi
6818
6819 fi ;;
6820 esac
6821 fi
6822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6823 printf '%s\n' "$ac_cv_c_bigendian" >&6; }
6824 case $ac_cv_c_bigendian in #(
6825 yes)
6826
6827 printf '%s\n' "#define BIG_ENDIAN_HOST 1" >>confdefs.h
6828 ;; #(
6829 no)
6830
6831 printf '%s\n' "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
6832 ;; #(
6833 universal)
6834
6835 printf '%s\n' "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6836
6837 ;; #(
6838 *)
6839 as_fn_error $? "unknown endianness
6840 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6841 esac
6842
6843
6844 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
6845 if test "x$ac_cv_type_byte" = xyes
6846 then :
6847
6848 printf '%s\n' "#define HAVE_BYTE 1" >>confdefs.h
6849
6850
6851 fi
6852 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
6853 if test "x$ac_cv_type_ushort" = xyes
6854 then :
6855
6856 printf '%s\n' "#define HAVE_USHORT 1" >>confdefs.h
6857
6858
6859 fi
6860 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
6861 if test "x$ac_cv_type_ulong" = xyes
6862 then :
6863
6864 printf '%s\n' "#define HAVE_ULONG 1" >>confdefs.h
6865
6866
6867 fi
6868 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
6869 if test "x$ac_cv_type_u16" = xyes
6870 then :
6871
6872 printf '%s\n' "#define HAVE_U16 1" >>confdefs.h
6873
6874
6875 fi
6876 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
6877 if test "x$ac_cv_type_u32" = xyes
6878 then :
6879
6880 printf '%s\n' "#define HAVE_U32 1" >>confdefs.h
6881
6882
6883 fi
6884 ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default"
6885 if test "x$ac_cv_type_u64" = xyes
6886 then :
6887
6888 printf '%s\n' "#define HAVE_U64 1" >>confdefs.h
6889
6890
6891 fi
6892
6893
6894 # The cast to long int works around a bug in the HP C Compiler
6895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6896 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
6897 # This bug is HP SR number 8606223364.
6898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
6899 printf %s "checking size of unsigned short... " >&6; }
6900 if test ${ac_cv_sizeof_unsigned_short+y}
6901 then :
6902 printf %s "(cached) " >&6
6903 else case e in #(
6904 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
6905 then :
6906
6907 else case e in #(
6908 e) ac_cv_sizeof_unsigned_short=0 ;;
6909 esac
6910 fi
6911 ;;
6912 esac
6913 fi
6914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
6915 printf '%s\n' "$ac_cv_sizeof_unsigned_short" >&6; }
6916
6917
6918
6919 printf '%s\n' "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
6920
6921
6922 # The cast to long int works around a bug in the HP C Compiler
6923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6924 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
6925 # This bug is HP SR number 8606223364.
6926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
6927 printf %s "checking size of unsigned int... " >&6; }
6928 if test ${ac_cv_sizeof_unsigned_int+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else case e in #(
6932 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
6933 then :
6934
6935 else case e in #(
6936 e) ac_cv_sizeof_unsigned_int=0 ;;
6937 esac
6938 fi
6939 ;;
6940 esac
6941 fi
6942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
6943 printf '%s\n' "$ac_cv_sizeof_unsigned_int" >&6; }
6944
6945
6946
6947 printf '%s\n' "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
6948
6949
6950 # The cast to long int works around a bug in the HP C Compiler
6951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6952 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
6953 # This bug is HP SR number 8606223364.
6954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
6955 printf %s "checking size of unsigned long... " >&6; }
6956 if test ${ac_cv_sizeof_unsigned_long+y}
6957 then :
6958 printf %s "(cached) " >&6
6959 else case e in #(
6960 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
6961 then :
6962
6963 else case e in #(
6964 e) ac_cv_sizeof_unsigned_long=0 ;;
6965 esac
6966 fi
6967 ;;
6968 esac
6969 fi
6970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
6971 printf '%s\n' "$ac_cv_sizeof_unsigned_long" >&6; }
6972
6973
6974
6975 printf '%s\n' "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
6976
6977
6978 # The cast to long int works around a bug in the HP C Compiler
6979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6980 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
6981 # This bug is HP SR number 8606223364.
6982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
6983 printf %s "checking size of unsigned long long... " >&6; }
6984 if test ${ac_cv_sizeof_unsigned_long_long+y}
6985 then :
6986 printf %s "(cached) " >&6
6987 else case e in #(
6988 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
6989 then :
6990
6991 else case e in #(
6992 e) ac_cv_sizeof_unsigned_long_long=0 ;;
6993 esac
6994 fi
6995 ;;
6996 esac
6997 fi
6998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
6999 printf '%s\n' "$ac_cv_sizeof_unsigned_long_long" >&6; }
7000
7001
7002
7003 printf '%s\n' "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
7004
7005
7006
7007 # The cast to long int works around a bug in the HP C Compiler
7008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7009 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7010 # This bug is HP SR number 8606223364.
7011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7012 printf %s "checking size of int... " >&6; }
7013 if test ${ac_cv_sizeof_int+y}
7014 then :
7015 printf %s "(cached) " >&6
7016 else case e in #(
7017 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
7018 then :
7019
7020 else case e in #(
7021 e) ac_cv_sizeof_int=0 ;;
7022 esac
7023 fi
7024 ;;
7025 esac
7026 fi
7027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7028 printf '%s\n' "$ac_cv_sizeof_int" >&6; }
7029
7030
7031
7032 printf '%s\n' "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
7033
7034
7035
7036 # The cast to long int works around a bug in the HP C Compiler
7037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7038 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7039 # This bug is HP SR number 8606223364.
7040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7041 printf %s "checking size of long long... " >&6; }
7042 if test ${ac_cv_sizeof_long_long+y}
7043 then :
7044 printf %s "(cached) " >&6
7045 else case e in #(
7046 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
7047 then :
7048
7049 else case e in #(
7050 e) ac_cv_sizeof_long_long=0 ;;
7051 esac
7052 fi
7053 ;;
7054 esac
7055 fi
7056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7057 printf '%s\n' "$ac_cv_sizeof_long_long" >&6; }
7058
7059
7060
7061 printf '%s\n' "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
7062
7063
7064
7065 # The cast to long int works around a bug in the HP C Compiler
7066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7067 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7068 # This bug is HP SR number 8606223364.
7069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
7070 printf %s "checking size of uid_t... " >&6; }
7071 if test ${ac_cv_sizeof_uid_t+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else case e in #(
7075 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default"
7076 then :
7077
7078 else case e in #(
7079 e) ac_cv_sizeof_uid_t=0 ;;
7080 esac
7081 fi
7082 ;;
7083 esac
7084 fi
7085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
7086 printf '%s\n' "$ac_cv_sizeof_uid_t" >&6; }
7087
7088
7089
7090 printf '%s\n' "#define SIZEOF_UID_T $ac_cv_sizeof_uid_t" >>confdefs.h
7091
7092
7093 # The cast to long int works around a bug in the HP C Compiler
7094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7095 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7096 # This bug is HP SR number 8606223364.
7097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
7098 printf %s "checking size of gid_t... " >&6; }
7099 if test ${ac_cv_sizeof_gid_t+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else case e in #(
7103 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t" "$ac_includes_default"
7104 then :
7105
7106 else case e in #(
7107 e) ac_cv_sizeof_gid_t=0 ;;
7108 esac
7109 fi
7110 ;;
7111 esac
7112 fi
7113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
7114 printf '%s\n' "$ac_cv_sizeof_gid_t" >&6; }
7115
7116
7117
7118 printf '%s\n' "#define SIZEOF_GID_T $ac_cv_sizeof_gid_t" >>confdefs.h
7119
7120
7121 # The cast to long int works around a bug in the HP C Compiler
7122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7123 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7124 # This bug is HP SR number 8606223364.
7125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
7126 printf %s "checking size of ino_t... " >&6; }
7127 if test ${ac_cv_sizeof_ino_t+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else case e in #(
7131 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"
7132 then :
7133
7134 else case e in #(
7135 e) ac_cv_sizeof_ino_t=0 ;;
7136 esac
7137 fi
7138 ;;
7139 esac
7140 fi
7141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
7142 printf '%s\n' "$ac_cv_sizeof_ino_t" >&6; }
7143
7144
7145
7146 printf '%s\n' "#define SIZEOF_INO_T $ac_cv_sizeof_ino_t" >>confdefs.h
7147
7148
7149 # The cast to long int works around a bug in the HP C Compiler
7150 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7151 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7152 # This bug is HP SR number 8606223364.
7153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of nlink_t" >&5
7154 printf %s "checking size of nlink_t... " >&6; }
7155 if test ${ac_cv_sizeof_nlink_t+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else case e in #(
7159 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (nlink_t))" "ac_cv_sizeof_nlink_t" "$ac_includes_default"
7160 then :
7161
7162 else case e in #(
7163 e) ac_cv_sizeof_nlink_t=0 ;;
7164 esac
7165 fi
7166 ;;
7167 esac
7168 fi
7169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_nlink_t" >&5
7170 printf '%s\n' "$ac_cv_sizeof_nlink_t" >&6; }
7171
7172
7173
7174 printf '%s\n' "#define SIZEOF_NLINK_T $ac_cv_sizeof_nlink_t" >>confdefs.h
7175
7176
7177 # The cast to long int works around a bug in the HP C Compiler
7178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7179 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7180 # This bug is HP SR number 8606223364.
7181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7182 printf %s "checking size of off_t... " >&6; }
7183 if test ${ac_cv_sizeof_off_t+y}
7184 then :
7185 printf %s "(cached) " >&6
7186 else case e in #(
7187 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
7188 then :
7189
7190 else case e in #(
7191 e) ac_cv_sizeof_off_t=0 ;;
7192 esac
7193 fi
7194 ;;
7195 esac
7196 fi
7197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7198 printf '%s\n' "$ac_cv_sizeof_off_t" >&6; }
7199
7200
7201
7202 printf '%s\n' "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
7203
7204
7205 # The cast to long int works around a bug in the HP C Compiler
7206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7207 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7208 # This bug is HP SR number 8606223364.
7209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking size of blkcnt_t" >&5
7210 printf %s "checking size of blkcnt_t... " >&6; }
7211 if test ${ac_cv_sizeof_blkcnt_t+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else case e in #(
7215 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (blkcnt_t))" "ac_cv_sizeof_blkcnt_t" "$ac_includes_default"
7216 then :
7217
7218 else case e in #(
7219 e) ac_cv_sizeof_blkcnt_t=0 ;;
7220 esac
7221 fi
7222 ;;
7223 esac
7224 fi
7225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_blkcnt_t" >&5
7226 printf '%s\n' "$ac_cv_sizeof_blkcnt_t" >&6; }
7227
7228
7229
7230 printf '%s\n' "#define SIZEOF_BLKCNT_T $ac_cv_sizeof_blkcnt_t" >>confdefs.h
7231
7232
7233
7234 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
7235 if test "x$ac_cv_func_strtoll" = xyes
7236 then :
7237 printf '%s\n' "#define HAVE_STRTOLL 1" >>confdefs.h
7238
7239 fi
7240 ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax"
7241 if test "x$ac_cv_func_strtoimax" = xyes
7242 then :
7243 printf '%s\n' "#define HAVE_STRTOIMAX 1" >>confdefs.h
7244
7245 fi
7246 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
7247 if test "x$ac_cv_func_readdir" = xyes
7248 then :
7249 printf '%s\n' "#define HAVE_READDIR 1" >>confdefs.h
7250
7251 fi
7252
7253 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
7254 if test "x$ac_cv_func_stricmp" = xyes
7255 then :
7256 printf '%s\n' "#define HAVE_STRICMP 1" >>confdefs.h
7257
7258 fi
7259 ac_fn_c_check_func "$LINENO" "strnstr" "ac_cv_func_strnstr"
7260 if test "x$ac_cv_func_strnstr" = xyes
7261 then :
7262 printf '%s\n' "#define HAVE_STRNSTR 1" >>confdefs.h
7263
7264 fi
7265 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
7266 if test "x$ac_cv_func_strnlen" = xyes
7267 then :
7268 printf '%s\n' "#define HAVE_STRNLEN 1" >>confdefs.h
7269
7270 fi
7271
7272
7273 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
7274 if test "x$ac_cv_func_fcntl" = xyes
7275 then :
7276 printf '%s\n' "#define HAVE_FCNTL 1" >>confdefs.h
7277
7278 fi
7279 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
7280 if test "x$ac_cv_func_ftruncate" = xyes
7281 then :
7282 printf '%s\n' "#define HAVE_FTRUNCATE 1" >>confdefs.h
7283
7284 fi
7285 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
7286 if test "x$ac_cv_func_posix_fadvise" = xyes
7287 then :
7288 printf '%s\n' "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
7289
7290 fi
7291 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
7292 if test "x$ac_cv_func_asprintf" = xyes
7293 then :
7294 printf '%s\n' "#define HAVE_ASPRINTF 1" >>confdefs.h
7295
7296 fi
7297 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7298 if test "x$ac_cv_func_snprintf" = xyes
7299 then :
7300 printf '%s\n' "#define HAVE_SNPRINTF 1" >>confdefs.h
7301
7302 fi
7303 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
7304 if test "x$ac_cv_func_vasprintf" = xyes
7305 then :
7306 printf '%s\n' "#define HAVE_VASPRINTF 1" >>confdefs.h
7307
7308 fi
7309 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7310 if test "x$ac_cv_func_vsnprintf" = xyes
7311 then :
7312 printf '%s\n' "#define HAVE_VSNPRINTF 1" >>confdefs.h
7313
7314 fi
7315 ac_fn_c_check_func "$LINENO" "va_copy" "ac_cv_func_va_copy"
7316 if test "x$ac_cv_func_va_copy" = xyes
7317 then :
7318 printf '%s\n' "#define HAVE_VA_COPY 1" >>confdefs.h
7319
7320 fi
7321 ac_fn_c_check_func "$LINENO" "__va_copy" "ac_cv_func___va_copy"
7322 if test "x$ac_cv_func___va_copy" = xyes
7323 then :
7324 printf '%s\n' "#define HAVE___VA_COPY 1" >>confdefs.h
7325
7326 fi
7327
7328
7329 ac_fn_c_check_func "$LINENO" "sigabbrev_np" "ac_cv_func_sigabbrev_np"
7330 if test "x$ac_cv_func_sigabbrev_np" = xyes
7331 then :
7332 printf '%s\n' "#define HAVE_SIGABBREV_NP 1" >>confdefs.h
7333
7334 fi
7335
7336 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
7337 if test "x$ac_cv_header_sys_prctl_h" = xyes
7338 then :
7339 printf '%s\n' "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
7340
7341 fi
7342
7343
7344 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
7345 if test "x$ac_cv_header_syslog_h" = xyes
7346 then :
7347 printf '%s\n' "#define HAVE_SYSLOG_H 1" >>confdefs.h
7348
7349 fi
7350 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7351 if test "x$ac_cv_header_inttypes_h" = xyes
7352 then :
7353 printf '%s\n' "#define HAVE_INTTYPES_H 1" >>confdefs.h
7354
7355 fi
7356 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7357 if test "x$ac_cv_header_fcntl_h" = xyes
7358 then :
7359 printf '%s\n' "#define HAVE_FCNTL_H 1" >>confdefs.h
7360
7361 fi
7362 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
7363 if test "x$ac_cv_header_ctype_h" = xyes
7364 then :
7365 printf '%s\n' "#define HAVE_CTYPE_H 1" >>confdefs.h
7366
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 printf %s "checking for $ac_word... " >&6; }
7383 if test ${ac_cv_path_PKG_CONFIG+y}
7384 then :
7385 printf %s "(cached) " >&6
7386 else case e in #(
7387 e) case $PKG_CONFIG in
7388 [\\/]* | ?:[\\/]*)
7389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7390 ;;
7391 *)
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395 IFS=$as_save_IFS
7396 case $as_dir in #(((
7397 '') as_dir=./ ;;
7398 */) ;;
7399 *) as_dir=$as_dir/ ;;
7400 esac
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7403 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7404 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 ;;
7412 esac ;;
7413 esac
7414 fi
7415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7416 if test -n "$PKG_CONFIG"; then
7417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7418 printf '%s\n' "$PKG_CONFIG" >&6; }
7419 else
7420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 printf '%s\n' "no" >&6; }
7422 fi
7423
7424
7425 fi
7426 if test -z "$ac_cv_path_PKG_CONFIG"; then
7427 ac_pt_PKG_CONFIG=$PKG_CONFIG
7428 # Extract the first word of "pkg-config", so it can be a program name with args.
7429 set dummy pkg-config; ac_word=$2
7430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 printf %s "checking for $ac_word... " >&6; }
7432 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7433 then :
7434 printf %s "(cached) " >&6
7435 else case e in #(
7436 e) case $ac_pt_PKG_CONFIG in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7439 ;;
7440 *)
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 case $as_dir in #(((
7446 '') as_dir=./ ;;
7447 */) ;;
7448 *) as_dir=$as_dir/ ;;
7449 esac
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7453 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 ;;
7461 esac ;;
7462 esac
7463 fi
7464 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7465 if test -n "$ac_pt_PKG_CONFIG"; then
7466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7467 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
7468 else
7469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 printf '%s\n' "no" >&6; }
7471 fi
7472
7473 if test "x$ac_pt_PKG_CONFIG" = x; then
7474 PKG_CONFIG=""
7475 else
7476 case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480 ac_tool_warned=yes ;;
7481 esac
7482 PKG_CONFIG=$ac_pt_PKG_CONFIG
7483 fi
7484 else
7485 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7486 fi
7487
7488 fi
7489 if test -n "$PKG_CONFIG"; then
7490 _pkg_min_version=0.9.0
7491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7492 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7493 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7495 printf '%s\n' "yes" >&6; }
7496 else
7497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 printf '%s\n' "no" >&6; }
7499 PKG_CONFIG=""
7500 fi
7501 fi
7502 if test -z "$PKG_CONFIG"; then
7503 as_fn_error $? "pkg-config not found" "$LINENO" 5
7504 fi
7505
7506 if test "$aide_static_choice" = "yes"; then
7507 _save_PKG_CONFIG=$PKG_CONFIG
7508 PKG_CONFIG="$PKG_CONFIG --static"
7509
7510 pkg_failed=no
7511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5
7512 printf %s "checking for libpcre2-8... " >&6; }
7513
7514 if test -n "$PCRE2_CFLAGS"; then
7515 pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
7516 elif test -n "$PKG_CONFIG"; then
7517 if test -n "$PKG_CONFIG" && \
7518 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
7519 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
7520 ac_status=$?
7521 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
7524 test "x$?" != "x0" && pkg_failed=yes
7525 else
7526 pkg_failed=yes
7527 fi
7528 else
7529 pkg_failed=untried
7530 fi
7531 if test -n "$PCRE2_LIBS"; then
7532 pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
7533 elif test -n "$PKG_CONFIG"; then
7534 if test -n "$PKG_CONFIG" && \
7535 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
7536 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
7537 ac_status=$?
7538 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539 test $ac_status = 0; }; then
7540 pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
7541 test "x$?" != "x0" && pkg_failed=yes
7542 else
7543 pkg_failed=yes
7544 fi
7545 else
7546 pkg_failed=untried
7547 fi
7548
7549
7550
7551 if test $pkg_failed = yes; then
7552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 printf '%s\n' "no" >&6; }
7554
7555 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7556 _pkg_short_errors_supported=yes
7557 else
7558 _pkg_short_errors_supported=no
7559 fi
7560 if test $_pkg_short_errors_supported = yes; then
7561 PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1`
7562 else
7563 PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1`
7564 fi
7565 # Put the nasty error message in config.log where it belongs
7566 echo "$PCRE2_PKG_ERRORS" >&5
7567
7568 as_fn_error $? "libpcre2-8 not found by pkg-config - Try to add directory containing libpcre2-8.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
7569 elif test $pkg_failed = untried; then
7570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 printf '%s\n' "no" >&6; }
7572 as_fn_error $? "libpcre2-8 not found by pkg-config - Try to add directory containing libpcre2-8.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
7573 else
7574 PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
7575 PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
7576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 printf '%s\n' "yes" >&6; }
7578
7579 fi
7580 PKG_CONFIG=$_save_PKG_CONFIG
7581 else
7582
7583 pkg_failed=no
7584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5
7585 printf %s "checking for libpcre2-8... " >&6; }
7586
7587 if test -n "$PCRE2_CFLAGS"; then
7588 pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS"
7589 elif test -n "$PKG_CONFIG"; then
7590 if test -n "$PKG_CONFIG" && \
7591 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
7592 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
7593 ac_status=$?
7594 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595 test $ac_status = 0; }; then
7596 pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null`
7597 test "x$?" != "x0" && pkg_failed=yes
7598 else
7599 pkg_failed=yes
7600 fi
7601 else
7602 pkg_failed=untried
7603 fi
7604 if test -n "$PCRE2_LIBS"; then
7605 pkg_cv_PCRE2_LIBS="$PCRE2_LIBS"
7606 elif test -n "$PKG_CONFIG"; then
7607 if test -n "$PKG_CONFIG" && \
7608 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5
7609 ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5
7610 ac_status=$?
7611 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; }; then
7613 pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null`
7614 test "x$?" != "x0" && pkg_failed=yes
7615 else
7616 pkg_failed=yes
7617 fi
7618 else
7619 pkg_failed=untried
7620 fi
7621
7622
7623
7624 if test $pkg_failed = yes; then
7625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 printf '%s\n' "no" >&6; }
7627
7628 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7629 _pkg_short_errors_supported=yes
7630 else
7631 _pkg_short_errors_supported=no
7632 fi
7633 if test $_pkg_short_errors_supported = yes; then
7634 PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1`
7635 else
7636 PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1`
7637 fi
7638 # Put the nasty error message in config.log where it belongs
7639 echo "$PCRE2_PKG_ERRORS" >&5
7640
7641 as_fn_error $? "libpcre2-8 not found by pkg-config - Try to add directory containing libpcre2-8.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
7642 elif test $pkg_failed = untried; then
7643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 printf '%s\n' "no" >&6; }
7645 as_fn_error $? "libpcre2-8 not found by pkg-config - Try to add directory containing libpcre2-8.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
7646 else
7647 PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS
7648 PCRE2_LIBS=$pkg_cv_PCRE2_LIBS
7649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7650 printf '%s\n' "yes" >&6; }
7651
7652 fi
7653 fi
7654 compoptionstring="${compoptionstring}use pcre2: mandatory\\n"
7655
7656
7657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7658 printf %s "checking for a sed that does not truncate output... " >&6; }
7659 if test ${ac_cv_path_SED+y}
7660 then :
7661 printf %s "(cached) " >&6
7662 else case e in #(
7663 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7664 for ac_i in 1 2 3 4 5 6 7; do
7665 ac_script="$ac_script$as_nl$ac_script"
7666 done
7667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7668 { ac_script=; unset ac_script;}
7669 if test -z "$SED"; then
7670 ac_path_SED_found=false
7671 # Loop through the user's path and test for each of PROGNAME-LIST
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 case $as_dir in #(((
7677 '') as_dir=./ ;;
7678 */) ;;
7679 *) as_dir=$as_dir/ ;;
7680 esac
7681 for ac_prog in sed gsed
7682 do
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7685 as_fn_executable_p "$ac_path_SED" || continue
7686 # Check for GNU ac_path_SED and select it if it is found.
7687 # Check for GNU $ac_path_SED
7688 case `"$ac_path_SED" --version 2>&1` in #(
7689 *GNU*)
7690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7691 #(
7692 *)
7693 ac_count=0
7694 printf %s 0123456789 >"conftest.in"
7695 while :
7696 do
7697 cat "conftest.in" "conftest.in" >"conftest.tmp"
7698 mv "conftest.tmp" "conftest.in"
7699 cp "conftest.in" "conftest.nl"
7700 printf '%s\n' '' >> "conftest.nl"
7701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7703 as_fn_arith $ac_count + 1 && ac_count=$as_val
7704 if test $ac_count -gt ${ac_path_SED_max-0}; then
7705 # Best one so far, save it but keep looking for a better one
7706 ac_cv_path_SED="$ac_path_SED"
7707 ac_path_SED_max=$ac_count
7708 fi
7709 # 10*(2^10) chars as input seems more than enough
7710 test $ac_count -gt 10 && break
7711 done
7712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7713 esac
7714
7715 $ac_path_SED_found && break 3
7716 done
7717 done
7718 done
7719 IFS=$as_save_IFS
7720 if test -z "$ac_cv_path_SED"; then
7721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7722 fi
7723 else
7724 ac_cv_path_SED=$SED
7725 fi
7726 ;;
7727 esac
7728 fi
7729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7730 printf '%s\n' "$ac_cv_path_SED" >&6; }
7731 SED="$ac_cv_path_SED"
7732 rm -f conftest.sed
7733
7734 ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7740 printf %s "checking how to run the C preprocessor... " >&6; }
7741 # On Suns, sometimes $CPP names a directory.
7742 if test -n "$CPP" && test -d "$CPP"; then
7743 CPP=
7744 fi
7745 if test -z "$CPP"; then
7746 if test ${ac_cv_prog_CPP+y}
7747 then :
7748 printf %s "(cached) " >&6
7749 else case e in #(
7750 e) # Double quotes because $CC needs to be expanded
7751 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7752 do
7753 ac_preproc_ok=false
7754 for ac_c_preproc_warn_flag in '' yes
7755 do
7756 # Use a header file that comes with gcc, so configuring glibc
7757 # with a fresh cross-compiler works.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #include <limits.h>
7763 Syntax error
7764 _ACEOF
7765 if ac_fn_c_try_cpp "$LINENO"
7766 then :
7767
7768 else case e in #(
7769 e) # Broken: fails on valid input.
7770 continue ;;
7771 esac
7772 fi
7773 rm -f conftest.err conftest.i conftest.$ac_ext
7774
7775 # OK, works on sane cases. Now check whether nonexistent headers
7776 # can be detected and how.
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <ac_nonexistent.h>
7780 _ACEOF
7781 if ac_fn_c_try_cpp "$LINENO"
7782 then :
7783 # Broken: success on invalid input.
7784 continue
7785 else case e in #(
7786 e) # Passes both tests.
7787 ac_preproc_ok=:
7788 break ;;
7789 esac
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793 done
7794 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok
7797 then :
7798 break
7799 fi
7800
7801 done
7802 ac_cv_prog_CPP=$CPP
7803 ;;
7804 esac
7805 fi
7806 CPP=$ac_cv_prog_CPP
7807 else
7808 ac_cv_prog_CPP=$CPP
7809 fi
7810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7811 printf '%s\n' "$CPP" >&6; }
7812 ac_preproc_ok=false
7813 for ac_c_preproc_warn_flag in '' yes
7814 do
7815 # Use a header file that comes with gcc, so configuring glibc
7816 # with a fresh cross-compiler works.
7817 # On the NeXT, cc -E runs the code through the compiler's parser,
7818 # not just through cpp. "Syntax error" is here to catch this case.
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <limits.h>
7822 Syntax error
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"
7825 then :
7826
7827 else case e in #(
7828 e) # Broken: fails on valid input.
7829 continue ;;
7830 esac
7831 fi
7832 rm -f conftest.err conftest.i conftest.$ac_ext
7833
7834 # OK, works on sane cases. Now check whether nonexistent headers
7835 # can be detected and how.
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 #include <ac_nonexistent.h>
7839 _ACEOF
7840 if ac_fn_c_try_cpp "$LINENO"
7841 then :
7842 # Broken: success on invalid input.
7843 continue
7844 else case e in #(
7845 e) # Passes both tests.
7846 ac_preproc_ok=:
7847 break ;;
7848 esac
7849 fi
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7851
7852 done
7853 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7854 rm -f conftest.i conftest.err conftest.$ac_ext
7855 if $ac_preproc_ok
7856 then :
7857
7858 else case e in #(
7859 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7860 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
7861 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7862 See 'config.log' for more details" "$LINENO" 5; } ;;
7863 esac
7864 fi
7865
7866 ac_ext=c
7867 ac_cpp='$CPP $CPPFLAGS'
7868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
7872
7873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
7874 printf %s "checking for egrep -e... " >&6; }
7875 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
7876 then :
7877 printf %s "(cached) " >&6
7878 else case e in #(
7879 e) if test -z "$EGREP_TRADITIONAL"; then
7880 ac_path_EGREP_TRADITIONAL_found=false
7881 # Loop through the user's path and test for each of PROGNAME-LIST
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7884 do
7885 IFS=$as_save_IFS
7886 case $as_dir in #(((
7887 '') as_dir=./ ;;
7888 */) ;;
7889 *) as_dir=$as_dir/ ;;
7890 esac
7891 for ac_prog in grep ggrep
7892 do
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7895 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7896 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7897 # Check for GNU $ac_path_EGREP_TRADITIONAL
7898 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7899 *GNU*)
7900 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7901 #(
7902 *)
7903 ac_count=0
7904 printf %s 0123456789 >"conftest.in"
7905 while :
7906 do
7907 cat "conftest.in" "conftest.in" >"conftest.tmp"
7908 mv "conftest.tmp" "conftest.in"
7909 cp "conftest.in" "conftest.nl"
7910 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
7911 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7913 as_fn_arith $ac_count + 1 && ac_count=$as_val
7914 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7915 # Best one so far, save it but keep looking for a better one
7916 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7917 ac_path_EGREP_TRADITIONAL_max=$ac_count
7918 fi
7919 # 10*(2^10) chars as input seems more than enough
7920 test $ac_count -gt 10 && break
7921 done
7922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7923 esac
7924
7925 $ac_path_EGREP_TRADITIONAL_found && break 3
7926 done
7927 done
7928 done
7929 IFS=$as_save_IFS
7930 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7931 :
7932 fi
7933 else
7934 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7935 fi
7936
7937 if test "$ac_cv_path_EGREP_TRADITIONAL"
7938 then :
7939 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
7940 else case e in #(
7941 e) if test -z "$EGREP_TRADITIONAL"; then
7942 ac_path_EGREP_TRADITIONAL_found=false
7943 # Loop through the user's path and test for each of PROGNAME-LIST
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7946 do
7947 IFS=$as_save_IFS
7948 case $as_dir in #(((
7949 '') as_dir=./ ;;
7950 */) ;;
7951 *) as_dir=$as_dir/ ;;
7952 esac
7953 for ac_prog in egrep
7954 do
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7957 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7958 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7959 # Check for GNU $ac_path_EGREP_TRADITIONAL
7960 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7961 *GNU*)
7962 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7963 #(
7964 *)
7965 ac_count=0
7966 printf %s 0123456789 >"conftest.in"
7967 while :
7968 do
7969 cat "conftest.in" "conftest.in" >"conftest.tmp"
7970 mv "conftest.tmp" "conftest.in"
7971 cp "conftest.in" "conftest.nl"
7972 printf '%s\n' 'EGREP_TRADITIONAL' >> "conftest.nl"
7973 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7975 as_fn_arith $ac_count + 1 && ac_count=$as_val
7976 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7977 # Best one so far, save it but keep looking for a better one
7978 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7979 ac_path_EGREP_TRADITIONAL_max=$ac_count
7980 fi
7981 # 10*(2^10) chars as input seems more than enough
7982 test $ac_count -gt 10 && break
7983 done
7984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7985 esac
7986
7987 $ac_path_EGREP_TRADITIONAL_found && break 3
7988 done
7989 done
7990 done
7991 IFS=$as_save_IFS
7992 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7993 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7994 fi
7995 else
7996 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7997 fi
7998 ;;
7999 esac
8000 fi ;;
8001 esac
8002 fi
8003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
8004 printf '%s\n' "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
8005 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
8006
8007
8008
8009
8010
8011 ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017 ax_pthread_ok=no
8018
8019 # We used to check for pthread.h first, but this fails if pthread.h
8020 # requires special compiler flags (e.g. on Tru64 or Sequent).
8021 # It gets checked for in the link test anyway.
8022
8023 # First of all, check if the user has set any of the PTHREAD_LIBS,
8024 # etcetera environment variables, and if threads linking works using
8025 # them:
8026 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8027 ax_pthread_save_CC="$CC"
8028 ax_pthread_save_CFLAGS="$CFLAGS"
8029 ax_pthread_save_LIBS="$LIBS"
8030 if test "x$PTHREAD_CC" != "x"
8031 then :
8032 CC="$PTHREAD_CC"
8033 fi
8034 if test "x$PTHREAD_CXX" != "x"
8035 then :
8036 CXX="$PTHREAD_CXX"
8037 fi
8038 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8039 LIBS="$PTHREAD_LIBS $LIBS"
8040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8041 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044
8045 /* Override any GCC internal prototype to avoid an error.
8046 Use char because int might match the return type of a GCC
8047 builtin and then its argument prototype would still apply.
8048 The 'extern "C"' is for builds by C++ compilers;
8049 although this is not generally supported in C code supporting it here
8050 has little cost and some practical benefit (sr 110532). */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 char pthread_join (void);
8055 int
8056 main (void)
8057 {
8058 return pthread_join ();
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_link "$LINENO"
8064 then :
8065 ax_pthread_ok=yes
8066 fi
8067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8068 conftest$ac_exeext conftest.$ac_ext
8069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8070 printf '%s\n' "$ax_pthread_ok" >&6; }
8071 if test "x$ax_pthread_ok" = "xno"; then
8072 PTHREAD_LIBS=""
8073 PTHREAD_CFLAGS=""
8074 fi
8075 CC="$ax_pthread_save_CC"
8076 CFLAGS="$ax_pthread_save_CFLAGS"
8077 LIBS="$ax_pthread_save_LIBS"
8078 fi
8079
8080 # We must check for the threads library under a number of different
8081 # names; the ordering is very important because some systems
8082 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8083 # libraries is broken (non-POSIX).
8084
8085 # Create a list of thread flags to try. Items with a "," contain both
8086 # C compiler flags (before ",") and linker flags (after ","). Other items
8087 # starting with a "-" are C compiler flags, and remaining items are
8088 # library names, except for "none" which indicates that we try without
8089 # any flags at all, and "pthread-config" which is a program returning
8090 # the flags for the Pth emulation library.
8091
8092 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8093
8094 # The ordering *is* (sometimes) important. Some notes on the
8095 # individual items follow:
8096
8097 # pthreads: AIX (must check this before -lpthread)
8098 # none: in case threads are in libc; should be tried before -Kthread and
8099 # other compiler flags to prevent continual compiler warnings
8100 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8101 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8102 # (Note: HP C rejects this with "bad form for `-t' option")
8103 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8104 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8105 # doesn't hurt to check since this sometimes defines pthreads and
8106 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8107 # is present but should not be used directly; and before -mthreads,
8108 # because the compiler interprets this as "-mt" + "-hreads")
8109 # -mthreads: Mingw32/gcc, Lynx/gcc
8110 # pthread: Linux, etcetera
8111 # --thread-safe: KAI C++
8112 # pthread-config: use pthread-config program (for GNU Pth library)
8113
8114 case $host_os in
8115
8116 freebsd*)
8117
8118 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8119 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8120
8121 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8122 ;;
8123
8124 hpux*)
8125
8126 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8127 # multi-threading and also sets -lpthread."
8128
8129 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8130 ;;
8131
8132 openedition*)
8133
8134 # IBM z/OS requires a feature-test macro to be defined in order to
8135 # enable POSIX threads at all, so give the user a hint if this is
8136 # not set. (We don't define these ourselves, as they can affect
8137 # other portions of the system API in unpredictable ways.)
8138
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141
8142 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8143 AX_PTHREAD_ZOS_MISSING
8144 # endif
8145
8146 _ACEOF
8147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8148 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
8149 then :
8150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8151 printf '%s\n' "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8152 fi
8153 rm -rf conftest*
8154
8155 ;;
8156
8157 solaris*)
8158
8159 # On Solaris (at least, for some versions), libc contains stubbed
8160 # (non-functional) versions of the pthreads routines, so link-based
8161 # tests will erroneously succeed. (N.B.: The stubs are missing
8162 # pthread_cleanup_push, or rather a function called by this macro,
8163 # so we could check for that, but who knows whether they'll stub
8164 # that too in a future libc.) So we'll check first for the
8165 # standard Solaris way of linking pthreads (-mt -lpthread).
8166
8167 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
8168 ;;
8169 esac
8170
8171 # Are we compiling with Clang?
8172
8173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8174 printf %s "checking whether $CC is Clang... " >&6; }
8175 if test ${ax_cv_PTHREAD_CLANG+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else case e in #(
8179 e) ax_cv_PTHREAD_CLANG=no
8180 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8181 if test "x$GCC" = "xyes"; then
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8185 # if defined(__clang__) && defined(__llvm__)
8186 AX_PTHREAD_CC_IS_CLANG
8187 # endif
8188
8189 _ACEOF
8190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8191 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
8192 then :
8193 ax_cv_PTHREAD_CLANG=yes
8194 fi
8195 rm -rf conftest*
8196
8197 fi
8198 ;;
8199 esac
8200 fi
8201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8202 printf '%s\n' "$ax_cv_PTHREAD_CLANG" >&6; }
8203 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8204
8205
8206 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8207
8208 # Note that for GCC and Clang -pthread generally implies -lpthread,
8209 # except when -nostdlib is passed.
8210 # This is problematic using libtool to build C++ shared libraries with pthread:
8211 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
8212 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
8213 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
8214 # To solve this, first try -pthread together with -lpthread for GCC
8215
8216 if test "x$GCC" = "xyes"
8217 then :
8218 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
8219 fi
8220
8221 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
8222
8223 if test "x$ax_pthread_clang" = "xyes"
8224 then :
8225 ax_pthread_flags="-pthread,-lpthread -pthread"
8226 fi
8227
8228
8229 # The presence of a feature test macro requesting re-entrant function
8230 # definitions is, on some systems, a strong hint that pthreads support is
8231 # correctly enabled
8232
8233 case $host_os in
8234 darwin* | hpux* | linux* | osf* | solaris*)
8235 ax_pthread_check_macro="_REENTRANT"
8236 ;;
8237
8238 aix*)
8239 ax_pthread_check_macro="_THREAD_SAFE"
8240 ;;
8241
8242 *)
8243 ax_pthread_check_macro="--"
8244 ;;
8245 esac
8246 if test "x$ax_pthread_check_macro" = "x--"
8247 then :
8248 ax_pthread_check_cond=0
8249 else case e in #(
8250 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
8251 esac
8252 fi
8253
8254
8255 if test "x$ax_pthread_ok" = "xno"; then
8256 for ax_pthread_try_flag in $ax_pthread_flags; do
8257
8258 case $ax_pthread_try_flag in
8259 none)
8260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8261 printf %s "checking whether pthreads work without any flags... " >&6; }
8262 ;;
8263
8264 *,*)
8265 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
8266 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
8267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
8268 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
8269 ;;
8270
8271 -*)
8272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8273 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8274 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8275 ;;
8276
8277 pthread-config)
8278 # Extract the first word of "pthread-config", so it can be a program name with args.
8279 set dummy pthread-config; ac_word=$2
8280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 printf %s "checking for $ac_word... " >&6; }
8282 if test ${ac_cv_prog_ax_pthread_config+y}
8283 then :
8284 printf %s "(cached) " >&6
8285 else case e in #(
8286 e) if test -n "$ax_pthread_config"; then
8287 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292 IFS=$as_save_IFS
8293 case $as_dir in #(((
8294 '') as_dir=./ ;;
8295 */) ;;
8296 *) as_dir=$as_dir/ ;;
8297 esac
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_ax_pthread_config="yes"
8301 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304 done
8305 done
8306 IFS=$as_save_IFS
8307
8308 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8309 fi ;;
8310 esac
8311 fi
8312 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8313 if test -n "$ax_pthread_config"; then
8314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8315 printf '%s\n' "$ax_pthread_config" >&6; }
8316 else
8317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 printf '%s\n' "no" >&6; }
8319 fi
8320
8321
8322 if test "x$ax_pthread_config" = "xno"
8323 then :
8324 continue
8325 fi
8326 PTHREAD_CFLAGS="`pthread-config --cflags`"
8327 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8328 ;;
8329
8330 *)
8331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8332 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8333 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8334 ;;
8335 esac
8336
8337 ax_pthread_save_CFLAGS="$CFLAGS"
8338 ax_pthread_save_LIBS="$LIBS"
8339 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8340 LIBS="$PTHREAD_LIBS $LIBS"
8341
8342 # Check for various functions. We must include pthread.h,
8343 # since some functions may be macros. (On the Sequent, we
8344 # need a special flag -Kthread to make this header compile.)
8345 # We check for pthread_join because it is in -lpthread on IRIX
8346 # while pthread_create is in libc. We check for pthread_attr_init
8347 # due to DEC craziness with -lpthreads. We check for
8348 # pthread_cleanup_push because it is one of the few pthread
8349 # functions on Solaris that doesn't have a non-functional libc stub.
8350 # We try pthread_create on general principles.
8351
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <pthread.h>
8355 # if $ax_pthread_check_cond
8356 # error "$ax_pthread_check_macro must be defined"
8357 # endif
8358 static void *some_global = NULL;
8359 static void routine(void *a)
8360 {
8361 /* To avoid any unused-parameter or
8362 unused-but-set-parameter warning. */
8363 some_global = a;
8364 }
8365 static void *start_routine(void *a) { return a; }
8366 int
8367 main (void)
8368 {
8369 pthread_t th; pthread_attr_t attr;
8370 pthread_create(&th, 0, start_routine, 0);
8371 pthread_join(th, 0);
8372 pthread_attr_init(&attr);
8373 pthread_cleanup_push(routine, 0);
8374 pthread_cleanup_pop(0) /* ; */
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"
8380 then :
8381 ax_pthread_ok=yes
8382 fi
8383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8384 conftest$ac_exeext conftest.$ac_ext
8385
8386 CFLAGS="$ax_pthread_save_CFLAGS"
8387 LIBS="$ax_pthread_save_LIBS"
8388
8389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8390 printf '%s\n' "$ax_pthread_ok" >&6; }
8391 if test "x$ax_pthread_ok" = "xyes"
8392 then :
8393 break
8394 fi
8395
8396 PTHREAD_LIBS=""
8397 PTHREAD_CFLAGS=""
8398 done
8399 fi
8400
8401
8402 # Clang needs special handling, because older versions handle the -pthread
8403 # option in a rather... idiosyncratic way
8404
8405 if test "x$ax_pthread_clang" = "xyes"; then
8406
8407 # Clang takes -pthread; it has never supported any other flag
8408
8409 # (Note 1: This will need to be revisited if a system that Clang
8410 # supports has POSIX threads in a separate library. This tends not
8411 # to be the way of modern systems, but it's conceivable.)
8412
8413 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8414 # to get POSIX threads support; the API is always present and
8415 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8416 # -pthread does define _REENTRANT, and while the Darwin headers
8417 # ignore this macro, third-party headers might not.)
8418
8419 # However, older versions of Clang make a point of warning the user
8420 # that, in an invocation where only linking and no compilation is
8421 # taking place, the -pthread option has no effect ("argument unused
8422 # during compilation"). They expect -pthread to be passed in only
8423 # when source code is being compiled.
8424 #
8425 # Problem is, this is at odds with the way Automake and most other
8426 # C build frameworks function, which is that the same flags used in
8427 # compilation (CFLAGS) are also used in linking. Many systems
8428 # supported by AX_PTHREAD require exactly this for POSIX threads
8429 # support, and in fact it is often not straightforward to specify a
8430 # flag that is used only in the compilation phase and not in
8431 # linking. Such a scenario is extremely rare in practice.
8432 #
8433 # Even though use of the -pthread flag in linking would only print
8434 # a warning, this can be a nuisance for well-run software projects
8435 # that build with -Werror. So if the active version of Clang has
8436 # this misfeature, we search for an option to squash it.
8437
8438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8439 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8440 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else case e in #(
8444 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8445 # Create an alternate version of $ac_link that compiles and
8446 # links in two steps (.c -> .o, .o -> exe) instead of one
8447 # (.c -> exe), because the warning occurs only in the second
8448 # step
8449 ax_pthread_save_ac_link="$ac_link"
8450 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8451 ax_pthread_link_step=`printf '%s\n' "$ac_link" | sed "$ax_pthread_sed"`
8452 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8453 ax_pthread_save_CFLAGS="$CFLAGS"
8454 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8455 if test "x$ax_pthread_try" = "xunknown"
8456 then :
8457 break
8458 fi
8459 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8460 ac_link="$ax_pthread_save_ac_link"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 int main(void){return 0;}
8464 _ACEOF
8465 if ac_fn_c_try_link "$LINENO"
8466 then :
8467 ac_link="$ax_pthread_2step_ac_link"
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 int main(void){return 0;}
8471 _ACEOF
8472 if ac_fn_c_try_link "$LINENO"
8473 then :
8474 break
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8477 conftest$ac_exeext conftest.$ac_ext
8478
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8481 conftest$ac_exeext conftest.$ac_ext
8482 done
8483 ac_link="$ax_pthread_save_ac_link"
8484 CFLAGS="$ax_pthread_save_CFLAGS"
8485 if test "x$ax_pthread_try" = "x"
8486 then :
8487 ax_pthread_try=no
8488 fi
8489 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8490 ;;
8491 esac
8492 fi
8493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8494 printf '%s\n' "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8495
8496 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8497 no | unknown) ;;
8498 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8499 esac
8500
8501 fi # $ax_pthread_clang = yes
8502
8503
8504
8505 # Various other checks:
8506 if test "x$ax_pthread_ok" = "xyes"; then
8507 ax_pthread_save_CFLAGS="$CFLAGS"
8508 ax_pthread_save_LIBS="$LIBS"
8509 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8510 LIBS="$PTHREAD_LIBS $LIBS"
8511
8512 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8514 printf %s "checking for joinable pthread attribute... " >&6; }
8515 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else case e in #(
8519 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8520 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #include <pthread.h>
8524 int
8525 main (void)
8526 {
8527 int attr = $ax_pthread_attr; return attr /* ; */
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 if ac_fn_c_try_link "$LINENO"
8533 then :
8534 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8537 conftest$ac_exeext conftest.$ac_ext
8538 done
8539 ;;
8540 esac
8541 fi
8542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8543 printf '%s\n' "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8544 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8545 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8546 test "x$ax_pthread_joinable_attr_defined" != "xyes"
8547 then :
8548
8549 printf '%s\n' "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
8550
8551 ax_pthread_joinable_attr_defined=yes
8552
8553 fi
8554
8555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8556 printf %s "checking whether more special flags are required for pthreads... " >&6; }
8557 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else case e in #(
8561 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
8562 case $host_os in
8563 solaris*)
8564 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8565 ;;
8566 esac
8567 ;;
8568 esac
8569 fi
8570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8571 printf '%s\n' "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8572 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8573 test "x$ax_pthread_special_flags_added" != "xyes"
8574 then :
8575 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8576 ax_pthread_special_flags_added=yes
8577 fi
8578
8579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8580 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8581 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
8582 then :
8583 printf %s "(cached) " >&6
8584 else case e in #(
8585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <pthread.h>
8588 int
8589 main (void)
8590 {
8591 int i = PTHREAD_PRIO_INHERIT;
8592 return i;
8593 ;
8594 return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_c_try_link "$LINENO"
8598 then :
8599 ax_cv_PTHREAD_PRIO_INHERIT=yes
8600 else case e in #(
8601 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
8602 esac
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8605 conftest$ac_exeext conftest.$ac_ext
8606 ;;
8607 esac
8608 fi
8609 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8610 printf '%s\n' "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8611 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8612 test "x$ax_pthread_prio_inherit_defined" != "xyes"
8613 then :
8614
8615 printf '%s\n' "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8616
8617 ax_pthread_prio_inherit_defined=yes
8618
8619 fi
8620
8621 CFLAGS="$ax_pthread_save_CFLAGS"
8622 LIBS="$ax_pthread_save_LIBS"
8623
8624 # More AIX lossage: compile with *_r variant
8625 if test "x$GCC" != "xyes"; then
8626 case $host_os in
8627 aix*)
8628 case "x/$CC" in #(
8629 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8630 #handle absolute path differently from PATH based program lookup
8631 case "x$CC" in #(
8632 x/*) :
8633
8634 if as_fn_executable_p ${CC}_r
8635 then :
8636 PTHREAD_CC="${CC}_r"
8637 fi
8638 if test "x${CXX}" != "x"
8639 then :
8640 if as_fn_executable_p ${CXX}_r
8641 then :
8642 PTHREAD_CXX="${CXX}_r"
8643 fi
8644 fi
8645 ;; #(
8646 *) :
8647
8648 for ac_prog in ${CC}_r
8649 do
8650 # Extract the first word of "$ac_prog", so it can be a program name with args.
8651 set dummy $ac_prog; ac_word=$2
8652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 printf %s "checking for $ac_word... " >&6; }
8654 if test ${ac_cv_prog_PTHREAD_CC+y}
8655 then :
8656 printf %s "(cached) " >&6
8657 else case e in #(
8658 e) if test -n "$PTHREAD_CC"; then
8659 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8660 else
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664 IFS=$as_save_IFS
8665 case $as_dir in #(((
8666 '') as_dir=./ ;;
8667 */) ;;
8668 *) as_dir=$as_dir/ ;;
8669 esac
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_PTHREAD_CC="$ac_prog"
8673 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676 done
8677 done
8678 IFS=$as_save_IFS
8679
8680 fi ;;
8681 esac
8682 fi
8683 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8684 if test -n "$PTHREAD_CC"; then
8685 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8686 printf '%s\n' "$PTHREAD_CC" >&6; }
8687 else
8688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 printf '%s\n' "no" >&6; }
8690 fi
8691
8692
8693 test -n "$PTHREAD_CC" && break
8694 done
8695 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8696
8697 if test "x${CXX}" != "x"
8698 then :
8699 for ac_prog in ${CXX}_r
8700 do
8701 # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 printf %s "checking for $ac_word... " >&6; }
8705 if test ${ac_cv_prog_PTHREAD_CXX+y}
8706 then :
8707 printf %s "(cached) " >&6
8708 else case e in #(
8709 e) if test -n "$PTHREAD_CXX"; then
8710 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715 IFS=$as_save_IFS
8716 case $as_dir in #(((
8717 '') as_dir=./ ;;
8718 */) ;;
8719 *) as_dir=$as_dir/ ;;
8720 esac
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_PTHREAD_CXX="$ac_prog"
8724 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727 done
8728 done
8729 IFS=$as_save_IFS
8730
8731 fi ;;
8732 esac
8733 fi
8734 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
8735 if test -n "$PTHREAD_CXX"; then
8736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
8737 printf '%s\n' "$PTHREAD_CXX" >&6; }
8738 else
8739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 printf '%s\n' "no" >&6; }
8741 fi
8742
8743
8744 test -n "$PTHREAD_CXX" && break
8745 done
8746 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
8747
8748 fi
8749
8750 ;;
8751 esac
8752 ;; #(
8753 *) :
8754 ;;
8755 esac
8756 ;;
8757 esac
8758 fi
8759 fi
8760
8761 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8762 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
8763
8764
8765
8766
8767
8768
8769 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8770 if test "x$ax_pthread_ok" = "xyes"; then
8771 compoptionstring="${compoptionstring}use pthread: mandatory\\n"
8772 :
8773 else
8774 ax_pthread_ok=no
8775 as_fn_error $? "AIDE requires pthread" "$LINENO" 5
8776 fi
8777 ac_ext=c
8778 ac_cpp='$CPP $CPPFLAGS'
8779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8782
8783
8784
8785
8786 # Check whether --with-fstype was given.
8787 if test ${with_fstype+y}
8788 then :
8789 withval=$with_fstype; with_fstype=$withval
8790 else case e in #(
8791 e) with_fstype=yes
8792 ;;
8793 esac
8794 fi
8795
8796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fstype support (Linux only)" >&5
8797 printf %s "checking for fstype support (Linux only)... " >&6; }
8798 case "${target_os}" in
8799 linux*)
8800 if test "x$with_fstype" != xno; then
8801
8802 printf '%s\n' "#define HAVE_FSTYPE 1" >>confdefs.h
8803
8804 fi
8805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_fstype" >&5
8806 printf '%s\n' "$with_fstype" >&6; };
8807 ;;
8808 *)
8809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 printf '%s\n' "no" >&6; };
8811 ;;
8812 esac
8813
8814
8815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zlib compression" >&5
8816 printf %s "checking for zlib compression... " >&6; }
8817
8818 # Check whether --with-zlib was given.
8819 if test ${with_zlib+y}
8820 then :
8821 withval=$with_zlib; with_zlib=$withval
8822 else case e in #(
8823 e) with_zlib=yes ;;
8824 esac
8825 fi
8826
8827
8828 if test x"$with_zlib" = xyes
8829 then :
8830
8831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8832 printf '%s\n' "yes" >&6; }
8833
8834 if test "$aide_static_choice" = "yes"; then
8835 _save_PKG_CONFIG=$PKG_CONFIG
8836 PKG_CONFIG="$PKG_CONFIG --static"
8837
8838 pkg_failed=no
8839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zlib " >&5
8840 printf %s "checking for zlib ... " >&6; }
8841
8842 if test -n "$ZLIB_CFLAGS"; then
8843 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
8844 elif test -n "$PKG_CONFIG"; then
8845 if test -n "$PKG_CONFIG" && \
8846 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib \""; } >&5
8847 ($PKG_CONFIG --exists --print-errors "zlib ") 2>&5
8848 ac_status=$?
8849 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850 test $ac_status = 0; }; then
8851 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib " 2>/dev/null`
8852 test "x$?" != "x0" && pkg_failed=yes
8853 else
8854 pkg_failed=yes
8855 fi
8856 else
8857 pkg_failed=untried
8858 fi
8859 if test -n "$ZLIB_LIBS"; then
8860 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
8861 elif test -n "$PKG_CONFIG"; then
8862 if test -n "$PKG_CONFIG" && \
8863 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib \""; } >&5
8864 ($PKG_CONFIG --exists --print-errors "zlib ") 2>&5
8865 ac_status=$?
8866 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8867 test $ac_status = 0; }; then
8868 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib " 2>/dev/null`
8869 test "x$?" != "x0" && pkg_failed=yes
8870 else
8871 pkg_failed=yes
8872 fi
8873 else
8874 pkg_failed=untried
8875 fi
8876
8877
8878
8879 if test $pkg_failed = yes; then
8880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 printf '%s\n' "no" >&6; }
8882
8883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8884 _pkg_short_errors_supported=yes
8885 else
8886 _pkg_short_errors_supported=no
8887 fi
8888 if test $_pkg_short_errors_supported = yes; then
8889 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib " 2>&1`
8890 else
8891 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib " 2>&1`
8892 fi
8893 # Put the nasty error message in config.log where it belongs
8894 echo "$ZLIB_PKG_ERRORS" >&5
8895
8896 as_fn_error $? "zlib not found by pkg-config - Try --without-zlib or add directory containing zlib.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
8897 elif test $pkg_failed = untried; then
8898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 printf '%s\n' "no" >&6; }
8900 as_fn_error $? "zlib not found by pkg-config - Try --without-zlib or add directory containing zlib.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
8901 else
8902 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
8903 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
8904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905 printf '%s\n' "yes" >&6; }
8906
8907 fi
8908 PKG_CONFIG=$_save_PKG_CONFIG
8909 else
8910
8911 pkg_failed=no
8912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for zlib " >&5
8913 printf %s "checking for zlib ... " >&6; }
8914
8915 if test -n "$ZLIB_CFLAGS"; then
8916 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
8917 elif test -n "$PKG_CONFIG"; then
8918 if test -n "$PKG_CONFIG" && \
8919 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib \""; } >&5
8920 ($PKG_CONFIG --exists --print-errors "zlib ") 2>&5
8921 ac_status=$?
8922 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8923 test $ac_status = 0; }; then
8924 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib " 2>/dev/null`
8925 test "x$?" != "x0" && pkg_failed=yes
8926 else
8927 pkg_failed=yes
8928 fi
8929 else
8930 pkg_failed=untried
8931 fi
8932 if test -n "$ZLIB_LIBS"; then
8933 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
8934 elif test -n "$PKG_CONFIG"; then
8935 if test -n "$PKG_CONFIG" && \
8936 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib \""; } >&5
8937 ($PKG_CONFIG --exists --print-errors "zlib ") 2>&5
8938 ac_status=$?
8939 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940 test $ac_status = 0; }; then
8941 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib " 2>/dev/null`
8942 test "x$?" != "x0" && pkg_failed=yes
8943 else
8944 pkg_failed=yes
8945 fi
8946 else
8947 pkg_failed=untried
8948 fi
8949
8950
8951
8952 if test $pkg_failed = yes; then
8953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 printf '%s\n' "no" >&6; }
8955
8956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8957 _pkg_short_errors_supported=yes
8958 else
8959 _pkg_short_errors_supported=no
8960 fi
8961 if test $_pkg_short_errors_supported = yes; then
8962 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib " 2>&1`
8963 else
8964 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib " 2>&1`
8965 fi
8966 # Put the nasty error message in config.log where it belongs
8967 echo "$ZLIB_PKG_ERRORS" >&5
8968
8969 as_fn_error $? "zlib not found by pkg-config - Try --without-zlib or add directory containing zlib.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
8970 elif test $pkg_failed = untried; then
8971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 printf '%s\n' "no" >&6; }
8973 as_fn_error $? "zlib not found by pkg-config - Try --without-zlib or add directory containing zlib.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
8974 else
8975 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
8976 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
8977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8978 printf '%s\n' "yes" >&6; }
8979
8980 fi
8981 fi
8982
8983 printf '%s\n' "#define WITH_ZLIB 1" >>confdefs.h
8984
8985
8986 if test -n ; then
8987 aideextragroups="${aideextragroups}+"
8988 fi
8989
8990 else case e in #(
8991 e)
8992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 printf '%s\n' "no" >&6; }
8994 ;;
8995 esac
8996 fi
8997 compoptionstring="${compoptionstring}use zlib compression: $with_zlib\\n"
8998 if test "x$ZLIB_LIBS" != "x"; then
8999 HAVE_ZLIB_TRUE=
9000 HAVE_ZLIB_FALSE='#'
9001 else
9002 HAVE_ZLIB_TRUE='#'
9003 HAVE_ZLIB_FALSE=
9004 fi
9005
9006
9007
9008
9009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for POSIX ACLs" >&5
9010 printf %s "checking for POSIX ACLs... " >&6; }
9011
9012 # Check whether --with-posix-acl was given.
9013 if test ${with_posix_acl+y}
9014 then :
9015 withval=$with_posix_acl; with_libacl=$withval
9016 else case e in #(
9017 e) with_libacl=no ;;
9018 esac
9019 fi
9020
9021
9022 if test x"$with_libacl" = xyes
9023 then :
9024
9025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9026 printf '%s\n' "yes" >&6; }
9027
9028 if test "$aide_static_choice" = "yes"; then
9029 _save_PKG_CONFIG=$PKG_CONFIG
9030 PKG_CONFIG="$PKG_CONFIG --static"
9031
9032 pkg_failed=no
9033 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libacl " >&5
9034 printf %s "checking for libacl ... " >&6; }
9035
9036 if test -n "$POSIX_ACL_CFLAGS"; then
9037 pkg_cv_POSIX_ACL_CFLAGS="$POSIX_ACL_CFLAGS"
9038 elif test -n "$PKG_CONFIG"; then
9039 if test -n "$PKG_CONFIG" && \
9040 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libacl \""; } >&5
9041 ($PKG_CONFIG --exists --print-errors "libacl ") 2>&5
9042 ac_status=$?
9043 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044 test $ac_status = 0; }; then
9045 pkg_cv_POSIX_ACL_CFLAGS=`$PKG_CONFIG --cflags "libacl " 2>/dev/null`
9046 test "x$?" != "x0" && pkg_failed=yes
9047 else
9048 pkg_failed=yes
9049 fi
9050 else
9051 pkg_failed=untried
9052 fi
9053 if test -n "$POSIX_ACL_LIBS"; then
9054 pkg_cv_POSIX_ACL_LIBS="$POSIX_ACL_LIBS"
9055 elif test -n "$PKG_CONFIG"; then
9056 if test -n "$PKG_CONFIG" && \
9057 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libacl \""; } >&5
9058 ($PKG_CONFIG --exists --print-errors "libacl ") 2>&5
9059 ac_status=$?
9060 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9061 test $ac_status = 0; }; then
9062 pkg_cv_POSIX_ACL_LIBS=`$PKG_CONFIG --libs "libacl " 2>/dev/null`
9063 test "x$?" != "x0" && pkg_failed=yes
9064 else
9065 pkg_failed=yes
9066 fi
9067 else
9068 pkg_failed=untried
9069 fi
9070
9071
9072
9073 if test $pkg_failed = yes; then
9074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 printf '%s\n' "no" >&6; }
9076
9077 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9078 _pkg_short_errors_supported=yes
9079 else
9080 _pkg_short_errors_supported=no
9081 fi
9082 if test $_pkg_short_errors_supported = yes; then
9083 POSIX_ACL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libacl " 2>&1`
9084 else
9085 POSIX_ACL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libacl " 2>&1`
9086 fi
9087 # Put the nasty error message in config.log where it belongs
9088 echo "$POSIX_ACL_PKG_ERRORS" >&5
9089
9090 as_fn_error $? "libacl not found by pkg-config - Try --without-posix-acl or add directory containing libacl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9091 elif test $pkg_failed = untried; then
9092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 printf '%s\n' "no" >&6; }
9094 as_fn_error $? "libacl not found by pkg-config - Try --without-posix-acl or add directory containing libacl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9095 else
9096 POSIX_ACL_CFLAGS=$pkg_cv_POSIX_ACL_CFLAGS
9097 POSIX_ACL_LIBS=$pkg_cv_POSIX_ACL_LIBS
9098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 printf '%s\n' "yes" >&6; }
9100
9101 fi
9102 PKG_CONFIG=$_save_PKG_CONFIG
9103 else
9104
9105 pkg_failed=no
9106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libacl " >&5
9107 printf %s "checking for libacl ... " >&6; }
9108
9109 if test -n "$POSIX_ACL_CFLAGS"; then
9110 pkg_cv_POSIX_ACL_CFLAGS="$POSIX_ACL_CFLAGS"
9111 elif test -n "$PKG_CONFIG"; then
9112 if test -n "$PKG_CONFIG" && \
9113 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libacl \""; } >&5
9114 ($PKG_CONFIG --exists --print-errors "libacl ") 2>&5
9115 ac_status=$?
9116 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9117 test $ac_status = 0; }; then
9118 pkg_cv_POSIX_ACL_CFLAGS=`$PKG_CONFIG --cflags "libacl " 2>/dev/null`
9119 test "x$?" != "x0" && pkg_failed=yes
9120 else
9121 pkg_failed=yes
9122 fi
9123 else
9124 pkg_failed=untried
9125 fi
9126 if test -n "$POSIX_ACL_LIBS"; then
9127 pkg_cv_POSIX_ACL_LIBS="$POSIX_ACL_LIBS"
9128 elif test -n "$PKG_CONFIG"; then
9129 if test -n "$PKG_CONFIG" && \
9130 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libacl \""; } >&5
9131 ($PKG_CONFIG --exists --print-errors "libacl ") 2>&5
9132 ac_status=$?
9133 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9134 test $ac_status = 0; }; then
9135 pkg_cv_POSIX_ACL_LIBS=`$PKG_CONFIG --libs "libacl " 2>/dev/null`
9136 test "x$?" != "x0" && pkg_failed=yes
9137 else
9138 pkg_failed=yes
9139 fi
9140 else
9141 pkg_failed=untried
9142 fi
9143
9144
9145
9146 if test $pkg_failed = yes; then
9147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 printf '%s\n' "no" >&6; }
9149
9150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9151 _pkg_short_errors_supported=yes
9152 else
9153 _pkg_short_errors_supported=no
9154 fi
9155 if test $_pkg_short_errors_supported = yes; then
9156 POSIX_ACL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libacl " 2>&1`
9157 else
9158 POSIX_ACL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libacl " 2>&1`
9159 fi
9160 # Put the nasty error message in config.log where it belongs
9161 echo "$POSIX_ACL_PKG_ERRORS" >&5
9162
9163 as_fn_error $? "libacl not found by pkg-config - Try --without-posix-acl or add directory containing libacl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9164 elif test $pkg_failed = untried; then
9165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf '%s\n' "no" >&6; }
9167 as_fn_error $? "libacl not found by pkg-config - Try --without-posix-acl or add directory containing libacl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9168 else
9169 POSIX_ACL_CFLAGS=$pkg_cv_POSIX_ACL_CFLAGS
9170 POSIX_ACL_LIBS=$pkg_cv_POSIX_ACL_LIBS
9171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 printf '%s\n' "yes" >&6; }
9173
9174 fi
9175 fi
9176
9177 printf '%s\n' "#define WITH_POSIX_ACL 1" >>confdefs.h
9178
9179
9180 if test -n acl; then
9181 aideextragroups="${aideextragroups}+acl"
9182 fi
9183
9184 else case e in #(
9185 e)
9186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 printf '%s\n' "no" >&6; }
9188 ;;
9189 esac
9190 fi
9191 compoptionstring="${compoptionstring}use POSIX ACLs: $with_libacl\\n"
9192 if test "x$POSIX_ACL_LIBS" != "x"; then
9193 HAVE_POSIX_ACL_TRUE=
9194 HAVE_POSIX_ACL_FALSE='#'
9195 else
9196 HAVE_POSIX_ACL_TRUE='#'
9197 HAVE_POSIX_ACL_FALSE=
9198 fi
9199
9200
9201 if test "x$with_libacl" = xyes; then
9202
9203 printf '%s\n' "#define WITH_ACL 1" >>confdefs.h
9204
9205 fi
9206
9207
9208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for SELinux" >&5
9209 printf %s "checking for SELinux... " >&6; }
9210
9211 # Check whether --with-selinux was given.
9212 if test ${with_selinux+y}
9213 then :
9214 withval=$with_selinux; with_libselinux=$withval
9215 else case e in #(
9216 e) with_libselinux=no ;;
9217 esac
9218 fi
9219
9220
9221 if test x"$with_libselinux" = xyes
9222 then :
9223
9224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9225 printf '%s\n' "yes" >&6; }
9226
9227 if test "$aide_static_choice" = "yes"; then
9228 _save_PKG_CONFIG=$PKG_CONFIG
9229 PKG_CONFIG="$PKG_CONFIG --static"
9230
9231 pkg_failed=no
9232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libselinux >= 3.4" >&5
9233 printf %s "checking for libselinux >= 3.4... " >&6; }
9234
9235 if test -n "$SELINUX_CFLAGS"; then
9236 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
9237 elif test -n "$PKG_CONFIG"; then
9238 if test -n "$PKG_CONFIG" && \
9239 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 3.4\""; } >&5
9240 ($PKG_CONFIG --exists --print-errors "libselinux >= 3.4") 2>&5
9241 ac_status=$?
9242 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9243 test $ac_status = 0; }; then
9244 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= 3.4" 2>/dev/null`
9245 test "x$?" != "x0" && pkg_failed=yes
9246 else
9247 pkg_failed=yes
9248 fi
9249 else
9250 pkg_failed=untried
9251 fi
9252 if test -n "$SELINUX_LIBS"; then
9253 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
9254 elif test -n "$PKG_CONFIG"; then
9255 if test -n "$PKG_CONFIG" && \
9256 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 3.4\""; } >&5
9257 ($PKG_CONFIG --exists --print-errors "libselinux >= 3.4") 2>&5
9258 ac_status=$?
9259 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9260 test $ac_status = 0; }; then
9261 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= 3.4" 2>/dev/null`
9262 test "x$?" != "x0" && pkg_failed=yes
9263 else
9264 pkg_failed=yes
9265 fi
9266 else
9267 pkg_failed=untried
9268 fi
9269
9270
9271
9272 if test $pkg_failed = yes; then
9273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 printf '%s\n' "no" >&6; }
9275
9276 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9277 _pkg_short_errors_supported=yes
9278 else
9279 _pkg_short_errors_supported=no
9280 fi
9281 if test $_pkg_short_errors_supported = yes; then
9282 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= 3.4" 2>&1`
9283 else
9284 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= 3.4" 2>&1`
9285 fi
9286 # Put the nasty error message in config.log where it belongs
9287 echo "$SELINUX_PKG_ERRORS" >&5
9288
9289 as_fn_error $? "libselinux >= 3.4 not found by pkg-config - Try --without-selinux or add directory containing libselinux.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9290 elif test $pkg_failed = untried; then
9291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 printf '%s\n' "no" >&6; }
9293 as_fn_error $? "libselinux >= 3.4 not found by pkg-config - Try --without-selinux or add directory containing libselinux.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9294 else
9295 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
9296 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
9297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9298 printf '%s\n' "yes" >&6; }
9299
9300 fi
9301 PKG_CONFIG=$_save_PKG_CONFIG
9302 else
9303
9304 pkg_failed=no
9305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libselinux >= 3.4" >&5
9306 printf %s "checking for libselinux >= 3.4... " >&6; }
9307
9308 if test -n "$SELINUX_CFLAGS"; then
9309 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
9310 elif test -n "$PKG_CONFIG"; then
9311 if test -n "$PKG_CONFIG" && \
9312 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 3.4\""; } >&5
9313 ($PKG_CONFIG --exists --print-errors "libselinux >= 3.4") 2>&5
9314 ac_status=$?
9315 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316 test $ac_status = 0; }; then
9317 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= 3.4" 2>/dev/null`
9318 test "x$?" != "x0" && pkg_failed=yes
9319 else
9320 pkg_failed=yes
9321 fi
9322 else
9323 pkg_failed=untried
9324 fi
9325 if test -n "$SELINUX_LIBS"; then
9326 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
9327 elif test -n "$PKG_CONFIG"; then
9328 if test -n "$PKG_CONFIG" && \
9329 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 3.4\""; } >&5
9330 ($PKG_CONFIG --exists --print-errors "libselinux >= 3.4") 2>&5
9331 ac_status=$?
9332 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333 test $ac_status = 0; }; then
9334 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= 3.4" 2>/dev/null`
9335 test "x$?" != "x0" && pkg_failed=yes
9336 else
9337 pkg_failed=yes
9338 fi
9339 else
9340 pkg_failed=untried
9341 fi
9342
9343
9344
9345 if test $pkg_failed = yes; then
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 printf '%s\n' "no" >&6; }
9348
9349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9350 _pkg_short_errors_supported=yes
9351 else
9352 _pkg_short_errors_supported=no
9353 fi
9354 if test $_pkg_short_errors_supported = yes; then
9355 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= 3.4" 2>&1`
9356 else
9357 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= 3.4" 2>&1`
9358 fi
9359 # Put the nasty error message in config.log where it belongs
9360 echo "$SELINUX_PKG_ERRORS" >&5
9361
9362 as_fn_error $? "libselinux >= 3.4 not found by pkg-config - Try --without-selinux or add directory containing libselinux.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9363 elif test $pkg_failed = untried; then
9364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 printf '%s\n' "no" >&6; }
9366 as_fn_error $? "libselinux >= 3.4 not found by pkg-config - Try --without-selinux or add directory containing libselinux.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9367 else
9368 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
9369 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
9370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371 printf '%s\n' "yes" >&6; }
9372
9373 fi
9374 fi
9375
9376 printf '%s\n' "#define WITH_SELINUX 1" >>confdefs.h
9377
9378
9379 if test -n selinux; then
9380 aideextragroups="${aideextragroups}+selinux"
9381 fi
9382
9383 else case e in #(
9384 e)
9385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386 printf '%s\n' "no" >&6; }
9387 ;;
9388 esac
9389 fi
9390 compoptionstring="${compoptionstring}use SELinux: $with_libselinux\\n"
9391 if test "x$SELINUX_LIBS" != "x"; then
9392 HAVE_SELINUX_TRUE=
9393 HAVE_SELINUX_FALSE='#'
9394 else
9395 HAVE_SELINUX_TRUE='#'
9396 HAVE_SELINUX_FALSE=
9397 fi
9398
9399
9400
9401
9402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for xattr" >&5
9403 printf %s "checking for xattr... " >&6; }
9404
9405 # Check whether --with-xattr was given.
9406 if test ${with_xattr+y}
9407 then :
9408 withval=$with_xattr; with_libattr=$withval
9409 else case e in #(
9410 e) with_libattr=no ;;
9411 esac
9412 fi
9413
9414
9415 if test x"$with_libattr" = xyes
9416 then :
9417
9418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9419 printf '%s\n' "yes" >&6; }
9420
9421 if test "$aide_static_choice" = "yes"; then
9422 _save_PKG_CONFIG=$PKG_CONFIG
9423 PKG_CONFIG="$PKG_CONFIG --static"
9424
9425 pkg_failed=no
9426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libattr " >&5
9427 printf %s "checking for libattr ... " >&6; }
9428
9429 if test -n "$XATTR_CFLAGS"; then
9430 pkg_cv_XATTR_CFLAGS="$XATTR_CFLAGS"
9431 elif test -n "$PKG_CONFIG"; then
9432 if test -n "$PKG_CONFIG" && \
9433 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libattr \""; } >&5
9434 ($PKG_CONFIG --exists --print-errors "libattr ") 2>&5
9435 ac_status=$?
9436 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9437 test $ac_status = 0; }; then
9438 pkg_cv_XATTR_CFLAGS=`$PKG_CONFIG --cflags "libattr " 2>/dev/null`
9439 test "x$?" != "x0" && pkg_failed=yes
9440 else
9441 pkg_failed=yes
9442 fi
9443 else
9444 pkg_failed=untried
9445 fi
9446 if test -n "$XATTR_LIBS"; then
9447 pkg_cv_XATTR_LIBS="$XATTR_LIBS"
9448 elif test -n "$PKG_CONFIG"; then
9449 if test -n "$PKG_CONFIG" && \
9450 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libattr \""; } >&5
9451 ($PKG_CONFIG --exists --print-errors "libattr ") 2>&5
9452 ac_status=$?
9453 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; }; then
9455 pkg_cv_XATTR_LIBS=`$PKG_CONFIG --libs "libattr " 2>/dev/null`
9456 test "x$?" != "x0" && pkg_failed=yes
9457 else
9458 pkg_failed=yes
9459 fi
9460 else
9461 pkg_failed=untried
9462 fi
9463
9464
9465
9466 if test $pkg_failed = yes; then
9467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 printf '%s\n' "no" >&6; }
9469
9470 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9471 _pkg_short_errors_supported=yes
9472 else
9473 _pkg_short_errors_supported=no
9474 fi
9475 if test $_pkg_short_errors_supported = yes; then
9476 XATTR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libattr " 2>&1`
9477 else
9478 XATTR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libattr " 2>&1`
9479 fi
9480 # Put the nasty error message in config.log where it belongs
9481 echo "$XATTR_PKG_ERRORS" >&5
9482
9483 as_fn_error $? "libattr not found by pkg-config - Try --without-xattr or add directory containing libattr.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9484 elif test $pkg_failed = untried; then
9485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 printf '%s\n' "no" >&6; }
9487 as_fn_error $? "libattr not found by pkg-config - Try --without-xattr or add directory containing libattr.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9488 else
9489 XATTR_CFLAGS=$pkg_cv_XATTR_CFLAGS
9490 XATTR_LIBS=$pkg_cv_XATTR_LIBS
9491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9492 printf '%s\n' "yes" >&6; }
9493
9494 fi
9495 PKG_CONFIG=$_save_PKG_CONFIG
9496 else
9497
9498 pkg_failed=no
9499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libattr " >&5
9500 printf %s "checking for libattr ... " >&6; }
9501
9502 if test -n "$XATTR_CFLAGS"; then
9503 pkg_cv_XATTR_CFLAGS="$XATTR_CFLAGS"
9504 elif test -n "$PKG_CONFIG"; then
9505 if test -n "$PKG_CONFIG" && \
9506 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libattr \""; } >&5
9507 ($PKG_CONFIG --exists --print-errors "libattr ") 2>&5
9508 ac_status=$?
9509 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9510 test $ac_status = 0; }; then
9511 pkg_cv_XATTR_CFLAGS=`$PKG_CONFIG --cflags "libattr " 2>/dev/null`
9512 test "x$?" != "x0" && pkg_failed=yes
9513 else
9514 pkg_failed=yes
9515 fi
9516 else
9517 pkg_failed=untried
9518 fi
9519 if test -n "$XATTR_LIBS"; then
9520 pkg_cv_XATTR_LIBS="$XATTR_LIBS"
9521 elif test -n "$PKG_CONFIG"; then
9522 if test -n "$PKG_CONFIG" && \
9523 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libattr \""; } >&5
9524 ($PKG_CONFIG --exists --print-errors "libattr ") 2>&5
9525 ac_status=$?
9526 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; }; then
9528 pkg_cv_XATTR_LIBS=`$PKG_CONFIG --libs "libattr " 2>/dev/null`
9529 test "x$?" != "x0" && pkg_failed=yes
9530 else
9531 pkg_failed=yes
9532 fi
9533 else
9534 pkg_failed=untried
9535 fi
9536
9537
9538
9539 if test $pkg_failed = yes; then
9540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 printf '%s\n' "no" >&6; }
9542
9543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9544 _pkg_short_errors_supported=yes
9545 else
9546 _pkg_short_errors_supported=no
9547 fi
9548 if test $_pkg_short_errors_supported = yes; then
9549 XATTR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libattr " 2>&1`
9550 else
9551 XATTR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libattr " 2>&1`
9552 fi
9553 # Put the nasty error message in config.log where it belongs
9554 echo "$XATTR_PKG_ERRORS" >&5
9555
9556 as_fn_error $? "libattr not found by pkg-config - Try --without-xattr or add directory containing libattr.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9557 elif test $pkg_failed = untried; then
9558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 printf '%s\n' "no" >&6; }
9560 as_fn_error $? "libattr not found by pkg-config - Try --without-xattr or add directory containing libattr.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9561 else
9562 XATTR_CFLAGS=$pkg_cv_XATTR_CFLAGS
9563 XATTR_LIBS=$pkg_cv_XATTR_LIBS
9564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9565 printf '%s\n' "yes" >&6; }
9566
9567 fi
9568 fi
9569
9570 printf '%s\n' "#define WITH_XATTR 1" >>confdefs.h
9571
9572
9573 if test -n xattrs; then
9574 aideextragroups="${aideextragroups}+xattrs"
9575 fi
9576
9577 else case e in #(
9578 e)
9579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 printf '%s\n' "no" >&6; }
9581 ;;
9582 esac
9583 fi
9584 compoptionstring="${compoptionstring}use xattr: $with_libattr\\n"
9585 if test "x$XATTR_LIBS" != "x"; then
9586 HAVE_XATTR_TRUE=
9587 HAVE_XATTR_FALSE='#'
9588 else
9589 HAVE_XATTR_TRUE='#'
9590 HAVE_XATTR_FALSE=
9591 fi
9592
9593
9594
9595
9596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for POSIX 1003.1e capabilities" >&5
9597 printf %s "checking for POSIX 1003.1e capabilities... " >&6; }
9598
9599 # Check whether --with-capabilities was given.
9600 if test ${with_capabilities+y}
9601 then :
9602 withval=$with_capabilities; with_libcap=$withval
9603 else case e in #(
9604 e) with_libcap=no ;;
9605 esac
9606 fi
9607
9608
9609 if test x"$with_libcap" = xyes
9610 then :
9611
9612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9613 printf '%s\n' "yes" >&6; }
9614
9615 if test "$aide_static_choice" = "yes"; then
9616 _save_PKG_CONFIG=$PKG_CONFIG
9617 PKG_CONFIG="$PKG_CONFIG --static"
9618
9619 pkg_failed=no
9620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libcap " >&5
9621 printf %s "checking for libcap ... " >&6; }
9622
9623 if test -n "$CAPABILITIES_CFLAGS"; then
9624 pkg_cv_CAPABILITIES_CFLAGS="$CAPABILITIES_CFLAGS"
9625 elif test -n "$PKG_CONFIG"; then
9626 if test -n "$PKG_CONFIG" && \
9627 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
9628 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
9629 ac_status=$?
9630 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; }; then
9632 pkg_cv_CAPABILITIES_CFLAGS=`$PKG_CONFIG --cflags "libcap " 2>/dev/null`
9633 test "x$?" != "x0" && pkg_failed=yes
9634 else
9635 pkg_failed=yes
9636 fi
9637 else
9638 pkg_failed=untried
9639 fi
9640 if test -n "$CAPABILITIES_LIBS"; then
9641 pkg_cv_CAPABILITIES_LIBS="$CAPABILITIES_LIBS"
9642 elif test -n "$PKG_CONFIG"; then
9643 if test -n "$PKG_CONFIG" && \
9644 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
9645 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
9646 ac_status=$?
9647 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9648 test $ac_status = 0; }; then
9649 pkg_cv_CAPABILITIES_LIBS=`$PKG_CONFIG --libs "libcap " 2>/dev/null`
9650 test "x$?" != "x0" && pkg_failed=yes
9651 else
9652 pkg_failed=yes
9653 fi
9654 else
9655 pkg_failed=untried
9656 fi
9657
9658
9659
9660 if test $pkg_failed = yes; then
9661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 printf '%s\n' "no" >&6; }
9663
9664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9665 _pkg_short_errors_supported=yes
9666 else
9667 _pkg_short_errors_supported=no
9668 fi
9669 if test $_pkg_short_errors_supported = yes; then
9670 CAPABILITIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap " 2>&1`
9671 else
9672 CAPABILITIES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap " 2>&1`
9673 fi
9674 # Put the nasty error message in config.log where it belongs
9675 echo "$CAPABILITIES_PKG_ERRORS" >&5
9676
9677 as_fn_error $? "libcap not found by pkg-config - Try --without-capabilities or add directory containing libcap.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9678 elif test $pkg_failed = untried; then
9679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 printf '%s\n' "no" >&6; }
9681 as_fn_error $? "libcap not found by pkg-config - Try --without-capabilities or add directory containing libcap.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9682 else
9683 CAPABILITIES_CFLAGS=$pkg_cv_CAPABILITIES_CFLAGS
9684 CAPABILITIES_LIBS=$pkg_cv_CAPABILITIES_LIBS
9685 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9686 printf '%s\n' "yes" >&6; }
9687
9688 fi
9689 PKG_CONFIG=$_save_PKG_CONFIG
9690 else
9691
9692 pkg_failed=no
9693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libcap " >&5
9694 printf %s "checking for libcap ... " >&6; }
9695
9696 if test -n "$CAPABILITIES_CFLAGS"; then
9697 pkg_cv_CAPABILITIES_CFLAGS="$CAPABILITIES_CFLAGS"
9698 elif test -n "$PKG_CONFIG"; then
9699 if test -n "$PKG_CONFIG" && \
9700 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
9701 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
9702 ac_status=$?
9703 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704 test $ac_status = 0; }; then
9705 pkg_cv_CAPABILITIES_CFLAGS=`$PKG_CONFIG --cflags "libcap " 2>/dev/null`
9706 test "x$?" != "x0" && pkg_failed=yes
9707 else
9708 pkg_failed=yes
9709 fi
9710 else
9711 pkg_failed=untried
9712 fi
9713 if test -n "$CAPABILITIES_LIBS"; then
9714 pkg_cv_CAPABILITIES_LIBS="$CAPABILITIES_LIBS"
9715 elif test -n "$PKG_CONFIG"; then
9716 if test -n "$PKG_CONFIG" && \
9717 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap \""; } >&5
9718 ($PKG_CONFIG --exists --print-errors "libcap ") 2>&5
9719 ac_status=$?
9720 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9721 test $ac_status = 0; }; then
9722 pkg_cv_CAPABILITIES_LIBS=`$PKG_CONFIG --libs "libcap " 2>/dev/null`
9723 test "x$?" != "x0" && pkg_failed=yes
9724 else
9725 pkg_failed=yes
9726 fi
9727 else
9728 pkg_failed=untried
9729 fi
9730
9731
9732
9733 if test $pkg_failed = yes; then
9734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 printf '%s\n' "no" >&6; }
9736
9737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9738 _pkg_short_errors_supported=yes
9739 else
9740 _pkg_short_errors_supported=no
9741 fi
9742 if test $_pkg_short_errors_supported = yes; then
9743 CAPABILITIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap " 2>&1`
9744 else
9745 CAPABILITIES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap " 2>&1`
9746 fi
9747 # Put the nasty error message in config.log where it belongs
9748 echo "$CAPABILITIES_PKG_ERRORS" >&5
9749
9750 as_fn_error $? "libcap not found by pkg-config - Try --without-capabilities or add directory containing libcap.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9751 elif test $pkg_failed = untried; then
9752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 printf '%s\n' "no" >&6; }
9754 as_fn_error $? "libcap not found by pkg-config - Try --without-capabilities or add directory containing libcap.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9755 else
9756 CAPABILITIES_CFLAGS=$pkg_cv_CAPABILITIES_CFLAGS
9757 CAPABILITIES_LIBS=$pkg_cv_CAPABILITIES_LIBS
9758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759 printf '%s\n' "yes" >&6; }
9760
9761 fi
9762 fi
9763
9764 printf '%s\n' "#define WITH_CAPABILITIES 1" >>confdefs.h
9765
9766
9767 if test -n caps; then
9768 aideextragroups="${aideextragroups}+caps"
9769 fi
9770
9771 else case e in #(
9772 e)
9773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 printf '%s\n' "no" >&6; }
9775 ;;
9776 esac
9777 fi
9778 compoptionstring="${compoptionstring}use POSIX 1003.1e capabilities: $with_libcap\\n"
9779 if test "x$CAPABILITIES_LIBS" != "x"; then
9780 HAVE_CAPABILITIES_TRUE=
9781 HAVE_CAPABILITIES_FALSE='#'
9782 else
9783 HAVE_CAPABILITIES_TRUE='#'
9784 HAVE_CAPABILITIES_FALSE=
9785 fi
9786
9787
9788
9789
9790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for e2fsattrs" >&5
9791 printf %s "checking for e2fsattrs... " >&6; }
9792
9793 # Check whether --with-e2fsattrs was given.
9794 if test ${with_e2fsattrs+y}
9795 then :
9796 withval=$with_e2fsattrs; with_e2p=$withval
9797 else case e in #(
9798 e) with_e2p=no ;;
9799 esac
9800 fi
9801
9802
9803 if test x"$with_e2p" = xyes
9804 then :
9805
9806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9807 printf '%s\n' "yes" >&6; }
9808
9809 if test "$aide_static_choice" = "yes"; then
9810 _save_PKG_CONFIG=$PKG_CONFIG
9811 PKG_CONFIG="$PKG_CONFIG --static"
9812
9813 pkg_failed=no
9814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for e2p " >&5
9815 printf %s "checking for e2p ... " >&6; }
9816
9817 if test -n "$E2FSATTRS_CFLAGS"; then
9818 pkg_cv_E2FSATTRS_CFLAGS="$E2FSATTRS_CFLAGS"
9819 elif test -n "$PKG_CONFIG"; then
9820 if test -n "$PKG_CONFIG" && \
9821 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p \""; } >&5
9822 ($PKG_CONFIG --exists --print-errors "e2p ") 2>&5
9823 ac_status=$?
9824 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825 test $ac_status = 0; }; then
9826 pkg_cv_E2FSATTRS_CFLAGS=`$PKG_CONFIG --cflags "e2p " 2>/dev/null`
9827 test "x$?" != "x0" && pkg_failed=yes
9828 else
9829 pkg_failed=yes
9830 fi
9831 else
9832 pkg_failed=untried
9833 fi
9834 if test -n "$E2FSATTRS_LIBS"; then
9835 pkg_cv_E2FSATTRS_LIBS="$E2FSATTRS_LIBS"
9836 elif test -n "$PKG_CONFIG"; then
9837 if test -n "$PKG_CONFIG" && \
9838 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p \""; } >&5
9839 ($PKG_CONFIG --exists --print-errors "e2p ") 2>&5
9840 ac_status=$?
9841 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; }; then
9843 pkg_cv_E2FSATTRS_LIBS=`$PKG_CONFIG --libs "e2p " 2>/dev/null`
9844 test "x$?" != "x0" && pkg_failed=yes
9845 else
9846 pkg_failed=yes
9847 fi
9848 else
9849 pkg_failed=untried
9850 fi
9851
9852
9853
9854 if test $pkg_failed = yes; then
9855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 printf '%s\n' "no" >&6; }
9857
9858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9859 _pkg_short_errors_supported=yes
9860 else
9861 _pkg_short_errors_supported=no
9862 fi
9863 if test $_pkg_short_errors_supported = yes; then
9864 E2FSATTRS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "e2p " 2>&1`
9865 else
9866 E2FSATTRS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "e2p " 2>&1`
9867 fi
9868 # Put the nasty error message in config.log where it belongs
9869 echo "$E2FSATTRS_PKG_ERRORS" >&5
9870
9871 as_fn_error $? "e2p not found by pkg-config - Try --without-e2fsattrs or add directory containing e2p.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9872 elif test $pkg_failed = untried; then
9873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 printf '%s\n' "no" >&6; }
9875 as_fn_error $? "e2p not found by pkg-config - Try --without-e2fsattrs or add directory containing e2p.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9876 else
9877 E2FSATTRS_CFLAGS=$pkg_cv_E2FSATTRS_CFLAGS
9878 E2FSATTRS_LIBS=$pkg_cv_E2FSATTRS_LIBS
9879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9880 printf '%s\n' "yes" >&6; }
9881
9882 fi
9883 PKG_CONFIG=$_save_PKG_CONFIG
9884 else
9885
9886 pkg_failed=no
9887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for e2p " >&5
9888 printf %s "checking for e2p ... " >&6; }
9889
9890 if test -n "$E2FSATTRS_CFLAGS"; then
9891 pkg_cv_E2FSATTRS_CFLAGS="$E2FSATTRS_CFLAGS"
9892 elif test -n "$PKG_CONFIG"; then
9893 if test -n "$PKG_CONFIG" && \
9894 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p \""; } >&5
9895 ($PKG_CONFIG --exists --print-errors "e2p ") 2>&5
9896 ac_status=$?
9897 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }; then
9899 pkg_cv_E2FSATTRS_CFLAGS=`$PKG_CONFIG --cflags "e2p " 2>/dev/null`
9900 test "x$?" != "x0" && pkg_failed=yes
9901 else
9902 pkg_failed=yes
9903 fi
9904 else
9905 pkg_failed=untried
9906 fi
9907 if test -n "$E2FSATTRS_LIBS"; then
9908 pkg_cv_E2FSATTRS_LIBS="$E2FSATTRS_LIBS"
9909 elif test -n "$PKG_CONFIG"; then
9910 if test -n "$PKG_CONFIG" && \
9911 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p \""; } >&5
9912 ($PKG_CONFIG --exists --print-errors "e2p ") 2>&5
9913 ac_status=$?
9914 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9915 test $ac_status = 0; }; then
9916 pkg_cv_E2FSATTRS_LIBS=`$PKG_CONFIG --libs "e2p " 2>/dev/null`
9917 test "x$?" != "x0" && pkg_failed=yes
9918 else
9919 pkg_failed=yes
9920 fi
9921 else
9922 pkg_failed=untried
9923 fi
9924
9925
9926
9927 if test $pkg_failed = yes; then
9928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 printf '%s\n' "no" >&6; }
9930
9931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9932 _pkg_short_errors_supported=yes
9933 else
9934 _pkg_short_errors_supported=no
9935 fi
9936 if test $_pkg_short_errors_supported = yes; then
9937 E2FSATTRS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "e2p " 2>&1`
9938 else
9939 E2FSATTRS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "e2p " 2>&1`
9940 fi
9941 # Put the nasty error message in config.log where it belongs
9942 echo "$E2FSATTRS_PKG_ERRORS" >&5
9943
9944 as_fn_error $? "e2p not found by pkg-config - Try --without-e2fsattrs or add directory containing e2p.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9945 elif test $pkg_failed = untried; then
9946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 printf '%s\n' "no" >&6; }
9948 as_fn_error $? "e2p not found by pkg-config - Try --without-e2fsattrs or add directory containing e2p.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
9949 else
9950 E2FSATTRS_CFLAGS=$pkg_cv_E2FSATTRS_CFLAGS
9951 E2FSATTRS_LIBS=$pkg_cv_E2FSATTRS_LIBS
9952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9953 printf '%s\n' "yes" >&6; }
9954
9955 fi
9956 fi
9957
9958 printf '%s\n' "#define WITH_E2FSATTRS 1" >>confdefs.h
9959
9960
9961 if test -n e2fsattrs; then
9962 aideextragroups="${aideextragroups}+e2fsattrs"
9963 fi
9964
9965 else case e in #(
9966 e)
9967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 printf '%s\n' "no" >&6; }
9969 ;;
9970 esac
9971 fi
9972 compoptionstring="${compoptionstring}use e2fsattrs: $with_e2p\\n"
9973 if test "x$E2FSATTRS_LIBS" != "x"; then
9974 HAVE_E2FSATTRS_TRUE=
9975 HAVE_E2FSATTRS_FALSE='#'
9976 else
9977 HAVE_E2FSATTRS_TRUE='#'
9978 HAVE_E2FSATTRS_FALSE=
9979 fi
9980
9981
9982
9983
9984 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for cURL" >&5
9985 printf %s "checking for cURL... " >&6; }
9986
9987 # Check whether --with-curl was given.
9988 if test ${with_curl+y}
9989 then :
9990 withval=$with_curl; with_libcurl=$withval
9991 else case e in #(
9992 e) with_libcurl=no ;;
9993 esac
9994 fi
9995
9996
9997 if test x"$with_libcurl" = xyes
9998 then :
9999
10000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10001 printf '%s\n' "yes" >&6; }
10002
10003 if test "$aide_static_choice" = "yes"; then
10004 _save_PKG_CONFIG=$PKG_CONFIG
10005 PKG_CONFIG="$PKG_CONFIG --static"
10006
10007 pkg_failed=no
10008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libcurl " >&5
10009 printf %s "checking for libcurl ... " >&6; }
10010
10011 if test -n "$CURL_CFLAGS"; then
10012 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
10013 elif test -n "$PKG_CONFIG"; then
10014 if test -n "$PKG_CONFIG" && \
10015 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
10016 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
10017 ac_status=$?
10018 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; }; then
10020 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
10021 test "x$?" != "x0" && pkg_failed=yes
10022 else
10023 pkg_failed=yes
10024 fi
10025 else
10026 pkg_failed=untried
10027 fi
10028 if test -n "$CURL_LIBS"; then
10029 pkg_cv_CURL_LIBS="$CURL_LIBS"
10030 elif test -n "$PKG_CONFIG"; then
10031 if test -n "$PKG_CONFIG" && \
10032 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
10033 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
10034 ac_status=$?
10035 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10036 test $ac_status = 0; }; then
10037 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
10038 test "x$?" != "x0" && pkg_failed=yes
10039 else
10040 pkg_failed=yes
10041 fi
10042 else
10043 pkg_failed=untried
10044 fi
10045
10046
10047
10048 if test $pkg_failed = yes; then
10049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 printf '%s\n' "no" >&6; }
10051
10052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10053 _pkg_short_errors_supported=yes
10054 else
10055 _pkg_short_errors_supported=no
10056 fi
10057 if test $_pkg_short_errors_supported = yes; then
10058 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
10059 else
10060 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
10061 fi
10062 # Put the nasty error message in config.log where it belongs
10063 echo "$CURL_PKG_ERRORS" >&5
10064
10065 as_fn_error $? "libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10066 elif test $pkg_failed = untried; then
10067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 printf '%s\n' "no" >&6; }
10069 as_fn_error $? "libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10070 else
10071 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
10072 CURL_LIBS=$pkg_cv_CURL_LIBS
10073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074 printf '%s\n' "yes" >&6; }
10075
10076 fi
10077 PKG_CONFIG=$_save_PKG_CONFIG
10078 else
10079
10080 pkg_failed=no
10081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libcurl " >&5
10082 printf %s "checking for libcurl ... " >&6; }
10083
10084 if test -n "$CURL_CFLAGS"; then
10085 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
10086 elif test -n "$PKG_CONFIG"; then
10087 if test -n "$PKG_CONFIG" && \
10088 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
10089 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
10090 ac_status=$?
10091 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10092 test $ac_status = 0; }; then
10093 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl " 2>/dev/null`
10094 test "x$?" != "x0" && pkg_failed=yes
10095 else
10096 pkg_failed=yes
10097 fi
10098 else
10099 pkg_failed=untried
10100 fi
10101 if test -n "$CURL_LIBS"; then
10102 pkg_cv_CURL_LIBS="$CURL_LIBS"
10103 elif test -n "$PKG_CONFIG"; then
10104 if test -n "$PKG_CONFIG" && \
10105 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl \""; } >&5
10106 ($PKG_CONFIG --exists --print-errors "libcurl ") 2>&5
10107 ac_status=$?
10108 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; }; then
10110 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl " 2>/dev/null`
10111 test "x$?" != "x0" && pkg_failed=yes
10112 else
10113 pkg_failed=yes
10114 fi
10115 else
10116 pkg_failed=untried
10117 fi
10118
10119
10120
10121 if test $pkg_failed = yes; then
10122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 printf '%s\n' "no" >&6; }
10124
10125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10126 _pkg_short_errors_supported=yes
10127 else
10128 _pkg_short_errors_supported=no
10129 fi
10130 if test $_pkg_short_errors_supported = yes; then
10131 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl " 2>&1`
10132 else
10133 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl " 2>&1`
10134 fi
10135 # Put the nasty error message in config.log where it belongs
10136 echo "$CURL_PKG_ERRORS" >&5
10137
10138 as_fn_error $? "libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10139 elif test $pkg_failed = untried; then
10140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 printf '%s\n' "no" >&6; }
10142 as_fn_error $? "libcurl not found by pkg-config - Try --without-curl or add directory containing libcurl.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10143 else
10144 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
10145 CURL_LIBS=$pkg_cv_CURL_LIBS
10146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10147 printf '%s\n' "yes" >&6; }
10148
10149 fi
10150 fi
10151
10152 printf '%s\n' "#define WITH_CURL 1" >>confdefs.h
10153
10154
10155 if test -n ; then
10156 aideextragroups="${aideextragroups}+"
10157 fi
10158
10159 else case e in #(
10160 e)
10161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 printf '%s\n' "no" >&6; }
10163 ;;
10164 esac
10165 fi
10166 compoptionstring="${compoptionstring}use cURL: $with_libcurl\\n"
10167 if test "x$CURL_LIBS" != "x"; then
10168 HAVE_CURL_TRUE=
10169 HAVE_CURL_FALSE='#'
10170 else
10171 HAVE_CURL_TRUE='#'
10172 HAVE_CURL_FALSE=
10173 fi
10174
10175
10176
10177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for Nettle" >&5
10178 printf %s "checking for Nettle... " >&6; }
10179
10180 # Check whether --with-nettle was given.
10181 if test ${with_nettle+y}
10182 then :
10183 withval=$with_nettle; with_nettle=$withval
10184 else case e in #(
10185 e) with_nettle=check ;;
10186 esac
10187 fi
10188
10189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_nettle" >&5
10190 printf '%s\n' "$with_nettle" >&6; }
10191
10192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU crypto library" >&5
10193 printf %s "checking for GNU crypto library... " >&6; }
10194
10195 # Check whether --with-gcrypt was given.
10196 if test ${with_gcrypt+y}
10197 then :
10198 withval=$with_gcrypt; with_gcrypt=$withval
10199 else case e in #(
10200 e) with_gcrypt=check ;;
10201 esac
10202 fi
10203
10204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_gcrypt" >&5
10205 printf '%s\n' "$with_gcrypt" >&6; }
10206
10207
10208 if test x"$with_nettle" != xno
10209 then :
10210
10211 if test "$aide_static_choice" = "yes"; then
10212 _save_PKG_CONFIG=$PKG_CONFIG
10213 PKG_CONFIG="$PKG_CONFIG --static"
10214
10215 pkg_failed=no
10216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for nettle >= 3.7" >&5
10217 printf %s "checking for nettle >= 3.7... " >&6; }
10218
10219 if test -n "$NETTLE_CFLAGS"; then
10220 pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
10221 elif test -n "$PKG_CONFIG"; then
10222 if test -n "$PKG_CONFIG" && \
10223 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.7\""; } >&5
10224 ($PKG_CONFIG --exists --print-errors "nettle >= 3.7") 2>&5
10225 ac_status=$?
10226 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10227 test $ac_status = 0; }; then
10228 pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 3.7" 2>/dev/null`
10229 test "x$?" != "x0" && pkg_failed=yes
10230 else
10231 pkg_failed=yes
10232 fi
10233 else
10234 pkg_failed=untried
10235 fi
10236 if test -n "$NETTLE_LIBS"; then
10237 pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
10238 elif test -n "$PKG_CONFIG"; then
10239 if test -n "$PKG_CONFIG" && \
10240 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.7\""; } >&5
10241 ($PKG_CONFIG --exists --print-errors "nettle >= 3.7") 2>&5
10242 ac_status=$?
10243 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10244 test $ac_status = 0; }; then
10245 pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 3.7" 2>/dev/null`
10246 test "x$?" != "x0" && pkg_failed=yes
10247 else
10248 pkg_failed=yes
10249 fi
10250 else
10251 pkg_failed=untried
10252 fi
10253
10254
10255
10256 if test $pkg_failed = yes; then
10257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 printf '%s\n' "no" >&6; }
10259
10260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10261 _pkg_short_errors_supported=yes
10262 else
10263 _pkg_short_errors_supported=no
10264 fi
10265 if test $_pkg_short_errors_supported = yes; then
10266 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nettle >= 3.7" 2>&1`
10267 else
10268 NETTLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nettle >= 3.7" 2>&1`
10269 fi
10270 # Put the nasty error message in config.log where it belongs
10271 echo "$NETTLE_PKG_ERRORS" >&5
10272
10273
10274 if test x"$with_nettle" = xyes
10275 then :
10276
10277 as_fn_error $? "nettle >= 3.7 not found by pkg-config - Try to add directory containing nettle.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10278
10279 fi
10280 with_nettle=no
10281
10282 elif test $pkg_failed = untried; then
10283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 printf '%s\n' "no" >&6; }
10285
10286 if test x"$with_nettle" = xyes
10287 then :
10288
10289 as_fn_error $? "nettle >= 3.7 not found by pkg-config - Try to add directory containing nettle.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10290
10291 fi
10292 with_nettle=no
10293
10294 else
10295 NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
10296 NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
10297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10298 printf '%s\n' "yes" >&6; }
10299
10300 with_nettle=yes
10301
10302 fi
10303 PKG_CONFIG=$_save_PKG_CONFIG
10304 else
10305
10306 pkg_failed=no
10307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for nettle >= 3.7" >&5
10308 printf %s "checking for nettle >= 3.7... " >&6; }
10309
10310 if test -n "$NETTLE_CFLAGS"; then
10311 pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
10312 elif test -n "$PKG_CONFIG"; then
10313 if test -n "$PKG_CONFIG" && \
10314 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.7\""; } >&5
10315 ($PKG_CONFIG --exists --print-errors "nettle >= 3.7") 2>&5
10316 ac_status=$?
10317 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10318 test $ac_status = 0; }; then
10319 pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 3.7" 2>/dev/null`
10320 test "x$?" != "x0" && pkg_failed=yes
10321 else
10322 pkg_failed=yes
10323 fi
10324 else
10325 pkg_failed=untried
10326 fi
10327 if test -n "$NETTLE_LIBS"; then
10328 pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
10329 elif test -n "$PKG_CONFIG"; then
10330 if test -n "$PKG_CONFIG" && \
10331 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 3.7\""; } >&5
10332 ($PKG_CONFIG --exists --print-errors "nettle >= 3.7") 2>&5
10333 ac_status=$?
10334 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10335 test $ac_status = 0; }; then
10336 pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 3.7" 2>/dev/null`
10337 test "x$?" != "x0" && pkg_failed=yes
10338 else
10339 pkg_failed=yes
10340 fi
10341 else
10342 pkg_failed=untried
10343 fi
10344
10345
10346
10347 if test $pkg_failed = yes; then
10348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 printf '%s\n' "no" >&6; }
10350
10351 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10352 _pkg_short_errors_supported=yes
10353 else
10354 _pkg_short_errors_supported=no
10355 fi
10356 if test $_pkg_short_errors_supported = yes; then
10357 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nettle >= 3.7" 2>&1`
10358 else
10359 NETTLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nettle >= 3.7" 2>&1`
10360 fi
10361 # Put the nasty error message in config.log where it belongs
10362 echo "$NETTLE_PKG_ERRORS" >&5
10363
10364
10365 if test x"$with_nettle" = xyes
10366 then :
10367
10368 as_fn_error $? "nettle >= 3.7 not found by pkg-config - Try to add directory containing nettle.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10369
10370 fi
10371 with_nettle=no
10372
10373 elif test $pkg_failed = untried; then
10374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 printf '%s\n' "no" >&6; }
10376
10377 if test x"$with_nettle" = xyes
10378 then :
10379
10380 as_fn_error $? "nettle >= 3.7 not found by pkg-config - Try to add directory containing nettle.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10381
10382 fi
10383 with_nettle=no
10384
10385 else
10386 NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
10387 NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
10388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10389 printf '%s\n' "yes" >&6; }
10390
10391 with_nettle=yes
10392
10393 fi
10394 fi
10395 if test x"$with_nettle" = xyes
10396 then :
10397
10398
10399 printf '%s\n' "#define WITH_NETTLE 1" >>confdefs.h
10400
10401
10402 fi
10403
10404 fi
10405
10406 if test x"$with_nettle" = xyes
10407 then :
10408
10409 if test x"$with_gcrypt" = xcheck
10410 then :
10411 with_gcrypt=no
10412 fi
10413
10414 fi
10415
10416 if test x"$with_gcrypt" != xno
10417 then :
10418
10419 if test "$aide_static_choice" = "yes"; then
10420 _save_PKG_CONFIG=$PKG_CONFIG
10421 PKG_CONFIG="$PKG_CONFIG --static"
10422
10423 pkg_failed=no
10424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libgcrypt " >&5
10425 printf %s "checking for libgcrypt ... " >&6; }
10426
10427 if test -n "$GCRYPT_CFLAGS"; then
10428 pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
10429 elif test -n "$PKG_CONFIG"; then
10430 if test -n "$PKG_CONFIG" && \
10431 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt \""; } >&5
10432 ($PKG_CONFIG --exists --print-errors "libgcrypt ") 2>&5
10433 ac_status=$?
10434 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; }; then
10436 pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt " 2>/dev/null`
10437 test "x$?" != "x0" && pkg_failed=yes
10438 else
10439 pkg_failed=yes
10440 fi
10441 else
10442 pkg_failed=untried
10443 fi
10444 if test -n "$GCRYPT_LIBS"; then
10445 pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
10446 elif test -n "$PKG_CONFIG"; then
10447 if test -n "$PKG_CONFIG" && \
10448 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt \""; } >&5
10449 ($PKG_CONFIG --exists --print-errors "libgcrypt ") 2>&5
10450 ac_status=$?
10451 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452 test $ac_status = 0; }; then
10453 pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt " 2>/dev/null`
10454 test "x$?" != "x0" && pkg_failed=yes
10455 else
10456 pkg_failed=yes
10457 fi
10458 else
10459 pkg_failed=untried
10460 fi
10461
10462
10463
10464 if test $pkg_failed = yes; then
10465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 printf '%s\n' "no" >&6; }
10467
10468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10469 _pkg_short_errors_supported=yes
10470 else
10471 _pkg_short_errors_supported=no
10472 fi
10473 if test $_pkg_short_errors_supported = yes; then
10474 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt " 2>&1`
10475 else
10476 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt " 2>&1`
10477 fi
10478 # Put the nasty error message in config.log where it belongs
10479 echo "$GCRYPT_PKG_ERRORS" >&5
10480
10481
10482 if test x"$with_gcrypt" = xyes
10483 then :
10484
10485 as_fn_error $? "libgcrypt not found by pkg-config - Try to add directory containing libgcrypt.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10486
10487 fi
10488 with_gcrypt=no
10489
10490 elif test $pkg_failed = untried; then
10491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 printf '%s\n' "no" >&6; }
10493
10494 if test x"$with_gcrypt" = xyes
10495 then :
10496
10497 as_fn_error $? "libgcrypt not found by pkg-config - Try to add directory containing libgcrypt.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10498
10499 fi
10500 with_gcrypt=no
10501
10502 else
10503 GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
10504 GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
10505 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 printf '%s\n' "yes" >&6; }
10507
10508 with_gcrypt=yes
10509
10510 fi
10511 PKG_CONFIG=$_save_PKG_CONFIG
10512 else
10513
10514 pkg_failed=no
10515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for libgcrypt " >&5
10516 printf %s "checking for libgcrypt ... " >&6; }
10517
10518 if test -n "$GCRYPT_CFLAGS"; then
10519 pkg_cv_GCRYPT_CFLAGS="$GCRYPT_CFLAGS"
10520 elif test -n "$PKG_CONFIG"; then
10521 if test -n "$PKG_CONFIG" && \
10522 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt \""; } >&5
10523 ($PKG_CONFIG --exists --print-errors "libgcrypt ") 2>&5
10524 ac_status=$?
10525 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526 test $ac_status = 0; }; then
10527 pkg_cv_GCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt " 2>/dev/null`
10528 test "x$?" != "x0" && pkg_failed=yes
10529 else
10530 pkg_failed=yes
10531 fi
10532 else
10533 pkg_failed=untried
10534 fi
10535 if test -n "$GCRYPT_LIBS"; then
10536 pkg_cv_GCRYPT_LIBS="$GCRYPT_LIBS"
10537 elif test -n "$PKG_CONFIG"; then
10538 if test -n "$PKG_CONFIG" && \
10539 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt \""; } >&5
10540 ($PKG_CONFIG --exists --print-errors "libgcrypt ") 2>&5
10541 ac_status=$?
10542 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10543 test $ac_status = 0; }; then
10544 pkg_cv_GCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt " 2>/dev/null`
10545 test "x$?" != "x0" && pkg_failed=yes
10546 else
10547 pkg_failed=yes
10548 fi
10549 else
10550 pkg_failed=untried
10551 fi
10552
10553
10554
10555 if test $pkg_failed = yes; then
10556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 printf '%s\n' "no" >&6; }
10558
10559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10560 _pkg_short_errors_supported=yes
10561 else
10562 _pkg_short_errors_supported=no
10563 fi
10564 if test $_pkg_short_errors_supported = yes; then
10565 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt " 2>&1`
10566 else
10567 GCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt " 2>&1`
10568 fi
10569 # Put the nasty error message in config.log where it belongs
10570 echo "$GCRYPT_PKG_ERRORS" >&5
10571
10572
10573 if test x"$with_gcrypt" = xyes
10574 then :
10575
10576 as_fn_error $? "libgcrypt not found by pkg-config - Try to add directory containing libgcrypt.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10577
10578 fi
10579 with_gcrypt=no
10580
10581 elif test $pkg_failed = untried; then
10582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 printf '%s\n' "no" >&6; }
10584
10585 if test x"$with_gcrypt" = xyes
10586 then :
10587
10588 as_fn_error $? "libgcrypt not found by pkg-config - Try to add directory containing libgcrypt.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10589
10590 fi
10591 with_gcrypt=no
10592
10593 else
10594 GCRYPT_CFLAGS=$pkg_cv_GCRYPT_CFLAGS
10595 GCRYPT_LIBS=$pkg_cv_GCRYPT_LIBS
10596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 printf '%s\n' "yes" >&6; }
10598
10599 with_gcrypt=yes
10600
10601 fi
10602 fi
10603 if test x"$with_gcrypt" = xyes
10604 then :
10605
10606
10607 printf '%s\n' "#define WITH_GCRYPT 1" >>confdefs.h
10608
10609
10610 fi
10611
10612 fi
10613
10614 if test x"$with_nettle" != xno && test x"$with_gcrypt" != xno
10615 then :
10616
10617 as_fn_error $? "Using gcrypt together with Nettle makes no sense. To disable nettle use --without-nettle" "$LINENO" 5
10618
10619 fi
10620 if test x"$with_nettle" = xno && test x"$with_gcrypt" = xno
10621 then :
10622
10623 as_fn_error $? "AIDE requires nettle or libcrypt for hashsum calculation" "$LINENO" 5
10624
10625 fi
10626 compoptionstring="${compoptionstring}use Nettle crypto library: $with_nettle\\n"
10627 if test "x$NETTLE_LIBS" != "x"; then
10628 HAVE_NETTLE_TRUE=
10629 HAVE_NETTLE_FALSE='#'
10630 else
10631 HAVE_NETTLE_TRUE='#'
10632 HAVE_NETTLE_FALSE=
10633 fi
10634
10635 compoptionstring="${compoptionstring}use GNU crypto library: $with_gcrypt\\n"
10636 if test "x$GCRYPT_LIBS" != "x"; then
10637 HAVE_GCRYPT_TRUE=
10638 HAVE_GCRYPT_FALSE='#'
10639 else
10640 HAVE_GCRYPT_TRUE='#'
10641 HAVE_GCRYPT_FALSE=
10642 fi
10643
10644
10645
10646 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for Linux Auditing Framework" >&5
10647 printf %s "checking for Linux Auditing Framework... " >&6; }
10648
10649 # Check whether --with-audit was given.
10650 if test ${with_audit+y}
10651 then :
10652 withval=$with_audit; with_audit=$withval
10653 else case e in #(
10654 e) with_audit=no ;;
10655 esac
10656 fi
10657
10658
10659 if test x"$with_audit" = xyes
10660 then :
10661
10662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 printf '%s\n' "yes" >&6; }
10664
10665 if test "$aide_static_choice" = "yes"; then
10666 _save_PKG_CONFIG=$PKG_CONFIG
10667 PKG_CONFIG="$PKG_CONFIG --static"
10668
10669 pkg_failed=no
10670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for audit " >&5
10671 printf %s "checking for audit ... " >&6; }
10672
10673 if test -n "$AUDIT_CFLAGS"; then
10674 pkg_cv_AUDIT_CFLAGS="$AUDIT_CFLAGS"
10675 elif test -n "$PKG_CONFIG"; then
10676 if test -n "$PKG_CONFIG" && \
10677 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audit \""; } >&5
10678 ($PKG_CONFIG --exists --print-errors "audit ") 2>&5
10679 ac_status=$?
10680 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10681 test $ac_status = 0; }; then
10682 pkg_cv_AUDIT_CFLAGS=`$PKG_CONFIG --cflags "audit " 2>/dev/null`
10683 test "x$?" != "x0" && pkg_failed=yes
10684 else
10685 pkg_failed=yes
10686 fi
10687 else
10688 pkg_failed=untried
10689 fi
10690 if test -n "$AUDIT_LIBS"; then
10691 pkg_cv_AUDIT_LIBS="$AUDIT_LIBS"
10692 elif test -n "$PKG_CONFIG"; then
10693 if test -n "$PKG_CONFIG" && \
10694 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audit \""; } >&5
10695 ($PKG_CONFIG --exists --print-errors "audit ") 2>&5
10696 ac_status=$?
10697 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10698 test $ac_status = 0; }; then
10699 pkg_cv_AUDIT_LIBS=`$PKG_CONFIG --libs "audit " 2>/dev/null`
10700 test "x$?" != "x0" && pkg_failed=yes
10701 else
10702 pkg_failed=yes
10703 fi
10704 else
10705 pkg_failed=untried
10706 fi
10707
10708
10709
10710 if test $pkg_failed = yes; then
10711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 printf '%s\n' "no" >&6; }
10713
10714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10715 _pkg_short_errors_supported=yes
10716 else
10717 _pkg_short_errors_supported=no
10718 fi
10719 if test $_pkg_short_errors_supported = yes; then
10720 AUDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "audit " 2>&1`
10721 else
10722 AUDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "audit " 2>&1`
10723 fi
10724 # Put the nasty error message in config.log where it belongs
10725 echo "$AUDIT_PKG_ERRORS" >&5
10726
10727 as_fn_error $? "audit not found by pkg-config - Try --without-audit or add directory containing audit.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10728 elif test $pkg_failed = untried; then
10729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 printf '%s\n' "no" >&6; }
10731 as_fn_error $? "audit not found by pkg-config - Try --without-audit or add directory containing audit.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10732 else
10733 AUDIT_CFLAGS=$pkg_cv_AUDIT_CFLAGS
10734 AUDIT_LIBS=$pkg_cv_AUDIT_LIBS
10735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 printf '%s\n' "yes" >&6; }
10737
10738 fi
10739 PKG_CONFIG=$_save_PKG_CONFIG
10740 else
10741
10742 pkg_failed=no
10743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for audit " >&5
10744 printf %s "checking for audit ... " >&6; }
10745
10746 if test -n "$AUDIT_CFLAGS"; then
10747 pkg_cv_AUDIT_CFLAGS="$AUDIT_CFLAGS"
10748 elif test -n "$PKG_CONFIG"; then
10749 if test -n "$PKG_CONFIG" && \
10750 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audit \""; } >&5
10751 ($PKG_CONFIG --exists --print-errors "audit ") 2>&5
10752 ac_status=$?
10753 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10754 test $ac_status = 0; }; then
10755 pkg_cv_AUDIT_CFLAGS=`$PKG_CONFIG --cflags "audit " 2>/dev/null`
10756 test "x$?" != "x0" && pkg_failed=yes
10757 else
10758 pkg_failed=yes
10759 fi
10760 else
10761 pkg_failed=untried
10762 fi
10763 if test -n "$AUDIT_LIBS"; then
10764 pkg_cv_AUDIT_LIBS="$AUDIT_LIBS"
10765 elif test -n "$PKG_CONFIG"; then
10766 if test -n "$PKG_CONFIG" && \
10767 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audit \""; } >&5
10768 ($PKG_CONFIG --exists --print-errors "audit ") 2>&5
10769 ac_status=$?
10770 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10771 test $ac_status = 0; }; then
10772 pkg_cv_AUDIT_LIBS=`$PKG_CONFIG --libs "audit " 2>/dev/null`
10773 test "x$?" != "x0" && pkg_failed=yes
10774 else
10775 pkg_failed=yes
10776 fi
10777 else
10778 pkg_failed=untried
10779 fi
10780
10781
10782
10783 if test $pkg_failed = yes; then
10784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 printf '%s\n' "no" >&6; }
10786
10787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10788 _pkg_short_errors_supported=yes
10789 else
10790 _pkg_short_errors_supported=no
10791 fi
10792 if test $_pkg_short_errors_supported = yes; then
10793 AUDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "audit " 2>&1`
10794 else
10795 AUDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "audit " 2>&1`
10796 fi
10797 # Put the nasty error message in config.log where it belongs
10798 echo "$AUDIT_PKG_ERRORS" >&5
10799
10800 as_fn_error $? "audit not found by pkg-config - Try --without-audit or add directory containing audit.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10801 elif test $pkg_failed = untried; then
10802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 printf '%s\n' "no" >&6; }
10804 as_fn_error $? "audit not found by pkg-config - Try --without-audit or add directory containing audit.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
10805 else
10806 AUDIT_CFLAGS=$pkg_cv_AUDIT_CFLAGS
10807 AUDIT_LIBS=$pkg_cv_AUDIT_LIBS
10808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809 printf '%s\n' "yes" >&6; }
10810
10811 fi
10812 fi
10813
10814 printf '%s\n' "#define WITH_AUDIT 1" >>confdefs.h
10815
10816
10817 if test -n ; then
10818 aideextragroups="${aideextragroups}+"
10819 fi
10820
10821 else case e in #(
10822 e)
10823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 printf '%s\n' "no" >&6; }
10825 ;;
10826 esac
10827 fi
10828 compoptionstring="${compoptionstring}use Linux Auditing Framework: $with_audit\\n"
10829 if test "x$AUDIT_LIBS" != "x"; then
10830 HAVE_AUDIT_TRUE=
10831 HAVE_AUDIT_FALSE='#'
10832 else
10833 HAVE_AUDIT_TRUE='#'
10834 HAVE_AUDIT_FALSE=
10835 fi
10836
10837
10838
10839
10840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for locale" >&5
10841 printf %s "checking for locale... " >&6; }
10842
10843 # Check whether --with-locale was given.
10844 if test ${with_locale+y}
10845 then :
10846 withval=$with_locale; with_locale=$withval
10847 else case e in #(
10848 e) with_locale=no ;;
10849 esac
10850 fi
10851
10852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_locale" >&5
10853 printf '%s\n' "$with_locale" >&6; }
10854 if test x"$with_locale" != xno
10855 then :
10856
10857 for ac_header in libintl.h
10858 do :
10859 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10860 if test "x$ac_cv_header_libintl_h" = xyes
10861 then :
10862 printf '%s\n' "#define HAVE_LIBINTL_H 1" >>confdefs.h
10863
10864 if test x"no" != xno
10865 then :
10866
10867
10868 printf '%s\n' "#define WITH_LOCALE 1" >>confdefs.h
10869
10870 with_locale="yes"
10871
10872 fi
10873
10874 else case e in #(
10875 e)
10876 if test x"no" = xyes
10877 then :
10878
10879 as_fn_error $? "headers libintl.h for locale not found" "$LINENO" 5
10880
10881 fi
10882 ;;
10883 esac
10884 fi
10885
10886 done
10887
10888 fi
10889 compoptionstring="${compoptionstring}use locale: $with_locale\\n"
10890 if test "x$with_locale" = "xyes"; then
10891 HAVE_LOCALE_TRUE=
10892 HAVE_LOCALE_FALSE='#'
10893 else
10894 HAVE_LOCALE_TRUE='#'
10895 HAVE_LOCALE_FALSE=
10896 fi
10897
10898
10899 if test "x$with_locale" = xyes; then
10900
10901 printf '%s\n' "#define LOCALEDIR \"$prefix/lib/locale\"" >>confdefs.h
10902
10903 fi
10904
10905
10906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for syslog ident" >&5
10907 printf %s "checking for syslog ident... " >&6; }
10908
10909 # Check whether --with-syslog_ident was given.
10910 if test ${with_syslog_ident+y}
10911 then :
10912 withval=$with_syslog_ident; with_syslog_ident=$withval
10913 else case e in #(
10914 e) with_syslog_ident="aide" ;;
10915 esac
10916 fi
10917
10918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_syslog_ident" >&5
10919 printf '%s\n' "$with_syslog_ident" >&6; }
10920 compoptionstring="${compoptionstring}syslog ident: $with_syslog_ident\\n"
10921
10922
10923 printf '%s\n' "#define AIDE_IDENT \"$with_syslog_ident\"" >>confdefs.h
10924
10925
10926
10927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for syslog logopt" >&5
10928 printf %s "checking for syslog logopt... " >&6; }
10929
10930 # Check whether --with-syslog_logopt was given.
10931 if test ${with_syslog_logopt+y}
10932 then :
10933 withval=$with_syslog_logopt; with_syslog_logopt=$withval
10934 else case e in #(
10935 e) with_syslog_logopt=LOG_CONS ;;
10936 esac
10937 fi
10938
10939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_syslog_logopt" >&5
10940 printf '%s\n' "$with_syslog_logopt" >&6; }
10941 compoptionstring="${compoptionstring}syslog logopt: $with_syslog_logopt\\n"
10942
10943
10944 printf '%s\n' "#define AIDE_LOGOPT $with_syslog_logopt" >>confdefs.h
10945
10946
10947
10948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for syslog priority" >&5
10949 printf %s "checking for syslog priority... " >&6; }
10950
10951 # Check whether --with-syslog_priority was given.
10952 if test ${with_syslog_priority+y}
10953 then :
10954 withval=$with_syslog_priority; with_syslog_priority=$withval
10955 else case e in #(
10956 e) with_syslog_priority=LOG_NOTICE ;;
10957 esac
10958 fi
10959
10960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_syslog_priority" >&5
10961 printf '%s\n' "$with_syslog_priority" >&6; }
10962 compoptionstring="${compoptionstring}syslog priority: $with_syslog_priority\\n"
10963
10964
10965 printf '%s\n' "#define AIDE_SYSLOG_PRIORITY $with_syslog_priority" >>confdefs.h
10966
10967
10968
10969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for default syslog facility" >&5
10970 printf %s "checking for default syslog facility... " >&6; }
10971
10972 # Check whether --with-syslog_facility was given.
10973 if test ${with_syslog_facility+y}
10974 then :
10975 withval=$with_syslog_facility; with_syslog_facility=$withval
10976 else case e in #(
10977 e) with_syslog_facility=LOG_LOCAL0 ;;
10978 esac
10979 fi
10980
10981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_syslog_facility" >&5
10982 printf '%s\n' "$with_syslog_facility" >&6; }
10983 compoptionstring="${compoptionstring}default syslog facility: $with_syslog_facility\\n"
10984
10985
10986 printf '%s\n' "#define AIDE_SYSLOG_FACILITY $with_syslog_facility" >>confdefs.h
10987
10988
10989
10990 pkg_failed=no
10991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
10992 printf %s "checking for check >= 0.9.4... " >&6; }
10993
10994 if test -n "$CHECK_CFLAGS"; then
10995 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
10996 elif test -n "$PKG_CONFIG"; then
10997 if test -n "$PKG_CONFIG" && \
10998 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
10999 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
11000 ac_status=$?
11001 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11002 test $ac_status = 0; }; then
11003 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
11004 test "x$?" != "x0" && pkg_failed=yes
11005 else
11006 pkg_failed=yes
11007 fi
11008 else
11009 pkg_failed=untried
11010 fi
11011 if test -n "$CHECK_LIBS"; then
11012 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
11013 elif test -n "$PKG_CONFIG"; then
11014 if test -n "$PKG_CONFIG" && \
11015 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
11016 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
11017 ac_status=$?
11018 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019 test $ac_status = 0; }; then
11020 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
11021 test "x$?" != "x0" && pkg_failed=yes
11022 else
11023 pkg_failed=yes
11024 fi
11025 else
11026 pkg_failed=untried
11027 fi
11028
11029
11030
11031 if test $pkg_failed = yes; then
11032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 printf '%s\n' "no" >&6; }
11034
11035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11036 _pkg_short_errors_supported=yes
11037 else
11038 _pkg_short_errors_supported=no
11039 fi
11040 if test $_pkg_short_errors_supported = yes; then
11041 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
11042 else
11043 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
11044 fi
11045 # Put the nasty error message in config.log where it belongs
11046 echo "$CHECK_PKG_ERRORS" >&5
11047
11048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Check not found (testing via 'make check' disabled)" >&5
11049 printf '%s\n' "Check not found (testing via 'make check' disabled)" >&6; }
11050 elif test $pkg_failed = untried; then
11051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 printf '%s\n' "no" >&6; }
11053 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: Check not found (testing via 'make check' disabled)" >&5
11054 printf '%s\n' "Check not found (testing via 'make check' disabled)" >&6; }
11055 else
11056 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
11057 CHECK_LIBS=$pkg_cv_CHECK_LIBS
11058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059 printf '%s\n' "yes" >&6; }
11060
11061 fi
11062 if test "x$CHECK_LIBS" != "x"; then
11063 HAVE_CHECK_TRUE=
11064 HAVE_CHECK_FALSE='#'
11065 else
11066 HAVE_CHECK_TRUE='#'
11067 HAVE_CHECK_FALSE=
11068 fi
11069
11070
11071
11072 # Check whether --with-config_file was given.
11073 if test ${with_config_file+y}
11074 then :
11075 withval=$with_config_file; with_config_file=$withval
11076 else case e in #(
11077 e) with_config_file=yes ;;
11078 esac
11079 fi
11080
11081
11082 if test "$with_config_file" != "no"; then
11083 if test "$with_config_file" != "yes"; then
11084 config_file=$with_config_file
11085 else
11086 if test "x$sysconfdir" != x'${prefix}/etc'; then
11087 config_file=`eval echo "$sysconfdir/aide.conf"`
11088 elif test "x$prefix" != xNONE; then
11089 config_file="$prefix/etc/aide.conf"
11090 else
11091 config_file="$ac_default_prefix/etc/aide.conf"
11092 fi
11093 fi
11094
11095 printf '%s\n' "#define CONFIG_FILE \"$config_file\"" >>confdefs.h
11096
11097 fi
11098
11099 # Check whether --enable-default_db was given.
11100 if test ${enable_default_db+y}
11101 then :
11102 enableval=$enable_default_db; enable_default_db=$enableval
11103 else case e in #(
11104 e) enable_default_db=yes ;;
11105 esac
11106 fi
11107
11108
11109 if test "$enable_default_db" = "yes"; then
11110
11111 if test "x$sysconfdir" != x'${prefix}/etc'; then
11112 evalled_sysconfdir=`eval echo "$sysconfdir"`
11113 default_db="$evalled_sysconfdir/aide.db"
11114 default_db_out="$evalled_sysconfdir/aide.db.new"
11115 elif test "x$prefix" != xNONE; then
11116 default_db="$prefix/etc/aide.db"
11117 default_db_out="$prefix/etc/aide.db.new"
11118 else
11119 default_db="$ac_default_prefix/etc/aide.db"
11120 default_db_out="$ac_default_prefix/etc/aide.db.new"
11121 fi
11122
11123
11124 printf '%s\n' "#define DEFAULT_DB \"file:$default_db\"" >>confdefs.h
11125
11126
11127 printf '%s\n' "#define DEFAULT_DB_OUT \"file:$default_db_out\"" >>confdefs.h
11128
11129
11130 fi
11131
11132 extrasub="s&@AIDEVERSION@&$PACKAGE_VERSION&;t t"
11133
11134
11135 cat >>confdefs.h <<_ACEOF
11136 #define AIDECOMPILEOPTIONS "${compoptionstring}"
11137 _ACEOF
11138
11139
11140 LDFLAGS="$LDFLAGS $LD_STATIC_FLAG $EXTRA_LDFLAGS"
11141 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11142
11143
11144 ac_config_files="$ac_config_files Makefile"
11145
11146 cat >confcache <<\_ACEOF
11147 # This file is a shell script that caches the results of configure
11148 # tests run on this system so they can be shared between configure
11149 # scripts and configure runs, see configure's option --config-cache.
11150 # It is not useful on other systems. If it contains results you don't
11151 # want to keep, you may remove or edit it.
11152 #
11153 # config.status only pays attention to the cache file if you give it
11154 # the --recheck option to rerun configure.
11155 #
11156 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11157 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11158 # following values.
11159
11160 _ACEOF
11161
11162 ac_cache_dump |
11163 sed '
11164 /^ac_cv_env_/b end
11165 t clear
11166 :clear
11167 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11168 t end
11169 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11170 :end' >>confcache
11171 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11172 if test -w "$cache_file"; then
11173 if test "x$cache_file" != "x/dev/null"; then
11174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11175 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
11176 if test ! -f "$cache_file" || test -h "$cache_file"; then
11177 cat confcache >"$cache_file"
11178 else
11179 case $cache_file in #(
11180 */* | ?:*)
11181 mv -f confcache "$cache_file"$$ &&
11182 mv -f "$cache_file"$$ "$cache_file" ;; #(
11183 *)
11184 mv -f confcache "$cache_file" ;;
11185 esac
11186 fi
11187 fi
11188 else
11189 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11190 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
11191 fi
11192 fi
11193 rm -f confcache
11194
11195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11196 # Let make expand exec_prefix.
11197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11198
11199 DEFS=-DHAVE_CONFIG_H
11200
11201 ac_libobjs=
11202 ac_ltlibobjs=
11203 U=
11204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11205 # 1. Remove the extension, and $U if already installed.
11206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11207 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
11208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11209 # will be set to the directory where LIBOBJS objects are built.
11210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11212 done
11213 LIBOBJS=$ac_libobjs
11214
11215 LTLIBOBJS=$ac_ltlibobjs
11216
11217
11218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11219 printf %s "checking that generated files are newer than configure... " >&6; }
11220 if test -n "$am_sleep_pid"; then
11221 # Hide warnings about reused PIDs.
11222 wait $am_sleep_pid 2>/dev/null
11223 fi
11224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
11225 printf '%s\n' "done" >&6; }
11226 case $enable_silent_rules in # (((
11227 yes) AM_DEFAULT_VERBOSITY=0;;
11228 no) AM_DEFAULT_VERBOSITY=1;;
11229 esac
11230 if test $am_cv_make_support_nested_variables = yes; then
11231 AM_V='$(V)'
11232 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11233 else
11234 AM_V=$AM_DEFAULT_VERBOSITY
11235 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11236 fi
11237
11238 if test -n "$EXEEXT"; then
11239 am__EXEEXT_TRUE=
11240 am__EXEEXT_FALSE='#'
11241 else
11242 am__EXEEXT_TRUE='#'
11243 am__EXEEXT_FALSE=
11244 fi
11245
11246 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11247 as_fn_error $? "conditional \"AMDEP\" was never defined.
11248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11249 fi
11250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11251 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11253 fi
11254 # Check whether --enable-year2038 was given.
11255 if test ${enable_year2038+y}
11256 then :
11257 enableval=$enable_year2038;
11258 fi
11259
11260
11261 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
11262 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
11263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11264 fi
11265 if test -z "${HAVE_POSIX_ACL_TRUE}" && test -z "${HAVE_POSIX_ACL_FALSE}"; then
11266 as_fn_error $? "conditional \"HAVE_POSIX_ACL\" was never defined.
11267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11268 fi
11269 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
11270 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
11271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11272 fi
11273 if test -z "${HAVE_XATTR_TRUE}" && test -z "${HAVE_XATTR_FALSE}"; then
11274 as_fn_error $? "conditional \"HAVE_XATTR\" was never defined.
11275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11276 fi
11277 if test -z "${HAVE_CAPABILITIES_TRUE}" && test -z "${HAVE_CAPABILITIES_FALSE}"; then
11278 as_fn_error $? "conditional \"HAVE_CAPABILITIES\" was never defined.
11279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11280 fi
11281 if test -z "${HAVE_E2FSATTRS_TRUE}" && test -z "${HAVE_E2FSATTRS_FALSE}"; then
11282 as_fn_error $? "conditional \"HAVE_E2FSATTRS\" was never defined.
11283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11284 fi
11285 if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
11286 as_fn_error $? "conditional \"HAVE_CURL\" was never defined.
11287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11288 fi
11289 if test -z "${HAVE_NETTLE_TRUE}" && test -z "${HAVE_NETTLE_FALSE}"; then
11290 as_fn_error $? "conditional \"HAVE_NETTLE\" was never defined.
11291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11292 fi
11293 if test -z "${HAVE_GCRYPT_TRUE}" && test -z "${HAVE_GCRYPT_FALSE}"; then
11294 as_fn_error $? "conditional \"HAVE_GCRYPT\" was never defined.
11295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11296 fi
11297 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
11298 as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
11299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11300 fi
11301 if test -z "${HAVE_LOCALE_TRUE}" && test -z "${HAVE_LOCALE_FALSE}"; then
11302 as_fn_error $? "conditional \"HAVE_LOCALE\" was never defined.
11303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11304 fi
11305 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
11306 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
11307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11308 fi
11309
11310 : "${CONFIG_STATUS=./config.status}"
11311 case $CONFIG_STATUS in #(
11312 -*) :
11313 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
11314 */*) :
11315 ;; #(
11316 *) :
11317 CONFIG_STATUS=./$CONFIG_STATUS ;;
11318 esac
11319
11320 ac_write_fail=0
11321 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
11322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11323 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
11324 as_write_fail=0
11325 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
11326 #! $SHELL
11327 # Generated by $as_me.
11328 # Run this file to recreate the current configuration.
11329 # Compiler output produced by configure, useful for debugging
11330 # configure, is in config.log if it exists.
11331
11332 debug=false
11333 ac_cs_recheck=false
11334 ac_cs_silent=false
11335
11336 SHELL=\${CONFIG_SHELL-$SHELL}
11337 export SHELL
11338 _ASEOF
11339 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
11340 ## -------------------- ##
11341 ## M4sh Initialization. ##
11342 ## -------------------- ##
11343
11344 # Be more Bourne compatible
11345 DUALCASE=1; export DUALCASE # for MKS sh
11346 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11347 then :
11348 emulate sh
11349 NULLCMD=:
11350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11351 # contradicts POSIX and common usage. Disable this.
11352 alias -g '${1+"$@"}'='"$@"'
11353 setopt NO_GLOB_SUBST
11354 else case e in #(
11355 e) case `(set -o) 2>/dev/null` in #(
11356 *posix*) :
11357 set -o posix ;; #(
11358 *) :
11359 ;;
11360 esac ;;
11361 esac
11362 fi
11363
11364
11365
11366 # Reset variables that may have inherited troublesome values from
11367 # the environment.
11368
11369 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11370 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11371 # side effect of setting IFS to empty, thus disabling word splitting.)
11372 # Quoting is to prevent editors from complaining about space-tab.
11373 as_nl='
11374 '
11375 export as_nl
11376 IFS=" "" $as_nl"
11377
11378 PS1='$ '
11379 PS2='> '
11380 PS4='+ '
11381
11382 # Ensure predictable behavior from utilities with locale-dependent output.
11383 LC_ALL=C
11384 export LC_ALL
11385 LANGUAGE=C
11386 export LANGUAGE
11387
11388 # We cannot yet rely on "unset" to work, but we need these variables
11389 # to be unset--not just set to an empty or harmless value--now, to
11390 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11391 # also avoids known problems related to "unset" and subshell syntax
11392 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11393 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11394 do eval test \${$as_var+y} \
11395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11396 done
11397
11398 # Ensure that fds 0, 1, and 2 are open.
11399 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11400 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11401 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11402
11403 # The user is always right.
11404 if ${PATH_SEPARATOR+false} :; then
11405 PATH_SEPARATOR=:
11406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11408 PATH_SEPARATOR=';'
11409 }
11410 fi
11411
11412
11413 # Find who we are. Look in the path if we contain no directory separator.
11414 as_myself=
11415 case $0 in #((
11416 *[\\/]* ) as_myself=$0 ;;
11417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11419 do
11420 IFS=$as_save_IFS
11421 case $as_dir in #(((
11422 '') as_dir=./ ;;
11423 */) ;;
11424 *) as_dir=$as_dir/ ;;
11425 esac
11426 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11427 done
11428 IFS=$as_save_IFS
11429
11430 ;;
11431 esac
11432 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11433 # in which case we are not to be found in the path.
11434 if test "x$as_myself" = x; then
11435 as_myself=$0
11436 fi
11437 if test ! -f "$as_myself"; then
11438 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11439 exit 1
11440 fi
11441
11442
11443
11444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11445 # ----------------------------------------
11446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11448 # script with STATUS, using 1 if that was 0.
11449 as_fn_error ()
11450 {
11451 as_status=$1; test $as_status -eq 0 && as_status=1
11452 if test "$4"; then
11453 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11454 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11455 fi
11456 printf '%s\n' "$as_me: error: $2" >&2
11457 as_fn_exit $as_status
11458 } # as_fn_error
11459
11460
11461 # as_fn_set_status STATUS
11462 # -----------------------
11463 # Set $? to STATUS, without forking.
11464 as_fn_set_status ()
11465 {
11466 return $1
11467 } # as_fn_set_status
11468
11469 # as_fn_exit STATUS
11470 # -----------------
11471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11472 as_fn_exit ()
11473 {
11474 set +e
11475 as_fn_set_status $1
11476 exit $1
11477 } # as_fn_exit
11478
11479 # as_fn_unset VAR
11480 # ---------------
11481 # Portably unset VAR.
11482 as_fn_unset ()
11483 {
11484 { eval $1=; unset $1;}
11485 }
11486 as_unset=as_fn_unset
11487
11488 # as_fn_append VAR VALUE
11489 # ----------------------
11490 # Append the text in VALUE to the end of the definition contained in VAR. Take
11491 # advantage of any shell optimizations that allow amortized linear growth over
11492 # repeated appends, instead of the typical quadratic growth present in naive
11493 # implementations.
11494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11495 then :
11496 eval 'as_fn_append ()
11497 {
11498 eval $1+=\$2
11499 }'
11500 else case e in #(
11501 e) as_fn_append ()
11502 {
11503 eval $1=\$$1\$2
11504 } ;;
11505 esac
11506 fi # as_fn_append
11507
11508 # as_fn_arith ARG...
11509 # ------------------
11510 # Perform arithmetic evaluation on the ARGs, and store the result in the
11511 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11512 # must be portable across $(()) and expr.
11513 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11514 then :
11515 eval 'as_fn_arith ()
11516 {
11517 as_val=$(( $* ))
11518 }'
11519 else case e in #(
11520 e) as_fn_arith ()
11521 {
11522 as_val=`expr "$@" || test $? -eq 1`
11523 } ;;
11524 esac
11525 fi # as_fn_arith
11526
11527
11528 if expr a : '\(a\)' >/dev/null 2>&1 &&
11529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11530 as_expr=expr
11531 else
11532 as_expr=false
11533 fi
11534
11535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11536 as_basename=basename
11537 else
11538 as_basename=false
11539 fi
11540
11541 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11542 as_dirname=dirname
11543 else
11544 as_dirname=false
11545 fi
11546
11547 as_me=`$as_basename -- "$0" ||
11548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11549 X"$0" : 'X\(//\)$' \| \
11550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11551 printf '%s\n' X/"$0" |
11552 sed '/^.*\/\([^/][^/]*\)\/*$/{
11553 s//\1/
11554 q
11555 }
11556 /^X\/\(\/\/\)$/{
11557 s//\1/
11558 q
11559 }
11560 /^X\/\(\/\).*/{
11561 s//\1/
11562 q
11563 }
11564 s/.*/./; q'`
11565
11566 # Avoid depending upon Character Ranges.
11567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11570 as_cr_digits='0123456789'
11571 as_cr_alnum=$as_cr_Letters$as_cr_digits
11572
11573 rm -f conf$$ conf$$.exe conf$$.file
11574 if test -d conf$$.dir; then
11575 rm -f conf$$.dir/conf$$.file
11576 else
11577 rm -f conf$$.dir
11578 mkdir conf$$.dir 2>/dev/null
11579 fi
11580 if (echo >conf$$.file) 2>/dev/null; then
11581 if ln -s conf$$.file conf$$ 2>/dev/null; then
11582 as_ln_s='ln -s'
11583 # ... but there are two gotchas:
11584 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11585 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11586 # In both cases, we have to default to 'cp -pR'.
11587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11588 as_ln_s='cp -pR'
11589 elif ln conf$$.file conf$$ 2>/dev/null; then
11590 as_ln_s=ln
11591 else
11592 as_ln_s='cp -pR'
11593 fi
11594 else
11595 as_ln_s='cp -pR'
11596 fi
11597 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11598 rmdir conf$$.dir 2>/dev/null
11599
11600
11601 # as_fn_mkdir_p
11602 # -------------
11603 # Create "$as_dir" as a directory, including parents if necessary.
11604 as_fn_mkdir_p ()
11605 {
11606
11607 case $as_dir in #(
11608 -*) as_dir=./$as_dir;;
11609 esac
11610 test -d "$as_dir" || eval $as_mkdir_p || {
11611 as_dirs=
11612 while :; do
11613 case $as_dir in #(
11614 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11615 *) as_qdir=$as_dir;;
11616 esac
11617 as_dirs="'$as_qdir' $as_dirs"
11618 as_dir=`$as_dirname -- "$as_dir" ||
11619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620 X"$as_dir" : 'X\(//\)[^/]' \| \
11621 X"$as_dir" : 'X\(//\)$' \| \
11622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11623 printf '%s\n' X"$as_dir" |
11624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11625 s//\1/
11626 q
11627 }
11628 /^X\(\/\/\)[^/].*/{
11629 s//\1/
11630 q
11631 }
11632 /^X\(\/\/\)$/{
11633 s//\1/
11634 q
11635 }
11636 /^X\(\/\).*/{
11637 s//\1/
11638 q
11639 }
11640 s/.*/./; q'`
11641 test -d "$as_dir" && break
11642 done
11643 test -z "$as_dirs" || eval "mkdir $as_dirs"
11644 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11645
11646
11647 } # as_fn_mkdir_p
11648 if mkdir -p . 2>/dev/null; then
11649 as_mkdir_p='mkdir -p "$as_dir"'
11650 else
11651 test -d ./-p && rmdir ./-p
11652 as_mkdir_p=false
11653 fi
11654
11655
11656 # as_fn_executable_p FILE
11657 # -----------------------
11658 # Test if FILE is an executable regular file.
11659 as_fn_executable_p ()
11660 {
11661 test -f "$1" && test -x "$1"
11662 } # as_fn_executable_p
11663 as_test_x='test -x'
11664 as_executable_p=as_fn_executable_p
11665
11666 # Sed expression to map a string onto a valid CPP name.
11667 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11668 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
11669
11670 # Sed expression to map a string onto a valid variable name.
11671 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11672 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
11673
11674
11675 exec 6>&1
11676 ## ------------------------------------- ##
11677 ## Main body of "$CONFIG_STATUS" script. ##
11678 ## ------------------------------------- ##
11679 _ASEOF
11680 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
11681
11682 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11683 # Save the log message, to keep $0 and so on meaningful, and to
11684 # report actual input values of CONFIG_FILES etc. instead of their
11685 # values after options handling.
11686 ac_log="
11687 This file was extended by aide $as_me 0.19.4, which was
11688 generated by GNU Autoconf 2.73. Invocation command line was
11689
11690 CONFIG_FILES = $CONFIG_FILES
11691 CONFIG_HEADERS = $CONFIG_HEADERS
11692 CONFIG_LINKS = $CONFIG_LINKS
11693 CONFIG_COMMANDS = $CONFIG_COMMANDS
11694 $ $0 $@
11695
11696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11697 "
11698
11699 _ACEOF
11700
11701 case $ac_config_files in *"
11702 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11703 esac
11704
11705 case $ac_config_headers in *"
11706 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11707 esac
11708
11709
11710 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11711 # Files that config.status was made for.
11712 config_files="$ac_config_files"
11713 config_headers="$ac_config_headers"
11714 config_commands="$ac_config_commands"
11715
11716 _ACEOF
11717
11718 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11719 ac_cs_usage="\
11720 '$as_me' instantiates files and other configuration actions
11721 from templates according to the current configuration. Unless the files
11722 and actions are specified as TAGs, all are instantiated by default.
11723
11724 Usage: $0 [OPTION]... [TAG]...
11725
11726 -h, --help print this help, then exit
11727 -V, --version print version number and configuration settings, then exit
11728 --config print configuration, then exit
11729 -q, --quiet, --silent
11730 do not print progress messages
11731 -d, --debug don't remove temporary files
11732 --recheck update $as_me by reconfiguring in the same conditions
11733 --file=FILE[:TEMPLATE]
11734 instantiate the configuration file FILE
11735 --header=FILE[:TEMPLATE]
11736 instantiate the configuration header FILE
11737
11738 Configuration files:
11739 $config_files
11740
11741 Configuration headers:
11742 $config_headers
11743
11744 Configuration commands:
11745 $config_commands
11746
11747 Report bugs to the package provider."
11748
11749 _ACEOF
11750 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
11751 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11752 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11753 ac_cs_config='$ac_cs_config_escaped'
11754 ac_cs_version="\\
11755 aide config.status 0.19.4
11756 configured by $0, generated by GNU Autoconf 2.73,
11757 with options \\"\$ac_cs_config\\"
11758
11759 Copyright (C) 2026 Free Software Foundation, Inc.
11760 This config.status script is free software; the Free Software Foundation
11761 gives unlimited permission to copy, distribute and modify it."
11762
11763 ac_pwd='$ac_pwd'
11764 srcdir='$srcdir'
11765 INSTALL='$INSTALL'
11766 MKDIR_P='$MKDIR_P'
11767 AWK='$AWK'
11768 test -n "\$AWK" || {
11769 awk '' </dev/null ||
11770 as_fn_error \$? "try installing gawk"
11771 AWK=awk
11772 }
11773 _ACEOF
11774
11775 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11776 # The default lists apply if the user does not specify any file.
11777 ac_need_defaults=:
11778 while test $# != 0
11779 do
11780 case $1 in
11781 --*=?*)
11782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11784 ac_shift=:
11785 ;;
11786 --*=)
11787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11788 ac_optarg=
11789 ac_shift=:
11790 ;;
11791 *)
11792 ac_option=$1
11793 ac_optarg=$2
11794 ac_shift=shift
11795 ;;
11796 esac
11797
11798 case $ac_option in
11799 # Handling of the options.
11800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11801 ac_cs_recheck=: ;;
11802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11803 printf '%s\n' "$ac_cs_version"; exit ;;
11804 --config | --confi | --conf | --con | --co | --c )
11805 printf '%s\n' "$ac_cs_config"; exit ;;
11806 --debug | --debu | --deb | --de | --d | -d )
11807 debug=: ;;
11808 --file | --fil | --fi | --f )
11809 $ac_shift
11810 case $ac_optarg in
11811 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11812 '') as_fn_error $? "missing file argument" ;;
11813 esac
11814 as_fn_append CONFIG_FILES " '$ac_optarg'"
11815 ac_need_defaults=false;;
11816 --header | --heade | --head | --hea )
11817 $ac_shift
11818 case $ac_optarg in
11819 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11820 esac
11821 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11822 ac_need_defaults=false;;
11823 --he | --h)
11824 # Conflict between --help and --header
11825 as_fn_error $? "ambiguous option: '$1'
11826 Try '$0 --help' for more information.";;
11827 --help | --hel | -h )
11828 printf '%s\n' "$ac_cs_usage"; exit ;;
11829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11831 ac_cs_silent=: ;;
11832
11833 # This is an error.
11834 -*) as_fn_error $? "unrecognized option: '$1'
11835 Try '$0 --help' for more information." ;;
11836
11837 *) as_fn_append ac_config_targets " $1"
11838 ac_need_defaults=false ;;
11839
11840 esac
11841 shift
11842 done
11843
11844 ac_configure_extra_args=
11845
11846 if $ac_cs_silent; then
11847 exec 6>/dev/null
11848 ac_configure_extra_args="$ac_configure_extra_args --silent"
11849 fi
11850
11851 _ACEOF
11852 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11853 if \$ac_cs_recheck; then
11854 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11855 shift
11856 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
11857 CONFIG_SHELL='$SHELL'
11858 export CONFIG_SHELL
11859 exec "\$@"
11860 fi
11861
11862 _ACEOF
11863 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11864 exec 5>>config.log
11865 {
11866 echo
11867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11868 ## Running $as_me. ##
11869 _ASBOX
11870 printf '%s\n' "$ac_log"
11871 } >&5
11872
11873 _ACEOF
11874 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11875 #
11876 # INIT-COMMANDS
11877 #
11878 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11879
11880 _ACEOF
11881
11882 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
11883
11884 # Handling of arguments.
11885 for ac_config_target in $ac_config_targets
11886 do
11887 case $ac_config_target in
11888 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11889 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11890 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11891
11892 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
11893 esac
11894 done
11895
11896
11897 # If the user did not use the arguments to specify the items to instantiate,
11898 # then the envvar interface is used. Set only those that are not.
11899 # We use the long form for the default assignment because of an extremely
11900 # bizarre bug on SunOS 4.1.3.
11901 if $ac_need_defaults; then
11902 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11903 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11904 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11905 fi
11906
11907 # Have a temporary directory for convenience. Make it in the build tree
11908 # simply because there is no reason against having it here, and in addition,
11909 # creating and moving files from /tmp can sometimes cause problems.
11910 # Hook for its removal unless debugging.
11911 # Note that there is a small window in which the directory will not be cleaned:
11912 # after its creation but before its name has been assigned to '$tmp'.
11913 $debug ||
11914 {
11915 tmp= ac_tmp=
11916 trap 'exit_status=$?
11917 : "${ac_tmp:=$tmp}"
11918 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11919 ' 0
11920 trap 'as_fn_exit 1' 1 2 13 15
11921 }
11922 # Create a (secure) tmp directory for tmp files.
11923
11924 {
11925 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11926 test -d "$tmp"
11927 } ||
11928 {
11929 tmp=./conf$$-$RANDOM
11930 (umask 077 && mkdir "$tmp")
11931 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11932 ac_tmp=$tmp
11933
11934 # Set up the scripts for CONFIG_FILES section.
11935 # No need to generate them if there are no CONFIG_FILES.
11936 # This happens for instance with './config.status config.h'.
11937 if test -n "$CONFIG_FILES"; then
11938
11939
11940 ac_cr=`echo X | tr X '\015'`
11941 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11942 # But we know of no other shell where ac_cr would be empty at this
11943 # point, so we can use a bashism as a fallback.
11944 if test "x$ac_cr" = x; then
11945 eval ac_cr=\$\'\\r\'
11946 fi
11947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11949 ac_cs_awk_cr='\\r'
11950 else
11951 ac_cs_awk_cr=$ac_cr
11952 fi
11953
11954 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11955 _ACEOF
11956
11957
11958 {
11959 echo "cat >conf$$subs.awk <<_ACEOF" &&
11960 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11961 echo "_ACEOF"
11962 } >conf$$subs.sh ||
11963 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11964 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
11965 ac_delim='%!_!# '
11966 for ac_last_try in false false false false false :; do
11967 . ./conf$$subs.sh ||
11968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11969
11970 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
11971 if test $ac_delim_n = $ac_delim_num; then
11972 break
11973 elif $ac_last_try; then
11974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11975 else
11976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11977 fi
11978 done
11979 rm -f conf$$subs.sh
11980
11981 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
11982 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11983 _ACEOF
11984 sed -n '
11985 h
11986 s/^/S["/; s/!.*/"]=/
11987 p
11988 g
11989 s/^[^!]*!//
11990 :repl
11991 t repl
11992 s/'"$ac_delim"'$//
11993 t delim
11994 :nl
11995 h
11996 s/\(.\{148\}\)..*/\1/
11997 t more1
11998 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11999 p
12000 n
12001 b repl
12002 :more1
12003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12004 p
12005 g
12006 s/.\{148\}//
12007 t nl
12008 :delim
12009 h
12010 s/\(.\{148\}\)..*/\1/
12011 t more2
12012 s/["\\]/\\&/g; s/^/"/; s/$/"/
12013 p
12014 b
12015 :more2
12016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12017 p
12018 g
12019 s/.\{148\}//
12020 t delim
12021 ' <conf$$subs.awk | sed '
12022 /^[^""]/{
12023 N
12024 s/\n//
12025 }
12026 ' >>"$CONFIG_STATUS" || ac_write_fail=1
12027 rm -f conf$$subs.awk
12028 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12029 _ACAWK
12030 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12031 for (key in S) S_is_set[key] = 1
12032 FS = ""
12033
12034 }
12035 {
12036 line = $ 0
12037 nfields = split(line, field, "@")
12038 substed = 0
12039 len = length(field[1])
12040 for (i = 2; i < nfields; i++) {
12041 key = field[i]
12042 keylen = length(key)
12043 if (S_is_set[key]) {
12044 value = S[key]
12045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12046 len += length(value) + length(field[++i])
12047 substed = 1
12048 } else
12049 len += 1 + keylen
12050 }
12051
12052 print line
12053 }
12054
12055 _ACAWK
12056 _ACEOF
12057 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12058 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12060 else
12061 cat
12062 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12063 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12064 _ACEOF
12065
12066 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12067 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12068 # trailing colons and then remove the whole line if VPATH becomes empty
12069 # (actually we leave an empty line to preserve line numbers).
12070 if test "x$srcdir" = x.; then
12071 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12072 h
12073 s///
12074 s/^/:/
12075 s/[ ]*$/:/
12076 s/:\$(srcdir):/:/g
12077 s/:\${srcdir}:/:/g
12078 s/:@srcdir@:/:/g
12079 s/^:*//
12080 s/:*$//
12081 x
12082 s/\(=[ ]*\).*/\1/
12083 G
12084 s/\n//
12085 s/^[^=]*=[ ]*$//
12086 }'
12087 fi
12088
12089 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12090 fi # test -n "$CONFIG_FILES"
12091
12092 # Set up the scripts for CONFIG_HEADERS section.
12093 # No need to generate them if there are no CONFIG_HEADERS.
12094 # This happens for instance with './config.status Makefile'.
12095 if test -n "$CONFIG_HEADERS"; then
12096 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12097 BEGIN {
12098 _ACEOF
12099
12100 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12101 # here-document in config.status, that substitutes the proper values into
12102 # config.h.in to produce config.h.
12103
12104 # Create a delimiter string that does not exist in confdefs.h, to ease
12105 # handling of long lines.
12106 ac_delim='%!_!# '
12107 for ac_last_try in false false :; do
12108 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12109 if test -z "$ac_tt"; then
12110 break
12111 elif $ac_last_try; then
12112 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12113 else
12114 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12115 fi
12116 done
12117
12118 # For the awk script, D is an array of macro values keyed by name,
12119 # likewise P contains macro parameters if any. Preserve backslash
12120 # newline sequences.
12121
12122 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12123 sed -n '
12124 s/.\{148\}/&'"$ac_delim"'/g
12125 t rset
12126 :rset
12127 s/^[ ]*#[ ]*define[ ][ ]*/ /
12128 t def
12129 d
12130 :def
12131 s/\\$//
12132 t bsnl
12133 s/["\\]/\\&/g
12134 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12135 D["\1"]=" \3"/p
12136 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12137 d
12138 :bsnl
12139 s/["\\]/\\&/g
12140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12141 D["\1"]=" \3\\\\\\n"\\/p
12142 t cont
12143 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12144 t cont
12145 d
12146 :cont
12147 n
12148 s/.\{148\}/&'"$ac_delim"'/g
12149 t clear
12150 :clear
12151 s/\\$//
12152 t bsnlc
12153 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12154 d
12155 :bsnlc
12156 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12157 b cont
12158 ' <confdefs.h | sed '
12159 s/'"$ac_delim"'/"\\\
12160 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
12161
12162 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12163 for (key in D) D_is_set[key] = 1
12164 FS = ""
12165 }
12166 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12167 line = \$ 0
12168 split(line, arg, " ")
12169 if (arg[1] == "#") {
12170 defundef = arg[2]
12171 mac1 = arg[3]
12172 } else {
12173 defundef = substr(arg[1], 2)
12174 mac1 = arg[2]
12175 }
12176 split(mac1, mac2, "(") #)
12177 macro = mac2[1]
12178 prefix = substr(line, 1, index(line, defundef) - 1)
12179 if (D_is_set[macro]) {
12180 suffix = P[macro] D[macro]
12181 while (suffix ~ /[\t ]$/) {
12182 suffix = substr(suffix, 1, length(suffix) - 1)
12183 }
12184 # Preserve the white space surrounding the "#".
12185 print prefix "define", macro suffix
12186 next
12187 } else {
12188 # Replace #undef with comments. This is necessary, for example,
12189 # in the case of _POSIX_SOURCE, which is predefined and required
12190 # on some systems where configure will not decide to define it.
12191 if (defundef == "undef") {
12192 print "/*", prefix defundef, macro, "*/"
12193 next
12194 }
12195 }
12196 }
12197 { print }
12198 _ACAWK
12199 _ACEOF
12200 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12201 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12202 fi # test -n "$CONFIG_HEADERS"
12203
12204
12205 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12206 shift
12207 for ac_tag
12208 do
12209 case $ac_tag in
12210 :[FHLC]) ac_mode=$ac_tag; continue;;
12211 esac
12212 case $ac_mode$ac_tag in
12213 :[FHL]*:*);;
12214 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12215 :[FH]-) ac_tag=-:-;;
12216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12217 esac
12218 ac_save_IFS=$IFS
12219 IFS=:
12220 set x $ac_tag
12221 IFS=$ac_save_IFS
12222 shift
12223 ac_file=$1
12224 shift
12225
12226 case $ac_mode in
12227 :L) ac_source=$1;;
12228 :[FH])
12229 ac_file_inputs=
12230 for ac_f
12231 do
12232 case $ac_f in
12233 -) ac_f="$ac_tmp/stdin";;
12234 *) # Look for the file first in the build tree, then in the source tree
12235 # (if the path is not absolute). The absolute path cannot be DOS-style,
12236 # because $ac_f cannot contain ':'.
12237 test -f "$ac_f" ||
12238 case $ac_f in
12239 [\\/$]*) false;;
12240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12241 esac ||
12242 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12243 esac
12244 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12245 as_fn_append ac_file_inputs " '$ac_f'"
12246 done
12247
12248 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12249 # use $as_me), people would be surprised to read:
12250 # /* config.h. Generated by config.status. */
12251 configure_input='Generated from '`
12252 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12253 `' by configure.'
12254 if test x"$ac_file" != x-; then
12255 configure_input="$ac_file. $configure_input"
12256 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12257 printf '%s\n' "$as_me: creating $ac_file" >&6;}
12258 fi
12259 # Neutralize special characters interpreted by sed in replacement strings.
12260 case $configure_input in #(
12261 *\&* | *\|* | *\\* )
12262 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
12263 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12264 *) ac_sed_conf_input=$configure_input;;
12265 esac
12266
12267 case $ac_tag in
12268 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12270 esac
12271 ;;
12272 esac
12273
12274 ac_dir=`$as_dirname -- "$ac_file" ||
12275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12276 X"$ac_file" : 'X\(//\)[^/]' \| \
12277 X"$ac_file" : 'X\(//\)$' \| \
12278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12279 printf '%s\n' X"$ac_file" |
12280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12281 s//\1/
12282 q
12283 }
12284 /^X\(\/\/\)[^/].*/{
12285 s//\1/
12286 q
12287 }
12288 /^X\(\/\/\)$/{
12289 s//\1/
12290 q
12291 }
12292 /^X\(\/\).*/{
12293 s//\1/
12294 q
12295 }
12296 s/.*/./; q'`
12297 as_dir="$ac_dir"; as_fn_mkdir_p
12298 ac_builddir=.
12299
12300 case "$ac_dir" in
12301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12302 *)
12303 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
12304 # A ".." for each directory in $ac_dir_suffix.
12305 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12306 case $ac_top_builddir_sub in
12307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12309 esac ;;
12310 esac
12311 ac_abs_top_builddir=$ac_pwd
12312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12313 # for backward compatibility:
12314 ac_top_builddir=$ac_top_build_prefix
12315
12316 case $srcdir in
12317 .) # We are building in place.
12318 ac_srcdir=.
12319 ac_top_srcdir=$ac_top_builddir_sub
12320 ac_abs_top_srcdir=$ac_pwd ;;
12321 [\\/]* | ?:[\\/]* ) # Absolute name.
12322 ac_srcdir=$srcdir$ac_dir_suffix;
12323 ac_top_srcdir=$srcdir
12324 ac_abs_top_srcdir=$srcdir ;;
12325 *) # Relative name.
12326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12327 ac_top_srcdir=$ac_top_build_prefix$srcdir
12328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12329 esac
12330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12331
12332
12333 case $ac_mode in
12334 :F)
12335 #
12336 # CONFIG_FILE
12337 #
12338
12339 case $INSTALL in
12340 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12341 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12342 esac
12343 ac_MKDIR_P=$MKDIR_P
12344 case $MKDIR_P in
12345 [\\/$]* | ?:[\\/]* ) ;;
12346 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12347 esac
12348 _ACEOF
12349
12350 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12351 # If the template does not know about datarootdir, expand it.
12352 # FIXME: This hack should be removed a few years after 2.60.
12353 ac_datarootdir_hack=; ac_datarootdir_seen=
12354 ac_sed_dataroot='
12355 /datarootdir/ {
12356 p
12357 q
12358 }
12359 /@datadir@/p
12360 /@docdir@/p
12361 /@infodir@/p
12362 /@localedir@/p
12363 /@mandir@/p'
12364 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12365 *datarootdir*) ac_datarootdir_seen=yes;;
12366 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12368 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12369 _ACEOF
12370 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12371 ac_datarootdir_hack='
12372 s&@datadir@&$datadir&g
12373 s&@docdir@&$docdir&g
12374 s&@infodir@&$infodir&g
12375 s&@localedir@&$localedir&g
12376 s&@mandir@&$mandir&g
12377 s&\\\${datarootdir}&$datarootdir&g' ;;
12378 esac
12379 _ACEOF
12380
12381 # Neutralize VPATH when '$srcdir' = '.'.
12382 # Shell code in configure.ac might set extrasub.
12383 # FIXME: do we really want to maintain this feature?
12384 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12385 ac_sed_extra="$ac_vpsub
12386 $extrasub
12387 _ACEOF
12388 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12389 :t
12390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12391 s|@configure_input@|$ac_sed_conf_input|;t t
12392 s&@top_builddir@&$ac_top_builddir_sub&;t t
12393 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12394 s&@srcdir@&$ac_srcdir&;t t
12395 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12396 s&@top_srcdir@&$ac_top_srcdir&;t t
12397 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12398 s&@builddir@&$ac_builddir&;t t
12399 s&@abs_builddir@&$ac_abs_builddir&;t t
12400 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12401 s&@INSTALL@&$ac_INSTALL&;t t
12402 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12403 $ac_datarootdir_hack
12404 "
12405 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12406 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12407
12408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12409 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12411 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12413 which seems to be undefined. Please make sure it is defined" >&5
12414 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12415 which seems to be undefined. Please make sure it is defined" >&2;}
12416
12417 rm -f "$ac_tmp/stdin"
12418 case $ac_file in
12419 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12420 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12421 esac \
12422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12423 ;;
12424 :H)
12425 #
12426 # CONFIG_HEADER
12427 #
12428 if test x"$ac_file" != x-; then
12429 {
12430 printf '%s\n' "/* $configure_input */" >&1 \
12431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12432 } >"$ac_tmp/config.h" \
12433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12434 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12436 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
12437 else
12438 rm -f "$ac_file"
12439 mv "$ac_tmp/config.h" "$ac_file" \
12440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12441 fi
12442 else
12443 printf '%s\n' "/* $configure_input */" >&1 \
12444 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12445 || as_fn_error $? "could not create -" "$LINENO" 5
12446 fi
12447 # Compute "$ac_file"'s index in $config_headers.
12448 _am_arg="$ac_file"
12449 _am_stamp_count=1
12450 for _am_header in $config_headers :; do
12451 case $_am_header in
12452 $_am_arg | $_am_arg:* )
12453 break ;;
12454 * )
12455 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12456 esac
12457 done
12458 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12459 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12460 X"$_am_arg" : 'X\(//\)[^/]' \| \
12461 X"$_am_arg" : 'X\(//\)$' \| \
12462 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12463 printf '%s\n' X"$_am_arg" |
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12465 s//\1/
12466 q
12467 }
12468 /^X\(\/\/\)[^/].*/{
12469 s//\1/
12470 q
12471 }
12472 /^X\(\/\/\)$/{
12473 s//\1/
12474 q
12475 }
12476 /^X\(\/\).*/{
12477 s//\1/
12478 q
12479 }
12480 s/.*/./; q'`/stamp-h$_am_stamp_count
12481 ;;
12482
12483 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12484 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
12485 ;;
12486 esac
12487
12488
12489 case $ac_file$ac_mode in
12490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12491 # Older Autoconf quotes --file arguments for eval, but not when files
12492 # are listed without --file. Let's play safe and only enable the eval
12493 # if we detect the quoting.
12494 # TODO: see whether this extra hack can be removed once we start
12495 # requiring Autoconf 2.70 or later.
12496 case $CONFIG_FILES in #(
12497 *\'*) :
12498 eval set x "$CONFIG_FILES" ;; #(
12499 *) :
12500 set x $CONFIG_FILES ;; #(
12501 *) :
12502 ;;
12503 esac
12504 shift
12505 # Used to flag and report bootstrapping failures.
12506 am_rc=0
12507 for am_mf
12508 do
12509 # Strip MF so we end up with the name of the file.
12510 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
12511 # Check whether this is an Automake generated Makefile which includes
12512 # dependency-tracking related rules and includes.
12513 # Grep'ing the whole file directly is not great: AIX grep has a line
12514 # limit of 2048, but all sed's we know have understand at least 4000.
12515 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12516 || continue
12517 am_dirpart=`$as_dirname -- "$am_mf" ||
12518 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12519 X"$am_mf" : 'X\(//\)[^/]' \| \
12520 X"$am_mf" : 'X\(//\)$' \| \
12521 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12522 printf '%s\n' X"$am_mf" |
12523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\(\/\/\)[^/].*/{
12528 s//\1/
12529 q
12530 }
12531 /^X\(\/\/\)$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\).*/{
12536 s//\1/
12537 q
12538 }
12539 s/.*/./; q'`
12540 am_filepart=`$as_basename -- "$am_mf" ||
12541 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12542 X"$am_mf" : 'X\(//\)$' \| \
12543 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12544 printf '%s\n' X/"$am_mf" |
12545 sed '/^.*\/\([^/][^/]*\)\/*$/{
12546 s//\1/
12547 q
12548 }
12549 /^X\/\(\/\/\)$/{
12550 s//\1/
12551 q
12552 }
12553 /^X\/\(\/\).*/{
12554 s//\1/
12555 q
12556 }
12557 s/.*/./; q'`
12558 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12559 && sed -e '/# am--include-marker/d' "$am_filepart" \
12560 | $MAKE -f - am--depfiles" >&5
12561 (cd "$am_dirpart" \
12562 && sed -e '/# am--include-marker/d' "$am_filepart" \
12563 | $MAKE -f - am--depfiles) >&5 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } || am_rc=$?
12567 done
12568 if test $am_rc -ne 0; then
12569 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12570 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12571 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12572 for automatic dependency tracking. If GNU make was not used, consider
12573 re-running the configure script with MAKE=\"gmake\" (or whatever is
12574 necessary). You can also try re-running configure with the
12575 '--disable-dependency-tracking' option to at least be able to build
12576 the package (albeit without support for automatic dependency tracking).
12577 See 'config.log' for more details" "$LINENO" 5; }
12578 fi
12579 { am_dirpart=; unset am_dirpart;}
12580 { am_filepart=; unset am_filepart;}
12581 { am_mf=; unset am_mf;}
12582 { am_rc=; unset am_rc;}
12583 rm -f conftest-deps.mk
12584 }
12585 ;;
12586
12587 esac
12588 done # for ac_tag
12589
12590
12591 as_fn_exit 0
12592 _ACEOF
12593 ac_clean_CONFIG_STATUS=
12594
12595 test $ac_write_fail = 0 ||
12596 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12597
12598
12599 # configure is writing to config.log, and then calls config.status.
12600 # config.status does its own redirection, appending to config.log.
12601 # Unfortunately, on DOS this fails, as config.log is still kept open
12602 # by configure, so config.status won't be able to write to it; its
12603 # output is simply discarded. So we exec the FD to /dev/null,
12604 # effectively closing config.log, so it can be properly (re)opened and
12605 # appended to by config.status. When coming back to configure, we
12606 # need to make the FD available again.
12607 if test "$no_create" != yes; then
12608 ac_cs_success=:
12609 case $CONFIG_STATUS in #(
12610 -*) :
12611 ac_no_opts=-- ;; #(
12612 *) :
12613 ac_no_opts= ;;
12614 esac
12615 ac_config_status_args=
12616 test "$silent" = yes &&
12617 ac_config_status_args="$ac_config_status_args --quiet"
12618 exec 5>/dev/null
12619 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
12620 ac_cs_success=false
12621 exec 5>>config.log
12622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12623 # would make configure fail if this is the last instruction.
12624 $ac_cs_success || as_fn_exit 1
12625 fi
12626 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12628 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12629 fi
12630
12631