1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for BULK_EXTRACTOR 2.0.0-beta2. 4# 5# Report bugs to <bugs@digitalcorpora.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 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 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 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. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export 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). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${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 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if 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 114fi 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. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $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'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 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 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -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 if (eval "$as_required") 2>/dev/null 187then : 188 as_have_required=yes 189else $as_nop 190 as_have_required=no 191fi 192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 193then : 194 195else $as_nop 196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 197as_found=false 198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 199do 200 IFS=$as_save_IFS 201 case $as_dir in #((( 202 '') as_dir=./ ;; 203 */) ;; 204 *) as_dir=$as_dir/ ;; 205 esac 206 as_found=: 207 case $as_dir in #( 208 /*) 209 for as_base in sh bash ksh sh5; do 210 # Try only shells that exist, to save several forks. 211 as_shell=$as_dir$as_base 212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 214then : 215 CONFIG_SHELL=$as_shell as_have_required=yes 216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 217then : 218 break 2 219fi 220fi 221 done;; 222 esac 223 as_found=false 224done 225IFS=$as_save_IFS 226if $as_found 227then : 228 229else $as_nop 230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 232then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi 235fi 236 237 238 if test "x$CONFIG_SHELL" != x 239then : 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242# neutralization value for shells without unset; and this also 243# works around shells that cannot unset nonexistent variables. 244# Preserve -v and -x to the replacement shell. 245BASH_ENV=/dev/null 246ENV=/dev/null 247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253esac 254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255# Admittedly, this is quite paranoid, since all the known shells bail 256# out after a failed `exec'. 257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 258exit 255 259fi 260 261 if test x$as_have_required = xno 262then : 263 printf "%s\n" "$0: This script requires a shell more modern than all" 264 printf "%s\n" "$0: the shells that I found on your system." 265 if test ${ZSH_VERSION+y} ; then 266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 270$0: bugs@digitalcorpora.org about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315# as_fn_nop 316# --------- 317# Do nothing but, unlike ":", preserve the value of $?. 318as_fn_nop () 319{ 320 return $? 321} 322as_nop=as_fn_nop 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346printf "%s\n" X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 386then : 387 eval 'as_fn_append () 388 { 389 eval $1+=\$2 390 }' 391else $as_nop 392 as_fn_append () 393 { 394 eval $1=\$$1\$2 395 } 396fi # as_fn_append 397 398# as_fn_arith ARG... 399# ------------------ 400# Perform arithmetic evaluation on the ARGs, and store the result in the 401# global $as_val. Take advantage of shells that can avoid forks. The arguments 402# must be portable across $(()) and expr. 403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 404then : 405 eval 'as_fn_arith () 406 { 407 as_val=$(( $* )) 408 }' 409else $as_nop 410 as_fn_arith () 411 { 412 as_val=`expr "$@" || test $? -eq 1` 413 } 414fi # as_fn_arith 415 416# as_fn_nop 417# --------- 418# Do nothing but, unlike ":", preserve the value of $?. 419as_fn_nop () 420{ 421 return $? 422} 423as_nop=as_fn_nop 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520} 521 522 523# Determine whether it's possible to make 'echo' print without a newline. 524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 525# for compatibility with existing Makefiles. 526ECHO_C= ECHO_N= ECHO_T= 527case `echo -n x` in #((((( 528-n*) 529 case `echo 'xy\c'` in 530 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 xy) ECHO_C='\c';; 532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 ECHO_T=' ';; 534 esac;; 535*) 536 ECHO_N='-n';; 537esac 538 539# For backward compatibility with old third-party macros, we provide 540# the shell variables $as_echo and $as_echo_n. New code should use 541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 542as_echo='printf %s\n' 543as_echo_n='printf %s' 544 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 559 # In both cases, we have to default to `cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 585 586# Sed expression to map a string onto a valid variable name. 587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 588 589 590test -n "$DJDIR" || exec 7<&0 </dev/null 591exec 6>&1 592 593# Name of the host. 594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 595# so uname gets run too. 596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 597 598# 599# Initializations. 600# 601ac_default_prefix=/usr/local 602ac_clean_files= 603ac_config_libobj_dir=. 604LIBOBJS= 605cross_compiling=no 606subdirs= 607MFLAGS= 608MAKEFLAGS= 609 610# Identity of this package. 611PACKAGE_NAME='BULK_EXTRACTOR' 612PACKAGE_TARNAME='bulk_extractor' 613PACKAGE_VERSION='2.0.0-beta2' 614PACKAGE_STRING='BULK_EXTRACTOR 2.0.0-beta2' 615PACKAGE_BUGREPORT='bugs@digitalcorpora.org' 616PACKAGE_URL='' 617 618# Factoring default headers for most tests. 619ac_includes_default="\ 620#include <stddef.h> 621#ifdef HAVE_STDIO_H 622# include <stdio.h> 623#endif 624#ifdef HAVE_STDLIB_H 625# include <stdlib.h> 626#endif 627#ifdef HAVE_STRING_H 628# include <string.h> 629#endif 630#ifdef HAVE_INTTYPES_H 631# include <inttypes.h> 632#endif 633#ifdef HAVE_STDINT_H 634# include <stdint.h> 635#endif 636#ifdef HAVE_STRINGS_H 637# include <strings.h> 638#endif 639#ifdef HAVE_SYS_TYPES_H 640# include <sys/types.h> 641#endif 642#ifdef HAVE_SYS_STAT_H 643# include <sys/stat.h> 644#endif 645#ifdef HAVE_UNISTD_H 646# include <unistd.h> 647#endif" 648 649ac_header_c_list= 650ac_subst_vars='am__EXEEXT_FALSE 651am__EXEEXT_TRUE 652LTLIBOBJS 653LIBOBJS 654lightgrep_LIBS 655lightgrep_CFLAGS 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659FLEXSCANNERS_ENABLED_FALSE 660FLEXSCANNERS_ENABLED_TRUE 661LIGHTGREP_ENABLED_FALSE 662LIGHTGREP_ENABLED_TRUE 663RAR_ENABLED_FALSE 664RAR_ENABLED_TRUE 665HAVE_CXX17 666LEXLIB 667LEX_OUTPUT_ROOT 668LEX 669am__fastdepCXX_FALSE 670am__fastdepCXX_TRUE 671CXXDEPMODE 672ac_ct_CXX 673CXXFLAGS 674CXX 675ac_prefix_program 676MAINT 677MAINTAINER_MODE_FALSE 678MAINTAINER_MODE_TRUE 679AM_BACKSLASH 680AM_DEFAULT_VERBOSITY 681AM_DEFAULT_V 682AM_V 683CSCOPE 684ETAGS 685CTAGS 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__include 694DEPDIR 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718FOUND_GIT_FALSE 719FOUND_GIT_TRUE 720git 721OBJEXT 722EXEEXT 723ac_ct_CC 724CPPFLAGS 725LDFLAGS 726CFLAGS 727CC 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747runstatedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL 767am__quote' 768ac_subst_files='' 769ac_user_opts=' 770enable_option_checking 771enable_dependency_tracking 772enable_silent_rules 773enable_maintainer_mode 774enable_rar 775enable_lightgrep 776enable_flexscanners 777enable_mcheck 778enable_largefile 779enable_libewf 780enable_exiv2 781enable_address_sanitizer 782enable_opt 783enable_o3 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793CXX 794CXXFLAGS 795CCC 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799lightgrep_CFLAGS 800lightgrep_LIBS' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839runstatedir='${localstatedir}/run' 840includedir='${prefix}/include' 841oldincludedir='/usr/include' 842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 843infodir='${datarootdir}/info' 844htmldir='${docdir}' 845dvidir='${docdir}' 846pdfdir='${docdir}' 847psdir='${docdir}' 848libdir='${exec_prefix}/lib' 849localedir='${datarootdir}/locale' 850mandir='${datarootdir}/man' 851 852ac_prev= 853ac_dashdash= 854for ac_option 855do 856 # If the previous option needs an argument, assign it. 857 if test -n "$ac_prev"; then 858 eval $ac_prev=\$ac_option 859 ac_prev= 860 continue 861 fi 862 863 case $ac_option in 864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 865 *=) ac_optarg= ;; 866 *) ac_optarg=yes ;; 867 esac 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: \`$ac_useropt'" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: \`$ac_useropt'" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1091 | --runstate | --runstat | --runsta | --runst | --runs \ 1092 | --run | --ru | --r) 1093 ac_prev=runstatedir ;; 1094 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1095 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1096 | --run=* | --ru=* | --r=*) 1097 runstatedir=$ac_optarg ;; 1098 1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1100 ac_prev=sbindir ;; 1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1102 | --sbi=* | --sb=*) 1103 sbindir=$ac_optarg ;; 1104 1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1107 | --sharedst | --shareds | --shared | --share | --shar \ 1108 | --sha | --sh) 1109 ac_prev=sharedstatedir ;; 1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1113 | --sha=* | --sh=*) 1114 sharedstatedir=$ac_optarg ;; 1115 1116 -site | --site | --sit) 1117 ac_prev=site ;; 1118 -site=* | --site=* | --sit=*) 1119 site=$ac_optarg ;; 1120 1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1122 ac_prev=srcdir ;; 1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1124 srcdir=$ac_optarg ;; 1125 1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1127 | --syscon | --sysco | --sysc | --sys | --sy) 1128 ac_prev=sysconfdir ;; 1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1131 sysconfdir=$ac_optarg ;; 1132 1133 -target | --target | --targe | --targ | --tar | --ta | --t) 1134 ac_prev=target_alias ;; 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1136 target_alias=$ac_optarg ;; 1137 1138 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1139 verbose=yes ;; 1140 1141 -version | --version | --versio | --versi | --vers | -V) 1142 ac_init_version=: ;; 1143 1144 -with-* | --with-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: \`$ac_useropt'" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"with_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=\$ac_optarg ;; 1159 1160 -without-* | --without-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: \`$ac_useropt'" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=no ;; 1175 1176 --x) 1177 # Obsolete; use --with-x. 1178 with_x=yes ;; 1179 1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1181 | --x-incl | --x-inc | --x-in | --x-i) 1182 ac_prev=x_includes ;; 1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1185 x_includes=$ac_optarg ;; 1186 1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1189 ac_prev=x_libraries ;; 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1192 x_libraries=$ac_optarg ;; 1193 1194 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1195Try \`$0 --help' for more information" 1196 ;; 1197 1198 *=*) 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1200 # Reject names that are not valid shell variable names. 1201 case $ac_envvar in #( 1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1204 esac 1205 eval $ac_envvar=\$ac_optarg 1206 export $ac_envvar ;; 1207 1208 *) 1209 # FIXME: should be removed in autoconf 3.0. 1210 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1214 ;; 1215 1216 esac 1217done 1218 1219if test -n "$ac_prev"; then 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1221 as_fn_error $? "missing argument to $ac_option" 1222fi 1223 1224if test -n "$ac_unrecognized_opts"; then 1225 case $enable_option_checking in 1226 no) ;; 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1228 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1229 esac 1230fi 1231 1232# Check all directory arguments for consistency. 1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1234 datadir sysconfdir sharedstatedir localstatedir includedir \ 1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1236 libdir localedir mandir runstatedir 1237do 1238 eval ac_val=\$$ac_var 1239 # Remove trailing slashes. 1240 case $ac_val in 1241 */ ) 1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1243 eval $ac_var=\$ac_val;; 1244 esac 1245 # Be sure to have absolute directory names. 1246 case $ac_val in 1247 [\\/$]* | ?:[\\/]* ) continue;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1249 esac 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1251done 1252 1253# There might be people who depend on the old broken behavior: `$host' 1254# used to hold the argument of --host etc. 1255# FIXME: To remove some day. 1256build=$build_alias 1257host=$host_alias 1258target=$target_alias 1259 1260# FIXME: To remove some day. 1261if test "x$host_alias" != x; then 1262 if test "x$build_alias" = x; then 1263 cross_compiling=maybe 1264 elif test "x$build_alias" != "x$host_alias"; then 1265 cross_compiling=yes 1266 fi 1267fi 1268 1269ac_tool_prefix= 1270test -n "$host_alias" && ac_tool_prefix=$host_alias- 1271 1272test "$silent" = yes && exec 6>/dev/null 1273 1274 1275ac_pwd=`pwd` && test -n "$ac_pwd" && 1276ac_ls_di=`ls -di .` && 1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1278 as_fn_error $? "working directory cannot be determined" 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1280 as_fn_error $? "pwd does not report name of working directory" 1281 1282 1283# Find the source files, if location was not specified. 1284if test -z "$srcdir"; then 1285 ac_srcdir_defaulted=yes 1286 # Try the directory containing this script, then the parent directory. 1287 ac_confdir=`$as_dirname -- "$as_myself" || 1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1289 X"$as_myself" : 'X\(//\)[^/]' \| \ 1290 X"$as_myself" : 'X\(//\)$' \| \ 1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1292printf "%s\n" X"$as_myself" | 1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)[^/].*/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\).*/{ 1306 s//\1/ 1307 q 1308 } 1309 s/.*/./; q'` 1310 srcdir=$ac_confdir 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 srcdir=.. 1313 fi 1314else 1315 ac_srcdir_defaulted=no 1316fi 1317if test ! -r "$srcdir/$ac_unique_file"; then 1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1320fi 1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1322ac_abs_confdir=`( 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1324 pwd)` 1325# When building in place, set srcdir=. 1326if test "$ac_abs_confdir" = "$ac_pwd"; then 1327 srcdir=. 1328fi 1329# Remove unnecessary trailing slashes from srcdir. 1330# Double slashes in file names in object file debugging info 1331# mess up M-x gdb in Emacs. 1332case $srcdir in 1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1334esac 1335for ac_var in $ac_precious_vars; do 1336 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_env_${ac_var}_value=\$${ac_var} 1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1340done 1341 1342# 1343# Report the --help message. 1344# 1345if test "$ac_init_help" = "long"; then 1346 # Omit some internal or obsolete options to make the list less imposing. 1347 # This message is too long to be a string in the A/UX 3.1 sh. 1348 cat <<_ACEOF 1349\`configure' configures BULK_EXTRACTOR 2.0.0-beta2 to adapt to many kinds of systems. 1350 1351Usage: $0 [OPTION]... [VAR=VALUE]... 1352 1353To assign environment variables (e.g., CC, CFLAGS...), specify them as 1354VAR=VALUE. See below for descriptions of some of the useful variables. 1355 1356Defaults for the options are specified in brackets. 1357 1358Configuration: 1359 -h, --help display this help and exit 1360 --help=short display options specific to this package 1361 --help=recursive display the short help of all the included packages 1362 -V, --version display version information and exit 1363 -q, --quiet, --silent do not print \`checking ...' messages 1364 --cache-file=FILE cache test results in FILE [disabled] 1365 -C, --config-cache alias for \`--cache-file=config.cache' 1366 -n, --no-create do not create output files 1367 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1368 1369Installation directories: 1370 --prefix=PREFIX install architecture-independent files in PREFIX 1371 [$ac_default_prefix] 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1373 [PREFIX] 1374 1375By default, \`make install' will install all the files in 1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1377an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1378for instance \`--prefix=\$HOME'. 1379 1380For better control, use the options below. 1381 1382Fine tuning of the installation directories: 1383 --bindir=DIR user executables [EPREFIX/bin] 1384 --sbindir=DIR system admin executables [EPREFIX/sbin] 1385 --libexecdir=DIR program executables [EPREFIX/libexec] 1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1389 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1390 --libdir=DIR object code libraries [EPREFIX/lib] 1391 --includedir=DIR C header files [PREFIX/include] 1392 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1395 --infodir=DIR info documentation [DATAROOTDIR/info] 1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1397 --mandir=DIR man documentation [DATAROOTDIR/man] 1398 --docdir=DIR documentation root [DATAROOTDIR/doc/bulk_extractor] 1399 --htmldir=DIR html documentation [DOCDIR] 1400 --dvidir=DIR dvi documentation [DOCDIR] 1401 --pdfdir=DIR pdf documentation [DOCDIR] 1402 --psdir=DIR ps documentation [DOCDIR] 1403_ACEOF 1404 1405 cat <<\_ACEOF 1406 1407Program names: 1408 --program-prefix=PREFIX prepend PREFIX to installed program names 1409 --program-suffix=SUFFIX append SUFFIX to installed program names 1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of BULK_EXTRACTOR 2.0.0-beta2:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-maintainer-mode 1431 enable make rules and dependencies not useful (and 1432 sometimes confusing) to the casual installer 1433 --disable-rar Disable RAR decompression 1434 --enable-lightgrep enable LIGHTGREP 1435 --disable-flexscanners disable FLEX-based scanners 1436 --enable-mcheck enable memory analysis support for detecting memory 1437 leaks and detecting multiply deallocated memory 1438 resources 1439 --disable-largefile omit support for large files 1440 --disable-libewf disable libewf support 1441 --enable-exiv2=true to check for exiv2; warning: exiv2 crashes 1442 1443 --enable-address-sanitizer 1444 enabled AddressSanitizer support for detecting a 1445 wide variety of memory allocation and deallocation 1446 errors 1447 --disable-opt Drop all -O C flags 1448 --disable-o3 Do not force O3 optimization; use default level 1449 1450Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 CXX C++ compiler command 1459 CXXFLAGS C++ compiler flags 1460 PKG_CONFIG path to pkg-config utility 1461 PKG_CONFIG_PATH 1462 directories to add to pkg-config's search path 1463 PKG_CONFIG_LIBDIR 1464 path overriding pkg-config's built-in search path 1465 lightgrep_CFLAGS 1466 C compiler flags for lightgrep, overriding pkg-config 1467 lightgrep_LIBS 1468 linker flags for lightgrep, overriding pkg-config 1469 1470Use these variables to override the choices made by `configure' or to help 1471it to find libraries and programs with nonstandard names/locations. 1472 1473Report bugs to <bugs@digitalcorpora.org>. 1474_ACEOF 1475ac_status=$? 1476fi 1477 1478if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486case "$ac_dir" in 1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488*) 1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496esac 1497ac_abs_top_builddir=$ac_pwd 1498ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499# for backward compatibility: 1500ac_top_builddir=$ac_top_build_prefix 1501 1502case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515esac 1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for configure.gnu first; this name is used for a wrapper for 1520 # Metaconfig's "Configure" on case-insensitive file systems. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537BULK_EXTRACTOR configure 2.0.0-beta2 1538generated by GNU Autoconf 2.71 1539 1540Copyright (C) 2021 Free Software Foundation, Inc. 1541This configure script is free software; the Free Software Foundation 1542gives unlimited permission to copy, distribute and modify it. 1543_ACEOF 1544 exit 1545fi 1546 1547## ------------------------ ## 1548## Autoconf initialization. ## 1549## ------------------------ ## 1550 1551# ac_fn_c_try_compile LINENO 1552# -------------------------- 1553# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest.beam 1558 if { { ac_try="$ac_compile" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564printf "%s\n" "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext 1577then : 1578 ac_retval=0 1579else $as_nop 1580 printf "%s\n" "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588} # ac_fn_c_try_compile 1589 1590# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1591# ------------------------------------------------------- 1592# Tests whether HEADER exists and can be compiled using the include files in 1593# INCLUDES, setting the cache variable VAR accordingly. 1594ac_fn_c_check_header_compile () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1598printf %s "checking for $2... " >&6; } 1599if eval test \${$3+y} 1600then : 1601 printf %s "(cached) " >&6 1602else $as_nop 1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604/* end confdefs.h. */ 1605$4 1606#include <$2> 1607_ACEOF 1608if ac_fn_c_try_compile "$LINENO" 1609then : 1610 eval "$3=yes" 1611else $as_nop 1612 eval "$3=no" 1613fi 1614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1615fi 1616eval ac_res=\$$3 1617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1618printf "%s\n" "$ac_res" >&6; } 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 1621} # ac_fn_c_check_header_compile 1622 1623# ac_fn_c_try_link LINENO 1624# ----------------------- 1625# Try to link conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_link () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1630 if { { ac_try="$ac_link" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636printf "%s\n" "$ac_try_echo"; } >&5 1637 (eval "$ac_link") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest$ac_exeext && { 1649 test "$cross_compiling" = yes || 1650 test -x conftest$ac_exeext 1651 } 1652then : 1653 ac_retval=0 1654else $as_nop 1655 printf "%s\n" "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659fi 1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1662 # interfere with the next link command; also delete a directory that is 1663 # left behind by Apple's compiler. We do this before executing the actions. 1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_link 1669 1670# ac_fn_c_check_func LINENO FUNC VAR 1671# ---------------------------------- 1672# Tests whether FUNC exists, setting the cache variable VAR accordingly 1673ac_fn_c_check_func () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1677printf %s "checking for $2... " >&6; } 1678if eval test \${$3+y} 1679then : 1680 printf %s "(cached) " >&6 1681else $as_nop 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683/* end confdefs.h. */ 1684/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1685 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1686#define $2 innocuous_$2 1687 1688/* System header to define __stub macros and hopefully few prototypes, 1689 which can conflict with char $2 (); below. */ 1690 1691#include <limits.h> 1692#undef $2 1693 1694/* Override any GCC internal prototype to avoid an error. 1695 Use char because int might match the return type of a GCC 1696 builtin and then its argument prototype would still apply. */ 1697#ifdef __cplusplus 1698extern "C" 1699#endif 1700char $2 (); 1701/* The GNU C library defines this for functions which it implements 1702 to always fail with ENOSYS. Some functions are actually named 1703 something starting with __ and the normal name is an alias. */ 1704#if defined __stub_$2 || defined __stub___$2 1705choke me 1706#endif 1707 1708int 1709main (void) 1710{ 1711return $2 (); 1712 ; 1713 return 0; 1714} 1715_ACEOF 1716if ac_fn_c_try_link "$LINENO" 1717then : 1718 eval "$3=yes" 1719else $as_nop 1720 eval "$3=no" 1721fi 1722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1723 conftest$ac_exeext conftest.$ac_ext 1724fi 1725eval ac_res=\$$3 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727printf "%s\n" "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_func 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1735# executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745printf "%s\n" "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755printf "%s\n" "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; } 1760then : 1761 ac_retval=0 1762else $as_nop 1763 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1764 printf "%s\n" "$as_me: failed program was:" >&5 1765sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=$ac_status 1768fi 1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 as_fn_set_status $ac_retval 1772 1773} # ac_fn_c_try_run 1774 1775# ac_fn_cxx_try_compile LINENO 1776# ---------------------------- 1777# Try to compile conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_cxx_try_compile () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest.beam 1782 if { { ac_try="$ac_compile" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788printf "%s\n" "$ac_try_echo"; } >&5 1789 (eval "$ac_compile") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_cxx_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest.$ac_objext 1801then : 1802 ac_retval=0 1803else $as_nop 1804 printf "%s\n" "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_cxx_try_compile 1813 1814# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1815# --------------------------------------------------------- 1816# Tests whether HEADER exists and can be compiled using the include files in 1817# INCLUDES, setting the cache variable VAR accordingly. 1818ac_fn_cxx_check_header_compile () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822printf %s "checking for $2... " >&6; } 1823if eval test \${$3+y} 1824then : 1825 printf %s "(cached) " >&6 1826else $as_nop 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_cxx_try_compile "$LINENO" 1833then : 1834 eval "$3=yes" 1835else $as_nop 1836 eval "$3=no" 1837fi 1838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1839fi 1840eval ac_res=\$$3 1841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1842printf "%s\n" "$ac_res" >&6; } 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 1845} # ac_fn_cxx_check_header_compile 1846 1847# ac_fn_c_find_intX_t LINENO BITS VAR 1848# ----------------------------------- 1849# Finds a signed integer type with width BITS, setting cache variable VAR 1850# accordingly. 1851ac_fn_c_find_intX_t () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1855printf %s "checking for int$2_t... " >&6; } 1856if eval test \${$3+y} 1857then : 1858 printf %s "(cached) " >&6 1859else $as_nop 1860 eval "$3=no" 1861 # Order is important - never check a type that is potentially smaller 1862 # than half of the expected target width. 1863 for ac_type in int$2_t 'int' 'long int' \ 1864 'long long int' 'short int' 'signed char'; do 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867$ac_includes_default 1868 enum { N = $2 / 2 - 1 }; 1869int 1870main (void) 1871{ 1872static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1873test_array [0] = 0; 1874return test_array [0]; 1875 1876 ; 1877 return 0; 1878} 1879_ACEOF 1880if ac_fn_c_try_compile "$LINENO" 1881then : 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884$ac_includes_default 1885 enum { N = $2 / 2 - 1 }; 1886int 1887main (void) 1888{ 1889static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1890 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1891test_array [0] = 0; 1892return test_array [0]; 1893 1894 ; 1895 return 0; 1896} 1897_ACEOF 1898if ac_fn_c_try_compile "$LINENO" 1899then : 1900 1901else $as_nop 1902 case $ac_type in #( 1903 int$2_t) : 1904 eval "$3=yes" ;; #( 1905 *) : 1906 eval "$3=\$ac_type" ;; 1907esac 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1910fi 1911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1912 if eval test \"x\$"$3"\" = x"no" 1913then : 1914 1915else $as_nop 1916 break 1917fi 1918 done 1919fi 1920eval ac_res=\$$3 1921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922printf "%s\n" "$ac_res" >&6; } 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 1925} # ac_fn_c_find_intX_t 1926 1927# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1928# ---------------------------------------------------- 1929# Tries to find if the field MEMBER exists in type AGGR, after including 1930# INCLUDES, setting cache variable VAR accordingly. 1931ac_fn_c_check_member () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1935printf %s "checking for $2.$3... " >&6; } 1936if eval test \${$4+y} 1937then : 1938 printf %s "(cached) " >&6 1939else $as_nop 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$5 1943int 1944main (void) 1945{ 1946static $2 ac_aggr; 1947if (ac_aggr.$3) 1948return 0; 1949 ; 1950 return 0; 1951} 1952_ACEOF 1953if ac_fn_c_try_compile "$LINENO" 1954then : 1955 eval "$4=yes" 1956else $as_nop 1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959$5 1960int 1961main (void) 1962{ 1963static $2 ac_aggr; 1964if (sizeof ac_aggr.$3) 1965return 0; 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO" 1971then : 1972 eval "$4=yes" 1973else $as_nop 1974 eval "$4=no" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1979fi 1980eval ac_res=\$$4 1981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982printf "%s\n" "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_member 1986ac_configure_args_raw= 1987for ac_arg 1988do 1989 case $ac_arg in 1990 *\'*) 1991 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1992 esac 1993 as_fn_append ac_configure_args_raw " '$ac_arg'" 1994done 1995 1996case $ac_configure_args_raw in 1997 *$as_nl*) 1998 ac_safe_unquote= ;; 1999 *) 2000 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2001 ac_unsafe_a="$ac_unsafe_z#~" 2002 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2003 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2004esac 2005 2006cat >config.log <<_ACEOF 2007This file contains any messages produced by compilers while 2008running configure, to aid debugging if configure makes a mistake. 2009 2010It was created by BULK_EXTRACTOR $as_me 2.0.0-beta2, which was 2011generated by GNU Autoconf 2.71. Invocation command line was 2012 2013 $ $0$ac_configure_args_raw 2014 2015_ACEOF 2016exec 5>>config.log 2017{ 2018cat <<_ASUNAME 2019## --------- ## 2020## Platform. ## 2021## --------- ## 2022 2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2024uname -m = `(uname -m) 2>/dev/null || echo unknown` 2025uname -r = `(uname -r) 2>/dev/null || echo unknown` 2026uname -s = `(uname -s) 2>/dev/null || echo unknown` 2027uname -v = `(uname -v) 2>/dev/null || echo unknown` 2028 2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2030/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2031 2032/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2033/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2035/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2036/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2037/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2038/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2039 2040_ASUNAME 2041 2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2043for as_dir in $PATH 2044do 2045 IFS=$as_save_IFS 2046 case $as_dir in #((( 2047 '') as_dir=./ ;; 2048 */) ;; 2049 *) as_dir=$as_dir/ ;; 2050 esac 2051 printf "%s\n" "PATH: $as_dir" 2052 done 2053IFS=$as_save_IFS 2054 2055} >&5 2056 2057cat >&5 <<_ACEOF 2058 2059 2060## ----------- ## 2061## Core tests. ## 2062## ----------- ## 2063 2064_ACEOF 2065 2066 2067# Keep a trace of the command line. 2068# Strip out --no-create and --no-recursion so they do not pile up. 2069# Strip out --silent because we don't want to record it for future runs. 2070# Also quote any args containing shell meta-characters. 2071# Make two passes to allow for proper duplicate-argument suppression. 2072ac_configure_args= 2073ac_configure_args0= 2074ac_configure_args1= 2075ac_must_keep_next=false 2076for ac_pass in 1 2 2077do 2078 for ac_arg 2079 do 2080 case $ac_arg in 2081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2083 | -silent | --silent | --silen | --sile | --sil) 2084 continue ;; 2085 *\'*) 2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2087 esac 2088 case $ac_pass in 2089 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2090 2) 2091 as_fn_append ac_configure_args1 " '$ac_arg'" 2092 if test $ac_must_keep_next = true; then 2093 ac_must_keep_next=false # Got value, back to normal. 2094 else 2095 case $ac_arg in 2096 *=* | --config-cache | -C | -disable-* | --disable-* \ 2097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2099 | -with-* | --with-* | -without-* | --without-* | --x) 2100 case "$ac_configure_args0 " in 2101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2102 esac 2103 ;; 2104 -* ) ac_must_keep_next=true ;; 2105 esac 2106 fi 2107 as_fn_append ac_configure_args " '$ac_arg'" 2108 ;; 2109 esac 2110 done 2111done 2112{ ac_configure_args0=; unset ac_configure_args0;} 2113{ ac_configure_args1=; unset ac_configure_args1;} 2114 2115# When interrupted or exit'd, cleanup temporary files, and complete 2116# config.log. We remove comments because anyway the quotes in there 2117# would cause problems or look ugly. 2118# WARNING: Use '\'' to represent an apostrophe within the trap. 2119# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2120trap 'exit_status=$? 2121 # Sanitize IFS. 2122 IFS=" "" $as_nl" 2123 # Save into config.log some information that might help in debugging. 2124 { 2125 echo 2126 2127 printf "%s\n" "## ---------------- ## 2128## Cache variables. ## 2129## ---------------- ##" 2130 echo 2131 # The following way of writing the cache mishandles newlines in values, 2132( 2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2134 eval ac_val=\$$ac_var 2135 case $ac_val in #( 2136 *${as_nl}*) 2137 case $ac_var in #( 2138 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2139printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2140 esac 2141 case $ac_var in #( 2142 _ | IFS | as_nl) ;; #( 2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2144 *) { eval $ac_var=; unset $ac_var;} ;; 2145 esac ;; 2146 esac 2147 done 2148 (set) 2>&1 | 2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2150 *${as_nl}ac_space=\ *) 2151 sed -n \ 2152 "s/'\''/'\''\\\\'\'''\''/g; 2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2154 ;; #( 2155 *) 2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2157 ;; 2158 esac | 2159 sort 2160) 2161 echo 2162 2163 printf "%s\n" "## ----------------- ## 2164## Output variables. ## 2165## ----------------- ##" 2166 echo 2167 for ac_var in $ac_subst_vars 2168 do 2169 eval ac_val=\$$ac_var 2170 case $ac_val in 2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2172 esac 2173 printf "%s\n" "$ac_var='\''$ac_val'\''" 2174 done | sort 2175 echo 2176 2177 if test -n "$ac_subst_files"; then 2178 printf "%s\n" "## ------------------- ## 2179## File substitutions. ## 2180## ------------------- ##" 2181 echo 2182 for ac_var in $ac_subst_files 2183 do 2184 eval ac_val=\$$ac_var 2185 case $ac_val in 2186 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2187 esac 2188 printf "%s\n" "$ac_var='\''$ac_val'\''" 2189 done | sort 2190 echo 2191 fi 2192 2193 if test -s confdefs.h; then 2194 printf "%s\n" "## ----------- ## 2195## confdefs.h. ## 2196## ----------- ##" 2197 echo 2198 cat confdefs.h 2199 echo 2200 fi 2201 test "$ac_signal" != 0 && 2202 printf "%s\n" "$as_me: caught signal $ac_signal" 2203 printf "%s\n" "$as_me: exit $exit_status" 2204 } >&5 2205 rm -f core *.core core.conftest.* && 2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2207 exit $exit_status 2208' 0 2209for ac_signal in 1 2 13 15; do 2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2211done 2212ac_signal=0 2213 2214# confdefs.h avoids OS command line length limits that DEFS can exceed. 2215rm -f -r conftest* confdefs.h 2216 2217printf "%s\n" "/* confdefs.h */" > confdefs.h 2218 2219# Predefined preprocessor variables. 2220 2221printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2222 2223printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2224 2225printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2226 2227printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2228 2229printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2230 2231printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2232 2233 2234# Let the site file select an alternate cache file if it wants to. 2235# Prefer an explicitly selected file to automatically selected ones. 2236if test -n "$CONFIG_SITE"; then 2237 ac_site_files="$CONFIG_SITE" 2238elif test "x$prefix" != xNONE; then 2239 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2240else 2241 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2242fi 2243 2244for ac_site_file in $ac_site_files 2245do 2246 case $ac_site_file in #( 2247 */*) : 2248 ;; #( 2249 *) : 2250 ac_site_file=./$ac_site_file ;; 2251esac 2252 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2254printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2255 sed 's/^/| /' "$ac_site_file" >&5 2256 . "$ac_site_file" \ 2257 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2258printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2259as_fn_error $? "failed to load site script $ac_site_file 2260See \`config.log' for more details" "$LINENO" 5; } 2261 fi 2262done 2263 2264if test -r "$cache_file"; then 2265 # Some versions of bash will fail to source /dev/null (special files 2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2269printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2270 case $cache_file in 2271 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2272 *) . "./$cache_file";; 2273 esac 2274 fi 2275else 2276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2277printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2278 >$cache_file 2279fi 2280 2281# Test code for whether the C compiler supports C89 (global declarations) 2282ac_c_conftest_c89_globals=' 2283/* Does the compiler advertise C89 conformance? 2284 Do not test the value of __STDC__, because some compilers set it to 0 2285 while being otherwise adequately conformant. */ 2286#if !defined __STDC__ 2287# error "Compiler does not advertise C89 conformance" 2288#endif 2289 2290#include <stddef.h> 2291#include <stdarg.h> 2292struct stat; 2293/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2294struct buf { int x; }; 2295struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2296static char *e (p, i) 2297 char **p; 2298 int i; 2299{ 2300 return p[i]; 2301} 2302static char *f (char * (*g) (char **, int), char **p, ...) 2303{ 2304 char *s; 2305 va_list v; 2306 va_start (v,p); 2307 s = g (p, va_arg (v,int)); 2308 va_end (v); 2309 return s; 2310} 2311 2312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2313 function prototypes and stuff, but not \xHH hex character constants. 2314 These do not provoke an error unfortunately, instead are silently treated 2315 as an "x". The following induces an error, until -std is added to get 2316 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2317 array size at least. It is necessary to write \x00 == 0 to get something 2318 that is true only with -std. */ 2319int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2320 2321/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2322 inside strings and character constants. */ 2323#define FOO(x) '\''x'\'' 2324int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2325 2326int test (int i, double x); 2327struct s1 {int (*f) (int a);}; 2328struct s2 {int (*f) (double a);}; 2329int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2330 int, int);' 2331 2332# Test code for whether the C compiler supports C89 (body of main). 2333ac_c_conftest_c89_main=' 2334ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2335' 2336 2337# Test code for whether the C compiler supports C99 (global declarations) 2338ac_c_conftest_c99_globals=' 2339// Does the compiler advertise C99 conformance? 2340#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2341# error "Compiler does not advertise C99 conformance" 2342#endif 2343 2344#include <stdbool.h> 2345extern int puts (const char *); 2346extern int printf (const char *, ...); 2347extern int dprintf (int, const char *, ...); 2348extern void *malloc (size_t); 2349 2350// Check varargs macros. These examples are taken from C99 6.10.3.5. 2351// dprintf is used instead of fprintf to avoid needing to declare 2352// FILE and stderr. 2353#define debug(...) dprintf (2, __VA_ARGS__) 2354#define showlist(...) puts (#__VA_ARGS__) 2355#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2356static void 2357test_varargs_macros (void) 2358{ 2359 int x = 1234; 2360 int y = 5678; 2361 debug ("Flag"); 2362 debug ("X = %d\n", x); 2363 showlist (The first, second, and third items.); 2364 report (x>y, "x is %d but y is %d", x, y); 2365} 2366 2367// Check long long types. 2368#define BIG64 18446744073709551615ull 2369#define BIG32 4294967295ul 2370#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2371#if !BIG_OK 2372 #error "your preprocessor is broken" 2373#endif 2374#if BIG_OK 2375#else 2376 #error "your preprocessor is broken" 2377#endif 2378static long long int bignum = -9223372036854775807LL; 2379static unsigned long long int ubignum = BIG64; 2380 2381struct incomplete_array 2382{ 2383 int datasize; 2384 double data[]; 2385}; 2386 2387struct named_init { 2388 int number; 2389 const wchar_t *name; 2390 double average; 2391}; 2392 2393typedef const char *ccp; 2394 2395static inline int 2396test_restrict (ccp restrict text) 2397{ 2398 // See if C++-style comments work. 2399 // Iterate through items via the restricted pointer. 2400 // Also check for declarations in for loops. 2401 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2402 continue; 2403 return 0; 2404} 2405 2406// Check varargs and va_copy. 2407static bool 2408test_varargs (const char *format, ...) 2409{ 2410 va_list args; 2411 va_start (args, format); 2412 va_list args_copy; 2413 va_copy (args_copy, args); 2414 2415 const char *str = ""; 2416 int number = 0; 2417 float fnumber = 0; 2418 2419 while (*format) 2420 { 2421 switch (*format++) 2422 { 2423 case '\''s'\'': // string 2424 str = va_arg (args_copy, const char *); 2425 break; 2426 case '\''d'\'': // int 2427 number = va_arg (args_copy, int); 2428 break; 2429 case '\''f'\'': // float 2430 fnumber = va_arg (args_copy, double); 2431 break; 2432 default: 2433 break; 2434 } 2435 } 2436 va_end (args_copy); 2437 va_end (args); 2438 2439 return *str && number && fnumber; 2440} 2441' 2442 2443# Test code for whether the C compiler supports C99 (body of main). 2444ac_c_conftest_c99_main=' 2445 // Check bool. 2446 _Bool success = false; 2447 success |= (argc != 0); 2448 2449 // Check restrict. 2450 if (test_restrict ("String literal") == 0) 2451 success = true; 2452 char *restrict newvar = "Another string"; 2453 2454 // Check varargs. 2455 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2456 test_varargs_macros (); 2457 2458 // Check flexible array members. 2459 struct incomplete_array *ia = 2460 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2461 ia->datasize = 10; 2462 for (int i = 0; i < ia->datasize; ++i) 2463 ia->data[i] = i * 1.234; 2464 2465 // Check named initializers. 2466 struct named_init ni = { 2467 .number = 34, 2468 .name = L"Test wide string", 2469 .average = 543.34343, 2470 }; 2471 2472 ni.number = 58; 2473 2474 int dynamic_array[ni.number]; 2475 dynamic_array[0] = argv[0][0]; 2476 dynamic_array[ni.number - 1] = 543; 2477 2478 // work around unused variable warnings 2479 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2480 || dynamic_array[ni.number - 1] != 543); 2481' 2482 2483# Test code for whether the C compiler supports C11 (global declarations) 2484ac_c_conftest_c11_globals=' 2485// Does the compiler advertise C11 conformance? 2486#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2487# error "Compiler does not advertise C11 conformance" 2488#endif 2489 2490// Check _Alignas. 2491char _Alignas (double) aligned_as_double; 2492char _Alignas (0) no_special_alignment; 2493extern char aligned_as_int; 2494char _Alignas (0) _Alignas (int) aligned_as_int; 2495 2496// Check _Alignof. 2497enum 2498{ 2499 int_alignment = _Alignof (int), 2500 int_array_alignment = _Alignof (int[100]), 2501 char_alignment = _Alignof (char) 2502}; 2503_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2504 2505// Check _Noreturn. 2506int _Noreturn does_not_return (void) { for (;;) continue; } 2507 2508// Check _Static_assert. 2509struct test_static_assert 2510{ 2511 int x; 2512 _Static_assert (sizeof (int) <= sizeof (long int), 2513 "_Static_assert does not work in struct"); 2514 long int y; 2515}; 2516 2517// Check UTF-8 literals. 2518#define u8 syntax error! 2519char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2520 2521// Check duplicate typedefs. 2522typedef long *long_ptr; 2523typedef long int *long_ptr; 2524typedef long_ptr long_ptr; 2525 2526// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2527struct anonymous 2528{ 2529 union { 2530 struct { int i; int j; }; 2531 struct { int k; long int l; } w; 2532 }; 2533 int m; 2534} v1; 2535' 2536 2537# Test code for whether the C compiler supports C11 (body of main). 2538ac_c_conftest_c11_main=' 2539 _Static_assert ((offsetof (struct anonymous, i) 2540 == offsetof (struct anonymous, w.k)), 2541 "Anonymous union alignment botch"); 2542 v1.i = 2; 2543 v1.w.k = 5; 2544 ok |= v1.i != 5; 2545' 2546 2547# Test code for whether the C compiler supports C11 (complete). 2548ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2549${ac_c_conftest_c99_globals} 2550${ac_c_conftest_c11_globals} 2551 2552int 2553main (int argc, char **argv) 2554{ 2555 int ok = 0; 2556 ${ac_c_conftest_c89_main} 2557 ${ac_c_conftest_c99_main} 2558 ${ac_c_conftest_c11_main} 2559 return ok; 2560} 2561" 2562 2563# Test code for whether the C compiler supports C99 (complete). 2564ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2565${ac_c_conftest_c99_globals} 2566 2567int 2568main (int argc, char **argv) 2569{ 2570 int ok = 0; 2571 ${ac_c_conftest_c89_main} 2572 ${ac_c_conftest_c99_main} 2573 return ok; 2574} 2575" 2576 2577# Test code for whether the C compiler supports C89 (complete). 2578ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2579 2580int 2581main (int argc, char **argv) 2582{ 2583 int ok = 0; 2584 ${ac_c_conftest_c89_main} 2585 return ok; 2586} 2587" 2588 2589as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2590as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2591as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2592as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2593as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2594as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2595as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2596as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2597as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2598# Test code for whether the C++ compiler supports C++98 (global declarations) 2599ac_cxx_conftest_cxx98_globals=' 2600// Does the compiler advertise C++98 conformance? 2601#if !defined __cplusplus || __cplusplus < 199711L 2602# error "Compiler does not advertise C++98 conformance" 2603#endif 2604 2605// These inclusions are to reject old compilers that 2606// lack the unsuffixed header files. 2607#include <cstdlib> 2608#include <exception> 2609 2610// <cassert> and <cstring> are *not* freestanding headers in C++98. 2611extern void assert (int); 2612namespace std { 2613 extern int strcmp (const char *, const char *); 2614} 2615 2616// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2617using std::exception; 2618using std::strcmp; 2619 2620namespace { 2621 2622void test_exception_syntax() 2623{ 2624 try { 2625 throw "test"; 2626 } catch (const char *s) { 2627 // Extra parentheses suppress a warning when building autoconf itself, 2628 // due to lint rules shared with more typical C programs. 2629 assert (!(strcmp) (s, "test")); 2630 } 2631} 2632 2633template <typename T> struct test_template 2634{ 2635 T const val; 2636 explicit test_template(T t) : val(t) {} 2637 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2638}; 2639 2640} // anonymous namespace 2641' 2642 2643# Test code for whether the C++ compiler supports C++98 (body of main) 2644ac_cxx_conftest_cxx98_main=' 2645 assert (argc); 2646 assert (! argv[0]); 2647{ 2648 test_exception_syntax (); 2649 test_template<double> tt (2.0); 2650 assert (tt.add (4) == 6.0); 2651 assert (true && !false); 2652} 2653' 2654 2655# Test code for whether the C++ compiler supports C++11 (global declarations) 2656ac_cxx_conftest_cxx11_globals=' 2657// Does the compiler advertise C++ 2011 conformance? 2658#if !defined __cplusplus || __cplusplus < 201103L 2659# error "Compiler does not advertise C++11 conformance" 2660#endif 2661 2662namespace cxx11test 2663{ 2664 constexpr int get_val() { return 20; } 2665 2666 struct testinit 2667 { 2668 int i; 2669 double d; 2670 }; 2671 2672 class delegate 2673 { 2674 public: 2675 delegate(int n) : n(n) {} 2676 delegate(): delegate(2354) {} 2677 2678 virtual int getval() { return this->n; }; 2679 protected: 2680 int n; 2681 }; 2682 2683 class overridden : public delegate 2684 { 2685 public: 2686 overridden(int n): delegate(n) {} 2687 virtual int getval() override final { return this->n * 2; } 2688 }; 2689 2690 class nocopy 2691 { 2692 public: 2693 nocopy(int i): i(i) {} 2694 nocopy() = default; 2695 nocopy(const nocopy&) = delete; 2696 nocopy & operator=(const nocopy&) = delete; 2697 private: 2698 int i; 2699 }; 2700 2701 // for testing lambda expressions 2702 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2703 { 2704 return f(v); 2705 } 2706 2707 // for testing variadic templates and trailing return types 2708 template <typename V> auto sum(V first) -> V 2709 { 2710 return first; 2711 } 2712 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2713 { 2714 return first + sum(rest...); 2715 } 2716} 2717' 2718 2719# Test code for whether the C++ compiler supports C++11 (body of main) 2720ac_cxx_conftest_cxx11_main=' 2721{ 2722 // Test auto and decltype 2723 auto a1 = 6538; 2724 auto a2 = 48573953.4; 2725 auto a3 = "String literal"; 2726 2727 int total = 0; 2728 for (auto i = a3; *i; ++i) { total += *i; } 2729 2730 decltype(a2) a4 = 34895.034; 2731} 2732{ 2733 // Test constexpr 2734 short sa[cxx11test::get_val()] = { 0 }; 2735} 2736{ 2737 // Test initializer lists 2738 cxx11test::testinit il = { 4323, 435234.23544 }; 2739} 2740{ 2741 // Test range-based for 2742 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2743 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2744 for (auto &x : array) { x += 23; } 2745} 2746{ 2747 // Test lambda expressions 2748 using cxx11test::eval; 2749 assert (eval ([](int x) { return x*2; }, 21) == 42); 2750 double d = 2.0; 2751 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2752 assert (d == 5.0); 2753 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2754 assert (d == 5.0); 2755} 2756{ 2757 // Test use of variadic templates 2758 using cxx11test::sum; 2759 auto a = sum(1); 2760 auto b = sum(1, 2); 2761 auto c = sum(1.0, 2.0, 3.0); 2762} 2763{ 2764 // Test constructor delegation 2765 cxx11test::delegate d1; 2766 cxx11test::delegate d2(); 2767 cxx11test::delegate d3(45); 2768} 2769{ 2770 // Test override and final 2771 cxx11test::overridden o1(55464); 2772} 2773{ 2774 // Test nullptr 2775 char *c = nullptr; 2776} 2777{ 2778 // Test template brackets 2779 test_template<::test_template<int>> v(test_template<int>(12)); 2780} 2781{ 2782 // Unicode literals 2783 char const *utf8 = u8"UTF-8 string \u2500"; 2784 char16_t const *utf16 = u"UTF-8 string \u2500"; 2785 char32_t const *utf32 = U"UTF-32 string \u2500"; 2786} 2787' 2788 2789# Test code for whether the C compiler supports C++11 (complete). 2790ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2791${ac_cxx_conftest_cxx11_globals} 2792 2793int 2794main (int argc, char **argv) 2795{ 2796 int ok = 0; 2797 ${ac_cxx_conftest_cxx98_main} 2798 ${ac_cxx_conftest_cxx11_main} 2799 return ok; 2800} 2801" 2802 2803# Test code for whether the C compiler supports C++98 (complete). 2804ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2805int 2806main (int argc, char **argv) 2807{ 2808 int ok = 0; 2809 ${ac_cxx_conftest_cxx98_main} 2810 return ok; 2811} 2812" 2813 2814 2815# Auxiliary files required by this configure script. 2816ac_aux_files="missing install-sh compile" 2817 2818# Locations in which to look for auxiliary files. 2819ac_aux_dir_candidates="${srcdir}/build-aux" 2820 2821# Search for a directory containing all of the required auxiliary files, 2822# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2823# If we don't find one directory that contains all the files we need, 2824# we report the set of missing files from the *first* directory in 2825# $ac_aux_dir_candidates and give up. 2826ac_missing_aux_files="" 2827ac_first_candidate=: 2828printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830as_found=false 2831for as_dir in $ac_aux_dir_candidates 2832do 2833 IFS=$as_save_IFS 2834 case $as_dir in #((( 2835 '') as_dir=./ ;; 2836 */) ;; 2837 *) as_dir=$as_dir/ ;; 2838 esac 2839 as_found=: 2840 2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2842 ac_aux_dir_found=yes 2843 ac_install_sh= 2844 for ac_aux in $ac_aux_files 2845 do 2846 # As a special case, if "install-sh" is required, that requirement 2847 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2848 # and $ac_install_sh is set appropriately for whichever one is found. 2849 if test x"$ac_aux" = x"install-sh" 2850 then 2851 if test -f "${as_dir}install-sh"; then 2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2853 ac_install_sh="${as_dir}install-sh -c" 2854 elif test -f "${as_dir}install.sh"; then 2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2856 ac_install_sh="${as_dir}install.sh -c" 2857 elif test -f "${as_dir}shtool"; then 2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2859 ac_install_sh="${as_dir}shtool install -c" 2860 else 2861 ac_aux_dir_found=no 2862 if $ac_first_candidate; then 2863 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2864 else 2865 break 2866 fi 2867 fi 2868 else 2869 if test -f "${as_dir}${ac_aux}"; then 2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2871 else 2872 ac_aux_dir_found=no 2873 if $ac_first_candidate; then 2874 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2875 else 2876 break 2877 fi 2878 fi 2879 fi 2880 done 2881 if test "$ac_aux_dir_found" = yes; then 2882 ac_aux_dir="$as_dir" 2883 break 2884 fi 2885 ac_first_candidate=false 2886 2887 as_found=false 2888done 2889IFS=$as_save_IFS 2890if $as_found 2891then : 2892 2893else $as_nop 2894 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2895fi 2896 2897 2898# These three variables are undocumented and unsupported, 2899# and are intended to be withdrawn in a future Autoconf release. 2900# They can cause serious problems if a builder's source tree is in a directory 2901# whose full name contains unusual characters. 2902if test -f "${ac_aux_dir}config.guess"; then 2903 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2904fi 2905if test -f "${ac_aux_dir}config.sub"; then 2906 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2907fi 2908if test -f "$ac_aux_dir/configure"; then 2909 ac_configure="$SHELL ${ac_aux_dir}configure" 2910fi 2911 2912# Check that the precious variables saved in the cache have kept the same 2913# value. 2914ac_cache_corrupted=false 2915for ac_var in $ac_precious_vars; do 2916 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2917 eval ac_new_set=\$ac_env_${ac_var}_set 2918 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2919 eval ac_new_val=\$ac_env_${ac_var}_value 2920 case $ac_old_set,$ac_new_set in 2921 set,) 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2923printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2924 ac_cache_corrupted=: ;; 2925 ,set) 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2927printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2928 ac_cache_corrupted=: ;; 2929 ,);; 2930 *) 2931 if test "x$ac_old_val" != "x$ac_new_val"; then 2932 # differences in whitespace do not lead to failure. 2933 ac_old_val_w=`echo x $ac_old_val` 2934 ac_new_val_w=`echo x $ac_new_val` 2935 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2937printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2938 ac_cache_corrupted=: 2939 else 2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2941printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2942 eval $ac_var=\$ac_old_val 2943 fi 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2945printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2947printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2948 fi;; 2949 esac 2950 # Pass precious variables to config.status. 2951 if test "$ac_new_set" = set; then 2952 case $ac_new_val in 2953 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2954 *) ac_arg=$ac_var=$ac_new_val ;; 2955 esac 2956 case " $ac_configure_args " in 2957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2958 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2959 esac 2960 fi 2961done 2962if $ac_cache_corrupted; then 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2966printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2967 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2968 and start over" "$LINENO" 5 2969fi 2970## -------------------- ## 2971## Main body of script. ## 2972## -------------------- ## 2973 2974ac_ext=c 2975ac_cpp='$CPP $CPPFLAGS' 2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2978ac_compiler_gnu=$ac_cv_c_compiler_gnu 2979 2980 2981 2982 2983################################################################ 2984## Includes 2985 2986################################################################ 2987## See if we are running on mingw 2988# http://osdir.com/ml/gnu.mingw.devel/2003-09/msg00040.html 2989# Note: Windows 95 WINVER=0x400 2990# Windows 98 WINVER=0x400 _WIN32_WINDOWS=0x0410 2991# Windows Me WINVER=0x400 _WIN32_WINDOWS=0x0490 2992# Windows NT 4.0 WINVER=0x0400 _WIN32_WINNT=0x0400 2993# Windows NT 4.0 SP3 WINVER=0x0400 _WIN32_WINNT=0x0403 2994# Windows 2000 WINVER=0x500 _WIN32_WINNT=0x0500 2995# Windows XP WINVER=0x501 _WIN32_WINNT=0x0501 2996# Windows Server 2003 WINVER=0x502 _WIN32_WINNT=0x0502 2997# 2998# mingw32 includes i686-w64-mingw32 and x86_64-w64-mingw32 2999 3000mingw="no" 3001case $host in 3002 *-*-*linux*-*) 3003 3004printf "%s\n" "#define __LINUX__ 1" >>confdefs.h 3005 3006 ;; 3007 3008 *mingw*) 3009 LIBS="$LIBS -lpsapi -lws2_32 -lgdi32" 3010 CPPFLAGS="-DUNICODE -D_UNICODE -D__MSVCRT_VERSION__=0x0601 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -g $CPPFLAGS" 3011 CPPFLAGS="$CPPFLAGS --static " 3012 CFLAGS="$CFLAGS --static -static-libgcc -static-libstdc++" 3013 CXXFLAGS="$CXXFLAGS -Wno-format " # compiler mingw-4.3.0 is broken on I64u formats 3014 CXXFLAGS="$CXXFLAGS --static -static-libgcc -static-libstdc++" 3015 LDFLAGS="$LDFLAGS --static" 3016 mingw="yes" 3017 ;; 3018esac 3019 3020 3021if test x"${mingw}" != "xyes" ; then 3022 3023 case $host in 3024 *mingw*) 3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compiling under mingw; will not search other directories." >&5 3026printf "%s\n" "$as_me: Compiling under mingw; will not search other directories." >&6;} 3027 ;; 3028 *) 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compiling under $host." >&5 3030printf "%s\n" "$as_me: Compiling under $host." >&6;} 3031 # Bring additional directories where things might be found into our 3032 # search path. I don't know why autoconf doesn't do this by default 3033 for spfx in /usr/local /opt/local /sw /usr/local/ssl; do 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ${spfx}/include" >&5 3035printf "%s\n" "$as_me: checking ${spfx}/include" >&6;} 3036 if test -d ${spfx}/include; then 3037 CPPFLAGS="$CPPFLAGS -I${spfx}/include" 3038 LDFLAGS="$LDFLAGS -L${spfx}/lib" 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/include to CPPFLAGS *** " >&5 3040printf "%s\n" "$as_me: *** ADDING ${spfx}/include to CPPFLAGS *** " >&6;} 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** ADDING ${spfx}/lib to LDFLAGS *** " >&5 3042printf "%s\n" "$as_me: *** ADDING ${spfx}/lib to LDFLAGS *** " >&6;} 3043 fi 3044 done 3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS = ${CPPFLAGS} " >&5 3046printf "%s\n" "$as_me: CPPFLAGS = ${CPPFLAGS} " >&6;} 3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS = ${LDFLAGS} " >&5 3048printf "%s\n" "$as_me: LDFLAGS = ${LDFLAGS} " >&6;} 3049 ;; 3050 esac 3051fi 3052 3053 3054 3055# 3056# mix-ins for dfxml 3057# Support for hash_t as well. 3058# 3059# Revision History: 3060# 2012 - Simson Garfinkel - Created for bulk_extractor 3061# 2021 - Simson Garfinkel - Cleaned up. Added LGPL copyright notice. 3062# 3063# Copyright (C) 2021 Simson L. Garfinkel. 3064# 3065# LICENSE: LGPL Version 3. See COPYING.md for further information. 3066# 3067 3068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Including dfxml_configure.m4 from dfxml" >&5 3069printf "%s\n" "$as_me: Including dfxml_configure.m4 from dfxml" >&6;} 3070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Note: checks for libewf.h should be in the caller, so they can be disabled" >&5 3071printf "%s\n" "$as_me: Note: checks for libewf.h should be in the caller, so they can be disabled" >&6;} 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083# Expand $ac_aux_dir to an absolute path. 3084am_aux_dir=`cd "$ac_aux_dir" && pwd` 3085 3086ac_ext=c 3087ac_cpp='$CPP $CPPFLAGS' 3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3090ac_compiler_gnu=$ac_cv_c_compiler_gnu 3091if test -n "$ac_tool_prefix"; then 3092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3093set dummy ${ac_tool_prefix}gcc; ac_word=$2 3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3095printf %s "checking for $ac_word... " >&6; } 3096if test ${ac_cv_prog_CC+y} 3097then : 3098 printf %s "(cached) " >&6 3099else $as_nop 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102else 3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104for as_dir in $PATH 3105do 3106 IFS=$as_save_IFS 3107 case $as_dir in #((( 3108 '') as_dir=./ ;; 3109 */) ;; 3110 *) as_dir=$as_dir/ ;; 3111 esac 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3114 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123fi 3124CC=$ac_cv_prog_CC 3125if test -n "$CC"; then 3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3127printf "%s\n" "$CC" >&6; } 3128else 3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130printf "%s\n" "no" >&6; } 3131fi 3132 3133 3134fi 3135if test -z "$ac_cv_prog_CC"; then 3136 ac_ct_CC=$CC 3137 # Extract the first word of "gcc", so it can be a program name with args. 3138set dummy gcc; ac_word=$2 3139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140printf %s "checking for $ac_word... " >&6; } 3141if test ${ac_cv_prog_ac_ct_CC+y} 3142then : 3143 printf %s "(cached) " >&6 3144else $as_nop 3145 if test -n "$ac_ct_CC"; then 3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 case $as_dir in #((( 3153 '') as_dir=./ ;; 3154 */) ;; 3155 *) as_dir=$as_dir/ ;; 3156 esac 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3159 ac_cv_prog_ac_ct_CC="gcc" 3160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168fi 3169ac_ct_CC=$ac_cv_prog_ac_ct_CC 3170if test -n "$ac_ct_CC"; then 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3172printf "%s\n" "$ac_ct_CC" >&6; } 3173else 3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3175printf "%s\n" "no" >&6; } 3176fi 3177 3178 if test "x$ac_ct_CC" = x; then 3179 CC="" 3180 else 3181 case $cross_compiling:$ac_tool_warned in 3182yes:) 3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3185ac_tool_warned=yes ;; 3186esac 3187 CC=$ac_ct_CC 3188 fi 3189else 3190 CC="$ac_cv_prog_CC" 3191fi 3192 3193if test -z "$CC"; then 3194 if test -n "$ac_tool_prefix"; then 3195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3196set dummy ${ac_tool_prefix}cc; ac_word=$2 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198printf %s "checking for $ac_word... " >&6; } 3199if test ${ac_cv_prog_CC+y} 3200then : 3201 printf %s "(cached) " >&6 3202else $as_nop 3203 if test -n "$CC"; then 3204 ac_cv_prog_CC="$CC" # Let the user override the test. 3205else 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 case $as_dir in #((( 3211 '') as_dir=./ ;; 3212 */) ;; 3213 *) as_dir=$as_dir/ ;; 3214 esac 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3217 ac_cv_prog_CC="${ac_tool_prefix}cc" 3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225fi 3226fi 3227CC=$ac_cv_prog_CC 3228if test -n "$CC"; then 3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230printf "%s\n" "$CC" >&6; } 3231else 3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233printf "%s\n" "no" >&6; } 3234fi 3235 3236 3237 fi 3238fi 3239if test -z "$CC"; then 3240 # Extract the first word of "cc", so it can be a program name with args. 3241set dummy cc; ac_word=$2 3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243printf %s "checking for $ac_word... " >&6; } 3244if test ${ac_cv_prog_CC+y} 3245then : 3246 printf %s "(cached) " >&6 3247else $as_nop 3248 if test -n "$CC"; then 3249 ac_cv_prog_CC="$CC" # Let the user override the test. 3250else 3251 ac_prog_rejected=no 3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253for as_dir in $PATH 3254do 3255 IFS=$as_save_IFS 3256 case $as_dir in #((( 3257 '') as_dir=./ ;; 3258 */) ;; 3259 *) as_dir=$as_dir/ ;; 3260 esac 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3263 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3264 ac_prog_rejected=yes 3265 continue 3266 fi 3267 ac_cv_prog_CC="cc" 3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3269 break 2 3270 fi 3271done 3272 done 3273IFS=$as_save_IFS 3274 3275if test $ac_prog_rejected = yes; then 3276 # We found a bogon in the path, so make sure we never use it. 3277 set dummy $ac_cv_prog_CC 3278 shift 3279 if test $# != 0; then 3280 # We chose a different compiler from the bogus one. 3281 # However, it has the same basename, so the bogon will be chosen 3282 # first if we set CC to just the basename; use the full file name. 3283 shift 3284 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3285 fi 3286fi 3287fi 3288fi 3289CC=$ac_cv_prog_CC 3290if test -n "$CC"; then 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3292printf "%s\n" "$CC" >&6; } 3293else 3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295printf "%s\n" "no" >&6; } 3296fi 3297 3298 3299fi 3300if test -z "$CC"; then 3301 if test -n "$ac_tool_prefix"; then 3302 for ac_prog in cl.exe 3303 do 3304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307printf %s "checking for $ac_word... " >&6; } 3308if test ${ac_cv_prog_CC+y} 3309then : 3310 printf %s "(cached) " >&6 3311else $as_nop 3312 if test -n "$CC"; then 3313 ac_cv_prog_CC="$CC" # Let the user override the test. 3314else 3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3316for as_dir in $PATH 3317do 3318 IFS=$as_save_IFS 3319 case $as_dir in #((( 3320 '') as_dir=./ ;; 3321 */) ;; 3322 *) as_dir=$as_dir/ ;; 3323 esac 3324 for ac_exec_ext in '' $ac_executable_extensions; do 3325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3328 break 2 3329 fi 3330done 3331 done 3332IFS=$as_save_IFS 3333 3334fi 3335fi 3336CC=$ac_cv_prog_CC 3337if test -n "$CC"; then 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3339printf "%s\n" "$CC" >&6; } 3340else 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3342printf "%s\n" "no" >&6; } 3343fi 3344 3345 3346 test -n "$CC" && break 3347 done 3348fi 3349if test -z "$CC"; then 3350 ac_ct_CC=$CC 3351 for ac_prog in cl.exe 3352do 3353 # Extract the first word of "$ac_prog", so it can be a program name with args. 3354set dummy $ac_prog; ac_word=$2 3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356printf %s "checking for $ac_word... " >&6; } 3357if test ${ac_cv_prog_ac_ct_CC+y} 3358then : 3359 printf %s "(cached) " >&6 3360else $as_nop 3361 if test -n "$ac_ct_CC"; then 3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3363else 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 case $as_dir in #((( 3369 '') as_dir=./ ;; 3370 */) ;; 3371 *) as_dir=$as_dir/ ;; 3372 esac 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3375 ac_cv_prog_ac_ct_CC="$ac_prog" 3376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3377 break 2 3378 fi 3379done 3380 done 3381IFS=$as_save_IFS 3382 3383fi 3384fi 3385ac_ct_CC=$ac_cv_prog_ac_ct_CC 3386if test -n "$ac_ct_CC"; then 3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3388printf "%s\n" "$ac_ct_CC" >&6; } 3389else 3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391printf "%s\n" "no" >&6; } 3392fi 3393 3394 3395 test -n "$ac_ct_CC" && break 3396done 3397 3398 if test "x$ac_ct_CC" = x; then 3399 CC="" 3400 else 3401 case $cross_compiling:$ac_tool_warned in 3402yes:) 3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3405ac_tool_warned=yes ;; 3406esac 3407 CC=$ac_ct_CC 3408 fi 3409fi 3410 3411fi 3412if test -z "$CC"; then 3413 if test -n "$ac_tool_prefix"; then 3414 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3415set dummy ${ac_tool_prefix}clang; ac_word=$2 3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3417printf %s "checking for $ac_word... " >&6; } 3418if test ${ac_cv_prog_CC+y} 3419then : 3420 printf %s "(cached) " >&6 3421else $as_nop 3422 if test -n "$CC"; then 3423 ac_cv_prog_CC="$CC" # Let the user override the test. 3424else 3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3426for as_dir in $PATH 3427do 3428 IFS=$as_save_IFS 3429 case $as_dir in #((( 3430 '') as_dir=./ ;; 3431 */) ;; 3432 *) as_dir=$as_dir/ ;; 3433 esac 3434 for ac_exec_ext in '' $ac_executable_extensions; do 3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3436 ac_cv_prog_CC="${ac_tool_prefix}clang" 3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3438 break 2 3439 fi 3440done 3441 done 3442IFS=$as_save_IFS 3443 3444fi 3445fi 3446CC=$ac_cv_prog_CC 3447if test -n "$CC"; then 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3449printf "%s\n" "$CC" >&6; } 3450else 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452printf "%s\n" "no" >&6; } 3453fi 3454 3455 3456fi 3457if test -z "$ac_cv_prog_CC"; then 3458 ac_ct_CC=$CC 3459 # Extract the first word of "clang", so it can be a program name with args. 3460set dummy clang; ac_word=$2 3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462printf %s "checking for $ac_word... " >&6; } 3463if test ${ac_cv_prog_ac_ct_CC+y} 3464then : 3465 printf %s "(cached) " >&6 3466else $as_nop 3467 if test -n "$ac_ct_CC"; then 3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3469else 3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471for as_dir in $PATH 3472do 3473 IFS=$as_save_IFS 3474 case $as_dir in #((( 3475 '') as_dir=./ ;; 3476 */) ;; 3477 *) as_dir=$as_dir/ ;; 3478 esac 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3481 ac_cv_prog_ac_ct_CC="clang" 3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486 done 3487IFS=$as_save_IFS 3488 3489fi 3490fi 3491ac_ct_CC=$ac_cv_prog_ac_ct_CC 3492if test -n "$ac_ct_CC"; then 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3494printf "%s\n" "$ac_ct_CC" >&6; } 3495else 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497printf "%s\n" "no" >&6; } 3498fi 3499 3500 if test "x$ac_ct_CC" = x; then 3501 CC="" 3502 else 3503 case $cross_compiling:$ac_tool_warned in 3504yes:) 3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3507ac_tool_warned=yes ;; 3508esac 3509 CC=$ac_ct_CC 3510 fi 3511else 3512 CC="$ac_cv_prog_CC" 3513fi 3514 3515fi 3516 3517 3518test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3519printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3520as_fn_error $? "no acceptable C compiler found in \$PATH 3521See \`config.log' for more details" "$LINENO" 5; } 3522 3523# Provide some information about the compiler. 3524printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3525set X $ac_compile 3526ac_compiler=$2 3527for ac_option in --version -v -V -qversion -version; do 3528 { { ac_try="$ac_compiler $ac_option >&5" 3529case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534printf "%s\n" "$ac_try_echo"; } >&5 3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3536 ac_status=$? 3537 if test -s conftest.err; then 3538 sed '10a\ 3539... rest of stderr output deleted ... 3540 10q' conftest.err >conftest.er1 3541 cat conftest.er1 >&5 3542 fi 3543 rm -f conftest.er1 conftest.err 3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; } 3546done 3547 3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main (void) 3553{ 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559ac_clean_files_save=$ac_clean_files 3560ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3561# Try to create an executable without -o first, disregard a.out. 3562# It will help us diagnose broken compilers, and finding out an intuition 3563# of exeext. 3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3565printf %s "checking whether the C compiler works... " >&6; } 3566ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3567 3568# The possible output files: 3569ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3570 3571ac_rmfiles= 3572for ac_file in $ac_files 3573do 3574 case $ac_file in 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3577 esac 3578done 3579rm -f $ac_rmfiles 3580 3581if { { ac_try="$ac_link_default" 3582case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587printf "%s\n" "$ac_try_echo"; } >&5 3588 (eval "$ac_link_default") 2>&5 3589 ac_status=$? 3590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; } 3592then : 3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3595# in a Makefile. We should not override ac_cv_exeext if it was cached, 3596# so that the user can short-circuit this test for compilers unknown to 3597# Autoconf. 3598for ac_file in $ac_files '' 3599do 3600 test -f "$ac_file" || continue 3601 case $ac_file in 3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3603 ;; 3604 [ab].out ) 3605 # We found the default executable, but exeext='' is most 3606 # certainly right. 3607 break;; 3608 *.* ) 3609 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3610 then :; else 3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3612 fi 3613 # We set ac_cv_exeext here because the later test for it is not 3614 # safe: cross compilers may not add the suffix if given an `-o' 3615 # argument, so we may need to know it at that point already. 3616 # Even if this section looks crufty: it has the advantage of 3617 # actually working. 3618 break;; 3619 * ) 3620 break;; 3621 esac 3622done 3623test "$ac_cv_exeext" = no && ac_cv_exeext= 3624 3625else $as_nop 3626 ac_file='' 3627fi 3628if test -z "$ac_file" 3629then : 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631printf "%s\n" "no" >&6; } 3632printf "%s\n" "$as_me: failed program was:" >&5 3633sed 's/^/| /' conftest.$ac_ext >&5 3634 3635{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3636printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3637as_fn_error 77 "C compiler cannot create executables 3638See \`config.log' for more details" "$LINENO" 5; } 3639else $as_nop 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3641printf "%s\n" "yes" >&6; } 3642fi 3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3644printf %s "checking for C compiler default output file name... " >&6; } 3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3646printf "%s\n" "$ac_file" >&6; } 3647ac_exeext=$ac_cv_exeext 3648 3649rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3650ac_clean_files=$ac_clean_files_save 3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3652printf %s "checking for suffix of executables... " >&6; } 3653if { { ac_try="$ac_link" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3659printf "%s\n" "$ac_try_echo"; } >&5 3660 (eval "$ac_link") 2>&5 3661 ac_status=$? 3662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; } 3664then : 3665 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3666# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3667# work properly (i.e., refer to `conftest.exe'), while it won't with 3668# `rm'. 3669for ac_file in conftest.exe conftest conftest.*; do 3670 test -f "$ac_file" || continue 3671 case $ac_file in 3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3674 break;; 3675 * ) break;; 3676 esac 3677done 3678else $as_nop 3679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3680printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3681as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3682See \`config.log' for more details" "$LINENO" 5; } 3683fi 3684rm -f conftest conftest$ac_cv_exeext 3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3686printf "%s\n" "$ac_cv_exeext" >&6; } 3687 3688rm -f conftest.$ac_ext 3689EXEEXT=$ac_cv_exeext 3690ac_exeext=$EXEEXT 3691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692/* end confdefs.h. */ 3693#include <stdio.h> 3694int 3695main (void) 3696{ 3697FILE *f = fopen ("conftest.out", "w"); 3698 return ferror (f) || fclose (f) != 0; 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704ac_clean_files="$ac_clean_files conftest.out" 3705# Check that the compiler produces executables we can run. If not, either 3706# the compiler is broken, or we cross compile. 3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3708printf %s "checking whether we are cross compiling... " >&6; } 3709if test "$cross_compiling" != yes; then 3710 { { ac_try="$ac_link" 3711case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716printf "%s\n" "$ac_try_echo"; } >&5 3717 (eval "$ac_link") 2>&5 3718 ac_status=$? 3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; } 3721 if { ac_try='./conftest$ac_cv_exeext' 3722 { { case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727printf "%s\n" "$ac_try_echo"; } >&5 3728 (eval "$ac_try") 2>&5 3729 ac_status=$? 3730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3731 test $ac_status = 0; }; }; then 3732 cross_compiling=no 3733 else 3734 if test "$cross_compiling" = maybe; then 3735 cross_compiling=yes 3736 else 3737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3738printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3739as_fn_error 77 "cannot run C compiled programs. 3740If you meant to cross compile, use \`--host'. 3741See \`config.log' for more details" "$LINENO" 5; } 3742 fi 3743 fi 3744fi 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3746printf "%s\n" "$cross_compiling" >&6; } 3747 3748rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3749ac_clean_files=$ac_clean_files_save 3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3751printf %s "checking for suffix of object files... " >&6; } 3752if test ${ac_cv_objext+y} 3753then : 3754 printf %s "(cached) " >&6 3755else $as_nop 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3757/* end confdefs.h. */ 3758 3759int 3760main (void) 3761{ 3762 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767rm -f conftest.o conftest.obj 3768if { { ac_try="$ac_compile" 3769case "(($ac_try" in 3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3771 *) ac_try_echo=$ac_try;; 3772esac 3773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3774printf "%s\n" "$ac_try_echo"; } >&5 3775 (eval "$ac_compile") 2>&5 3776 ac_status=$? 3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3778 test $ac_status = 0; } 3779then : 3780 for ac_file in conftest.o conftest.obj conftest.*; do 3781 test -f "$ac_file" || continue; 3782 case $ac_file in 3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3785 break;; 3786 esac 3787done 3788else $as_nop 3789 printf "%s\n" "$as_me: failed program was:" >&5 3790sed 's/^/| /' conftest.$ac_ext >&5 3791 3792{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3794as_fn_error $? "cannot compute suffix of object files: cannot compile 3795See \`config.log' for more details" "$LINENO" 5; } 3796fi 3797rm -f conftest.$ac_cv_objext conftest.$ac_ext 3798fi 3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3800printf "%s\n" "$ac_cv_objext" >&6; } 3801OBJEXT=$ac_cv_objext 3802ac_objext=$OBJEXT 3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3804printf %s "checking whether the compiler supports GNU C... " >&6; } 3805if test ${ac_cv_c_compiler_gnu+y} 3806then : 3807 printf %s "(cached) " >&6 3808else $as_nop 3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810/* end confdefs.h. */ 3811 3812int 3813main (void) 3814{ 3815#ifndef __GNUC__ 3816 choke me 3817#endif 3818 3819 ; 3820 return 0; 3821} 3822_ACEOF 3823if ac_fn_c_try_compile "$LINENO" 3824then : 3825 ac_compiler_gnu=yes 3826else $as_nop 3827 ac_compiler_gnu=no 3828fi 3829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3830ac_cv_c_compiler_gnu=$ac_compiler_gnu 3831 3832fi 3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3834printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3835ac_compiler_gnu=$ac_cv_c_compiler_gnu 3836 3837if test $ac_compiler_gnu = yes; then 3838 GCC=yes 3839else 3840 GCC= 3841fi 3842ac_test_CFLAGS=${CFLAGS+y} 3843ac_save_CFLAGS=$CFLAGS 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3845printf %s "checking whether $CC accepts -g... " >&6; } 3846if test ${ac_cv_prog_cc_g+y} 3847then : 3848 printf %s "(cached) " >&6 3849else $as_nop 3850 ac_save_c_werror_flag=$ac_c_werror_flag 3851 ac_c_werror_flag=yes 3852 ac_cv_prog_cc_g=no 3853 CFLAGS="-g" 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857int 3858main (void) 3859{ 3860 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865if ac_fn_c_try_compile "$LINENO" 3866then : 3867 ac_cv_prog_cc_g=yes 3868else $as_nop 3869 CFLAGS="" 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main (void) 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881if ac_fn_c_try_compile "$LINENO" 3882then : 3883 3884else $as_nop 3885 ac_c_werror_flag=$ac_save_c_werror_flag 3886 CFLAGS="-g" 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main (void) 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898if ac_fn_c_try_compile "$LINENO" 3899then : 3900 ac_cv_prog_cc_g=yes 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3903fi 3904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3905fi 3906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3907 ac_c_werror_flag=$ac_save_c_werror_flag 3908fi 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3910printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3911if test $ac_test_CFLAGS; then 3912 CFLAGS=$ac_save_CFLAGS 3913elif test $ac_cv_prog_cc_g = yes; then 3914 if test "$GCC" = yes; then 3915 CFLAGS="-g -O2" 3916 else 3917 CFLAGS="-g" 3918 fi 3919else 3920 if test "$GCC" = yes; then 3921 CFLAGS="-O2" 3922 else 3923 CFLAGS= 3924 fi 3925fi 3926ac_prog_cc_stdc=no 3927if test x$ac_prog_cc_stdc = xno 3928then : 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3930printf %s "checking for $CC option to enable C11 features... " >&6; } 3931if test ${ac_cv_prog_cc_c11+y} 3932then : 3933 printf %s "(cached) " >&6 3934else $as_nop 3935 ac_cv_prog_cc_c11=no 3936ac_save_CC=$CC 3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939$ac_c_conftest_c11_program 3940_ACEOF 3941for ac_arg in '' -std=gnu11 3942do 3943 CC="$ac_save_CC $ac_arg" 3944 if ac_fn_c_try_compile "$LINENO" 3945then : 3946 ac_cv_prog_cc_c11=$ac_arg 3947fi 3948rm -f core conftest.err conftest.$ac_objext conftest.beam 3949 test "x$ac_cv_prog_cc_c11" != "xno" && break 3950done 3951rm -f conftest.$ac_ext 3952CC=$ac_save_CC 3953fi 3954 3955if test "x$ac_cv_prog_cc_c11" = xno 3956then : 3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3958printf "%s\n" "unsupported" >&6; } 3959else $as_nop 3960 if test "x$ac_cv_prog_cc_c11" = x 3961then : 3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3963printf "%s\n" "none needed" >&6; } 3964else $as_nop 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3966printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3967 CC="$CC $ac_cv_prog_cc_c11" 3968fi 3969 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3970 ac_prog_cc_stdc=c11 3971fi 3972fi 3973if test x$ac_prog_cc_stdc = xno 3974then : 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3976printf %s "checking for $CC option to enable C99 features... " >&6; } 3977if test ${ac_cv_prog_cc_c99+y} 3978then : 3979 printf %s "(cached) " >&6 3980else $as_nop 3981 ac_cv_prog_cc_c99=no 3982ac_save_CC=$CC 3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985$ac_c_conftest_c99_program 3986_ACEOF 3987for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3988do 3989 CC="$ac_save_CC $ac_arg" 3990 if ac_fn_c_try_compile "$LINENO" 3991then : 3992 ac_cv_prog_cc_c99=$ac_arg 3993fi 3994rm -f core conftest.err conftest.$ac_objext conftest.beam 3995 test "x$ac_cv_prog_cc_c99" != "xno" && break 3996done 3997rm -f conftest.$ac_ext 3998CC=$ac_save_CC 3999fi 4000 4001if test "x$ac_cv_prog_cc_c99" = xno 4002then : 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4004printf "%s\n" "unsupported" >&6; } 4005else $as_nop 4006 if test "x$ac_cv_prog_cc_c99" = x 4007then : 4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4009printf "%s\n" "none needed" >&6; } 4010else $as_nop 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4012printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4013 CC="$CC $ac_cv_prog_cc_c99" 4014fi 4015 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4016 ac_prog_cc_stdc=c99 4017fi 4018fi 4019if test x$ac_prog_cc_stdc = xno 4020then : 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4022printf %s "checking for $CC option to enable C89 features... " >&6; } 4023if test ${ac_cv_prog_cc_c89+y} 4024then : 4025 printf %s "(cached) " >&6 4026else $as_nop 4027 ac_cv_prog_cc_c89=no 4028ac_save_CC=$CC 4029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031$ac_c_conftest_c89_program 4032_ACEOF 4033for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4034do 4035 CC="$ac_save_CC $ac_arg" 4036 if ac_fn_c_try_compile "$LINENO" 4037then : 4038 ac_cv_prog_cc_c89=$ac_arg 4039fi 4040rm -f core conftest.err conftest.$ac_objext conftest.beam 4041 test "x$ac_cv_prog_cc_c89" != "xno" && break 4042done 4043rm -f conftest.$ac_ext 4044CC=$ac_save_CC 4045fi 4046 4047if test "x$ac_cv_prog_cc_c89" = xno 4048then : 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4050printf "%s\n" "unsupported" >&6; } 4051else $as_nop 4052 if test "x$ac_cv_prog_cc_c89" = x 4053then : 4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4055printf "%s\n" "none needed" >&6; } 4056else $as_nop 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4058printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4059 CC="$CC $ac_cv_prog_cc_c89" 4060fi 4061 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4062 ac_prog_cc_stdc=c89 4063fi 4064fi 4065 4066ac_ext=c 4067ac_cpp='$CPP $CPPFLAGS' 4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4070ac_compiler_gnu=$ac_cv_c_compiler_gnu 4071 4072 4073 ac_ext=c 4074ac_cpp='$CPP $CPPFLAGS' 4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4077ac_compiler_gnu=$ac_cv_c_compiler_gnu 4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4079printf %s "checking whether $CC understands -c and -o together... " >&6; } 4080if test ${am_cv_prog_cc_c_o+y} 4081then : 4082 printf %s "(cached) " >&6 4083else $as_nop 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086 4087int 4088main (void) 4089{ 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095 # Make sure it works both with $CC and with simple cc. 4096 # Following AC_PROG_CC_C_O, we do the test twice because some 4097 # compilers refuse to overwrite an existing .o file with -o, 4098 # though they will create one. 4099 am_cv_prog_cc_c_o=yes 4100 for am_i in 1 2; do 4101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4103 ac_status=$? 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); } \ 4106 && test -f conftest2.$ac_objext; then 4107 : OK 4108 else 4109 am_cv_prog_cc_c_o=no 4110 break 4111 fi 4112 done 4113 rm -f core conftest* 4114 unset am_i 4115fi 4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4117printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4118if test "$am_cv_prog_cc_c_o" != yes; then 4119 # Losing compiler, so override with the script. 4120 # FIXME: It is wrong to rewrite CC. 4121 # But if we don't then we get into trouble of one sort or another. 4122 # A longer-term fix would be to have automake use am__CC in this case, 4123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4124 CC="$am_aux_dir/compile $CC" 4125fi 4126ac_ext=c 4127ac_cpp='$CPP $CPPFLAGS' 4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4130ac_compiler_gnu=$ac_cv_c_compiler_gnu 4131 4132 4133 4134ac_header= ac_cache= 4135for ac_item in $ac_header_c_list 4136do 4137 if test $ac_cache; then 4138 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4139 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4140 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4141 fi 4142 ac_header= ac_cache= 4143 elif test $ac_header; then 4144 ac_cache=$ac_item 4145 else 4146 ac_header=$ac_item 4147 fi 4148done 4149 4150 4151 4152 4153 4154 4155 4156 4157if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4158then : 4159 4160printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4161 4162fi 4163ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 4164if test "x$ac_cv_header_expat_h" = xyes 4165then : 4166 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h 4167 4168fi 4169ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 4170if test "x$ac_cv_header_sys_resource_h" = xyes 4171then : 4172 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 4173 4174fi 4175ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 4176if test "x$ac_cv_header_sys_utsname_h" = xyes 4177then : 4178 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 4179 4180fi 4181ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 4182if test "x$ac_cv_header_unistd_h" = xyes 4183then : 4184 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 4185 4186fi 4187ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 4188if test "x$ac_cv_header_winsock2_h" = xyes 4189then : 4190 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 4191 4192fi 4193ac_fn_c_check_header_compile "$LINENO" "boost/version.hpp" "ac_cv_header_boost_version_hpp" "$ac_includes_default" 4194if test "x$ac_cv_header_boost_version_hpp" = xyes 4195then : 4196 printf "%s\n" "#define HAVE_BOOST_VERSION_HPP 1" >>confdefs.h 4197 4198fi 4199ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 4200if test "x$ac_cv_header_pwd_h" = xyes 4201then : 4202 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 4203 4204fi 4205ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 4206if test "x$ac_cv_header_uuid_uuid_h" = xyes 4207then : 4208 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 4209 4210fi 4211 4212ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 4213if test "x$ac_cv_func_gmtime_r" = xyes 4214then : 4215 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 4216 4217fi 4218ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 4219if test "x$ac_cv_func_getuid" = xyes 4220then : 4221 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 4222 4223fi 4224ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 4225if test "x$ac_cv_func_gethostname" = xyes 4226then : 4227 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 4228 4229fi 4230ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 4231if test "x$ac_cv_func_getpwuid" = xyes 4232then : 4233 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 4234 4235fi 4236ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 4237if test "x$ac_cv_func_getrusage" = xyes 4238then : 4239 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 4240 4241fi 4242ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 4243if test "x$ac_cv_func_vasprintf" = xyes 4244then : 4245 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 4246 4247fi 4248 4249 4250# Expat is required 4251have_expat=yes 4252ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 4253if test "x$ac_cv_header_expat_h" = xyes 4254then : 4255 4256fi 4257 4258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 4259printf %s "checking for XML_ParserCreate in -lexpat... " >&6; } 4260if test ${ac_cv_lib_expat_XML_ParserCreate+y} 4261then : 4262 printf %s "(cached) " >&6 4263else $as_nop 4264 ac_check_lib_save_LIBS=$LIBS 4265LIBS="-lexpat $LIBS" 4266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268 4269/* Override any GCC internal prototype to avoid an error. 4270 Use char because int might match the return type of a GCC 4271 builtin and then its argument prototype would still apply. */ 4272char XML_ParserCreate (); 4273int 4274main (void) 4275{ 4276return XML_ParserCreate (); 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281if ac_fn_c_try_link "$LINENO" 4282then : 4283 ac_cv_lib_expat_XML_ParserCreate=yes 4284else $as_nop 4285 ac_cv_lib_expat_XML_ParserCreate=no 4286fi 4287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4288 conftest$ac_exeext conftest.$ac_ext 4289LIBS=$ac_check_lib_save_LIBS 4290fi 4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 4292printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; } 4293if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes 4294then : 4295 printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h 4296 4297 LIBS="-lexpat $LIBS" 4298 4299else $as_nop 4300 have_expat="no ";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: expat not found; S3 and Digital Signatures not enabled" >&5 4301printf "%s\n" "$as_me: WARNING: expat not found; S3 and Digital Signatures not enabled" >&2;} 4302fi 4303 4304 4305# Determine UTC date offset 4306CPPFLAGS="$CPPFLAGS -DUTC_OFFSET=`TZ=UTC date +%z`" 4307 4308# Get the GIT commit into the GIT_COMMIT variable 4309# Extract the first word of "git", so it can be a program name with args. 4310set dummy git; ac_word=$2 4311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312printf %s "checking for $ac_word... " >&6; } 4313if test ${ac_cv_prog_git+y} 4314then : 4315 printf %s "(cached) " >&6 4316else $as_nop 4317 if test -n "$git"; then 4318 ac_cv_prog_git="$git" # Let the user override the test. 4319else 4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4321for as_dir in $PATH 4322do 4323 IFS=$as_save_IFS 4324 case $as_dir in #((( 4325 '') as_dir=./ ;; 4326 */) ;; 4327 *) as_dir=$as_dir/ ;; 4328 esac 4329 for ac_exec_ext in '' $ac_executable_extensions; do 4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4331 ac_cv_prog_git="yes" 4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4333 break 2 4334 fi 4335done 4336 done 4337IFS=$as_save_IFS 4338 4339 test -z "$ac_cv_prog_git" && ac_cv_prog_git="no" 4340fi 4341fi 4342git=$ac_cv_prog_git 4343if test -n "$git"; then 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $git" >&5 4345printf "%s\n" "$git" >&6; } 4346else 4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4348printf "%s\n" "no" >&6; } 4349fi 4350 4351 4352 if test "x$git" = xyes; then 4353 FOUND_GIT_TRUE= 4354 FOUND_GIT_FALSE='#' 4355else 4356 FOUND_GIT_TRUE='#' 4357 FOUND_GIT_FALSE= 4358fi 4359 4360if test -z "$FOUND_GIT_TRUE"; then : 4361 GIT_COMMIT=`git describe --dirty --always` 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: git commit $GIT_COMMIT" >&5 4363printf "%s\n" "$as_me: git commit $GIT_COMMIT" >&6;} 4364else 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git not found" >&5 4366printf "%s\n" "$as_me: WARNING: git not found" >&2;} 4367fi 4368 4369# Do we have the CPUID instruction? 4370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371/* end confdefs.h. */ 4372#define cpuid(id) __asm__( "cpuid" : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx) : "a"(id), "b"(0), "c"(0), "d"(0)) 4373int 4374main (void) 4375{ 4376unsigned long eax, ebx, ecx, edx;cpuid(0); 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381if ac_fn_c_try_compile "$LINENO" 4382then : 4383 have_cpuid=yes 4384else $as_nop 4385 have_cpuid=no 4386fi 4387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4388if test "$have_cpuid" = yes; then 4389 4390printf "%s\n" "#define HAVE_ASM_CPUID 1" >>confdefs.h 4391 4392fi 4393 4394################################################################ 4395## On Win32, crypto requires zlib. 4396## On Win32, dfxml_writer requires GetProcessMemoryInfo, which requires psapi 4397case $host in 4398 *mingw32*) 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5 4400printf %s "checking for gzdopen in -lz... " >&6; } 4401if test ${ac_cv_lib_z_gzdopen+y} 4402then : 4403 printf %s "(cached) " >&6 4404else $as_nop 4405 ac_check_lib_save_LIBS=$LIBS 4406LIBS="-lz $LIBS" 4407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410/* Override any GCC internal prototype to avoid an error. 4411 Use char because int might match the return type of a GCC 4412 builtin and then its argument prototype would still apply. */ 4413char gzdopen (); 4414int 4415main (void) 4416{ 4417return gzdopen (); 4418 ; 4419 return 0; 4420} 4421_ACEOF 4422if ac_fn_c_try_link "$LINENO" 4423then : 4424 ac_cv_lib_z_gzdopen=yes 4425else $as_nop 4426 ac_cv_lib_z_gzdopen=no 4427fi 4428rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4429 conftest$ac_exeext conftest.$ac_ext 4430LIBS=$ac_check_lib_save_LIBS 4431fi 4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5 4433printf "%s\n" "$ac_cv_lib_z_gzdopen" >&6; } 4434if test "x$ac_cv_lib_z_gzdopen" = xyes 4435then : 4436 LIBS="-lz $LIBS" 4437else $as_nop 4438 as_fn_error $? "Could not find zlib library" "$LINENO" 5 4439fi 4440 4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding -lpsapi" >&5 4442printf "%s\n" "$as_me: Adding -lpsapi" >&6;} 4443 LIBS="-lpsapi $LIBS" 4444 CFLAGS="-static-libgcc $CFLAGS" 4445 CXXFLAGS="-static-libstdc++ $CXXFLAGS" 4446esac 4447 4448################################################################ 4449## 4450## Crypto Support 4451## 4452## MacOS CommonCrypto 4453ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonDigest.h" "ac_cv_header_CommonCrypto_CommonDigest_h" "$ac_includes_default" 4454if test "x$ac_cv_header_CommonCrypto_CommonDigest_h" = xyes 4455then : 4456 printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONDIGEST_H 1" >>confdefs.h 4457 4458fi 4459 4460 4461## gcrypt 4462ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" 4463if test "x$ac_cv_header_gcrypt_h" = xyes 4464then : 4465 printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h 4466 4467fi 4468 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gpg_strerror in -lgpg-error" >&5 4470printf %s "checking for gpg_strerror in -lgpg-error... " >&6; } 4471if test ${ac_cv_lib_gpg_error_gpg_strerror+y} 4472then : 4473 printf %s "(cached) " >&6 4474else $as_nop 4475 ac_check_lib_save_LIBS=$LIBS 4476LIBS="-lgpg-error $LIBS" 4477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479 4480/* Override any GCC internal prototype to avoid an error. 4481 Use char because int might match the return type of a GCC 4482 builtin and then its argument prototype would still apply. */ 4483char gpg_strerror (); 4484int 4485main (void) 4486{ 4487return gpg_strerror (); 4488 ; 4489 return 0; 4490} 4491_ACEOF 4492if ac_fn_c_try_link "$LINENO" 4493then : 4494 ac_cv_lib_gpg_error_gpg_strerror=yes 4495else $as_nop 4496 ac_cv_lib_gpg_error_gpg_strerror=no 4497fi 4498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4499 conftest$ac_exeext conftest.$ac_ext 4500LIBS=$ac_check_lib_save_LIBS 4501fi 4502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpg_error_gpg_strerror" >&5 4503printf "%s\n" "$ac_cv_lib_gpg_error_gpg_strerror" >&6; } 4504if test "x$ac_cv_lib_gpg_error_gpg_strerror" = xyes 4505then : 4506 printf "%s\n" "#define HAVE_LIBGPG_ERROR 1" >>confdefs.h 4507 4508 LIBS="-lgpg-error $LIBS" 4509 4510fi 4511 4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 4513printf %s "checking for gcry_md_open in -lgcrypt... " >&6; } 4514if test ${ac_cv_lib_gcrypt_gcry_md_open+y} 4515then : 4516 printf %s "(cached) " >&6 4517else $as_nop 4518 ac_check_lib_save_LIBS=$LIBS 4519LIBS="-lgcrypt $LIBS" 4520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522 4523/* Override any GCC internal prototype to avoid an error. 4524 Use char because int might match the return type of a GCC 4525 builtin and then its argument prototype would still apply. */ 4526char gcry_md_open (); 4527int 4528main (void) 4529{ 4530return gcry_md_open (); 4531 ; 4532 return 0; 4533} 4534_ACEOF 4535if ac_fn_c_try_link "$LINENO" 4536then : 4537 ac_cv_lib_gcrypt_gcry_md_open=yes 4538else $as_nop 4539 ac_cv_lib_gcrypt_gcry_md_open=no 4540fi 4541rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4542 conftest$ac_exeext conftest.$ac_ext 4543LIBS=$ac_check_lib_save_LIBS 4544fi 4545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 4546printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 4547if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes 4548then : 4549 printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h 4550 4551 LIBS="-lgcrypt $LIBS" 4552 4553fi 4554 4555 4556## OpenSSL Note that this works with both OpenSSL 1.0 and OpenSSL 1.1 4557## EVP_MD_CTX_create() and EVP_MD_CTX_destroy() were renamed to EVP_MD_CTX_new() and EVP_MD_CTX_free() in OpenSSL 1.1. 4558ac_fn_c_check_header_compile "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" 4559if test "x$ac_cv_header_openssl_aes_h" = xyes 4560then : 4561 printf "%s\n" "#define HAVE_OPENSSL_AES_H 1" >>confdefs.h 4562 4563fi 4564ac_fn_c_check_header_compile "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default" 4565if test "x$ac_cv_header_openssl_bio_h" = xyes 4566then : 4567 printf "%s\n" "#define HAVE_OPENSSL_BIO_H 1" >>confdefs.h 4568 4569fi 4570ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 4571if test "x$ac_cv_header_openssl_evp_h" = xyes 4572then : 4573 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h 4574 4575fi 4576ac_fn_c_check_header_compile "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default" 4577if test "x$ac_cv_header_openssl_hmac_h" = xyes 4578then : 4579 printf "%s\n" "#define HAVE_OPENSSL_HMAC_H 1" >>confdefs.h 4580 4581fi 4582ac_fn_c_check_header_compile "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" 4583if test "x$ac_cv_header_openssl_md5_h" = xyes 4584then : 4585 printf "%s\n" "#define HAVE_OPENSSL_MD5_H 1" >>confdefs.h 4586 4587fi 4588ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default" 4589if test "x$ac_cv_header_openssl_pem_h" = xyes 4590then : 4591 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h 4592 4593fi 4594ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default" 4595if test "x$ac_cv_header_openssl_rand_h" = xyes 4596then : 4597 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h 4598 4599fi 4600ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default" 4601if test "x$ac_cv_header_openssl_rsa_h" = xyes 4602then : 4603 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 4604 4605fi 4606ac_fn_c_check_header_compile "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" 4607if test "x$ac_cv_header_openssl_sha_h" = xyes 4608then : 4609 printf "%s\n" "#define HAVE_OPENSSL_SHA_H 1" >>confdefs.h 4610 4611fi 4612ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default" 4613if test "x$ac_cv_header_openssl_pem_h" = xyes 4614then : 4615 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h 4616 4617fi 4618ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4619if test "x$ac_cv_header_openssl_x509_h" = xyes 4620then : 4621 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h 4622 4623fi 4624 4625 4626# OpenSSL has been installed under at least two different names... 4627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_get_digestbyname in -lcrypto" >&5 4628printf %s "checking for EVP_get_digestbyname in -lcrypto... " >&6; } 4629if test ${ac_cv_lib_crypto_EVP_get_digestbyname+y} 4630then : 4631 printf %s "(cached) " >&6 4632else $as_nop 4633 ac_check_lib_save_LIBS=$LIBS 4634LIBS="-lcrypto $LIBS" 4635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637 4638/* Override any GCC internal prototype to avoid an error. 4639 Use char because int might match the return type of a GCC 4640 builtin and then its argument prototype would still apply. */ 4641char EVP_get_digestbyname (); 4642int 4643main (void) 4644{ 4645return EVP_get_digestbyname (); 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650if ac_fn_c_try_link "$LINENO" 4651then : 4652 ac_cv_lib_crypto_EVP_get_digestbyname=yes 4653else $as_nop 4654 ac_cv_lib_crypto_EVP_get_digestbyname=no 4655fi 4656rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4657 conftest$ac_exeext conftest.$ac_ext 4658LIBS=$ac_check_lib_save_LIBS 4659fi 4660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_get_digestbyname" >&5 4661printf "%s\n" "$ac_cv_lib_crypto_EVP_get_digestbyname" >&6; } 4662if test "x$ac_cv_lib_crypto_EVP_get_digestbyname" = xyes 4663then : 4664 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 4665 4666 LIBS="-lcrypto $LIBS" 4667 4668fi 4669 4670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 4671printf %s "checking for SSL_library_init in -lssl... " >&6; } 4672if test ${ac_cv_lib_ssl_SSL_library_init+y} 4673then : 4674 printf %s "(cached) " >&6 4675else $as_nop 4676 ac_check_lib_save_LIBS=$LIBS 4677LIBS="-lssl $LIBS" 4678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679/* end confdefs.h. */ 4680 4681/* Override any GCC internal prototype to avoid an error. 4682 Use char because int might match the return type of a GCC 4683 builtin and then its argument prototype would still apply. */ 4684char SSL_library_init (); 4685int 4686main (void) 4687{ 4688return SSL_library_init (); 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693if ac_fn_c_try_link "$LINENO" 4694then : 4695 ac_cv_lib_ssl_SSL_library_init=yes 4696else $as_nop 4697 ac_cv_lib_ssl_SSL_library_init=no 4698fi 4699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4700 conftest$ac_exeext conftest.$ac_ext 4701LIBS=$ac_check_lib_save_LIBS 4702fi 4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 4704printf "%s\n" "$ac_cv_lib_ssl_SSL_library_init" >&6; } 4705if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes 4706then : 4707 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h 4708 4709 LIBS="-lssl $LIBS" 4710 4711fi 4712 4713 4714## Make sure we have some kind of crypto 4715have_crypto=NO 4716ac_fn_c_check_func "$LINENO" "gcry_md_open" "ac_cv_func_gcry_md_open" 4717if test "x$ac_cv_func_gcry_md_open" = xyes 4718then : 4719 4720printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h 4721 4722 have_crypto=YES 4723fi 4724 4725if test "$have_crypto" = NO; then 4726 ac_fn_c_check_func "$LINENO" "CC_MD2_Init" "ac_cv_func_CC_MD2_Init" 4727if test "x$ac_cv_func_CC_MD2_Init" = xyes 4728then : 4729 4730printf "%s\n" "#define HAVE_COMMONCRYPTO 1" >>confdefs.h 4731 4732 have_crypto=YES 4733fi 4734 4735fi 4736if test "$have_crypto" = NO; then 4737 ac_fn_c_check_func "$LINENO" "EVP_get_digestbyname" "ac_cv_func_EVP_get_digestbyname" 4738if test "x$ac_cv_func_EVP_get_digestbyname" = xyes 4739then : 4740 4741printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h 4742 4743 have_crypto=YES 4744fi 4745 4746fi 4747 4748if test "$have_crypto" = NO; then 4749 echo foo 4750 as_fn_error $? "CommonCrypto, SSL/OpenSSL, or gcrypt support required" "$LINENO" 5 4751fi 4752 4753# 4754# mix-ins for be13 4755# 4756 4757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Including be13_configure.m4 from be13_api" >&5 4758printf "%s\n" "$as_me: Including be13_configure.m4 from be13_api" >&6;} 4759 4760 4761################################################################ 4762## compile with pthread if its available 4763SAVE_CXXFLAGS="$CXXFLAGS" 4764CXXFLAGS="$CXXFLAGS -pthread" 4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler understands $option" >&5 4766printf %s "checking whether C++ compiler understands $option... " >&6; } 4767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769 4770int 4771main (void) 4772{ 4773 4774 ; 4775 return 0; 4776} 4777_ACEOF 4778if ac_fn_c_try_compile "$LINENO" 4779then : 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Adding -pthread to CXXFLAGS" >&5 4781printf "%s\n" "Adding -pthread to CXXFLAGS" >&6; } 4782else $as_nop 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compiler does not understand -pthread" >&5 4784printf "%s\n" "Compiler does not understand -pthread" >&6; }; CXXFLAGS="$SAVE_CXXFLAGS" 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4787unset SAVE_CXXFLAGS 4788 4789 4790################################################################ 4791## Endian check. Used for sbuf code. 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4793printf %s "checking whether byte ordering is bigendian... " >&6; } 4794if test ${ac_cv_c_bigendian+y} 4795then : 4796 printf %s "(cached) " >&6 4797else $as_nop 4798 ac_cv_c_bigendian=unknown 4799 # See if we're dealing with a universal compiler. 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#ifndef __APPLE_CC__ 4803 not a universal capable compiler 4804 #endif 4805 typedef int dummy; 4806 4807_ACEOF 4808if ac_fn_c_try_compile "$LINENO" 4809then : 4810 4811 # Check for potential -arch flags. It is not universal unless 4812 # there are at least two -arch flags with different values. 4813 ac_arch= 4814 ac_prev= 4815 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4816 if test -n "$ac_prev"; then 4817 case $ac_word in 4818 i?86 | x86_64 | ppc | ppc64) 4819 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4820 ac_arch=$ac_word 4821 else 4822 ac_cv_c_bigendian=universal 4823 break 4824 fi 4825 ;; 4826 esac 4827 ac_prev= 4828 elif test "x$ac_word" = "x-arch"; then 4829 ac_prev=arch 4830 fi 4831 done 4832fi 4833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4834 if test $ac_cv_c_bigendian = unknown; then 4835 # See if sys/param.h defines the BYTE_ORDER macro. 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837/* end confdefs.h. */ 4838#include <sys/types.h> 4839 #include <sys/param.h> 4840 4841int 4842main (void) 4843{ 4844#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4845 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4846 && LITTLE_ENDIAN) 4847 bogus endian macros 4848 #endif 4849 4850 ; 4851 return 0; 4852} 4853_ACEOF 4854if ac_fn_c_try_compile "$LINENO" 4855then : 4856 # It does; now see whether it defined to BIG_ENDIAN or not. 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859#include <sys/types.h> 4860 #include <sys/param.h> 4861 4862int 4863main (void) 4864{ 4865#if BYTE_ORDER != BIG_ENDIAN 4866 not big endian 4867 #endif 4868 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873if ac_fn_c_try_compile "$LINENO" 4874then : 4875 ac_cv_c_bigendian=yes 4876else $as_nop 4877 ac_cv_c_bigendian=no 4878fi 4879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4880fi 4881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4882 fi 4883 if test $ac_cv_c_bigendian = unknown; then 4884 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887#include <limits.h> 4888 4889int 4890main (void) 4891{ 4892#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4893 bogus endian macros 4894 #endif 4895 4896 ; 4897 return 0; 4898} 4899_ACEOF 4900if ac_fn_c_try_compile "$LINENO" 4901then : 4902 # It does; now see whether it defined to _BIG_ENDIAN or not. 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904/* end confdefs.h. */ 4905#include <limits.h> 4906 4907int 4908main (void) 4909{ 4910#ifndef _BIG_ENDIAN 4911 not big endian 4912 #endif 4913 4914 ; 4915 return 0; 4916} 4917_ACEOF 4918if ac_fn_c_try_compile "$LINENO" 4919then : 4920 ac_cv_c_bigendian=yes 4921else $as_nop 4922 ac_cv_c_bigendian=no 4923fi 4924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4925fi 4926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4927 fi 4928 if test $ac_cv_c_bigendian = unknown; then 4929 # Compile a test program. 4930 if test "$cross_compiling" = yes 4931then : 4932 # Try to guess by grepping values from an object file. 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935unsigned short int ascii_mm[] = 4936 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4937 unsigned short int ascii_ii[] = 4938 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4939 int use_ascii (int i) { 4940 return ascii_mm[i] + ascii_ii[i]; 4941 } 4942 unsigned short int ebcdic_ii[] = 4943 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4944 unsigned short int ebcdic_mm[] = 4945 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4946 int use_ebcdic (int i) { 4947 return ebcdic_mm[i] + ebcdic_ii[i]; 4948 } 4949 extern int foo; 4950 4951int 4952main (void) 4953{ 4954return use_ascii (foo) == use_ebcdic (foo); 4955 ; 4956 return 0; 4957} 4958_ACEOF 4959if ac_fn_c_try_compile "$LINENO" 4960then : 4961 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4962 ac_cv_c_bigendian=yes 4963 fi 4964 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4965 if test "$ac_cv_c_bigendian" = unknown; then 4966 ac_cv_c_bigendian=no 4967 else 4968 # finding both strings is unlikely to happen, but who knows? 4969 ac_cv_c_bigendian=unknown 4970 fi 4971 fi 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4974else $as_nop 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977$ac_includes_default 4978int 4979main (void) 4980{ 4981 4982 /* Are we little or big endian? From Harbison&Steele. */ 4983 union 4984 { 4985 long int l; 4986 char c[sizeof (long int)]; 4987 } u; 4988 u.l = 1; 4989 return u.c[sizeof (long int) - 1] == 1; 4990 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995if ac_fn_c_try_run "$LINENO" 4996then : 4997 ac_cv_c_bigendian=no 4998else $as_nop 4999 ac_cv_c_bigendian=yes 5000fi 5001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5002 conftest.$ac_objext conftest.beam conftest.$ac_ext 5003fi 5004 5005 fi 5006fi 5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5008printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5009 case $ac_cv_c_bigendian in #( 5010 yes) 5011 5012printf "%s\n" "#define BE13_API_BIGENDIAN 1" >>confdefs.h 5013;; #( 5014 no) 5015 5016printf "%s\n" "#define BE13_API_LITTLEENDIAN 1" >>confdefs.h 5017 ;; #( 5018 universal) 5019 5020printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5021 5022 ;; #( 5023 *) 5024 as_fn_error $? "unknown endianness 5025 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5026 esac 5027 5028 5029 5030################################################################ 5031## Headers 5032ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5033if test "x$ac_cv_header_dlfcn_h" = xyes 5034then : 5035 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 5036 5037fi 5038ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 5039if test "x$ac_cv_header_fcntl_h" = xyes 5040then : 5041 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 5042 5043fi 5044ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 5045if test "x$ac_cv_header_limits_h" = xyes 5046then : 5047 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 5048 5049fi 5050ac_fn_c_check_header_compile "$LINENO" "limits/limits.h" "ac_cv_header_limits_limits_h" "$ac_includes_default" 5051if test "x$ac_cv_header_limits_limits_h" = xyes 5052then : 5053 printf "%s\n" "#define HAVE_LIMITS_LIMITS_H 1" >>confdefs.h 5054 5055fi 5056ac_fn_c_check_header_compile "$LINENO" "linux/if_ether.h" "ac_cv_header_linux_if_ether_h" "$ac_includes_default" 5057if test "x$ac_cv_header_linux_if_ether_h" = xyes 5058then : 5059 printf "%s\n" "#define HAVE_LINUX_IF_ETHER_H 1" >>confdefs.h 5060 5061fi 5062ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default" 5063if test "x$ac_cv_header_net_ethernet_h" = xyes 5064then : 5065 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h 5066 5067fi 5068ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default" 5069if test "x$ac_cv_header_netinet_if_ether_h" = xyes 5070then : 5071 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h 5072 5073fi 5074ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 5075if test "x$ac_cv_header_netinet_in_h" = xyes 5076then : 5077 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 5078 5079fi 5080ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" 5081if test "x$ac_cv_header_pcap_h" = xyes 5082then : 5083 printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h 5084 5085fi 5086ac_fn_c_check_header_compile "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default" 5087if test "x$ac_cv_header_pcap_pcap_h" = xyes 5088then : 5089 printf "%s\n" "#define HAVE_PCAP_PCAP_H 1" >>confdefs.h 5090 5091fi 5092ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 5093if test "x$ac_cv_header_sqlite3_h" = xyes 5094then : 5095 printf "%s\n" "#define HAVE_SQLITE3_H 1" >>confdefs.h 5096 5097fi 5098ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default" 5099if test "x$ac_cv_header_sys_cdefs_h" = xyes 5100then : 5101 printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h 5102 5103fi 5104ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 5105if test "x$ac_cv_header_sys_mman_h" = xyes 5106then : 5107 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 5108 5109fi 5110ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 5111if test "x$ac_cv_header_sys_stat_h" = xyes 5112then : 5113 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 5114 5115fi 5116ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 5117if test "x$ac_cv_header_sys_time_h" = xyes 5118then : 5119 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 5120 5121fi 5122ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 5123if test "x$ac_cv_header_sys_types_h" = xyes 5124then : 5125 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 5126 5127fi 5128ac_fn_c_check_header_compile "$LINENO" "sys/vmmeter.h" "ac_cv_header_sys_vmmeter_h" "$ac_includes_default" 5129if test "x$ac_cv_header_sys_vmmeter_h" = xyes 5130then : 5131 printf "%s\n" "#define HAVE_SYS_VMMETER_H 1" >>confdefs.h 5132 5133fi 5134ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 5135if test "x$ac_cv_header_unistd_h" = xyes 5136then : 5137 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 5138 5139fi 5140ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 5141if test "x$ac_cv_header_windows_h" = xyes 5142then : 5143 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 5144 5145fi 5146ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 5147if test "x$ac_cv_header_windows_h" = xyes 5148then : 5149 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 5150 5151fi 5152ac_fn_c_check_header_compile "$LINENO" "windowsx.h" "ac_cv_header_windowsx_h" "$ac_includes_default" 5153if test "x$ac_cv_header_windowsx_h" = xyes 5154then : 5155 printf "%s\n" "#define HAVE_WINDOWSX_H 1" >>confdefs.h 5156 5157fi 5158ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 5159if test "x$ac_cv_header_winsock2_h" = xyes 5160then : 5161 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 5162 5163fi 5164ac_fn_c_check_header_compile "$LINENO" "wpcap/pcap.h" "ac_cv_header_wpcap_pcap_h" "$ac_includes_default" 5165if test "x$ac_cv_header_wpcap_pcap_h" = xyes 5166then : 5167 printf "%s\n" "#define HAVE_WPCAP_PCAP_H 1" >>confdefs.h 5168 5169fi 5170ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 5171if test "x$ac_cv_header_mach_mach_h" = xyes 5172then : 5173 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h 5174 5175fi 5176ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" 5177if test "x$ac_cv_header_mach_o_dyld_h" = xyes 5178then : 5179 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h 5180 5181fi 5182 5183 5184ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 5185if test "x$ac_cv_func_gmtime_r" = xyes 5186then : 5187 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 5188 5189fi 5190ac_fn_c_check_func "$LINENO" "ishexnumber" "ac_cv_func_ishexnumber" 5191if test "x$ac_cv_func_ishexnumber" = xyes 5192then : 5193 printf "%s\n" "#define HAVE_ISHEXNUMBER 1" >>confdefs.h 5194 5195fi 5196ac_fn_c_check_func "$LINENO" "isxdigit" "ac_cv_func_isxdigit" 5197if test "x$ac_cv_func_isxdigit" = xyes 5198then : 5199 printf "%s\n" "#define HAVE_ISXDIGIT 1" >>confdefs.h 5200 5201fi 5202ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 5203if test "x$ac_cv_func_localtime_r" = xyes 5204then : 5205 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 5206 5207fi 5208ac_fn_c_check_func "$LINENO" "unistd.h" "ac_cv_func_unistd_h" 5209if test "x$ac_cv_func_unistd_h" = xyes 5210then : 5211 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 5212 5213fi 5214ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 5215if test "x$ac_cv_func_mmap" = xyes 5216then : 5217 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 5218 5219fi 5220ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" 5221if test "x$ac_cv_func_err" = xyes 5222then : 5223 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h 5224 5225fi 5226ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx" 5227if test "x$ac_cv_func_errx" = xyes 5228then : 5229 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h 5230 5231fi 5232ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" 5233if test "x$ac_cv_func_warn" = xyes 5234then : 5235 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h 5236 5237fi 5238ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx" 5239if test "x$ac_cv_func_warnx" = xyes 5240then : 5241 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h 5242 5243fi 5244ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64" 5245if test "x$ac_cv_func_pread64" = xyes 5246then : 5247 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h 5248 5249fi 5250ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 5251if test "x$ac_cv_func_pread" = xyes 5252then : 5253 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 5254 5255fi 5256ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 5257if test "x$ac_cv_func_strptime" = xyes 5258then : 5259 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 5260 5261fi 5262ac_fn_c_check_func "$LINENO" "_lseeki64" "ac_cv_func__lseeki64" 5263if test "x$ac_cv_func__lseeki64" = xyes 5264then : 5265 printf "%s\n" "#define HAVE__LSEEKI64 1" >>confdefs.h 5266 5267fi 5268ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 5269if test "x$ac_cv_func_utimes" = xyes 5270then : 5271 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 5272 5273fi 5274ac_fn_c_check_func "$LINENO" "host_statistics64" "ac_cv_func_host_statistics64" 5275if test "x$ac_cv_func_host_statistics64" = xyes 5276then : 5277 printf "%s\n" "#define HAVE_HOST_STATISTICS64 1" >>confdefs.h 5278 5279fi 5280 5281 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_libversion in -lsqlite3" >&5 5283printf %s "checking for sqlite3_libversion in -lsqlite3... " >&6; } 5284if test ${ac_cv_lib_sqlite3_sqlite3_libversion+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 ac_check_lib_save_LIBS=$LIBS 5289LIBS="-lsqlite3 $LIBS" 5290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291/* end confdefs.h. */ 5292 5293/* Override any GCC internal prototype to avoid an error. 5294 Use char because int might match the return type of a GCC 5295 builtin and then its argument prototype would still apply. */ 5296char sqlite3_libversion (); 5297int 5298main (void) 5299{ 5300return sqlite3_libversion (); 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305if ac_fn_c_try_link "$LINENO" 5306then : 5307 ac_cv_lib_sqlite3_sqlite3_libversion=yes 5308else $as_nop 5309 ac_cv_lib_sqlite3_sqlite3_libversion=no 5310fi 5311rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5312 conftest$ac_exeext conftest.$ac_ext 5313LIBS=$ac_check_lib_save_LIBS 5314fi 5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_libversion" >&5 5316printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_libversion" >&6; } 5317if test "x$ac_cv_lib_sqlite3_sqlite3_libversion" = xyes 5318then : 5319 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 5320 5321 LIBS="-lsqlite3 $LIBS" 5322 5323fi 5324 5325ac_fn_c_check_func "$LINENO" "sqlite3_create_function_v2" "ac_cv_func_sqlite3_create_function_v2" 5326if test "x$ac_cv_func_sqlite3_create_function_v2" = xyes 5327then : 5328 printf "%s\n" "#define HAVE_SQLITE3_CREATE_FUNCTION_V2 1" >>confdefs.h 5329 5330fi 5331ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" 5332if test "x$ac_cv_func_sysctlbyname" = xyes 5333then : 5334 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h 5335 5336fi 5337 5338 5339################################################################ 5340## Check on two annoying warnings 5341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5342/* end confdefs.h. */ 5343#pragma GCC diagnostic ignored "-Wredundant-decls" 5344 int a=3; 5345 5346int 5347main (void) 5348{ 5349 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354if ac_fn_c_try_compile "$LINENO" 5355then : 5356 5357printf "%s\n" "#define HAVE_DIAGNOSTIC_REDUNDANT_DECLS 1" >>confdefs.h 5358 5359 5360fi 5361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5362 5363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365#pragma GCC diagnostic ignored "-Wcast-align" 5366 int a=3; 5367 5368int 5369main (void) 5370{ 5371 5372 ; 5373 return 0; 5374} 5375_ACEOF 5376if ac_fn_c_try_compile "$LINENO" 5377then : 5378 5379printf "%s\n" "#define HAVE_DIAGNOSTIC_CAST_ALIGN 1" >>confdefs.h 5380 5381 5382fi 5383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5384 5385 5386# 5387# NOTE 1 - plugins/Makefile is referenced so that the plugins Makefile is created. 5388# However, plugins is not listed as a SUBDIR for Makefile.am in this directory. 5389# That prevents the plugins from automatically being built each time. 5390# 5391# NOTE 2 - src_win/Makefile is not automatically generated. This is necessary 5392# so that it can be run even after a 'make distclean' is done 5393ac_config_files="$ac_config_files Makefile doc/Makefile doc/latex_manuals/Makefile src/Makefile src/tests/Makefile man/Makefile python/Makefile specfiles/Makefile specfiles/bulk_extractor.spec.m4 tests/Makefile" 5394 5395 5396ac_config_headers="$ac_config_headers config.h" 5397 5398am__api_version='1.16' 5399 5400 5401 # Find a good install program. We prefer a C program (faster), 5402# so one script is as good as another. But avoid the broken or 5403# incompatible versions: 5404# SysV /etc/install, /usr/sbin/install 5405# SunOS /usr/etc/install 5406# IRIX /sbin/install 5407# AIX /bin/install 5408# AmigaOS /C/install, which installs bootblocks on floppy discs 5409# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5410# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5411# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5412# OS/2's system install, which has a completely different semantic 5413# ./install, which can be erroneously created by make from ./install.sh. 5414# Reject install programs that cannot install multiple files. 5415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5416printf %s "checking for a BSD-compatible install... " >&6; } 5417if test -z "$INSTALL"; then 5418if test ${ac_cv_path_install+y} 5419then : 5420 printf %s "(cached) " >&6 5421else $as_nop 5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5423for as_dir in $PATH 5424do 5425 IFS=$as_save_IFS 5426 case $as_dir in #((( 5427 '') as_dir=./ ;; 5428 */) ;; 5429 *) as_dir=$as_dir/ ;; 5430 esac 5431 # Account for fact that we put trailing slashes in our PATH walk. 5432case $as_dir in #(( 5433 ./ | /[cC]/* | \ 5434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5436 /usr/ucb/* ) ;; 5437 *) 5438 # OSF1 and SCO ODT 3.0 have their own names for install. 5439 # Don't use installbsd from OSF since it installs stuff as root 5440 # by default. 5441 for ac_prog in ginstall scoinst install; do 5442 for ac_exec_ext in '' $ac_executable_extensions; do 5443 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5444 if test $ac_prog = install && 5445 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5446 # AIX install. It has an incompatible calling convention. 5447 : 5448 elif test $ac_prog = install && 5449 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5450 # program-specific install script used by HP pwplus--don't use. 5451 : 5452 else 5453 rm -rf conftest.one conftest.two conftest.dir 5454 echo one > conftest.one 5455 echo two > conftest.two 5456 mkdir conftest.dir 5457 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5458 test -s conftest.one && test -s conftest.two && 5459 test -s conftest.dir/conftest.one && 5460 test -s conftest.dir/conftest.two 5461 then 5462 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5463 break 3 5464 fi 5465 fi 5466 fi 5467 done 5468 done 5469 ;; 5470esac 5471 5472 done 5473IFS=$as_save_IFS 5474 5475rm -rf conftest.one conftest.two conftest.dir 5476 5477fi 5478 if test ${ac_cv_path_install+y}; then 5479 INSTALL=$ac_cv_path_install 5480 else 5481 # As a last resort, use the slow shell script. Don't cache a 5482 # value for INSTALL within a source directory, because that will 5483 # break other packages using the cache if that directory is 5484 # removed, or if the value is a relative name. 5485 INSTALL=$ac_install_sh 5486 fi 5487fi 5488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5489printf "%s\n" "$INSTALL" >&6; } 5490 5491# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5492# It thinks the first close brace ends the variable substitution. 5493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5494 5495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5496 5497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5498 5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5500printf %s "checking whether build environment is sane... " >&6; } 5501# Reject unsafe characters in $srcdir or the absolute working directory 5502# name. Accept space and tab only in the latter. 5503am_lf=' 5504' 5505case `pwd` in 5506 *[\\\"\#\$\&\'\`$am_lf]*) 5507 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5508esac 5509case $srcdir in 5510 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5511 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5512esac 5513 5514# Do 'set' in a subshell so we don't clobber the current shell's 5515# arguments. Must try -L first in case configure is actually a 5516# symlink; some systems play weird games with the mod time of symlinks 5517# (eg FreeBSD returns the mod time of the symlink's containing 5518# directory). 5519if ( 5520 am_has_slept=no 5521 for am_try in 1 2; do 5522 echo "timestamp, slept: $am_has_slept" > conftest.file 5523 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5524 if test "$*" = "X"; then 5525 # -L didn't work. 5526 set X `ls -t "$srcdir/configure" conftest.file` 5527 fi 5528 if test "$*" != "X $srcdir/configure conftest.file" \ 5529 && test "$*" != "X conftest.file $srcdir/configure"; then 5530 5531 # If neither matched, then we have a broken ls. This can happen 5532 # if, for instance, CONFIG_SHELL is bash and it inherits a 5533 # broken ls alias from the environment. This has actually 5534 # happened. Such a system could not be considered "sane". 5535 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5536 alias in your environment" "$LINENO" 5 5537 fi 5538 if test "$2" = conftest.file || test $am_try -eq 2; then 5539 break 5540 fi 5541 # Just in case. 5542 sleep 1 5543 am_has_slept=yes 5544 done 5545 test "$2" = conftest.file 5546 ) 5547then 5548 # Ok. 5549 : 5550else 5551 as_fn_error $? "newly created file is older than distributed files! 5552Check your system clock" "$LINENO" 5 5553fi 5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5555printf "%s\n" "yes" >&6; } 5556# If we didn't sleep, we still need to ensure time stamps of config.status and 5557# generated files are strictly newer. 5558am_sleep_pid= 5559if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5560 ( sleep 1 ) & 5561 am_sleep_pid=$! 5562fi 5563 5564rm -f conftest.file 5565 5566test "$program_prefix" != NONE && 5567 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5568# Use a double $ so make ignores it. 5569test "$program_suffix" != NONE && 5570 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5571# Double any \ or $. 5572# By default was `s,x,x', remove it if useless. 5573ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5574program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 5575 5576 5577 if test x"${MISSING+set}" != xset; then 5578 MISSING="\${SHELL} '$am_aux_dir/missing'" 5579fi 5580# Use eval to expand $SHELL 5581if eval "$MISSING --is-lightweight"; then 5582 am_missing_run="$MISSING " 5583else 5584 am_missing_run= 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 5586printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 5587fi 5588 5589if test x"${install_sh+set}" != xset; then 5590 case $am_aux_dir in 5591 *\ * | *\ *) 5592 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5593 *) 5594 install_sh="\${SHELL} $am_aux_dir/install-sh" 5595 esac 5596fi 5597 5598# Installed binaries are usually stripped using 'strip' when the user 5599# run "make install-strip". However 'strip' might not be the right 5600# tool to use in cross-compilation environments, therefore Automake 5601# will honor the 'STRIP' environment variable to overrule this program. 5602if test "$cross_compiling" != no; then 5603 if test -n "$ac_tool_prefix"; then 5604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5605set dummy ${ac_tool_prefix}strip; ac_word=$2 5606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5607printf %s "checking for $ac_word... " >&6; } 5608if test ${ac_cv_prog_STRIP+y} 5609then : 5610 printf %s "(cached) " >&6 5611else $as_nop 5612 if test -n "$STRIP"; then 5613 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5614else 5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5616for as_dir in $PATH 5617do 5618 IFS=$as_save_IFS 5619 case $as_dir in #((( 5620 '') as_dir=./ ;; 5621 */) ;; 5622 *) as_dir=$as_dir/ ;; 5623 esac 5624 for ac_exec_ext in '' $ac_executable_extensions; do 5625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5626 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5628 break 2 5629 fi 5630done 5631 done 5632IFS=$as_save_IFS 5633 5634fi 5635fi 5636STRIP=$ac_cv_prog_STRIP 5637if test -n "$STRIP"; then 5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5639printf "%s\n" "$STRIP" >&6; } 5640else 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642printf "%s\n" "no" >&6; } 5643fi 5644 5645 5646fi 5647if test -z "$ac_cv_prog_STRIP"; then 5648 ac_ct_STRIP=$STRIP 5649 # Extract the first word of "strip", so it can be a program name with args. 5650set dummy strip; ac_word=$2 5651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652printf %s "checking for $ac_word... " >&6; } 5653if test ${ac_cv_prog_ac_ct_STRIP+y} 5654then : 5655 printf %s "(cached) " >&6 5656else $as_nop 5657 if test -n "$ac_ct_STRIP"; then 5658 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5659else 5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 case $as_dir in #((( 5665 '') as_dir=./ ;; 5666 */) ;; 5667 *) as_dir=$as_dir/ ;; 5668 esac 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5671 ac_cv_prog_ac_ct_STRIP="strip" 5672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5682if test -n "$ac_ct_STRIP"; then 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5684printf "%s\n" "$ac_ct_STRIP" >&6; } 5685else 5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687printf "%s\n" "no" >&6; } 5688fi 5689 5690 if test "x$ac_ct_STRIP" = x; then 5691 STRIP=":" 5692 else 5693 case $cross_compiling:$ac_tool_warned in 5694yes:) 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5697ac_tool_warned=yes ;; 5698esac 5699 STRIP=$ac_ct_STRIP 5700 fi 5701else 5702 STRIP="$ac_cv_prog_STRIP" 5703fi 5704 5705fi 5706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5707 5708 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 5710printf %s "checking for a race-free mkdir -p... " >&6; } 5711if test -z "$MKDIR_P"; then 5712 if test ${ac_cv_path_mkdir+y} 5713then : 5714 printf %s "(cached) " >&6 5715else $as_nop 5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5717for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5718do 5719 IFS=$as_save_IFS 5720 case $as_dir in #((( 5721 '') as_dir=./ ;; 5722 */) ;; 5723 *) as_dir=$as_dir/ ;; 5724 esac 5725 for ac_prog in mkdir gmkdir; do 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 5728 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 5729 'mkdir ('*'coreutils) '* | \ 5730 'BusyBox '* | \ 5731 'mkdir (fileutils) '4.1*) 5732 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 5733 break 3;; 5734 esac 5735 done 5736 done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741 5742 test -d ./--version && rmdir ./--version 5743 if test ${ac_cv_path_mkdir+y}; then 5744 MKDIR_P="$ac_cv_path_mkdir -p" 5745 else 5746 # As a last resort, use the slow shell script. Don't cache a 5747 # value for MKDIR_P within a source directory, because that will 5748 # break other packages using the cache if that directory is 5749 # removed, or if the value is a relative name. 5750 MKDIR_P="$ac_install_sh -d" 5751 fi 5752fi 5753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5754printf "%s\n" "$MKDIR_P" >&6; } 5755 5756for ac_prog in gawk mawk nawk awk 5757do 5758 # Extract the first word of "$ac_prog", so it can be a program name with args. 5759set dummy $ac_prog; ac_word=$2 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761printf %s "checking for $ac_word... " >&6; } 5762if test ${ac_cv_prog_AWK+y} 5763then : 5764 printf %s "(cached) " >&6 5765else $as_nop 5766 if test -n "$AWK"; then 5767 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5768else 5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770for as_dir in $PATH 5771do 5772 IFS=$as_save_IFS 5773 case $as_dir in #((( 5774 '') as_dir=./ ;; 5775 */) ;; 5776 *) as_dir=$as_dir/ ;; 5777 esac 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5780 ac_cv_prog_AWK="$ac_prog" 5781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5782 break 2 5783 fi 5784done 5785 done 5786IFS=$as_save_IFS 5787 5788fi 5789fi 5790AWK=$ac_cv_prog_AWK 5791if test -n "$AWK"; then 5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5793printf "%s\n" "$AWK" >&6; } 5794else 5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796printf "%s\n" "no" >&6; } 5797fi 5798 5799 5800 test -n "$AWK" && break 5801done 5802 5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5804printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5805set x ${MAKE-make} 5806ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5807if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5808then : 5809 printf %s "(cached) " >&6 5810else $as_nop 5811 cat >conftest.make <<\_ACEOF 5812SHELL = /bin/sh 5813all: 5814 @echo '@@@%%%=$(MAKE)=@@@%%%' 5815_ACEOF 5816# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5817case `${MAKE-make} -f conftest.make 2>/dev/null` in 5818 *@@@%%%=?*=@@@%%%*) 5819 eval ac_cv_prog_make_${ac_make}_set=yes;; 5820 *) 5821 eval ac_cv_prog_make_${ac_make}_set=no;; 5822esac 5823rm -f conftest.make 5824fi 5825if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5827printf "%s\n" "yes" >&6; } 5828 SET_MAKE= 5829else 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5831printf "%s\n" "no" >&6; } 5832 SET_MAKE="MAKE=${MAKE-make}" 5833fi 5834 5835rm -rf .tst 2>/dev/null 5836mkdir .tst 2>/dev/null 5837if test -d .tst; then 5838 am__leading_dot=. 5839else 5840 am__leading_dot=_ 5841fi 5842rmdir .tst 2>/dev/null 5843 5844DEPDIR="${am__leading_dot}deps" 5845 5846ac_config_commands="$ac_config_commands depfiles" 5847 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5849printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5850cat > confinc.mk << 'END' 5851am__doit: 5852 @echo this is the am__doit target >confinc.out 5853.PHONY: am__doit 5854END 5855am__include="#" 5856am__quote= 5857# BSD make does it like this. 5858echo '.include "confinc.mk" # ignored' > confmf.BSD 5859# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5860echo 'include confinc.mk # ignored' > confmf.GNU 5861_am_result=no 5862for s in GNU BSD; do 5863 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5864 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); } 5868 case $?:`cat confinc.out 2>/dev/null` in #( 5869 '0:this is the am__doit target') : 5870 case $s in #( 5871 BSD) : 5872 am__include='.include' am__quote='"' ;; #( 5873 *) : 5874 am__include='include' am__quote='' ;; 5875esac ;; #( 5876 *) : 5877 ;; 5878esac 5879 if test "$am__include" != "#"; then 5880 _am_result="yes ($s style)" 5881 break 5882 fi 5883done 5884rm -f confinc.* confmf.* 5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5886printf "%s\n" "${_am_result}" >&6; } 5887 5888# Check whether --enable-dependency-tracking was given. 5889if test ${enable_dependency_tracking+y} 5890then : 5891 enableval=$enable_dependency_tracking; 5892fi 5893 5894if test "x$enable_dependency_tracking" != xno; then 5895 am_depcomp="$ac_aux_dir/depcomp" 5896 AMDEPBACKSLASH='\' 5897 am__nodep='_no' 5898fi 5899 if test "x$enable_dependency_tracking" != xno; then 5900 AMDEP_TRUE= 5901 AMDEP_FALSE='#' 5902else 5903 AMDEP_TRUE='#' 5904 AMDEP_FALSE= 5905fi 5906 5907 5908# Check whether --enable-silent-rules was given. 5909if test ${enable_silent_rules+y} 5910then : 5911 enableval=$enable_silent_rules; 5912fi 5913 5914case $enable_silent_rules in # ((( 5915 yes) AM_DEFAULT_VERBOSITY=0;; 5916 no) AM_DEFAULT_VERBOSITY=1;; 5917 *) AM_DEFAULT_VERBOSITY=1;; 5918esac 5919am_make=${MAKE-make} 5920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5921printf %s "checking whether $am_make supports nested variables... " >&6; } 5922if test ${am_cv_make_support_nested_variables+y} 5923then : 5924 printf %s "(cached) " >&6 5925else $as_nop 5926 if printf "%s\n" 'TRUE=$(BAR$(V)) 5927BAR0=false 5928BAR1=true 5929V=1 5930am__doit: 5931 @$(TRUE) 5932.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5933 am_cv_make_support_nested_variables=yes 5934else 5935 am_cv_make_support_nested_variables=no 5936fi 5937fi 5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5939printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 5940if test $am_cv_make_support_nested_variables = yes; then 5941 AM_V='$(V)' 5942 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 5943else 5944 AM_V=$AM_DEFAULT_VERBOSITY 5945 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 5946fi 5947AM_BACKSLASH='\' 5948 5949if test "`cd $srcdir && pwd`" != "`pwd`"; then 5950 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5951 # is not polluted with repeated "-I." 5952 am__isrc=' -I$(srcdir)' 5953 # test to see if srcdir already configured 5954 if test -f $srcdir/config.status; then 5955 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5956 fi 5957fi 5958 5959# test whether we have cygpath 5960if test -z "$CYGPATH_W"; then 5961 if (cygpath --version) >/dev/null 2>/dev/null; then 5962 CYGPATH_W='cygpath -w' 5963 else 5964 CYGPATH_W=echo 5965 fi 5966fi 5967 5968 5969# Define the identity of the package. 5970 PACKAGE='bulk_extractor' 5971 VERSION='2.0.0-beta2' 5972 5973 5974printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 5975 5976 5977printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 5978 5979# Some tools Automake needs. 5980 5981ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5982 5983 5984AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5985 5986 5987AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5988 5989 5990AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5991 5992 5993MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5994 5995# For better backward compatibility. To be removed once Automake 1.9.x 5996# dies out for good. For more background, see: 5997# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5998# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5999mkdir_p='$(MKDIR_P)' 6000 6001# We need awk for the "check" target (and possibly the TAP driver). The 6002# system "awk" is bad on some platforms. 6003# Always define AMTAR for backward compatibility. Yes, it's still used 6004# in the wild :-( We should find a proper way to deprecate it ... 6005AMTAR='$${TAR-tar}' 6006 6007 6008# We'll loop over all known methods to create a tar archive until one works. 6009_am_tools='gnutar pax cpio none' 6010 6011am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 6012 6013 6014 6015 6016 6017depcc="$CC" am_compiler_list= 6018 6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6020printf %s "checking dependency style of $depcc... " >&6; } 6021if test ${am_cv_CC_dependencies_compiler_type+y} 6022then : 6023 printf %s "(cached) " >&6 6024else $as_nop 6025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6026 # We make a subdir and do the tests there. Otherwise we can end up 6027 # making bogus files that we don't know about and never remove. For 6028 # instance it was reported that on HP-UX the gcc test will end up 6029 # making a dummy file named 'D' -- because '-MD' means "put the output 6030 # in D". 6031 rm -rf conftest.dir 6032 mkdir conftest.dir 6033 # Copy depcomp to subdir because otherwise we won't find it if we're 6034 # using a relative directory. 6035 cp "$am_depcomp" conftest.dir 6036 cd conftest.dir 6037 # We will build objects and dependencies in a subdirectory because 6038 # it helps to detect inapplicable dependency modes. For instance 6039 # both Tru64's cc and ICC support -MD to output dependencies as a 6040 # side effect of compilation, but ICC will put the dependencies in 6041 # the current directory while Tru64 will put them in the object 6042 # directory. 6043 mkdir sub 6044 6045 am_cv_CC_dependencies_compiler_type=none 6046 if test "$am_compiler_list" = ""; then 6047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6048 fi 6049 am__universal=false 6050 case " $depcc " in #( 6051 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6052 esac 6053 6054 for depmode in $am_compiler_list; do 6055 # Setup a source with many dependencies, because some compilers 6056 # like to wrap large dependency lists on column 80 (with \), and 6057 # we should not choose a depcomp mode which is confused by this. 6058 # 6059 # We need to recreate these files for each test, as the compiler may 6060 # overwrite some of them when testing with obscure command lines. 6061 # This happens at least with the AIX C compiler. 6062 : > sub/conftest.c 6063 for i in 1 2 3 4 5 6; do 6064 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6065 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6066 # Solaris 10 /bin/sh. 6067 echo '/* dummy */' > sub/conftst$i.h 6068 done 6069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6070 6071 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6072 # mode. It turns out that the SunPro C++ compiler does not properly 6073 # handle '-M -o', and we need to detect this. Also, some Intel 6074 # versions had trouble with output in subdirs. 6075 am__obj=sub/conftest.${OBJEXT-o} 6076 am__minus_obj="-o $am__obj" 6077 case $depmode in 6078 gcc) 6079 # This depmode causes a compiler race in universal mode. 6080 test "$am__universal" = false || continue 6081 ;; 6082 nosideeffect) 6083 # After this tag, mechanisms are not by side-effect, so they'll 6084 # only be used when explicitly requested. 6085 if test "x$enable_dependency_tracking" = xyes; then 6086 continue 6087 else 6088 break 6089 fi 6090 ;; 6091 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6092 # This compiler won't grok '-c -o', but also, the minuso test has 6093 # not run yet. These depmodes are late enough in the game, and 6094 # so weak that their functioning should not be impacted. 6095 am__obj=conftest.${OBJEXT-o} 6096 am__minus_obj= 6097 ;; 6098 none) break ;; 6099 esac 6100 if depmode=$depmode \ 6101 source=sub/conftest.c object=$am__obj \ 6102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6103 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6104 >/dev/null 2>conftest.err && 6105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6107 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6109 # icc doesn't choke on unknown options, it will just issue warnings 6110 # or remarks (even with -Werror). So we grep stderr for any message 6111 # that says an option was ignored or not supported. 6112 # When given -MP, icc 7.0 and 7.1 complain thusly: 6113 # icc: Command line warning: ignoring option '-M'; no argument required 6114 # The diagnosis changed in icc 8.0: 6115 # icc: Command line remark: option '-MP' not supported 6116 if (grep 'ignoring option' conftest.err || 6117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6118 am_cv_CC_dependencies_compiler_type=$depmode 6119 break 6120 fi 6121 fi 6122 done 6123 6124 cd .. 6125 rm -rf conftest.dir 6126else 6127 am_cv_CC_dependencies_compiler_type=none 6128fi 6129 6130fi 6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6132printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6133CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6134 6135 if 6136 test "x$enable_dependency_tracking" != xno \ 6137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6138 am__fastdepCC_TRUE= 6139 am__fastdepCC_FALSE='#' 6140else 6141 am__fastdepCC_TRUE='#' 6142 am__fastdepCC_FALSE= 6143fi 6144 6145 6146# Variables for tags utilities; see am/tags.am 6147if test -z "$CTAGS"; then 6148 CTAGS=ctags 6149fi 6150 6151if test -z "$ETAGS"; then 6152 ETAGS=etags 6153fi 6154 6155if test -z "$CSCOPE"; then 6156 CSCOPE=cscope 6157fi 6158 6159 6160 6161# POSIX will say in a future version that running "rm -f" with no argument 6162# is OK; and we want to be able to make that assumption in our Makefile 6163# recipes. So use an aggressive probe to check that the usage we want is 6164# actually supported "in the wild" to an acceptable degree. 6165# See automake bug#10828. 6166# To make any issue more visible, cause the running configure to be aborted 6167# by default if the 'rm' program in use doesn't match our expectations; the 6168# user can still override this though. 6169if rm -f && rm -fr && rm -rf; then : OK; else 6170 cat >&2 <<'END' 6171Oops! 6172 6173Your 'rm' program seems unable to run without file operands specified 6174on the command line, even when the '-f' option is present. This is contrary 6175to the behaviour of most rm programs out there, and not conforming with 6176the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 6177 6178Please tell bug-automake@gnu.org about your system, including the value 6179of your $PATH and any error possibly output before this message. This 6180can help us improve future automake versions. 6181 6182END 6183 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6184 echo 'Configuration will proceed anyway, since you have set the' >&2 6185 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6186 echo >&2 6187 else 6188 cat >&2 <<'END' 6189Aborting the configuration process, to ensure you take notice of the issue. 6190 6191You can download and install GNU coreutils to get an 'rm' implementation 6192that behaves properly: <https://www.gnu.org/software/coreutils/>. 6193 6194If you want to complete the configuration process using your problematic 6195'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6196to "yes", and re-run configure. 6197 6198END 6199 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 6200 fi 6201fi 6202 6203 6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 6205printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 6206 # Check whether --enable-maintainer-mode was given. 6207if test ${enable_maintainer_mode+y} 6208then : 6209 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 6210else $as_nop 6211 USE_MAINTAINER_MODE=no 6212fi 6213 6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 6215printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 6216 if test $USE_MAINTAINER_MODE = yes; then 6217 MAINTAINER_MODE_TRUE= 6218 MAINTAINER_MODE_FALSE='#' 6219else 6220 MAINTAINER_MODE_TRUE='#' 6221 MAINTAINER_MODE_FALSE= 6222fi 6223 6224 MAINT=$MAINTAINER_MODE_TRUE 6225 6226 6227if test "x$prefix" = xNONE; then 6228 printf %s "checking for prefix by " >&6 6229 # Extract the first word of "bulk_extractor", so it can be a program name with args. 6230set dummy bulk_extractor; ac_word=$2 6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6232printf %s "checking for $ac_word... " >&6; } 6233if test ${ac_cv_path_ac_prefix_program+y} 6234then : 6235 printf %s "(cached) " >&6 6236else $as_nop 6237 case $ac_prefix_program in 6238 [\\/]* | ?:[\\/]*) 6239 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. 6240 ;; 6241 *) 6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6243for as_dir in $PATH 6244do 6245 IFS=$as_save_IFS 6246 case $as_dir in #((( 6247 '') as_dir=./ ;; 6248 */) ;; 6249 *) as_dir=$as_dir/ ;; 6250 esac 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6253 ac_cv_path_ac_prefix_program="$as_dir$ac_word$ac_exec_ext" 6254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258 done 6259IFS=$as_save_IFS 6260 6261 ;; 6262esac 6263fi 6264ac_prefix_program=$ac_cv_path_ac_prefix_program 6265if test -n "$ac_prefix_program"; then 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 6267printf "%s\n" "$ac_prefix_program" >&6; } 6268else 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270printf "%s\n" "no" >&6; } 6271fi 6272 6273 6274 if test -n "$ac_prefix_program"; then 6275 prefix=`$as_dirname -- "$ac_prefix_program" || 6276$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6277 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ 6278 X"$ac_prefix_program" : 'X\(//\)$' \| \ 6279 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || 6280printf "%s\n" X"$ac_prefix_program" | 6281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6282 s//\1/ 6283 q 6284 } 6285 /^X\(\/\/\)[^/].*/{ 6286 s//\1/ 6287 q 6288 } 6289 /^X\(\/\/\)$/{ 6290 s//\1/ 6291 q 6292 } 6293 /^X\(\/\).*/{ 6294 s//\1/ 6295 q 6296 } 6297 s/.*/./; q'` 6298 prefix=`$as_dirname -- "$prefix" || 6299$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6300 X"$prefix" : 'X\(//\)[^/]' \| \ 6301 X"$prefix" : 'X\(//\)$' \| \ 6302 X"$prefix" : 'X\(/\)' \| . 2>/dev/null || 6303printf "%s\n" X"$prefix" | 6304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6305 s//\1/ 6306 q 6307 } 6308 /^X\(\/\/\)[^/].*/{ 6309 s//\1/ 6310 q 6311 } 6312 /^X\(\/\/\)$/{ 6313 s//\1/ 6314 q 6315 } 6316 /^X\(\/\).*/{ 6317 s//\1/ 6318 q 6319 } 6320 s/.*/./; q'` 6321 fi 6322fi 6323 6324# Programs we will be using 6325ac_ext=c 6326ac_cpp='$CPP $CPPFLAGS' 6327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6329ac_compiler_gnu=$ac_cv_c_compiler_gnu 6330if test -n "$ac_tool_prefix"; then 6331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6332set dummy ${ac_tool_prefix}gcc; ac_word=$2 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6334printf %s "checking for $ac_word... " >&6; } 6335if test ${ac_cv_prog_CC+y} 6336then : 6337 printf %s "(cached) " >&6 6338else $as_nop 6339 if test -n "$CC"; then 6340 ac_cv_prog_CC="$CC" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 case $as_dir in #((( 6347 '') as_dir=./ ;; 6348 */) ;; 6349 *) as_dir=$as_dir/ ;; 6350 esac 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363CC=$ac_cv_prog_CC 6364if test -n "$CC"; then 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6366printf "%s\n" "$CC" >&6; } 6367else 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369printf "%s\n" "no" >&6; } 6370fi 6371 6372 6373fi 6374if test -z "$ac_cv_prog_CC"; then 6375 ac_ct_CC=$CC 6376 # Extract the first word of "gcc", so it can be a program name with args. 6377set dummy gcc; ac_word=$2 6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379printf %s "checking for $ac_word... " >&6; } 6380if test ${ac_cv_prog_ac_ct_CC+y} 6381then : 6382 printf %s "(cached) " >&6 6383else $as_nop 6384 if test -n "$ac_ct_CC"; then 6385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 case $as_dir in #((( 6392 '') as_dir=./ ;; 6393 */) ;; 6394 *) as_dir=$as_dir/ ;; 6395 esac 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_ac_ct_CC="gcc" 6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408ac_ct_CC=$ac_cv_prog_ac_ct_CC 6409if test -n "$ac_ct_CC"; then 6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6411printf "%s\n" "$ac_ct_CC" >&6; } 6412else 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414printf "%s\n" "no" >&6; } 6415fi 6416 6417 if test "x$ac_ct_CC" = x; then 6418 CC="" 6419 else 6420 case $cross_compiling:$ac_tool_warned in 6421yes:) 6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6423printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6424ac_tool_warned=yes ;; 6425esac 6426 CC=$ac_ct_CC 6427 fi 6428else 6429 CC="$ac_cv_prog_CC" 6430fi 6431 6432if test -z "$CC"; then 6433 if test -n "$ac_tool_prefix"; then 6434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6435set dummy ${ac_tool_prefix}cc; ac_word=$2 6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6437printf %s "checking for $ac_word... " >&6; } 6438if test ${ac_cv_prog_CC+y} 6439then : 6440 printf %s "(cached) " >&6 6441else $as_nop 6442 if test -n "$CC"; then 6443 ac_cv_prog_CC="$CC" # Let the user override the test. 6444else 6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6446for as_dir in $PATH 6447do 6448 IFS=$as_save_IFS 6449 case $as_dir in #((( 6450 '') as_dir=./ ;; 6451 */) ;; 6452 *) as_dir=$as_dir/ ;; 6453 esac 6454 for ac_exec_ext in '' $ac_executable_extensions; do 6455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6456 ac_cv_prog_CC="${ac_tool_prefix}cc" 6457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6458 break 2 6459 fi 6460done 6461 done 6462IFS=$as_save_IFS 6463 6464fi 6465fi 6466CC=$ac_cv_prog_CC 6467if test -n "$CC"; then 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6469printf "%s\n" "$CC" >&6; } 6470else 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6472printf "%s\n" "no" >&6; } 6473fi 6474 6475 6476 fi 6477fi 6478if test -z "$CC"; then 6479 # Extract the first word of "cc", so it can be a program name with args. 6480set dummy cc; ac_word=$2 6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482printf %s "checking for $ac_word... " >&6; } 6483if test ${ac_cv_prog_CC+y} 6484then : 6485 printf %s "(cached) " >&6 6486else $as_nop 6487 if test -n "$CC"; then 6488 ac_cv_prog_CC="$CC" # Let the user override the test. 6489else 6490 ac_prog_rejected=no 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 case $as_dir in #((( 6496 '') as_dir=./ ;; 6497 */) ;; 6498 *) as_dir=$as_dir/ ;; 6499 esac 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6502 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6503 ac_prog_rejected=yes 6504 continue 6505 fi 6506 ac_cv_prog_CC="cc" 6507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511 done 6512IFS=$as_save_IFS 6513 6514if test $ac_prog_rejected = yes; then 6515 # We found a bogon in the path, so make sure we never use it. 6516 set dummy $ac_cv_prog_CC 6517 shift 6518 if test $# != 0; then 6519 # We chose a different compiler from the bogus one. 6520 # However, it has the same basename, so the bogon will be chosen 6521 # first if we set CC to just the basename; use the full file name. 6522 shift 6523 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 6524 fi 6525fi 6526fi 6527fi 6528CC=$ac_cv_prog_CC 6529if test -n "$CC"; then 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6531printf "%s\n" "$CC" >&6; } 6532else 6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6534printf "%s\n" "no" >&6; } 6535fi 6536 6537 6538fi 6539if test -z "$CC"; then 6540 if test -n "$ac_tool_prefix"; then 6541 for ac_prog in cl.exe 6542 do 6543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546printf %s "checking for $ac_word... " >&6; } 6547if test ${ac_cv_prog_CC+y} 6548then : 6549 printf %s "(cached) " >&6 6550else $as_nop 6551 if test -n "$CC"; then 6552 ac_cv_prog_CC="$CC" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 case $as_dir in #((( 6559 '') as_dir=./ ;; 6560 */) ;; 6561 *) as_dir=$as_dir/ ;; 6562 esac 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575CC=$ac_cv_prog_CC 6576if test -n "$CC"; then 6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6578printf "%s\n" "$CC" >&6; } 6579else 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581printf "%s\n" "no" >&6; } 6582fi 6583 6584 6585 test -n "$CC" && break 6586 done 6587fi 6588if test -z "$CC"; then 6589 ac_ct_CC=$CC 6590 for ac_prog in cl.exe 6591do 6592 # Extract the first word of "$ac_prog", so it can be a program name with args. 6593set dummy $ac_prog; ac_word=$2 6594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595printf %s "checking for $ac_word... " >&6; } 6596if test ${ac_cv_prog_ac_ct_CC+y} 6597then : 6598 printf %s "(cached) " >&6 6599else $as_nop 6600 if test -n "$ac_ct_CC"; then 6601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6602else 6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6604for as_dir in $PATH 6605do 6606 IFS=$as_save_IFS 6607 case $as_dir in #((( 6608 '') as_dir=./ ;; 6609 */) ;; 6610 *) as_dir=$as_dir/ ;; 6611 esac 6612 for ac_exec_ext in '' $ac_executable_extensions; do 6613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6614 ac_cv_prog_ac_ct_CC="$ac_prog" 6615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6616 break 2 6617 fi 6618done 6619 done 6620IFS=$as_save_IFS 6621 6622fi 6623fi 6624ac_ct_CC=$ac_cv_prog_ac_ct_CC 6625if test -n "$ac_ct_CC"; then 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6627printf "%s\n" "$ac_ct_CC" >&6; } 6628else 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630printf "%s\n" "no" >&6; } 6631fi 6632 6633 6634 test -n "$ac_ct_CC" && break 6635done 6636 6637 if test "x$ac_ct_CC" = x; then 6638 CC="" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 CC=$ac_ct_CC 6647 fi 6648fi 6649 6650fi 6651if test -z "$CC"; then 6652 if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}clang; ac_word=$2 6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656printf %s "checking for $ac_word... " >&6; } 6657if test ${ac_cv_prog_CC+y} 6658then : 6659 printf %s "(cached) " >&6 6660else $as_nop 6661 if test -n "$CC"; then 6662 ac_cv_prog_CC="$CC" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 case $as_dir in #((( 6669 '') as_dir=./ ;; 6670 */) ;; 6671 *) as_dir=$as_dir/ ;; 6672 esac 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6675 ac_cv_prog_CC="${ac_tool_prefix}clang" 6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680 done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685CC=$ac_cv_prog_CC 6686if test -n "$CC"; then 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6688printf "%s\n" "$CC" >&6; } 6689else 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6691printf "%s\n" "no" >&6; } 6692fi 6693 6694 6695fi 6696if test -z "$ac_cv_prog_CC"; then 6697 ac_ct_CC=$CC 6698 # Extract the first word of "clang", so it can be a program name with args. 6699set dummy clang; ac_word=$2 6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6701printf %s "checking for $ac_word... " >&6; } 6702if test ${ac_cv_prog_ac_ct_CC+y} 6703then : 6704 printf %s "(cached) " >&6 6705else $as_nop 6706 if test -n "$ac_ct_CC"; then 6707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6708else 6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6710for as_dir in $PATH 6711do 6712 IFS=$as_save_IFS 6713 case $as_dir in #((( 6714 '') as_dir=./ ;; 6715 */) ;; 6716 *) as_dir=$as_dir/ ;; 6717 esac 6718 for ac_exec_ext in '' $ac_executable_extensions; do 6719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6720 ac_cv_prog_ac_ct_CC="clang" 6721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6722 break 2 6723 fi 6724done 6725 done 6726IFS=$as_save_IFS 6727 6728fi 6729fi 6730ac_ct_CC=$ac_cv_prog_ac_ct_CC 6731if test -n "$ac_ct_CC"; then 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6733printf "%s\n" "$ac_ct_CC" >&6; } 6734else 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6736printf "%s\n" "no" >&6; } 6737fi 6738 6739 if test "x$ac_ct_CC" = x; then 6740 CC="" 6741 else 6742 case $cross_compiling:$ac_tool_warned in 6743yes:) 6744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6745printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6746ac_tool_warned=yes ;; 6747esac 6748 CC=$ac_ct_CC 6749 fi 6750else 6751 CC="$ac_cv_prog_CC" 6752fi 6753 6754fi 6755 6756 6757test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6758printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6759as_fn_error $? "no acceptable C compiler found in \$PATH 6760See \`config.log' for more details" "$LINENO" 5; } 6761 6762# Provide some information about the compiler. 6763printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6764set X $ac_compile 6765ac_compiler=$2 6766for ac_option in --version -v -V -qversion -version; do 6767 { { ac_try="$ac_compiler $ac_option >&5" 6768case "(($ac_try" in 6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6770 *) ac_try_echo=$ac_try;; 6771esac 6772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6773printf "%s\n" "$ac_try_echo"; } >&5 6774 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6775 ac_status=$? 6776 if test -s conftest.err; then 6777 sed '10a\ 6778... rest of stderr output deleted ... 6779 10q' conftest.err >conftest.er1 6780 cat conftest.er1 >&5 6781 fi 6782 rm -f conftest.er1 conftest.err 6783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6784 test $ac_status = 0; } 6785done 6786 6787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 6788printf %s "checking whether the compiler supports GNU C... " >&6; } 6789if test ${ac_cv_c_compiler_gnu+y} 6790then : 6791 printf %s "(cached) " >&6 6792else $as_nop 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795 6796int 6797main (void) 6798{ 6799#ifndef __GNUC__ 6800 choke me 6801#endif 6802 6803 ; 6804 return 0; 6805} 6806_ACEOF 6807if ac_fn_c_try_compile "$LINENO" 6808then : 6809 ac_compiler_gnu=yes 6810else $as_nop 6811 ac_compiler_gnu=no 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6814ac_cv_c_compiler_gnu=$ac_compiler_gnu 6815 6816fi 6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6818printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 6819ac_compiler_gnu=$ac_cv_c_compiler_gnu 6820 6821if test $ac_compiler_gnu = yes; then 6822 GCC=yes 6823else 6824 GCC= 6825fi 6826ac_test_CFLAGS=${CFLAGS+y} 6827ac_save_CFLAGS=$CFLAGS 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6829printf %s "checking whether $CC accepts -g... " >&6; } 6830if test ${ac_cv_prog_cc_g+y} 6831then : 6832 printf %s "(cached) " >&6 6833else $as_nop 6834 ac_save_c_werror_flag=$ac_c_werror_flag 6835 ac_c_werror_flag=yes 6836 ac_cv_prog_cc_g=no 6837 CFLAGS="-g" 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840 6841int 6842main (void) 6843{ 6844 6845 ; 6846 return 0; 6847} 6848_ACEOF 6849if ac_fn_c_try_compile "$LINENO" 6850then : 6851 ac_cv_prog_cc_g=yes 6852else $as_nop 6853 CFLAGS="" 6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856 6857int 6858main (void) 6859{ 6860 6861 ; 6862 return 0; 6863} 6864_ACEOF 6865if ac_fn_c_try_compile "$LINENO" 6866then : 6867 6868else $as_nop 6869 ac_c_werror_flag=$ac_save_c_werror_flag 6870 CFLAGS="-g" 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873 6874int 6875main (void) 6876{ 6877 6878 ; 6879 return 0; 6880} 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO" 6883then : 6884 ac_cv_prog_cc_g=yes 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6887fi 6888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6891 ac_c_werror_flag=$ac_save_c_werror_flag 6892fi 6893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6894printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 6895if test $ac_test_CFLAGS; then 6896 CFLAGS=$ac_save_CFLAGS 6897elif test $ac_cv_prog_cc_g = yes; then 6898 if test "$GCC" = yes; then 6899 CFLAGS="-g -O2" 6900 else 6901 CFLAGS="-g" 6902 fi 6903else 6904 if test "$GCC" = yes; then 6905 CFLAGS="-O2" 6906 else 6907 CFLAGS= 6908 fi 6909fi 6910ac_prog_cc_stdc=no 6911if test x$ac_prog_cc_stdc = xno 6912then : 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 6914printf %s "checking for $CC option to enable C11 features... " >&6; } 6915if test ${ac_cv_prog_cc_c11+y} 6916then : 6917 printf %s "(cached) " >&6 6918else $as_nop 6919 ac_cv_prog_cc_c11=no 6920ac_save_CC=$CC 6921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6922/* end confdefs.h. */ 6923$ac_c_conftest_c11_program 6924_ACEOF 6925for ac_arg in '' -std=gnu11 6926do 6927 CC="$ac_save_CC $ac_arg" 6928 if ac_fn_c_try_compile "$LINENO" 6929then : 6930 ac_cv_prog_cc_c11=$ac_arg 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.beam 6933 test "x$ac_cv_prog_cc_c11" != "xno" && break 6934done 6935rm -f conftest.$ac_ext 6936CC=$ac_save_CC 6937fi 6938 6939if test "x$ac_cv_prog_cc_c11" = xno 6940then : 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6942printf "%s\n" "unsupported" >&6; } 6943else $as_nop 6944 if test "x$ac_cv_prog_cc_c11" = x 6945then : 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6947printf "%s\n" "none needed" >&6; } 6948else $as_nop 6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 6950printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 6951 CC="$CC $ac_cv_prog_cc_c11" 6952fi 6953 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 6954 ac_prog_cc_stdc=c11 6955fi 6956fi 6957if test x$ac_prog_cc_stdc = xno 6958then : 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 6960printf %s "checking for $CC option to enable C99 features... " >&6; } 6961if test ${ac_cv_prog_cc_c99+y} 6962then : 6963 printf %s "(cached) " >&6 6964else $as_nop 6965 ac_cv_prog_cc_c99=no 6966ac_save_CC=$CC 6967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969$ac_c_conftest_c99_program 6970_ACEOF 6971for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 6972do 6973 CC="$ac_save_CC $ac_arg" 6974 if ac_fn_c_try_compile "$LINENO" 6975then : 6976 ac_cv_prog_cc_c99=$ac_arg 6977fi 6978rm -f core conftest.err conftest.$ac_objext conftest.beam 6979 test "x$ac_cv_prog_cc_c99" != "xno" && break 6980done 6981rm -f conftest.$ac_ext 6982CC=$ac_save_CC 6983fi 6984 6985if test "x$ac_cv_prog_cc_c99" = xno 6986then : 6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6988printf "%s\n" "unsupported" >&6; } 6989else $as_nop 6990 if test "x$ac_cv_prog_cc_c99" = x 6991then : 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6993printf "%s\n" "none needed" >&6; } 6994else $as_nop 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6996printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 6997 CC="$CC $ac_cv_prog_cc_c99" 6998fi 6999 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7000 ac_prog_cc_stdc=c99 7001fi 7002fi 7003if test x$ac_prog_cc_stdc = xno 7004then : 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 7006printf %s "checking for $CC option to enable C89 features... " >&6; } 7007if test ${ac_cv_prog_cc_c89+y} 7008then : 7009 printf %s "(cached) " >&6 7010else $as_nop 7011 ac_cv_prog_cc_c89=no 7012ac_save_CC=$CC 7013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015$ac_c_conftest_c89_program 7016_ACEOF 7017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7018do 7019 CC="$ac_save_CC $ac_arg" 7020 if ac_fn_c_try_compile "$LINENO" 7021then : 7022 ac_cv_prog_cc_c89=$ac_arg 7023fi 7024rm -f core conftest.err conftest.$ac_objext conftest.beam 7025 test "x$ac_cv_prog_cc_c89" != "xno" && break 7026done 7027rm -f conftest.$ac_ext 7028CC=$ac_save_CC 7029fi 7030 7031if test "x$ac_cv_prog_cc_c89" = xno 7032then : 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7034printf "%s\n" "unsupported" >&6; } 7035else $as_nop 7036 if test "x$ac_cv_prog_cc_c89" = x 7037then : 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7039printf "%s\n" "none needed" >&6; } 7040else $as_nop 7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7042printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 7043 CC="$CC $ac_cv_prog_cc_c89" 7044fi 7045 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7046 ac_prog_cc_stdc=c89 7047fi 7048fi 7049 7050ac_ext=c 7051ac_cpp='$CPP $CPPFLAGS' 7052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7054ac_compiler_gnu=$ac_cv_c_compiler_gnu 7055 7056 7057 ac_ext=c 7058ac_cpp='$CPP $CPPFLAGS' 7059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7061ac_compiler_gnu=$ac_cv_c_compiler_gnu 7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 7063printf %s "checking whether $CC understands -c and -o together... " >&6; } 7064if test ${am_cv_prog_cc_c_o+y} 7065then : 7066 printf %s "(cached) " >&6 7067else $as_nop 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070 7071int 7072main (void) 7073{ 7074 7075 ; 7076 return 0; 7077} 7078_ACEOF 7079 # Make sure it works both with $CC and with simple cc. 7080 # Following AC_PROG_CC_C_O, we do the test twice because some 7081 # compilers refuse to overwrite an existing .o file with -o, 7082 # though they will create one. 7083 am_cv_prog_cc_c_o=yes 7084 for am_i in 1 2; do 7085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 7086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 7087 ac_status=$? 7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7089 (exit $ac_status); } \ 7090 && test -f conftest2.$ac_objext; then 7091 : OK 7092 else 7093 am_cv_prog_cc_c_o=no 7094 break 7095 fi 7096 done 7097 rm -f core conftest* 7098 unset am_i 7099fi 7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 7101printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 7102if test "$am_cv_prog_cc_c_o" != yes; then 7103 # Losing compiler, so override with the script. 7104 # FIXME: It is wrong to rewrite CC. 7105 # But if we don't then we get into trouble of one sort or another. 7106 # A longer-term fix would be to have automake use am__CC in this case, 7107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7108 CC="$am_aux_dir/compile $CC" 7109fi 7110ac_ext=c 7111ac_cpp='$CPP $CPPFLAGS' 7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7114ac_compiler_gnu=$ac_cv_c_compiler_gnu 7115 7116 7117 7118 7119 7120 7121 7122 7123ac_ext=cpp 7124ac_cpp='$CXXCPP $CPPFLAGS' 7125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7128if test -z "$CXX"; then 7129 if test -n "$CCC"; then 7130 CXX=$CCC 7131 else 7132 if test -n "$ac_tool_prefix"; then 7133 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 7134 do 7135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7136set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7138printf %s "checking for $ac_word... " >&6; } 7139if test ${ac_cv_prog_CXX+y} 7140then : 7141 printf %s "(cached) " >&6 7142else $as_nop 7143 if test -n "$CXX"; then 7144 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7145else 7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7147for as_dir in $PATH 7148do 7149 IFS=$as_save_IFS 7150 case $as_dir in #((( 7151 '') as_dir=./ ;; 7152 */) ;; 7153 *) as_dir=$as_dir/ ;; 7154 esac 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7157 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162 done 7163IFS=$as_save_IFS 7164 7165fi 7166fi 7167CXX=$ac_cv_prog_CXX 7168if test -n "$CXX"; then 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7170printf "%s\n" "$CXX" >&6; } 7171else 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173printf "%s\n" "no" >&6; } 7174fi 7175 7176 7177 test -n "$CXX" && break 7178 done 7179fi 7180if test -z "$CXX"; then 7181 ac_ct_CXX=$CXX 7182 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 7183do 7184 # Extract the first word of "$ac_prog", so it can be a program name with args. 7185set dummy $ac_prog; ac_word=$2 7186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187printf %s "checking for $ac_word... " >&6; } 7188if test ${ac_cv_prog_ac_ct_CXX+y} 7189then : 7190 printf %s "(cached) " >&6 7191else $as_nop 7192 if test -n "$ac_ct_CXX"; then 7193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7194else 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH 7197do 7198 IFS=$as_save_IFS 7199 case $as_dir in #((( 7200 '') as_dir=./ ;; 7201 */) ;; 7202 *) as_dir=$as_dir/ ;; 7203 esac 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7206 ac_cv_prog_ac_ct_CXX="$ac_prog" 7207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214fi 7215fi 7216ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7217if test -n "$ac_ct_CXX"; then 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7219printf "%s\n" "$ac_ct_CXX" >&6; } 7220else 7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7222printf "%s\n" "no" >&6; } 7223fi 7224 7225 7226 test -n "$ac_ct_CXX" && break 7227done 7228 7229 if test "x$ac_ct_CXX" = x; then 7230 CXX="g++" 7231 else 7232 case $cross_compiling:$ac_tool_warned in 7233yes:) 7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7236ac_tool_warned=yes ;; 7237esac 7238 CXX=$ac_ct_CXX 7239 fi 7240fi 7241 7242 fi 7243fi 7244# Provide some information about the compiler. 7245printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7246set X $ac_compile 7247ac_compiler=$2 7248for ac_option in --version -v -V -qversion; do 7249 { { ac_try="$ac_compiler $ac_option >&5" 7250case "(($ac_try" in 7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7252 *) ac_try_echo=$ac_try;; 7253esac 7254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7255printf "%s\n" "$ac_try_echo"; } >&5 7256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7257 ac_status=$? 7258 if test -s conftest.err; then 7259 sed '10a\ 7260... rest of stderr output deleted ... 7261 10q' conftest.err >conftest.er1 7262 cat conftest.er1 >&5 7263 fi 7264 rm -f conftest.er1 conftest.err 7265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7266 test $ac_status = 0; } 7267done 7268 7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 7270printf %s "checking whether the compiler supports GNU C++... " >&6; } 7271if test ${ac_cv_cxx_compiler_gnu+y} 7272then : 7273 printf %s "(cached) " >&6 7274else $as_nop 7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277 7278int 7279main (void) 7280{ 7281#ifndef __GNUC__ 7282 choke me 7283#endif 7284 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289if ac_fn_cxx_try_compile "$LINENO" 7290then : 7291 ac_compiler_gnu=yes 7292else $as_nop 7293 ac_compiler_gnu=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7296ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7297 7298fi 7299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7300printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 7301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7302 7303if test $ac_compiler_gnu = yes; then 7304 GXX=yes 7305else 7306 GXX= 7307fi 7308ac_test_CXXFLAGS=${CXXFLAGS+y} 7309ac_save_CXXFLAGS=$CXXFLAGS 7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7311printf %s "checking whether $CXX accepts -g... " >&6; } 7312if test ${ac_cv_prog_cxx_g+y} 7313then : 7314 printf %s "(cached) " >&6 7315else $as_nop 7316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7317 ac_cxx_werror_flag=yes 7318 ac_cv_prog_cxx_g=no 7319 CXXFLAGS="-g" 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322 7323int 7324main (void) 7325{ 7326 7327 ; 7328 return 0; 7329} 7330_ACEOF 7331if ac_fn_cxx_try_compile "$LINENO" 7332then : 7333 ac_cv_prog_cxx_g=yes 7334else $as_nop 7335 CXXFLAGS="" 7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7337/* end confdefs.h. */ 7338 7339int 7340main (void) 7341{ 7342 7343 ; 7344 return 0; 7345} 7346_ACEOF 7347if ac_fn_cxx_try_compile "$LINENO" 7348then : 7349 7350else $as_nop 7351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7352 CXXFLAGS="-g" 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355 7356int 7357main (void) 7358{ 7359 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364if ac_fn_cxx_try_compile "$LINENO" 7365then : 7366 ac_cv_prog_cxx_g=yes 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7369fi 7370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7371fi 7372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7374fi 7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7376printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 7377if test $ac_test_CXXFLAGS; then 7378 CXXFLAGS=$ac_save_CXXFLAGS 7379elif test $ac_cv_prog_cxx_g = yes; then 7380 if test "$GXX" = yes; then 7381 CXXFLAGS="-g -O2" 7382 else 7383 CXXFLAGS="-g" 7384 fi 7385else 7386 if test "$GXX" = yes; then 7387 CXXFLAGS="-O2" 7388 else 7389 CXXFLAGS= 7390 fi 7391fi 7392ac_prog_cxx_stdcxx=no 7393if test x$ac_prog_cxx_stdcxx = xno 7394then : 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 7396printf %s "checking for $CXX option to enable C++11 features... " >&6; } 7397if test ${ac_cv_prog_cxx_11+y} 7398then : 7399 printf %s "(cached) " >&6 7400else $as_nop 7401 ac_cv_prog_cxx_11=no 7402ac_save_CXX=$CXX 7403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405$ac_cxx_conftest_cxx11_program 7406_ACEOF 7407for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 7408do 7409 CXX="$ac_save_CXX $ac_arg" 7410 if ac_fn_cxx_try_compile "$LINENO" 7411then : 7412 ac_cv_prog_cxx_cxx11=$ac_arg 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.beam 7415 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 7416done 7417rm -f conftest.$ac_ext 7418CXX=$ac_save_CXX 7419fi 7420 7421if test "x$ac_cv_prog_cxx_cxx11" = xno 7422then : 7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7424printf "%s\n" "unsupported" >&6; } 7425else $as_nop 7426 if test "x$ac_cv_prog_cxx_cxx11" = x 7427then : 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7429printf "%s\n" "none needed" >&6; } 7430else $as_nop 7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 7432printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 7433 CXX="$CXX $ac_cv_prog_cxx_cxx11" 7434fi 7435 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 7436 ac_prog_cxx_stdcxx=cxx11 7437fi 7438fi 7439if test x$ac_prog_cxx_stdcxx = xno 7440then : 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 7442printf %s "checking for $CXX option to enable C++98 features... " >&6; } 7443if test ${ac_cv_prog_cxx_98+y} 7444then : 7445 printf %s "(cached) " >&6 7446else $as_nop 7447 ac_cv_prog_cxx_98=no 7448ac_save_CXX=$CXX 7449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451$ac_cxx_conftest_cxx98_program 7452_ACEOF 7453for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 7454do 7455 CXX="$ac_save_CXX $ac_arg" 7456 if ac_fn_cxx_try_compile "$LINENO" 7457then : 7458 ac_cv_prog_cxx_cxx98=$ac_arg 7459fi 7460rm -f core conftest.err conftest.$ac_objext conftest.beam 7461 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 7462done 7463rm -f conftest.$ac_ext 7464CXX=$ac_save_CXX 7465fi 7466 7467if test "x$ac_cv_prog_cxx_cxx98" = xno 7468then : 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7470printf "%s\n" "unsupported" >&6; } 7471else $as_nop 7472 if test "x$ac_cv_prog_cxx_cxx98" = x 7473then : 7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7475printf "%s\n" "none needed" >&6; } 7476else $as_nop 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 7478printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 7479 CXX="$CXX $ac_cv_prog_cxx_cxx98" 7480fi 7481 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 7482 ac_prog_cxx_stdcxx=cxx98 7483fi 7484fi 7485 7486ac_ext=c 7487ac_cpp='$CPP $CPPFLAGS' 7488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7490ac_compiler_gnu=$ac_cv_c_compiler_gnu 7491 7492depcc="$CXX" am_compiler_list= 7493 7494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7495printf %s "checking dependency style of $depcc... " >&6; } 7496if test ${am_cv_CXX_dependencies_compiler_type+y} 7497then : 7498 printf %s "(cached) " >&6 7499else $as_nop 7500 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7501 # We make a subdir and do the tests there. Otherwise we can end up 7502 # making bogus files that we don't know about and never remove. For 7503 # instance it was reported that on HP-UX the gcc test will end up 7504 # making a dummy file named 'D' -- because '-MD' means "put the output 7505 # in D". 7506 rm -rf conftest.dir 7507 mkdir conftest.dir 7508 # Copy depcomp to subdir because otherwise we won't find it if we're 7509 # using a relative directory. 7510 cp "$am_depcomp" conftest.dir 7511 cd conftest.dir 7512 # We will build objects and dependencies in a subdirectory because 7513 # it helps to detect inapplicable dependency modes. For instance 7514 # both Tru64's cc and ICC support -MD to output dependencies as a 7515 # side effect of compilation, but ICC will put the dependencies in 7516 # the current directory while Tru64 will put them in the object 7517 # directory. 7518 mkdir sub 7519 7520 am_cv_CXX_dependencies_compiler_type=none 7521 if test "$am_compiler_list" = ""; then 7522 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7523 fi 7524 am__universal=false 7525 case " $depcc " in #( 7526 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7527 esac 7528 7529 for depmode in $am_compiler_list; do 7530 # Setup a source with many dependencies, because some compilers 7531 # like to wrap large dependency lists on column 80 (with \), and 7532 # we should not choose a depcomp mode which is confused by this. 7533 # 7534 # We need to recreate these files for each test, as the compiler may 7535 # overwrite some of them when testing with obscure command lines. 7536 # This happens at least with the AIX C compiler. 7537 : > sub/conftest.c 7538 for i in 1 2 3 4 5 6; do 7539 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7540 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7541 # Solaris 10 /bin/sh. 7542 echo '/* dummy */' > sub/conftst$i.h 7543 done 7544 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7545 7546 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7547 # mode. It turns out that the SunPro C++ compiler does not properly 7548 # handle '-M -o', and we need to detect this. Also, some Intel 7549 # versions had trouble with output in subdirs. 7550 am__obj=sub/conftest.${OBJEXT-o} 7551 am__minus_obj="-o $am__obj" 7552 case $depmode in 7553 gcc) 7554 # This depmode causes a compiler race in universal mode. 7555 test "$am__universal" = false || continue 7556 ;; 7557 nosideeffect) 7558 # After this tag, mechanisms are not by side-effect, so they'll 7559 # only be used when explicitly requested. 7560 if test "x$enable_dependency_tracking" = xyes; then 7561 continue 7562 else 7563 break 7564 fi 7565 ;; 7566 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7567 # This compiler won't grok '-c -o', but also, the minuso test has 7568 # not run yet. These depmodes are late enough in the game, and 7569 # so weak that their functioning should not be impacted. 7570 am__obj=conftest.${OBJEXT-o} 7571 am__minus_obj= 7572 ;; 7573 none) break ;; 7574 esac 7575 if depmode=$depmode \ 7576 source=sub/conftest.c object=$am__obj \ 7577 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7578 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7579 >/dev/null 2>conftest.err && 7580 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7581 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7582 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7583 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7584 # icc doesn't choke on unknown options, it will just issue warnings 7585 # or remarks (even with -Werror). So we grep stderr for any message 7586 # that says an option was ignored or not supported. 7587 # When given -MP, icc 7.0 and 7.1 complain thusly: 7588 # icc: Command line warning: ignoring option '-M'; no argument required 7589 # The diagnosis changed in icc 8.0: 7590 # icc: Command line remark: option '-MP' not supported 7591 if (grep 'ignoring option' conftest.err || 7592 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7593 am_cv_CXX_dependencies_compiler_type=$depmode 7594 break 7595 fi 7596 fi 7597 done 7598 7599 cd .. 7600 rm -rf conftest.dir 7601else 7602 am_cv_CXX_dependencies_compiler_type=none 7603fi 7604 7605fi 7606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7607printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 7608CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7609 7610 if 7611 test "x$enable_dependency_tracking" != xno \ 7612 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7613 am__fastdepCXX_TRUE= 7614 am__fastdepCXX_FALSE='#' 7615else 7616 am__fastdepCXX_TRUE='#' 7617 am__fastdepCXX_FALSE= 7618fi 7619 7620 7621 7622for ac_prog in flex lex 7623do 7624 # Extract the first word of "$ac_prog", so it can be a program name with args. 7625set dummy $ac_prog; ac_word=$2 7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627printf %s "checking for $ac_word... " >&6; } 7628if test ${ac_cv_prog_LEX+y} 7629then : 7630 printf %s "(cached) " >&6 7631else $as_nop 7632 if test -n "$LEX"; then 7633 ac_cv_prog_LEX="$LEX" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 case $as_dir in #((( 7640 '') as_dir=./ ;; 7641 */) ;; 7642 *) as_dir=$as_dir/ ;; 7643 esac 7644 for ac_exec_ext in '' $ac_executable_extensions; do 7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7646 ac_cv_prog_LEX="$ac_prog" 7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7648 break 2 7649 fi 7650done 7651 done 7652IFS=$as_save_IFS 7653 7654fi 7655fi 7656LEX=$ac_cv_prog_LEX 7657if test -n "$LEX"; then 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 7659printf "%s\n" "$LEX" >&6; } 7660else 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662printf "%s\n" "no" >&6; } 7663fi 7664 7665 7666 test -n "$LEX" && break 7667done 7668test -n "$LEX" || LEX=":" 7669 7670 if test "x$LEX" != "x:"; then 7671 cat >conftest.l <<_ACEOF 7672%{ 7673#ifdef __cplusplus 7674extern "C" 7675#endif 7676int yywrap(void); 7677%} 7678%% 7679a { ECHO; } 7680b { REJECT; } 7681c { yymore (); } 7682d { yyless (1); } 7683e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 7684#ifdef __cplusplus 7685 yyless ((yyinput () != 0)); 7686#else 7687 yyless ((input () != 0)); 7688#endif 7689 } 7690f { unput (yytext[0]); } 7691. { BEGIN INITIAL; } 7692%% 7693#ifdef YYTEXT_POINTER 7694extern char *yytext; 7695#endif 7696int 7697yywrap (void) 7698{ 7699 return 1; 7700} 7701int 7702main (void) 7703{ 7704 return ! yylex (); 7705} 7706_ACEOF 7707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 7708printf %s "checking for lex output file root... " >&6; } 7709if test ${ac_cv_prog_lex_root+y} 7710then : 7711 printf %s "(cached) " >&6 7712else $as_nop 7713 7714ac_cv_prog_lex_root=unknown 7715{ { ac_try="$LEX conftest.l" 7716case "(($ac_try" in 7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7718 *) ac_try_echo=$ac_try;; 7719esac 7720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7721printf "%s\n" "$ac_try_echo"; } >&5 7722 (eval "$LEX conftest.l") 2>&5 7723 ac_status=$? 7724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7725 test $ac_status = 0; } && 7726if test -f lex.yy.c; then 7727 ac_cv_prog_lex_root=lex.yy 7728elif test -f lexyy.c; then 7729 ac_cv_prog_lex_root=lexyy 7730fi 7731fi 7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 7733printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 7734if test "$ac_cv_prog_lex_root" = unknown 7735then : 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 7737printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 7738 LEX=: LEXLIB= 7739fi 7740LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 7741 7742if test ${LEXLIB+y} 7743then : 7744 7745else $as_nop 7746 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 7748printf %s "checking for lex library... " >&6; } 7749if test ${ac_cv_lib_lex+y} 7750then : 7751 printf %s "(cached) " >&6 7752else $as_nop 7753 7754 ac_save_LIBS="$LIBS" 7755 ac_found=false 7756 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 7757 case $ac_cv_lib_lex in #( 7758 'none needed') : 7759 ;; #( 7760 'not found') : 7761 break ;; #( 7762 *) : 7763 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 7764 *) : 7765 ;; 7766esac 7767 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769/* end confdefs.h. */ 7770`cat $LEX_OUTPUT_ROOT.c` 7771_ACEOF 7772if ac_fn_c_try_link "$LINENO" 7773then : 7774 ac_found=: 7775fi 7776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7777 conftest$ac_exeext conftest.$ac_ext 7778 if $ac_found; then 7779 break 7780 fi 7781 done 7782 LIBS="$ac_save_LIBS" 7783 7784fi 7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 7786printf "%s\n" "$ac_cv_lib_lex" >&6; } 7787 if test "$ac_cv_lib_lex" = 'not found' 7788then : 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 7790printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 7791 LEX=: LEXLIB= 7792elif test "$ac_cv_lib_lex" = 'none needed' 7793then : 7794 LEXLIB='' 7795else $as_nop 7796 LEXLIB=$ac_cv_lib_lex 7797fi 7798 7799fi 7800 7801 7802if test "$LEX" != : 7803then : 7804 7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 7806printf %s "checking whether yytext is a pointer... " >&6; } 7807if test ${ac_cv_prog_lex_yytext_pointer+y} 7808then : 7809 printf %s "(cached) " >&6 7810else $as_nop 7811 # POSIX says lex can declare yytext either as a pointer or an array; the 7812# default is implementation-dependent. Figure out which it is, since 7813# not all implementations provide the %pointer and %array declarations. 7814ac_cv_prog_lex_yytext_pointer=no 7815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817 7818 #define YYTEXT_POINTER 1 7819`cat $LEX_OUTPUT_ROOT.c` 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO" 7822then : 7823 ac_cv_prog_lex_yytext_pointer=yes 7824fi 7825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7826 7827fi 7828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 7829printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 7830if test $ac_cv_prog_lex_yytext_pointer = yes; then 7831 7832printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 7833 7834fi 7835 7836fi 7837rm -f conftest.l $LEX_OUTPUT_ROOT.c 7838 7839fi 7840# LT_INIT([disable-shared]) 7841 7842# Must use C++17 mode. 7843 7844# =========================================================================== 7845# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html 7846# =========================================================================== 7847# 7848# SYNOPSIS 7849# 7850# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) 7851# 7852# DESCRIPTION 7853# 7854# Check for baseline language coverage in the compiler for the specified 7855# version of the C++ standard. If necessary, add switches to CXX and 7856# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) 7857# or '14' (for the C++14 standard). 7858# 7859# The second argument, if specified, indicates whether you insist on an 7860# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 7861# -std=c++11). If neither is specified, you get whatever works, with 7862# preference for no added switch, and then for an extended mode. 7863# 7864# The third argument, if specified 'mandatory' or if left unspecified, 7865# indicates that baseline support for the specified C++ standard is 7866# required and that the macro should error out if no mode with that 7867# support is found. If specified 'optional', then configuration proceeds 7868# regardless, after defining HAVE_CXX${VERSION} if and only if a 7869# supporting mode is found. 7870# 7871# LICENSE 7872# 7873# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> 7874# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> 7875# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> 7876# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> 7877# Copyright (c) 2015 Paul Norman <penorman@mac.com> 7878# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> 7879# Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com> 7880# Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com> 7881# Copyright (c) 2020 Jason Merrill <jason@redhat.com> 7882# 7883# Copying and distribution of this file, with or without modification, are 7884# permitted in any medium without royalty provided the copyright notice 7885# and this notice are preserved. This file is offered as-is, without any 7886# warranty. 7887 7888#serial 12 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914ac_ext=cpp 7915ac_cpp='$CXXCPP $CPPFLAGS' 7916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7919 7920 7921 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true 7922 ac_ext=cpp 7923ac_cpp='$CXXCPP $CPPFLAGS' 7924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7927 ac_success=no 7928 7929 7930 7931 7932 7933 if test x$ac_success = xno; then 7934 for alternative in ${ax_cxx_compile_alternatives}; do 7935 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 7936 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 7938printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } 7939if eval test \${$cachevar+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 ac_save_CXX="$CXX" 7944 CXX="$CXX $switch" 7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7946/* end confdefs.h. */ 7947 7948 7949// If the compiler admits that it is not ready for C++11, why torture it? 7950// Hopefully, this will speed up the test. 7951 7952#ifndef __cplusplus 7953 7954#error "This is not a C++ compiler" 7955 7956#elif __cplusplus < 201103L 7957 7958#error "This is not a C++11 compiler" 7959 7960#else 7961 7962namespace cxx11 7963{ 7964 7965 namespace test_static_assert 7966 { 7967 7968 template <typename T> 7969 struct check 7970 { 7971 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7972 }; 7973 7974 } 7975 7976 namespace test_final_override 7977 { 7978 7979 struct Base 7980 { 7981 virtual ~Base() {} 7982 virtual void f() {} 7983 }; 7984 7985 struct Derived : public Base 7986 { 7987 virtual ~Derived() override {} 7988 virtual void f() override {} 7989 }; 7990 7991 } 7992 7993 namespace test_double_right_angle_brackets 7994 { 7995 7996 template < typename T > 7997 struct check {}; 7998 7999 typedef check<void> single_type; 8000 typedef check<check<void>> double_type; 8001 typedef check<check<check<void>>> triple_type; 8002 typedef check<check<check<check<void>>>> quadruple_type; 8003 8004 } 8005 8006 namespace test_decltype 8007 { 8008 8009 int 8010 f() 8011 { 8012 int a = 1; 8013 decltype(a) b = 2; 8014 return a + b; 8015 } 8016 8017 } 8018 8019 namespace test_type_deduction 8020 { 8021 8022 template < typename T1, typename T2 > 8023 struct is_same 8024 { 8025 static const bool value = false; 8026 }; 8027 8028 template < typename T > 8029 struct is_same<T, T> 8030 { 8031 static const bool value = true; 8032 }; 8033 8034 template < typename T1, typename T2 > 8035 auto 8036 add(T1 a1, T2 a2) -> decltype(a1 + a2) 8037 { 8038 return a1 + a2; 8039 } 8040 8041 int 8042 test(const int c, volatile int v) 8043 { 8044 static_assert(is_same<int, decltype(0)>::value == true, ""); 8045 static_assert(is_same<int, decltype(c)>::value == false, ""); 8046 static_assert(is_same<int, decltype(v)>::value == false, ""); 8047 auto ac = c; 8048 auto av = v; 8049 auto sumi = ac + av + 'x'; 8050 auto sumf = ac + av + 1.0; 8051 static_assert(is_same<int, decltype(ac)>::value == true, ""); 8052 static_assert(is_same<int, decltype(av)>::value == true, ""); 8053 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 8054 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 8055 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 8056 return (sumf > 0.0) ? sumi : add(c, v); 8057 } 8058 8059 } 8060 8061 namespace test_noexcept 8062 { 8063 8064 int f() { return 0; } 8065 int g() noexcept { return 0; } 8066 8067 static_assert(noexcept(f()) == false, ""); 8068 static_assert(noexcept(g()) == true, ""); 8069 8070 } 8071 8072 namespace test_constexpr 8073 { 8074 8075 template < typename CharT > 8076 unsigned long constexpr 8077 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 8078 { 8079 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 8080 } 8081 8082 template < typename CharT > 8083 unsigned long constexpr 8084 strlen_c(const CharT *const s) noexcept 8085 { 8086 return strlen_c_r(s, 0UL); 8087 } 8088 8089 static_assert(strlen_c("") == 0UL, ""); 8090 static_assert(strlen_c("1") == 1UL, ""); 8091 static_assert(strlen_c("example") == 7UL, ""); 8092 static_assert(strlen_c("another\0example") == 7UL, ""); 8093 8094 } 8095 8096 namespace test_rvalue_references 8097 { 8098 8099 template < int N > 8100 struct answer 8101 { 8102 static constexpr int value = N; 8103 }; 8104 8105 answer<1> f(int&) { return answer<1>(); } 8106 answer<2> f(const int&) { return answer<2>(); } 8107 answer<3> f(int&&) { return answer<3>(); } 8108 8109 void 8110 test() 8111 { 8112 int i = 0; 8113 const int c = 0; 8114 static_assert(decltype(f(i))::value == 1, ""); 8115 static_assert(decltype(f(c))::value == 2, ""); 8116 static_assert(decltype(f(0))::value == 3, ""); 8117 } 8118 8119 } 8120 8121 namespace test_uniform_initialization 8122 { 8123 8124 struct test 8125 { 8126 static const int zero {}; 8127 static const int one {1}; 8128 }; 8129 8130 static_assert(test::zero == 0, ""); 8131 static_assert(test::one == 1, ""); 8132 8133 } 8134 8135 namespace test_lambdas 8136 { 8137 8138 void 8139 test1() 8140 { 8141 auto lambda1 = [](){}; 8142 auto lambda2 = lambda1; 8143 lambda1(); 8144 lambda2(); 8145 } 8146 8147 int 8148 test2() 8149 { 8150 auto a = [](int i, int j){ return i + j; }(1, 2); 8151 auto b = []() -> int { return '0'; }(); 8152 auto c = [=](){ return a + b; }(); 8153 auto d = [&](){ return c; }(); 8154 auto e = [a, &b](int x) mutable { 8155 const auto identity = [](int y){ return y; }; 8156 for (auto i = 0; i < a; ++i) 8157 a += b--; 8158 return x + identity(a + b); 8159 }(0); 8160 return a + b + c + d + e; 8161 } 8162 8163 int 8164 test3() 8165 { 8166 const auto nullary = [](){ return 0; }; 8167 const auto unary = [](int x){ return x; }; 8168 using nullary_t = decltype(nullary); 8169 using unary_t = decltype(unary); 8170 const auto higher1st = [](nullary_t f){ return f(); }; 8171 const auto higher2nd = [unary](nullary_t f1){ 8172 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 8173 }; 8174 return higher1st(nullary) + higher2nd(nullary)(unary); 8175 } 8176 8177 } 8178 8179 namespace test_variadic_templates 8180 { 8181 8182 template <int...> 8183 struct sum; 8184 8185 template <int N0, int... N1toN> 8186 struct sum<N0, N1toN...> 8187 { 8188 static constexpr auto value = N0 + sum<N1toN...>::value; 8189 }; 8190 8191 template <> 8192 struct sum<> 8193 { 8194 static constexpr auto value = 0; 8195 }; 8196 8197 static_assert(sum<>::value == 0, ""); 8198 static_assert(sum<1>::value == 1, ""); 8199 static_assert(sum<23>::value == 23, ""); 8200 static_assert(sum<1, 2>::value == 3, ""); 8201 static_assert(sum<5, 5, 11>::value == 21, ""); 8202 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 8203 8204 } 8205 8206 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 8207 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 8208 // because of this. 8209 namespace test_template_alias_sfinae 8210 { 8211 8212 struct foo {}; 8213 8214 template<typename T> 8215 using member = typename T::member_type; 8216 8217 template<typename T> 8218 void func(...) {} 8219 8220 template<typename T> 8221 void func(member<T>*) {} 8222 8223 void test(); 8224 8225 void test() { func<foo>(0); } 8226 8227 } 8228 8229} // namespace cxx11 8230 8231#endif // __cplusplus >= 201103L 8232 8233 8234 8235 8236// If the compiler admits that it is not ready for C++14, why torture it? 8237// Hopefully, this will speed up the test. 8238 8239#ifndef __cplusplus 8240 8241#error "This is not a C++ compiler" 8242 8243#elif __cplusplus < 201402L 8244 8245#error "This is not a C++14 compiler" 8246 8247#else 8248 8249namespace cxx14 8250{ 8251 8252 namespace test_polymorphic_lambdas 8253 { 8254 8255 int 8256 test() 8257 { 8258 const auto lambda = [](auto&&... args){ 8259 const auto istiny = [](auto x){ 8260 return (sizeof(x) == 1UL) ? 1 : 0; 8261 }; 8262 const int aretiny[] = { istiny(args)... }; 8263 return aretiny[0]; 8264 }; 8265 return lambda(1, 1L, 1.0f, '1'); 8266 } 8267 8268 } 8269 8270 namespace test_binary_literals 8271 { 8272 8273 constexpr auto ivii = 0b0000000000101010; 8274 static_assert(ivii == 42, "wrong value"); 8275 8276 } 8277 8278 namespace test_generalized_constexpr 8279 { 8280 8281 template < typename CharT > 8282 constexpr unsigned long 8283 strlen_c(const CharT *const s) noexcept 8284 { 8285 auto length = 0UL; 8286 for (auto p = s; *p; ++p) 8287 ++length; 8288 return length; 8289 } 8290 8291 static_assert(strlen_c("") == 0UL, ""); 8292 static_assert(strlen_c("x") == 1UL, ""); 8293 static_assert(strlen_c("test") == 4UL, ""); 8294 static_assert(strlen_c("another\0test") == 7UL, ""); 8295 8296 } 8297 8298 namespace test_lambda_init_capture 8299 { 8300 8301 int 8302 test() 8303 { 8304 auto x = 0; 8305 const auto lambda1 = [a = x](int b){ return a + b; }; 8306 const auto lambda2 = [a = lambda1(x)](){ return a; }; 8307 return lambda2(); 8308 } 8309 8310 } 8311 8312 namespace test_digit_separators 8313 { 8314 8315 constexpr auto ten_million = 100'000'000; 8316 static_assert(ten_million == 100000000, ""); 8317 8318 } 8319 8320 namespace test_return_type_deduction 8321 { 8322 8323 auto f(int& x) { return x; } 8324 decltype(auto) g(int& x) { return x; } 8325 8326 template < typename T1, typename T2 > 8327 struct is_same 8328 { 8329 static constexpr auto value = false; 8330 }; 8331 8332 template < typename T > 8333 struct is_same<T, T> 8334 { 8335 static constexpr auto value = true; 8336 }; 8337 8338 int 8339 test() 8340 { 8341 auto x = 0; 8342 static_assert(is_same<int, decltype(f(x))>::value, ""); 8343 static_assert(is_same<int&, decltype(g(x))>::value, ""); 8344 return x; 8345 } 8346 8347 } 8348 8349} // namespace cxx14 8350 8351#endif // __cplusplus >= 201402L 8352 8353 8354 8355 8356// If the compiler admits that it is not ready for C++17, why torture it? 8357// Hopefully, this will speed up the test. 8358 8359#ifndef __cplusplus 8360 8361#error "This is not a C++ compiler" 8362 8363#elif __cplusplus < 201703L 8364 8365#error "This is not a C++17 compiler" 8366 8367#else 8368 8369#include <initializer_list> 8370#include <utility> 8371#include <type_traits> 8372 8373namespace cxx17 8374{ 8375 8376 namespace test_constexpr_lambdas 8377 { 8378 8379 constexpr int foo = [](){return 42;}(); 8380 8381 } 8382 8383 namespace test::nested_namespace::definitions 8384 { 8385 8386 } 8387 8388 namespace test_fold_expression 8389 { 8390 8391 template<typename... Args> 8392 int multiply(Args... args) 8393 { 8394 return (args * ... * 1); 8395 } 8396 8397 template<typename... Args> 8398 bool all(Args... args) 8399 { 8400 return (args && ...); 8401 } 8402 8403 } 8404 8405 namespace test_extended_static_assert 8406 { 8407 8408 static_assert (true); 8409 8410 } 8411 8412 namespace test_auto_brace_init_list 8413 { 8414 8415 auto foo = {5}; 8416 auto bar {5}; 8417 8418 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 8419 static_assert(std::is_same<int, decltype(bar)>::value); 8420 } 8421 8422 namespace test_typename_in_template_template_parameter 8423 { 8424 8425 template<template<typename> typename X> struct D; 8426 8427 } 8428 8429 namespace test_fallthrough_nodiscard_maybe_unused_attributes 8430 { 8431 8432 int f1() 8433 { 8434 return 42; 8435 } 8436 8437 [[nodiscard]] int f2() 8438 { 8439 [[maybe_unused]] auto unused = f1(); 8440 8441 switch (f1()) 8442 { 8443 case 17: 8444 f1(); 8445 [[fallthrough]]; 8446 case 42: 8447 f1(); 8448 } 8449 return f1(); 8450 } 8451 8452 } 8453 8454 namespace test_extended_aggregate_initialization 8455 { 8456 8457 struct base1 8458 { 8459 int b1, b2 = 42; 8460 }; 8461 8462 struct base2 8463 { 8464 base2() { 8465 b3 = 42; 8466 } 8467 int b3; 8468 }; 8469 8470 struct derived : base1, base2 8471 { 8472 int d; 8473 }; 8474 8475 derived d1 {{1, 2}, {}, 4}; // full initialization 8476 derived d2 {{}, {}, 4}; // value-initialized bases 8477 8478 } 8479 8480 namespace test_general_range_based_for_loop 8481 { 8482 8483 struct iter 8484 { 8485 int i; 8486 8487 int& operator* () 8488 { 8489 return i; 8490 } 8491 8492 const int& operator* () const 8493 { 8494 return i; 8495 } 8496 8497 iter& operator++() 8498 { 8499 ++i; 8500 return *this; 8501 } 8502 }; 8503 8504 struct sentinel 8505 { 8506 int i; 8507 }; 8508 8509 bool operator== (const iter& i, const sentinel& s) 8510 { 8511 return i.i == s.i; 8512 } 8513 8514 bool operator!= (const iter& i, const sentinel& s) 8515 { 8516 return !(i == s); 8517 } 8518 8519 struct range 8520 { 8521 iter begin() const 8522 { 8523 return {0}; 8524 } 8525 8526 sentinel end() const 8527 { 8528 return {5}; 8529 } 8530 }; 8531 8532 void f() 8533 { 8534 range r {}; 8535 8536 for (auto i : r) 8537 { 8538 [[maybe_unused]] auto v = i; 8539 } 8540 } 8541 8542 } 8543 8544 namespace test_lambda_capture_asterisk_this_by_value 8545 { 8546 8547 struct t 8548 { 8549 int i; 8550 int foo() 8551 { 8552 return [*this]() 8553 { 8554 return i; 8555 }(); 8556 } 8557 }; 8558 8559 } 8560 8561 namespace test_enum_class_construction 8562 { 8563 8564 enum class byte : unsigned char 8565 {}; 8566 8567 byte foo {42}; 8568 8569 } 8570 8571 namespace test_constexpr_if 8572 { 8573 8574 template <bool cond> 8575 int f () 8576 { 8577 if constexpr(cond) 8578 { 8579 return 13; 8580 } 8581 else 8582 { 8583 return 42; 8584 } 8585 } 8586 8587 } 8588 8589 namespace test_selection_statement_with_initializer 8590 { 8591 8592 int f() 8593 { 8594 return 13; 8595 } 8596 8597 int f2() 8598 { 8599 if (auto i = f(); i > 0) 8600 { 8601 return 3; 8602 } 8603 8604 switch (auto i = f(); i + 4) 8605 { 8606 case 17: 8607 return 2; 8608 8609 default: 8610 return 1; 8611 } 8612 } 8613 8614 } 8615 8616 namespace test_template_argument_deduction_for_class_templates 8617 { 8618 8619 template <typename T1, typename T2> 8620 struct pair 8621 { 8622 pair (T1 p1, T2 p2) 8623 : m1 {p1}, 8624 m2 {p2} 8625 {} 8626 8627 T1 m1; 8628 T2 m2; 8629 }; 8630 8631 void f() 8632 { 8633 [[maybe_unused]] auto p = pair{13, 42u}; 8634 } 8635 8636 } 8637 8638 namespace test_non_type_auto_template_parameters 8639 { 8640 8641 template <auto n> 8642 struct B 8643 {}; 8644 8645 B<5> b1; 8646 B<'a'> b2; 8647 8648 } 8649 8650 namespace test_structured_bindings 8651 { 8652 8653 int arr[2] = { 1, 2 }; 8654 std::pair<int, int> pr = { 1, 2 }; 8655 8656 auto f1() -> int(&)[2] 8657 { 8658 return arr; 8659 } 8660 8661 auto f2() -> std::pair<int, int>& 8662 { 8663 return pr; 8664 } 8665 8666 struct S 8667 { 8668 int x1 : 2; 8669 volatile double y1; 8670 }; 8671 8672 S f3() 8673 { 8674 return {}; 8675 } 8676 8677 auto [ x1, y1 ] = f1(); 8678 auto& [ xr1, yr1 ] = f1(); 8679 auto [ x2, y2 ] = f2(); 8680 auto& [ xr2, yr2 ] = f2(); 8681 const auto [ x3, y3 ] = f3(); 8682 8683 } 8684 8685 namespace test_exception_spec_type_system 8686 { 8687 8688 struct Good {}; 8689 struct Bad {}; 8690 8691 void g1() noexcept; 8692 void g2(); 8693 8694 template<typename T> 8695 Bad 8696 f(T*, T*); 8697 8698 template<typename T1, typename T2> 8699 Good 8700 f(T1*, T2*); 8701 8702 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 8703 8704 } 8705 8706 namespace test_inline_variables 8707 { 8708 8709 template<class T> void f(T) 8710 {} 8711 8712 template<class T> inline T g(T) 8713 { 8714 return T{}; 8715 } 8716 8717 template<> inline void f<>(int) 8718 {} 8719 8720 template<> int g<>(int) 8721 { 8722 return 5; 8723 } 8724 8725 } 8726 8727} // namespace cxx17 8728 8729#endif // __cplusplus < 201703L 8730 8731 8732 8733_ACEOF 8734if ac_fn_cxx_try_compile "$LINENO" 8735then : 8736 eval $cachevar=yes 8737else $as_nop 8738 eval $cachevar=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8741 CXX="$ac_save_CXX" 8742fi 8743eval ac_res=\$$cachevar 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8745printf "%s\n" "$ac_res" >&6; } 8746 if eval test x\$$cachevar = xyes; then 8747 CXX="$CXX $switch" 8748 if test -n "$CXXCPP" ; then 8749 CXXCPP="$CXXCPP $switch" 8750 fi 8751 ac_success=yes 8752 break 8753 fi 8754 done 8755 if test x$ac_success = xyes; then 8756 break 8757 fi 8758 done 8759 fi 8760 ac_ext=cpp 8761ac_cpp='$CXXCPP $CPPFLAGS' 8762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8765 8766 if test x$ax_cxx_compile_cxx17_required = xtrue; then 8767 if test x$ac_success = xno; then 8768 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5 8769 fi 8770 fi 8771 if test x$ac_success = xno; then 8772 HAVE_CXX17=0 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 8774printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} 8775 else 8776 HAVE_CXX17=1 8777 8778printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h 8779 8780 fi 8781 8782 8783ac_ext=c 8784ac_cpp='$CPP $CPPFLAGS' 8785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8787ac_compiler_gnu=$ac_cv_c_compiler_gnu 8788 8789 8790# Turn on all warnings 8791################################################################ 8792# 8793# Enable all the compiler debugging we can find 8794# Simson L. Garfinkel 8795# 8796# This is originally from PhotoRec, but modified substantially by Simson 8797# Figure out which flags we can use with the compiler. 8798# 8799# These I don't like: 8800# -Wdeclaration-after-statement -Wconversion 8801# doesn't work: -Wunreachable-code 8802# causes configure to crash on gcc-4.2.1: -Wsign-compare-Winline 8803# causes warnings with unistd.h: -Wnested-externs 8804# Just causes too much annoyance: -Wmissing-format-attribute 8805 8806 8807# Check G++ 8808# We don't use these warnings: 8809# -Waggregate-return -- aggregate returns are GOOD; they simplify code design 8810# We can use these warnings after ZLIB gets upgraded: 8811# -Wundef --- causes problems with zlib 8812# -Wcast-qual 8813# -Wmissing-format-attribute --- Just too annoying 8814ac_ext=cpp 8815ac_cpp='$CXXCPP $CPPFLAGS' 8816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8819 8820ac_fn_cxx_check_header_compile "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" 8821if test "x$ac_cv_header_string" = xyes 8822then : 8823 printf "%s\n" "#define HAVE_STRING 1" >>confdefs.h 8824 8825fi 8826 8827CXX_WARNINGS_TO_TEST="-Wall -MD -Wpointer-arith \ 8828 -Wshadow -Wwrite-strings -Wcast-align \ 8829 -Wredundant-decls -Wdisabled-optimization \ 8830 -Wfloat-equal -Wmultichar -Wmissing-noreturn \ 8831 -Woverloaded-virtual -Wsign-promo \ 8832 -funit-at-a-time" 8833 8834if test x"${mingw}" != "xyes" ; then 8835 # add the warnings we don't want to do on mingw 8836 CXX_WARNINGS_TO_TEST="$CXX_WARNINGS_TO_TEST -Weffc++" 8837fi 8838 8839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: C++ Warnings to test: $CXX_WARNINGS_TO_TEST" >&5 8840printf "%s\n" "$as_me: C++ Warnings to test: $CXX_WARNINGS_TO_TEST" >&6;} 8841 8842for option in $CXX_WARNINGS_TO_TEST 8843do 8844 SAVE_CXXFLAGS="$CXXFLAGS" 8845 CXXFLAGS="$CXXFLAGS $option" 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether g++ understands $option" >&5 8847printf %s "checking whether g++ understands $option... " >&6; } 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850 8851int 8852main (void) 8853{ 8854 8855 ; 8856 return 0; 8857} 8858_ACEOF 8859if ac_fn_cxx_try_compile "$LINENO" 8860then : 8861 has_option=yes 8862else $as_nop 8863 has_option=no; CXXFLAGS="$SAVE_CXXFLAGS" 8864fi 8865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 8867printf "%s\n" "$has_option" >&6; } 8868 unset has_option 8869 unset SAVE_CXXFLAGS 8870done 8871unset option 8872ac_ext=c 8873ac_cpp='$CPP $CPPFLAGS' 8874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8876ac_compiler_gnu=$ac_cv_c_compiler_gnu 8877 8878 8879 8880# These are needed for bulk_extractor. They are not needed for tcpflow 8881 8882printf "%s\n" "#define BULK_EXTRACTOR 1" >>confdefs.h 8883 8884 8885if test x"$LEX" == x ; then 8886 as_fn_error $? "flex not required." "$LINENO" 5 8887fi 8888 8889if test `basename "$LEX"` != flex; then 8890 as_fn_error $? "gnu flex is required." "$LINENO" 5 8891fi 8892 8893## Determine if we can use flex -R 8894if eval "echo %% | $LEX -R -t > /dev/null 2>&1" 8895then 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $LEX supports -R" >&5 8897printf "%s\n" "$as_me: $LEX supports -R" >&6;} 8898else 8899 as_fn_error $? "$LEX does not support -R. Please get a modern version of gnu flex" "$LINENO" 5 8900fi 8901 8902 8903 8904################################################################ 8905## rar support 8906# Check whether --enable-rar was given. 8907if test ${enable_rar+y} 8908then : 8909 enableval=$enable_rar; 8910else $as_nop 8911 8912printf "%s\n" "#define USE_RAR 1" >>confdefs.h 8913 rar="yes" 8914fi 8915 8916 if test "yes" = "$rar"; then 8917 RAR_ENABLED_TRUE= 8918 RAR_ENABLED_FALSE='#' 8919else 8920 RAR_ENABLED_TRUE='#' 8921 RAR_ENABLED_FALSE= 8922fi 8923 8924 8925 8926################################################################ 8927## lightgrep enabled 8928# Check whether --enable-lightgrep was given. 8929if test ${enable_lightgrep+y} 8930then : 8931 enableval=$enable_lightgrep; 8932printf "%s\n" "#define USE_LIGHTGREP 1" >>confdefs.h 8933 lightgrep="yes" 8934fi 8935 8936 if test "yes" = "$lightgrep"; then 8937 LIGHTGREP_ENABLED_TRUE= 8938 LIGHTGREP_ENABLED_FALSE='#' 8939else 8940 LIGHTGREP_ENABLED_TRUE='#' 8941 LIGHTGREP_ENABLED_FALSE= 8942fi 8943 8944# Check whether --enable-flexscanners was given. 8945if test ${enable_flexscanners+y} 8946then : 8947 enableval=$enable_flexscanners; 8948else $as_nop 8949 8950printf "%s\n" "#define USE_FLEXSCANNERS 1" >>confdefs.h 8951 flexscanners='yes' 8952fi 8953 8954 if test "yes" = "$flexscanners"; then 8955 FLEXSCANNERS_ENABLED_TRUE= 8956 FLEXSCANNERS_ENABLED_FALSE='#' 8957else 8958 FLEXSCANNERS_ENABLED_TRUE='#' 8959 FLEXSCANNERS_ENABLED_FALSE= 8960fi 8961 8962 8963 8964################################################################ 8965## mcheck support 8966## enable memory analysis support for detecting memory leaks 8967## and detecting multiply deallocated memory resources 8968## see http://en.wikipedia.org/wiki/Mtrace 8969## here is the basic workflow: 8970## 1. example usage and recompile: "./configure --enable-mcheck" 8971## 2. export the environment variable for the output file, 8972## e.g. "export MALLOC_TRACE=~/malloc_outfile.txt" 8973## 3. improve readability of malloc_outfile.txt using mtrace, 8974## e.g. "mtrace /usr/local/bin/bulk_extractor ~/malloc_outfile.txt 8975# Check whether --enable-mcheck was given. 8976if test ${enable_mcheck+y} 8977then : 8978 enableval=$enable_mcheck; 8979printf "%s\n" "#define HAVE_MCHECK 1" >>confdefs.h 8980 8981 8982fi 8983 8984 8985 8986# Specific include files and functions for bulk-extractor 8987# Autoupdate added the next two lines to ensure that your configure 8988# script's behavior did not change. They are probably safe to remove. 8989# AC_CHECK_INCLUDES_DEFAULT 8990# AC_PROG_EGREP 8991 8992ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 8993case $ac_cv_c_int64_t in #( 8994 no|yes) ;; #( 8995 *) 8996 8997printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 8998;; 8999esac 9000 9001# Check whether --enable-largefile was given. 9002if test ${enable_largefile+y} 9003then : 9004 enableval=$enable_largefile; 9005fi 9006 9007if test "$enable_largefile" != no; then 9008 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 9010printf %s "checking for special C compiler options needed for large files... " >&6; } 9011if test ${ac_cv_sys_largefile_CC+y} 9012then : 9013 printf %s "(cached) " >&6 9014else $as_nop 9015 ac_cv_sys_largefile_CC=no 9016 if test "$GCC" != yes; then 9017 ac_save_CC=$CC 9018 while :; do 9019 # IRIX 6.2 and later do not support large files by default, 9020 # so use the C compiler's -n32 option if that helps. 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023#include <sys/types.h> 9024 /* Check that off_t can represent 2**63 - 1 correctly. 9025 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9026 since some C++ compilers masquerading as C compilers 9027 incorrectly reject 9223372036854775807. */ 9028#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9030 && LARGE_OFF_T % 2147483647 == 1) 9031 ? 1 : -1]; 9032int 9033main (void) 9034{ 9035 9036 ; 9037 return 0; 9038} 9039_ACEOF 9040 if ac_fn_c_try_compile "$LINENO" 9041then : 9042 break 9043fi 9044rm -f core conftest.err conftest.$ac_objext conftest.beam 9045 CC="$CC -n32" 9046 if ac_fn_c_try_compile "$LINENO" 9047then : 9048 ac_cv_sys_largefile_CC=' -n32'; break 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam 9051 break 9052 done 9053 CC=$ac_save_CC 9054 rm -f conftest.$ac_ext 9055 fi 9056fi 9057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 9058printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 9059 if test "$ac_cv_sys_largefile_CC" != no; then 9060 CC=$CC$ac_cv_sys_largefile_CC 9061 fi 9062 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9064printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 9065if test ${ac_cv_sys_file_offset_bits+y} 9066then : 9067 printf %s "(cached) " >&6 9068else $as_nop 9069 while :; do 9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072#include <sys/types.h> 9073 /* Check that off_t can represent 2**63 - 1 correctly. 9074 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9075 since some C++ compilers masquerading as C compilers 9076 incorrectly reject 9223372036854775807. */ 9077#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9079 && LARGE_OFF_T % 2147483647 == 1) 9080 ? 1 : -1]; 9081int 9082main (void) 9083{ 9084 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089if ac_fn_c_try_compile "$LINENO" 9090then : 9091 ac_cv_sys_file_offset_bits=no; break 9092fi 9093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096#define _FILE_OFFSET_BITS 64 9097#include <sys/types.h> 9098 /* Check that off_t can represent 2**63 - 1 correctly. 9099 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9100 since some C++ compilers masquerading as C compilers 9101 incorrectly reject 9223372036854775807. */ 9102#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9104 && LARGE_OFF_T % 2147483647 == 1) 9105 ? 1 : -1]; 9106int 9107main (void) 9108{ 9109 9110 ; 9111 return 0; 9112} 9113_ACEOF 9114if ac_fn_c_try_compile "$LINENO" 9115then : 9116 ac_cv_sys_file_offset_bits=64; break 9117fi 9118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9119 ac_cv_sys_file_offset_bits=unknown 9120 break 9121done 9122fi 9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 9124printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 9125case $ac_cv_sys_file_offset_bits in #( 9126 no | unknown) ;; 9127 *) 9128printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 9129;; 9130esac 9131rm -rf conftest* 9132 if test $ac_cv_sys_file_offset_bits = unknown; then 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 9134printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 9135if test ${ac_cv_sys_large_files+y} 9136then : 9137 printf %s "(cached) " >&6 9138else $as_nop 9139 while :; do 9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9141/* end confdefs.h. */ 9142#include <sys/types.h> 9143 /* Check that off_t can represent 2**63 - 1 correctly. 9144 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9145 since some C++ compilers masquerading as C compilers 9146 incorrectly reject 9223372036854775807. */ 9147#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9149 && LARGE_OFF_T % 2147483647 == 1) 9150 ? 1 : -1]; 9151int 9152main (void) 9153{ 9154 9155 ; 9156 return 0; 9157} 9158_ACEOF 9159if ac_fn_c_try_compile "$LINENO" 9160then : 9161 ac_cv_sys_large_files=no; break 9162fi 9163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9165/* end confdefs.h. */ 9166#define _LARGE_FILES 1 9167#include <sys/types.h> 9168 /* Check that off_t can represent 2**63 - 1 correctly. 9169 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9170 since some C++ compilers masquerading as C compilers 9171 incorrectly reject 9223372036854775807. */ 9172#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 9173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9174 && LARGE_OFF_T % 2147483647 == 1) 9175 ? 1 : -1]; 9176int 9177main (void) 9178{ 9179 9180 ; 9181 return 0; 9182} 9183_ACEOF 9184if ac_fn_c_try_compile "$LINENO" 9185then : 9186 ac_cv_sys_large_files=1; break 9187fi 9188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9189 ac_cv_sys_large_files=unknown 9190 break 9191done 9192fi 9193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 9194printf "%s\n" "$ac_cv_sys_large_files" >&6; } 9195case $ac_cv_sys_large_files in #( 9196 no | unknown) ;; 9197 *) 9198printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 9199;; 9200esac 9201rm -rf conftest* 9202 fi 9203fi 9204 9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5 9206printf %s "checking POSIX termios... " >&6; } 9207if test ${ac_cv_sys_posix_termios+y} 9208then : 9209 printf %s "(cached) " >&6 9210else $as_nop 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213#include <sys/types.h> 9214#include <unistd.h> 9215#include <termios.h> 9216 9217int 9218main (void) 9219{ 9220/* SunOS 4.0.3 has termios.h but not the library calls. */ 9221 tcgetattr(0, 0); 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO" 9227then : 9228 ac_cv_sys_posix_termios=yes 9229else $as_nop 9230 ac_cv_sys_posix_termios=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9233 conftest$ac_exeext conftest.$ac_ext 9234fi 9235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5 9236printf "%s\n" "$ac_cv_sys_posix_termios" >&6; } 9237 9238 9239## Check for headers used by bulk Extractor 9240ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 9241if test "x$ac_cv_header_dlfcn_h" = xyes 9242then : 9243 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9244 9245fi 9246ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 9247if test "x$ac_cv_header_fcntl_h" = xyes 9248then : 9249 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 9250 9251fi 9252ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 9253if test "x$ac_cv_header_inttypes_h" = xyes 9254then : 9255 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 9256 9257fi 9258ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 9259if test "x$ac_cv_header_libgen_h" = xyes 9260then : 9261 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 9262 9263fi 9264ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 9265if test "x$ac_cv_header_limits_h" = xyes 9266then : 9267 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 9268 9269fi 9270ac_fn_c_check_header_compile "$LINENO" "mmap.h" "ac_cv_header_mmap_h" "$ac_includes_default" 9271if test "x$ac_cv_header_mmap_h" = xyes 9272then : 9273 printf "%s\n" "#define HAVE_MMAP_H 1" >>confdefs.h 9274 9275fi 9276ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 9277if test "x$ac_cv_header_pwd_h" = xyes 9278then : 9279 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 9280 9281fi 9282ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 9283if test "x$ac_cv_header_signal_h" = xyes 9284then : 9285 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 9286 9287fi 9288ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 9289if test "x$ac_cv_header_stdint_h" = xyes 9290then : 9291 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 9292 9293fi 9294ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default" 9295if test "x$ac_cv_header_sys_cdefs_h" = xyes 9296then : 9297 printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h 9298 9299fi 9300ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 9301if test "x$ac_cv_header_curses_h" = xyes 9302then : 9303 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h 9304 9305fi 9306ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" 9307if test "x$ac_cv_header_sys_disk_h" = xyes 9308then : 9309 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h 9310 9311fi 9312ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default" 9313if test "x$ac_cv_header_sys_fcntl_h" = xyes 9314then : 9315 printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h 9316 9317fi 9318ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 9319if test "x$ac_cv_header_sys_ioctl_h" = xyes 9320then : 9321 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 9322 9323fi 9324ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 9325if test "x$ac_cv_header_sys_mman_h" = xyes 9326then : 9327 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 9328 9329fi 9330ac_fn_c_check_header_compile "$LINENO" "sys/mmap.h" "ac_cv_header_sys_mmap_h" "$ac_includes_default" 9331if test "x$ac_cv_header_sys_mmap_h" = xyes 9332then : 9333 printf "%s\n" "#define HAVE_SYS_MMAP_H 1" >>confdefs.h 9334 9335fi 9336ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" 9337if test "x$ac_cv_header_sys_mount_h" = xyes 9338then : 9339 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h 9340 9341fi 9342ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 9343if test "x$ac_cv_header_sys_param_h" = xyes 9344then : 9345 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 9346 9347fi 9348ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 9349if test "x$ac_cv_header_sys_socket_h" = xyes 9350then : 9351 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 9352 9353fi 9354ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 9355if test "x$ac_cv_header_sys_stat_h" = xyes 9356then : 9357 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 9358 9359fi 9360ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 9361if test "x$ac_cv_header_sys_types_h" = xyes 9362then : 9363 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 9364 9365fi 9366ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 9367if test "x$ac_cv_header_sys_time_h" = xyes 9368then : 9369 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 9370 9371fi 9372ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 9373if test "x$ac_cv_header_sys_resource_h" = xyes 9374then : 9375 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 9376 9377fi 9378ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default" 9379if test "x$ac_cv_header_sys_sysctl_h" = xyes 9380then : 9381 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 9382 9383fi 9384ac_fn_c_check_header_compile "$LINENO" "sys/vmmeter.h" "ac_cv_header_sys_vmmeter_h" "$ac_includes_default" 9385if test "x$ac_cv_header_sys_vmmeter_h" = xyes 9386then : 9387 printf "%s\n" "#define HAVE_SYS_VMMETER_H 1" >>confdefs.h 9388 9389fi 9390ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default" 9391if test "x$ac_cv_header_term_h" = xyes 9392then : 9393 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h 9394 9395fi 9396ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 9397if test "x$ac_cv_header_time_h" = xyes 9398then : 9399 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 9400 9401fi 9402ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 9403if test "x$ac_cv_header_unistd_h" = xyes 9404then : 9405 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 9406 9407fi 9408ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 9409if test "x$ac_cv_header_windows_h" = xyes 9410then : 9411 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 9412 9413fi 9414ac_fn_c_check_header_compile "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default" 9415if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes 9416then : 9417 printf "%s\n" "#define HAVE_CORESERVICES_CORESERVICES_H 1" >>confdefs.h 9418 9419fi 9420ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" 9421if test "x$ac_cv_header_mach_o_dyld_h" = xyes 9422then : 9423 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h 9424 9425fi 9426 9427ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 9428if test "x$ac_cv_func_getuid" = xyes 9429then : 9430 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 9431 9432fi 9433ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 9434if test "x$ac_cv_func_getpwuid" = xyes 9435then : 9436 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 9437 9438fi 9439ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 9440if test "x$ac_cv_func_gethostname" = xyes 9441then : 9442 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 9443 9444fi 9445ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 9446if test "x$ac_cv_func_getrusage" = xyes 9447then : 9448 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 9449 9450fi 9451ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 9452if test "x$ac_cv_func_gmtime_r" = xyes 9453then : 9454 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 9455 9456fi 9457ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 9458if test "x$ac_cv_func_getprogname" = xyes 9459then : 9460 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 9461 9462fi 9463ac_fn_c_check_func "$LINENO" "isxdigit" "ac_cv_func_isxdigit" 9464if test "x$ac_cv_func_isxdigit" = xyes 9465then : 9466 printf "%s\n" "#define HAVE_ISXDIGIT 1" >>confdefs.h 9467 9468fi 9469ac_fn_c_check_func "$LINENO" "ishexnumber" "ac_cv_func_ishexnumber" 9470if test "x$ac_cv_func_ishexnumber" = xyes 9471then : 9472 printf "%s\n" "#define HAVE_ISHEXNUMBER 1" >>confdefs.h 9473 9474fi 9475ac_fn_c_check_func "$LINENO" "le64toh" "ac_cv_func_le64toh" 9476if test "x$ac_cv_func_le64toh" = xyes 9477then : 9478 printf "%s\n" "#define HAVE_LE64TOH 1" >>confdefs.h 9479 9480fi 9481ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 9482if test "x$ac_cv_func_localtime_r" = xyes 9483then : 9484 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 9485 9486fi 9487ac_fn_c_check_func "$LINENO" "_lseeki64" "ac_cv_func__lseeki64" 9488if test "x$ac_cv_func__lseeki64" = xyes 9489then : 9490 printf "%s\n" "#define HAVE__LSEEKI64 1" >>confdefs.h 9491 9492fi 9493ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 9494if test "x$ac_cv_func_inet_ntop" = xyes 9495then : 9496 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 9497 9498fi 9499ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" 9500if test "x$ac_cv_func_ioctl" = xyes 9501then : 9502 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 9503 9504fi 9505ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty" 9506if test "x$ac_cv_func_isatty" = xyes 9507then : 9508 printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h 9509 9510fi 9511ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64" 9512if test "x$ac_cv_func_pread64" = xyes 9513then : 9514 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h 9515 9516fi 9517ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 9518if test "x$ac_cv_func_pread" = xyes 9519then : 9520 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 9521 9522fi 9523ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf" 9524if test "x$ac_cv_func_printf" = xyes 9525then : 9526 printf "%s\n" "#define HAVE_PRINTF 1" >>confdefs.h 9527 9528fi 9529ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 9530if test "x$ac_cv_func_mmap" = xyes 9531then : 9532 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 9533 9534fi 9535ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap" 9536if test "x$ac_cv_func_munmap" = xyes 9537then : 9538 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h 9539 9540fi 9541ac_fn_c_check_func "$LINENO" "MD5" "ac_cv_func_MD5" 9542if test "x$ac_cv_func_MD5" = xyes 9543then : 9544 printf "%s\n" "#define HAVE_MD5 1" >>confdefs.h 9545 9546fi 9547ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 9548if test "x$ac_cv_func_mkstemp" = xyes 9549then : 9550 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 9551 9552fi 9553ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" 9554if test "x$ac_cv_func_mktemp" = xyes 9555then : 9556 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h 9557 9558fi 9559ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 9560if test "x$ac_cv_func_sleep" = xyes 9561then : 9562 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h 9563 9564fi 9565ac_fn_c_check_func "$LINENO" "SleepEx" "ac_cv_func_SleepEx" 9566if test "x$ac_cv_func_SleepEx" = xyes 9567then : 9568 printf "%s\n" "#define HAVE_SLEEPEX 1" >>confdefs.h 9569 9570fi 9571ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 9572if test "x$ac_cv_func_strptime" = xyes 9573then : 9574 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h 9575 9576fi 9577ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 9578if test "x$ac_cv_func_usleep" = xyes 9579then : 9580 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 9581 9582fi 9583ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 9584if test "x$ac_cv_func_vasprintf" = xyes 9585then : 9586 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 9587 9588fi 9589ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath" 9590if test "x$ac_cv_func__NSGetExecutablePath" = xyes 9591then : 9592 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h 9593 9594fi 9595 9596ac_fn_c_check_func "$LINENO" "CreateProcess" "ac_cv_func_CreateProcess" 9597if test "x$ac_cv_func_CreateProcess" = xyes 9598then : 9599 printf "%s\n" "#define HAVE_CREATEPROCESS 1" >>confdefs.h 9600 9601fi 9602ac_fn_c_check_func "$LINENO" "LoadLibrary" "ac_cv_func_LoadLibrary" 9603if test "x$ac_cv_func_LoadLibrary" = xyes 9604then : 9605 printf "%s\n" "#define HAVE_LOADLIBRARY 1" >>confdefs.h 9606 9607fi 9608ac_fn_c_check_func "$LINENO" "IncrementAtomic" "ac_cv_func_IncrementAtomic" 9609if test "x$ac_cv_func_IncrementAtomic" = xyes 9610then : 9611 printf "%s\n" "#define HAVE_INCREMENTATOMIC 1" >>confdefs.h 9612 9613fi 9614ac_fn_c_check_func "$LINENO" "InterlockedIncrement" "ac_cv_func_InterlockedIncrement" 9615if test "x$ac_cv_func_InterlockedIncrement" = xyes 9616then : 9617 printf "%s\n" "#define HAVE_INTERLOCKEDINCREMENT 1" >>confdefs.h 9618 9619fi 9620 9621 9622## v2.0 uses termcap! So modern 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetstr in -ltermcap" >&5 9624printf %s "checking for tgetstr in -ltermcap... " >&6; } 9625if test ${ac_cv_lib_termcap_tgetstr+y} 9626then : 9627 printf %s "(cached) " >&6 9628else $as_nop 9629 ac_check_lib_save_LIBS=$LIBS 9630LIBS="-ltermcap $LIBS" 9631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633 9634/* Override any GCC internal prototype to avoid an error. 9635 Use char because int might match the return type of a GCC 9636 builtin and then its argument prototype would still apply. */ 9637char tgetstr (); 9638int 9639main (void) 9640{ 9641return tgetstr (); 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646if ac_fn_c_try_link "$LINENO" 9647then : 9648 ac_cv_lib_termcap_tgetstr=yes 9649else $as_nop 9650 ac_cv_lib_termcap_tgetstr=no 9651fi 9652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9653 conftest$ac_exeext conftest.$ac_ext 9654LIBS=$ac_check_lib_save_LIBS 9655fi 9656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetstr" >&5 9657printf "%s\n" "$ac_cv_lib_termcap_tgetstr" >&6; } 9658if test "x$ac_cv_lib_termcap_tgetstr" = xyes 9659then : 9660 printf "%s\n" "#define HAVE_LIBTERMCAP 1" >>confdefs.h 9661 9662 LIBS="-ltermcap $LIBS" 9663 9664fi 9665 9666 9667## dlopen is now itself in a different library 9668## Explicitly check for dlopen library before checking for dlopen 9669## -ldl (see http://stackoverflow.com/questions/956640/linux-c-error-undefined-reference-to-dlopen) 9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9671printf %s "checking for dlopen in -ldl... " >&6; } 9672if test ${ac_cv_lib_dl_dlopen+y} 9673then : 9674 printf %s "(cached) " >&6 9675else $as_nop 9676 ac_check_lib_save_LIBS=$LIBS 9677LIBS="-ldl $LIBS" 9678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679/* end confdefs.h. */ 9680 9681/* Override any GCC internal prototype to avoid an error. 9682 Use char because int might match the return type of a GCC 9683 builtin and then its argument prototype would still apply. */ 9684char dlopen (); 9685int 9686main (void) 9687{ 9688return dlopen (); 9689 ; 9690 return 0; 9691} 9692_ACEOF 9693if ac_fn_c_try_link "$LINENO" 9694then : 9695 ac_cv_lib_dl_dlopen=yes 9696else $as_nop 9697 ac_cv_lib_dl_dlopen=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9700 conftest$ac_exeext conftest.$ac_ext 9701LIBS=$ac_check_lib_save_LIBS 9702fi 9703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9704printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 9705if test "x$ac_cv_lib_dl_dlopen" = xyes 9706then : 9707 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 9708 9709 LIBS="-ldl $LIBS" 9710 9711fi 9712 9713ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9714if test "x$ac_cv_func_dlopen" = xyes 9715then : 9716 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 9717 9718fi 9719ac_fn_c_check_func "$LINENO" "dlopen_preflight" "ac_cv_func_dlopen_preflight" 9720if test "x$ac_cv_func_dlopen_preflight" = xyes 9721then : 9722 printf "%s\n" "#define HAVE_DLOPEN_PREFLIGHT 1" >>confdefs.h 9723 9724fi 9725 9726 9727# Test for sin_len 9728ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 9729if test "x$ac_cv_header_arpa_inet_h" = xyes 9730then : 9731 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 9732 9733fi 9734ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 9735if test "x$ac_cv_header_netinet_in_h" = xyes 9736then : 9737 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 9738 9739fi 9740ac_fn_c_check_header_compile "$LINENO" "wsipx.h" "ac_cv_header_wsipx_h" "$ac_includes_default" 9741if test "x$ac_cv_header_wsipx_h" = xyes 9742then : 9743 printf "%s\n" "#define HAVE_WSIPX_H 1" >>confdefs.h 9744 9745fi 9746 9747ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" " 9748#include <sys/types.h> 9749#ifdef HAVE_NETINET_IN_H 9750#include <netinet/in.h> 9751#endif 9752 9753" 9754if test "x$ac_cv_header_netinet_ip_h" = xyes 9755then : 9756 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h 9757 9758fi 9759 9760 9761ac_fn_c_check_member "$LINENO" "struct winsize" "ws_col" "ac_cv_member_struct_winsize_ws_col" "#include <sys/ioctl.h> 9762" 9763if test "x$ac_cv_member_struct_winsize_ws_col" = xyes 9764then : 9765 9766printf "%s\n" "#define HAVE_STRUCT_WINSIZE_WS_COL 1" >>confdefs.h 9767 9768 9769fi 9770 9771 9772ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 9773#include <sys/types.h> 9774#include <arpa/inet.h> 9775#ifdef HAVE_NETINET_IN_H 9776#include <netinet/in.h> 9777#endif 9778 9779" 9780if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 9781then : 9782 9783printf "%s\n" "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h 9784 9785fi 9786 9787 9788# 9789# ZLIB is required: 9790# Note you cannot put comments in the AC_MSG_ERROR for some reason 9791# Must be before ewf 9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 9793printf %s "checking for uncompress in -lz... " >&6; } 9794if test ${ac_cv_lib_z_uncompress+y} 9795then : 9796 printf %s "(cached) " >&6 9797else $as_nop 9798 ac_check_lib_save_LIBS=$LIBS 9799LIBS="-lz $LIBS" 9800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802 9803/* Override any GCC internal prototype to avoid an error. 9804 Use char because int might match the return type of a GCC 9805 builtin and then its argument prototype would still apply. */ 9806char uncompress (); 9807int 9808main (void) 9809{ 9810return uncompress (); 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815if ac_fn_c_try_link "$LINENO" 9816then : 9817 ac_cv_lib_z_uncompress=yes 9818else $as_nop 9819 ac_cv_lib_z_uncompress=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9822 conftest$ac_exeext conftest.$ac_ext 9823LIBS=$ac_check_lib_save_LIBS 9824fi 9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 9826printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; } 9827if test "x$ac_cv_lib_z_uncompress" = xyes 9828then : 9829 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 9830 9831 LIBS="-lz $LIBS" 9832 9833else $as_nop 9834 as_fn_error $? "zlib libraries not installed; try installing zlib-devel zlib-dev zlib-devel zlib1g-dev or libz-dev" "$LINENO" 5 9835fi 9836 9837 9838## EXPAT is required for reading the dfxml file for restrarting. 9839ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 9840if test "x$ac_cv_header_expat_h" = xyes 9841then : 9842 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h 9843 9844fi 9845 9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 9847printf %s "checking for XML_ParserCreate in -lexpat... " >&6; } 9848if test ${ac_cv_lib_expat_XML_ParserCreate+y} 9849then : 9850 printf %s "(cached) " >&6 9851else $as_nop 9852 ac_check_lib_save_LIBS=$LIBS 9853LIBS="-lexpat $LIBS" 9854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855/* end confdefs.h. */ 9856 9857/* Override any GCC internal prototype to avoid an error. 9858 Use char because int might match the return type of a GCC 9859 builtin and then its argument prototype would still apply. */ 9860char XML_ParserCreate (); 9861int 9862main (void) 9863{ 9864return XML_ParserCreate (); 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869if ac_fn_c_try_link "$LINENO" 9870then : 9871 ac_cv_lib_expat_XML_ParserCreate=yes 9872else $as_nop 9873 ac_cv_lib_expat_XML_ParserCreate=no 9874fi 9875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9876 conftest$ac_exeext conftest.$ac_ext 9877LIBS=$ac_check_lib_save_LIBS 9878fi 9879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 9880printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; } 9881if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes 9882then : 9883 printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h 9884 9885 LIBS="-lexpat $LIBS" 9886 9887fi 9888 9889 9890################################################################ 9891## Lightgrep support 9892## 9893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 9894printf %s "checking for main in -lstdc++... " >&6; } 9895if test ${ac_cv_lib_stdcpp_main+y} 9896then : 9897 printf %s "(cached) " >&6 9898else $as_nop 9899 ac_check_lib_save_LIBS=$LIBS 9900LIBS="-lstdc++ $LIBS" 9901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903 9904 9905int 9906main (void) 9907{ 9908return main (); 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_link "$LINENO" 9914then : 9915 ac_cv_lib_stdcpp_main=yes 9916else $as_nop 9917 ac_cv_lib_stdcpp_main=no 9918fi 9919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9920 conftest$ac_exeext conftest.$ac_ext 9921LIBS=$ac_check_lib_save_LIBS 9922fi 9923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 9924printf "%s\n" "$ac_cv_lib_stdcpp_main" >&6; } 9925if test "x$ac_cv_lib_stdcpp_main" = xyes 9926then : 9927 printf "%s\n" "#define HAVE_LIBSTDC__ 1" >>confdefs.h 9928 9929 LIBS="-lstdc++ $LIBS" 9930 9931fi 9932 9933 9934if test x"$lightgrep" == x"yes"; then 9935 9936 9937 if test x"$mingw" == x"yes" ; then 9938 # get static flags when cross-compiling with mingw 9939 PKG_CONFIG="$PKG_CONFIG --static" 9940 else 9941 # pkg-config doesn't look in /usr/local/lib on some systems 9942 if test x"$PKG_CONFIG_PATH" != x; then 9943 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig 9944 else 9945 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 9946 fi 9947 fi 9948 9949 9950 9951 9952 9953 9954 9955 9956if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9957 if test -n "$ac_tool_prefix"; then 9958 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9959set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961printf %s "checking for $ac_word... " >&6; } 9962if test ${ac_cv_path_PKG_CONFIG+y} 9963then : 9964 printf %s "(cached) " >&6 9965else $as_nop 9966 case $PKG_CONFIG in 9967 [\\/]* | ?:[\\/]*) 9968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9969 ;; 9970 *) 9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972for as_dir in $PATH 9973do 9974 IFS=$as_save_IFS 9975 case $as_dir in #((( 9976 '') as_dir=./ ;; 9977 */) ;; 9978 *) as_dir=$as_dir/ ;; 9979 esac 9980 for ac_exec_ext in '' $ac_executable_extensions; do 9981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9982 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 9983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9984 break 2 9985 fi 9986done 9987 done 9988IFS=$as_save_IFS 9989 9990 ;; 9991esac 9992fi 9993PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9994if test -n "$PKG_CONFIG"; then 9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9996printf "%s\n" "$PKG_CONFIG" >&6; } 9997else 9998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9999printf "%s\n" "no" >&6; } 10000fi 10001 10002 10003fi 10004if test -z "$ac_cv_path_PKG_CONFIG"; then 10005 ac_pt_PKG_CONFIG=$PKG_CONFIG 10006 # Extract the first word of "pkg-config", so it can be a program name with args. 10007set dummy pkg-config; ac_word=$2 10008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10009printf %s "checking for $ac_word... " >&6; } 10010if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 10011then : 10012 printf %s "(cached) " >&6 10013else $as_nop 10014 case $ac_pt_PKG_CONFIG in 10015 [\\/]* | ?:[\\/]*) 10016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10017 ;; 10018 *) 10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10020for as_dir in $PATH 10021do 10022 IFS=$as_save_IFS 10023 case $as_dir in #((( 10024 '') as_dir=./ ;; 10025 */) ;; 10026 *) as_dir=$as_dir/ ;; 10027 esac 10028 for ac_exec_ext in '' $ac_executable_extensions; do 10029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10030 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 10031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10032 break 2 10033 fi 10034done 10035 done 10036IFS=$as_save_IFS 10037 10038 ;; 10039esac 10040fi 10041ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10042if test -n "$ac_pt_PKG_CONFIG"; then 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10044printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 10045else 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10047printf "%s\n" "no" >&6; } 10048fi 10049 10050 if test "x$ac_pt_PKG_CONFIG" = x; then 10051 PKG_CONFIG="" 10052 else 10053 case $cross_compiling:$ac_tool_warned in 10054yes:) 10055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10056printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10057ac_tool_warned=yes ;; 10058esac 10059 PKG_CONFIG=$ac_pt_PKG_CONFIG 10060 fi 10061else 10062 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10063fi 10064 10065fi 10066if test -n "$PKG_CONFIG"; then 10067 _pkg_min_version=0.9.0 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10069printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10070 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10072printf "%s\n" "yes" >&6; } 10073 else 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10075printf "%s\n" "no" >&6; } 10076 PKG_CONFIG="" 10077 fi 10078fi 10079 10080pkg_failed=no 10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lightgrep" >&5 10082printf %s "checking for lightgrep... " >&6; } 10083 10084if test -n "$lightgrep_CFLAGS"; then 10085 pkg_cv_lightgrep_CFLAGS="$lightgrep_CFLAGS" 10086 elif test -n "$PKG_CONFIG"; then 10087 if test -n "$PKG_CONFIG" && \ 10088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lightgrep\""; } >&5 10089 ($PKG_CONFIG --exists --print-errors "lightgrep") 2>&5 10090 ac_status=$? 10091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10092 test $ac_status = 0; }; then 10093 pkg_cv_lightgrep_CFLAGS=`$PKG_CONFIG --cflags "lightgrep" 2>/dev/null` 10094 test "x$?" != "x0" && pkg_failed=yes 10095else 10096 pkg_failed=yes 10097fi 10098 else 10099 pkg_failed=untried 10100fi 10101if test -n "$lightgrep_LIBS"; then 10102 pkg_cv_lightgrep_LIBS="$lightgrep_LIBS" 10103 elif test -n "$PKG_CONFIG"; then 10104 if test -n "$PKG_CONFIG" && \ 10105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lightgrep\""; } >&5 10106 ($PKG_CONFIG --exists --print-errors "lightgrep") 2>&5 10107 ac_status=$? 10108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10109 test $ac_status = 0; }; then 10110 pkg_cv_lightgrep_LIBS=`$PKG_CONFIG --libs "lightgrep" 2>/dev/null` 10111 test "x$?" != "x0" && pkg_failed=yes 10112else 10113 pkg_failed=yes 10114fi 10115 else 10116 pkg_failed=untried 10117fi 10118 10119 10120 10121if test $pkg_failed = yes; then 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10123printf "%s\n" "no" >&6; } 10124 10125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10126 _pkg_short_errors_supported=yes 10127else 10128 _pkg_short_errors_supported=no 10129fi 10130 if test $_pkg_short_errors_supported = yes; then 10131 lightgrep_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lightgrep" 2>&1` 10132 else 10133 lightgrep_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lightgrep" 2>&1` 10134 fi 10135 # Put the nasty error message in config.log where it belongs 10136 echo "$lightgrep_PKG_ERRORS" >&5 10137 10138 as_fn_error $? "Package requirements (lightgrep) were not met: 10139 10140$lightgrep_PKG_ERRORS 10141 10142Consider adjusting the PKG_CONFIG_PATH environment variable if you 10143installed software in a non-standard prefix. 10144 10145Alternatively, you may set the environment variables lightgrep_CFLAGS 10146and lightgrep_LIBS to avoid the need to call pkg-config. 10147See the pkg-config man page for more details." "$LINENO" 5 10148elif test $pkg_failed = untried; then 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10150printf "%s\n" "no" >&6; } 10151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10152printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10153as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10154is in your PATH or set the PKG_CONFIG environment variable to the full 10155path to pkg-config. 10156 10157Alternatively, you may set the environment variables lightgrep_CFLAGS 10158and lightgrep_LIBS to avoid the need to call pkg-config. 10159See the pkg-config man page for more details. 10160 10161To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10162See \`config.log' for more details" "$LINENO" 5; } 10163else 10164 lightgrep_CFLAGS=$pkg_cv_lightgrep_CFLAGS 10165 lightgrep_LIBS=$pkg_cv_lightgrep_LIBS 10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10167printf "%s\n" "yes" >&6; } 10168 10169fi 10170 10171 10172printf "%s\n" "#define HAVE_LIBLIGHTGREP 1" >>confdefs.h 10173 10174 10175 CPPFLAGS="$CPPFLAGS $lightgrep_CFLAGS" 10176 LIBS="$LIBS `$PKG_CONFIG --libs-only-l lightgrep`" 10177 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs-only-L --libs-only-other lightgrep`" 10178fi 10179 10180################################################################ 10181## LIBEWF support 10182 10183# Check whether --enable-libewf was given. 10184if test ${enable_libewf+y} 10185then : 10186 enableval=$enable_libewf; libewf=no 10187else $as_nop 10188 libewf=yes 10189fi 10190 10191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: libewf is $libewf" >&5 10192printf "%s\n" "$as_me: libewf is $libewf" >&6;} 10193if test x"$libewf" == x"yes" ; then 10194 ac_fn_c_check_header_compile "$LINENO" "libewf.h" "ac_cv_header_libewf_h" "$ac_includes_default" 10195if test "x$ac_cv_header_libewf_h" = xyes 10196then : 10197 10198printf "%s\n" "#define HAVE_LIBEWF_H 1" >>confdefs.h 10199 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libewf_get_version in -lewf" >&5 10201printf %s "checking for libewf_get_version in -lewf... " >&6; } 10202if test ${ac_cv_lib_ewf_libewf_get_version+y} 10203then : 10204 printf %s "(cached) " >&6 10205else $as_nop 10206 ac_check_lib_save_LIBS=$LIBS 10207LIBS="-lewf $LIBS" 10208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10209/* end confdefs.h. */ 10210 10211/* Override any GCC internal prototype to avoid an error. 10212 Use char because int might match the return type of a GCC 10213 builtin and then its argument prototype would still apply. */ 10214char libewf_get_version (); 10215int 10216main (void) 10217{ 10218return libewf_get_version (); 10219 ; 10220 return 0; 10221} 10222_ACEOF 10223if ac_fn_c_try_link "$LINENO" 10224then : 10225 ac_cv_lib_ewf_libewf_get_version=yes 10226else $as_nop 10227 ac_cv_lib_ewf_libewf_get_version=no 10228fi 10229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10230 conftest$ac_exeext conftest.$ac_ext 10231LIBS=$ac_check_lib_save_LIBS 10232fi 10233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ewf_libewf_get_version" >&5 10234printf "%s\n" "$ac_cv_lib_ewf_libewf_get_version" >&6; } 10235if test "x$ac_cv_lib_ewf_libewf_get_version" = xyes 10236then : 10237 printf "%s\n" "#define HAVE_LIBEWF 1" >>confdefs.h 10238 10239 LIBS="-lewf $LIBS" 10240 10241else $as_nop 10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libewf not found; no E01 support" >&5 10243printf "%s\n" "$as_me: WARNING: libewf not found; no E01 support" >&2;} 10244 libewf=no 10245fi 10246 10247else $as_nop 10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libewf.h not found; no E01 support" >&5 10249printf "%s\n" "$as_me: WARNING: libewf.h not found; no E01 support" >&2;} 10250 libewf=no 10251fi 10252 10253 ac_fn_c_check_func "$LINENO" "libewf_handle_get_utf8_header_value_notes" "ac_cv_func_libewf_handle_get_utf8_header_value_notes" 10254if test "x$ac_cv_func_libewf_handle_get_utf8_header_value_notes" = xyes 10255then : 10256 printf "%s\n" "#define HAVE_LIBEWF_HANDLE_GET_UTF8_HEADER_VALUE_NOTES 1" >>confdefs.h 10257 10258fi 10259ac_fn_c_check_func "$LINENO" "libewf_error_backtrace_fprint" "ac_cv_func_libewf_error_backtrace_fprint" 10260if test "x$ac_cv_func_libewf_error_backtrace_fprint" = xyes 10261then : 10262 printf "%s\n" "#define HAVE_LIBEWF_ERROR_BACKTRACE_FPRINT 1" >>confdefs.h 10263 10264fi 10265ac_fn_c_check_func "$LINENO" "libewf_handle_close" "ac_cv_func_libewf_handle_close" 10266if test "x$ac_cv_func_libewf_handle_close" = xyes 10267then : 10268 printf "%s\n" "#define HAVE_LIBEWF_HANDLE_CLOSE 1" >>confdefs.h 10269 10270fi 10271ac_fn_c_check_func "$LINENO" "libewf_handle_free" "ac_cv_func_libewf_handle_free" 10272if test "x$ac_cv_func_libewf_handle_free" = xyes 10273then : 10274 printf "%s\n" "#define HAVE_LIBEWF_HANDLE_FREE 1" >>confdefs.h 10275 10276fi 10277ac_fn_c_check_func "$LINENO" "libewf_handle_read_buffer_at_offset" "ac_cv_func_libewf_handle_read_buffer_at_offset" 10278if test "x$ac_cv_func_libewf_handle_read_buffer_at_offset" = xyes 10279then : 10280 printf "%s\n" "#define HAVE_LIBEWF_HANDLE_READ_BUFFER_AT_OFFSET 1" >>confdefs.h 10281 10282fi 10283ac_fn_c_check_func "$LINENO" "libewf_handle_read_random" "ac_cv_func_libewf_handle_read_random" 10284if test "x$ac_cv_func_libewf_handle_read_random" = xyes 10285then : 10286 printf "%s\n" "#define HAVE_LIBEWF_HANDLE_READ_RANDOM 1" >>confdefs.h 10287 10288fi 10289 10290fi 10291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: libewf is now $libewf" >&5 10292printf "%s\n" "$as_me: libewf is now $libewf" >&6;} 10293 10294 10295################################################################ 10296## exiv2 support 10297## now that exif is in place, exiv2 is an optional scanner. 10298## On mingw we also need libiconv 10299## We should probably test to make sure that exiv2 works too 10300 10301# Check whether --enable-exiv2 was given. 10302if test ${enable_exiv2+y} 10303then : 10304 enableval=$enable_exiv2; exiv2=yes 10305else $as_nop 10306 exiv2=no 10307fi 10308 10309if test "${exiv2}" == yes ; then 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 10311printf %s "checking for libiconv_open in -liconv... " >&6; } 10312if test ${ac_cv_lib_iconv_libiconv_open+y} 10313then : 10314 printf %s "(cached) " >&6 10315else $as_nop 10316 ac_check_lib_save_LIBS=$LIBS 10317LIBS="-liconv $LIBS" 10318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320 10321/* Override any GCC internal prototype to avoid an error. 10322 Use char because int might match the return type of a GCC 10323 builtin and then its argument prototype would still apply. */ 10324char libiconv_open (); 10325int 10326main (void) 10327{ 10328return libiconv_open (); 10329 ; 10330 return 0; 10331} 10332_ACEOF 10333if ac_fn_c_try_link "$LINENO" 10334then : 10335 ac_cv_lib_iconv_libiconv_open=yes 10336else $as_nop 10337 ac_cv_lib_iconv_libiconv_open=no 10338fi 10339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10340 conftest$ac_exeext conftest.$ac_ext 10341LIBS=$ac_check_lib_save_LIBS 10342fi 10343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 10344printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; } 10345if test "x$ac_cv_lib_iconv_libiconv_open" = xyes 10346then : 10347 printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h 10348 10349 LIBS="-liconv $LIBS" 10350 10351fi 10352 10353 if test "${mingw}" == yes ; then 10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: exiv2 requires use of the DLL which must be present" >&5 10355printf "%s\n" "$as_me: WARNING: exiv2 requires use of the DLL which must be present" >&2;} 10356 if test `uname -s` = "Linux" ; then 10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: exiv2 is not working properly with mingw and Linux cross-compiling; disabled" >&5 10358printf "%s\n" "$as_me: WARNING: exiv2 is not working properly with mingw and Linux cross-compiling; disabled" >&2;} 10359 exiv2=no 10360 fi 10361 fi 10362fi 10363if test x"$exiv2" == x"yes" ; then 10364 ac_ext=cpp 10365ac_cpp='$CXXCPP $CPPFLAGS' 10366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10369 10370 ac_fn_cxx_check_header_compile "$LINENO" "exiv2/image.hpp" "ac_cv_header_exiv2_image_hpp" "$ac_includes_default" 10371if test "x$ac_cv_header_exiv2_image_hpp" = xyes 10372then : 10373 printf "%s\n" "#define HAVE_EXIV2__z_IMAGE_HPP 1" >>confdefs.h 10374 10375fi 10376ac_fn_cxx_check_header_compile "$LINENO" "exiv2/exif.hpp" "ac_cv_header_exiv2_exif_hpp" "$ac_includes_default" 10377if test "x$ac_cv_header_exiv2_exif_hpp" = xyes 10378then : 10379 printf "%s\n" "#define HAVE_EXIV2__z_EXIF_HPP 1" >>confdefs.h 10380 10381fi 10382ac_fn_cxx_check_header_compile "$LINENO" "exiv2/error.hpp" "ac_cv_header_exiv2_error_hpp" "$ac_includes_default" 10383if test "x$ac_cv_header_exiv2_error_hpp" = xyes 10384then : 10385 printf "%s\n" "#define HAVE_EXIV2__z_ERROR_HPP 1" >>confdefs.h 10386 10387fi 10388 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391 10392 #include <exiv2/image.hpp> 10393 #include <exiv2/exif.hpp> 10394 #include <exiv2/error.hpp> 10395 10396int 10397main (void) 10398{ 10399Exiv2::ImageFactory::open(0,0); 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404if ac_fn_cxx_try_compile "$LINENO" 10405then : 10406 exiv2=yes 10407else $as_nop 10408 exiv2=no 10409fi 10410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10411 if test "${exiv2}" = yes; then 10412 10413printf "%s\n" "#define HAVE_EXIV2__z 1" >>confdefs.h 10414 10415 echo Using EXIV2 10416 if test "${mingw}" = no ; then 10417 LIBS="$LIBS -lexiv2 -lstdc++fs" 10418 else 10419 LIBS="$LIBS -lexiv2 -lstdc++fs.dll" # static version does not work on mingw 10420 fi 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424 #include <exiv2/image.hpp> 10425 #include <exiv2/exif.hpp> 10426 #include <exiv2/error.hpp> 10427 10428int 10429main (void) 10430{ 10431Exiv2::LogMsg::setLevel(Exiv2::LogMsg::mute); 10432 ; 10433 return 0; 10434} 10435_ACEOF 10436if ac_fn_cxx_try_compile "$LINENO" 10437then : 10438 10439fi 10440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10441 fi 10442 ac_ext=c 10443ac_cpp='$CPP $CPPFLAGS' 10444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10446ac_compiler_gnu=$ac_cv_c_compiler_gnu 10447 10448fi 10449 10450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452 #pragma GCC diagnostic ignored "-Wshadow" 10453int 10454main (void) 10455{ 10456 return 0; 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461if ac_fn_c_try_compile "$LINENO" 10462then : 10463 10464printf "%s\n" "#define HAVE_DIAGNOSTIC_SHADOW 1" >>confdefs.h 10465 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10468 10469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10470/* end confdefs.h. */ 10471 #pragma GCC diagnostic ignored "-Wundef" 10472int 10473main (void) 10474{ 10475return 0; 10476 ; 10477 return 0; 10478} 10479_ACEOF 10480if ac_fn_c_try_compile "$LINENO" 10481then : 10482 10483printf "%s\n" "#define HAVE_DIAGNOSTIC_UNDEF 1" >>confdefs.h 10484 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10487 10488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10489/* end confdefs.h. */ 10490#pragma GCC diagnostic ignored "-Wcast-qual" 10491int 10492main (void) 10493{ 10494return 0; 10495 ; 10496 return 0; 10497} 10498_ACEOF 10499if ac_fn_c_try_compile "$LINENO" 10500then : 10501 10502printf "%s\n" "#define HAVE_DIAGNOSTIC_CAST_QUAL 1" >>confdefs.h 10503 10504fi 10505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10506 10507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509#pragma GCC diagnostic ignored "-Weffcpp" 10510int 10511main (void) 10512{ 10513return 0; 10514 ; 10515 return 0; 10516} 10517_ACEOF 10518if ac_fn_c_try_compile "$LINENO" 10519then : 10520 10521printf "%s\n" "#define HAVE_DIAGNOSTIC_EFFCPP 1" >>confdefs.h 10522 10523fi 10524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10525 10526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527/* end confdefs.h. */ 10528#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn" 10529int 10530main (void) 10531{ 10532return 0; 10533 ; 10534 return 0; 10535} 10536_ACEOF 10537if ac_fn_c_try_compile "$LINENO" 10538then : 10539 10540printf "%s\n" "#define HAVE_DIAGNOSTIC_SUGGEST_ATTRIBUTE 1" >>confdefs.h 10541 10542fi 10543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10544 10545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10546/* end confdefs.h. */ 10547#pragma GCC diagnostic ignored "-Wdeprecated-register" 10548int 10549main (void) 10550{ 10551return 0; 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556if ac_fn_c_try_compile "$LINENO" 10557then : 10558 10559printf "%s\n" "#define HAVE_DIAGNOSTIC_DEPRECATED_REGISTER 1" >>confdefs.h 10560 10561fi 10562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10563 10564 10565## If compiling on mingw, add another -lgdi32 to be safe 10566## This is required becuase some libraries reference functions in gdi32 and, for whatever reason, 10567## the linker is not smart enough to re-check the library 10568## 10569## Also add -municode per https://stackoverflow.com/questions/58324230/undefined-reference-to-winmain-c-mingw 10570## but only for be_test 10571if test "${mingw}" == yes ; then 10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding libraries for mingw" >&5 10573printf "%s\n" "$as_me: adding libraries for mingw" >&6;} 10574 LIBS="$LIBS -lgdi32" 10575else 10576 CFLAGS="$CFLAGS -fPIC" 10577 CXXFLAGS="$CXXFLAGS -fPIC" 10578fi 10579 10580################################################################ 10581## AddressSanitizer support 10582# https://github.com/libMesh/libmesh/issues/1396 10583# Check whether --enable-address-sanitizer was given. 10584if test ${enable_address_sanitizer+y} 10585then : 10586 enableval=$enable_address_sanitizer; 10587printf "%s\n" "#define HAVE_ADDRESS_SANITIZER 1" >>confdefs.h 10588 10589 address_sanitizer="yes" 10590 CXXFLAGS="$CXXFLAGS -fsanitize=address -fsanitize-address-use-after-scope" 10591 10592fi 10593 10594 10595################################################################ 10596############## drop optimization flags and add -g if requested ################ 10597# Should we disable optimization? 10598# Check whether --enable-opt was given. 10599if test ${enable_opt+y} 10600then : 10601 enableval=$enable_opt; with_opt=no 10602else $as_nop 10603 with_opt=yes 10604fi 10605 10606 10607# Or maybe just tone it down a bit? 10608# Check whether --enable-o3 was given. 10609if test ${enable_o3+y} 10610then : 10611 enableval=$enable_o3; with_o3=no 10612else $as_nop 10613 with_o3=yes 10614fi 10615 10616 10617if test "${with_opt}" = "no" ; then 10618 CFLAGS=`echo -g "$CFLAGS" | sed s/-O[0-9]//` # note the double quoting! 10619 CXXFLAGS=`echo -g "$CXXFLAGS" | sed s/-O[0-9]//` 10620else 10621 # If we are not stripping the optimizer, 10622 # increase optimizer from -O2 to -O3 if not explicitly forbidden 10623 if test "${with_o3}" != "no" ; then 10624 CFLAGS=`echo -g "$CFLAGS" | sed s/-O2/-O3/` # note the double quoting! 10625 CXXFLAGS=`echo -g "$CXXFLAGS" | sed s/-O2/-O3/` 10626 fi 10627fi 10628 10629 10630################################################################ 10631## Check on two annoying warnings 10632 10633# https://stackoverflow.com/questions/47160617/more-robust-ac-compile-ifelse-feature-testing 10634# MY_COMPILE_CLEAN_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 10635# --------------------------------------------------------------- 10636# Try to compile PROGRAM. 10637 10638 10639 10640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *************************************" >&5 10641printf "%s\n" "$as_me: *************************************" >&6;} 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: *************************************" >&5 10643printf "%s\n" "$as_me: *************************************" >&6;} 10644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: PACKAGE_NAME: $PACKAGE_NAME" >&5 10645printf "%s\n" "$as_me: PACKAGE_NAME: $PACKAGE_NAME" >&6;} 10646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: PACKAGE_VERSION: $PACKAGE_VERSION" >&5 10647printf "%s\n" "$as_me: PACKAGE_VERSION: $PACKAGE_VERSION" >&6;} 10648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC: $CC" >&5 10649printf "%s\n" "$as_me: CC: $CC" >&6;} 10650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CXX: $CXX" >&5 10651printf "%s\n" "$as_me: CXX: $CXX" >&6;} 10652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CPPFLAGS: $CPPFLAGS" >&5 10653printf "%s\n" "$as_me: CPPFLAGS: $CPPFLAGS" >&6;} 10654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CFLAGS: $CFLAGS" >&5 10655printf "%s\n" "$as_me: CFLAGS: $CFLAGS" >&6;} 10656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: CXXFLAGS: $CXXFLAGS" >&5 10657printf "%s\n" "$as_me: CXXFLAGS: $CXXFLAGS" >&6;} 10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS: $LIBS" >&5 10659printf "%s\n" "$as_me: LIBS: $LIBS" >&6;} 10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: LDFLAGS: $LDFLAGS" >&5 10661printf "%s\n" "$as_me: LDFLAGS: $LDFLAGS" >&6;} 10662 10663# 10664# Generate special warnings 10665# 10666 10667if test x"${libewf}" != "xyes" ; then 10668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libewf-devel must be installed for E01 support." >&5 10669printf "%s\n" "$as_me: WARNING: libewf-devel must be installed for E01 support." >&2;} 10670fi 10671 10672cat >confcache <<\_ACEOF 10673# This file is a shell script that caches the results of configure 10674# tests run on this system so they can be shared between configure 10675# scripts and configure runs, see configure's option --config-cache. 10676# It is not useful on other systems. If it contains results you don't 10677# want to keep, you may remove or edit it. 10678# 10679# config.status only pays attention to the cache file if you give it 10680# the --recheck option to rerun configure. 10681# 10682# `ac_cv_env_foo' variables (set or unset) will be overridden when 10683# loading this file, other *unset* `ac_cv_foo' will be assigned the 10684# following values. 10685 10686_ACEOF 10687 10688# The following way of writing the cache mishandles newlines in values, 10689# but we know of no workaround that is simple, portable, and efficient. 10690# So, we kill variables containing newlines. 10691# Ultrix sh set writes to stderr and can't be redirected directly, 10692# and sets the high bit in the cache file unless we assign to the vars. 10693( 10694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10695 eval ac_val=\$$ac_var 10696 case $ac_val in #( 10697 *${as_nl}*) 10698 case $ac_var in #( 10699 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10700printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10701 esac 10702 case $ac_var in #( 10703 _ | IFS | as_nl) ;; #( 10704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10705 *) { eval $ac_var=; unset $ac_var;} ;; 10706 esac ;; 10707 esac 10708 done 10709 10710 (set) 2>&1 | 10711 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10712 *${as_nl}ac_space=\ *) 10713 # `set' does not quote correctly, so add quotes: double-quote 10714 # substitution turns \\\\ into \\, and sed turns \\ into \. 10715 sed -n \ 10716 "s/'/'\\\\''/g; 10717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10718 ;; #( 10719 *) 10720 # `set' quotes correctly as required by POSIX, so do not add quotes. 10721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10722 ;; 10723 esac | 10724 sort 10725) | 10726 sed ' 10727 /^ac_cv_env_/b end 10728 t clear 10729 :clear 10730 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 10731 t end 10732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10733 :end' >>confcache 10734if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10735 if test -w "$cache_file"; then 10736 if test "x$cache_file" != "x/dev/null"; then 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10738printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 10739 if test ! -f "$cache_file" || test -h "$cache_file"; then 10740 cat confcache >"$cache_file" 10741 else 10742 case $cache_file in #( 10743 */* | ?:*) 10744 mv -f confcache "$cache_file"$$ && 10745 mv -f "$cache_file"$$ "$cache_file" ;; #( 10746 *) 10747 mv -f confcache "$cache_file" ;; 10748 esac 10749 fi 10750 fi 10751 else 10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10753printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 10754 fi 10755fi 10756rm -f confcache 10757 10758test "x$prefix" = xNONE && prefix=$ac_default_prefix 10759# Let make expand exec_prefix. 10760test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10761 10762DEFS=-DHAVE_CONFIG_H 10763 10764ac_libobjs= 10765ac_ltlibobjs= 10766U= 10767for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10768 # 1. Remove the extension, and $U if already installed. 10769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10770 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 10771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10772 # will be set to the directory where LIBOBJS objects are built. 10773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10775done 10776LIBOBJS=$ac_libobjs 10777 10778LTLIBOBJS=$ac_ltlibobjs 10779 10780 10781if test -z "${FOUND_GIT_TRUE}" && test -z "${FOUND_GIT_FALSE}"; then 10782 as_fn_error $? "conditional \"FOUND_GIT\" was never defined. 10783Usually this means the macro was only invoked conditionally." "$LINENO" 5 10784fi 10785 10786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10787printf %s "checking that generated files are newer than configure... " >&6; } 10788 if test -n "$am_sleep_pid"; then 10789 # Hide warnings about reused PIDs. 10790 wait $am_sleep_pid 2>/dev/null 10791 fi 10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 10793printf "%s\n" "done" >&6; } 10794if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10795 as_fn_error $? "conditional \"AMDEP\" was never defined. 10796Usually this means the macro was only invoked conditionally." "$LINENO" 5 10797fi 10798if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10799 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10800Usually this means the macro was only invoked conditionally." "$LINENO" 5 10801fi 10802 if test -n "$EXEEXT"; then 10803 am__EXEEXT_TRUE= 10804 am__EXEEXT_FALSE='#' 10805else 10806 am__EXEEXT_TRUE='#' 10807 am__EXEEXT_FALSE= 10808fi 10809 10810if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10811 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10812Usually this means the macro was only invoked conditionally." "$LINENO" 5 10813fi 10814if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10815 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10816Usually this means the macro was only invoked conditionally." "$LINENO" 5 10817fi 10818if test -z "${RAR_ENABLED_TRUE}" && test -z "${RAR_ENABLED_FALSE}"; then 10819 as_fn_error $? "conditional \"RAR_ENABLED\" was never defined. 10820Usually this means the macro was only invoked conditionally." "$LINENO" 5 10821fi 10822if test -z "${LIGHTGREP_ENABLED_TRUE}" && test -z "${LIGHTGREP_ENABLED_FALSE}"; then 10823 as_fn_error $? "conditional \"LIGHTGREP_ENABLED\" was never defined. 10824Usually this means the macro was only invoked conditionally." "$LINENO" 5 10825fi 10826if test -z "${FLEXSCANNERS_ENABLED_TRUE}" && test -z "${FLEXSCANNERS_ENABLED_FALSE}"; then 10827 as_fn_error $? "conditional \"FLEXSCANNERS_ENABLED\" was never defined. 10828Usually this means the macro was only invoked conditionally." "$LINENO" 5 10829fi 10830 10831: "${CONFIG_STATUS=./config.status}" 10832ac_write_fail=0 10833ac_clean_files_save=$ac_clean_files 10834ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10836printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 10837as_write_fail=0 10838cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10839#! $SHELL 10840# Generated by $as_me. 10841# Run this file to recreate the current configuration. 10842# Compiler output produced by configure, useful for debugging 10843# configure, is in config.log if it exists. 10844 10845debug=false 10846ac_cs_recheck=false 10847ac_cs_silent=false 10848 10849SHELL=\${CONFIG_SHELL-$SHELL} 10850export SHELL 10851_ASEOF 10852cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10853## -------------------- ## 10854## M4sh Initialization. ## 10855## -------------------- ## 10856 10857# Be more Bourne compatible 10858DUALCASE=1; export DUALCASE # for MKS sh 10859as_nop=: 10860if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 10861then : 10862 emulate sh 10863 NULLCMD=: 10864 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10865 # is contrary to our usage. Disable this feature. 10866 alias -g '${1+"$@"}'='"$@"' 10867 setopt NO_GLOB_SUBST 10868else $as_nop 10869 case `(set -o) 2>/dev/null` in #( 10870 *posix*) : 10871 set -o posix ;; #( 10872 *) : 10873 ;; 10874esac 10875fi 10876 10877 10878 10879# Reset variables that may have inherited troublesome values from 10880# the environment. 10881 10882# IFS needs to be set, to space, tab, and newline, in precisely that order. 10883# (If _AS_PATH_WALK were called with IFS unset, it would have the 10884# side effect of setting IFS to empty, thus disabling word splitting.) 10885# Quoting is to prevent editors from complaining about space-tab. 10886as_nl=' 10887' 10888export as_nl 10889IFS=" "" $as_nl" 10890 10891PS1='$ ' 10892PS2='> ' 10893PS4='+ ' 10894 10895# Ensure predictable behavior from utilities with locale-dependent output. 10896LC_ALL=C 10897export LC_ALL 10898LANGUAGE=C 10899export LANGUAGE 10900 10901# We cannot yet rely on "unset" to work, but we need these variables 10902# to be unset--not just set to an empty or harmless value--now, to 10903# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 10904# also avoids known problems related to "unset" and subshell syntax 10905# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 10906for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 10907do eval test \${$as_var+y} \ 10908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10909done 10910 10911# Ensure that fds 0, 1, and 2 are open. 10912if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 10913if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 10914if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 10915 10916# The user is always right. 10917if ${PATH_SEPARATOR+false} :; then 10918 PATH_SEPARATOR=: 10919 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10920 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10921 PATH_SEPARATOR=';' 10922 } 10923fi 10924 10925 10926# Find who we are. Look in the path if we contain no directory separator. 10927as_myself= 10928case $0 in #(( 10929 *[\\/]* ) as_myself=$0 ;; 10930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10931for as_dir in $PATH 10932do 10933 IFS=$as_save_IFS 10934 case $as_dir in #((( 10935 '') as_dir=./ ;; 10936 */) ;; 10937 *) as_dir=$as_dir/ ;; 10938 esac 10939 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10940 done 10941IFS=$as_save_IFS 10942 10943 ;; 10944esac 10945# We did not find ourselves, most probably we were run as `sh COMMAND' 10946# in which case we are not to be found in the path. 10947if test "x$as_myself" = x; then 10948 as_myself=$0 10949fi 10950if test ! -f "$as_myself"; then 10951 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10952 exit 1 10953fi 10954 10955 10956 10957# as_fn_error STATUS ERROR [LINENO LOG_FD] 10958# ---------------------------------------- 10959# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10960# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10961# script with STATUS, using 1 if that was 0. 10962as_fn_error () 10963{ 10964 as_status=$1; test $as_status -eq 0 && as_status=1 10965 if test "$4"; then 10966 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10968 fi 10969 printf "%s\n" "$as_me: error: $2" >&2 10970 as_fn_exit $as_status 10971} # as_fn_error 10972 10973 10974 10975# as_fn_set_status STATUS 10976# ----------------------- 10977# Set $? to STATUS, without forking. 10978as_fn_set_status () 10979{ 10980 return $1 10981} # as_fn_set_status 10982 10983# as_fn_exit STATUS 10984# ----------------- 10985# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10986as_fn_exit () 10987{ 10988 set +e 10989 as_fn_set_status $1 10990 exit $1 10991} # as_fn_exit 10992 10993# as_fn_unset VAR 10994# --------------- 10995# Portably unset VAR. 10996as_fn_unset () 10997{ 10998 { eval $1=; unset $1;} 10999} 11000as_unset=as_fn_unset 11001 11002# as_fn_append VAR VALUE 11003# ---------------------- 11004# Append the text in VALUE to the end of the definition contained in VAR. Take 11005# advantage of any shell optimizations that allow amortized linear growth over 11006# repeated appends, instead of the typical quadratic growth present in naive 11007# implementations. 11008if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11009then : 11010 eval 'as_fn_append () 11011 { 11012 eval $1+=\$2 11013 }' 11014else $as_nop 11015 as_fn_append () 11016 { 11017 eval $1=\$$1\$2 11018 } 11019fi # as_fn_append 11020 11021# as_fn_arith ARG... 11022# ------------------ 11023# Perform arithmetic evaluation on the ARGs, and store the result in the 11024# global $as_val. Take advantage of shells that can avoid forks. The arguments 11025# must be portable across $(()) and expr. 11026if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11027then : 11028 eval 'as_fn_arith () 11029 { 11030 as_val=$(( $* )) 11031 }' 11032else $as_nop 11033 as_fn_arith () 11034 { 11035 as_val=`expr "$@" || test $? -eq 1` 11036 } 11037fi # as_fn_arith 11038 11039 11040if expr a : '\(a\)' >/dev/null 2>&1 && 11041 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11042 as_expr=expr 11043else 11044 as_expr=false 11045fi 11046 11047if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11048 as_basename=basename 11049else 11050 as_basename=false 11051fi 11052 11053if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11054 as_dirname=dirname 11055else 11056 as_dirname=false 11057fi 11058 11059as_me=`$as_basename -- "$0" || 11060$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11061 X"$0" : 'X\(//\)$' \| \ 11062 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11063printf "%s\n" X/"$0" | 11064 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11065 s//\1/ 11066 q 11067 } 11068 /^X\/\(\/\/\)$/{ 11069 s//\1/ 11070 q 11071 } 11072 /^X\/\(\/\).*/{ 11073 s//\1/ 11074 q 11075 } 11076 s/.*/./; q'` 11077 11078# Avoid depending upon Character Ranges. 11079as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11081as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11082as_cr_digits='0123456789' 11083as_cr_alnum=$as_cr_Letters$as_cr_digits 11084 11085 11086# Determine whether it's possible to make 'echo' print without a newline. 11087# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11088# for compatibility with existing Makefiles. 11089ECHO_C= ECHO_N= ECHO_T= 11090case `echo -n x` in #((((( 11091-n*) 11092 case `echo 'xy\c'` in 11093 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11094 xy) ECHO_C='\c';; 11095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11096 ECHO_T=' ';; 11097 esac;; 11098*) 11099 ECHO_N='-n';; 11100esac 11101 11102# For backward compatibility with old third-party macros, we provide 11103# the shell variables $as_echo and $as_echo_n. New code should use 11104# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11105as_echo='printf %s\n' 11106as_echo_n='printf %s' 11107 11108rm -f conf$$ conf$$.exe conf$$.file 11109if test -d conf$$.dir; then 11110 rm -f conf$$.dir/conf$$.file 11111else 11112 rm -f conf$$.dir 11113 mkdir conf$$.dir 2>/dev/null 11114fi 11115if (echo >conf$$.file) 2>/dev/null; then 11116 if ln -s conf$$.file conf$$ 2>/dev/null; then 11117 as_ln_s='ln -s' 11118 # ... but there are two gotchas: 11119 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11120 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11121 # In both cases, we have to default to `cp -pR'. 11122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11123 as_ln_s='cp -pR' 11124 elif ln conf$$.file conf$$ 2>/dev/null; then 11125 as_ln_s=ln 11126 else 11127 as_ln_s='cp -pR' 11128 fi 11129else 11130 as_ln_s='cp -pR' 11131fi 11132rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11133rmdir conf$$.dir 2>/dev/null 11134 11135 11136# as_fn_mkdir_p 11137# ------------- 11138# Create "$as_dir" as a directory, including parents if necessary. 11139as_fn_mkdir_p () 11140{ 11141 11142 case $as_dir in #( 11143 -*) as_dir=./$as_dir;; 11144 esac 11145 test -d "$as_dir" || eval $as_mkdir_p || { 11146 as_dirs= 11147 while :; do 11148 case $as_dir in #( 11149 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11150 *) as_qdir=$as_dir;; 11151 esac 11152 as_dirs="'$as_qdir' $as_dirs" 11153 as_dir=`$as_dirname -- "$as_dir" || 11154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11155 X"$as_dir" : 'X\(//\)[^/]' \| \ 11156 X"$as_dir" : 'X\(//\)$' \| \ 11157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11158printf "%s\n" X"$as_dir" | 11159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11160 s//\1/ 11161 q 11162 } 11163 /^X\(\/\/\)[^/].*/{ 11164 s//\1/ 11165 q 11166 } 11167 /^X\(\/\/\)$/{ 11168 s//\1/ 11169 q 11170 } 11171 /^X\(\/\).*/{ 11172 s//\1/ 11173 q 11174 } 11175 s/.*/./; q'` 11176 test -d "$as_dir" && break 11177 done 11178 test -z "$as_dirs" || eval "mkdir $as_dirs" 11179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11180 11181 11182} # as_fn_mkdir_p 11183if mkdir -p . 2>/dev/null; then 11184 as_mkdir_p='mkdir -p "$as_dir"' 11185else 11186 test -d ./-p && rmdir ./-p 11187 as_mkdir_p=false 11188fi 11189 11190 11191# as_fn_executable_p FILE 11192# ----------------------- 11193# Test if FILE is an executable regular file. 11194as_fn_executable_p () 11195{ 11196 test -f "$1" && test -x "$1" 11197} # as_fn_executable_p 11198as_test_x='test -x' 11199as_executable_p=as_fn_executable_p 11200 11201# Sed expression to map a string onto a valid CPP name. 11202as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11203 11204# Sed expression to map a string onto a valid variable name. 11205as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11206 11207 11208exec 6>&1 11209## ----------------------------------- ## 11210## Main body of $CONFIG_STATUS script. ## 11211## ----------------------------------- ## 11212_ASEOF 11213test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11214 11215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11216# Save the log message, to keep $0 and so on meaningful, and to 11217# report actual input values of CONFIG_FILES etc. instead of their 11218# values after options handling. 11219ac_log=" 11220This file was extended by BULK_EXTRACTOR $as_me 2.0.0-beta2, which was 11221generated by GNU Autoconf 2.71. Invocation command line was 11222 11223 CONFIG_FILES = $CONFIG_FILES 11224 CONFIG_HEADERS = $CONFIG_HEADERS 11225 CONFIG_LINKS = $CONFIG_LINKS 11226 CONFIG_COMMANDS = $CONFIG_COMMANDS 11227 $ $0 $@ 11228 11229on `(hostname || uname -n) 2>/dev/null | sed 1q` 11230" 11231 11232_ACEOF 11233 11234case $ac_config_files in *" 11235"*) set x $ac_config_files; shift; ac_config_files=$*;; 11236esac 11237 11238case $ac_config_headers in *" 11239"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11240esac 11241 11242 11243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11244# Files that config.status was made for. 11245config_files="$ac_config_files" 11246config_headers="$ac_config_headers" 11247config_commands="$ac_config_commands" 11248 11249_ACEOF 11250 11251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11252ac_cs_usage="\ 11253\`$as_me' instantiates files and other configuration actions 11254from templates according to the current configuration. Unless the files 11255and actions are specified as TAGs, all are instantiated by default. 11256 11257Usage: $0 [OPTION]... [TAG]... 11258 11259 -h, --help print this help, then exit 11260 -V, --version print version number and configuration settings, then exit 11261 --config print configuration, then exit 11262 -q, --quiet, --silent 11263 do not print progress messages 11264 -d, --debug don't remove temporary files 11265 --recheck update $as_me by reconfiguring in the same conditions 11266 --file=FILE[:TEMPLATE] 11267 instantiate the configuration file FILE 11268 --header=FILE[:TEMPLATE] 11269 instantiate the configuration header FILE 11270 11271Configuration files: 11272$config_files 11273 11274Configuration headers: 11275$config_headers 11276 11277Configuration commands: 11278$config_commands 11279 11280Report bugs to <bugs@digitalcorpora.org>." 11281 11282_ACEOF 11283ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11284ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11286ac_cs_config='$ac_cs_config_escaped' 11287ac_cs_version="\\ 11288BULK_EXTRACTOR config.status 2.0.0-beta2 11289configured by $0, generated by GNU Autoconf 2.71, 11290 with options \\"\$ac_cs_config\\" 11291 11292Copyright (C) 2021 Free Software Foundation, Inc. 11293This config.status script is free software; the Free Software Foundation 11294gives unlimited permission to copy, distribute and modify it." 11295 11296ac_pwd='$ac_pwd' 11297srcdir='$srcdir' 11298INSTALL='$INSTALL' 11299MKDIR_P='$MKDIR_P' 11300AWK='$AWK' 11301test -n "\$AWK" || AWK=awk 11302_ACEOF 11303 11304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11305# The default lists apply if the user does not specify any file. 11306ac_need_defaults=: 11307while test $# != 0 11308do 11309 case $1 in 11310 --*=?*) 11311 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11313 ac_shift=: 11314 ;; 11315 --*=) 11316 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11317 ac_optarg= 11318 ac_shift=: 11319 ;; 11320 *) 11321 ac_option=$1 11322 ac_optarg=$2 11323 ac_shift=shift 11324 ;; 11325 esac 11326 11327 case $ac_option in 11328 # Handling of the options. 11329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11330 ac_cs_recheck=: ;; 11331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11332 printf "%s\n" "$ac_cs_version"; exit ;; 11333 --config | --confi | --conf | --con | --co | --c ) 11334 printf "%s\n" "$ac_cs_config"; exit ;; 11335 --debug | --debu | --deb | --de | --d | -d ) 11336 debug=: ;; 11337 --file | --fil | --fi | --f ) 11338 $ac_shift 11339 case $ac_optarg in 11340 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11341 '') as_fn_error $? "missing file argument" ;; 11342 esac 11343 as_fn_append CONFIG_FILES " '$ac_optarg'" 11344 ac_need_defaults=false;; 11345 --header | --heade | --head | --hea ) 11346 $ac_shift 11347 case $ac_optarg in 11348 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11349 esac 11350 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11351 ac_need_defaults=false;; 11352 --he | --h) 11353 # Conflict between --help and --header 11354 as_fn_error $? "ambiguous option: \`$1' 11355Try \`$0 --help' for more information.";; 11356 --help | --hel | -h ) 11357 printf "%s\n" "$ac_cs_usage"; exit ;; 11358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11359 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11360 ac_cs_silent=: ;; 11361 11362 # This is an error. 11363 -*) as_fn_error $? "unrecognized option: \`$1' 11364Try \`$0 --help' for more information." ;; 11365 11366 *) as_fn_append ac_config_targets " $1" 11367 ac_need_defaults=false ;; 11368 11369 esac 11370 shift 11371done 11372 11373ac_configure_extra_args= 11374 11375if $ac_cs_silent; then 11376 exec 6>/dev/null 11377 ac_configure_extra_args="$ac_configure_extra_args --silent" 11378fi 11379 11380_ACEOF 11381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11382if \$ac_cs_recheck; then 11383 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11384 shift 11385 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11386 CONFIG_SHELL='$SHELL' 11387 export CONFIG_SHELL 11388 exec "\$@" 11389fi 11390 11391_ACEOF 11392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11393exec 5>>config.log 11394{ 11395 echo 11396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11397## Running $as_me. ## 11398_ASBOX 11399 printf "%s\n" "$ac_log" 11400} >&5 11401 11402_ACEOF 11403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11404# 11405# INIT-COMMANDS 11406# 11407AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11408 11409_ACEOF 11410 11411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11412 11413# Handling of arguments. 11414for ac_config_target in $ac_config_targets 11415do 11416 case $ac_config_target in 11417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11418 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11419 "doc/latex_manuals/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex_manuals/Makefile" ;; 11420 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11421 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 11422 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11423 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 11424 "specfiles/Makefile") CONFIG_FILES="$CONFIG_FILES specfiles/Makefile" ;; 11425 "specfiles/bulk_extractor.spec.m4") CONFIG_FILES="$CONFIG_FILES specfiles/bulk_extractor.spec.m4" ;; 11426 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 11427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11429 11430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11431 esac 11432done 11433 11434 11435# If the user did not use the arguments to specify the items to instantiate, 11436# then the envvar interface is used. Set only those that are not. 11437# We use the long form for the default assignment because of an extremely 11438# bizarre bug on SunOS 4.1.3. 11439if $ac_need_defaults; then 11440 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11441 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11442 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11443fi 11444 11445# Have a temporary directory for convenience. Make it in the build tree 11446# simply because there is no reason against having it here, and in addition, 11447# creating and moving files from /tmp can sometimes cause problems. 11448# Hook for its removal unless debugging. 11449# Note that there is a small window in which the directory will not be cleaned: 11450# after its creation but before its name has been assigned to `$tmp'. 11451$debug || 11452{ 11453 tmp= ac_tmp= 11454 trap 'exit_status=$? 11455 : "${ac_tmp:=$tmp}" 11456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11457' 0 11458 trap 'as_fn_exit 1' 1 2 13 15 11459} 11460# Create a (secure) tmp directory for tmp files. 11461 11462{ 11463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11464 test -d "$tmp" 11465} || 11466{ 11467 tmp=./conf$$-$RANDOM 11468 (umask 077 && mkdir "$tmp") 11469} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11470ac_tmp=$tmp 11471 11472# Set up the scripts for CONFIG_FILES section. 11473# No need to generate them if there are no CONFIG_FILES. 11474# This happens for instance with `./config.status config.h'. 11475if test -n "$CONFIG_FILES"; then 11476 11477 11478ac_cr=`echo X | tr X '\015'` 11479# On cygwin, bash can eat \r inside `` if the user requested igncr. 11480# But we know of no other shell where ac_cr would be empty at this 11481# point, so we can use a bashism as a fallback. 11482if test "x$ac_cr" = x; then 11483 eval ac_cr=\$\'\\r\' 11484fi 11485ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11486if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11487 ac_cs_awk_cr='\\r' 11488else 11489 ac_cs_awk_cr=$ac_cr 11490fi 11491 11492echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11493_ACEOF 11494 11495 11496{ 11497 echo "cat >conf$$subs.awk <<_ACEOF" && 11498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11499 echo "_ACEOF" 11500} >conf$$subs.sh || 11501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11502ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11503ac_delim='%!_!# ' 11504for ac_last_try in false false false false false :; do 11505 . ./conf$$subs.sh || 11506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11507 11508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11509 if test $ac_delim_n = $ac_delim_num; then 11510 break 11511 elif $ac_last_try; then 11512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11513 else 11514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11515 fi 11516done 11517rm -f conf$$subs.sh 11518 11519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11520cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11521_ACEOF 11522sed -n ' 11523h 11524s/^/S["/; s/!.*/"]=/ 11525p 11526g 11527s/^[^!]*!// 11528:repl 11529t repl 11530s/'"$ac_delim"'$// 11531t delim 11532:nl 11533h 11534s/\(.\{148\}\)..*/\1/ 11535t more1 11536s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11537p 11538n 11539b repl 11540:more1 11541s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11542p 11543g 11544s/.\{148\}// 11545t nl 11546:delim 11547h 11548s/\(.\{148\}\)..*/\1/ 11549t more2 11550s/["\\]/\\&/g; s/^/"/; s/$/"/ 11551p 11552b 11553:more2 11554s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11555p 11556g 11557s/.\{148\}// 11558t delim 11559' <conf$$subs.awk | sed ' 11560/^[^""]/{ 11561 N 11562 s/\n// 11563} 11564' >>$CONFIG_STATUS || ac_write_fail=1 11565rm -f conf$$subs.awk 11566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11567_ACAWK 11568cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11569 for (key in S) S_is_set[key] = 1 11570 FS = "" 11571 11572} 11573{ 11574 line = $ 0 11575 nfields = split(line, field, "@") 11576 substed = 0 11577 len = length(field[1]) 11578 for (i = 2; i < nfields; i++) { 11579 key = field[i] 11580 keylen = length(key) 11581 if (S_is_set[key]) { 11582 value = S[key] 11583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11584 len += length(value) + length(field[++i]) 11585 substed = 1 11586 } else 11587 len += 1 + keylen 11588 } 11589 11590 print line 11591} 11592 11593_ACAWK 11594_ACEOF 11595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11596if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11598else 11599 cat 11600fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11602_ACEOF 11603 11604# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11605# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11606# trailing colons and then remove the whole line if VPATH becomes empty 11607# (actually we leave an empty line to preserve line numbers). 11608if test "x$srcdir" = x.; then 11609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11610h 11611s/// 11612s/^/:/ 11613s/[ ]*$/:/ 11614s/:\$(srcdir):/:/g 11615s/:\${srcdir}:/:/g 11616s/:@srcdir@:/:/g 11617s/^:*// 11618s/:*$// 11619x 11620s/\(=[ ]*\).*/\1/ 11621G 11622s/\n// 11623s/^[^=]*=[ ]*$// 11624}' 11625fi 11626 11627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11628fi # test -n "$CONFIG_FILES" 11629 11630# Set up the scripts for CONFIG_HEADERS section. 11631# No need to generate them if there are no CONFIG_HEADERS. 11632# This happens for instance with `./config.status Makefile'. 11633if test -n "$CONFIG_HEADERS"; then 11634cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11635BEGIN { 11636_ACEOF 11637 11638# Transform confdefs.h into an awk script `defines.awk', embedded as 11639# here-document in config.status, that substitutes the proper values into 11640# config.h.in to produce config.h. 11641 11642# Create a delimiter string that does not exist in confdefs.h, to ease 11643# handling of long lines. 11644ac_delim='%!_!# ' 11645for ac_last_try in false false :; do 11646 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11647 if test -z "$ac_tt"; then 11648 break 11649 elif $ac_last_try; then 11650 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11651 else 11652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11653 fi 11654done 11655 11656# For the awk script, D is an array of macro values keyed by name, 11657# likewise P contains macro parameters if any. Preserve backslash 11658# newline sequences. 11659 11660ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11661sed -n ' 11662s/.\{148\}/&'"$ac_delim"'/g 11663t rset 11664:rset 11665s/^[ ]*#[ ]*define[ ][ ]*/ / 11666t def 11667d 11668:def 11669s/\\$// 11670t bsnl 11671s/["\\]/\\&/g 11672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11673D["\1"]=" \3"/p 11674s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11675d 11676:bsnl 11677s/["\\]/\\&/g 11678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11679D["\1"]=" \3\\\\\\n"\\/p 11680t cont 11681s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11682t cont 11683d 11684:cont 11685n 11686s/.\{148\}/&'"$ac_delim"'/g 11687t clear 11688:clear 11689s/\\$// 11690t bsnlc 11691s/["\\]/\\&/g; s/^/"/; s/$/"/p 11692d 11693:bsnlc 11694s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11695b cont 11696' <confdefs.h | sed ' 11697s/'"$ac_delim"'/"\\\ 11698"/g' >>$CONFIG_STATUS || ac_write_fail=1 11699 11700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11701 for (key in D) D_is_set[key] = 1 11702 FS = "" 11703} 11704/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11705 line = \$ 0 11706 split(line, arg, " ") 11707 if (arg[1] == "#") { 11708 defundef = arg[2] 11709 mac1 = arg[3] 11710 } else { 11711 defundef = substr(arg[1], 2) 11712 mac1 = arg[2] 11713 } 11714 split(mac1, mac2, "(") #) 11715 macro = mac2[1] 11716 prefix = substr(line, 1, index(line, defundef) - 1) 11717 if (D_is_set[macro]) { 11718 # Preserve the white space surrounding the "#". 11719 print prefix "define", macro P[macro] D[macro] 11720 next 11721 } else { 11722 # Replace #undef with comments. This is necessary, for example, 11723 # in the case of _POSIX_SOURCE, which is predefined and required 11724 # on some systems where configure will not decide to define it. 11725 if (defundef == "undef") { 11726 print "/*", prefix defundef, macro, "*/" 11727 next 11728 } 11729 } 11730} 11731{ print } 11732_ACAWK 11733_ACEOF 11734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11735 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11736fi # test -n "$CONFIG_HEADERS" 11737 11738 11739eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11740shift 11741for ac_tag 11742do 11743 case $ac_tag in 11744 :[FHLC]) ac_mode=$ac_tag; continue;; 11745 esac 11746 case $ac_mode$ac_tag in 11747 :[FHL]*:*);; 11748 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11749 :[FH]-) ac_tag=-:-;; 11750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11751 esac 11752 ac_save_IFS=$IFS 11753 IFS=: 11754 set x $ac_tag 11755 IFS=$ac_save_IFS 11756 shift 11757 ac_file=$1 11758 shift 11759 11760 case $ac_mode in 11761 :L) ac_source=$1;; 11762 :[FH]) 11763 ac_file_inputs= 11764 for ac_f 11765 do 11766 case $ac_f in 11767 -) ac_f="$ac_tmp/stdin";; 11768 *) # Look for the file first in the build tree, then in the source tree 11769 # (if the path is not absolute). The absolute path cannot be DOS-style, 11770 # because $ac_f cannot contain `:'. 11771 test -f "$ac_f" || 11772 case $ac_f in 11773 [\\/$]*) false;; 11774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11775 esac || 11776 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11777 esac 11778 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11779 as_fn_append ac_file_inputs " '$ac_f'" 11780 done 11781 11782 # Let's still pretend it is `configure' which instantiates (i.e., don't 11783 # use $as_me), people would be surprised to read: 11784 # /* config.h. Generated by config.status. */ 11785 configure_input='Generated from '` 11786 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11787 `' by configure.' 11788 if test x"$ac_file" != x-; then 11789 configure_input="$ac_file. $configure_input" 11790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11791printf "%s\n" "$as_me: creating $ac_file" >&6;} 11792 fi 11793 # Neutralize special characters interpreted by sed in replacement strings. 11794 case $configure_input in #( 11795 *\&* | *\|* | *\\* ) 11796 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 11797 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11798 *) ac_sed_conf_input=$configure_input;; 11799 esac 11800 11801 case $ac_tag in 11802 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11804 esac 11805 ;; 11806 esac 11807 11808 ac_dir=`$as_dirname -- "$ac_file" || 11809$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11810 X"$ac_file" : 'X\(//\)[^/]' \| \ 11811 X"$ac_file" : 'X\(//\)$' \| \ 11812 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11813printf "%s\n" X"$ac_file" | 11814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11815 s//\1/ 11816 q 11817 } 11818 /^X\(\/\/\)[^/].*/{ 11819 s//\1/ 11820 q 11821 } 11822 /^X\(\/\/\)$/{ 11823 s//\1/ 11824 q 11825 } 11826 /^X\(\/\).*/{ 11827 s//\1/ 11828 q 11829 } 11830 s/.*/./; q'` 11831 as_dir="$ac_dir"; as_fn_mkdir_p 11832 ac_builddir=. 11833 11834case "$ac_dir" in 11835.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11836*) 11837 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 11838 # A ".." for each directory in $ac_dir_suffix. 11839 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11840 case $ac_top_builddir_sub in 11841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11843 esac ;; 11844esac 11845ac_abs_top_builddir=$ac_pwd 11846ac_abs_builddir=$ac_pwd$ac_dir_suffix 11847# for backward compatibility: 11848ac_top_builddir=$ac_top_build_prefix 11849 11850case $srcdir in 11851 .) # We are building in place. 11852 ac_srcdir=. 11853 ac_top_srcdir=$ac_top_builddir_sub 11854 ac_abs_top_srcdir=$ac_pwd ;; 11855 [\\/]* | ?:[\\/]* ) # Absolute name. 11856 ac_srcdir=$srcdir$ac_dir_suffix; 11857 ac_top_srcdir=$srcdir 11858 ac_abs_top_srcdir=$srcdir ;; 11859 *) # Relative name. 11860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11861 ac_top_srcdir=$ac_top_build_prefix$srcdir 11862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11863esac 11864ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11865 11866 11867 case $ac_mode in 11868 :F) 11869 # 11870 # CONFIG_FILE 11871 # 11872 11873 case $INSTALL in 11874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11876 esac 11877 ac_MKDIR_P=$MKDIR_P 11878 case $MKDIR_P in 11879 [\\/$]* | ?:[\\/]* ) ;; 11880 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11881 esac 11882_ACEOF 11883 11884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11885# If the template does not know about datarootdir, expand it. 11886# FIXME: This hack should be removed a few years after 2.60. 11887ac_datarootdir_hack=; ac_datarootdir_seen= 11888ac_sed_dataroot=' 11889/datarootdir/ { 11890 p 11891 q 11892} 11893/@datadir@/p 11894/@docdir@/p 11895/@infodir@/p 11896/@localedir@/p 11897/@mandir@/p' 11898case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11899*datarootdir*) ac_datarootdir_seen=yes;; 11900*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11902printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11903_ACEOF 11904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11905 ac_datarootdir_hack=' 11906 s&@datadir@&$datadir&g 11907 s&@docdir@&$docdir&g 11908 s&@infodir@&$infodir&g 11909 s&@localedir@&$localedir&g 11910 s&@mandir@&$mandir&g 11911 s&\\\${datarootdir}&$datarootdir&g' ;; 11912esac 11913_ACEOF 11914 11915# Neutralize VPATH when `$srcdir' = `.'. 11916# Shell code in configure.ac might set extrasub. 11917# FIXME: do we really want to maintain this feature? 11918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11919ac_sed_extra="$ac_vpsub 11920$extrasub 11921_ACEOF 11922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11923:t 11924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11925s|@configure_input@|$ac_sed_conf_input|;t t 11926s&@top_builddir@&$ac_top_builddir_sub&;t t 11927s&@top_build_prefix@&$ac_top_build_prefix&;t t 11928s&@srcdir@&$ac_srcdir&;t t 11929s&@abs_srcdir@&$ac_abs_srcdir&;t t 11930s&@top_srcdir@&$ac_top_srcdir&;t t 11931s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11932s&@builddir@&$ac_builddir&;t t 11933s&@abs_builddir@&$ac_abs_builddir&;t t 11934s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11935s&@INSTALL@&$ac_INSTALL&;t t 11936s&@MKDIR_P@&$ac_MKDIR_P&;t t 11937$ac_datarootdir_hack 11938" 11939eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11940 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11941 11942test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11943 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11944 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11945 "$ac_tmp/out"`; test -z "$ac_out"; } && 11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11947which seems to be undefined. Please make sure it is defined" >&5 11948printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11949which seems to be undefined. Please make sure it is defined" >&2;} 11950 11951 rm -f "$ac_tmp/stdin" 11952 case $ac_file in 11953 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11954 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11955 esac \ 11956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11957 ;; 11958 :H) 11959 # 11960 # CONFIG_HEADER 11961 # 11962 if test x"$ac_file" != x-; then 11963 { 11964 printf "%s\n" "/* $configure_input */" >&1 \ 11965 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11966 } >"$ac_tmp/config.h" \ 11967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11968 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11970printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 11971 else 11972 rm -f "$ac_file" 11973 mv "$ac_tmp/config.h" "$ac_file" \ 11974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11975 fi 11976 else 11977 printf "%s\n" "/* $configure_input */" >&1 \ 11978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11979 || as_fn_error $? "could not create -" "$LINENO" 5 11980 fi 11981# Compute "$ac_file"'s index in $config_headers. 11982_am_arg="$ac_file" 11983_am_stamp_count=1 11984for _am_header in $config_headers :; do 11985 case $_am_header in 11986 $_am_arg | $_am_arg:* ) 11987 break ;; 11988 * ) 11989 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11990 esac 11991done 11992echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11993$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11994 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11995 X"$_am_arg" : 'X\(//\)$' \| \ 11996 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11997printf "%s\n" X"$_am_arg" | 11998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11999 s//\1/ 12000 q 12001 } 12002 /^X\(\/\/\)[^/].*/{ 12003 s//\1/ 12004 q 12005 } 12006 /^X\(\/\/\)$/{ 12007 s//\1/ 12008 q 12009 } 12010 /^X\(\/\).*/{ 12011 s//\1/ 12012 q 12013 } 12014 s/.*/./; q'`/stamp-h$_am_stamp_count 12015 ;; 12016 12017 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12018printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12019 ;; 12020 esac 12021 12022 12023 case $ac_file$ac_mode in 12024 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12025 # Older Autoconf quotes --file arguments for eval, but not when files 12026 # are listed without --file. Let's play safe and only enable the eval 12027 # if we detect the quoting. 12028 # TODO: see whether this extra hack can be removed once we start 12029 # requiring Autoconf 2.70 or later. 12030 case $CONFIG_FILES in #( 12031 *\'*) : 12032 eval set x "$CONFIG_FILES" ;; #( 12033 *) : 12034 set x $CONFIG_FILES ;; #( 12035 *) : 12036 ;; 12037esac 12038 shift 12039 # Used to flag and report bootstrapping failures. 12040 am_rc=0 12041 for am_mf 12042 do 12043 # Strip MF so we end up with the name of the file. 12044 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12045 # Check whether this is an Automake generated Makefile which includes 12046 # dependency-tracking related rules and includes. 12047 # Grep'ing the whole file directly is not great: AIX grep has a line 12048 # limit of 2048, but all sed's we know have understand at least 4000. 12049 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12050 || continue 12051 am_dirpart=`$as_dirname -- "$am_mf" || 12052$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12053 X"$am_mf" : 'X\(//\)[^/]' \| \ 12054 X"$am_mf" : 'X\(//\)$' \| \ 12055 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12056printf "%s\n" X"$am_mf" | 12057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12058 s//\1/ 12059 q 12060 } 12061 /^X\(\/\/\)[^/].*/{ 12062 s//\1/ 12063 q 12064 } 12065 /^X\(\/\/\)$/{ 12066 s//\1/ 12067 q 12068 } 12069 /^X\(\/\).*/{ 12070 s//\1/ 12071 q 12072 } 12073 s/.*/./; q'` 12074 am_filepart=`$as_basename -- "$am_mf" || 12075$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12076 X"$am_mf" : 'X\(//\)$' \| \ 12077 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12078printf "%s\n" X/"$am_mf" | 12079 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\/\(\/\/\)$/{ 12084 s//\1/ 12085 q 12086 } 12087 /^X\/\(\/\).*/{ 12088 s//\1/ 12089 q 12090 } 12091 s/.*/./; q'` 12092 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12093 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12094 | $MAKE -f - am--depfiles" >&5 12095 (cd "$am_dirpart" \ 12096 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12097 | $MAKE -f - am--depfiles) >&5 2>&5 12098 ac_status=$? 12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12100 (exit $ac_status); } || am_rc=$? 12101 done 12102 if test $am_rc -ne 0; then 12103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12104printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12105as_fn_error $? "Something went wrong bootstrapping makefile fragments 12106 for automatic dependency tracking. If GNU make was not used, consider 12107 re-running the configure script with MAKE=\"gmake\" (or whatever is 12108 necessary). You can also try re-running configure with the 12109 '--disable-dependency-tracking' option to at least be able to build 12110 the package (albeit without support for automatic dependency tracking). 12111See \`config.log' for more details" "$LINENO" 5; } 12112 fi 12113 { am_dirpart=; unset am_dirpart;} 12114 { am_filepart=; unset am_filepart;} 12115 { am_mf=; unset am_mf;} 12116 { am_rc=; unset am_rc;} 12117 rm -f conftest-deps.mk 12118} 12119 ;; 12120 12121 esac 12122done # for ac_tag 12123 12124 12125as_fn_exit 0 12126_ACEOF 12127ac_clean_files=$ac_clean_files_save 12128 12129test $ac_write_fail = 0 || 12130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12131 12132 12133# configure is writing to config.log, and then calls config.status. 12134# config.status does its own redirection, appending to config.log. 12135# Unfortunately, on DOS this fails, as config.log is still kept open 12136# by configure, so config.status won't be able to write to it; its 12137# output is simply discarded. So we exec the FD to /dev/null, 12138# effectively closing config.log, so it can be properly (re)opened and 12139# appended to by config.status. When coming back to configure, we 12140# need to make the FD available again. 12141if test "$no_create" != yes; then 12142 ac_cs_success=: 12143 ac_config_status_args= 12144 test "$silent" = yes && 12145 ac_config_status_args="$ac_config_status_args --quiet" 12146 exec 5>/dev/null 12147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12148 exec 5>>config.log 12149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12150 # would make configure fail if this is the last instruction. 12151 $ac_cs_success || as_fn_exit 1 12152fi 12153if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12155printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12156fi 12157 12158 12159## Finally, record the values of CFLAGS, CPPFLAGS, and CXXFLAGS for DFXML 12160echo "#define CPPFLAGS \"$CPPFLAGS\"" >> config.h 12161echo "#define CFLAGS \"$CFLAGS\"" >> config.h 12162echo "#define CXXFLAGS \"$CXXFLAGS\"" >> config.h 12163echo "#define LIBS \"$LIBS\"" >> config.h 12164echo "#define LDFLAGS \"$LDFLAGS\"" >> config.h 12165if test x"$GIT_COMMIT" != "x" ; then 12166 echo "#define GIT_COMMIT \"$GIT_COMMIT\"" >> config.h 12167fi 12168 12169