Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for ClamFS 1.3.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: [email protected] about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='ClamFS'
613 PACKAGE_TARNAME='clamfs'
614 PACKAGE_VERSION='1.3.0'
615 PACKAGE_STRING='ClamFS 1.3.0'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL=''
618
619 ac_unique_file="src/clamfs.cxx"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_cxx_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 FUSE38_LIBS
656 FUSE38_CFLAGS
657 FUSE3_LIBS
658 FUSE3_CFLAGS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 BOOST_LDFLAGS
663 BOOST_CPPFLAGS
664 LIBOBJS
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 EGREP
674 GREP
675 CXXCPP
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 ac_ct_CC
680 CFLAGS
681 CC
682 am__fastdepCXX_FALSE
683 am__fastdepCXX_TRUE
684 CXXDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CXX
694 CPPFLAGS
695 LDFLAGS
696 CXXFLAGS
697 CXX
698 DOT_GIT_FALSE
699 DOT_GIT_TRUE
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 CSCOPE
705 ETAGS
706 CTAGS
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 runstatedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL
769 am__quote'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_dependency_tracking
775 enable_fdpassing
776 with_boost
777 with_boost_libdir
778 enable_gcc_debug
779 enable_clang_flags
780 enable_dmalloc_debug
781 enable_gprof
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CXX
787 CXXFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CCC
792 CC
793 CFLAGS
794 CXXCPP
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 FUSE3_CFLAGS
799 FUSE3_LIBS
800 FUSE38_CFLAGS
801 FUSE38_LIBS'
802
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 runstatedir='${localstatedir}/run'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: \`$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: \`$ac_useropt'"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: \`$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: \`$ac_useropt'"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 printf "%s\n" X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures ClamFS 1.3.0 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/clamfs]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1405
1406 cat <<\_ACEOF
1407
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of ClamFS 1.3.0:";;
1422 esac
1423 cat <<\_ACEOF
1424
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --disable-fdpassing do not build file descriptor passing support
1436 --enable-gcc-debug enable GCC DEBUG code
1437 --enable-clang-flags enable CLANG flags
1438 --enable-dmalloc-debug enable dmalloc debug code
1439 --enable-gprof enable gprof support
1440
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-boost[=ARG] use Boost library from a standard location
1445 (ARG=yes), from the specified location (ARG=<path>),
1446 or disable it (ARG=no) [ARG=yes]
1447 --with-boost-libdir=LIB_DIR
1448 Force given directory for boost libraries. Note that
1449 this will override library path detection, so use
1450 this parameter only if default library detection
1451 fails and you know exactly where your boost
1452 libraries are located.
1453
1454 Some influential environment variables:
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 CXXCPP C++ preprocessor
1465 PKG_CONFIG path to pkg-config utility
1466 PKG_CONFIG_PATH
1467 directories to add to pkg-config's search path
1468 PKG_CONFIG_LIBDIR
1469 path overriding pkg-config's built-in search path
1470 FUSE3_CFLAGS
1471 C compiler flags for FUSE3, overriding pkg-config
1472 FUSE3_LIBS linker flags for FUSE3, overriding pkg-config
1473 FUSE38_CFLAGS
1474 C compiler flags for FUSE38, overriding pkg-config
1475 FUSE38_LIBS linker flags for FUSE38, overriding pkg-config
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <[email protected]>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for configure.gnu first; this name is used for a wrapper for
1527 # Metaconfig's "Configure" on case-insensitive file systems.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 ClamFS configure 1.3.0
1545 generated by GNU Autoconf 2.71
1546
1547 Copyright (C) 2021 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_cxx_try_compile LINENO
1559 # ----------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest.beam
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 printf "%s\n" "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_cxx_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext
1584 then :
1585 ac_retval=0
1586 else $as_nop
1587 printf "%s\n" "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_cxx_try_compile
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext
1623 then :
1624 ac_retval=0
1625 else $as_nop
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_cxx_try_link LINENO
1637 # -------------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_cxx_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_cxx_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else $as_nop
1668 printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_cxx_try_link
1682
1683 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1684 # ---------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_cxx_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 printf %s "checking for $2... " >&6; }
1692 if eval test \${$3+y}
1693 then :
1694 printf %s "(cached) " >&6
1695 else $as_nop
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_cxx_try_compile "$LINENO"
1702 then :
1703 eval "$3=yes"
1704 else $as_nop
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 printf "%s\n" "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_cxx_check_header_compile
1715
1716 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1717 # ---------------------------------------------
1718 # Tests whether TYPE exists after having included INCLUDES, setting cache
1719 # variable VAR accordingly.
1720 ac_fn_cxx_check_type ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 printf %s "checking for $2... " >&6; }
1725 if eval test \${$3+y}
1726 then :
1727 printf %s "(cached) " >&6
1728 else $as_nop
1729 eval "$3=no"
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 int
1734 main (void)
1735 {
1736 if (sizeof ($2))
1737 return 0;
1738 ;
1739 return 0;
1740 }
1741 _ACEOF
1742 if ac_fn_cxx_try_compile "$LINENO"
1743 then :
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 int
1748 main (void)
1749 {
1750 if (sizeof (($2)))
1751 return 0;
1752 ;
1753 return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_cxx_try_compile "$LINENO"
1757 then :
1758
1759 else $as_nop
1760 eval "$3=yes"
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1763 fi
1764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 printf "%s\n" "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_cxx_check_type
1772
1773 # ac_fn_cxx_try_cpp LINENO
1774 # ------------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_cpp ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 printf "%s\n" "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1796 test ! -s conftest.err
1797 }
1798 then :
1799 ac_retval=0
1800 else $as_nop
1801 printf "%s\n" "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_cxx_try_cpp
1810
1811 # ac_fn_cxx_try_run LINENO
1812 # ------------------------
1813 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1814 # executables *can* be run.
1815 ac_fn_cxx_try_run ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1826 ac_status=$?
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 printf "%s\n" "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1836 ac_status=$?
1837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }
1839 then :
1840 ac_retval=0
1841 else $as_nop
1842 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1843 printf "%s\n" "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=$ac_status
1847 fi
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_cxx_try_run
1853
1854 # ac_fn_cxx_check_func LINENO FUNC VAR
1855 # ------------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_cxx_check_func ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 printf %s "checking for $2... " >&6; }
1862 if eval test \${$3+y}
1863 then :
1864 printf %s "(cached) " >&6
1865 else $as_nop
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below. */
1874
1875 #include <limits.h>
1876 #undef $2
1877
1878 /* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1881 #ifdef __cplusplus
1882 extern "C"
1883 #endif
1884 char $2 ();
1885 /* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888 #if defined __stub_$2 || defined __stub___$2
1889 choke me
1890 #endif
1891
1892 int
1893 main (void)
1894 {
1895 return $2 ();
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_cxx_try_link "$LINENO"
1901 then :
1902 eval "$3=yes"
1903 else $as_nop
1904 eval "$3=no"
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1907 conftest$ac_exeext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 printf "%s\n" "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_cxx_check_func
1915 ac_configure_args_raw=
1916 for ac_arg
1917 do
1918 case $ac_arg in
1919 *\'*)
1920 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 esac
1922 as_fn_append ac_configure_args_raw " '$ac_arg'"
1923 done
1924
1925 case $ac_configure_args_raw in
1926 *$as_nl*)
1927 ac_safe_unquote= ;;
1928 *)
1929 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1930 ac_unsafe_a="$ac_unsafe_z#~"
1931 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1932 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1933 esac
1934
1935 cat >config.log <<_ACEOF
1936 This file contains any messages produced by compilers while
1937 running configure, to aid debugging if configure makes a mistake.
1938
1939 It was created by ClamFS $as_me 1.3.0, which was
1940 generated by GNU Autoconf 2.71. Invocation command line was
1941
1942 $ $0$ac_configure_args_raw
1943
1944 _ACEOF
1945 exec 5>>config.log
1946 {
1947 cat <<_ASUNAME
1948 ## --------- ##
1949 ## Platform. ##
1950 ## --------- ##
1951
1952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1960
1961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1968
1969 _ASUNAME
1970
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974 IFS=$as_save_IFS
1975 case $as_dir in #(((
1976 '') as_dir=./ ;;
1977 */) ;;
1978 *) as_dir=$as_dir/ ;;
1979 esac
1980 printf "%s\n" "PATH: $as_dir"
1981 done
1982 IFS=$as_save_IFS
1983
1984 } >&5
1985
1986 cat >&5 <<_ACEOF
1987
1988
1989 ## ----------- ##
1990 ## Core tests. ##
1991 ## ----------- ##
1992
1993 _ACEOF
1994
1995
1996 # Keep a trace of the command line.
1997 # Strip out --no-create and --no-recursion so they do not pile up.
1998 # Strip out --silent because we don't want to record it for future runs.
1999 # Also quote any args containing shell meta-characters.
2000 # Make two passes to allow for proper duplicate-argument suppression.
2001 ac_configure_args=
2002 ac_configure_args0=
2003 ac_configure_args1=
2004 ac_must_keep_next=false
2005 for ac_pass in 1 2
2006 do
2007 for ac_arg
2008 do
2009 case $ac_arg in
2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012 | -silent | --silent | --silen | --sile | --sil)
2013 continue ;;
2014 *\'*)
2015 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 esac
2017 case $ac_pass in
2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 2)
2020 as_fn_append ac_configure_args1 " '$ac_arg'"
2021 if test $ac_must_keep_next = true; then
2022 ac_must_keep_next=false # Got value, back to normal.
2023 else
2024 case $ac_arg in
2025 *=* | --config-cache | -C | -disable-* | --disable-* \
2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028 | -with-* | --with-* | -without-* | --without-* | --x)
2029 case "$ac_configure_args0 " in
2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031 esac
2032 ;;
2033 -* ) ac_must_keep_next=true ;;
2034 esac
2035 fi
2036 as_fn_append ac_configure_args " '$ac_arg'"
2037 ;;
2038 esac
2039 done
2040 done
2041 { ac_configure_args0=; unset ac_configure_args0;}
2042 { ac_configure_args1=; unset ac_configure_args1;}
2043
2044 # When interrupted or exit'd, cleanup temporary files, and complete
2045 # config.log. We remove comments because anyway the quotes in there
2046 # would cause problems or look ugly.
2047 # WARNING: Use '\'' to represent an apostrophe within the trap.
2048 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049 trap 'exit_status=$?
2050 # Sanitize IFS.
2051 IFS=" "" $as_nl"
2052 # Save into config.log some information that might help in debugging.
2053 {
2054 echo
2055
2056 printf "%s\n" "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059 echo
2060 # The following way of writing the cache mishandles newlines in values,
2061 (
2062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in #(
2065 *${as_nl}*)
2066 case $ac_var in #(
2067 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069 esac
2070 case $ac_var in #(
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2074 esac ;;
2075 esac
2076 done
2077 (set) 2>&1 |
2078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2080 sed -n \
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083 ;; #(
2084 *)
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086 ;;
2087 esac |
2088 sort
2089 )
2090 echo
2091
2092 printf "%s\n" "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095 echo
2096 for ac_var in $ac_subst_vars
2097 do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 printf "%s\n" "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2105
2106 if test -n "$ac_subst_files"; then
2107 printf "%s\n" "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110 echo
2111 for ac_var in $ac_subst_files
2112 do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 printf "%s\n" "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2120 fi
2121
2122 if test -s confdefs.h; then
2123 printf "%s\n" "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126 echo
2127 cat confdefs.h
2128 echo
2129 fi
2130 test "$ac_signal" != 0 &&
2131 printf "%s\n" "$as_me: caught signal $ac_signal"
2132 printf "%s\n" "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 printf "%s\n" "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2153
2154 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2159
2160 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2161
2162
2163 # Let the site file select an alternate cache file if it wants to.
2164 # Prefer an explicitly selected file to automatically selected ones.
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_files="$CONFIG_SITE"
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2169 else
2170 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2171 fi
2172
2173 for ac_site_file in $ac_site_files
2174 do
2175 case $ac_site_file in #(
2176 */*) :
2177 ;; #(
2178 *) :
2179 ac_site_file=./$ac_site_file ;;
2180 esac
2181 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2183 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2184 sed 's/^/| /' "$ac_site_file" >&5
2185 . "$ac_site_file" \
2186 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2188 as_fn_error $? "failed to load site script $ac_site_file
2189 See \`config.log' for more details" "$LINENO" 5; }
2190 fi
2191 done
2192
2193 if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special files
2195 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2196 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2199 case $cache_file in
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
2202 esac
2203 fi
2204 else
2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2207 >$cache_file
2208 fi
2209
2210 # Test code for whether the C++ compiler supports C++98 (global declarations)
2211 ac_cxx_conftest_cxx98_globals='
2212 // Does the compiler advertise C++98 conformance?
2213 #if !defined __cplusplus || __cplusplus < 199711L
2214 # error "Compiler does not advertise C++98 conformance"
2215 #endif
2216
2217 // These inclusions are to reject old compilers that
2218 // lack the unsuffixed header files.
2219 #include <cstdlib>
2220 #include <exception>
2221
2222 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2223 extern void assert (int);
2224 namespace std {
2225 extern int strcmp (const char *, const char *);
2226 }
2227
2228 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2229 using std::exception;
2230 using std::strcmp;
2231
2232 namespace {
2233
2234 void test_exception_syntax()
2235 {
2236 try {
2237 throw "test";
2238 } catch (const char *s) {
2239 // Extra parentheses suppress a warning when building autoconf itself,
2240 // due to lint rules shared with more typical C programs.
2241 assert (!(strcmp) (s, "test"));
2242 }
2243 }
2244
2245 template <typename T> struct test_template
2246 {
2247 T const val;
2248 explicit test_template(T t) : val(t) {}
2249 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2250 };
2251
2252 } // anonymous namespace
2253 '
2254
2255 # Test code for whether the C++ compiler supports C++98 (body of main)
2256 ac_cxx_conftest_cxx98_main='
2257 assert (argc);
2258 assert (! argv[0]);
2259 {
2260 test_exception_syntax ();
2261 test_template<double> tt (2.0);
2262 assert (tt.add (4) == 6.0);
2263 assert (true && !false);
2264 }
2265 '
2266
2267 # Test code for whether the C++ compiler supports C++11 (global declarations)
2268 ac_cxx_conftest_cxx11_globals='
2269 // Does the compiler advertise C++ 2011 conformance?
2270 #if !defined __cplusplus || __cplusplus < 201103L
2271 # error "Compiler does not advertise C++11 conformance"
2272 #endif
2273
2274 namespace cxx11test
2275 {
2276 constexpr int get_val() { return 20; }
2277
2278 struct testinit
2279 {
2280 int i;
2281 double d;
2282 };
2283
2284 class delegate
2285 {
2286 public:
2287 delegate(int n) : n(n) {}
2288 delegate(): delegate(2354) {}
2289
2290 virtual int getval() { return this->n; };
2291 protected:
2292 int n;
2293 };
2294
2295 class overridden : public delegate
2296 {
2297 public:
2298 overridden(int n): delegate(n) {}
2299 virtual int getval() override final { return this->n * 2; }
2300 };
2301
2302 class nocopy
2303 {
2304 public:
2305 nocopy(int i): i(i) {}
2306 nocopy() = default;
2307 nocopy(const nocopy&) = delete;
2308 nocopy & operator=(const nocopy&) = delete;
2309 private:
2310 int i;
2311 };
2312
2313 // for testing lambda expressions
2314 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2315 {
2316 return f(v);
2317 }
2318
2319 // for testing variadic templates and trailing return types
2320 template <typename V> auto sum(V first) -> V
2321 {
2322 return first;
2323 }
2324 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2325 {
2326 return first + sum(rest...);
2327 }
2328 }
2329 '
2330
2331 # Test code for whether the C++ compiler supports C++11 (body of main)
2332 ac_cxx_conftest_cxx11_main='
2333 {
2334 // Test auto and decltype
2335 auto a1 = 6538;
2336 auto a2 = 48573953.4;
2337 auto a3 = "String literal";
2338
2339 int total = 0;
2340 for (auto i = a3; *i; ++i) { total += *i; }
2341
2342 decltype(a2) a4 = 34895.034;
2343 }
2344 {
2345 // Test constexpr
2346 short sa[cxx11test::get_val()] = { 0 };
2347 }
2348 {
2349 // Test initializer lists
2350 cxx11test::testinit il = { 4323, 435234.23544 };
2351 }
2352 {
2353 // Test range-based for
2354 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2355 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2356 for (auto &x : array) { x += 23; }
2357 }
2358 {
2359 // Test lambda expressions
2360 using cxx11test::eval;
2361 assert (eval ([](int x) { return x*2; }, 21) == 42);
2362 double d = 2.0;
2363 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2364 assert (d == 5.0);
2365 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2366 assert (d == 5.0);
2367 }
2368 {
2369 // Test use of variadic templates
2370 using cxx11test::sum;
2371 auto a = sum(1);
2372 auto b = sum(1, 2);
2373 auto c = sum(1.0, 2.0, 3.0);
2374 }
2375 {
2376 // Test constructor delegation
2377 cxx11test::delegate d1;
2378 cxx11test::delegate d2();
2379 cxx11test::delegate d3(45);
2380 }
2381 {
2382 // Test override and final
2383 cxx11test::overridden o1(55464);
2384 }
2385 {
2386 // Test nullptr
2387 char *c = nullptr;
2388 }
2389 {
2390 // Test template brackets
2391 test_template<::test_template<int>> v(test_template<int>(12));
2392 }
2393 {
2394 // Unicode literals
2395 char const *utf8 = u8"UTF-8 string \u2500";
2396 char16_t const *utf16 = u"UTF-8 string \u2500";
2397 char32_t const *utf32 = U"UTF-32 string \u2500";
2398 }
2399 '
2400
2401 # Test code for whether the C compiler supports C++11 (complete).
2402 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2403 ${ac_cxx_conftest_cxx11_globals}
2404
2405 int
2406 main (int argc, char **argv)
2407 {
2408 int ok = 0;
2409 ${ac_cxx_conftest_cxx98_main}
2410 ${ac_cxx_conftest_cxx11_main}
2411 return ok;
2412 }
2413 "
2414
2415 # Test code for whether the C compiler supports C++98 (complete).
2416 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2417 int
2418 main (int argc, char **argv)
2419 {
2420 int ok = 0;
2421 ${ac_cxx_conftest_cxx98_main}
2422 return ok;
2423 }
2424 "
2425
2426 # Test code for whether the C compiler supports C89 (global declarations)
2427 ac_c_conftest_c89_globals='
2428 /* Does the compiler advertise C89 conformance?
2429 Do not test the value of __STDC__, because some compilers set it to 0
2430 while being otherwise adequately conformant. */
2431 #if !defined __STDC__
2432 # error "Compiler does not advertise C89 conformance"
2433 #endif
2434
2435 #include <stddef.h>
2436 #include <stdarg.h>
2437 struct stat;
2438 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2439 struct buf { int x; };
2440 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2441 static char *e (p, i)
2442 char **p;
2443 int i;
2444 {
2445 return p[i];
2446 }
2447 static char *f (char * (*g) (char **, int), char **p, ...)
2448 {
2449 char *s;
2450 va_list v;
2451 va_start (v,p);
2452 s = g (p, va_arg (v,int));
2453 va_end (v);
2454 return s;
2455 }
2456
2457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2458 function prototypes and stuff, but not \xHH hex character constants.
2459 These do not provoke an error unfortunately, instead are silently treated
2460 as an "x". The following induces an error, until -std is added to get
2461 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2462 array size at least. It is necessary to write \x00 == 0 to get something
2463 that is true only with -std. */
2464 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2465
2466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2467 inside strings and character constants. */
2468 #define FOO(x) '\''x'\''
2469 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2470
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2475 int, int);'
2476
2477 # Test code for whether the C compiler supports C89 (body of main).
2478 ac_c_conftest_c89_main='
2479 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2480 '
2481
2482 # Test code for whether the C compiler supports C99 (global declarations)
2483 ac_c_conftest_c99_globals='
2484 // Does the compiler advertise C99 conformance?
2485 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2486 # error "Compiler does not advertise C99 conformance"
2487 #endif
2488
2489 #include <stdbool.h>
2490 extern int puts (const char *);
2491 extern int printf (const char *, ...);
2492 extern int dprintf (int, const char *, ...);
2493 extern void *malloc (size_t);
2494
2495 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2496 // dprintf is used instead of fprintf to avoid needing to declare
2497 // FILE and stderr.
2498 #define debug(...) dprintf (2, __VA_ARGS__)
2499 #define showlist(...) puts (#__VA_ARGS__)
2500 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2501 static void
2502 test_varargs_macros (void)
2503 {
2504 int x = 1234;
2505 int y = 5678;
2506 debug ("Flag");
2507 debug ("X = %d\n", x);
2508 showlist (The first, second, and third items.);
2509 report (x>y, "x is %d but y is %d", x, y);
2510 }
2511
2512 // Check long long types.
2513 #define BIG64 18446744073709551615ull
2514 #define BIG32 4294967295ul
2515 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2516 #if !BIG_OK
2517 #error "your preprocessor is broken"
2518 #endif
2519 #if BIG_OK
2520 #else
2521 #error "your preprocessor is broken"
2522 #endif
2523 static long long int bignum = -9223372036854775807LL;
2524 static unsigned long long int ubignum = BIG64;
2525
2526 struct incomplete_array
2527 {
2528 int datasize;
2529 double data[];
2530 };
2531
2532 struct named_init {
2533 int number;
2534 const wchar_t *name;
2535 double average;
2536 };
2537
2538 typedef const char *ccp;
2539
2540 static inline int
2541 test_restrict (ccp restrict text)
2542 {
2543 // See if C++-style comments work.
2544 // Iterate through items via the restricted pointer.
2545 // Also check for declarations in for loops.
2546 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2547 continue;
2548 return 0;
2549 }
2550
2551 // Check varargs and va_copy.
2552 static bool
2553 test_varargs (const char *format, ...)
2554 {
2555 va_list args;
2556 va_start (args, format);
2557 va_list args_copy;
2558 va_copy (args_copy, args);
2559
2560 const char *str = "";
2561 int number = 0;
2562 float fnumber = 0;
2563
2564 while (*format)
2565 {
2566 switch (*format++)
2567 {
2568 case '\''s'\'': // string
2569 str = va_arg (args_copy, const char *);
2570 break;
2571 case '\''d'\'': // int
2572 number = va_arg (args_copy, int);
2573 break;
2574 case '\''f'\'': // float
2575 fnumber = va_arg (args_copy, double);
2576 break;
2577 default:
2578 break;
2579 }
2580 }
2581 va_end (args_copy);
2582 va_end (args);
2583
2584 return *str && number && fnumber;
2585 }
2586 '
2587
2588 # Test code for whether the C compiler supports C99 (body of main).
2589 ac_c_conftest_c99_main='
2590 // Check bool.
2591 _Bool success = false;
2592 success |= (argc != 0);
2593
2594 // Check restrict.
2595 if (test_restrict ("String literal") == 0)
2596 success = true;
2597 char *restrict newvar = "Another string";
2598
2599 // Check varargs.
2600 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2601 test_varargs_macros ();
2602
2603 // Check flexible array members.
2604 struct incomplete_array *ia =
2605 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2606 ia->datasize = 10;
2607 for (int i = 0; i < ia->datasize; ++i)
2608 ia->data[i] = i * 1.234;
2609
2610 // Check named initializers.
2611 struct named_init ni = {
2612 .number = 34,
2613 .name = L"Test wide string",
2614 .average = 543.34343,
2615 };
2616
2617 ni.number = 58;
2618
2619 int dynamic_array[ni.number];
2620 dynamic_array[0] = argv[0][0];
2621 dynamic_array[ni.number - 1] = 543;
2622
2623 // work around unused variable warnings
2624 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2625 || dynamic_array[ni.number - 1] != 543);
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (global declarations)
2629 ac_c_conftest_c11_globals='
2630 // Does the compiler advertise C11 conformance?
2631 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2632 # error "Compiler does not advertise C11 conformance"
2633 #endif
2634
2635 // Check _Alignas.
2636 char _Alignas (double) aligned_as_double;
2637 char _Alignas (0) no_special_alignment;
2638 extern char aligned_as_int;
2639 char _Alignas (0) _Alignas (int) aligned_as_int;
2640
2641 // Check _Alignof.
2642 enum
2643 {
2644 int_alignment = _Alignof (int),
2645 int_array_alignment = _Alignof (int[100]),
2646 char_alignment = _Alignof (char)
2647 };
2648 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2649
2650 // Check _Noreturn.
2651 int _Noreturn does_not_return (void) { for (;;) continue; }
2652
2653 // Check _Static_assert.
2654 struct test_static_assert
2655 {
2656 int x;
2657 _Static_assert (sizeof (int) <= sizeof (long int),
2658 "_Static_assert does not work in struct");
2659 long int y;
2660 };
2661
2662 // Check UTF-8 literals.
2663 #define u8 syntax error!
2664 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2665
2666 // Check duplicate typedefs.
2667 typedef long *long_ptr;
2668 typedef long int *long_ptr;
2669 typedef long_ptr long_ptr;
2670
2671 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2672 struct anonymous
2673 {
2674 union {
2675 struct { int i; int j; };
2676 struct { int k; long int l; } w;
2677 };
2678 int m;
2679 } v1;
2680 '
2681
2682 # Test code for whether the C compiler supports C11 (body of main).
2683 ac_c_conftest_c11_main='
2684 _Static_assert ((offsetof (struct anonymous, i)
2685 == offsetof (struct anonymous, w.k)),
2686 "Anonymous union alignment botch");
2687 v1.i = 2;
2688 v1.w.k = 5;
2689 ok |= v1.i != 5;
2690 '
2691
2692 # Test code for whether the C compiler supports C11 (complete).
2693 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2694 ${ac_c_conftest_c99_globals}
2695 ${ac_c_conftest_c11_globals}
2696
2697 int
2698 main (int argc, char **argv)
2699 {
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 ${ac_c_conftest_c99_main}
2703 ${ac_c_conftest_c11_main}
2704 return ok;
2705 }
2706 "
2707
2708 # Test code for whether the C compiler supports C99 (complete).
2709 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2710 ${ac_c_conftest_c99_globals}
2711
2712 int
2713 main (int argc, char **argv)
2714 {
2715 int ok = 0;
2716 ${ac_c_conftest_c89_main}
2717 ${ac_c_conftest_c99_main}
2718 return ok;
2719 }
2720 "
2721
2722 # Test code for whether the C compiler supports C89 (complete).
2723 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2724
2725 int
2726 main (int argc, char **argv)
2727 {
2728 int ok = 0;
2729 ${ac_c_conftest_c89_main}
2730 return ok;
2731 }
2732 "
2733
2734 as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
2735 as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2736 as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
2737 as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2738 as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
2739 as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
2740 as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2741 as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2742 as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
2743 as_fn_append ac_header_cxx_list " utime.h utime_h HAVE_UTIME_H"
2744
2745 # Auxiliary files required by this configure script.
2746 ac_aux_files="config.guess config.sub compile missing install-sh"
2747
2748 # Locations in which to look for auxiliary files.
2749 ac_aux_dir_candidates="${srcdir}/build"
2750
2751 # Search for a directory containing all of the required auxiliary files,
2752 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2753 # If we don't find one directory that contains all the files we need,
2754 # we report the set of missing files from the *first* directory in
2755 # $ac_aux_dir_candidates and give up.
2756 ac_missing_aux_files=""
2757 ac_first_candidate=:
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 as_found=false
2761 for as_dir in $ac_aux_dir_candidates
2762 do
2763 IFS=$as_save_IFS
2764 case $as_dir in #(((
2765 '') as_dir=./ ;;
2766 */) ;;
2767 *) as_dir=$as_dir/ ;;
2768 esac
2769 as_found=:
2770
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2772 ac_aux_dir_found=yes
2773 ac_install_sh=
2774 for ac_aux in $ac_aux_files
2775 do
2776 # As a special case, if "install-sh" is required, that requirement
2777 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2778 # and $ac_install_sh is set appropriately for whichever one is found.
2779 if test x"$ac_aux" = x"install-sh"
2780 then
2781 if test -f "${as_dir}install-sh"; then
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2783 ac_install_sh="${as_dir}install-sh -c"
2784 elif test -f "${as_dir}install.sh"; then
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2786 ac_install_sh="${as_dir}install.sh -c"
2787 elif test -f "${as_dir}shtool"; then
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2789 ac_install_sh="${as_dir}shtool install -c"
2790 else
2791 ac_aux_dir_found=no
2792 if $ac_first_candidate; then
2793 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2794 else
2795 break
2796 fi
2797 fi
2798 else
2799 if test -f "${as_dir}${ac_aux}"; then
2800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2801 else
2802 ac_aux_dir_found=no
2803 if $ac_first_candidate; then
2804 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2805 else
2806 break
2807 fi
2808 fi
2809 fi
2810 done
2811 if test "$ac_aux_dir_found" = yes; then
2812 ac_aux_dir="$as_dir"
2813 break
2814 fi
2815 ac_first_candidate=false
2816
2817 as_found=false
2818 done
2819 IFS=$as_save_IFS
2820 if $as_found
2821 then :
2822
2823 else $as_nop
2824 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2825 fi
2826
2827
2828 # These three variables are undocumented and unsupported,
2829 # and are intended to be withdrawn in a future Autoconf release.
2830 # They can cause serious problems if a builder's source tree is in a directory
2831 # whose full name contains unusual characters.
2832 if test -f "${ac_aux_dir}config.guess"; then
2833 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2834 fi
2835 if test -f "${ac_aux_dir}config.sub"; then
2836 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2837 fi
2838 if test -f "$ac_aux_dir/configure"; then
2839 ac_configure="$SHELL ${ac_aux_dir}configure"
2840 fi
2841
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847 eval ac_new_set=\$ac_env_${ac_var}_set
2848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849 eval ac_new_val=\$ac_env_${ac_var}_value
2850 case $ac_old_set,$ac_new_set in
2851 set,)
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2855 ,set)
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2859 ,);;
2860 *)
2861 if test "x$ac_old_val" != "x$ac_new_val"; then
2862 # differences in whitespace do not lead to failure.
2863 ac_old_val_w=`echo x $ac_old_val`
2864 ac_new_val_w=`echo x $ac_new_val`
2865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868 ac_cache_corrupted=:
2869 else
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872 eval $ac_var=\$ac_old_val
2873 fi
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2875 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2877 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2878 fi;;
2879 esac
2880 # Pass precious variables to config.status.
2881 if test "$ac_new_set" = set; then
2882 case $ac_new_val in
2883 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 *) ac_arg=$ac_var=$ac_new_val ;;
2885 esac
2886 case " $ac_configure_args " in
2887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2888 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889 esac
2890 fi
2891 done
2892 if $ac_cache_corrupted; then
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2897 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2898 and start over" "$LINENO" 5
2899 fi
2900 ## -------------------- ##
2901 ## Main body of script. ##
2902 ## -------------------- ##
2903
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909
2910
2911
2912
2913 ac_config_headers="$ac_config_headers config.h"
2914
2915
2916 am__api_version='1.16'
2917
2918
2919
2920 # Find a good install program. We prefer a C program (faster),
2921 # so one script is as good as another. But avoid the broken or
2922 # incompatible versions:
2923 # SysV /etc/install, /usr/sbin/install
2924 # SunOS /usr/etc/install
2925 # IRIX /sbin/install
2926 # AIX /bin/install
2927 # AmigaOS /C/install, which installs bootblocks on floppy discs
2928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931 # OS/2's system install, which has a completely different semantic
2932 # ./install, which can be erroneously created by make from ./install.sh.
2933 # Reject install programs that cannot install multiple files.
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935 printf %s "checking for a BSD-compatible install... " >&6; }
2936 if test -z "$INSTALL"; then
2937 if test ${ac_cv_path_install+y}
2938 then :
2939 printf %s "(cached) " >&6
2940 else $as_nop
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 case $as_dir in #(((
2946 '') as_dir=./ ;;
2947 */) ;;
2948 *) as_dir=$as_dir/ ;;
2949 esac
2950 # Account for fact that we put trailing slashes in our PATH walk.
2951 case $as_dir in #((
2952 ./ | /[cC]/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2955 /usr/ucb/* ) ;;
2956 *)
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2959 # by default.
2960 for ac_prog in ginstall scoinst install; do
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2963 if test $ac_prog = install &&
2964 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2966 :
2967 elif test $ac_prog = install &&
2968 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2970 :
2971 else
2972 rm -rf conftest.one conftest.two conftest.dir
2973 echo one > conftest.one
2974 echo two > conftest.two
2975 mkdir conftest.dir
2976 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2977 test -s conftest.one && test -s conftest.two &&
2978 test -s conftest.dir/conftest.one &&
2979 test -s conftest.dir/conftest.two
2980 then
2981 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2982 break 3
2983 fi
2984 fi
2985 fi
2986 done
2987 done
2988 ;;
2989 esac
2990
2991 done
2992 IFS=$as_save_IFS
2993
2994 rm -rf conftest.one conftest.two conftest.dir
2995
2996 fi
2997 if test ${ac_cv_path_install+y}; then
2998 INSTALL=$ac_cv_path_install
2999 else
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for INSTALL within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 INSTALL=$ac_install_sh
3005 fi
3006 fi
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3008 printf "%s\n" "$INSTALL" >&6; }
3009
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3013
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3015
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3017
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3019 printf %s "checking whether build environment is sane... " >&6; }
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3022 am_lf='
3023 '
3024 case `pwd` in
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3027 esac
3028 case $srcdir in
3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3031 esac
3032
3033 # Do 'set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3037 # directory).
3038 if (
3039 am_has_slept=no
3040 for am_try in 1 2; do
3041 echo "timestamp, slept: $am_has_slept" > conftest.file
3042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3043 if test "$*" = "X"; then
3044 # -L didn't work.
3045 set X `ls -t "$srcdir/configure" conftest.file`
3046 fi
3047 if test "$*" != "X $srcdir/configure conftest.file" \
3048 && test "$*" != "X conftest.file $srcdir/configure"; then
3049
3050 # If neither matched, then we have a broken ls. This can happen
3051 # if, for instance, CONFIG_SHELL is bash and it inherits a
3052 # broken ls alias from the environment. This has actually
3053 # happened. Such a system could not be considered "sane".
3054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3055 alias in your environment" "$LINENO" 5
3056 fi
3057 if test "$2" = conftest.file || test $am_try -eq 2; then
3058 break
3059 fi
3060 # Just in case.
3061 sleep 1
3062 am_has_slept=yes
3063 done
3064 test "$2" = conftest.file
3065 )
3066 then
3067 # Ok.
3068 :
3069 else
3070 as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3072 fi
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 printf "%s\n" "yes" >&6; }
3075 # If we didn't sleep, we still need to ensure time stamps of config.status and
3076 # generated files are strictly newer.
3077 am_sleep_pid=
3078 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3079 ( sleep 1 ) &
3080 am_sleep_pid=$!
3081 fi
3082
3083 rm -f conftest.file
3084
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3094
3095
3096 # Expand $ac_aux_dir to an absolute path.
3097 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3098
3099
3100 if test x"${MISSING+set}" != xset; then
3101 MISSING="\${SHELL} '$am_aux_dir/missing'"
3102 fi
3103 # Use eval to expand $SHELL
3104 if eval "$MISSING --is-lightweight"; then
3105 am_missing_run="$MISSING "
3106 else
3107 am_missing_run=
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3109 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 fi
3111
3112 if test x"${install_sh+set}" != xset; then
3113 case $am_aux_dir in
3114 *\ * | *\ *)
3115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 *)
3117 install_sh="\${SHELL} $am_aux_dir/install-sh"
3118 esac
3119 fi
3120
3121 # Installed binaries are usually stripped using 'strip' when the user
3122 # run "make install-strip". However 'strip' might not be the right
3123 # tool to use in cross-compilation environments, therefore Automake
3124 # will honor the 'STRIP' environment variable to overrule this program.
3125 if test "$cross_compiling" != no; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}strip; ac_word=$2
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 printf %s "checking for $ac_word... " >&6; }
3131 if test ${ac_cv_prog_STRIP+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if test -n "$STRIP"; then
3136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 case $as_dir in #(((
3143 '') as_dir=./ ;;
3144 */) ;;
3145 *) as_dir=$as_dir/ ;;
3146 esac
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 printf "%s\n" "$STRIP" >&6; }
3163 else
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 printf "%s\n" "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; ac_word=$2
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 printf %s "checking for $ac_word... " >&6; }
3176 if test ${ac_cv_prog_ac_ct_STRIP+y}
3177 then :
3178 printf %s "(cached) " >&6
3179 else $as_nop
3180 if test -n "$ac_ct_STRIP"; then
3181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 case $as_dir in #(((
3188 '') as_dir=./ ;;
3189 */) ;;
3190 *) as_dir=$as_dir/ ;;
3191 esac
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 printf "%s\n" "$ac_ct_STRIP" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213 if test "x$ac_ct_STRIP" = x; then
3214 STRIP=":"
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 STRIP=$ac_ct_STRIP
3223 fi
3224 else
3225 STRIP="$ac_cv_prog_STRIP"
3226 fi
3227
3228 fi
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3230
3231
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3233 printf %s "checking for a race-free mkdir -p... " >&6; }
3234 if test -z "$MKDIR_P"; then
3235 if test ${ac_cv_path_mkdir+y}
3236 then :
3237 printf %s "(cached) " >&6
3238 else $as_nop
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3241 do
3242 IFS=$as_save_IFS
3243 case $as_dir in #(((
3244 '') as_dir=./ ;;
3245 */) ;;
3246 *) as_dir=$as_dir/ ;;
3247 esac
3248 for ac_prog in mkdir gmkdir; do
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3251 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3252 'mkdir ('*'coreutils) '* | \
3253 'BusyBox '* | \
3254 'mkdir (fileutils) '4.1*)
3255 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3256 break 3;;
3257 esac
3258 done
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264
3265 test -d ./--version && rmdir ./--version
3266 if test ${ac_cv_path_mkdir+y}; then
3267 MKDIR_P="$ac_cv_path_mkdir -p"
3268 else
3269 # As a last resort, use the slow shell script. Don't cache a
3270 # value for MKDIR_P within a source directory, because that will
3271 # break other packages using the cache if that directory is
3272 # removed, or if the value is a relative name.
3273 MKDIR_P="$ac_install_sh -d"
3274 fi
3275 fi
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3277 printf "%s\n" "$MKDIR_P" >&6; }
3278
3279 for ac_prog in gawk mawk nawk awk
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 printf %s "checking for $ac_word... " >&6; }
3285 if test ${ac_cv_prog_AWK+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else $as_nop
3289 if test -n "$AWK"; then
3290 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 case $as_dir in #(((
3297 '') as_dir=./ ;;
3298 */) ;;
3299 *) as_dir=$as_dir/ ;;
3300 esac
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_AWK="$ac_prog"
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 AWK=$ac_cv_prog_AWK
3314 if test -n "$AWK"; then
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3316 printf "%s\n" "$AWK" >&6; }
3317 else
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 printf "%s\n" "no" >&6; }
3320 fi
3321
3322
3323 test -n "$AWK" && break
3324 done
3325
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3327 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3328 set x ${MAKE-make}
3329 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3330 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3331 then :
3332 printf %s "(cached) " >&6
3333 else $as_nop
3334 cat >conftest.make <<\_ACEOF
3335 SHELL = /bin/sh
3336 all:
3337 @echo '@@@%%%=$(MAKE)=@@@%%%'
3338 _ACEOF
3339 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3341 *@@@%%%=?*=@@@%%%*)
3342 eval ac_cv_prog_make_${ac_make}_set=yes;;
3343 *)
3344 eval ac_cv_prog_make_${ac_make}_set=no;;
3345 esac
3346 rm -f conftest.make
3347 fi
3348 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 printf "%s\n" "yes" >&6; }
3351 SET_MAKE=
3352 else
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 printf "%s\n" "no" >&6; }
3355 SET_MAKE="MAKE=${MAKE-make}"
3356 fi
3357
3358 rm -rf .tst 2>/dev/null
3359 mkdir .tst 2>/dev/null
3360 if test -d .tst; then
3361 am__leading_dot=.
3362 else
3363 am__leading_dot=_
3364 fi
3365 rmdir .tst 2>/dev/null
3366
3367 # Check whether --enable-silent-rules was given.
3368 if test ${enable_silent_rules+y}
3369 then :
3370 enableval=$enable_silent_rules;
3371 fi
3372
3373 case $enable_silent_rules in # (((
3374 yes) AM_DEFAULT_VERBOSITY=0;;
3375 no) AM_DEFAULT_VERBOSITY=1;;
3376 *) AM_DEFAULT_VERBOSITY=1;;
3377 esac
3378 am_make=${MAKE-make}
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3380 printf %s "checking whether $am_make supports nested variables... " >&6; }
3381 if test ${am_cv_make_support_nested_variables+y}
3382 then :
3383 printf %s "(cached) " >&6
3384 else $as_nop
3385 if printf "%s\n" 'TRUE=$(BAR$(V))
3386 BAR0=false
3387 BAR1=true
3388 V=1
3389 am__doit:
3390 @$(TRUE)
3391 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3392 am_cv_make_support_nested_variables=yes
3393 else
3394 am_cv_make_support_nested_variables=no
3395 fi
3396 fi
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3398 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3399 if test $am_cv_make_support_nested_variables = yes; then
3400 AM_V='$(V)'
3401 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3402 else
3403 AM_V=$AM_DEFAULT_VERBOSITY
3404 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3405 fi
3406 AM_BACKSLASH='\'
3407
3408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3409 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3410 # is not polluted with repeated "-I."
3411 am__isrc=' -I$(srcdir)'
3412 # test to see if srcdir already configured
3413 if test -f $srcdir/config.status; then
3414 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3415 fi
3416 fi
3417
3418 # test whether we have cygpath
3419 if test -z "$CYGPATH_W"; then
3420 if (cygpath --version) >/dev/null 2>/dev/null; then
3421 CYGPATH_W='cygpath -w'
3422 else
3423 CYGPATH_W=echo
3424 fi
3425 fi
3426
3427
3428 # Define the identity of the package.
3429 PACKAGE='clamfs'
3430 VERSION='1.3.0'
3431
3432
3433 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3434
3435
3436 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3437
3438 # Some tools Automake needs.
3439
3440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3441
3442
3443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3444
3445
3446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3447
3448
3449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3450
3451
3452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3453
3454 # For better backward compatibility. To be removed once Automake 1.9.x
3455 # dies out for good. For more background, see:
3456 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3457 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3458 mkdir_p='$(MKDIR_P)'
3459
3460 # We need awk for the "check" target (and possibly the TAP driver). The
3461 # system "awk" is bad on some platforms.
3462 # Always define AMTAR for backward compatibility. Yes, it's still used
3463 # in the wild :-( We should find a proper way to deprecate it ...
3464 AMTAR='$${TAR-tar}'
3465
3466
3467 # We'll loop over all known methods to create a tar archive until one works.
3468 _am_tools='gnutar pax cpio none'
3469
3470 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3471
3472
3473
3474
3475
3476 # Variables for tags utilities; see am/tags.am
3477 if test -z "$CTAGS"; then
3478 CTAGS=ctags
3479 fi
3480
3481 if test -z "$ETAGS"; then
3482 ETAGS=etags
3483 fi
3484
3485 if test -z "$CSCOPE"; then
3486 CSCOPE=cscope
3487 fi
3488
3489
3490
3491 # POSIX will say in a future version that running "rm -f" with no argument
3492 # is OK; and we want to be able to make that assumption in our Makefile
3493 # recipes. So use an aggressive probe to check that the usage we want is
3494 # actually supported "in the wild" to an acceptable degree.
3495 # See automake bug#10828.
3496 # To make any issue more visible, cause the running configure to be aborted
3497 # by default if the 'rm' program in use doesn't match our expectations; the
3498 # user can still override this though.
3499 if rm -f && rm -fr && rm -rf; then : OK; else
3500 cat >&2 <<'END'
3501 Oops!
3502
3503 Your 'rm' program seems unable to run without file operands specified
3504 on the command line, even when the '-f' option is present. This is contrary
3505 to the behaviour of most rm programs out there, and not conforming with
3506 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3507
3508 Please tell [email protected] about your system, including the value
3509 of your $PATH and any error possibly output before this message. This
3510 can help us improve future automake versions.
3511
3512 END
3513 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3514 echo 'Configuration will proceed anyway, since you have set the' >&2
3515 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3516 echo >&2
3517 else
3518 cat >&2 <<'END'
3519 Aborting the configuration process, to ensure you take notice of the issue.
3520
3521 You can download and install GNU coreutils to get an 'rm' implementation
3522 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3523
3524 If you want to complete the configuration process using your problematic
3525 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3526 to "yes", and re-run configure.
3527
3528 END
3529 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3530 fi
3531 fi
3532
3533 if test -d .git; then
3534 DOT_GIT_TRUE=
3535 DOT_GIT_FALSE='#'
3536 else
3537 DOT_GIT_TRUE='#'
3538 DOT_GIT_FALSE=
3539 fi
3540
3541
3542 # Checks for programs
3543
3544
3545
3546
3547
3548
3549 ac_ext=cpp
3550 ac_cpp='$CXXCPP $CPPFLAGS'
3551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554 if test -z "$CXX"; then
3555 if test -n "$CCC"; then
3556 CXX=$CCC
3557 else
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3560 do
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 printf %s "checking for $ac_word... " >&6; }
3565 if test ${ac_cv_prog_CXX+y}
3566 then :
3567 printf %s "(cached) " >&6
3568 else $as_nop
3569 if test -n "$CXX"; then
3570 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 case $as_dir in #(((
3577 '') as_dir=./ ;;
3578 */) ;;
3579 *) as_dir=$as_dir/ ;;
3580 esac
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CXX=$ac_cv_prog_CXX
3594 if test -n "$CXX"; then
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3596 printf "%s\n" "$CXX" >&6; }
3597 else
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 printf "%s\n" "no" >&6; }
3600 fi
3601
3602
3603 test -n "$CXX" && break
3604 done
3605 fi
3606 if test -z "$CXX"; then
3607 ac_ct_CXX=$CXX
3608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3609 do
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 printf %s "checking for $ac_word... " >&6; }
3614 if test ${ac_cv_prog_ac_ct_CXX+y}
3615 then :
3616 printf %s "(cached) " >&6
3617 else $as_nop
3618 if test -n "$ac_ct_CXX"; then
3619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624 IFS=$as_save_IFS
3625 case $as_dir in #(((
3626 '') as_dir=./ ;;
3627 */) ;;
3628 *) as_dir=$as_dir/ ;;
3629 esac
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CXX="$ac_prog"
3633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3643 if test -n "$ac_ct_CXX"; then
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3645 printf "%s\n" "$ac_ct_CXX" >&6; }
3646 else
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 printf "%s\n" "no" >&6; }
3649 fi
3650
3651
3652 test -n "$ac_ct_CXX" && break
3653 done
3654
3655 if test "x$ac_ct_CXX" = x; then
3656 CXX="g++"
3657 else
3658 case $cross_compiling:$ac_tool_warned in
3659 yes:)
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3662 ac_tool_warned=yes ;;
3663 esac
3664 CXX=$ac_ct_CXX
3665 fi
3666 fi
3667
3668 fi
3669 fi
3670 # Provide some information about the compiler.
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3672 set X $ac_compile
3673 ac_compiler=$2
3674 for ac_option in --version -v -V -qversion; do
3675 { { ac_try="$ac_compiler $ac_option >&5"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 printf "%s\n" "$ac_try_echo"; } >&5
3682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3683 ac_status=$?
3684 if test -s conftest.err; then
3685 sed '10a\
3686 ... rest of stderr output deleted ...
3687 10q' conftest.err >conftest.er1
3688 cat conftest.er1 >&5
3689 fi
3690 rm -f conftest.er1 conftest.err
3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }
3693 done
3694
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main (void)
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 ac_clean_files_save=$ac_clean_files
3707 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3708 # Try to create an executable without -o first, disregard a.out.
3709 # It will help us diagnose broken compilers, and finding out an intuition
3710 # of exeext.
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3712 printf %s "checking whether the C++ compiler works... " >&6; }
3713 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3714
3715 # The possible output files:
3716 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3717
3718 ac_rmfiles=
3719 for ac_file in $ac_files
3720 do
3721 case $ac_file in
3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3724 esac
3725 done
3726 rm -f $ac_rmfiles
3727
3728 if { { ac_try="$ac_link_default"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 printf "%s\n" "$ac_try_echo"; } >&5
3735 (eval "$ac_link_default") 2>&5
3736 ac_status=$?
3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739 then :
3740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3743 # so that the user can short-circuit this test for compilers unknown to
3744 # Autoconf.
3745 for ac_file in $ac_files ''
3746 do
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3750 ;;
3751 [ab].out )
3752 # We found the default executable, but exeext='' is most
3753 # certainly right.
3754 break;;
3755 *.* )
3756 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3757 then :; else
3758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3759 fi
3760 # We set ac_cv_exeext here because the later test for it is not
3761 # safe: cross compilers may not add the suffix if given an `-o'
3762 # argument, so we may need to know it at that point already.
3763 # Even if this section looks crufty: it has the advantage of
3764 # actually working.
3765 break;;
3766 * )
3767 break;;
3768 esac
3769 done
3770 test "$ac_cv_exeext" = no && ac_cv_exeext=
3771
3772 else $as_nop
3773 ac_file=''
3774 fi
3775 if test -z "$ac_file"
3776 then :
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 printf "%s\n" "no" >&6; }
3779 printf "%s\n" "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error 77 "C++ compiler cannot create executables
3785 See \`config.log' for more details" "$LINENO" 5; }
3786 else $as_nop
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 printf "%s\n" "yes" >&6; }
3789 fi
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3791 printf %s "checking for C++ compiler default output file name... " >&6; }
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 printf "%s\n" "$ac_file" >&6; }
3794 ac_exeext=$ac_cv_exeext
3795
3796 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3797 ac_clean_files=$ac_clean_files_save
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3799 printf %s "checking for suffix of executables... " >&6; }
3800 if { { ac_try="$ac_link"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 printf "%s\n" "$ac_try_echo"; } >&5
3807 (eval "$ac_link") 2>&5
3808 ac_status=$?
3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 then :
3812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3813 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3814 # work properly (i.e., refer to `conftest.exe'), while it won't with
3815 # `rm'.
3816 for ac_file in conftest.exe conftest conftest.*; do
3817 test -f "$ac_file" || continue
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3821 break;;
3822 * ) break;;
3823 esac
3824 done
3825 else $as_nop
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3829 See \`config.log' for more details" "$LINENO" 5; }
3830 fi
3831 rm -f conftest conftest$ac_cv_exeext
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3833 printf "%s\n" "$ac_cv_exeext" >&6; }
3834
3835 rm -f conftest.$ac_ext
3836 EXEEXT=$ac_cv_exeext
3837 ac_exeext=$EXEEXT
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <stdio.h>
3841 int
3842 main (void)
3843 {
3844 FILE *f = fopen ("conftest.out", "w");
3845 return ferror (f) || fclose (f) != 0;
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 ac_clean_files="$ac_clean_files conftest.out"
3852 # Check that the compiler produces executables we can run. If not, either
3853 # the compiler is broken, or we cross compile.
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3855 printf %s "checking whether we are cross compiling... " >&6; }
3856 if test "$cross_compiling" != yes; then
3857 { { ac_try="$ac_link"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 printf "%s\n" "$ac_try_echo"; } >&5
3864 (eval "$ac_link") 2>&5
3865 ac_status=$?
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3868 if { ac_try='./conftest$ac_cv_exeext'
3869 { { case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 printf "%s\n" "$ac_try_echo"; } >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; }; then
3879 cross_compiling=no
3880 else
3881 if test "$cross_compiling" = maybe; then
3882 cross_compiling=yes
3883 else
3884 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error 77 "cannot run C++ compiled programs.
3887 If you meant to cross compile, use \`--host'.
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 fi
3890 fi
3891 fi
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3893 printf "%s\n" "$cross_compiling" >&6; }
3894
3895 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3896 ac_clean_files=$ac_clean_files_save
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3898 printf %s "checking for suffix of object files... " >&6; }
3899 if test ${ac_cv_objext+y}
3900 then :
3901 printf %s "(cached) " >&6
3902 else $as_nop
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905
3906 int
3907 main (void)
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.o conftest.obj
3915 if { { ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 printf "%s\n" "$ac_try_echo"; } >&5
3922 (eval "$ac_compile") 2>&5
3923 ac_status=$?
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }
3926 then :
3927 for ac_file in conftest.o conftest.obj conftest.*; do
3928 test -f "$ac_file" || continue;
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3932 break;;
3933 esac
3934 done
3935 else $as_nop
3936 printf "%s\n" "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot compute suffix of object files: cannot compile
3942 See \`config.log' for more details" "$LINENO" 5; }
3943 fi
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 fi
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 printf "%s\n" "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3949 ac_objext=$OBJEXT
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3951 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3952 if test ${ac_cv_cxx_compiler_gnu+y}
3953 then :
3954 printf %s "(cached) " >&6
3955 else $as_nop
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958
3959 int
3960 main (void)
3961 {
3962 #ifndef __GNUC__
3963 choke me
3964 #endif
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 if ac_fn_cxx_try_compile "$LINENO"
3971 then :
3972 ac_compiler_gnu=yes
3973 else $as_nop
3974 ac_compiler_gnu=no
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3978
3979 fi
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3981 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3983
3984 if test $ac_compiler_gnu = yes; then
3985 GXX=yes
3986 else
3987 GXX=
3988 fi
3989 ac_test_CXXFLAGS=${CXXFLAGS+y}
3990 ac_save_CXXFLAGS=$CXXFLAGS
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3992 printf %s "checking whether $CXX accepts -g... " >&6; }
3993 if test ${ac_cv_prog_cxx_g+y}
3994 then :
3995 printf %s "(cached) " >&6
3996 else $as_nop
3997 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3998 ac_cxx_werror_flag=yes
3999 ac_cv_prog_cxx_g=no
4000 CXXFLAGS="-g"
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main (void)
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_cxx_try_compile "$LINENO"
4013 then :
4014 ac_cv_prog_cxx_g=yes
4015 else $as_nop
4016 CXXFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main (void)
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_cxx_try_compile "$LINENO"
4029 then :
4030
4031 else $as_nop
4032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4033 CXXFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main (void)
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_cxx_try_compile "$LINENO"
4046 then :
4047 ac_cv_prog_cxx_g=yes
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4054 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4055 fi
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4057 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4058 if test $ac_test_CXXFLAGS; then
4059 CXXFLAGS=$ac_save_CXXFLAGS
4060 elif test $ac_cv_prog_cxx_g = yes; then
4061 if test "$GXX" = yes; then
4062 CXXFLAGS="-g -O2"
4063 else
4064 CXXFLAGS="-g"
4065 fi
4066 else
4067 if test "$GXX" = yes; then
4068 CXXFLAGS="-O2"
4069 else
4070 CXXFLAGS=
4071 fi
4072 fi
4073 ac_prog_cxx_stdcxx=no
4074 if test x$ac_prog_cxx_stdcxx = xno
4075 then :
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4077 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4078 if test ${ac_cv_prog_cxx_11+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else $as_nop
4082 ac_cv_prog_cxx_11=no
4083 ac_save_CXX=$CXX
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 $ac_cxx_conftest_cxx11_program
4087 _ACEOF
4088 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4089 do
4090 CXX="$ac_save_CXX $ac_arg"
4091 if ac_fn_cxx_try_compile "$LINENO"
4092 then :
4093 ac_cv_prog_cxx_cxx11=$ac_arg
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam
4096 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4097 done
4098 rm -f conftest.$ac_ext
4099 CXX=$ac_save_CXX
4100 fi
4101
4102 if test "x$ac_cv_prog_cxx_cxx11" = xno
4103 then :
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4105 printf "%s\n" "unsupported" >&6; }
4106 else $as_nop
4107 if test "x$ac_cv_prog_cxx_cxx11" = x
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4110 printf "%s\n" "none needed" >&6; }
4111 else $as_nop
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4113 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4114 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4115 fi
4116 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4117 ac_prog_cxx_stdcxx=cxx11
4118 fi
4119 fi
4120 if test x$ac_prog_cxx_stdcxx = xno
4121 then :
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4123 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4124 if test ${ac_cv_prog_cxx_98+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else $as_nop
4128 ac_cv_prog_cxx_98=no
4129 ac_save_CXX=$CXX
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 $ac_cxx_conftest_cxx98_program
4133 _ACEOF
4134 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4135 do
4136 CXX="$ac_save_CXX $ac_arg"
4137 if ac_fn_cxx_try_compile "$LINENO"
4138 then :
4139 ac_cv_prog_cxx_cxx98=$ac_arg
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.beam
4142 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4143 done
4144 rm -f conftest.$ac_ext
4145 CXX=$ac_save_CXX
4146 fi
4147
4148 if test "x$ac_cv_prog_cxx_cxx98" = xno
4149 then :
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4151 printf "%s\n" "unsupported" >&6; }
4152 else $as_nop
4153 if test "x$ac_cv_prog_cxx_cxx98" = x
4154 then :
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 printf "%s\n" "none needed" >&6; }
4157 else $as_nop
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4159 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4160 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4161 fi
4162 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4163 ac_prog_cxx_stdcxx=cxx98
4164 fi
4165 fi
4166
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 DEPDIR="${am__leading_dot}deps"
4173
4174 ac_config_commands="$ac_config_commands depfiles"
4175
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4177 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4178 cat > confinc.mk << 'END'
4179 am__doit:
4180 @echo this is the am__doit target >confinc.out
4181 .PHONY: am__doit
4182 END
4183 am__include="#"
4184 am__quote=
4185 # BSD make does it like this.
4186 echo '.include "confinc.mk" # ignored' > confmf.BSD
4187 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4188 echo 'include confinc.mk # ignored' > confmf.GNU
4189 _am_result=no
4190 for s in GNU BSD; do
4191 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4192 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }
4196 case $?:`cat confinc.out 2>/dev/null` in #(
4197 '0:this is the am__doit target') :
4198 case $s in #(
4199 BSD) :
4200 am__include='.include' am__quote='"' ;; #(
4201 *) :
4202 am__include='include' am__quote='' ;;
4203 esac ;; #(
4204 *) :
4205 ;;
4206 esac
4207 if test "$am__include" != "#"; then
4208 _am_result="yes ($s style)"
4209 break
4210 fi
4211 done
4212 rm -f confinc.* confmf.*
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4214 printf "%s\n" "${_am_result}" >&6; }
4215
4216 # Check whether --enable-dependency-tracking was given.
4217 if test ${enable_dependency_tracking+y}
4218 then :
4219 enableval=$enable_dependency_tracking;
4220 fi
4221
4222 if test "x$enable_dependency_tracking" != xno; then
4223 am_depcomp="$ac_aux_dir/depcomp"
4224 AMDEPBACKSLASH='\'
4225 am__nodep='_no'
4226 fi
4227 if test "x$enable_dependency_tracking" != xno; then
4228 AMDEP_TRUE=
4229 AMDEP_FALSE='#'
4230 else
4231 AMDEP_TRUE='#'
4232 AMDEP_FALSE=
4233 fi
4234
4235
4236
4237 depcc="$CXX" am_compiler_list=
4238
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4240 printf %s "checking dependency style of $depcc... " >&6; }
4241 if test ${am_cv_CXX_dependencies_compiler_type+y}
4242 then :
4243 printf %s "(cached) " >&6
4244 else $as_nop
4245 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246 # We make a subdir and do the tests there. Otherwise we can end up
4247 # making bogus files that we don't know about and never remove. For
4248 # instance it was reported that on HP-UX the gcc test will end up
4249 # making a dummy file named 'D' -- because '-MD' means "put the output
4250 # in D".
4251 rm -rf conftest.dir
4252 mkdir conftest.dir
4253 # Copy depcomp to subdir because otherwise we won't find it if we're
4254 # using a relative directory.
4255 cp "$am_depcomp" conftest.dir
4256 cd conftest.dir
4257 # We will build objects and dependencies in a subdirectory because
4258 # it helps to detect inapplicable dependency modes. For instance
4259 # both Tru64's cc and ICC support -MD to output dependencies as a
4260 # side effect of compilation, but ICC will put the dependencies in
4261 # the current directory while Tru64 will put them in the object
4262 # directory.
4263 mkdir sub
4264
4265 am_cv_CXX_dependencies_compiler_type=none
4266 if test "$am_compiler_list" = ""; then
4267 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268 fi
4269 am__universal=false
4270 case " $depcc " in #(
4271 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4272 esac
4273
4274 for depmode in $am_compiler_list; do
4275 # Setup a source with many dependencies, because some compilers
4276 # like to wrap large dependency lists on column 80 (with \), and
4277 # we should not choose a depcomp mode which is confused by this.
4278 #
4279 # We need to recreate these files for each test, as the compiler may
4280 # overwrite some of them when testing with obscure command lines.
4281 # This happens at least with the AIX C compiler.
4282 : > sub/conftest.c
4283 for i in 1 2 3 4 5 6; do
4284 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4285 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4286 # Solaris 10 /bin/sh.
4287 echo '/* dummy */' > sub/conftst$i.h
4288 done
4289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290
4291 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4292 # mode. It turns out that the SunPro C++ compiler does not properly
4293 # handle '-M -o', and we need to detect this. Also, some Intel
4294 # versions had trouble with output in subdirs.
4295 am__obj=sub/conftest.${OBJEXT-o}
4296 am__minus_obj="-o $am__obj"
4297 case $depmode in
4298 gcc)
4299 # This depmode causes a compiler race in universal mode.
4300 test "$am__universal" = false || continue
4301 ;;
4302 nosideeffect)
4303 # After this tag, mechanisms are not by side-effect, so they'll
4304 # only be used when explicitly requested.
4305 if test "x$enable_dependency_tracking" = xyes; then
4306 continue
4307 else
4308 break
4309 fi
4310 ;;
4311 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4312 # This compiler won't grok '-c -o', but also, the minuso test has
4313 # not run yet. These depmodes are late enough in the game, and
4314 # so weak that their functioning should not be impacted.
4315 am__obj=conftest.${OBJEXT-o}
4316 am__minus_obj=
4317 ;;
4318 none) break ;;
4319 esac
4320 if depmode=$depmode \
4321 source=sub/conftest.c object=$am__obj \
4322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4323 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4324 >/dev/null 2>conftest.err &&
4325 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4328 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4329 # icc doesn't choke on unknown options, it will just issue warnings
4330 # or remarks (even with -Werror). So we grep stderr for any message
4331 # that says an option was ignored or not supported.
4332 # When given -MP, icc 7.0 and 7.1 complain thusly:
4333 # icc: Command line warning: ignoring option '-M'; no argument required
4334 # The diagnosis changed in icc 8.0:
4335 # icc: Command line remark: option '-MP' not supported
4336 if (grep 'ignoring option' conftest.err ||
4337 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4338 am_cv_CXX_dependencies_compiler_type=$depmode
4339 break
4340 fi
4341 fi
4342 done
4343
4344 cd ..
4345 rm -rf conftest.dir
4346 else
4347 am_cv_CXX_dependencies_compiler_type=none
4348 fi
4349
4350 fi
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4352 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4353 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4354
4355 if
4356 test "x$enable_dependency_tracking" != xno \
4357 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4358 am__fastdepCXX_TRUE=
4359 am__fastdepCXX_FALSE='#'
4360 else
4361 am__fastdepCXX_TRUE='#'
4362 am__fastdepCXX_FALSE=
4363 fi
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 printf %s "checking for $ac_word... " >&6; }
4385 if test ${ac_cv_prog_CC+y}
4386 then :
4387 printf %s "(cached) " >&6
4388 else $as_nop
4389 if test -n "$CC"; then
4390 ac_cv_prog_CC="$CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 case $as_dir in #(((
4397 '') as_dir=./ ;;
4398 */) ;;
4399 *) as_dir=$as_dir/ ;;
4400 esac
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4405 break 2
4406 fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4410
4411 fi
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 fi
4424 if test -z "$ac_cv_prog_CC"; then
4425 ac_ct_CC=$CC
4426 # Extract the first word of "gcc", so it can be a program name with args.
4427 set dummy gcc; ac_word=$2
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 printf %s "checking for $ac_word... " >&6; }
4430 if test ${ac_cv_prog_ac_ct_CC+y}
4431 then :
4432 printf %s "(cached) " >&6
4433 else $as_nop
4434 if test -n "$ac_ct_CC"; then
4435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440 IFS=$as_save_IFS
4441 case $as_dir in #(((
4442 '') as_dir=./ ;;
4443 */) ;;
4444 *) as_dir=$as_dir/ ;;
4445 esac
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_ac_ct_CC="gcc"
4449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4459 if test -n "$ac_ct_CC"; then
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461 printf "%s\n" "$ac_ct_CC" >&6; }
4462 else
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 printf "%s\n" "no" >&6; }
4465 fi
4466
4467 if test "x$ac_ct_CC" = x; then
4468 CC=""
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476 CC=$ac_ct_CC
4477 fi
4478 else
4479 CC="$ac_cv_prog_CC"
4480 fi
4481
4482 if test -z "$CC"; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}cc; ac_word=$2
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 printf %s "checking for $ac_word... " >&6; }
4488 if test ${ac_cv_prog_CC+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else $as_nop
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC="$CC" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 case $as_dir in #(((
4500 '') as_dir=./ ;;
4501 */) ;;
4502 *) as_dir=$as_dir/ ;;
4503 esac
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_CC="${ac_tool_prefix}cc"
4507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 fi
4515 fi
4516 CC=$ac_cv_prog_CC
4517 if test -n "$CC"; then
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4519 printf "%s\n" "$CC" >&6; }
4520 else
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 printf "%s\n" "no" >&6; }
4523 fi
4524
4525
4526 fi
4527 fi
4528 if test -z "$CC"; then
4529 # Extract the first word of "cc", so it can be a program name with args.
4530 set dummy cc; ac_word=$2
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 printf %s "checking for $ac_word... " >&6; }
4533 if test ${ac_cv_prog_CC+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 else
4540 ac_prog_rejected=no
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 case $as_dir in #(((
4546 '') as_dir=./ ;;
4547 */) ;;
4548 *) as_dir=$as_dir/ ;;
4549 esac
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4552 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553 ac_prog_rejected=yes
4554 continue
4555 fi
4556 ac_cv_prog_CC="cc"
4557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560 done
4561 done
4562 IFS=$as_save_IFS
4563
4564 if test $ac_prog_rejected = yes; then
4565 # We found a bogon in the path, so make sure we never use it.
4566 set dummy $ac_cv_prog_CC
4567 shift
4568 if test $# != 0; then
4569 # We chose a different compiler from the bogus one.
4570 # However, it has the same basename, so the bogon will be chosen
4571 # first if we set CC to just the basename; use the full file name.
4572 shift
4573 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4574 fi
4575 fi
4576 fi
4577 fi
4578 CC=$ac_cv_prog_CC
4579 if test -n "$CC"; then
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4581 printf "%s\n" "$CC" >&6; }
4582 else
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 printf "%s\n" "no" >&6; }
4585 fi
4586
4587
4588 fi
4589 if test -z "$CC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in cl.exe
4592 do
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 printf %s "checking for $ac_word... " >&6; }
4597 if test ${ac_cv_prog_CC+y}
4598 then :
4599 printf %s "(cached) " >&6
4600 else $as_nop
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 case $as_dir in #(((
4609 '') as_dir=./ ;;
4610 */) ;;
4611 *) as_dir=$as_dir/ ;;
4612 esac
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 printf "%s\n" "$CC" >&6; }
4629 else
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 printf "%s\n" "no" >&6; }
4632 fi
4633
4634
4635 test -n "$CC" && break
4636 done
4637 fi
4638 if test -z "$CC"; then
4639 ac_ct_CC=$CC
4640 for ac_prog in cl.exe
4641 do
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 printf %s "checking for $ac_word... " >&6; }
4646 if test ${ac_cv_prog_ac_ct_CC+y}
4647 then :
4648 printf %s "(cached) " >&6
4649 else $as_nop
4650 if test -n "$ac_ct_CC"; then
4651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 case $as_dir in #(((
4658 '') as_dir=./ ;;
4659 */) ;;
4660 *) as_dir=$as_dir/ ;;
4661 esac
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CC="$ac_prog"
4665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675 if test -n "$ac_ct_CC"; then
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677 printf "%s\n" "$ac_ct_CC" >&6; }
4678 else
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 printf "%s\n" "no" >&6; }
4681 fi
4682
4683
4684 test -n "$ac_ct_CC" && break
4685 done
4686
4687 if test "x$ac_ct_CC" = x; then
4688 CC=""
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696 CC=$ac_ct_CC
4697 fi
4698 fi
4699
4700 fi
4701 if test -z "$CC"; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4704 set dummy ${ac_tool_prefix}clang; ac_word=$2
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 printf %s "checking for $ac_word... " >&6; }
4707 if test ${ac_cv_prog_CC+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else $as_nop
4711 if test -n "$CC"; then
4712 ac_cv_prog_CC="$CC" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 case $as_dir in #(((
4719 '') as_dir=./ ;;
4720 */) ;;
4721 *) as_dir=$as_dir/ ;;
4722 esac
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_CC="${ac_tool_prefix}clang"
4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 CC=$ac_cv_prog_CC
4736 if test -n "$CC"; then
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4738 printf "%s\n" "$CC" >&6; }
4739 else
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 printf "%s\n" "no" >&6; }
4742 fi
4743
4744
4745 fi
4746 if test -z "$ac_cv_prog_CC"; then
4747 ac_ct_CC=$CC
4748 # Extract the first word of "clang", so it can be a program name with args.
4749 set dummy clang; ac_word=$2
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 printf %s "checking for $ac_word... " >&6; }
4752 if test ${ac_cv_prog_ac_ct_CC+y}
4753 then :
4754 printf %s "(cached) " >&6
4755 else $as_nop
4756 if test -n "$ac_ct_CC"; then
4757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762 IFS=$as_save_IFS
4763 case $as_dir in #(((
4764 '') as_dir=./ ;;
4765 */) ;;
4766 *) as_dir=$as_dir/ ;;
4767 esac
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_CC="clang"
4771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4781 if test -n "$ac_ct_CC"; then
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4783 printf "%s\n" "$ac_ct_CC" >&6; }
4784 else
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 printf "%s\n" "no" >&6; }
4787 fi
4788
4789 if test "x$ac_ct_CC" = x; then
4790 CC=""
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4797 esac
4798 CC=$ac_ct_CC
4799 fi
4800 else
4801 CC="$ac_cv_prog_CC"
4802 fi
4803
4804 fi
4805
4806
4807 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4808 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4809 as_fn_error $? "no acceptable C compiler found in \$PATH
4810 See \`config.log' for more details" "$LINENO" 5; }
4811
4812 # Provide some information about the compiler.
4813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4814 set X $ac_compile
4815 ac_compiler=$2
4816 for ac_option in --version -v -V -qversion -version; do
4817 { { ac_try="$ac_compiler $ac_option >&5"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4823 printf "%s\n" "$ac_try_echo"; } >&5
4824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4825 ac_status=$?
4826 if test -s conftest.err; then
4827 sed '10a\
4828 ... rest of stderr output deleted ...
4829 10q' conftest.err >conftest.er1
4830 cat conftest.er1 >&5
4831 fi
4832 rm -f conftest.er1 conftest.err
4833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4834 test $ac_status = 0; }
4835 done
4836
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4838 printf %s "checking whether the compiler supports GNU C... " >&6; }
4839 if test ${ac_cv_c_compiler_gnu+y}
4840 then :
4841 printf %s "(cached) " >&6
4842 else $as_nop
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 int
4847 main (void)
4848 {
4849 #ifndef __GNUC__
4850 choke me
4851 #endif
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"
4858 then :
4859 ac_compiler_gnu=yes
4860 else $as_nop
4861 ac_compiler_gnu=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4865
4866 fi
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4868 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870
4871 if test $ac_compiler_gnu = yes; then
4872 GCC=yes
4873 else
4874 GCC=
4875 fi
4876 ac_test_CFLAGS=${CFLAGS+y}
4877 ac_save_CFLAGS=$CFLAGS
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4879 printf %s "checking whether $CC accepts -g... " >&6; }
4880 if test ${ac_cv_prog_cc_g+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else $as_nop
4884 ac_save_c_werror_flag=$ac_c_werror_flag
4885 ac_c_werror_flag=yes
4886 ac_cv_prog_cc_g=no
4887 CFLAGS="-g"
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main (void)
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"
4900 then :
4901 ac_cv_prog_cc_g=yes
4902 else $as_nop
4903 CFLAGS=""
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906
4907 int
4908 main (void)
4909 {
4910
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 if ac_fn_c_try_compile "$LINENO"
4916 then :
4917
4918 else $as_nop
4919 ac_c_werror_flag=$ac_save_c_werror_flag
4920 CFLAGS="-g"
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main (void)
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"
4933 then :
4934 ac_cv_prog_cc_g=yes
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4937 fi
4938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942 fi
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4944 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4945 if test $ac_test_CFLAGS; then
4946 CFLAGS=$ac_save_CFLAGS
4947 elif test $ac_cv_prog_cc_g = yes; then
4948 if test "$GCC" = yes; then
4949 CFLAGS="-g -O2"
4950 else
4951 CFLAGS="-g"
4952 fi
4953 else
4954 if test "$GCC" = yes; then
4955 CFLAGS="-O2"
4956 else
4957 CFLAGS=
4958 fi
4959 fi
4960 ac_prog_cc_stdc=no
4961 if test x$ac_prog_cc_stdc = xno
4962 then :
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4964 printf %s "checking for $CC option to enable C11 features... " >&6; }
4965 if test ${ac_cv_prog_cc_c11+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else $as_nop
4969 ac_cv_prog_cc_c11=no
4970 ac_save_CC=$CC
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 $ac_c_conftest_c11_program
4974 _ACEOF
4975 for ac_arg in '' -std=gnu11
4976 do
4977 CC="$ac_save_CC $ac_arg"
4978 if ac_fn_c_try_compile "$LINENO"
4979 then :
4980 ac_cv_prog_cc_c11=$ac_arg
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam
4983 test "x$ac_cv_prog_cc_c11" != "xno" && break
4984 done
4985 rm -f conftest.$ac_ext
4986 CC=$ac_save_CC
4987 fi
4988
4989 if test "x$ac_cv_prog_cc_c11" = xno
4990 then :
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4992 printf "%s\n" "unsupported" >&6; }
4993 else $as_nop
4994 if test "x$ac_cv_prog_cc_c11" = x
4995 then :
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4997 printf "%s\n" "none needed" >&6; }
4998 else $as_nop
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5000 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5001 CC="$CC $ac_cv_prog_cc_c11"
5002 fi
5003 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5004 ac_prog_cc_stdc=c11
5005 fi
5006 fi
5007 if test x$ac_prog_cc_stdc = xno
5008 then :
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5010 printf %s "checking for $CC option to enable C99 features... " >&6; }
5011 if test ${ac_cv_prog_cc_c99+y}
5012 then :
5013 printf %s "(cached) " >&6
5014 else $as_nop
5015 ac_cv_prog_cc_c99=no
5016 ac_save_CC=$CC
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 $ac_c_conftest_c99_program
5020 _ACEOF
5021 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5022 do
5023 CC="$ac_save_CC $ac_arg"
5024 if ac_fn_c_try_compile "$LINENO"
5025 then :
5026 ac_cv_prog_cc_c99=$ac_arg
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.beam
5029 test "x$ac_cv_prog_cc_c99" != "xno" && break
5030 done
5031 rm -f conftest.$ac_ext
5032 CC=$ac_save_CC
5033 fi
5034
5035 if test "x$ac_cv_prog_cc_c99" = xno
5036 then :
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038 printf "%s\n" "unsupported" >&6; }
5039 else $as_nop
5040 if test "x$ac_cv_prog_cc_c99" = x
5041 then :
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5043 printf "%s\n" "none needed" >&6; }
5044 else $as_nop
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5046 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5047 CC="$CC $ac_cv_prog_cc_c99"
5048 fi
5049 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5050 ac_prog_cc_stdc=c99
5051 fi
5052 fi
5053 if test x$ac_prog_cc_stdc = xno
5054 then :
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5056 printf %s "checking for $CC option to enable C89 features... " >&6; }
5057 if test ${ac_cv_prog_cc_c89+y}
5058 then :
5059 printf %s "(cached) " >&6
5060 else $as_nop
5061 ac_cv_prog_cc_c89=no
5062 ac_save_CC=$CC
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 $ac_c_conftest_c89_program
5066 _ACEOF
5067 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5068 do
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"
5071 then :
5072 ac_cv_prog_cc_c89=$ac_arg
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.beam
5075 test "x$ac_cv_prog_cc_c89" != "xno" && break
5076 done
5077 rm -f conftest.$ac_ext
5078 CC=$ac_save_CC
5079 fi
5080
5081 if test "x$ac_cv_prog_cc_c89" = xno
5082 then :
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5084 printf "%s\n" "unsupported" >&6; }
5085 else $as_nop
5086 if test "x$ac_cv_prog_cc_c89" = x
5087 then :
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5089 printf "%s\n" "none needed" >&6; }
5090 else $as_nop
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5092 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5093 CC="$CC $ac_cv_prog_cc_c89"
5094 fi
5095 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5096 ac_prog_cc_stdc=c89
5097 fi
5098 fi
5099
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107 ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5113 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5114 if test ${am_cv_prog_cc_c_o+y}
5115 then :
5116 printf %s "(cached) " >&6
5117 else $as_nop
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120
5121 int
5122 main (void)
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 # Make sure it works both with $CC and with simple cc.
5130 # Following AC_PROG_CC_C_O, we do the test twice because some
5131 # compilers refuse to overwrite an existing .o file with -o,
5132 # though they will create one.
5133 am_cv_prog_cc_c_o=yes
5134 for am_i in 1 2; do
5135 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5136 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } \
5140 && test -f conftest2.$ac_objext; then
5141 : OK
5142 else
5143 am_cv_prog_cc_c_o=no
5144 break
5145 fi
5146 done
5147 rm -f core conftest*
5148 unset am_i
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5151 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5152 if test "$am_cv_prog_cc_c_o" != yes; then
5153 # Losing compiler, so override with the script.
5154 # FIXME: It is wrong to rewrite CC.
5155 # But if we don't then we get into trouble of one sort or another.
5156 # A longer-term fix would be to have automake use am__CC in this case,
5157 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5158 CC="$am_aux_dir/compile $CC"
5159 fi
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167 depcc="$CC" am_compiler_list=
5168
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5170 printf %s "checking dependency style of $depcc... " >&6; }
5171 if test ${am_cv_CC_dependencies_compiler_type+y}
5172 then :
5173 printf %s "(cached) " >&6
5174 else $as_nop
5175 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5176 # We make a subdir and do the tests there. Otherwise we can end up
5177 # making bogus files that we don't know about and never remove. For
5178 # instance it was reported that on HP-UX the gcc test will end up
5179 # making a dummy file named 'D' -- because '-MD' means "put the output
5180 # in D".
5181 rm -rf conftest.dir
5182 mkdir conftest.dir
5183 # Copy depcomp to subdir because otherwise we won't find it if we're
5184 # using a relative directory.
5185 cp "$am_depcomp" conftest.dir
5186 cd conftest.dir
5187 # We will build objects and dependencies in a subdirectory because
5188 # it helps to detect inapplicable dependency modes. For instance
5189 # both Tru64's cc and ICC support -MD to output dependencies as a
5190 # side effect of compilation, but ICC will put the dependencies in
5191 # the current directory while Tru64 will put them in the object
5192 # directory.
5193 mkdir sub
5194
5195 am_cv_CC_dependencies_compiler_type=none
5196 if test "$am_compiler_list" = ""; then
5197 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5198 fi
5199 am__universal=false
5200 case " $depcc " in #(
5201 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5202 esac
5203
5204 for depmode in $am_compiler_list; do
5205 # Setup a source with many dependencies, because some compilers
5206 # like to wrap large dependency lists on column 80 (with \), and
5207 # we should not choose a depcomp mode which is confused by this.
5208 #
5209 # We need to recreate these files for each test, as the compiler may
5210 # overwrite some of them when testing with obscure command lines.
5211 # This happens at least with the AIX C compiler.
5212 : > sub/conftest.c
5213 for i in 1 2 3 4 5 6; do
5214 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5215 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5216 # Solaris 10 /bin/sh.
5217 echo '/* dummy */' > sub/conftst$i.h
5218 done
5219 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5220
5221 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5222 # mode. It turns out that the SunPro C++ compiler does not properly
5223 # handle '-M -o', and we need to detect this. Also, some Intel
5224 # versions had trouble with output in subdirs.
5225 am__obj=sub/conftest.${OBJEXT-o}
5226 am__minus_obj="-o $am__obj"
5227 case $depmode in
5228 gcc)
5229 # This depmode causes a compiler race in universal mode.
5230 test "$am__universal" = false || continue
5231 ;;
5232 nosideeffect)
5233 # After this tag, mechanisms are not by side-effect, so they'll
5234 # only be used when explicitly requested.
5235 if test "x$enable_dependency_tracking" = xyes; then
5236 continue
5237 else
5238 break
5239 fi
5240 ;;
5241 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5242 # This compiler won't grok '-c -o', but also, the minuso test has
5243 # not run yet. These depmodes are late enough in the game, and
5244 # so weak that their functioning should not be impacted.
5245 am__obj=conftest.${OBJEXT-o}
5246 am__minus_obj=
5247 ;;
5248 none) break ;;
5249 esac
5250 if depmode=$depmode \
5251 source=sub/conftest.c object=$am__obj \
5252 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5253 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5254 >/dev/null 2>conftest.err &&
5255 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5256 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5257 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5258 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5259 # icc doesn't choke on unknown options, it will just issue warnings
5260 # or remarks (even with -Werror). So we grep stderr for any message
5261 # that says an option was ignored or not supported.
5262 # When given -MP, icc 7.0 and 7.1 complain thusly:
5263 # icc: Command line warning: ignoring option '-M'; no argument required
5264 # The diagnosis changed in icc 8.0:
5265 # icc: Command line remark: option '-MP' not supported
5266 if (grep 'ignoring option' conftest.err ||
5267 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5268 am_cv_CC_dependencies_compiler_type=$depmode
5269 break
5270 fi
5271 fi
5272 done
5273
5274 cd ..
5275 rm -rf conftest.dir
5276 else
5277 am_cv_CC_dependencies_compiler_type=none
5278 fi
5279
5280 fi
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5282 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5283 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5284
5285 if
5286 test "x$enable_dependency_tracking" != xno \
5287 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5288 am__fastdepCC_TRUE=
5289 am__fastdepCC_FALSE='#'
5290 else
5291 am__fastdepCC_TRUE='#'
5292 am__fastdepCC_FALSE=
5293 fi
5294
5295
5296
5297 # Set language to C++
5298 ac_ext=cpp
5299 ac_cpp='$CXXCPP $CPPFLAGS'
5300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5303
5304
5305 # Checks for header files
5306
5307 ac_header_dirent=no
5308 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5309 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5311 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
5312 if eval test \${$as_ac_Header+y}
5313 then :
5314 printf %s "(cached) " >&6
5315 else $as_nop
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <sys/types.h>
5319 #include <$ac_hdr>
5320
5321 int
5322 main (void)
5323 {
5324 if ((DIR *) 0)
5325 return 0;
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_cxx_try_compile "$LINENO"
5331 then :
5332 eval "$as_ac_Header=yes"
5333 else $as_nop
5334 eval "$as_ac_Header=no"
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5337 fi
5338 eval ac_res=\$$as_ac_Header
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5340 printf "%s\n" "$ac_res" >&6; }
5341 if eval test \"x\$"$as_ac_Header"\" = x"yes"
5342 then :
5343 cat >>confdefs.h <<_ACEOF
5344 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
5345 _ACEOF
5346
5347 ac_header_dirent=$ac_hdr; break
5348 fi
5349
5350 done
5351 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5352 if test $ac_header_dirent = dirent.h; then
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5354 printf %s "checking for library containing opendir... " >&6; }
5355 if test ${ac_cv_search_opendir+y}
5356 then :
5357 printf %s "(cached) " >&6
5358 else $as_nop
5359 ac_func_search_save_LIBS=$LIBS
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362
5363 namespace conftest {
5364 extern "C" int opendir ();
5365 }
5366 int
5367 main (void)
5368 {
5369 return conftest::opendir ();
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 for ac_lib in '' dir
5375 do
5376 if test -z "$ac_lib"; then
5377 ac_res="none required"
5378 else
5379 ac_res=-l$ac_lib
5380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5381 fi
5382 if ac_fn_cxx_try_link "$LINENO"
5383 then :
5384 ac_cv_search_opendir=$ac_res
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5387 conftest$ac_exeext
5388 if test ${ac_cv_search_opendir+y}
5389 then :
5390 break
5391 fi
5392 done
5393 if test ${ac_cv_search_opendir+y}
5394 then :
5395
5396 else $as_nop
5397 ac_cv_search_opendir=no
5398 fi
5399 rm conftest.$ac_ext
5400 LIBS=$ac_func_search_save_LIBS
5401 fi
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5403 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5404 ac_res=$ac_cv_search_opendir
5405 if test "$ac_res" != no
5406 then :
5407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5408
5409 fi
5410
5411 else
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5413 printf %s "checking for library containing opendir... " >&6; }
5414 if test ${ac_cv_search_opendir+y}
5415 then :
5416 printf %s "(cached) " >&6
5417 else $as_nop
5418 ac_func_search_save_LIBS=$LIBS
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421
5422 namespace conftest {
5423 extern "C" int opendir ();
5424 }
5425 int
5426 main (void)
5427 {
5428 return conftest::opendir ();
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 for ac_lib in '' x
5434 do
5435 if test -z "$ac_lib"; then
5436 ac_res="none required"
5437 else
5438 ac_res=-l$ac_lib
5439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5440 fi
5441 if ac_fn_cxx_try_link "$LINENO"
5442 then :
5443 ac_cv_search_opendir=$ac_res
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5446 conftest$ac_exeext
5447 if test ${ac_cv_search_opendir+y}
5448 then :
5449 break
5450 fi
5451 done
5452 if test ${ac_cv_search_opendir+y}
5453 then :
5454
5455 else $as_nop
5456 ac_cv_search_opendir=no
5457 fi
5458 rm conftest.$ac_ext
5459 LIBS=$ac_func_search_save_LIBS
5460 fi
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5462 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5463 ac_res=$ac_cv_search_opendir
5464 if test "$ac_res" != no
5465 then :
5466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5467
5468 fi
5469
5470 fi
5471
5472 ac_header= ac_cache=
5473 for ac_item in $ac_header_cxx_list
5474 do
5475 if test $ac_cache; then
5476 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5477 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5478 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5479 fi
5480 ac_header= ac_cache=
5481 elif test $ac_header; then
5482 ac_cache=$ac_item
5483 else
5484 ac_header=$ac_item
5485 fi
5486 done
5487
5488
5489
5490
5491
5492
5493
5494
5495 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5496 then :
5497
5498 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5499
5500 fi
5501 ac_fn_cxx_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5502 if test "x$ac_cv_header_fcntl_h" = xyes
5503 then :
5504 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5505
5506 fi
5507 ac_fn_cxx_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5508 if test "x$ac_cv_header_string_h" = xyes
5509 then :
5510 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5511
5512 fi
5513 ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5514 if test "x$ac_cv_header_unistd_h" = xyes
5515 then :
5516 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5517
5518 fi
5519 ac_fn_cxx_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5520 if test "x$ac_cv_header_stdlib_h" = xyes
5521 then :
5522 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5523
5524 fi
5525 ac_fn_cxx_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5526 if test "x$ac_cv_header_malloc_h" = xyes
5527 then :
5528 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
5529
5530 fi
5531
5532
5533 # Checks for typedefs, structures, and compiler characteristics
5534 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5535 if test "x$ac_cv_type__Bool" = xyes
5536 then :
5537
5538 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
5539
5540
5541 fi
5542
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5544 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
5545 if test ${ac_cv_header_stdbool_h+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else $as_nop
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <stdbool.h>
5552
5553 #ifndef __bool_true_false_are_defined
5554 #error "__bool_true_false_are_defined is not defined"
5555 #endif
5556 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
5557
5558 /* Regardless of whether this is C++ or "_Bool" is a
5559 valid type name, "true" and "false" should be usable
5560 in #if expressions and integer constant expressions,
5561 and "bool" should be a valid type name. */
5562
5563 #if !true
5564 #error "'true' is not true"
5565 #endif
5566 #if true != 1
5567 #error "'true' is not equal to 1"
5568 #endif
5569 char b[true == 1 ? 1 : -1];
5570 char c[true];
5571
5572 #if false
5573 #error "'false' is not false"
5574 #endif
5575 #if false != 0
5576 #error "'false' is not equal to 0"
5577 #endif
5578 char d[false == 0 ? 1 : -1];
5579
5580 enum { e = false, f = true, g = false * true, h = true * 256 };
5581
5582 char i[(bool) 0.5 == true ? 1 : -1];
5583 char j[(bool) 0.0 == false ? 1 : -1];
5584 char k[sizeof (bool) > 0 ? 1 : -1];
5585
5586 struct sb { bool s: 1; bool t; } s;
5587 char l[sizeof s.t > 0 ? 1 : -1];
5588
5589 /* The following fails for
5590 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5591 bool m[h];
5592 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
5593 char o[-1 - (bool) 0 < 0 ? 1 : -1];
5594 /* Catch a bug in an HP-UX C compiler. See
5595 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5596 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5597 */
5598 bool p = true;
5599 bool *pp = &p;
5600
5601 /* C 1999 specifies that bool, true, and false are to be
5602 macros, but C++ 2011 and later overrule this. */
5603 #if __cplusplus < 201103
5604 #ifndef bool
5605 #error "bool is not defined"
5606 #endif
5607 #ifndef false
5608 #error "false is not defined"
5609 #endif
5610 #ifndef true
5611 #error "true is not defined"
5612 #endif
5613 #endif
5614
5615 /* If _Bool is available, repeat with it all the tests
5616 above that used bool. */
5617 #ifdef HAVE__BOOL
5618 struct sB { _Bool s: 1; _Bool t; } t;
5619
5620 char q[(_Bool) 0.5 == true ? 1 : -1];
5621 char r[(_Bool) 0.0 == false ? 1 : -1];
5622 char u[sizeof (_Bool) > 0 ? 1 : -1];
5623 char v[sizeof t.t > 0 ? 1 : -1];
5624
5625 _Bool w[h];
5626 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
5627 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
5628 _Bool z = true;
5629 _Bool *pz = &p;
5630 #endif
5631
5632 int
5633 main (void)
5634 {
5635
5636 bool ps = &s;
5637 *pp |= p;
5638 *pp |= ! p;
5639
5640 #ifdef HAVE__BOOL
5641 _Bool pt = &t;
5642 *pz |= z;
5643 *pz |= ! z;
5644 #endif
5645
5646 /* Refer to every declared value, so they cannot be
5647 discarded as unused. */
5648 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
5649 + !l + !m + !n + !o + !p + !pp + !ps
5650 #ifdef HAVE__BOOL
5651 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
5652 #endif
5653 );
5654
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 if ac_fn_cxx_try_compile "$LINENO"
5660 then :
5661 ac_cv_header_stdbool_h=yes
5662 else $as_nop
5663 ac_cv_header_stdbool_h=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5666 fi
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5668 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
5669
5670 if test $ac_cv_header_stdbool_h = yes; then
5671
5672 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
5673
5674 fi
5675
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5677 printf %s "checking for an ANSI C-conforming const... " >&6; }
5678 if test ${ac_cv_c_const+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else $as_nop
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 int
5686 main (void)
5687 {
5688
5689 #ifndef __cplusplus
5690 /* Ultrix mips cc rejects this sort of thing. */
5691 typedef int charset[2];
5692 const charset cs = { 0, 0 };
5693 /* SunOS 4.1.1 cc rejects this. */
5694 char const *const *pcpcc;
5695 char **ppc;
5696 /* NEC SVR4.0.2 mips cc rejects this. */
5697 struct point {int x, y;};
5698 static struct point const zero = {0,0};
5699 /* IBM XL C 1.02.0.0 rejects this.
5700 It does not let you subtract one const X* pointer from another in
5701 an arm of an if-expression whose if-part is not a constant
5702 expression */
5703 const char *g = "string";
5704 pcpcc = &g + (g ? g-g : 0);
5705 /* HPUX 7.0 cc rejects these. */
5706 ++pcpcc;
5707 ppc = (char**) pcpcc;
5708 pcpcc = (char const *const *) ppc;
5709 { /* SCO 3.2v4 cc rejects this sort of thing. */
5710 char tx;
5711 char *t = &tx;
5712 char const *s = 0 ? (char *) 0 : (char const *) 0;
5713
5714 *t++ = 0;
5715 if (s) return 0;
5716 }
5717 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5718 int x[] = {25, 17};
5719 const int *foo = &x[0];
5720 ++foo;
5721 }
5722 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5723 typedef const int *iptr;
5724 iptr p = 0;
5725 ++p;
5726 }
5727 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5728 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5729 struct s { int j; const int *ap[3]; } bx;
5730 struct s *b = &bx; b->j = 5;
5731 }
5732 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5733 const int foo = 10;
5734 if (!foo) return 0;
5735 }
5736 return !cs[0] && !zero.x;
5737 #endif
5738
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 if ac_fn_cxx_try_compile "$LINENO"
5744 then :
5745 ac_cv_c_const=yes
5746 else $as_nop
5747 ac_cv_c_const=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 fi
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5752 printf "%s\n" "$ac_cv_c_const" >&6; }
5753 if test $ac_cv_c_const = no; then
5754
5755 printf "%s\n" "#define const /**/" >>confdefs.h
5756
5757 fi
5758
5759 ac_ext=cpp
5760 ac_cpp='$CXXCPP $CPPFLAGS'
5761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5765 printf %s "checking how to run the C++ preprocessor... " >&6; }
5766 if test -z "$CXXCPP"; then
5767 if test ${ac_cv_prog_CXXCPP+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else $as_nop
5771 # Double quotes because $CXX needs to be expanded
5772 for CXXCPP in "$CXX -E" cpp /lib/cpp
5773 do
5774 ac_preproc_ok=false
5775 for ac_cxx_preproc_warn_flag in '' yes
5776 do
5777 # Use a header file that comes with gcc, so configuring glibc
5778 # with a fresh cross-compiler works.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <limits.h>
5784 Syntax error
5785 _ACEOF
5786 if ac_fn_cxx_try_cpp "$LINENO"
5787 then :
5788
5789 else $as_nop
5790 # Broken: fails on valid input.
5791 continue
5792 fi
5793 rm -f conftest.err conftest.i conftest.$ac_ext
5794
5795 # OK, works on sane cases. Now check whether nonexistent headers
5796 # can be detected and how.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #include <ac_nonexistent.h>
5800 _ACEOF
5801 if ac_fn_cxx_try_cpp "$LINENO"
5802 then :
5803 # Broken: success on invalid input.
5804 continue
5805 else $as_nop
5806 # Passes both tests.
5807 ac_preproc_ok=:
5808 break
5809 fi
5810 rm -f conftest.err conftest.i conftest.$ac_ext
5811
5812 done
5813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5814 rm -f conftest.i conftest.err conftest.$ac_ext
5815 if $ac_preproc_ok
5816 then :
5817 break
5818 fi
5819
5820 done
5821 ac_cv_prog_CXXCPP=$CXXCPP
5822
5823 fi
5824 CXXCPP=$ac_cv_prog_CXXCPP
5825 else
5826 ac_cv_prog_CXXCPP=$CXXCPP
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5829 printf "%s\n" "$CXXCPP" >&6; }
5830 ac_preproc_ok=false
5831 for ac_cxx_preproc_warn_flag in '' yes
5832 do
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # On the NeXT, cc -E runs the code through the compiler's parser,
5836 # not just through cpp. "Syntax error" is here to catch this case.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <limits.h>
5840 Syntax error
5841 _ACEOF
5842 if ac_fn_cxx_try_cpp "$LINENO"
5843 then :
5844
5845 else $as_nop
5846 # Broken: fails on valid input.
5847 continue
5848 fi
5849 rm -f conftest.err conftest.i conftest.$ac_ext
5850
5851 # OK, works on sane cases. Now check whether nonexistent headers
5852 # can be detected and how.
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #include <ac_nonexistent.h>
5856 _ACEOF
5857 if ac_fn_cxx_try_cpp "$LINENO"
5858 then :
5859 # Broken: success on invalid input.
5860 continue
5861 else $as_nop
5862 # Passes both tests.
5863 ac_preproc_ok=:
5864 break
5865 fi
5866 rm -f conftest.err conftest.i conftest.$ac_ext
5867
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.i conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok
5872 then :
5873
5874 else $as_nop
5875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5876 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5877 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5878 See \`config.log' for more details" "$LINENO" 5; }
5879 fi
5880
5881 ac_ext=cpp
5882 ac_cpp='$CXXCPP $CPPFLAGS'
5883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5886
5887
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5889 printf %s "checking for grep that handles long lines and -e... " >&6; }
5890 if test ${ac_cv_path_GREP+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else $as_nop
5894 if test -z "$GREP"; then
5895 ac_path_GREP_found=false
5896 # Loop through the user's path and test for each of PROGNAME-LIST
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5899 do
5900 IFS=$as_save_IFS
5901 case $as_dir in #(((
5902 '') as_dir=./ ;;
5903 */) ;;
5904 *) as_dir=$as_dir/ ;;
5905 esac
5906 for ac_prog in grep ggrep
5907 do
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5910 as_fn_executable_p "$ac_path_GREP" || continue
5911 # Check for GNU ac_path_GREP and select it if it is found.
5912 # Check for GNU $ac_path_GREP
5913 case `"$ac_path_GREP" --version 2>&1` in
5914 *GNU*)
5915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5916 *)
5917 ac_count=0
5918 printf %s 0123456789 >"conftest.in"
5919 while :
5920 do
5921 cat "conftest.in" "conftest.in" >"conftest.tmp"
5922 mv "conftest.tmp" "conftest.in"
5923 cp "conftest.in" "conftest.nl"
5924 printf "%s\n" 'GREP' >> "conftest.nl"
5925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5927 as_fn_arith $ac_count + 1 && ac_count=$as_val
5928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5929 # Best one so far, save it but keep looking for a better one
5930 ac_cv_path_GREP="$ac_path_GREP"
5931 ac_path_GREP_max=$ac_count
5932 fi
5933 # 10*(2^10) chars as input seems more than enough
5934 test $ac_count -gt 10 && break
5935 done
5936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5937 esac
5938
5939 $ac_path_GREP_found && break 3
5940 done
5941 done
5942 done
5943 IFS=$as_save_IFS
5944 if test -z "$ac_cv_path_GREP"; then
5945 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5946 fi
5947 else
5948 ac_cv_path_GREP=$GREP
5949 fi
5950
5951 fi
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5953 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5954 GREP="$ac_cv_path_GREP"
5955
5956
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5958 printf %s "checking for egrep... " >&6; }
5959 if test ${ac_cv_path_EGREP+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else $as_nop
5963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5964 then ac_cv_path_EGREP="$GREP -E"
5965 else
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5971 do
5972 IFS=$as_save_IFS
5973 case $as_dir in #(((
5974 '') as_dir=./ ;;
5975 */) ;;
5976 *) as_dir=$as_dir/ ;;
5977 esac
5978 for ac_prog in egrep
5979 do
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5982 as_fn_executable_p "$ac_path_EGREP" || continue
5983 # Check for GNU ac_path_EGREP and select it if it is found.
5984 # Check for GNU $ac_path_EGREP
5985 case `"$ac_path_EGREP" --version 2>&1` in
5986 *GNU*)
5987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5988 *)
5989 ac_count=0
5990 printf %s 0123456789 >"conftest.in"
5991 while :
5992 do
5993 cat "conftest.in" "conftest.in" >"conftest.tmp"
5994 mv "conftest.tmp" "conftest.in"
5995 cp "conftest.in" "conftest.nl"
5996 printf "%s\n" 'EGREP' >> "conftest.nl"
5997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5999 as_fn_arith $ac_count + 1 && ac_count=$as_val
6000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6001 # Best one so far, save it but keep looking for a better one
6002 ac_cv_path_EGREP="$ac_path_EGREP"
6003 ac_path_EGREP_max=$ac_count
6004 fi
6005 # 10*(2^10) chars as input seems more than enough
6006 test $ac_count -gt 10 && break
6007 done
6008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6009 esac
6010
6011 $ac_path_EGREP_found && break 3
6012 done
6013 done
6014 done
6015 IFS=$as_save_IFS
6016 if test -z "$ac_cv_path_EGREP"; then
6017 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6018 fi
6019 else
6020 ac_cv_path_EGREP=$EGREP
6021 fi
6022
6023 fi
6024 fi
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6026 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6027 EGREP="$ac_cv_path_EGREP"
6028
6029
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6031 printf %s "checking for uid_t in sys/types.h... " >&6; }
6032 if test ${ac_cv_type_uid_t+y}
6033 then :
6034 printf %s "(cached) " >&6
6035 else $as_nop
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6039
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "uid_t" >/dev/null 2>&1
6043 then :
6044 ac_cv_type_uid_t=yes
6045 else $as_nop
6046 ac_cv_type_uid_t=no
6047 fi
6048 rm -rf conftest*
6049
6050 fi
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6052 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
6053 if test $ac_cv_type_uid_t = no; then
6054
6055 printf "%s\n" "#define uid_t int" >>confdefs.h
6056
6057
6058 printf "%s\n" "#define gid_t int" >>confdefs.h
6059
6060 fi
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6063 printf %s "checking for inline... " >&6; }
6064 if test ${ac_cv_c_inline+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else $as_nop
6068 ac_cv_c_inline=no
6069 for ac_kw in inline __inline__ __inline; do
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #ifndef __cplusplus
6073 typedef int foo_t;
6074 static $ac_kw foo_t static_foo (void) {return 0; }
6075 $ac_kw foo_t foo (void) {return 0; }
6076 #endif
6077
6078 _ACEOF
6079 if ac_fn_cxx_try_compile "$LINENO"
6080 then :
6081 ac_cv_c_inline=$ac_kw
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6084 test "$ac_cv_c_inline" != no && break
6085 done
6086
6087 fi
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6089 printf "%s\n" "$ac_cv_c_inline" >&6; }
6090
6091 case $ac_cv_c_inline in
6092 inline | yes) ;;
6093 *)
6094 case $ac_cv_c_inline in
6095 no) ac_val=;;
6096 *) ac_val=$ac_cv_c_inline;;
6097 esac
6098 cat >>confdefs.h <<_ACEOF
6099 #ifndef __cplusplus
6100 #define inline $ac_val
6101 #endif
6102 _ACEOF
6103 ;;
6104 esac
6105
6106 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6107 if test "x$ac_cv_type_mode_t" = xyes
6108 then :
6109
6110 else $as_nop
6111
6112 printf "%s\n" "#define mode_t int" >>confdefs.h
6113
6114 fi
6115
6116 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6117 if test "x$ac_cv_type_off_t" = xyes
6118 then :
6119
6120 else $as_nop
6121
6122 printf "%s\n" "#define off_t long int" >>confdefs.h
6123
6124 fi
6125
6126 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6127 if test "x$ac_cv_type_size_t" = xyes
6128 then :
6129
6130 else $as_nop
6131
6132 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6133
6134 fi
6135
6136
6137 # Check for functions
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
6139 printf %s "checking whether closedir returns void... " >&6; }
6140 if test ${ac_cv_func_closedir_void+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else $as_nop
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146
6147 #include <$ac_header_dirent>
6148
6149 int
6150 main (void)
6151 {
6152
6153 return closedir(0);
6154
6155 ;
6156 return 0;
6157 }
6158 _ACEOF
6159 if ac_fn_cxx_try_compile "$LINENO"
6160 then :
6161 ac_cv_func_closedir_void=no
6162 else $as_nop
6163 ac_cv_func_closedir_void=yes
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6166 fi
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
6168 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
6169 if test $ac_cv_func_closedir_void = yes; then
6170
6171 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
6172
6173 fi
6174
6175
6176
6177 # Make sure we can run config.sub.
6178 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6179 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6180
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6182 printf %s "checking build system type... " >&6; }
6183 if test ${ac_cv_build+y}
6184 then :
6185 printf %s "(cached) " >&6
6186 else $as_nop
6187 ac_build_alias=$build_alias
6188 test "x$ac_build_alias" = x &&
6189 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6190 test "x$ac_build_alias" = x &&
6191 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6192 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6193 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6194
6195 fi
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6197 printf "%s\n" "$ac_cv_build" >&6; }
6198 case $ac_cv_build in
6199 *-*-*) ;;
6200 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6201 esac
6202 build=$ac_cv_build
6203 ac_save_IFS=$IFS; IFS='-'
6204 set x $ac_cv_build
6205 shift
6206 build_cpu=$1
6207 build_vendor=$2
6208 shift; shift
6209 # Remember, the first character of IFS is used to create $*,
6210 # except with old shells:
6211 build_os=$*
6212 IFS=$ac_save_IFS
6213 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6214
6215
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6217 printf %s "checking host system type... " >&6; }
6218 if test ${ac_cv_host+y}
6219 then :
6220 printf %s "(cached) " >&6
6221 else $as_nop
6222 if test "x$host_alias" = x; then
6223 ac_cv_host=$ac_cv_build
6224 else
6225 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6226 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6227 fi
6228
6229 fi
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6231 printf "%s\n" "$ac_cv_host" >&6; }
6232 case $ac_cv_host in
6233 *-*-*) ;;
6234 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6235 esac
6236 host=$ac_cv_host
6237 ac_save_IFS=$IFS; IFS='-'
6238 set x $ac_cv_host
6239 shift
6240 host_cpu=$1
6241 host_vendor=$2
6242 shift; shift
6243 # Remember, the first character of IFS is used to create $*,
6244 # except with old shells:
6245 host_os=$*
6246 IFS=$ac_save_IFS
6247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6248
6249
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6251 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
6252 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
6253 then :
6254 printf %s "(cached) " >&6
6255 else $as_nop
6256 rm -f conftest.sym conftest.file
6257 echo >conftest.file
6258 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6259 if test "$cross_compiling" = yes
6260 then :
6261 case "$host_os" in # ((
6262 # Guess yes on glibc systems.
6263 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
6264 # If we don't know, assume the worst.
6265 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
6266 esac
6267 else $as_nop
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6271 int
6272 main (void)
6273 {
6274 struct stat sbuf;
6275 /* Linux will dereference the symlink and fail, as required by POSIX.
6276 That is better in the sense that it means we will not
6277 have to compile and use the lstat wrapper. */
6278 return lstat ("conftest.sym/", &sbuf) == 0;
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_cxx_try_run "$LINENO"
6284 then :
6285 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6286 else $as_nop
6287 ac_cv_func_lstat_dereferences_slashed_symlink=no
6288 fi
6289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6290 conftest.$ac_objext conftest.beam conftest.$ac_ext
6291 fi
6292
6293 else
6294 # If the `ln -s' command failed, then we probably don't even
6295 # have an lstat function.
6296 ac_cv_func_lstat_dereferences_slashed_symlink=no
6297 fi
6298 rm -f conftest.sym conftest.file
6299
6300 fi
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6302 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6303
6304 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6305
6306 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
6307
6308
6309 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6310 case " $LIBOBJS " in
6311 *" lstat.$ac_objext "* ) ;;
6312 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6313 ;;
6314 esac
6315
6316 fi
6317
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6319 printf %s "checking whether lstat accepts an empty string... " >&6; }
6320 if test ${ac_cv_func_lstat_empty_string_bug+y}
6321 then :
6322 printf %s "(cached) " >&6
6323 else $as_nop
6324 if test "$cross_compiling" = yes
6325 then :
6326 ac_cv_func_lstat_empty_string_bug=yes
6327 else $as_nop
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 $ac_includes_default
6331 int
6332 main (void)
6333 {
6334 struct stat sbuf;
6335 return lstat ("", &sbuf) == 0;
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 if ac_fn_cxx_try_run "$LINENO"
6341 then :
6342 ac_cv_func_lstat_empty_string_bug=no
6343 else $as_nop
6344 ac_cv_func_lstat_empty_string_bug=yes
6345 fi
6346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6347 conftest.$ac_objext conftest.beam conftest.$ac_ext
6348 fi
6349
6350 fi
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6352 printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
6353 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6354 case " $LIBOBJS " in
6355 *" lstat.$ac_objext "* ) ;;
6356 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6357 ;;
6358 esac
6359
6360
6361 printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
6362
6363 fi
6364
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6366 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
6367 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else $as_nop
6371 rm -f conftest.sym conftest.file
6372 echo >conftest.file
6373 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6374 if test "$cross_compiling" = yes
6375 then :
6376 case "$host_os" in # ((
6377 # Guess yes on glibc systems.
6378 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
6379 # If we don't know, assume the worst.
6380 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
6381 esac
6382 else $as_nop
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 $ac_includes_default
6386 int
6387 main (void)
6388 {
6389 struct stat sbuf;
6390 /* Linux will dereference the symlink and fail, as required by POSIX.
6391 That is better in the sense that it means we will not
6392 have to compile and use the lstat wrapper. */
6393 return lstat ("conftest.sym/", &sbuf) == 0;
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_cxx_try_run "$LINENO"
6399 then :
6400 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6401 else $as_nop
6402 ac_cv_func_lstat_dereferences_slashed_symlink=no
6403 fi
6404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6405 conftest.$ac_objext conftest.beam conftest.$ac_ext
6406 fi
6407
6408 else
6409 # If the `ln -s' command failed, then we probably don't even
6410 # have an lstat function.
6411 ac_cv_func_lstat_dereferences_slashed_symlink=no
6412 fi
6413 rm -f conftest.sym conftest.file
6414
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6417 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6418
6419 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6420
6421 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
6422
6423
6424 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6425 case " $LIBOBJS " in
6426 *" lstat.$ac_objext "* ) ;;
6427 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6428 ;;
6429 esac
6430
6431 fi
6432
6433
6434
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
6436 printf %s "checking whether utime accepts a null argument... " >&6; }
6437 if test ${ac_cv_func_utime_null+y}
6438 then :
6439 printf %s "(cached) " >&6
6440 else $as_nop
6441 rm -f conftest.data; >conftest.data
6442 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
6443 if test "$cross_compiling" = yes
6444 then :
6445 ac_cv_func_utime_null='guessing yes'
6446 else $as_nop
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 $ac_includes_default
6450 #ifdef HAVE_UTIME_H
6451 # include <utime.h>
6452 #endif
6453 int
6454 main (void)
6455 {
6456 struct stat s, t;
6457 return ! (stat ("conftest.data", &s) == 0
6458 && utime ("conftest.data", 0) == 0
6459 && stat ("conftest.data", &t) == 0
6460 && t.st_mtime >= s.st_mtime
6461 && t.st_mtime - s.st_mtime < 120);
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_cxx_try_run "$LINENO"
6467 then :
6468 ac_cv_func_utime_null=yes
6469 else $as_nop
6470 ac_cv_func_utime_null=no
6471 fi
6472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6473 conftest.$ac_objext conftest.beam conftest.$ac_ext
6474 fi
6475
6476 fi
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
6478 printf "%s\n" "$ac_cv_func_utime_null" >&6; }
6479 if test "x$ac_cv_func_utime_null" != xno; then
6480 ac_cv_func_utime_null=yes
6481
6482 printf "%s\n" "#define HAVE_UTIME_NULL 1" >>confdefs.h
6483
6484 fi
6485 rm -f conftest.data
6486
6487 ac_fn_cxx_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
6488 if test "x$ac_cv_func_fchdir" = xyes
6489 then :
6490 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
6491
6492 fi
6493 ac_fn_cxx_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
6494 if test "x$ac_cv_func_fdatasync" = xyes
6495 then :
6496 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
6497
6498 fi
6499 ac_fn_cxx_check_func "$LINENO" "fork" "ac_cv_func_fork"
6500 if test "x$ac_cv_func_fork" = xyes
6501 then :
6502 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
6503
6504 fi
6505 ac_fn_cxx_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
6506 if test "x$ac_cv_func_ftruncate" = xyes
6507 then :
6508 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
6509
6510 fi
6511 ac_fn_cxx_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
6512 if test "x$ac_cv_func_fstatat" = xyes
6513 then :
6514 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
6515
6516 fi
6517 ac_fn_cxx_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
6518 if test "x$ac_cv_func_utimensat" = xyes
6519 then :
6520 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
6521
6522 fi
6523 ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
6524 if test "x$ac_cv_func_posix_fallocate" = xyes
6525 then :
6526 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
6527
6528 fi
6529 ac_fn_cxx_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
6530 if test "x$ac_cv_func_copy_file_range" = xyes
6531 then :
6532 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
6533
6534 fi
6535 ac_fn_cxx_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
6536 if test "x$ac_cv_func_lchown" = xyes
6537 then :
6538 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
6539
6540 fi
6541 ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
6542 if test "x$ac_cv_func_memset" = xyes
6543 then :
6544 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6545
6546 fi
6547 ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
6548 if test "x$ac_cv_func_mkdir" = xyes
6549 then :
6550 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
6551
6552 fi
6553 ac_fn_cxx_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
6554 if test "x$ac_cv_func_mkfifo" = xyes
6555 then :
6556 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
6557
6558 fi
6559 ac_fn_cxx_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
6560 if test "x$ac_cv_func_rmdir" = xyes
6561 then :
6562 printf "%s\n" "#define HAVE_RMDIR 1" >>confdefs.h
6563
6564 fi
6565 ac_fn_cxx_check_func "$LINENO" "setxattr" "ac_cv_func_setxattr"
6566 if test "x$ac_cv_func_setxattr" = xyes
6567 then :
6568 printf "%s\n" "#define HAVE_SETXATTR 1" >>confdefs.h
6569
6570 fi
6571 ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
6572 if test "x$ac_cv_func_strdup" = xyes
6573 then :
6574 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
6575
6576 fi
6577 ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6578 if test "x$ac_cv_func_strerror" = xyes
6579 then :
6580 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6581
6582 fi
6583 ac_fn_cxx_check_func "$LINENO" "utime" "ac_cv_func_utime"
6584 if test "x$ac_cv_func_utime" = xyes
6585 then :
6586 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
6587
6588 fi
6589 ac_fn_cxx_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
6590 if test "x$ac_cv_func_mallinfo" = xyes
6591 then :
6592 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
6593
6594 fi
6595 ac_fn_cxx_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
6596 if test "x$ac_cv_func_mallinfo2" = xyes
6597 then :
6598 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
6599
6600 fi
6601
6602
6603 # Check for BSD 4.4 / RFC2292 style fd passing
6604
6605 ac_fn_cxx_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
6606 if test "x$ac_cv_func_recvmsg" = xyes
6607 then :
6608 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
6609
6610 fi
6611 ac_fn_cxx_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
6612 if test "x$ac_cv_func_sendmsg" = xyes
6613 then :
6614 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
6615
6616 fi
6617
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
6619 printf %s "checking for msg_control field in struct msghdr... " >&6; }
6620 if test ${ac_cv_have_control_in_msghdr+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else $as_nop
6624
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627
6628 #define _XOPEN_SOURCE 500
6629 #ifdef HAVE_SYS_TYPES_H
6630 #include <sys/types.h>
6631 #endif
6632 #include <sys/socket.h>
6633 #ifdef HAVE_SYS_UIO_H
6634 #include <sys/uio.h>
6635 #endif
6636
6637 int
6638 main (void)
6639 {
6640
6641 #ifdef msg_control
6642 #error msg_control defined
6643 #endif
6644 struct msghdr m;
6645 m.msg_control = 0;
6646 return 0;
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_cxx_try_compile "$LINENO"
6653 then :
6654 ac_cv_have_control_in_msghdr="yes"
6655 else $as_nop
6656 ac_cv_have_control_in_msghdr="no"
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6659
6660 fi
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
6662 printf "%s\n" "$ac_cv_have_control_in_msghdr" >&6; }
6663 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BSD 4.4 / RFC2292 style fd passing" >&5
6665 printf %s "checking BSD 4.4 / RFC2292 style fd passing... " >&6; }
6666 # Check whether --enable-fdpassing was given.
6667 if test ${enable_fdpassing+y}
6668 then :
6669 enableval=$enable_fdpassing; want_fdpassing=$enableval
6670 else $as_nop
6671 want_fdpassing="yes"
6672 fi
6673
6674
6675 if test "x$want_fdpassing" = "xyes"; then
6676 if test "$cross_compiling" = yes
6677 then :
6678 have_fdpass=0
6679 else $as_nop
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683
6684
6685 #ifdef HAVE_SYS_TYPES_H
6686 #include <sys/types.h>
6687 #endif
6688 #include <sys/wait.h>
6689 #include <stdio.h>
6690 #include <stdlib.h>
6691 #include <unistd.h>
6692 #include <string.h>
6693 #ifdef HAVE_SYS_UIO_H
6694 #include <sys/uio.h>
6695 #endif
6696 #include <signal.h>
6697 #include <sys/socket.h>
6698
6699 #if !defined CMSG_SPACE || !defined CMSG_LEN
6700 #ifndef ALIGN
6701 #define ALIGN(len) len
6702 #endif
6703
6704 #ifndef CMSG_SPACE
6705 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len))
6706 #endif
6707
6708 #ifndef CMSG_LEN
6709 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len)
6710 #endif
6711 #endif
6712
6713 #define TEST "test"
6714
6715 static int send_fd(int s, int fd)
6716 {
6717 struct msghdr msg;
6718 struct cmsghdr *cmsg;
6719 unsigned char fdbuf[CMSG_SPACE(sizeof(int))];
6720 struct iovec iov[1];
6721 char dummy[] = "";
6722
6723 iov[0].iov_base = dummy;
6724 iov[0].iov_len = 1;
6725
6726 memset(&msg, 0, sizeof(msg));
6727 msg.msg_control = fdbuf;
6728 /* must send/receive at least one byte */
6729 msg.msg_iov = iov;
6730 msg.msg_iovlen = 1;
6731 msg.msg_controllen = CMSG_LEN(sizeof(int));
6732
6733 cmsg = CMSG_FIRSTHDR(&msg);
6734 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
6735 cmsg->cmsg_level = SOL_SOCKET;
6736 cmsg->cmsg_type = SCM_RIGHTS;
6737 *(int *)CMSG_DATA(cmsg) = fd;
6738
6739 if (sendmsg(s, &msg, 0) == -1) {
6740 perror("sendmsg");
6741 close(s);
6742 return -1;
6743 }
6744 return 0;
6745 }
6746
6747 static int testfd(int desc)
6748 {
6749 char buf[256];
6750 if(read(desc, buf, sizeof(buf)) != sizeof(TEST)) {
6751 fprintf(stderr, "test data not received correctly!");
6752 return 1;
6753 }
6754 return memcmp(buf, TEST, sizeof(TEST));
6755 }
6756
6757 static int recv_fd(int desc)
6758 {
6759 unsigned char buf[CMSG_SPACE(sizeof(int))];
6760 struct msghdr msg;
6761 struct cmsghdr *cmsg;
6762 struct iovec iov[1];
6763 char dummy;
6764 int ret=2;
6765
6766 memset(&msg, 0, sizeof(msg));
6767 iov[0].iov_base = &dummy;
6768 iov[0].iov_len = 1;
6769 msg.msg_iov = iov;
6770 msg.msg_iovlen = 1;
6771 msg.msg_control = buf;
6772 msg.msg_controllen = sizeof(buf);
6773
6774 if (recvmsg(desc, &msg, 0) == -1) {
6775 perror("recvmsg failed!");
6776 return -1;
6777 }
6778 if ((msg.msg_flags & MSG_TRUNC) || (msg.msg_flags & MSG_CTRUNC)) {
6779 fprintf(stderr, "control message truncated");
6780 return -1;
6781 }
6782 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
6783 cmsg = CMSG_NXTHDR(&msg, cmsg)) {
6784 if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) &&
6785 cmsg->cmsg_level == SOL_SOCKET &&
6786 cmsg->cmsg_type == SCM_RIGHTS) {
6787 int fd = *(int *)CMSG_DATA(cmsg);
6788 ret = testfd(fd);
6789 close(fd);
6790 }
6791 }
6792 return ret;
6793 }
6794
6795 int main(void)
6796 {
6797 int fd[2];
6798 int pip[2];
6799 pid_t pid;
6800 int status;
6801
6802 if(pipe(pip)) {
6803 perror("pipe");
6804 return 1;
6805 }
6806
6807 if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
6808 perror("socketpair");
6809 return 1;
6810 }
6811
6812 if((pid=fork()) < 0) {
6813 perror("fork");
6814 } else if (!pid) {
6815 exit( recv_fd(fd[1]) );
6816 } else {
6817 /* parent */
6818 if(send_fd(fd[0], pip[0]) == -1) {
6819 kill(pid, 9);
6820 waitpid(pid, NULL, 0);
6821 return 2;
6822 }
6823 if(write(pip[1], TEST, sizeof(TEST)) != sizeof(TEST)) {
6824 close(pip[1]);
6825 return -1;
6826 }
6827 close(pip[1]);
6828 waitpid(pid, &status, 0);
6829 }
6830 return status;
6831 }
6832
6833
6834 _ACEOF
6835 if ac_fn_cxx_try_run "$LINENO"
6836 then :
6837 have_fdpass=1; fdpass_need_xopen=0
6838 else $as_nop
6839 have_fdpass=0
6840 fi
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6843 fi
6844
6845
6846 if test $have_fdpass = 0; then
6847 if test "$cross_compiling" = yes
6848 then :
6849 have_fdpass=0
6850 else $as_nop
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853
6854
6855 #define _XOPEN_SOURCE 500
6856 #ifdef HAVE_SYS_TYPES_H
6857 #include <sys/types.h>
6858 #endif
6859 #include <sys/wait.h>
6860 #include <stdio.h>
6861 #include <stdlib.h>
6862 #include <unistd.h>
6863 #include <string.h>
6864 #ifdef HAVE_SYS_UIO_H
6865 #include <sys/uio.h>
6866 #endif
6867 #include <signal.h>
6868 #include <sys/socket.h>
6869
6870 #if !defined CMSG_SPACE || !defined CMSG_LEN
6871 #ifndef ALIGN
6872 #define ALIGN(len) len
6873 #endif
6874
6875 #ifndef CMSG_SPACE
6876 #define CMSG_SPACE(len) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(len))
6877 #endif
6878
6879 #ifndef CMSG_LEN
6880 #define CMSG_LEN(len) (ALIGN(sizeof(struct cmsghdr)) + len)
6881 #endif
6882 #endif
6883
6884 #define TEST "test"
6885
6886 static int send_fd(int s, int fd)
6887 {
6888 struct msghdr msg;
6889 struct cmsghdr *cmsg;
6890 unsigned char fdbuf[CMSG_SPACE(sizeof(int))];
6891 struct iovec iov[1];
6892 char dummy[] = "";
6893
6894 iov[0].iov_base = dummy;
6895 iov[0].iov_len = 1;
6896
6897 memset(&msg, 0, sizeof(msg));
6898 msg.msg_control = fdbuf;
6899 /* must send/receive at least one byte */
6900 msg.msg_iov = iov;
6901 msg.msg_iovlen = 1;
6902 msg.msg_controllen = CMSG_LEN(sizeof(int));
6903
6904 cmsg = CMSG_FIRSTHDR(&msg);
6905 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
6906 cmsg->cmsg_level = SOL_SOCKET;
6907 cmsg->cmsg_type = SCM_RIGHTS;
6908 *(int *)CMSG_DATA(cmsg) = fd;
6909
6910 if (sendmsg(s, &msg, 0) == -1) {
6911 perror("sendmsg");
6912 close(s);
6913 return -1;
6914 }
6915 return 0;
6916 }
6917
6918 static int testfd(int desc)
6919 {
6920 char buf[256];
6921 if(read(desc, buf, sizeof(buf)) != sizeof(TEST)) {
6922 fprintf(stderr, "test data not received correctly!");
6923 return 1;
6924 }
6925 return memcmp(buf, TEST, sizeof(TEST));
6926 }
6927
6928 static int recv_fd(int desc)
6929 {
6930 unsigned char buf[CMSG_SPACE(sizeof(int))];
6931 struct msghdr msg;
6932 struct cmsghdr *cmsg;
6933 struct iovec iov[1];
6934 char dummy;
6935 int ret=2;
6936
6937 memset(&msg, 0, sizeof(msg));
6938 iov[0].iov_base = &dummy;
6939 iov[0].iov_len = 1;
6940 msg.msg_iov = iov;
6941 msg.msg_iovlen = 1;
6942 msg.msg_control = buf;
6943 msg.msg_controllen = sizeof(buf);
6944
6945 if (recvmsg(desc, &msg, 0) == -1) {
6946 perror("recvmsg failed!");
6947 return -1;
6948 }
6949 if ((msg.msg_flags & MSG_TRUNC) || (msg.msg_flags & MSG_CTRUNC)) {
6950 fprintf(stderr, "control message truncated");
6951 return -1;
6952 }
6953 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL;
6954 cmsg = CMSG_NXTHDR(&msg, cmsg)) {
6955 if (cmsg->cmsg_len == CMSG_LEN(sizeof(int)) &&
6956 cmsg->cmsg_level == SOL_SOCKET &&
6957 cmsg->cmsg_type == SCM_RIGHTS) {
6958 int fd = *(int *)CMSG_DATA(cmsg);
6959 ret = testfd(fd);
6960 close(fd);
6961 }
6962 }
6963 return ret;
6964 }
6965
6966 int main(void)
6967 {
6968 int fd[2];
6969 int pip[2];
6970 pid_t pid;
6971 int status;
6972
6973 if(pipe(pip)) {
6974 perror("pipe");
6975 return 1;
6976 }
6977
6978 if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
6979 perror("socketpair");
6980 return 1;
6981 }
6982
6983 if((pid=fork()) < 0) {
6984 perror("fork");
6985 } else if (!pid) {
6986 exit( recv_fd(fd[1]) );
6987 } else {
6988 /* parent */
6989 if(send_fd(fd[0], pip[0]) == -1) {
6990 kill(pid, 9);
6991 waitpid(pid, NULL, 0);
6992 return 2;
6993 }
6994 if(write(pip[1], TEST, sizeof(TEST)) != sizeof(TEST)) {
6995 close(pip[1]);
6996 return -1;
6997 }
6998 close(pip[1]);
6999 waitpid(pid, &status, 0);
7000 }
7001 return status;
7002 }
7003
7004
7005 _ACEOF
7006 if ac_fn_cxx_try_run "$LINENO"
7007 then :
7008 have_fdpass=1; fdpass_need_xopen=1
7009 else $as_nop
7010 have_fdpass=0
7011 fi
7012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7013 conftest.$ac_objext conftest.beam conftest.$ac_ext
7014 fi
7015
7016 fi
7017
7018 if test $have_fdpass = 1; then
7019
7020 printf "%s\n" "#define HAVE_FD_PASSING 1" >>confdefs.h
7021
7022 if test $fdpass_need_xopen = 1; then
7023
7024 printf "%s\n" "#define FDPASS_NEED_XOPEN 1" >>confdefs.h
7025
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, by defining _XOPEN_SOURCE" >&5
7027 printf "%s\n" "yes, by defining _XOPEN_SOURCE" >&6; }
7028 else
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7030 printf "%s\n" "yes" >&6; }
7031 fi
7032 else
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7035 fi
7036
7037 else
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7039 printf "%s\n" "disabled" >&6; }
7040 fi
7041 fi
7042
7043
7044 # Set initial CPPFLAGS and LDFLAGS
7045 CPPFLAGS="$CPPFLAGS -Wall -Werror -Wextra -Wdate-time"
7046 CPPFLAGS="$CPPFLAGS -Wformat -Wformat-security"
7047 CPPFLAGS="$CPPFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
7048 CPPFLAGS="$CPPFLAGS -Wformat-nonliteral -Wpointer-arith -Wredundant-decls"
7049 CPPFLAGS="$CPPFLAGS -Wreturn-type -Wshadow -Wswitch -Wunused-parameter -Wwrite-strings"
7050 CPPFLAGS="$CPPFLAGS -fstack-protector-strong -fPIC -fPIE"
7051 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,--fatal-warnings"
7052
7053 # Check whether to add -D_FORTIFY_SOURCE=? to CPPFLAGS
7054
7055 ac_save_cflags=$CFLAGS
7056 ac_cwerror_flag=yes
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror" >&5
7058 printf %s "checking whether C++ compiler accepts -Werror... " >&6; }
7059 if test ${ax_cv_check_cxxflags___Werror+y}
7060 then :
7061 printf %s "(cached) " >&6
7062 else $as_nop
7063
7064 ax_check_save_flags=$CXXFLAGS
7065 CXXFLAGS="$CXXFLAGS -Werror"
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068
7069 int
7070 main (void)
7071 {
7072
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_cxx_try_compile "$LINENO"
7078 then :
7079 ax_cv_check_cxxflags___Werror=yes
7080 else $as_nop
7081 ax_cv_check_cxxflags___Werror=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7084 CXXFLAGS=$ax_check_save_flags
7085 fi
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror" >&5
7087 printf "%s\n" "$ax_cv_check_cxxflags___Werror" >&6; }
7088 if test "x$ax_cv_check_cxxflags___Werror" = xyes
7089 then :
7090 CFLAGS="$CFLAGS -Werror"
7091 else $as_nop
7092 :
7093 fi
7094
7095 ax_add_fortify_3_failed=
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS" >&5
7097 printf %s "checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS... " >&6; }
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100
7101
7102 int
7103 main (void)
7104 {
7105
7106 #ifndef _FORTIFY_SOURCE
7107 return 0;
7108 #else
7109 _FORTIFY_SOURCE_already_defined;
7110 #endif
7111
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_cxx_try_link "$LINENO"
7118 then :
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121
7122
7123 #define _FORTIFY_SOURCE 3
7124 #include <string.h>
7125 int main(void) {
7126 char *s = " ";
7127 strcpy(s, "x");
7128 return strlen(s)-1;
7129 }
7130
7131
7132 _ACEOF
7133 if ac_fn_cxx_try_link "$LINENO"
7134 then :
7135
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7137 printf "%s\n" "yes" >&6; }
7138 CFLAGS=$ac_save_cflags
7139 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=3"
7140
7141 else $as_nop
7142
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 printf "%s\n" "no" >&6; }
7145 ax_add_fortify_3_failed=1
7146
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7149 conftest$ac_exeext conftest.$ac_ext
7150 else $as_nop
7151
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 printf "%s\n" "no" >&6; }
7154 ax_add_fortify_3_failed=1
7155
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158 conftest$ac_exeext conftest.$ac_ext
7159 if test -n "$ax_add_fortify_3_failed"
7160 then
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
7162 printf %s "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165
7166
7167 int
7168 main (void)
7169 {
7170
7171 #ifndef _FORTIFY_SOURCE
7172 return 0;
7173 #else
7174 _FORTIFY_SOURCE_already_defined;
7175 #endif
7176
7177
7178 ;
7179 return 0;
7180 }
7181 _ACEOF
7182 if ac_fn_cxx_try_link "$LINENO"
7183 then :
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186
7187
7188 #define _FORTIFY_SOURCE 2
7189 #include <string.h>
7190 int main(void) {
7191 char *s = " ";
7192 strcpy(s, "x");
7193 return strlen(s)-1;
7194 }
7195
7196
7197 _ACEOF
7198 if ac_fn_cxx_try_link "$LINENO"
7199 then :
7200
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 printf "%s\n" "yes" >&6; }
7203 CFLAGS=$ac_save_cflags
7204 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
7205
7206 else $as_nop
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 printf "%s\n" "no" >&6; }
7210 CFLAGS=$ac_save_cflags
7211
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7214 conftest$ac_exeext conftest.$ac_ext
7215 else $as_nop
7216
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 printf "%s\n" "no" >&6; }
7219 CFLAGS=$ac_save_cflags
7220
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7223 conftest$ac_exeext conftest.$ac_ext
7224 fi
7225
7226
7227 # Checks for boost
7228
7229
7230 # Check whether --with-boost was given.
7231 if test ${with_boost+y}
7232 then :
7233 withval=$with_boost;
7234 case $withval in #(
7235 no) :
7236 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
7237 yes) :
7238 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
7239 *) :
7240 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
7241 esac
7242
7243 else $as_nop
7244 want_boost="yes"
7245 fi
7246
7247
7248
7249
7250 # Check whether --with-boost-libdir was given.
7251 if test ${with_boost_libdir+y}
7252 then :
7253 withval=$with_boost_libdir;
7254 if test -d "$withval"
7255 then :
7256 _AX_BOOST_BASE_boost_lib_path="$withval"
7257 else $as_nop
7258 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
7259 fi
7260
7261 else $as_nop
7262 _AX_BOOST_BASE_boost_lib_path=""
7263 fi
7264
7265
7266 BOOST_LDFLAGS=""
7267 BOOST_CPPFLAGS=""
7268 if test "x$want_boost" = "xyes"
7269 then :
7270
7271
7272 if test "x1.33" = "x"
7273 then :
7274 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
7275 else $as_nop
7276 _AX_BOOST_BASE_TONUMERICVERSION_req="1.33"
7277 fi
7278 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
7279 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
7280 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
7281 then :
7282 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
7283 fi
7284 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
7285 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
7286 then :
7287 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
7288 fi
7289 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7290 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
7291 then :
7292 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
7293 fi
7294 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
7295 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
7296
7297 succeeded=no
7298
7299
7300
7301 case ${host_cpu} in #(
7302 x86_64) :
7303 libsubdirs="lib64 libx32 lib lib64" ;; #(
7304 mips*64*) :
7305 libsubdirs="lib64 lib32 lib lib64" ;; #(
7306 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k|loongarch64) :
7307 libsubdirs="lib64 lib lib64" ;; #(
7308 *) :
7309 libsubdirs="lib"
7310 ;;
7311 esac
7312
7313 case ${host_cpu} in #(
7314 i?86) :
7315 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
7316 armv7l) :
7317 multiarch_libsubdir="lib/arm-${host_os}" ;; #(
7318 *) :
7319 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
7320 ;;
7321 esac
7322
7323 if test "x$_AX_BOOST_BASE_boost_path" != "x"
7324 then :
7325
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.33 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
7327 printf %s "checking for boostlib >= 1.33 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
7328 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
7329 then :
7330
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7332 printf "%s\n" "yes" >&6; }
7333 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
7334 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.33 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
7336 printf %s "checking for boostlib >= 1.33 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
7337 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"
7338 then :
7339
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 printf "%s\n" "yes" >&6; }
7342 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
7343 break;
7344
7345 else $as_nop
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 printf "%s\n" "no" >&6; }
7348 fi
7349 done
7350 else $as_nop
7351
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 printf "%s\n" "no" >&6; }
7354 fi
7355
7356 else $as_nop
7357
7358 if test X"$cross_compiling" = Xyes; then
7359 search_libsubdirs=$multiarch_libsubdir
7360 else
7361 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
7362 fi
7363 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local /opt/homebrew ; do
7364 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
7365 for libsubdir in $search_libsubdirs ; do
7366 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7367 done
7368 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
7369 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
7370 break;
7371 fi
7372 done
7373
7374 fi
7375
7376 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
7377 then :
7378 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
7379 fi
7380
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.33 ($WANT_BOOST_VERSION)" >&5
7382 printf %s "checking for boostlib >= 1.33 ($WANT_BOOST_VERSION)... " >&6; }
7383 CPPFLAGS_SAVED="$CPPFLAGS"
7384 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7385 export CPPFLAGS
7386
7387 LDFLAGS_SAVED="$LDFLAGS"
7388 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7389 export LDFLAGS
7390
7391
7392 ac_ext=cpp
7393 ac_cpp='$CXXCPP $CPPFLAGS'
7394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7397
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400
7401 #include <boost/version.hpp>
7402
7403 int
7404 main (void)
7405 {
7406
7407 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_cxx_try_compile "$LINENO"
7414 then :
7415
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7417 printf "%s\n" "yes" >&6; }
7418 succeeded=yes
7419 found_system=yes
7420
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7423 ac_ext=cpp
7424 ac_cpp='$CXXCPP $CPPFLAGS'
7425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7428
7429
7430
7431
7432 if test "x$succeeded" != "xyes" ; then
7433 CPPFLAGS="$CPPFLAGS_SAVED"
7434 LDFLAGS="$LDFLAGS_SAVED"
7435 BOOST_CPPFLAGS=
7436 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7437 BOOST_LDFLAGS=
7438 fi
7439 _version=0
7440 if test -n "$_AX_BOOST_BASE_boost_path" ; then
7441 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
7442 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
7443 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7444 V_CHECK=`expr $_version_tmp \> $_version`
7445 if test "x$V_CHECK" = "x1" ; then
7446 _version=$_version_tmp
7447 fi
7448 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7449 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
7450 done
7451 if test -z "$BOOST_CPPFLAGS"; then
7452 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
7453 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
7454 fi
7455 fi
7456 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
7457 for libsubdir in $libsubdirs ; do
7458 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7459 done
7460 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
7461 fi
7462 fi
7463 else
7464 if test "x$cross_compiling" != "xyes" ; then
7465 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local /opt/homebrew ; do
7466 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
7467 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
7468 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
7469 V_CHECK=`expr $_version_tmp \> $_version`
7470 if test "x$V_CHECK" = "x1" ; then
7471 _version=$_version_tmp
7472 best_path=$_AX_BOOST_BASE_boost_path
7473 fi
7474 done
7475 fi
7476 done
7477
7478 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
7479 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
7480 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7481 for libsubdir in $libsubdirs ; do
7482 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7483 done
7484 BOOST_LDFLAGS="-L$best_path/$libsubdir"
7485 fi
7486 fi
7487
7488 if test -n "$BOOST_ROOT" ; then
7489 for libsubdir in $libsubdirs ; do
7490 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
7491 done
7492 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
7493 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
7494 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
7495 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
7496 V_CHECK=`expr $stage_version_shorten \>\= $_version`
7497 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
7499 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
7500 BOOST_CPPFLAGS="-I$BOOST_ROOT"
7501 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
7502 fi
7503 fi
7504 fi
7505 fi
7506
7507 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7508 export CPPFLAGS
7509 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7510 export LDFLAGS
7511
7512 ac_ext=cpp
7513 ac_cpp='$CXXCPP $CPPFLAGS'
7514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7517
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520
7521 #include <boost/version.hpp>
7522
7523 int
7524 main (void)
7525 {
7526
7527 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
7528
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_cxx_try_compile "$LINENO"
7534 then :
7535
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537 printf "%s\n" "yes" >&6; }
7538 succeeded=yes
7539 found_system=yes
7540
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7543 ac_ext=cpp
7544 ac_cpp='$CXXCPP $CPPFLAGS'
7545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7548
7549 fi
7550
7551 if test "x$succeeded" != "xyes" ; then
7552 if test "x$_version" = "x0" ; then
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.33 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
7554 printf "%s\n" "$as_me: We could not detect the boost libraries (version 1.33 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
7555 else
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
7557 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
7558 fi
7559 # execute ACTION-IF-NOT-FOUND (if present):
7560 :
7561 else
7562
7563 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
7564
7565 # execute ACTION-IF-FOUND (if present):
7566 :
7567 fi
7568
7569 CPPFLAGS="$CPPFLAGS_SAVED"
7570 LDFLAGS="$LDFLAGS_SAVED"
7571
7572
7573 fi
7574
7575
7576
7577 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
7578 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
7579
7580 # Check for libfuse3
7581
7582
7583
7584
7585
7586
7587
7588 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7589 if test -n "$ac_tool_prefix"; then
7590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7591 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 printf %s "checking for $ac_word... " >&6; }
7594 if test ${ac_cv_path_PKG_CONFIG+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 case $PKG_CONFIG in
7599 [\\/]* | ?:[\\/]*)
7600 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7601 ;;
7602 *)
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 case $as_dir in #(((
7608 '') as_dir=./ ;;
7609 */) ;;
7610 *) as_dir=$as_dir/ ;;
7611 esac
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7614 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618 done
7619 done
7620 IFS=$as_save_IFS
7621
7622 ;;
7623 esac
7624 fi
7625 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7626 if test -n "$PKG_CONFIG"; then
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7628 printf "%s\n" "$PKG_CONFIG" >&6; }
7629 else
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 printf "%s\n" "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_path_PKG_CONFIG"; then
7637 ac_pt_PKG_CONFIG=$PKG_CONFIG
7638 # Extract the first word of "pkg-config", so it can be a program name with args.
7639 set dummy pkg-config; ac_word=$2
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 printf %s "checking for $ac_word... " >&6; }
7642 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else $as_nop
7646 case $ac_pt_PKG_CONFIG in
7647 [\\/]* | ?:[\\/]*)
7648 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7649 ;;
7650 *)
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 case $as_dir in #(((
7656 '') as_dir=./ ;;
7657 */) ;;
7658 *) as_dir=$as_dir/ ;;
7659 esac
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7662 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
7663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666 done
7667 done
7668 IFS=$as_save_IFS
7669
7670 ;;
7671 esac
7672 fi
7673 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7674 if test -n "$ac_pt_PKG_CONFIG"; then
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7676 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7677 else
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 printf "%s\n" "no" >&6; }
7680 fi
7681
7682 if test "x$ac_pt_PKG_CONFIG" = x; then
7683 PKG_CONFIG=""
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 PKG_CONFIG=$ac_pt_PKG_CONFIG
7692 fi
7693 else
7694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7695 fi
7696
7697 fi
7698 if test -n "$PKG_CONFIG"; then
7699 _pkg_min_version=0.9.0
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7701 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 printf "%s\n" "yes" >&6; }
7705 else
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 printf "%s\n" "no" >&6; }
7708 PKG_CONFIG=""
7709 fi
7710 fi
7711
7712 pkg_failed=no
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3 >= 3" >&5
7714 printf %s "checking for fuse3 >= 3... " >&6; }
7715
7716 if test -n "$FUSE3_CFLAGS"; then
7717 pkg_cv_FUSE3_CFLAGS="$FUSE3_CFLAGS"
7718 elif test -n "$PKG_CONFIG"; then
7719 if test -n "$PKG_CONFIG" && \
7720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3\""; } >&5
7721 ($PKG_CONFIG --exists --print-errors "fuse3 >= 3") 2>&5
7722 ac_status=$?
7723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }; then
7725 pkg_cv_FUSE3_CFLAGS=`$PKG_CONFIG --cflags "fuse3 >= 3" 2>/dev/null`
7726 test "x$?" != "x0" && pkg_failed=yes
7727 else
7728 pkg_failed=yes
7729 fi
7730 else
7731 pkg_failed=untried
7732 fi
7733 if test -n "$FUSE3_LIBS"; then
7734 pkg_cv_FUSE3_LIBS="$FUSE3_LIBS"
7735 elif test -n "$PKG_CONFIG"; then
7736 if test -n "$PKG_CONFIG" && \
7737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3\""; } >&5
7738 ($PKG_CONFIG --exists --print-errors "fuse3 >= 3") 2>&5
7739 ac_status=$?
7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 pkg_cv_FUSE3_LIBS=`$PKG_CONFIG --libs "fuse3 >= 3" 2>/dev/null`
7743 test "x$?" != "x0" && pkg_failed=yes
7744 else
7745 pkg_failed=yes
7746 fi
7747 else
7748 pkg_failed=untried
7749 fi
7750
7751
7752
7753 if test $pkg_failed = yes; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 printf "%s\n" "no" >&6; }
7756
7757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7758 _pkg_short_errors_supported=yes
7759 else
7760 _pkg_short_errors_supported=no
7761 fi
7762 if test $_pkg_short_errors_supported = yes; then
7763 FUSE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3 >= 3" 2>&1`
7764 else
7765 FUSE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3 >= 3" 2>&1`
7766 fi
7767 # Put the nasty error message in config.log where it belongs
7768 echo "$FUSE3_PKG_ERRORS" >&5
7769
7770 as_fn_error $? "Package requirements (fuse3 >= 3) were not met:
7771
7772 $FUSE3_PKG_ERRORS
7773
7774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7775 installed software in a non-standard prefix.
7776
7777 Alternatively, you may set the environment variables FUSE3_CFLAGS
7778 and FUSE3_LIBS to avoid the need to call pkg-config.
7779 See the pkg-config man page for more details." "$LINENO" 5
7780 elif test $pkg_failed = untried; then
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 printf "%s\n" "no" >&6; }
7783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7785 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7786 is in your PATH or set the PKG_CONFIG environment variable to the full
7787 path to pkg-config.
7788
7789 Alternatively, you may set the environment variables FUSE3_CFLAGS
7790 and FUSE3_LIBS to avoid the need to call pkg-config.
7791 See the pkg-config man page for more details.
7792
7793 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7794 See \`config.log' for more details" "$LINENO" 5; }
7795 else
7796 FUSE3_CFLAGS=$pkg_cv_FUSE3_CFLAGS
7797 FUSE3_LIBS=$pkg_cv_FUSE3_LIBS
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 printf "%s\n" "yes" >&6; }
7800 CPPFLAGS="$CPPFLAGS $FUSE3_CFLAGS -pthread -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=31"
7801 LIBS="$LIBS $FUSE3_LIBS"
7802 fi
7803
7804 pkg_failed=no
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3 >= 3.8" >&5
7806 printf %s "checking for fuse3 >= 3.8... " >&6; }
7807
7808 if test -n "$FUSE38_CFLAGS"; then
7809 pkg_cv_FUSE38_CFLAGS="$FUSE38_CFLAGS"
7810 elif test -n "$PKG_CONFIG"; then
7811 if test -n "$PKG_CONFIG" && \
7812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3.8\""; } >&5
7813 ($PKG_CONFIG --exists --print-errors "fuse3 >= 3.8") 2>&5
7814 ac_status=$?
7815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816 test $ac_status = 0; }; then
7817 pkg_cv_FUSE38_CFLAGS=`$PKG_CONFIG --cflags "fuse3 >= 3.8" 2>/dev/null`
7818 test "x$?" != "x0" && pkg_failed=yes
7819 else
7820 pkg_failed=yes
7821 fi
7822 else
7823 pkg_failed=untried
7824 fi
7825 if test -n "$FUSE38_LIBS"; then
7826 pkg_cv_FUSE38_LIBS="$FUSE38_LIBS"
7827 elif test -n "$PKG_CONFIG"; then
7828 if test -n "$PKG_CONFIG" && \
7829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3 >= 3.8\""; } >&5
7830 ($PKG_CONFIG --exists --print-errors "fuse3 >= 3.8") 2>&5
7831 ac_status=$?
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833 test $ac_status = 0; }; then
7834 pkg_cv_FUSE38_LIBS=`$PKG_CONFIG --libs "fuse3 >= 3.8" 2>/dev/null`
7835 test "x$?" != "x0" && pkg_failed=yes
7836 else
7837 pkg_failed=yes
7838 fi
7839 else
7840 pkg_failed=untried
7841 fi
7842
7843
7844
7845 if test $pkg_failed = yes; then
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7848
7849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7850 _pkg_short_errors_supported=yes
7851 else
7852 _pkg_short_errors_supported=no
7853 fi
7854 if test $_pkg_short_errors_supported = yes; then
7855 FUSE38_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3 >= 3.8" 2>&1`
7856 else
7857 FUSE38_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3 >= 3.8" 2>&1`
7858 fi
7859 # Put the nasty error message in config.log where it belongs
7860 echo "$FUSE38_PKG_ERRORS" >&5
7861
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling lseek() support as building with FUSE version < 3.8.0" >&5
7863 printf "%s\n" "$as_me: WARNING: disabling lseek() support as building with FUSE version < 3.8.0" >&2;}
7864 elif test $pkg_failed = untried; then
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 printf "%s\n" "no" >&6; }
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling lseek() support as building with FUSE version < 3.8.0" >&5
7868 printf "%s\n" "$as_me: WARNING: disabling lseek() support as building with FUSE version < 3.8.0" >&2;}
7869 else
7870 FUSE38_CFLAGS=$pkg_cv_FUSE38_CFLAGS
7871 FUSE38_LIBS=$pkg_cv_FUSE38_LIBS
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7873 printf "%s\n" "yes" >&6; }
7874
7875 printf "%s\n" "#define HAVE_FUSE_LSEEK 1" >>confdefs.h
7876
7877 fi
7878
7879 # Check for libulockmgr
7880 ac_fn_cxx_check_header_compile "$LINENO" "ulockmgr.h" "ac_cv_header_ulockmgr_h" "$ac_includes_default"
7881 if test "x$ac_cv_header_ulockmgr_h" = xyes
7882 then :
7883
7884 printf "%s\n" "#define HAVE_LIBULOCKMGR 1" >>confdefs.h
7885
7886 fi
7887
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ulockmgr_op in -lulockmgr" >&5
7889 printf %s "checking for ulockmgr_op in -lulockmgr... " >&6; }
7890 if test ${ac_cv_lib_ulockmgr_ulockmgr_op+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else $as_nop
7894 ac_check_lib_save_LIBS=$LIBS
7895 LIBS="-lulockmgr $LIBS"
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898
7899 namespace conftest {
7900 extern "C" int ulockmgr_op ();
7901 }
7902 int
7903 main (void)
7904 {
7905 return conftest::ulockmgr_op ();
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_cxx_try_link "$LINENO"
7911 then :
7912 ac_cv_lib_ulockmgr_ulockmgr_op=yes
7913 else $as_nop
7914 ac_cv_lib_ulockmgr_ulockmgr_op=no
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7917 conftest$ac_exeext conftest.$ac_ext
7918 LIBS=$ac_check_lib_save_LIBS
7919 fi
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ulockmgr_ulockmgr_op" >&5
7921 printf "%s\n" "$ac_cv_lib_ulockmgr_ulockmgr_op" >&6; }
7922 if test "x$ac_cv_lib_ulockmgr_ulockmgr_op" = xyes
7923 then :
7924 LIBS="$LIBS -lulockmgr"
7925 fi
7926
7927
7928 # Check for libpoco
7929 ac_fn_cxx_check_header_compile "$LINENO" "Poco/Exception.h" "ac_cv_header_Poco_Exception_h" "$ac_includes_default"
7930 if test "x$ac_cv_header_Poco_Exception_h" = xyes
7931 then :
7932
7933 else $as_nop
7934 as_fn_error $? "Poco/Exception.h" "$LINENO" 5
7935 fi
7936
7937 ac_fn_cxx_check_header_compile "$LINENO" "Poco/Logger.h" "ac_cv_header_Poco_Logger_h" "$ac_includes_default"
7938 if test "x$ac_cv_header_Poco_Logger_h" = xyes
7939 then :
7940
7941 else $as_nop
7942 as_fn_error $? "Poco/Logger.h" "$LINENO" 5
7943 fi
7944
7945 ac_fn_cxx_check_header_compile "$LINENO" "Poco/ExpireLRUCache.h" "ac_cv_header_Poco_ExpireLRUCache_h" "$ac_includes_default"
7946 if test "x$ac_cv_header_Poco_ExpireLRUCache_h" = xyes
7947 then :
7948
7949 else $as_nop
7950 as_fn_error $? "Poco/ExpireLRUCache.h not found!" "$LINENO" 5
7951 fi
7952
7953 ac_fn_cxx_check_header_compile "$LINENO" "Poco/Net/MailMessage.h" "ac_cv_header_Poco_Net_MailMessage_h" "$ac_includes_default"
7954 if test "x$ac_cv_header_Poco_Net_MailMessage_h" = xyes
7955 then :
7956
7957 else $as_nop
7958 as_fn_error $? "Poco/Net/MailMessage.h" "$LINENO" 5
7959 fi
7960
7961 ac_fn_cxx_check_header_compile "$LINENO" "Poco/Net/MailRecipient.h" "ac_cv_header_Poco_Net_MailRecipient_h" "$ac_includes_default"
7962 if test "x$ac_cv_header_Poco_Net_MailRecipient_h" = xyes
7963 then :
7964
7965 else $as_nop
7966 as_fn_error $? "Poco/Net/MailRecipient.h" "$LINENO" 5
7967 fi
7968
7969 ac_fn_cxx_check_header_compile "$LINENO" "Poco/Net/SMTPClientSession.h" "ac_cv_header_Poco_Net_SMTPClientSession_h" "$ac_includes_default"
7970 if test "x$ac_cv_header_Poco_Net_SMTPClientSession_h" = xyes
7971 then :
7972
7973 else $as_nop
7974 as_fn_error $? "Poco/Net/SMTPClientSession.h" "$LINENO" 5
7975 fi
7976
7977 ac_fn_cxx_check_header_compile "$LINENO" "Poco/SAX/SAXParser.h" "ac_cv_header_Poco_SAX_SAXParser_h" "$ac_includes_default"
7978 if test "x$ac_cv_header_Poco_SAX_SAXParser_h" = xyes
7979 then :
7980
7981 else $as_nop
7982 as_fn_error $? "Poco/SAX/SAXParser.h" "$LINENO" 5
7983 fi
7984
7985 ac_fn_cxx_check_header_compile "$LINENO" "Poco/SAX/ContentHandler.h" "ac_cv_header_Poco_SAX_ContentHandler_h" "$ac_includes_default"
7986 if test "x$ac_cv_header_Poco_SAX_ContentHandler_h" = xyes
7987 then :
7988
7989 else $as_nop
7990 as_fn_error $? "Poco/SAX/ContentHandler.h" "$LINENO" 5
7991 fi
7992
7993 ac_fn_cxx_check_header_compile "$LINENO" "Poco/SAX/LexicalHandler.h" "ac_cv_header_Poco_SAX_LexicalHandler_h" "$ac_includes_default"
7994 if test "x$ac_cv_header_Poco_SAX_LexicalHandler_h" = xyes
7995 then :
7996
7997 else $as_nop
7998 as_fn_error $? "Poco/SAX/LexicalHandler.h" "$LINENO" 5
7999 fi
8000
8001 ac_fn_cxx_check_header_compile "$LINENO" "Poco/SAX/Attributes.h" "ac_cv_header_Poco_SAX_Attributes_h" "$ac_includes_default"
8002 if test "x$ac_cv_header_Poco_SAX_Attributes_h" = xyes
8003 then :
8004
8005 else $as_nop
8006 as_fn_error $? "Poco/SAX/Attributes.h" "$LINENO" 5
8007 fi
8008
8009 ac_fn_cxx_check_header_compile "$LINENO" "Poco/SAX/Locator.h" "ac_cv_header_Poco_SAX_Locator_h" "$ac_includes_default"
8010 if test "x$ac_cv_header_Poco_SAX_Locator_h" = xyes
8011 then :
8012
8013 else $as_nop
8014 as_fn_error $? "Poco/SAX/Locator.h" "$LINENO" 5
8015 fi
8016
8017
8018 # There is no portable way to check for C++ symbol with AC_CHECK_LIB().
8019 # Mangling C++ symbols is not portable. Hacks like using main() or _start()
8020 # are neither portable enough. Calling main() is forbidden in C++.
8021 # Symbol _start() is non-standard and does not exists on mips(64)el.
8022
8023 #AC_CHECK_LIB(PocoFoundation,_start,LIBS="$LIBS -lPocoFoundation",AC_MSG_ERROR([libPocoFoundation not found!]))
8024 #AC_CHECK_LIB(PocoNet,_start,LIBS="$LIBS -lPocoNet",AC_MSG_ERROR([libPocoNet not found!]))
8025 #AC_CHECK_LIB(PocoXML,_start,LIBS="$LIBS -lPocoXML",AC_MSG_ERROR([libPocoXML not found!]))
8026
8027 CPPFLAGS="$CPPFLAGS -DPOCO_LOG_DEBUG"
8028 LIBS="$LIBS -lPocoFoundation -lPocoNet -lPocoXML"
8029
8030 # Use option --enable-gcc-debug to enable GCC debug code.
8031 # Check whether --enable-gcc-debug was given.
8032 if test ${enable_gcc_debug+y}
8033 then :
8034 enableval=$enable_gcc_debug; enable_gcc_debug=yes
8035 else $as_nop
8036 enable_gcc_debug=no
8037 fi
8038
8039 if test "$enable_gcc_debug" = "yes" && (test "$GXX" = "yes"); then
8040 CPPFLAGS="$CPPFLAGS -O0 -ggdb"
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling GCC debug..." >&5
8042 printf "%s\n" "Enabling GCC debug..." >&6; }
8043 else
8044 CPPFLAGS="$CPPFLAGS -O2 -DNDEBUG"
8045 fi
8046
8047 # Use option --enable-clang-flags to enable CLANG flags.
8048 # Check whether --enable-clang-flags was given.
8049 if test ${enable_clang_flags+y}
8050 then :
8051 enableval=$enable_clang_flags; enable_clang_flags=yes
8052 else $as_nop
8053 enable_clang_flags=no
8054 fi
8055
8056 if test "$enable_clang_flags" = "yes" && (test "$GXX" = "yes"); then
8057 CPPFLAGS="$CPPFLAGS -Wfour-char-constants -Wpointer-arith -Wwrite-strings -Wcast-align"
8058 CPPFLAGS="$CPPFLAGS -Wconversion -Wfloat-equal -Wformat=2 -Wimplicit-atomic-properties"
8059 CPPFLAGS="$CPPFLAGS -Wmissing-declarations"
8060 CPPFLAGS="$CPPFLAGS -Woverlength-strings -Wshadow"
8061 CPPFLAGS="$CPPFLAGS -Wstrict-selector-match -Wundeclared-selector"
8062 CPPFLAGS="$CPPFLAGS -Wunreachable-code -Wthread-safety"
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling CLANG flags..." >&5
8064 printf "%s\n" "Enabling CLANG flags..." >&6; }
8065 fi
8066
8067 # Use option --enable-dmalloc-debug to enable dmalloc debug code.
8068 # Check whether --enable-dmalloc-debug was given.
8069 if test ${enable_dmalloc_debug+y}
8070 then :
8071 enableval=$enable_dmalloc_debug; enable_dmalloc_debug=yes
8072 else $as_nop
8073 enable_dmalloc_debug=no
8074 fi
8075
8076 if test "$enable_dmalloc_debug" = "yes" && (test "$GXX" = "yes"); then
8077 ac_fn_cxx_check_header_compile "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
8078 if test "x$ac_cv_header_dmalloc_h" = xyes
8079 then :
8080 CPPFLAGS="$CPPFLAGS -DDMALLOC"
8081 else $as_nop
8082 as_fn_error $? "dmalloc.h not found!" "$LINENO" 5
8083 fi
8084
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -ldmallocthcxx" >&5
8086 printf %s "checking for dmalloc_shutdown in -ldmallocthcxx... " >&6; }
8087 if test ${ac_cv_lib_dmallocthcxx_dmalloc_shutdown+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else $as_nop
8091 ac_check_lib_save_LIBS=$LIBS
8092 LIBS="-ldmallocthcxx $LIBS"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095
8096 namespace conftest {
8097 extern "C" int dmalloc_shutdown ();
8098 }
8099 int
8100 main (void)
8101 {
8102 return conftest::dmalloc_shutdown ();
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_cxx_try_link "$LINENO"
8108 then :
8109 ac_cv_lib_dmallocthcxx_dmalloc_shutdown=yes
8110 else $as_nop
8111 ac_cv_lib_dmallocthcxx_dmalloc_shutdown=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8114 conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8116 fi
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocthcxx_dmalloc_shutdown" >&5
8118 printf "%s\n" "$ac_cv_lib_dmallocthcxx_dmalloc_shutdown" >&6; }
8119 if test "x$ac_cv_lib_dmallocthcxx_dmalloc_shutdown" = xyes
8120 then :
8121 LIBS="$LIBS -ldmallocthcxx"
8122 else $as_nop
8123 as_fn_error $? "libdmallocthcxx not found!" "$LINENO" 5
8124 fi
8125
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling dmalloc debug..." >&5
8127 printf "%s\n" "Enabling dmalloc debug..." >&6; }
8128 fi
8129
8130 # Use option --gprof to enable gprof support
8131 # Check whether --enable-gprof was given.
8132 if test ${enable_gprof+y}
8133 then :
8134 enableval=$enable_gprof; enable_gprof=yes
8135 else $as_nop
8136 enable_gprof=no
8137 fi
8138
8139 if test "$enable_gprof" = "yes" && (test "$GXX" = "yes"); then
8140 CPPFLAGS="$CPPFLAGS -pg"
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gprof..." >&5
8142 printf "%s\n" "Enabling gprof..." >&6; }
8143 fi
8144
8145 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/Doxyfile doc/svg/Makefile"
8146
8147 cat >confcache <<\_ACEOF
8148 # This file is a shell script that caches the results of configure
8149 # tests run on this system so they can be shared between configure
8150 # scripts and configure runs, see configure's option --config-cache.
8151 # It is not useful on other systems. If it contains results you don't
8152 # want to keep, you may remove or edit it.
8153 #
8154 # config.status only pays attention to the cache file if you give it
8155 # the --recheck option to rerun configure.
8156 #
8157 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8158 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8159 # following values.
8160
8161 _ACEOF
8162
8163 # The following way of writing the cache mishandles newlines in values,
8164 # but we know of no workaround that is simple, portable, and efficient.
8165 # So, we kill variables containing newlines.
8166 # Ultrix sh set writes to stderr and can't be redirected directly,
8167 # and sets the high bit in the cache file unless we assign to the vars.
8168 (
8169 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8170 eval ac_val=\$$ac_var
8171 case $ac_val in #(
8172 *${as_nl}*)
8173 case $ac_var in #(
8174 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8175 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8176 esac
8177 case $ac_var in #(
8178 _ | IFS | as_nl) ;; #(
8179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8180 *) { eval $ac_var=; unset $ac_var;} ;;
8181 esac ;;
8182 esac
8183 done
8184
8185 (set) 2>&1 |
8186 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8187 *${as_nl}ac_space=\ *)
8188 # `set' does not quote correctly, so add quotes: double-quote
8189 # substitution turns \\\\ into \\, and sed turns \\ into \.
8190 sed -n \
8191 "s/'/'\\\\''/g;
8192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8193 ;; #(
8194 *)
8195 # `set' quotes correctly as required by POSIX, so do not add quotes.
8196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8197 ;;
8198 esac |
8199 sort
8200 ) |
8201 sed '
8202 /^ac_cv_env_/b end
8203 t clear
8204 :clear
8205 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8206 t end
8207 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8208 :end' >>confcache
8209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8210 if test -w "$cache_file"; then
8211 if test "x$cache_file" != "x/dev/null"; then
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8213 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8214 if test ! -f "$cache_file" || test -h "$cache_file"; then
8215 cat confcache >"$cache_file"
8216 else
8217 case $cache_file in #(
8218 */* | ?:*)
8219 mv -f confcache "$cache_file"$$ &&
8220 mv -f "$cache_file"$$ "$cache_file" ;; #(
8221 *)
8222 mv -f confcache "$cache_file" ;;
8223 esac
8224 fi
8225 fi
8226 else
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8228 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8229 fi
8230 fi
8231 rm -f confcache
8232
8233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8234 # Let make expand exec_prefix.
8235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8236
8237 DEFS=-DHAVE_CONFIG_H
8238
8239 ac_libobjs=
8240 ac_ltlibobjs=
8241 U=
8242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8243 # 1. Remove the extension, and $U if already installed.
8244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8245 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8247 # will be set to the directory where LIBOBJS objects are built.
8248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8250 done
8251 LIBOBJS=$ac_libobjs
8252
8253 LTLIBOBJS=$ac_ltlibobjs
8254
8255
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8257 printf %s "checking that generated files are newer than configure... " >&6; }
8258 if test -n "$am_sleep_pid"; then
8259 # Hide warnings about reused PIDs.
8260 wait $am_sleep_pid 2>/dev/null
8261 fi
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8263 printf "%s\n" "done" >&6; }
8264 if test -n "$EXEEXT"; then
8265 am__EXEEXT_TRUE=
8266 am__EXEEXT_FALSE='#'
8267 else
8268 am__EXEEXT_TRUE='#'
8269 am__EXEEXT_FALSE=
8270 fi
8271
8272 if test -z "${DOT_GIT_TRUE}" && test -z "${DOT_GIT_FALSE}"; then
8273 as_fn_error $? "conditional \"DOT_GIT\" was never defined.
8274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8275 fi
8276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8277 as_fn_error $? "conditional \"AMDEP\" was never defined.
8278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8279 fi
8280 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8281 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8283 fi
8284 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8285 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8287 fi
8288
8289 : "${CONFIG_STATUS=./config.status}"
8290 ac_write_fail=0
8291 ac_clean_files_save=$ac_clean_files
8292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8294 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8295 as_write_fail=0
8296 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8297 #! $SHELL
8298 # Generated by $as_me.
8299 # Run this file to recreate the current configuration.
8300 # Compiler output produced by configure, useful for debugging
8301 # configure, is in config.log if it exists.
8302
8303 debug=false
8304 ac_cs_recheck=false
8305 ac_cs_silent=false
8306
8307 SHELL=\${CONFIG_SHELL-$SHELL}
8308 export SHELL
8309 _ASEOF
8310 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8311 ## -------------------- ##
8312 ## M4sh Initialization. ##
8313 ## -------------------- ##
8314
8315 # Be more Bourne compatible
8316 DUALCASE=1; export DUALCASE # for MKS sh
8317 as_nop=:
8318 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8319 then :
8320 emulate sh
8321 NULLCMD=:
8322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8323 # is contrary to our usage. Disable this feature.
8324 alias -g '${1+"$@"}'='"$@"'
8325 setopt NO_GLOB_SUBST
8326 else $as_nop
8327 case `(set -o) 2>/dev/null` in #(
8328 *posix*) :
8329 set -o posix ;; #(
8330 *) :
8331 ;;
8332 esac
8333 fi
8334
8335
8336
8337 # Reset variables that may have inherited troublesome values from
8338 # the environment.
8339
8340 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8341 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8342 # side effect of setting IFS to empty, thus disabling word splitting.)
8343 # Quoting is to prevent editors from complaining about space-tab.
8344 as_nl='
8345 '
8346 export as_nl
8347 IFS=" "" $as_nl"
8348
8349 PS1='$ '
8350 PS2='> '
8351 PS4='+ '
8352
8353 # Ensure predictable behavior from utilities with locale-dependent output.
8354 LC_ALL=C
8355 export LC_ALL
8356 LANGUAGE=C
8357 export LANGUAGE
8358
8359 # We cannot yet rely on "unset" to work, but we need these variables
8360 # to be unset--not just set to an empty or harmless value--now, to
8361 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8362 # also avoids known problems related to "unset" and subshell syntax
8363 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8364 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8365 do eval test \${$as_var+y} \
8366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8367 done
8368
8369 # Ensure that fds 0, 1, and 2 are open.
8370 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8371 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8372 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8373
8374 # The user is always right.
8375 if ${PATH_SEPARATOR+false} :; then
8376 PATH_SEPARATOR=:
8377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8379 PATH_SEPARATOR=';'
8380 }
8381 fi
8382
8383
8384 # Find who we are. Look in the path if we contain no directory separator.
8385 as_myself=
8386 case $0 in #((
8387 *[\\/]* ) as_myself=$0 ;;
8388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391 IFS=$as_save_IFS
8392 case $as_dir in #(((
8393 '') as_dir=./ ;;
8394 */) ;;
8395 *) as_dir=$as_dir/ ;;
8396 esac
8397 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8398 done
8399 IFS=$as_save_IFS
8400
8401 ;;
8402 esac
8403 # We did not find ourselves, most probably we were run as `sh COMMAND'
8404 # in which case we are not to be found in the path.
8405 if test "x$as_myself" = x; then
8406 as_myself=$0
8407 fi
8408 if test ! -f "$as_myself"; then
8409 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8410 exit 1
8411 fi
8412
8413
8414
8415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8416 # ----------------------------------------
8417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8419 # script with STATUS, using 1 if that was 0.
8420 as_fn_error ()
8421 {
8422 as_status=$1; test $as_status -eq 0 && as_status=1
8423 if test "$4"; then
8424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8426 fi
8427 printf "%s\n" "$as_me: error: $2" >&2
8428 as_fn_exit $as_status
8429 } # as_fn_error
8430
8431
8432
8433 # as_fn_set_status STATUS
8434 # -----------------------
8435 # Set $? to STATUS, without forking.
8436 as_fn_set_status ()
8437 {
8438 return $1
8439 } # as_fn_set_status
8440
8441 # as_fn_exit STATUS
8442 # -----------------
8443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8444 as_fn_exit ()
8445 {
8446 set +e
8447 as_fn_set_status $1
8448 exit $1
8449 } # as_fn_exit
8450
8451 # as_fn_unset VAR
8452 # ---------------
8453 # Portably unset VAR.
8454 as_fn_unset ()
8455 {
8456 { eval $1=; unset $1;}
8457 }
8458 as_unset=as_fn_unset
8459
8460 # as_fn_append VAR VALUE
8461 # ----------------------
8462 # Append the text in VALUE to the end of the definition contained in VAR. Take
8463 # advantage of any shell optimizations that allow amortized linear growth over
8464 # repeated appends, instead of the typical quadratic growth present in naive
8465 # implementations.
8466 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8467 then :
8468 eval 'as_fn_append ()
8469 {
8470 eval $1+=\$2
8471 }'
8472 else $as_nop
8473 as_fn_append ()
8474 {
8475 eval $1=\$$1\$2
8476 }
8477 fi # as_fn_append
8478
8479 # as_fn_arith ARG...
8480 # ------------------
8481 # Perform arithmetic evaluation on the ARGs, and store the result in the
8482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8483 # must be portable across $(()) and expr.
8484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8485 then :
8486 eval 'as_fn_arith ()
8487 {
8488 as_val=$(( $* ))
8489 }'
8490 else $as_nop
8491 as_fn_arith ()
8492 {
8493 as_val=`expr "$@" || test $? -eq 1`
8494 }
8495 fi # as_fn_arith
8496
8497
8498 if expr a : '\(a\)' >/dev/null 2>&1 &&
8499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8500 as_expr=expr
8501 else
8502 as_expr=false
8503 fi
8504
8505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8506 as_basename=basename
8507 else
8508 as_basename=false
8509 fi
8510
8511 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8512 as_dirname=dirname
8513 else
8514 as_dirname=false
8515 fi
8516
8517 as_me=`$as_basename -- "$0" ||
8518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8519 X"$0" : 'X\(//\)$' \| \
8520 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8521 printf "%s\n" X/"$0" |
8522 sed '/^.*\/\([^/][^/]*\)\/*$/{
8523 s//\1/
8524 q
8525 }
8526 /^X\/\(\/\/\)$/{
8527 s//\1/
8528 q
8529 }
8530 /^X\/\(\/\).*/{
8531 s//\1/
8532 q
8533 }
8534 s/.*/./; q'`
8535
8536 # Avoid depending upon Character Ranges.
8537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8540 as_cr_digits='0123456789'
8541 as_cr_alnum=$as_cr_Letters$as_cr_digits
8542
8543
8544 # Determine whether it's possible to make 'echo' print without a newline.
8545 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8546 # for compatibility with existing Makefiles.
8547 ECHO_C= ECHO_N= ECHO_T=
8548 case `echo -n x` in #(((((
8549 -n*)
8550 case `echo 'xy\c'` in
8551 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8552 xy) ECHO_C='\c';;
8553 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8554 ECHO_T=' ';;
8555 esac;;
8556 *)
8557 ECHO_N='-n';;
8558 esac
8559
8560 # For backward compatibility with old third-party macros, we provide
8561 # the shell variables $as_echo and $as_echo_n. New code should use
8562 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8563 as_echo='printf %s\n'
8564 as_echo_n='printf %s'
8565
8566 rm -f conf$$ conf$$.exe conf$$.file
8567 if test -d conf$$.dir; then
8568 rm -f conf$$.dir/conf$$.file
8569 else
8570 rm -f conf$$.dir
8571 mkdir conf$$.dir 2>/dev/null
8572 fi
8573 if (echo >conf$$.file) 2>/dev/null; then
8574 if ln -s conf$$.file conf$$ 2>/dev/null; then
8575 as_ln_s='ln -s'
8576 # ... but there are two gotchas:
8577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8579 # In both cases, we have to default to `cp -pR'.
8580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8581 as_ln_s='cp -pR'
8582 elif ln conf$$.file conf$$ 2>/dev/null; then
8583 as_ln_s=ln
8584 else
8585 as_ln_s='cp -pR'
8586 fi
8587 else
8588 as_ln_s='cp -pR'
8589 fi
8590 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8591 rmdir conf$$.dir 2>/dev/null
8592
8593
8594 # as_fn_mkdir_p
8595 # -------------
8596 # Create "$as_dir" as a directory, including parents if necessary.
8597 as_fn_mkdir_p ()
8598 {
8599
8600 case $as_dir in #(
8601 -*) as_dir=./$as_dir;;
8602 esac
8603 test -d "$as_dir" || eval $as_mkdir_p || {
8604 as_dirs=
8605 while :; do
8606 case $as_dir in #(
8607 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8608 *) as_qdir=$as_dir;;
8609 esac
8610 as_dirs="'$as_qdir' $as_dirs"
8611 as_dir=`$as_dirname -- "$as_dir" ||
8612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8613 X"$as_dir" : 'X\(//\)[^/]' \| \
8614 X"$as_dir" : 'X\(//\)$' \| \
8615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8616 printf "%s\n" X"$as_dir" |
8617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8618 s//\1/
8619 q
8620 }
8621 /^X\(\/\/\)[^/].*/{
8622 s//\1/
8623 q
8624 }
8625 /^X\(\/\/\)$/{
8626 s//\1/
8627 q
8628 }
8629 /^X\(\/\).*/{
8630 s//\1/
8631 q
8632 }
8633 s/.*/./; q'`
8634 test -d "$as_dir" && break
8635 done
8636 test -z "$as_dirs" || eval "mkdir $as_dirs"
8637 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8638
8639
8640 } # as_fn_mkdir_p
8641 if mkdir -p . 2>/dev/null; then
8642 as_mkdir_p='mkdir -p "$as_dir"'
8643 else
8644 test -d ./-p && rmdir ./-p
8645 as_mkdir_p=false
8646 fi
8647
8648
8649 # as_fn_executable_p FILE
8650 # -----------------------
8651 # Test if FILE is an executable regular file.
8652 as_fn_executable_p ()
8653 {
8654 test -f "$1" && test -x "$1"
8655 } # as_fn_executable_p
8656 as_test_x='test -x'
8657 as_executable_p=as_fn_executable_p
8658
8659 # Sed expression to map a string onto a valid CPP name.
8660 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8661
8662 # Sed expression to map a string onto a valid variable name.
8663 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8664
8665
8666 exec 6>&1
8667 ## ----------------------------------- ##
8668 ## Main body of $CONFIG_STATUS script. ##
8669 ## ----------------------------------- ##
8670 _ASEOF
8671 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8672
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8674 # Save the log message, to keep $0 and so on meaningful, and to
8675 # report actual input values of CONFIG_FILES etc. instead of their
8676 # values after options handling.
8677 ac_log="
8678 This file was extended by ClamFS $as_me 1.3.0, which was
8679 generated by GNU Autoconf 2.71. Invocation command line was
8680
8681 CONFIG_FILES = $CONFIG_FILES
8682 CONFIG_HEADERS = $CONFIG_HEADERS
8683 CONFIG_LINKS = $CONFIG_LINKS
8684 CONFIG_COMMANDS = $CONFIG_COMMANDS
8685 $ $0 $@
8686
8687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8688 "
8689
8690 _ACEOF
8691
8692 case $ac_config_files in *"
8693 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8694 esac
8695
8696 case $ac_config_headers in *"
8697 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8698 esac
8699
8700
8701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8702 # Files that config.status was made for.
8703 config_files="$ac_config_files"
8704 config_headers="$ac_config_headers"
8705 config_commands="$ac_config_commands"
8706
8707 _ACEOF
8708
8709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8710 ac_cs_usage="\
8711 \`$as_me' instantiates files and other configuration actions
8712 from templates according to the current configuration. Unless the files
8713 and actions are specified as TAGs, all are instantiated by default.
8714
8715 Usage: $0 [OPTION]... [TAG]...
8716
8717 -h, --help print this help, then exit
8718 -V, --version print version number and configuration settings, then exit
8719 --config print configuration, then exit
8720 -q, --quiet, --silent
8721 do not print progress messages
8722 -d, --debug don't remove temporary files
8723 --recheck update $as_me by reconfiguring in the same conditions
8724 --file=FILE[:TEMPLATE]
8725 instantiate the configuration file FILE
8726 --header=FILE[:TEMPLATE]
8727 instantiate the configuration header FILE
8728
8729 Configuration files:
8730 $config_files
8731
8732 Configuration headers:
8733 $config_headers
8734
8735 Configuration commands:
8736 $config_commands
8737
8738 Report bugs to <[email protected]>."
8739
8740 _ACEOF
8741 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8742 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8744 ac_cs_config='$ac_cs_config_escaped'
8745 ac_cs_version="\\
8746 ClamFS config.status 1.3.0
8747 configured by $0, generated by GNU Autoconf 2.71,
8748 with options \\"\$ac_cs_config\\"
8749
8750 Copyright (C) 2021 Free Software Foundation, Inc.
8751 This config.status script is free software; the Free Software Foundation
8752 gives unlimited permission to copy, distribute and modify it."
8753
8754 ac_pwd='$ac_pwd'
8755 srcdir='$srcdir'
8756 INSTALL='$INSTALL'
8757 MKDIR_P='$MKDIR_P'
8758 AWK='$AWK'
8759 test -n "\$AWK" || AWK=awk
8760 _ACEOF
8761
8762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8763 # The default lists apply if the user does not specify any file.
8764 ac_need_defaults=:
8765 while test $# != 0
8766 do
8767 case $1 in
8768 --*=?*)
8769 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8770 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8771 ac_shift=:
8772 ;;
8773 --*=)
8774 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8775 ac_optarg=
8776 ac_shift=:
8777 ;;
8778 *)
8779 ac_option=$1
8780 ac_optarg=$2
8781 ac_shift=shift
8782 ;;
8783 esac
8784
8785 case $ac_option in
8786 # Handling of the options.
8787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8788 ac_cs_recheck=: ;;
8789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8790 printf "%s\n" "$ac_cs_version"; exit ;;
8791 --config | --confi | --conf | --con | --co | --c )
8792 printf "%s\n" "$ac_cs_config"; exit ;;
8793 --debug | --debu | --deb | --de | --d | -d )
8794 debug=: ;;
8795 --file | --fil | --fi | --f )
8796 $ac_shift
8797 case $ac_optarg in
8798 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8799 '') as_fn_error $? "missing file argument" ;;
8800 esac
8801 as_fn_append CONFIG_FILES " '$ac_optarg'"
8802 ac_need_defaults=false;;
8803 --header | --heade | --head | --hea )
8804 $ac_shift
8805 case $ac_optarg in
8806 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8807 esac
8808 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8809 ac_need_defaults=false;;
8810 --he | --h)
8811 # Conflict between --help and --header
8812 as_fn_error $? "ambiguous option: \`$1'
8813 Try \`$0 --help' for more information.";;
8814 --help | --hel | -h )
8815 printf "%s\n" "$ac_cs_usage"; exit ;;
8816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8818 ac_cs_silent=: ;;
8819
8820 # This is an error.
8821 -*) as_fn_error $? "unrecognized option: \`$1'
8822 Try \`$0 --help' for more information." ;;
8823
8824 *) as_fn_append ac_config_targets " $1"
8825 ac_need_defaults=false ;;
8826
8827 esac
8828 shift
8829 done
8830
8831 ac_configure_extra_args=
8832
8833 if $ac_cs_silent; then
8834 exec 6>/dev/null
8835 ac_configure_extra_args="$ac_configure_extra_args --silent"
8836 fi
8837
8838 _ACEOF
8839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8840 if \$ac_cs_recheck; then
8841 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8842 shift
8843 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8844 CONFIG_SHELL='$SHELL'
8845 export CONFIG_SHELL
8846 exec "\$@"
8847 fi
8848
8849 _ACEOF
8850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8851 exec 5>>config.log
8852 {
8853 echo
8854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8855 ## Running $as_me. ##
8856 _ASBOX
8857 printf "%s\n" "$ac_log"
8858 } >&5
8859
8860 _ACEOF
8861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8862 #
8863 # INIT-COMMANDS
8864 #
8865 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8866
8867 _ACEOF
8868
8869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8870
8871 # Handling of arguments.
8872 for ac_config_target in $ac_config_targets
8873 do
8874 case $ac_config_target in
8875 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8876 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8877 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8878 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8879 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8880 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
8881 "doc/svg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/svg/Makefile" ;;
8882
8883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8884 esac
8885 done
8886
8887
8888 # If the user did not use the arguments to specify the items to instantiate,
8889 # then the envvar interface is used. Set only those that are not.
8890 # We use the long form for the default assignment because of an extremely
8891 # bizarre bug on SunOS 4.1.3.
8892 if $ac_need_defaults; then
8893 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8894 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8895 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
8896 fi
8897
8898 # Have a temporary directory for convenience. Make it in the build tree
8899 # simply because there is no reason against having it here, and in addition,
8900 # creating and moving files from /tmp can sometimes cause problems.
8901 # Hook for its removal unless debugging.
8902 # Note that there is a small window in which the directory will not be cleaned:
8903 # after its creation but before its name has been assigned to `$tmp'.
8904 $debug ||
8905 {
8906 tmp= ac_tmp=
8907 trap 'exit_status=$?
8908 : "${ac_tmp:=$tmp}"
8909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8910 ' 0
8911 trap 'as_fn_exit 1' 1 2 13 15
8912 }
8913 # Create a (secure) tmp directory for tmp files.
8914
8915 {
8916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8917 test -d "$tmp"
8918 } ||
8919 {
8920 tmp=./conf$$-$RANDOM
8921 (umask 077 && mkdir "$tmp")
8922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8923 ac_tmp=$tmp
8924
8925 # Set up the scripts for CONFIG_FILES section.
8926 # No need to generate them if there are no CONFIG_FILES.
8927 # This happens for instance with `./config.status config.h'.
8928 if test -n "$CONFIG_FILES"; then
8929
8930
8931 ac_cr=`echo X | tr X '\015'`
8932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8933 # But we know of no other shell where ac_cr would be empty at this
8934 # point, so we can use a bashism as a fallback.
8935 if test "x$ac_cr" = x; then
8936 eval ac_cr=\$\'\\r\'
8937 fi
8938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8940 ac_cs_awk_cr='\\r'
8941 else
8942 ac_cs_awk_cr=$ac_cr
8943 fi
8944
8945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8946 _ACEOF
8947
8948
8949 {
8950 echo "cat >conf$$subs.awk <<_ACEOF" &&
8951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8952 echo "_ACEOF"
8953 } >conf$$subs.sh ||
8954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8956 ac_delim='%!_!# '
8957 for ac_last_try in false false false false false :; do
8958 . ./conf$$subs.sh ||
8959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8960
8961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8962 if test $ac_delim_n = $ac_delim_num; then
8963 break
8964 elif $ac_last_try; then
8965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8966 else
8967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8968 fi
8969 done
8970 rm -f conf$$subs.sh
8971
8972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8974 _ACEOF
8975 sed -n '
8976 h
8977 s/^/S["/; s/!.*/"]=/
8978 p
8979 g
8980 s/^[^!]*!//
8981 :repl
8982 t repl
8983 s/'"$ac_delim"'$//
8984 t delim
8985 :nl
8986 h
8987 s/\(.\{148\}\)..*/\1/
8988 t more1
8989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8990 p
8991 n
8992 b repl
8993 :more1
8994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8995 p
8996 g
8997 s/.\{148\}//
8998 t nl
8999 :delim
9000 h
9001 s/\(.\{148\}\)..*/\1/
9002 t more2
9003 s/["\\]/\\&/g; s/^/"/; s/$/"/
9004 p
9005 b
9006 :more2
9007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9008 p
9009 g
9010 s/.\{148\}//
9011 t delim
9012 ' <conf$$subs.awk | sed '
9013 /^[^""]/{
9014 N
9015 s/\n//
9016 }
9017 ' >>$CONFIG_STATUS || ac_write_fail=1
9018 rm -f conf$$subs.awk
9019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9020 _ACAWK
9021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9022 for (key in S) S_is_set[key] = 1
9023 FS = ""
9024
9025 }
9026 {
9027 line = $ 0
9028 nfields = split(line, field, "@")
9029 substed = 0
9030 len = length(field[1])
9031 for (i = 2; i < nfields; i++) {
9032 key = field[i]
9033 keylen = length(key)
9034 if (S_is_set[key]) {
9035 value = S[key]
9036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9037 len += length(value) + length(field[++i])
9038 substed = 1
9039 } else
9040 len += 1 + keylen
9041 }
9042
9043 print line
9044 }
9045
9046 _ACAWK
9047 _ACEOF
9048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9051 else
9052 cat
9053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9055 _ACEOF
9056
9057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9059 # trailing colons and then remove the whole line if VPATH becomes empty
9060 # (actually we leave an empty line to preserve line numbers).
9061 if test "x$srcdir" = x.; then
9062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9063 h
9064 s///
9065 s/^/:/
9066 s/[ ]*$/:/
9067 s/:\$(srcdir):/:/g
9068 s/:\${srcdir}:/:/g
9069 s/:@srcdir@:/:/g
9070 s/^:*//
9071 s/:*$//
9072 x
9073 s/\(=[ ]*\).*/\1/
9074 G
9075 s/\n//
9076 s/^[^=]*=[ ]*$//
9077 }'
9078 fi
9079
9080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9081 fi # test -n "$CONFIG_FILES"
9082
9083 # Set up the scripts for CONFIG_HEADERS section.
9084 # No need to generate them if there are no CONFIG_HEADERS.
9085 # This happens for instance with `./config.status Makefile'.
9086 if test -n "$CONFIG_HEADERS"; then
9087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9088 BEGIN {
9089 _ACEOF
9090
9091 # Transform confdefs.h into an awk script `defines.awk', embedded as
9092 # here-document in config.status, that substitutes the proper values into
9093 # config.h.in to produce config.h.
9094
9095 # Create a delimiter string that does not exist in confdefs.h, to ease
9096 # handling of long lines.
9097 ac_delim='%!_!# '
9098 for ac_last_try in false false :; do
9099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9100 if test -z "$ac_tt"; then
9101 break
9102 elif $ac_last_try; then
9103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9104 else
9105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9106 fi
9107 done
9108
9109 # For the awk script, D is an array of macro values keyed by name,
9110 # likewise P contains macro parameters if any. Preserve backslash
9111 # newline sequences.
9112
9113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9114 sed -n '
9115 s/.\{148\}/&'"$ac_delim"'/g
9116 t rset
9117 :rset
9118 s/^[ ]*#[ ]*define[ ][ ]*/ /
9119 t def
9120 d
9121 :def
9122 s/\\$//
9123 t bsnl
9124 s/["\\]/\\&/g
9125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9126 D["\1"]=" \3"/p
9127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9128 d
9129 :bsnl
9130 s/["\\]/\\&/g
9131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9132 D["\1"]=" \3\\\\\\n"\\/p
9133 t cont
9134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9135 t cont
9136 d
9137 :cont
9138 n
9139 s/.\{148\}/&'"$ac_delim"'/g
9140 t clear
9141 :clear
9142 s/\\$//
9143 t bsnlc
9144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9145 d
9146 :bsnlc
9147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9148 b cont
9149 ' <confdefs.h | sed '
9150 s/'"$ac_delim"'/"\\\
9151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9152
9153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9154 for (key in D) D_is_set[key] = 1
9155 FS = ""
9156 }
9157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9158 line = \$ 0
9159 split(line, arg, " ")
9160 if (arg[1] == "#") {
9161 defundef = arg[2]
9162 mac1 = arg[3]
9163 } else {
9164 defundef = substr(arg[1], 2)
9165 mac1 = arg[2]
9166 }
9167 split(mac1, mac2, "(") #)
9168 macro = mac2[1]
9169 prefix = substr(line, 1, index(line, defundef) - 1)
9170 if (D_is_set[macro]) {
9171 # Preserve the white space surrounding the "#".
9172 print prefix "define", macro P[macro] D[macro]
9173 next
9174 } else {
9175 # Replace #undef with comments. This is necessary, for example,
9176 # in the case of _POSIX_SOURCE, which is predefined and required
9177 # on some systems where configure will not decide to define it.
9178 if (defundef == "undef") {
9179 print "/*", prefix defundef, macro, "*/"
9180 next
9181 }
9182 }
9183 }
9184 { print }
9185 _ACAWK
9186 _ACEOF
9187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9189 fi # test -n "$CONFIG_HEADERS"
9190
9191
9192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9193 shift
9194 for ac_tag
9195 do
9196 case $ac_tag in
9197 :[FHLC]) ac_mode=$ac_tag; continue;;
9198 esac
9199 case $ac_mode$ac_tag in
9200 :[FHL]*:*);;
9201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9202 :[FH]-) ac_tag=-:-;;
9203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9204 esac
9205 ac_save_IFS=$IFS
9206 IFS=:
9207 set x $ac_tag
9208 IFS=$ac_save_IFS
9209 shift
9210 ac_file=$1
9211 shift
9212
9213 case $ac_mode in
9214 :L) ac_source=$1;;
9215 :[FH])
9216 ac_file_inputs=
9217 for ac_f
9218 do
9219 case $ac_f in
9220 -) ac_f="$ac_tmp/stdin";;
9221 *) # Look for the file first in the build tree, then in the source tree
9222 # (if the path is not absolute). The absolute path cannot be DOS-style,
9223 # because $ac_f cannot contain `:'.
9224 test -f "$ac_f" ||
9225 case $ac_f in
9226 [\\/$]*) false;;
9227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9228 esac ||
9229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9230 esac
9231 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9232 as_fn_append ac_file_inputs " '$ac_f'"
9233 done
9234
9235 # Let's still pretend it is `configure' which instantiates (i.e., don't
9236 # use $as_me), people would be surprised to read:
9237 # /* config.h. Generated by config.status. */
9238 configure_input='Generated from '`
9239 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9240 `' by configure.'
9241 if test x"$ac_file" != x-; then
9242 configure_input="$ac_file. $configure_input"
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9244 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9245 fi
9246 # Neutralize special characters interpreted by sed in replacement strings.
9247 case $configure_input in #(
9248 *\&* | *\|* | *\\* )
9249 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9251 *) ac_sed_conf_input=$configure_input;;
9252 esac
9253
9254 case $ac_tag in
9255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9257 esac
9258 ;;
9259 esac
9260
9261 ac_dir=`$as_dirname -- "$ac_file" ||
9262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9263 X"$ac_file" : 'X\(//\)[^/]' \| \
9264 X"$ac_file" : 'X\(//\)$' \| \
9265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9266 printf "%s\n" X"$ac_file" |
9267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9268 s//\1/
9269 q
9270 }
9271 /^X\(\/\/\)[^/].*/{
9272 s//\1/
9273 q
9274 }
9275 /^X\(\/\/\)$/{
9276 s//\1/
9277 q
9278 }
9279 /^X\(\/\).*/{
9280 s//\1/
9281 q
9282 }
9283 s/.*/./; q'`
9284 as_dir="$ac_dir"; as_fn_mkdir_p
9285 ac_builddir=.
9286
9287 case "$ac_dir" in
9288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9289 *)
9290 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9291 # A ".." for each directory in $ac_dir_suffix.
9292 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9293 case $ac_top_builddir_sub in
9294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9296 esac ;;
9297 esac
9298 ac_abs_top_builddir=$ac_pwd
9299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9300 # for backward compatibility:
9301 ac_top_builddir=$ac_top_build_prefix
9302
9303 case $srcdir in
9304 .) # We are building in place.
9305 ac_srcdir=.
9306 ac_top_srcdir=$ac_top_builddir_sub
9307 ac_abs_top_srcdir=$ac_pwd ;;
9308 [\\/]* | ?:[\\/]* ) # Absolute name.
9309 ac_srcdir=$srcdir$ac_dir_suffix;
9310 ac_top_srcdir=$srcdir
9311 ac_abs_top_srcdir=$srcdir ;;
9312 *) # Relative name.
9313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9314 ac_top_srcdir=$ac_top_build_prefix$srcdir
9315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9316 esac
9317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9318
9319
9320 case $ac_mode in
9321 :F)
9322 #
9323 # CONFIG_FILE
9324 #
9325
9326 case $INSTALL in
9327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9329 esac
9330 ac_MKDIR_P=$MKDIR_P
9331 case $MKDIR_P in
9332 [\\/$]* | ?:[\\/]* ) ;;
9333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9334 esac
9335 _ACEOF
9336
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9338 # If the template does not know about datarootdir, expand it.
9339 # FIXME: This hack should be removed a few years after 2.60.
9340 ac_datarootdir_hack=; ac_datarootdir_seen=
9341 ac_sed_dataroot='
9342 /datarootdir/ {
9343 p
9344 q
9345 }
9346 /@datadir@/p
9347 /@docdir@/p
9348 /@infodir@/p
9349 /@localedir@/p
9350 /@mandir@/p'
9351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9352 *datarootdir*) ac_datarootdir_seen=yes;;
9353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9355 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9356 _ACEOF
9357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9358 ac_datarootdir_hack='
9359 s&@datadir@&$datadir&g
9360 s&@docdir@&$docdir&g
9361 s&@infodir@&$infodir&g
9362 s&@localedir@&$localedir&g
9363 s&@mandir@&$mandir&g
9364 s&\\\${datarootdir}&$datarootdir&g' ;;
9365 esac
9366 _ACEOF
9367
9368 # Neutralize VPATH when `$srcdir' = `.'.
9369 # Shell code in configure.ac might set extrasub.
9370 # FIXME: do we really want to maintain this feature?
9371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9372 ac_sed_extra="$ac_vpsub
9373 $extrasub
9374 _ACEOF
9375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9376 :t
9377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9378 s|@configure_input@|$ac_sed_conf_input|;t t
9379 s&@top_builddir@&$ac_top_builddir_sub&;t t
9380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9381 s&@srcdir@&$ac_srcdir&;t t
9382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9383 s&@top_srcdir@&$ac_top_srcdir&;t t
9384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9385 s&@builddir@&$ac_builddir&;t t
9386 s&@abs_builddir@&$ac_abs_builddir&;t t
9387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9388 s&@INSTALL@&$ac_INSTALL&;t t
9389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9390 $ac_datarootdir_hack
9391 "
9392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9394
9395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9400 which seems to be undefined. Please make sure it is defined" >&5
9401 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9402 which seems to be undefined. Please make sure it is defined" >&2;}
9403
9404 rm -f "$ac_tmp/stdin"
9405 case $ac_file in
9406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9408 esac \
9409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9410 ;;
9411 :H)
9412 #
9413 # CONFIG_HEADER
9414 #
9415 if test x"$ac_file" != x-; then
9416 {
9417 printf "%s\n" "/* $configure_input */" >&1 \
9418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9419 } >"$ac_tmp/config.h" \
9420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9423 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9424 else
9425 rm -f "$ac_file"
9426 mv "$ac_tmp/config.h" "$ac_file" \
9427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9428 fi
9429 else
9430 printf "%s\n" "/* $configure_input */" >&1 \
9431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9432 || as_fn_error $? "could not create -" "$LINENO" 5
9433 fi
9434 # Compute "$ac_file"'s index in $config_headers.
9435 _am_arg="$ac_file"
9436 _am_stamp_count=1
9437 for _am_header in $config_headers :; do
9438 case $_am_header in
9439 $_am_arg | $_am_arg:* )
9440 break ;;
9441 * )
9442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9443 esac
9444 done
9445 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9446 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9447 X"$_am_arg" : 'X\(//\)[^/]' \| \
9448 X"$_am_arg" : 'X\(//\)$' \| \
9449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9450 printf "%s\n" X"$_am_arg" |
9451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9452 s//\1/
9453 q
9454 }
9455 /^X\(\/\/\)[^/].*/{
9456 s//\1/
9457 q
9458 }
9459 /^X\(\/\/\)$/{
9460 s//\1/
9461 q
9462 }
9463 /^X\(\/\).*/{
9464 s//\1/
9465 q
9466 }
9467 s/.*/./; q'`/stamp-h$_am_stamp_count
9468 ;;
9469
9470 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9471 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9472 ;;
9473 esac
9474
9475
9476 case $ac_file$ac_mode in
9477 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9478 # Older Autoconf quotes --file arguments for eval, but not when files
9479 # are listed without --file. Let's play safe and only enable the eval
9480 # if we detect the quoting.
9481 # TODO: see whether this extra hack can be removed once we start
9482 # requiring Autoconf 2.70 or later.
9483 case $CONFIG_FILES in #(
9484 *\'*) :
9485 eval set x "$CONFIG_FILES" ;; #(
9486 *) :
9487 set x $CONFIG_FILES ;; #(
9488 *) :
9489 ;;
9490 esac
9491 shift
9492 # Used to flag and report bootstrapping failures.
9493 am_rc=0
9494 for am_mf
9495 do
9496 # Strip MF so we end up with the name of the file.
9497 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9498 # Check whether this is an Automake generated Makefile which includes
9499 # dependency-tracking related rules and includes.
9500 # Grep'ing the whole file directly is not great: AIX grep has a line
9501 # limit of 2048, but all sed's we know have understand at least 4000.
9502 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9503 || continue
9504 am_dirpart=`$as_dirname -- "$am_mf" ||
9505 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9506 X"$am_mf" : 'X\(//\)[^/]' \| \
9507 X"$am_mf" : 'X\(//\)$' \| \
9508 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9509 printf "%s\n" X"$am_mf" |
9510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9511 s//\1/
9512 q
9513 }
9514 /^X\(\/\/\)[^/].*/{
9515 s//\1/
9516 q
9517 }
9518 /^X\(\/\/\)$/{
9519 s//\1/
9520 q
9521 }
9522 /^X\(\/\).*/{
9523 s//\1/
9524 q
9525 }
9526 s/.*/./; q'`
9527 am_filepart=`$as_basename -- "$am_mf" ||
9528 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9529 X"$am_mf" : 'X\(//\)$' \| \
9530 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9531 printf "%s\n" X/"$am_mf" |
9532 sed '/^.*\/\([^/][^/]*\)\/*$/{
9533 s//\1/
9534 q
9535 }
9536 /^X\/\(\/\/\)$/{
9537 s//\1/
9538 q
9539 }
9540 /^X\/\(\/\).*/{
9541 s//\1/
9542 q
9543 }
9544 s/.*/./; q'`
9545 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9546 && sed -e '/# am--include-marker/d' "$am_filepart" \
9547 | $MAKE -f - am--depfiles" >&5
9548 (cd "$am_dirpart" \
9549 && sed -e '/# am--include-marker/d' "$am_filepart" \
9550 | $MAKE -f - am--depfiles) >&5 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } || am_rc=$?
9554 done
9555 if test $am_rc -ne 0; then
9556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9558 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9559 for automatic dependency tracking. If GNU make was not used, consider
9560 re-running the configure script with MAKE=\"gmake\" (or whatever is
9561 necessary). You can also try re-running configure with the
9562 '--disable-dependency-tracking' option to at least be able to build
9563 the package (albeit without support for automatic dependency tracking).
9564 See \`config.log' for more details" "$LINENO" 5; }
9565 fi
9566 { am_dirpart=; unset am_dirpart;}
9567 { am_filepart=; unset am_filepart;}
9568 { am_mf=; unset am_mf;}
9569 { am_rc=; unset am_rc;}
9570 rm -f conftest-deps.mk
9571 }
9572 ;;
9573
9574 esac
9575 done # for ac_tag
9576
9577
9578 as_fn_exit 0
9579 _ACEOF
9580 ac_clean_files=$ac_clean_files_save
9581
9582 test $ac_write_fail = 0 ||
9583 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9584
9585
9586 # configure is writing to config.log, and then calls config.status.
9587 # config.status does its own redirection, appending to config.log.
9588 # Unfortunately, on DOS this fails, as config.log is still kept open
9589 # by configure, so config.status won't be able to write to it; its
9590 # output is simply discarded. So we exec the FD to /dev/null,
9591 # effectively closing config.log, so it can be properly (re)opened and
9592 # appended to by config.status. When coming back to configure, we
9593 # need to make the FD available again.
9594 if test "$no_create" != yes; then
9595 ac_cs_success=:
9596 ac_config_status_args=
9597 test "$silent" = yes &&
9598 ac_config_status_args="$ac_config_status_args --quiet"
9599 exec 5>/dev/null
9600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9601 exec 5>>config.log
9602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9603 # would make configure fail if this is the last instruction.
9604 $ac_cs_success || as_fn_exit 1
9605 fi
9606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9608 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9609 fi
9610
9611