1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for john jumbo. 4# 5# Report bugs to <john-users mailing list at openwall.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and john-users mailing 270$0: list at openwall.com about your system, including any 271$0: error possibly output before this message. Then install 272$0: a modern shell, or manually run the script under such a 273$0: 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# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='john' 582PACKAGE_TARNAME='john' 583PACKAGE_VERSION='jumbo' 584PACKAGE_STRING='john jumbo' 585PACKAGE_BUGREPORT='john-users mailing list at openwall.com' 586PACKAGE_URL='' 587 588ac_unique_file="john.c" 589ac_default_prefix=../run 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='LTLIBOBJS 627HOST_OS 628PLUGFORMATS_DEPS 629OPENCL_PLUGFORMATS_OBJS 630PLUGFORMATS_OBJS 631KERNEL_DEPS 632KERNEL_OBJS 633M4_INCLUDES 634HAVE_LIBFUZZER 635HAVE_FUZZ 636EXE_EXT 637YASM_OPTIONS 638AESNI_OS 639AESNI_ARCH 640EXTRA_AS_FLAGS 641ASFLAGS 642CPU_BIT_STR 643CPU_BITS 644CC_ASM_OBJS 645CC_MAIN_CPU 646CC_CPU 647LIBOBJS 648ZTEX_LIBS 649ZTEX_SUBDIRS 650CL_LIBS 651CL_CFLAGS 652PTHREAD_CFLAGS 653PTHREAD_LIBS 654PTHREAD_CC 655ax_pthread_config 656OPENMP_CFLAGS 657PCAP_LIBS 658HAVE_PCAP 659REXGEN_LIBS 660DL_LIBS 661BZ2_LIBS 662SKEY_LIBS 663GMP_LIBS 664CRYPT_LIBS 665Z_LIBS 666M_LIBS 667OPENSSL_LIBS 668OPENSSL_CFLAGS 669COMMONCRYPTO_LIBS 670JOHN_NO_SIMD 671EGREP 672PKG_CONFIG_LIBDIR 673PKG_CONFIG_PATH 674PKG_CONFIG 675STRIP 676PERL 677FIND 678SORT 679MKDIR_P 680CPP 681SET_MAKE 682ifGNUmake 683SED 684GREP 685LN_S 686O_DEBUG 687OPT_INLINE_FLAGS 688OPT_NORMAL_FLAGS 689UNIT_TESTS_DEPENDENCY 690HAVE_MPI 691OBJEXT 692EXEEXT 693CPPFLAGS 694LDFLAGS 695CFLAGS 696ac_ct_CC 697CC 698MPICC 699host_os 700host_vendor 701host_cpu 702host 703build_os 704build_vendor 705build_cpu 706build 707LD 708AR 709AS 710YASM 711CFLAGS_EXTRA 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753with_openssl 754with_commoncrypto 755with_endian 756with_systemwide 757with_flock 758enable_asan 759enable_ubsan 760enable_ubsantrap 761enable_simd 762enable_plugin_dependencies 763enable_werror 764enable_openmp_for_fast_formats 765enable_mpi 766enable_rexgen 767enable_pcap 768enable_native_tests 769enable_native_march 770enable_ln_s 771enable_pkg_config 772enable_nt_full_unicode 773enable_int128 774enable_experimental_code 775enable_fuzz 776enable_libfuzzer 777enable_openmp 778enable_opencl 779enable_ztex 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CFLAGS_EXTRA 785YASM 786AS 787AR 788LD 789MPICC 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795CPP 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799OPENSSL_CFLAGS 800OPENSSL_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' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214fi 1215 1216if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222fi 1223 1224# Check all directory arguments for consistency. 1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir 1229do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243done 1244 1245# There might be people who depend on the old broken behavior: `$host' 1246# used to hold the argument of --host etc. 1247# FIXME: To remove some day. 1248build=$build_alias 1249host=$host_alias 1250target=$target_alias 1251 1252# FIXME: To remove some day. 1253if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 elif test "x$build_alias" != "x$host_alias"; then 1257 cross_compiling=yes 1258 fi 1259fi 1260 1261ac_tool_prefix= 1262test -n "$host_alias" && ac_tool_prefix=$host_alias- 1263 1264test "$silent" = yes && exec 6>/dev/null 1265 1266 1267ac_pwd=`pwd` && test -n "$ac_pwd" && 1268ac_ls_di=`ls -di .` && 1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1270 as_fn_error $? "working directory cannot be determined" 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1272 as_fn_error $? "pwd does not report name of working directory" 1273 1274 1275# Find the source files, if location was not specified. 1276if test -z "$srcdir"; then 1277 ac_srcdir_defaulted=yes 1278 # Try the directory containing this script, then the parent directory. 1279 ac_confdir=`$as_dirname -- "$as_myself" || 1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1281 X"$as_myself" : 'X\(//\)[^/]' \| \ 1282 X"$as_myself" : 'X\(//\)$' \| \ 1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1284$as_echo X"$as_myself" | 1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)[^/].*/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\).*/{ 1298 s//\1/ 1299 q 1300 } 1301 s/.*/./; q'` 1302 srcdir=$ac_confdir 1303 if test ! -r "$srcdir/$ac_unique_file"; then 1304 srcdir=.. 1305 fi 1306else 1307 ac_srcdir_defaulted=no 1308fi 1309if test ! -r "$srcdir/$ac_unique_file"; then 1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1312fi 1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1314ac_abs_confdir=`( 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1316 pwd)` 1317# When building in place, set srcdir=. 1318if test "$ac_abs_confdir" = "$ac_pwd"; then 1319 srcdir=. 1320fi 1321# Remove unnecessary trailing slashes from srcdir. 1322# Double slashes in file names in object file debugging info 1323# mess up M-x gdb in Emacs. 1324case $srcdir in 1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1326esac 1327for ac_var in $ac_precious_vars; do 1328 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_env_${ac_var}_value=\$${ac_var} 1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1332done 1333 1334if test "$ac_init_help" = "long"; then 1335 cat <<_ACEOF 1336\`configure' configures john jumbo to adapt to many kinds of systems. 1337 1338Usage: $0 [OPTION]... [VAR=VALUE]... 1339 1340To assign environment variables (e.g., CC, CFLAGS...), specify them as 1341VAR=VALUE. See below for descriptions of some of the useful variables. 1342 1343Defaults for the options are specified in brackets. 1344 1345Configuration: 1346 -h, --help display this help and exit 1347 --help=short display options specific to this package 1348 --help=recursive display the short help of all the included packages 1349 -V, --version display version information and exit 1350 -q, --quiet, --silent do not print \`checking ...' messages 1351 --cache-file=FILE cache test results in FILE [disabled] 1352 -C, --config-cache alias for \`--cache-file=config.cache' 1353 -n, --no-create do not create output files 1354 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1355 1356Installation directories: 1357 1358By default, \`make install' will install all the files in \`$ac_default_prefix' 1359You can specify location other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME/bin'. 1361 1362Development/QA options 1363 1364Some --enable-xxx options are listed with a \`*' preceding their description. These 1365are developer/QA testing options, and should not be enabled unless you know what 1366you are doing with them. These will significantly degrade the runtime performance 1367and or memory usage of JtR. and are not designed for a normal user build 1368 1369System types: 1370 --build=BUILD configure for building on BUILD [guessed] 1371 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1372_ACEOF 1373fi 1374 1375if test -n "$ac_init_help"; then 1376 case $ac_init_help in 1377 short | recursive ) echo "Configuration of john jumbo:";; 1378 esac 1379 cat <<\_ACEOF 1380 1381Optional Features: 1382 --disable-option-checking ignore unrecognized --enable/--with options 1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1385 --enable-asan * Build with AddressSanitizer 1386 --enable-ubsan * Build with UndefinedBehaviorSanitizer 1387 --enable-ubsantrap * Build with UndefinedBehaviorSanitizer, crashes on 1388 failure 1389 --disable-simd, --enable-simd=foo 1390 * Build forcing SIMD logic to be disabled, or force 1391 use of "foo" for SIMD (eg. --enable-simd=altivec) 1392 --disable-plugin-dependencies 1393 Do not create best-effort Makefile dependencies for 1394 plugins 1395 --enable-werror Treat warnings as errors 1396 --enable-openmp-for-fast-formats 1397 Enable OpenMP for fast formats (usually a bad idea - 1398 use fork instead) 1399 --enable-mpi Use OpenMPI 1400 --enable-rexgen Enable use of rexgen library (experimental) 1401 --disable-pcap Do not build helpers depending on PCAP 1402 --disable-native-tests Do not test build system for target features. 1403 --enable-native-march Use things like -march=native if valid compiler 1404 option(s). 1405 --enable-ln-s Use ln -s vs symlink.c wrappers (Cygwin only) 1406 --enable-pkg-config use pkg-config for some probing tests 1407 --enable-nt-full-unicode 1408 support 4-byte UTF-8 for MS formats 1409 --disable-int128 Do not use int128 1410 --enable-experimental-code 1411 Use experimental code 1412 --enable-fuzz Fuzzing prepare(), valid(), init(), etc 1413 --enable-libfuzzer Fuzzing using libFuzzer 1414 --disable-openmp do not use OpenMP 1415 --disable-opencl do not use OpenCL 1416 --enable-ztex Support ZTEX USB-FPGA module 1.15y 1417 1418Optional Packages: 1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1421 --without-openssl Do not use Openssl (CommonCrypto must be enabled) 1422 --with-commoncrypto Use CommonCrypto 1423 --with-endian=little|big 1424 Set endianness for target if it doesn't detect 1425 properly 1426 --with-systemwide install for all users 1427 --with-flock use flock() file locking instead of fcntl() 1428 1429Some influential environment variables: 1430 CFLAGS_EXTRA 1431 additional CFLAGS for -Woptions and other things, not used 1432 during ./configure but put in resulting Makefile 1433 YASM full pathname of yasm (for optional AES-NI support) 1434 AS full pathname of assembler to use 1435 AR full pathname of "ar" to use 1436 LD full pathname of linker to use 1437 MPICC MPI C compiler command 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 CPP C preprocessor 1446 PKG_CONFIG path to pkg-config utility 1447 PKG_CONFIG_PATH 1448 directories to add to pkg-config's search path 1449 PKG_CONFIG_LIBDIR 1450 path overriding pkg-config's built-in search path 1451 OPENSSL_CFLAGS 1452 C compiler flags for OPENSSL, overriding pkg-config 1453 OPENSSL_LIBS 1454 linker flags for OPENSSL, overriding pkg-config 1455 1456Use these variables to override the choices made by `configure' or to help 1457it to find libraries and programs with nonstandard names/locations. 1458 1459Report bugs to <john-users mailing list at openwall.com>. 1460_ACEOF 1461ac_status=$? 1462fi 1463 1464if test "$ac_init_help" = "recursive"; then 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466 test -d "$ac_dir" || 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468 continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 if test -f "$ac_srcdir/configure.gnu"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1507 elif test -f "$ac_srcdir/configure"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure" --help=recursive 1510 else 1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1512 fi || ac_status=$? 1513 cd "$ac_pwd" || { ac_status=$?; break; } 1514 done 1515fi 1516 1517test -n "$ac_init_help" && exit $ac_status 1518if $ac_init_version; then 1519 cat <<\_ACEOF 1520john configure jumbo 1521generated by GNU Autoconf 2.69 1522 1523Copyright (C) 2012 Free Software Foundation, Inc. 1524This configure script is free software; the Free Software Foundation 1525gives unlimited permission to copy, distribute and modify it. 1526_ACEOF 1527 exit 1528fi 1529 1530## ------------------------ ## 1531## Autoconf initialization. ## 1532## ------------------------ ## 1533 1534# ac_fn_c_try_compile LINENO 1535# -------------------------- 1536# Try to compile conftest.$ac_ext, and return whether this succeeded. 1537ac_fn_c_try_compile () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 rm -f conftest.$ac_objext 1541 if { { ac_try="$ac_compile" 1542case "(($ac_try" in 1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1544 *) ac_try_echo=$ac_try;; 1545esac 1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1547$as_echo "$ac_try_echo"; } >&5 1548 (eval "$ac_compile") 2>conftest.err 1549 ac_status=$? 1550 if test -s conftest.err; then 1551 grep -v '^ *+' conftest.err >conftest.er1 1552 cat conftest.er1 >&5 1553 mv -f conftest.er1 conftest.err 1554 fi 1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1556 test $ac_status = 0; } && { 1557 test -z "$ac_c_werror_flag" || 1558 test ! -s conftest.err 1559 } && test -s conftest.$ac_objext; then : 1560 ac_retval=0 1561else 1562 $as_echo "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 1566fi 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 as_fn_set_status $ac_retval 1569 1570} # ac_fn_c_try_compile 1571 1572# ac_fn_c_try_link LINENO 1573# ----------------------- 1574# Try to link conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_link () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 rm -f conftest.$ac_objext conftest$ac_exeext 1579 if { { ac_try="$ac_link" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_link") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } && { 1595 test -z "$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 } && test -s conftest$ac_exeext && { 1598 test "$cross_compiling" = yes || 1599 test -x conftest$ac_exeext 1600 }; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: failed program was:" >&5 1604sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607fi 1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1610 # interfere with the next link command; also delete a directory that is 1611 # left behind by Apple's compiler. We do this before executing the actions. 1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_link 1617 1618# ac_fn_c_try_cpp LINENO 1619# ---------------------- 1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_cpp () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 if { { ac_try="$ac_cpp conftest.$ac_ext" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } > conftest.i && { 1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 }; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_cpp 1654 1655# ac_fn_c_try_run LINENO 1656# ---------------------- 1657# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1658# that executables *can* be run. 1659ac_fn_c_try_run () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_link" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_link") 2>&5 1670 ac_status=$? 1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1673 { { case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678$as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_try") 2>&5 1680 ac_status=$? 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; }; }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: program exited with status $ac_status" >&5 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=$ac_status 1690fi 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_run 1696 1697# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1698# -------------------------------------------- 1699# Tries to find the compile-time value of EXPR in a program that includes 1700# INCLUDES, setting VAR accordingly. Returns whether the value could be 1701# computed 1702ac_fn_c_compute_int () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 if test "$cross_compiling" = yes; then 1706 # Depending upon the size, compute the lo and hi bounds. 1707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708/* end confdefs.h. */ 1709$4 1710int 1711main () 1712{ 1713static int test_array [1 - 2 * !(($2) >= 0)]; 1714test_array [0] = 0; 1715return test_array [0]; 1716 1717 ; 1718 return 0; 1719} 1720_ACEOF 1721if ac_fn_c_try_compile "$LINENO"; then : 1722 ac_lo=0 ac_mid=0 1723 while :; do 1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725/* end confdefs.h. */ 1726$4 1727int 1728main () 1729{ 1730static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1731test_array [0] = 0; 1732return test_array [0]; 1733 1734 ; 1735 return 0; 1736} 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO"; then : 1739 ac_hi=$ac_mid; break 1740else 1741 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1742 if test $ac_lo -le $ac_mid; then 1743 ac_lo= ac_hi= 1744 break 1745 fi 1746 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749 done 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754int 1755main () 1756{ 1757static int test_array [1 - 2 * !(($2) < 0)]; 1758test_array [0] = 0; 1759return test_array [0]; 1760 1761 ; 1762 return 0; 1763} 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO"; then : 1766 ac_hi=-1 ac_mid=-1 1767 while :; do 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770$4 1771int 1772main () 1773{ 1774static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1775test_array [0] = 0; 1776return test_array [0]; 1777 1778 ; 1779 return 0; 1780} 1781_ACEOF 1782if ac_fn_c_try_compile "$LINENO"; then : 1783 ac_lo=$ac_mid; break 1784else 1785 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1786 if test $ac_mid -le $ac_hi; then 1787 ac_lo= ac_hi= 1788 break 1789 fi 1790 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1793 done 1794else 1795 ac_lo= ac_hi= 1796fi 1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1798fi 1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1800# Binary search between lo and hi bounds. 1801while test "x$ac_lo" != "x$ac_hi"; do 1802 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805$4 1806int 1807main () 1808{ 1809static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1810test_array [0] = 0; 1811return test_array [0]; 1812 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO"; then : 1818 ac_hi=$ac_mid 1819else 1820 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1821fi 1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1823done 1824case $ac_lo in #(( 1825?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1826'') ac_retval=1 ;; 1827esac 1828 else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831$4 1832static long int longval () { return $2; } 1833static unsigned long int ulongval () { return $2; } 1834#include <stdio.h> 1835#include <stdlib.h> 1836int 1837main () 1838{ 1839 1840 FILE *f = fopen ("conftest.val", "w"); 1841 if (! f) 1842 return 1; 1843 if (($2) < 0) 1844 { 1845 long int i = longval (); 1846 if (i != ($2)) 1847 return 1; 1848 fprintf (f, "%ld", i); 1849 } 1850 else 1851 { 1852 unsigned long int i = ulongval (); 1853 if (i != ($2)) 1854 return 1; 1855 fprintf (f, "%lu", i); 1856 } 1857 /* Do not output a trailing newline, as this causes \r\n confusion 1858 on some platforms. */ 1859 return ferror (f) || fclose (f) != 0; 1860 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_run "$LINENO"; then : 1866 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1867else 1868 ac_retval=1 1869fi 1870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1871 conftest.$ac_objext conftest.beam conftest.$ac_ext 1872rm -f conftest.val 1873 1874 fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_c_compute_int 1879 1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1881# ------------------------------------------------------- 1882# Tests whether HEADER exists and can be compiled using the include files in 1883# INCLUDES, setting the cache variable VAR accordingly. 1884ac_fn_c_check_header_compile () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1888$as_echo_n "checking for $2... " >&6; } 1889if eval \${$3+:} false; then : 1890 $as_echo_n "(cached) " >&6 1891else 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$4 1895#include <$2> 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 eval "$3=yes" 1899else 1900 eval "$3=no" 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904eval ac_res=\$$3 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1906$as_echo "$ac_res" >&6; } 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1908 1909} # ac_fn_c_check_header_compile 1910 1911# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1912# ------------------------------------------------------- 1913# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1914# the include files in INCLUDES and setting the cache variable VAR 1915# accordingly. 1916ac_fn_c_check_header_mongrel () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 if eval \${$3+:} false; then : 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1921$as_echo_n "checking for $2... " >&6; } 1922if eval \${$3+:} false; then : 1923 $as_echo_n "(cached) " >&6 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928else 1929 # Is the header compilable? 1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1931$as_echo_n "checking $2 usability... " >&6; } 1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935#include <$2> 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 ac_header_compiler=yes 1939else 1940 ac_header_compiler=no 1941fi 1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1944$as_echo "$ac_header_compiler" >&6; } 1945 1946# Is the header present? 1947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1948$as_echo_n "checking $2 presence... " >&6; } 1949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950/* end confdefs.h. */ 1951#include <$2> 1952_ACEOF 1953if ac_fn_c_try_cpp "$LINENO"; then : 1954 ac_header_preproc=yes 1955else 1956 ac_header_preproc=no 1957fi 1958rm -f conftest.err conftest.i conftest.$ac_ext 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1960$as_echo "$ac_header_preproc" >&6; } 1961 1962# So? What about this header? 1963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1964 yes:no: ) 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1966$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1969 ;; 1970 no:yes:* ) 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1972$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1974$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1976$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1978$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981( $as_echo "## ------------------------------------------------------ ## 1982## Report this to john-users mailing list at openwall.com ## 1983## ------------------------------------------------------ ##" 1984 ) | sed "s/^/$as_me: WARNING: /" >&2 1985 ;; 1986esac 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1988$as_echo_n "checking for $2... " >&6; } 1989if eval \${$3+:} false; then : 1990 $as_echo_n "(cached) " >&6 1991else 1992 eval "$3=\$ac_header_compiler" 1993fi 1994eval ac_res=\$$3 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1996$as_echo "$ac_res" >&6; } 1997fi 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1999 2000} # ac_fn_c_check_header_mongrel 2001 2002# ac_fn_c_check_func LINENO FUNC VAR 2003# ---------------------------------- 2004# Tests whether FUNC exists, setting the cache variable VAR accordingly 2005ac_fn_c_check_func () 2006{ 2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2009$as_echo_n "checking for $2... " >&6; } 2010if eval \${$3+:} false; then : 2011 $as_echo_n "(cached) " >&6 2012else 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2017#define $2 innocuous_$2 2018 2019/* System header to define __stub macros and hopefully few prototypes, 2020 which can conflict with char $2 (); below. 2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2022 <limits.h> exists even on freestanding compilers. */ 2023 2024#ifdef __STDC__ 2025# include <limits.h> 2026#else 2027# include <assert.h> 2028#endif 2029 2030#undef $2 2031 2032/* Override any GCC internal prototype to avoid an error. 2033 Use char because int might match the return type of a GCC 2034 builtin and then its argument prototype would still apply. */ 2035#ifdef __cplusplus 2036extern "C" 2037#endif 2038char $2 (); 2039/* The GNU C library defines this for functions which it implements 2040 to always fail with ENOSYS. Some functions are actually named 2041 something starting with __ and the normal name is an alias. */ 2042#if defined __stub_$2 || defined __stub___$2 2043choke me 2044#endif 2045 2046int 2047main () 2048{ 2049return $2 (); 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_link "$LINENO"; then : 2055 eval "$3=yes" 2056else 2057 eval "$3=no" 2058fi 2059rm -f core conftest.err conftest.$ac_objext \ 2060 conftest$ac_exeext conftest.$ac_ext 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067} # ac_fn_c_check_func 2068 2069# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2070# ------------------------------------------- 2071# Tests whether TYPE exists after having included INCLUDES, setting cache 2072# variable VAR accordingly. 2073ac_fn_c_check_type () 2074{ 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2077$as_echo_n "checking for $2... " >&6; } 2078if eval \${$3+:} false; then : 2079 $as_echo_n "(cached) " >&6 2080else 2081 eval "$3=no" 2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2083/* end confdefs.h. */ 2084$4 2085int 2086main () 2087{ 2088if (sizeof ($2)) 2089 return 0; 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO"; then : 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098int 2099main () 2100{ 2101if (sizeof (($2))) 2102 return 0; 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 2109else 2110 eval "$3=yes" 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115fi 2116eval ac_res=\$$3 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2118$as_echo "$ac_res" >&6; } 2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2120 2121} # ac_fn_c_check_type 2122 2123# ac_fn_c_find_intX_t LINENO BITS VAR 2124# ----------------------------------- 2125# Finds a signed integer type with width BITS, setting cache variable VAR 2126# accordingly. 2127ac_fn_c_find_intX_t () 2128{ 2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2131$as_echo_n "checking for int$2_t... " >&6; } 2132if eval \${$3+:} false; then : 2133 $as_echo_n "(cached) " >&6 2134else 2135 eval "$3=no" 2136 # Order is important - never check a type that is potentially smaller 2137 # than half of the expected target width. 2138 for ac_type in int$2_t 'int' 'long int' \ 2139 'long long int' 'short int' 'signed char'; do 2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2141/* end confdefs.h. */ 2142$ac_includes_default 2143 enum { N = $2 / 2 - 1 }; 2144int 2145main () 2146{ 2147static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2148test_array [0] = 0; 2149return test_array [0]; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_compile "$LINENO"; then : 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$ac_includes_default 2159 enum { N = $2 / 2 - 1 }; 2160int 2161main () 2162{ 2163static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2164 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2165test_array [0] = 0; 2166return test_array [0]; 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 2174else 2175 case $ac_type in #( 2176 int$2_t) : 2177 eval "$3=yes" ;; #( 2178 *) : 2179 eval "$3=\$ac_type" ;; 2180esac 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183fi 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2185 if eval test \"x\$"$3"\" = x"no"; then : 2186 2187else 2188 break 2189fi 2190 done 2191fi 2192eval ac_res=\$$3 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2194$as_echo "$ac_res" >&6; } 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 2197} # ac_fn_c_find_intX_t 2198 2199# ac_fn_c_find_uintX_t LINENO BITS VAR 2200# ------------------------------------ 2201# Finds an unsigned integer type with width BITS, setting cache variable VAR 2202# accordingly. 2203ac_fn_c_find_uintX_t () 2204{ 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2207$as_echo_n "checking for uint$2_t... " >&6; } 2208if eval \${$3+:} false; then : 2209 $as_echo_n "(cached) " >&6 2210else 2211 eval "$3=no" 2212 # Order is important - never check a type that is potentially smaller 2213 # than half of the expected target width. 2214 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2215 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2217/* end confdefs.h. */ 2218$ac_includes_default 2219int 2220main () 2221{ 2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2223test_array [0] = 0; 2224return test_array [0]; 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 case $ac_type in #( 2232 uint$2_t) : 2233 eval "$3=yes" ;; #( 2234 *) : 2235 eval "$3=\$ac_type" ;; 2236esac 2237fi 2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2239 if eval test \"x\$"$3"\" = x"no"; then : 2240 2241else 2242 break 2243fi 2244 done 2245fi 2246eval ac_res=\$$3 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2248$as_echo "$ac_res" >&6; } 2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2250 2251} # ac_fn_c_find_uintX_t 2252cat >config.log <<_ACEOF 2253This file contains any messages produced by compilers while 2254running configure, to aid debugging if configure makes a mistake. 2255 2256It was created by john $as_me jumbo, which was 2257generated by GNU Autoconf 2.69. Invocation command line was 2258 2259 $ $0 $@ 2260 2261_ACEOF 2262exec 5>>config.log 2263{ 2264cat <<_ASUNAME 2265## --------- ## 2266## Platform. ## 2267## --------- ## 2268 2269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2270uname -m = `(uname -m) 2>/dev/null || echo unknown` 2271uname -r = `(uname -r) 2>/dev/null || echo unknown` 2272uname -s = `(uname -s) 2>/dev/null || echo unknown` 2273uname -v = `(uname -v) 2>/dev/null || echo unknown` 2274 2275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2276/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2277 2278/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2279/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2281/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2282/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2283/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2284/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2285 2286_ASUNAME 2287 2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 $as_echo "PATH: $as_dir" 2294 done 2295IFS=$as_save_IFS 2296 2297} >&5 2298 2299cat >&5 <<_ACEOF 2300 2301 2302## ----------- ## 2303## Core tests. ## 2304## ----------- ## 2305 2306_ACEOF 2307 2308 2309# Keep a trace of the command line. 2310# Strip out --no-create and --no-recursion so they do not pile up. 2311# Strip out --silent because we don't want to record it for future runs. 2312# Also quote any args containing shell meta-characters. 2313# Make two passes to allow for proper duplicate-argument suppression. 2314ac_configure_args= 2315ac_configure_args0= 2316ac_configure_args1= 2317ac_must_keep_next=false 2318for ac_pass in 1 2 2319do 2320 for ac_arg 2321 do 2322 case $ac_arg in 2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2325 | -silent | --silent | --silen | --sile | --sil) 2326 continue ;; 2327 *\'*) 2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 case $ac_pass in 2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2332 2) 2333 as_fn_append ac_configure_args1 " '$ac_arg'" 2334 if test $ac_must_keep_next = true; then 2335 ac_must_keep_next=false # Got value, back to normal. 2336 else 2337 case $ac_arg in 2338 *=* | --config-cache | -C | -disable-* | --disable-* \ 2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2341 | -with-* | --with-* | -without-* | --without-* | --x) 2342 case "$ac_configure_args0 " in 2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2344 esac 2345 ;; 2346 -* ) ac_must_keep_next=true ;; 2347 esac 2348 fi 2349 as_fn_append ac_configure_args " '$ac_arg'" 2350 ;; 2351 esac 2352 done 2353done 2354{ ac_configure_args0=; unset ac_configure_args0;} 2355{ ac_configure_args1=; unset ac_configure_args1;} 2356 2357# When interrupted or exit'd, cleanup temporary files, and complete 2358# config.log. We remove comments because anyway the quotes in there 2359# would cause problems or look ugly. 2360# WARNING: Use '\'' to represent an apostrophe within the trap. 2361# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2362trap 'exit_status=$? 2363 # Save into config.log some information that might help in debugging. 2364 { 2365 echo 2366 2367 $as_echo "## ---------------- ## 2368## Cache variables. ## 2369## ---------------- ##" 2370 echo 2371 # The following way of writing the cache mishandles newlines in values, 2372( 2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2374 eval ac_val=\$$ac_var 2375 case $ac_val in #( 2376 *${as_nl}*) 2377 case $ac_var in #( 2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2379$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2380 esac 2381 case $ac_var in #( 2382 _ | IFS | as_nl) ;; #( 2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2384 *) { eval $ac_var=; unset $ac_var;} ;; 2385 esac ;; 2386 esac 2387 done 2388 (set) 2>&1 | 2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2390 *${as_nl}ac_space=\ *) 2391 sed -n \ 2392 "s/'\''/'\''\\\\'\'''\''/g; 2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2394 ;; #( 2395 *) 2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2397 ;; 2398 esac | 2399 sort 2400) 2401 echo 2402 2403 $as_echo "## ----------------- ## 2404## Output variables. ## 2405## ----------------- ##" 2406 echo 2407 for ac_var in $ac_subst_vars 2408 do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in 2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2412 esac 2413 $as_echo "$ac_var='\''$ac_val'\''" 2414 done | sort 2415 echo 2416 2417 if test -n "$ac_subst_files"; then 2418 $as_echo "## ------------------- ## 2419## File substitutions. ## 2420## ------------------- ##" 2421 echo 2422 for ac_var in $ac_subst_files 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 $as_echo "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 fi 2432 2433 if test -s confdefs.h; then 2434 $as_echo "## ----------- ## 2435## confdefs.h. ## 2436## ----------- ##" 2437 echo 2438 cat confdefs.h 2439 echo 2440 fi 2441 test "$ac_signal" != 0 && 2442 $as_echo "$as_me: caught signal $ac_signal" 2443 $as_echo "$as_me: exit $exit_status" 2444 } >&5 2445 rm -f core *.core core.conftest.* && 2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2447 exit $exit_status 2448' 0 2449for ac_signal in 1 2 13 15; do 2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2451done 2452ac_signal=0 2453 2454# confdefs.h avoids OS command line length limits that DEFS can exceed. 2455rm -f -r conftest* confdefs.h 2456 2457$as_echo "/* confdefs.h */" > confdefs.h 2458 2459# Predefined preprocessor variables. 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_NAME "$PACKAGE_NAME" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2467_ACEOF 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_VERSION "$PACKAGE_VERSION" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_STRING "$PACKAGE_STRING" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_URL "$PACKAGE_URL" 2483_ACEOF 2484 2485 2486# Let the site file select an alternate cache file if it wants to. 2487# Prefer an explicitly selected file to automatically selected ones. 2488ac_site_file1=NONE 2489ac_site_file2=NONE 2490if test -n "$CONFIG_SITE"; then 2491 # We do not want a PATH search for config.site. 2492 case $CONFIG_SITE in #(( 2493 -*) ac_site_file1=./$CONFIG_SITE;; 2494 */*) ac_site_file1=$CONFIG_SITE;; 2495 *) ac_site_file1=./$CONFIG_SITE;; 2496 esac 2497elif test "x$prefix" != xNONE; then 2498 ac_site_file1=$prefix/share/config.site 2499 ac_site_file2=$prefix/etc/config.site 2500else 2501 ac_site_file1=$ac_default_prefix/share/config.site 2502 ac_site_file2=$ac_default_prefix/etc/config.site 2503fi 2504for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2505do 2506 test "x$ac_site_file" = xNONE && continue 2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2509$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2510 sed 's/^/| /' "$ac_site_file" >&5 2511 . "$ac_site_file" \ 2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2514as_fn_error $? "failed to load site script $ac_site_file 2515See \`config.log' for more details" "$LINENO" 5; } 2516 fi 2517done 2518 2519if test -r "$cache_file"; then 2520 # Some versions of bash will fail to source /dev/null (special files 2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2524$as_echo "$as_me: loading cache $cache_file" >&6;} 2525 case $cache_file in 2526 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2527 *) . "./$cache_file";; 2528 esac 2529 fi 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2532$as_echo "$as_me: creating cache $cache_file" >&6;} 2533 >$cache_file 2534fi 2535 2536# Check that the precious variables saved in the cache have kept the same 2537# value. 2538ac_cache_corrupted=false 2539for ac_var in $ac_precious_vars; do 2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2541 eval ac_new_set=\$ac_env_${ac_var}_set 2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2543 eval ac_new_val=\$ac_env_${ac_var}_value 2544 case $ac_old_set,$ac_new_set in 2545 set,) 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2547$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2548 ac_cache_corrupted=: ;; 2549 ,set) 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2551$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2552 ac_cache_corrupted=: ;; 2553 ,);; 2554 *) 2555 if test "x$ac_old_val" != "x$ac_new_val"; then 2556 # differences in whitespace do not lead to failure. 2557 ac_old_val_w=`echo x $ac_old_val` 2558 ac_new_val_w=`echo x $ac_new_val` 2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2561$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2562 ac_cache_corrupted=: 2563 else 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2565$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2566 eval $ac_var=\$ac_old_val 2567 fi 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2569$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2571$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2572 fi;; 2573 esac 2574 # Pass precious variables to config.status. 2575 if test "$ac_new_set" = set; then 2576 case $ac_new_val in 2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2578 *) ac_arg=$ac_var=$ac_new_val ;; 2579 esac 2580 case " $ac_configure_args " in 2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2583 esac 2584 fi 2585done 2586if $ac_cache_corrupted; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2590$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2592fi 2593## -------------------- ## 2594## Main body of script. ## 2595## -------------------- ## 2596 2597ac_ext=c 2598ac_cpp='$CPP $CPPFLAGS' 2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2601ac_compiler_gnu=$ac_cv_c_compiler_gnu 2602 2603 2604 2605ac_config_headers="$ac_config_headers autoconfig.h" 2606 2607 2608 2609# generated automatically by aclocal 1.14 -*- Autoconf -*- 2610 2611# Copyright (C) 1996-2013 Free Software Foundation, Inc. 2612 2613# This file is free software; the Free Software Foundation 2614# gives unlimited permission to copy and/or distribute it, 2615# with or without modifications, as long as this notice is preserved. 2616 2617# This program is distributed in the hope that it will be useful, 2618# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 2619# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 2620# PARTICULAR PURPOSE. 2621 2622 2623 2624 2625# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2626# 2627# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2628# 2629# This program is free software; you can redistribute it and/or modify 2630# it under the terms of the GNU General Public License as published by 2631# the Free Software Foundation; either version 2 of the License, or 2632# (at your option) any later version. 2633# 2634# This program is distributed in the hope that it will be useful, but 2635# WITHOUT ANY WARRANTY; without even the implied warranty of 2636# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2637# General Public License for more details. 2638# 2639# You should have received a copy of the GNU General Public License 2640# along with this program; if not, write to the Free Software 2641# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2642# 2643# As a special exception to the GNU General Public License, if you 2644# distribute this file as part of a program that contains a 2645# configuration script generated by Autoconf, you may include it under 2646# the same distribution terms that you use for the rest of that program. 2647 2648# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2649# ---------------------------------- 2650# PKG_PROG_PKG_CONFIG 2651 2652# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2653# 2654# Check to see whether a particular set of modules exists. Similar 2655# to PKG_CHECK_MODULES(), but does not set variables or print errors. 2656# 2657# 2658# Similar to PKG_CHECK_MODULES, make sure that the first instance of 2659# this or PKG_CHECK_MODULES is called, or make sure to call 2660# PKG_CHECK_EXISTS manually 2661# -------------------------------------------------------------- 2662 2663 2664 2665# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2666# --------------------------------------------- 2667# _PKG_CONFIG 2668 2669# _PKG_SHORT_ERRORS_SUPPORTED 2670# ----------------------------- 2671# _PKG_SHORT_ERRORS_SUPPORTED 2672 2673 2674# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2675# [ACTION-IF-NOT-FOUND]) 2676# 2677# 2678# Note that if there is a possibility the first call to 2679# PKG_CHECK_MODULES might not happen, you should be sure to include an 2680# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2681# 2682# 2683# -------------------------------------------------------------- 2684# PKG_CHECK_MODULES 2685 2686# Copyright (C) 2002-2013 Free Software Foundation, Inc. 2687# 2688# This file is free software; the Free Software Foundation 2689# gives unlimited permission to copy and/or distribute it, 2690# with or without modifications, as long as this notice is preserved. 2691 2692# AM_AUTOMAKE_VERSION(VERSION) 2693# ---------------------------- 2694# Automake X.Y traces this macro to ensure aclocal.m4 has been 2695# generated from the m4 files accompanying Automake X.Y. 2696# (This private macro should not be called outside this file.) 2697 2698 2699# _AM_AUTOCONF_VERSION(VERSION) 2700# ----------------------------- 2701# aclocal traces this macro to find the Autoconf version. 2702# This is a private macro too. Using m4_define simplifies 2703# the logic in aclocal, which can simply ignore this definition. 2704 2705 2706# AM_SET_CURRENT_AUTOMAKE_VERSION 2707# ------------------------------- 2708# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 2709# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 2710 2711 2712# AM_AUX_DIR_EXPAND -*- Autoconf -*- 2713 2714# Copyright (C) 2001-2013 Free Software Foundation, Inc. 2715# 2716# This file is free software; the Free Software Foundation 2717# gives unlimited permission to copy and/or distribute it, 2718# with or without modifications, as long as this notice is preserved. 2719 2720# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 2721# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 2722# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 2723# 2724# Of course, Automake must honor this variable whenever it calls a 2725# tool from the auxiliary directory. The problem is that $srcdir (and 2726# therefore $ac_aux_dir as well) can be either absolute or relative, 2727# depending on how configure is run. This is pretty annoying, since 2728# it makes $ac_aux_dir quite unusable in subdirectories: in the top 2729# source directory, any form will work fine, but in subdirectories a 2730# relative path needs to be adjusted first. 2731# 2732# $ac_aux_dir/missing 2733# fails when called from a subdirectory if $ac_aux_dir is relative 2734# $top_srcdir/$ac_aux_dir/missing 2735# fails if $ac_aux_dir is absolute, 2736# fails when called from a subdirectory in a VPATH build with 2737# a relative $ac_aux_dir 2738# 2739# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 2740# are both prefixed by $srcdir. In an in-source build this is usually 2741# harmless because $srcdir is '.', but things will broke when you 2742# start a VPATH build or use an absolute $srcdir. 2743# 2744# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 2745# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 2746# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 2747# and then we would define $MISSING as 2748# MISSING="\${SHELL} $am_aux_dir/missing" 2749# This will work as long as MISSING is not called from configure, because 2750# unfortunately $(top_srcdir) has no meaning in configure. 2751# However there are other variables, like CC, which are often used in 2752# configure, and could therefore not use this "fixed" $ac_aux_dir. 2753# 2754# Another solution, used here, is to always expand $ac_aux_dir to an 2755# absolute PATH. The drawback is that using absolute paths prevent a 2756# configured tree to be moved without reconfiguration. 2757 2758 2759 2760# AM_CONDITIONAL -*- Autoconf -*- 2761 2762# Copyright (C) 1997-2013 Free Software Foundation, Inc. 2763# 2764# This file is free software; the Free Software Foundation 2765# gives unlimited permission to copy and/or distribute it, 2766# with or without modifications, as long as this notice is preserved. 2767 2768# AM_CONDITIONAL(NAME, SHELL-CONDITION) 2769# ------------------------------------- 2770# Define a conditional. 2771 2772 2773# Copyright (C) 1999-2013 Free Software Foundation, Inc. 2774# 2775# This file is free software; the Free Software Foundation 2776# gives unlimited permission to copy and/or distribute it, 2777# with or without modifications, as long as this notice is preserved. 2778 2779 2780# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 2781# written in clear, in which case automake, when reading aclocal.m4, 2782# will think it sees a *use*, and therefore will trigger all its 2783# C support machinery. Also note that it means that autoscan, seeing 2784# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 2785 2786 2787# _AM_DEPENDENCIES(NAME) 2788# ---------------------- 2789# See how the compiler implements dependency checking. 2790# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 2791# We try a few techniques and use that to set a single cache variable. 2792# 2793# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 2794# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 2795# dependency, and given that the user is not expected to run this macro, 2796# just rely on AC_PROG_CC. 2797 2798 2799 2800# AM_SET_DEPDIR 2801# ------------- 2802# Choose a directory name for dependency files. 2803# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 2804 2805 2806 2807# AM_DEP_TRACK 2808# ------------ 2809 2810 2811# Generate code to set up dependency tracking. -*- Autoconf -*- 2812 2813# Copyright (C) 1999-2013 Free Software Foundation, Inc. 2814# 2815# This file is free software; the Free Software Foundation 2816# gives unlimited permission to copy and/or distribute it, 2817# with or without modifications, as long as this notice is preserved. 2818 2819 2820# _AM_OUTPUT_DEPENDENCY_COMMANDS 2821# ------------------------------ 2822# _AM_OUTPUT_DEPENDENCY_COMMANDS 2823 2824 2825# AM_OUTPUT_DEPENDENCY_COMMANDS 2826# ----------------------------- 2827# This macro should only be invoked once -- use via AC_REQUIRE. 2828# 2829# This code is only required when automatic dependency tracking 2830# is enabled. FIXME. This creates each '.P' file that we will 2831# need in order to bootstrap the dependency handling code. 2832 2833 2834# Do all the work for Automake. -*- Autoconf -*- 2835 2836# Copyright (C) 1996-2013 Free Software Foundation, Inc. 2837# 2838# This file is free software; the Free Software Foundation 2839# gives unlimited permission to copy and/or distribute it, 2840# with or without modifications, as long as this notice is preserved. 2841 2842# This macro actually does too much. Some checks are only needed if 2843# your package does certain things. But this isn't really a big deal. 2844 2845 2846 2847# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 2848# AM_INIT_AUTOMAKE([OPTIONS]) 2849# ----------------------------------------------- 2850# The call with PACKAGE and VERSION arguments is the old style 2851# call (pre autoconf-2.50), which is being phased out. PACKAGE 2852# and VERSION should now be passed to AC_INIT and removed from 2853# the call to AM_INIT_AUTOMAKE. 2854# We support both call styles for the transition. After 2855# the next Automake release, Autoconf can make the AC_INIT 2856# arguments mandatory, and then we can depend on a new Autoconf 2857# release and drop the old call support. 2858 2859 2860 2861 2862# When config.status generates a header, we must update the stamp-h file. 2863# This file resides in the same directory as the config header 2864# that is generated. The stamp files are numbered to have different names. 2865 2866# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 2867# loop where config.status creates the headers, so we can generate 2868# our stamp files there. 2869 2870 2871# Copyright (C) 2001-2013 Free Software Foundation, Inc. 2872# 2873# This file is free software; the Free Software Foundation 2874# gives unlimited permission to copy and/or distribute it, 2875# with or without modifications, as long as this notice is preserved. 2876 2877# AM_PROG_INSTALL_SH 2878# ------------------ 2879# Define $install_sh. 2880 2881 2882# Copyright (C) 2003-2013 Free Software Foundation, Inc. 2883# 2884# This file is free software; the Free Software Foundation 2885# gives unlimited permission to copy and/or distribute it, 2886# with or without modifications, as long as this notice is preserved. 2887 2888# Check whether the underlying file-system supports filenames 2889# with a leading dot. For instance MS-DOS doesn't. 2890 2891 2892# Check to see how 'make' treats includes. -*- Autoconf -*- 2893 2894# Copyright (C) 2001-2013 Free Software Foundation, Inc. 2895# 2896# This file is free software; the Free Software Foundation 2897# gives unlimited permission to copy and/or distribute it, 2898# with or without modifications, as long as this notice is preserved. 2899 2900# AM_MAKE_INCLUDE() 2901# ----------------- 2902# Check to see how make treats includes. 2903 2904 2905# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 2906 2907# Copyright (C) 1997-2013 Free Software Foundation, Inc. 2908# 2909# This file is free software; the Free Software Foundation 2910# gives unlimited permission to copy and/or distribute it, 2911# with or without modifications, as long as this notice is preserved. 2912 2913# AM_MISSING_PROG(NAME, PROGRAM) 2914# ------------------------------ 2915 2916 2917# AM_MISSING_HAS_RUN 2918# ------------------ 2919# Define MISSING if not defined so far and test if it is modern enough. 2920# If it is, set am_missing_run to use it, otherwise, to nothing. 2921 2922 2923# Helper functions for option handling. -*- Autoconf -*- 2924 2925# Copyright (C) 2001-2013 Free Software Foundation, Inc. 2926# 2927# This file is free software; the Free Software Foundation 2928# gives unlimited permission to copy and/or distribute it, 2929# with or without modifications, as long as this notice is preserved. 2930 2931# _AM_MANGLE_OPTION(NAME) 2932# ----------------------- 2933 2934 2935# _AM_SET_OPTION(NAME) 2936# -------------------- 2937# Set option NAME. Presently that only means defining a flag for this option. 2938 2939 2940# _AM_SET_OPTIONS(OPTIONS) 2941# ------------------------ 2942# OPTIONS is a space-separated list of Automake options. 2943 2944 2945# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 2946# ------------------------------------------- 2947# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 2948 2949 2950# Copyright (C) 1999-2013 Free Software Foundation, Inc. 2951# 2952# This file is free software; the Free Software Foundation 2953# gives unlimited permission to copy and/or distribute it, 2954# with or without modifications, as long as this notice is preserved. 2955 2956# _AM_PROG_CC_C_O 2957# --------------- 2958# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 2959# to automatically call this. 2960 2961 2962# For backward compatibility. 2963 2964 2965# Copyright (C) 2001-2013 Free Software Foundation, Inc. 2966# 2967# This file is free software; the Free Software Foundation 2968# gives unlimited permission to copy and/or distribute it, 2969# with or without modifications, as long as this notice is preserved. 2970 2971# AM_RUN_LOG(COMMAND) 2972# ------------------- 2973# Run COMMAND, save the exit status in ac_status, and log it. 2974# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 2975 2976 2977# Check to make sure that the build environment is sane. -*- Autoconf -*- 2978 2979# Copyright (C) 1996-2013 Free Software Foundation, Inc. 2980# 2981# This file is free software; the Free Software Foundation 2982# gives unlimited permission to copy and/or distribute it, 2983# with or without modifications, as long as this notice is preserved. 2984 2985# AM_SANITY_CHECK 2986# --------------- 2987 2988 2989# Copyright (C) 2009-2013 Free Software Foundation, Inc. 2990# 2991# This file is free software; the Free Software Foundation 2992# gives unlimited permission to copy and/or distribute it, 2993# with or without modifications, as long as this notice is preserved. 2994 2995# AM_SILENT_RULES([DEFAULT]) 2996# -------------------------- 2997# Enable less verbose build rules; with the default set to DEFAULT 2998# ("yes" being less verbose, "no" or empty being verbose). 2999 3000 3001# Copyright (C) 2001-2013 Free Software Foundation, Inc. 3002# 3003# This file is free software; the Free Software Foundation 3004# gives unlimited permission to copy and/or distribute it, 3005# with or without modifications, as long as this notice is preserved. 3006 3007# AM_PROG_INSTALL_STRIP 3008# --------------------- 3009# One issue with vendor 'install' (even GNU) is that you can't 3010# specify the program used to strip binaries. This is especially 3011# annoying in cross-compiling environments, where the build's strip 3012# is unlikely to handle the host's binaries. 3013# Fortunately install-sh will honor a STRIPPROG variable, so we 3014# always use install-sh in "make install-strip", and initialize 3015# STRIPPROG with the value of the STRIP variable (set by the user). 3016 3017 3018# Copyright (C) 2006-2013 Free Software Foundation, Inc. 3019# 3020# This file is free software; the Free Software Foundation 3021# gives unlimited permission to copy and/or distribute it, 3022# with or without modifications, as long as this notice is preserved. 3023 3024# _AM_SUBST_NOTMAKE(VARIABLE) 3025# --------------------------- 3026# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 3027# This macro is traced by Automake. 3028 3029 3030# AM_SUBST_NOTMAKE(VARIABLE) 3031# -------------------------- 3032# Public sister of _AM_SUBST_NOTMAKE. 3033 3034 3035# Check how to create a tarball. -*- Autoconf -*- 3036 3037# Copyright (C) 2004-2013 Free Software Foundation, Inc. 3038# 3039# This file is free software; the Free Software Foundation 3040# gives unlimited permission to copy and/or distribute it, 3041# with or without modifications, as long as this notice is preserved. 3042 3043# _AM_PROG_TAR(FORMAT) 3044# -------------------- 3045# Check how to create a tarball in format FORMAT. 3046# FORMAT should be one of 'v7', 'ustar', or 'pax'. 3047# 3048# Substitute a variable $(am__tar) that is a command 3049# writing to stdout a FORMAT-tarball containing the directory 3050# $tardir. 3051# tardir=directory && $(am__tar) > result.tar 3052# 3053# Substitute a variable $(am__untar) that extract such 3054# a tarball read from stdin. 3055# $(am__untar) < result.tar 3056# 3057 # _AM_PROG_TAR 3058 3059# -*- mode: autoconf -*- 3060# 3061# AX_OPENCL 3062# 3063# Check for an OpenCL implementation. If CL is found, _OPENCL is defined and 3064# the required compiler and linker flags are included in the output variables 3065# "CL_CFLAGS" and "CL_LIBS", respectively. If no usable CL implementation is 3066# found, "no_cl" is set to "yes". 3067# 3068# If the header "CL/OpenCL.h" is found, "HAVE_CL_OPENCL_H" is defined. If the 3069# header "OpenCL/OpenCL.h" is found, HAVE_OPENCL_OPENCL_H is defined. These 3070# preprocessor definitions may not be mutually exclusive. 3071# 3072# Based on AX_CHECK_GL, version: 2.4 author: Braden McDaniel 3073# <braden@endoframe.com> 3074# 3075# This program is free software; you can redistribute it and/or modify 3076# it under the terms of the GNU General Public License as published by 3077# the Free Software Foundation; either version 2, or (at your option) 3078# any later version. 3079# 3080# This program is distributed in the hope that it will be useful, 3081# but WITHOUT ANY WARRANTY; without even the implied warranty of 3082# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3083# GNU General Public License for more details. 3084# 3085# You should have received a copy of the GNU General Public License 3086# along with this program; if not, write to the Free Software 3087# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 3088# 02110-1301, USA. 3089# 3090# As a special exception, the you may copy, distribute and modify the 3091# configure scripts that are the output of Autoconf when processing 3092# the Macro. You need not follow the terms of the GNU General Public 3093# License when using or distributing such scripts. 3094# 3095 3096# =========================================================================== 3097# http://www.gnu.org/software/autoconf-archive/ax_pthread.html 3098# =========================================================================== 3099# 3100# SYNOPSIS 3101# 3102# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 3103# 3104# DESCRIPTION 3105# 3106# This macro figures out how to build C programs using POSIX threads. It 3107# sets the PTHREAD_LIBS output variable to the threads library and linker 3108# flags, and the PTHREAD_CFLAGS output variable to any special C compiler 3109# flags that are needed. (The user can also force certain compiler 3110# flags/libs to be tested by setting these environment variables.) 3111# 3112# Also sets PTHREAD_CC to any special C compiler that is needed for 3113# multi-threaded programs (defaults to the value of CC otherwise). (This 3114# is necessary on AIX to use the special cc_r compiler alias.) 3115# 3116# NOTE: You are assumed to not only compile your program with these flags, 3117# but also link it with them as well. e.g. you should link with 3118# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 3119# 3120# If you are only building threads programs, you may wish to use these 3121# variables in your default LIBS, CFLAGS, and CC: 3122# 3123# LIBS="$PTHREAD_LIBS $LIBS" 3124# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3125# CC="$PTHREAD_CC" 3126# 3127# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 3128# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name 3129# (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 3130# 3131# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the 3132# PTHREAD_PRIO_INHERIT symbol is defined when compiling with 3133# PTHREAD_CFLAGS. 3134# 3135# ACTION-IF-FOUND is a list of shell commands to run if a threads library 3136# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 3137# is not found. If ACTION-IF-FOUND is not specified, the default action 3138# will define HAVE_PTHREAD. 3139# 3140# Please let the authors know if this macro fails on any platform, or if 3141# you have any other suggestions or comments. This macro was based on work 3142# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 3143# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 3144# Alejandro Forero Cuervo to the autoconf macro repository. We are also 3145# grateful for the helpful feedback of numerous users. 3146# 3147# Updated for Autoconf 2.68 by Daniel Richard G. 3148# 3149# LICENSE 3150# 3151# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 3152# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> 3153# 3154# This program is free software: you can redistribute it and/or modify it 3155# under the terms of the GNU General Public License as published by the 3156# Free Software Foundation, either version 3 of the License, or (at your 3157# option) any later version. 3158# 3159# This program is distributed in the hope that it will be useful, but 3160# WITHOUT ANY WARRANTY; without even the implied warranty of 3161# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 3162# Public License for more details. 3163# 3164# You should have received a copy of the GNU General Public License along 3165# with this program. If not, see <http://www.gnu.org/licenses/>. 3166# 3167# As a special exception, the respective Autoconf Macro's copyright owner 3168# gives unlimited permission to copy, distribute and modify the configure 3169# scripts that are the output of Autoconf when processing the Macro. You 3170# need not follow the terms of the GNU General Public License when using 3171# or distributing such scripts, even though portions of the text of the 3172# Macro appear in them. The GNU General Public License (GPL) does govern 3173# all other use of the material that constitutes the Autoconf Macro. 3174# 3175# This special exception to the GPL applies to versions of the Autoconf 3176# Macro released by the Autoconf Archive. When you make and distribute a 3177# modified version of the Autoconf Macro, you may extend this special 3178# exception to the GPL to apply to your modified version as well. 3179 3180#serial 21 3181 3182# This is what autoupdate's m4 run will expand. It fires 3183# the warning (with _au_warn_XXX), outputs it into the 3184# updated configure.ac (with AC_DIAGNOSE), and then outputs 3185# the replacement expansion. 3186 3187 3188# This is an auxiliary macro that is also run when 3189# autoupdate runs m4. It simply calls m4_warning, but 3190# we need a wrapper so that each warning is emitted only 3191# once. We break the quoting in m4_warning's argument in 3192# order to expand this macro's arguments, not AU_DEFUN's. 3193 3194 3195# Finally, this is the expansion that is picked up by 3196# autoconf. It tells the user to run autoupdate, and 3197# then outputs the replacement expansion. We do not care 3198# about autoupdate's warning because that contains 3199# information on what to do *after* running autoupdate. 3200 3201 3202# =========================================================================== 3203# http://www.gnu.org/software/autoconf-archive/ax_prog_cc_mpi.html 3204# =========================================================================== 3205# 3206# SYNOPSIS 3207# 3208# AX_PROG_CC_MPI([MPI-WANTED-TEST[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]]) 3209# 3210# DESCRIPTION 3211# 3212# This macro tries to find out how to compile C programs that use MPI 3213# (Message Passing Interface), a standard API for parallel process 3214# communication (see http://www-unix.mcs.anl.gov/mpi/). The macro has to 3215# be used instead of the standard macro AC_PROG_CC and will replace the 3216# standard variable CC with the found compiler. 3217# 3218# MPI-WANTED-TEST is used to test whether MPI is actually wanted by the 3219# user. If MPI-WANTED_TEST is omitted or if it succeeds, the macro will 3220# try to find out how to use MPI, if it fails, the macro will call 3221# AC_PROG_CC to find a standard C compiler instead. 3222# 3223# When MPI is found, ACTION-IF-FOUND will be executed, if MPI is not found 3224# (or MPI-WANTED-TEST fails) ACTION-IF-NOT-FOUND is executed. If 3225# ACTION-IF-FOUND is not set, the macro will define HAVE_MPI. 3226# 3227# The following example demonstrates usage of the macro: 3228# 3229# # If --with-mpi=auto is used, try to find MPI, but use standard C compiler if it is not found. 3230# # If --with-mpi=yes is used, try to find MPI and fail if it isn't found. 3231# # If --with-mpi=no is used, use a standard C compiler instead. 3232# AC_ARG_WITH(mpi, [AS_HELP_STRING([--with-mpi], 3233# [compile with MPI (parallelization) support. If none is found, 3234# MPI is not used. Default: auto]) 3235# ],,[with_mpi=auto]) 3236# # 3237# AX_PROG_CC_MPI([test x"$with_mpi" != xno],[use_mpi=yes],[ 3238# use_mpi=no 3239# if test x"$with_mpi" = xyes; then 3240# AC_MSG_FAILURE([MPI compiler requested, but couldn't use MPI.]) 3241# else 3242# AC_MSG_WARN([No MPI compiler found, won't use MPI.]) 3243# fi 3244# ]) 3245# 3246# LICENSE 3247# 3248# Copyright (c) 2010,2011 Olaf Lenz <olenz@icp.uni-stuttgart.de> 3249# 3250# This program is free software: you can redistribute it and/or modify it 3251# under the terms of the GNU General Public License as published by the 3252# Free Software Foundation, either version 3 of the License, or (at your 3253# option) any later version. 3254# 3255# This program is distributed in the hope that it will be useful, but 3256# WITHOUT ANY WARRANTY; without even the implied warranty of 3257# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 3258# Public License for more details. 3259# 3260# You should have received a copy of the GNU General Public License along 3261# with this program. If not, see <http://www.gnu.org/licenses/>. 3262# 3263# As a special exception, the respective Autoconf Macro's copyright owner 3264# gives unlimited permission to copy, distribute and modify the configure 3265# scripts that are the output of Autoconf when processing the Macro. You 3266# need not follow the terms of the GNU General Public License when using 3267# or distributing such scripts, even though portions of the text of the 3268# Macro appear in them. The GNU General Public License (GPL) does govern 3269# all other use of the material that constitutes the Autoconf Macro. 3270# 3271# This special exception to the GPL applies to versions of the Autoconf 3272# Macro released by the Autoconf Archive. When you make and distribute a 3273# modified version of the Autoconf Macro, you may extend this special 3274# exception to the GPL to apply to your modified version as well. 3275 3276#serial 1 3277 3278 3279 3280# And one inline. This one is needed by ax_opencl.m4 but has been replaced by 3281# generic macros. Rather than hack ax_opencl.m4 we include this here (the 3282# original has been obsoleted by AX_COMPILER_VENDOR or something like that) 3283 3284# =========================================================================== 3285# http://www.gnu.org/software/autoconf-archive/ax_check_gnu_make.html 3286# =========================================================================== 3287# 3288# SYNOPSIS 3289# 3290# AX_CHECK_GNU_MAKE() 3291# 3292# DESCRIPTION 3293# 3294# This macro searches for a GNU version of make. If a match is found, the 3295# makefile variable `ifGNUmake' is set to the empty string, otherwise it 3296# is set to "#". This is useful for including a special features in a 3297# Makefile, which cannot be handled by other versions of make. The 3298# variable _cv_gnu_make_command is set to the command to invoke GNU make 3299# if it exists, the empty string otherwise. 3300# 3301# Here is an example of its use: 3302# 3303# Makefile.in might contain: 3304# 3305# # A failsafe way of putting a dependency rule into a makefile 3306# $(DEPEND): 3307# $(CC) -MM $(srcdir)/*.c > $(DEPEND) 3308# 3309# @ifGNUmake@ ifeq ($(DEPEND),$(wildcard $(DEPEND))) 3310# @ifGNUmake@ include $(DEPEND) 3311# @ifGNUmake@ endif 3312# 3313# Then configure.in would normally contain: 3314# 3315# AX_CHECK_GNU_MAKE() 3316# AC_OUTPUT(Makefile) 3317# 3318# Then perhaps to cause gnu make to override any other make, we could do 3319# something like this (note that GNU make always looks for GNUmakefile 3320# first): 3321# 3322# if ! test x$_cv_gnu_make_command = x ; then 3323# mv Makefile GNUmakefile 3324# echo .DEFAULT: > Makefile ; 3325# echo \ $_cv_gnu_make_command \$@ >> Makefile; 3326# fi 3327# 3328# Then, if any (well almost any) other make is called, and GNU make also 3329# exists, then the other make wraps the GNU make. 3330# 3331# LICENSE 3332# 3333# Copyright (c) 2008 John Darrington <j.darrington@elvis.murdoch.edu.au> 3334# 3335# Copying and distribution of this file, with or without modification, are 3336# permitted in any medium without royalty provided the copyright notice 3337# and this notice are preserved. This file is offered as-is, without any 3338# warranty. 3339 3340#serial 7 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389# 3390# AX_ZTEX 3391# 3392# This software is Copyright (c) 2016 Denis Burykin 3393# [denis_burykin yahoo com], [denis-burykin2014 yandex ru] 3394# and it is hereby released to the general public under the following terms: 3395# Redistribution and use in source and binary forms, with or without 3396# modification, are permitted. 3397# 3398# If configured to support ZTEX USB-FPGA module with --enable-ztex=yes: 3399# - check for headers and libraries 3400# - add Makefiles 3401# - set ZTEX_SUBDIRS, ZTEX_LIBS 3402# 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412# Check whether --with-openssl was given. 3413if test "${with_openssl+set}" = set; then : 3414 withval=$with_openssl; 3415else 3416 with_openssl=yes 3417fi 3418 3419 3420# Check whether --with-commoncrypto was given. 3421if test "${with_commoncrypto+set}" = set; then : 3422 withval=$with_commoncrypto; 3423else 3424 with_commoncrypto=no 3425fi 3426 3427 3428# Check whether --with-endian was given. 3429if test "${with_endian+set}" = set; then : 3430 withval=$with_endian; 3431else 3432 endian=unknown 3433fi 3434 3435 3436# Check whether --with-systemwide was given. 3437if test "${with_systemwide+set}" = set; then : 3438 withval=$with_systemwide; 3439else 3440 with_systemwide=no 3441fi 3442 3443 3444# Check whether --with-flock was given. 3445if test "${with_flock+set}" = set; then : 3446 withval=$with_flock; 3447else 3448 with_flock=no 3449fi 3450 3451 3452# Check whether --enable-asan was given. 3453if test "${enable_asan+set}" = set; then : 3454 enableval=$enable_asan; asan=$enableval 3455else 3456 asan=no 3457fi 3458 3459# Check whether --enable-ubsan was given. 3460if test "${enable_ubsan+set}" = set; then : 3461 enableval=$enable_ubsan; ubsan=$enableval 3462else 3463 ubsan=no 3464fi 3465 3466# Check whether --enable-ubsantrap was given. 3467if test "${enable_ubsantrap+set}" = set; then : 3468 enableval=$enable_ubsantrap; ubsantrap=$enableval 3469else 3470 ubsantrap=no 3471fi 3472 3473# Check whether --enable-simd was given. 3474if test "${enable_simd+set}" = set; then : 3475 enableval=$enable_simd; simd=$enableval 3476else 3477 simd=yes 3478fi 3479 3480# Check whether --enable-plugin-dependencies was given. 3481if test "${enable_plugin_dependencies+set}" = set; then : 3482 enableval=$enable_plugin_dependencies; plug_deps=$enableval 3483else 3484 plug_deps=yes 3485fi 3486 3487 3488# Check whether --enable-werror was given. 3489if test "${enable_werror+set}" = set; then : 3490 enableval=$enable_werror; werror=$enableval 3491else 3492 werror=no 3493fi 3494 3495 3496# Check whether --enable-openmp-for-fast-formats was given. 3497if test "${enable_openmp_for_fast_formats+set}" = set; then : 3498 enableval=$enable_openmp_for_fast_formats; ompfast=$enableval 3499else 3500 ompfast=no 3501fi 3502 3503# Check whether --enable-mpi was given. 3504if test "${enable_mpi+set}" = set; then : 3505 enableval=$enable_mpi; enable_mpi=$enableval 3506else 3507 enable_mpi=no 3508fi 3509 3510# Check whether --enable-rexgen was given. 3511if test "${enable_rexgen+set}" = set; then : 3512 enableval=$enable_rexgen; enable_rexgen=$enableval 3513else 3514 enable_rexgen=no 3515fi 3516 3517# Check whether --enable-pcap was given. 3518if test "${enable_pcap+set}" = set; then : 3519 enableval=$enable_pcap; enable_pcap=$enableval 3520else 3521 enable_pcap=auto 3522fi 3523 3524# Check whether --enable-native-tests was given. 3525if test "${enable_native_tests+set}" = set; then : 3526 enableval=$enable_native_tests; enable_native_tests=$enableval 3527else 3528 enable_native_tests=auto 3529fi 3530 3531# Check whether --enable-native-march was given. 3532if test "${enable_native_march+set}" = set; then : 3533 enableval=$enable_native_march; enable_native_march=$enableval 3534else 3535 enable_native_march=no 3536fi 3537 3538# Check whether --enable-ln-s was given. 3539if test "${enable_ln_s+set}" = set; then : 3540 enableval=$enable_ln_s; enable_ln_s=$enableval 3541else 3542 enable_ln_s=no 3543fi 3544 3545# Check whether --enable-pkg-config was given. 3546if test "${enable_pkg_config+set}" = set; then : 3547 enableval=$enable_pkg_config; enable_pkg_config=$enableval 3548else 3549 enable_pkg_config=no 3550fi 3551 3552# Check whether --enable-nt-full-unicode was given. 3553if test "${enable_nt_full_unicode+set}" = set; then : 3554 enableval=$enable_nt_full_unicode; enable_nt_unicode=$enableval 3555else 3556 enable_nt_unicode=no 3557fi 3558 3559# Check whether --enable-int128 was given. 3560if test "${enable_int128+set}" = set; then : 3561 enableval=$enable_int128; enable_int128=$enableval 3562else 3563 enable_int128=auto 3564fi 3565 3566# Check whether --enable-experimental-code was given. 3567if test "${enable_experimental_code+set}" = set; then : 3568 enableval=$enable_experimental_code; experimental=$enableval 3569else 3570 experimental=no 3571fi 3572 3573# Check whether --enable-fuzz was given. 3574if test "${enable_fuzz+set}" = set; then : 3575 enableval=$enable_fuzz; fuzz=$enableval 3576else 3577 fuzz=no 3578fi 3579 3580# Check whether --enable-libfuzzer was given. 3581if test "${enable_libfuzzer+set}" = set; then : 3582 enableval=$enable_libfuzzer; libfuzzer=$enableval 3583else 3584 libfuzzer=no 3585fi 3586 3587 3588 3589if test -f GNU?akefile; then 3590 as_fn_error $? "Stray GNUmakefile (or GNUMakefile) detected. Please remove it" "$LINENO" 5 3591fi 3592 3593ac_aux_dir= 3594for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3595 if test -f "$ac_dir/install-sh"; then 3596 ac_aux_dir=$ac_dir 3597 ac_install_sh="$ac_aux_dir/install-sh -c" 3598 break 3599 elif test -f "$ac_dir/install.sh"; then 3600 ac_aux_dir=$ac_dir 3601 ac_install_sh="$ac_aux_dir/install.sh -c" 3602 break 3603 elif test -f "$ac_dir/shtool"; then 3604 ac_aux_dir=$ac_dir 3605 ac_install_sh="$ac_aux_dir/shtool install -c" 3606 break 3607 fi 3608done 3609if test -z "$ac_aux_dir"; then 3610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3611fi 3612 3613# These three variables are undocumented and unsupported, 3614# and are intended to be withdrawn in a future Autoconf release. 3615# They can cause serious problems if a builder's source tree is in a directory 3616# whose full name contains unusual characters. 3617ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3618ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3619ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3620 3621 3622# Make sure we can run config.sub. 3623$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3625 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3627$as_echo_n "checking build system type... " >&6; } 3628if ${ac_cv_build+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 ac_build_alias=$build_alias 3632test "x$ac_build_alias" = x && 3633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3634test "x$ac_build_alias" = x && 3635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3636ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3638 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3641$as_echo "$ac_cv_build" >&6; } 3642case $ac_cv_build in 3643*-*-*) ;; 3644*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3645esac 3646build=$ac_cv_build 3647ac_save_IFS=$IFS; IFS='-' 3648set x $ac_cv_build 3649shift 3650build_cpu=$1 3651build_vendor=$2 3652shift; shift 3653# Remember, the first character of IFS is used to create $*, 3654# except with old shells: 3655build_os=$* 3656IFS=$ac_save_IFS 3657case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3658 3659 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3661$as_echo_n "checking host system type... " >&6; } 3662if ${ac_cv_host+:} false; then : 3663 $as_echo_n "(cached) " >&6 3664else 3665 if test "x$host_alias" = x; then 3666 ac_cv_host=$ac_cv_build 3667else 3668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3670fi 3671 3672fi 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3674$as_echo "$ac_cv_host" >&6; } 3675case $ac_cv_host in 3676*-*-*) ;; 3677*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3678esac 3679host=$ac_cv_host 3680ac_save_IFS=$IFS; IFS='-' 3681set x $ac_cv_host 3682shift 3683host_cpu=$1 ; case $host_cpu in amd64) host_cpu=x86_64 ;; esac 3684host_vendor=$2 3685shift; shift 3686# Remember, the first character of IFS is used to create $*, 3687# except with old shells: 3688host_os=$* 3689IFS=$ac_save_IFS 3690case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3691 3692 3693 3694using_mpi=no 3695# expand $ac_aux_dir to an absolute path 3696am_aux_dir=`cd $ac_aux_dir && pwd` 3697 3698 3699 3700 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile using MPI" >&5 3702$as_echo_n "checking whether to compile using MPI... " >&6; } 3703 if test "x$enable_mpi" != xno; then 3704 _ax_prog_cc_mpi_mpi_wanted=yes 3705 else 3706 _ax_prog_cc_mpi_mpi_wanted=no 3707 fi 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_wanted" >&5 3709$as_echo "$_ax_prog_cc_mpi_mpi_wanted" >&6; } 3710 3711 if test x"$_ax_prog_cc_mpi_mpi_wanted" = xyes; then 3712 if test -z "$CC" && test -n "$MPICC"; then 3713 CC="$MPICC" 3714 else 3715 if test -n "$ac_tool_prefix"; then 3716 for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc 3717 do 3718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3719set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721$as_echo_n "checking for $ac_word... " >&6; } 3722if ${ac_cv_prog_CC+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -n "$CC"; then 3726 ac_cv_prog_CC="$CC" # Let the user override the test. 3727else 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743fi 3744fi 3745CC=$ac_cv_prog_CC 3746if test -n "$CC"; then 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3748$as_echo "$CC" >&6; } 3749else 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752fi 3753 3754 3755 test -n "$CC" && break 3756 done 3757fi 3758if test -z "$CC"; then 3759 ac_ct_CC=$CC 3760 for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc 3761do 3762 # Extract the first word of "$ac_prog", so it can be a program name with args. 3763set dummy $ac_prog; ac_word=$2 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3765$as_echo_n "checking for $ac_word... " >&6; } 3766if ${ac_cv_prog_ac_ct_CC+:} false; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 if test -n "$ac_ct_CC"; then 3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3771else 3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3773for as_dir in $PATH 3774do 3775 IFS=$as_save_IFS 3776 test -z "$as_dir" && as_dir=. 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3779 ac_cv_prog_ac_ct_CC="$ac_prog" 3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783done 3784 done 3785IFS=$as_save_IFS 3786 3787fi 3788fi 3789ac_ct_CC=$ac_cv_prog_ac_ct_CC 3790if test -n "$ac_ct_CC"; then 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3792$as_echo "$ac_ct_CC" >&6; } 3793else 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795$as_echo "no" >&6; } 3796fi 3797 3798 3799 test -n "$ac_ct_CC" && break 3800done 3801 3802 if test "x$ac_ct_CC" = x; then 3803 CC="" 3804 else 3805 case $cross_compiling:$ac_tool_warned in 3806yes:) 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3809ac_tool_warned=yes ;; 3810esac 3811 CC=$ac_ct_CC 3812 fi 3813fi 3814 3815 fi 3816 fi 3817 ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822if test -n "$ac_tool_prefix"; then 3823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3824set dummy ${ac_tool_prefix}gcc; ac_word=$2 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3826$as_echo_n "checking for $ac_word... " >&6; } 3827if ${ac_cv_prog_CC+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 if test -n "$CC"; then 3831 ac_cv_prog_CC="$CC" # Let the user override the test. 3832else 3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834for as_dir in $PATH 3835do 3836 IFS=$as_save_IFS 3837 test -z "$as_dir" && as_dir=. 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3840 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3842 break 2 3843 fi 3844done 3845 done 3846IFS=$as_save_IFS 3847 3848fi 3849fi 3850CC=$ac_cv_prog_CC 3851if test -n "$CC"; then 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3853$as_echo "$CC" >&6; } 3854else 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3856$as_echo "no" >&6; } 3857fi 3858 3859 3860fi 3861if test -z "$ac_cv_prog_CC"; then 3862 ac_ct_CC=$CC 3863 # Extract the first word of "gcc", so it can be a program name with args. 3864set dummy gcc; ac_word=$2 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3866$as_echo_n "checking for $ac_word... " >&6; } 3867if ${ac_cv_prog_ac_ct_CC+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -n "$ac_ct_CC"; then 3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3872else 3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3874for as_dir in $PATH 3875do 3876 IFS=$as_save_IFS 3877 test -z "$as_dir" && as_dir=. 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3880 ac_cv_prog_ac_ct_CC="gcc" 3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884done 3885 done 3886IFS=$as_save_IFS 3887 3888fi 3889fi 3890ac_ct_CC=$ac_cv_prog_ac_ct_CC 3891if test -n "$ac_ct_CC"; then 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3893$as_echo "$ac_ct_CC" >&6; } 3894else 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3896$as_echo "no" >&6; } 3897fi 3898 3899 if test "x$ac_ct_CC" = x; then 3900 CC="" 3901 else 3902 case $cross_compiling:$ac_tool_warned in 3903yes:) 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3906ac_tool_warned=yes ;; 3907esac 3908 CC=$ac_ct_CC 3909 fi 3910else 3911 CC="$ac_cv_prog_CC" 3912fi 3913 3914if test -z "$CC"; then 3915 if test -n "$ac_tool_prefix"; then 3916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3917set dummy ${ac_tool_prefix}cc; ac_word=$2 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3919$as_echo_n "checking for $ac_word... " >&6; } 3920if ${ac_cv_prog_CC+:} false; then : 3921 $as_echo_n "(cached) " >&6 3922else 3923 if test -n "$CC"; then 3924 ac_cv_prog_CC="$CC" # Let the user override the test. 3925else 3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3927for as_dir in $PATH 3928do 3929 IFS=$as_save_IFS 3930 test -z "$as_dir" && as_dir=. 3931 for ac_exec_ext in '' $ac_executable_extensions; do 3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3933 ac_cv_prog_CC="${ac_tool_prefix}cc" 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3935 break 2 3936 fi 3937done 3938 done 3939IFS=$as_save_IFS 3940 3941fi 3942fi 3943CC=$ac_cv_prog_CC 3944if test -n "$CC"; then 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3946$as_echo "$CC" >&6; } 3947else 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3949$as_echo "no" >&6; } 3950fi 3951 3952 3953 fi 3954fi 3955if test -z "$CC"; then 3956 # Extract the first word of "cc", so it can be a program name with args. 3957set dummy cc; ac_word=$2 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3959$as_echo_n "checking for $ac_word... " >&6; } 3960if ${ac_cv_prog_CC+:} false; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 if test -n "$CC"; then 3964 ac_cv_prog_CC="$CC" # Let the user override the test. 3965else 3966 ac_prog_rejected=no 3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_exec_ext in '' $ac_executable_extensions; do 3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3975 ac_prog_rejected=yes 3976 continue 3977 fi 3978 ac_cv_prog_CC="cc" 3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3980 break 2 3981 fi 3982done 3983 done 3984IFS=$as_save_IFS 3985 3986if test $ac_prog_rejected = yes; then 3987 # We found a bogon in the path, so make sure we never use it. 3988 set dummy $ac_cv_prog_CC 3989 shift 3990 if test $# != 0; then 3991 # We chose a different compiler from the bogus one. 3992 # However, it has the same basename, so the bogon will be chosen 3993 # first if we set CC to just the basename; use the full file name. 3994 shift 3995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3996 fi 3997fi 3998fi 3999fi 4000CC=$ac_cv_prog_CC 4001if test -n "$CC"; then 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4003$as_echo "$CC" >&6; } 4004else 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4006$as_echo "no" >&6; } 4007fi 4008 4009 4010fi 4011if test -z "$CC"; then 4012 if test -n "$ac_tool_prefix"; then 4013 for ac_prog in cl.exe 4014 do 4015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4016set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4018$as_echo_n "checking for $ac_word... " >&6; } 4019if ${ac_cv_prog_CC+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021else 4022 if test -n "$CC"; then 4023 ac_cv_prog_CC="$CC" # Let the user override the test. 4024else 4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4026for as_dir in $PATH 4027do 4028 IFS=$as_save_IFS 4029 test -z "$as_dir" && as_dir=. 4030 for ac_exec_ext in '' $ac_executable_extensions; do 4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4034 break 2 4035 fi 4036done 4037 done 4038IFS=$as_save_IFS 4039 4040fi 4041fi 4042CC=$ac_cv_prog_CC 4043if test -n "$CC"; then 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4045$as_echo "$CC" >&6; } 4046else 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048$as_echo "no" >&6; } 4049fi 4050 4051 4052 test -n "$CC" && break 4053 done 4054fi 4055if test -z "$CC"; then 4056 ac_ct_CC=$CC 4057 for ac_prog in cl.exe 4058do 4059 # Extract the first word of "$ac_prog", so it can be a program name with args. 4060set dummy $ac_prog; ac_word=$2 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4062$as_echo_n "checking for $ac_word... " >&6; } 4063if ${ac_cv_prog_ac_ct_CC+:} false; then : 4064 $as_echo_n "(cached) " >&6 4065else 4066 if test -n "$ac_ct_CC"; then 4067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4068else 4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4070for as_dir in $PATH 4071do 4072 IFS=$as_save_IFS 4073 test -z "$as_dir" && as_dir=. 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4076 ac_cv_prog_ac_ct_CC="$ac_prog" 4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4078 break 2 4079 fi 4080done 4081 done 4082IFS=$as_save_IFS 4083 4084fi 4085fi 4086ac_ct_CC=$ac_cv_prog_ac_ct_CC 4087if test -n "$ac_ct_CC"; then 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4089$as_echo "$ac_ct_CC" >&6; } 4090else 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092$as_echo "no" >&6; } 4093fi 4094 4095 4096 test -n "$ac_ct_CC" && break 4097done 4098 4099 if test "x$ac_ct_CC" = x; then 4100 CC="" 4101 else 4102 case $cross_compiling:$ac_tool_warned in 4103yes:) 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4106ac_tool_warned=yes ;; 4107esac 4108 CC=$ac_ct_CC 4109 fi 4110fi 4111 4112fi 4113 4114 4115test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4117as_fn_error $? "no acceptable C compiler found in \$PATH 4118See \`config.log' for more details" "$LINENO" 5; } 4119 4120# Provide some information about the compiler. 4121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4122set X $ac_compile 4123ac_compiler=$2 4124for ac_option in --version -v -V -qversion; do 4125 { { ac_try="$ac_compiler $ac_option >&5" 4126case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129esac 4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4131$as_echo "$ac_try_echo"; } >&5 4132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4133 ac_status=$? 4134 if test -s conftest.err; then 4135 sed '10a\ 4136... rest of stderr output deleted ... 4137 10q' conftest.err >conftest.er1 4138 cat conftest.er1 >&5 4139 fi 4140 rm -f conftest.er1 conftest.err 4141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4142 test $ac_status = 0; } 4143done 4144 4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147 4148int 4149main () 4150{ 4151 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156ac_clean_files_save=$ac_clean_files 4157ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4158# Try to create an executable without -o first, disregard a.out. 4159# It will help us diagnose broken compilers, and finding out an intuition 4160# of exeext. 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4162$as_echo_n "checking whether the C compiler works... " >&6; } 4163ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4164 4165# The possible output files: 4166ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4167 4168ac_rmfiles= 4169for ac_file in $ac_files 4170do 4171 case $ac_file in 4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4173 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4174 esac 4175done 4176rm -f $ac_rmfiles 4177 4178if { { ac_try="$ac_link_default" 4179case "(($ac_try" in 4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4181 *) ac_try_echo=$ac_try;; 4182esac 4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4184$as_echo "$ac_try_echo"; } >&5 4185 (eval "$ac_link_default") 2>&5 4186 ac_status=$? 4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4188 test $ac_status = 0; }; then : 4189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4191# in a Makefile. We should not override ac_cv_exeext if it was cached, 4192# so that the user can short-circuit this test for compilers unknown to 4193# Autoconf. 4194for ac_file in $ac_files '' 4195do 4196 test -f "$ac_file" || continue 4197 case $ac_file in 4198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4199 ;; 4200 [ab].out ) 4201 # We found the default executable, but exeext='' is most 4202 # certainly right. 4203 break;; 4204 *.* ) 4205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4206 then :; else 4207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4208 fi 4209 # We set ac_cv_exeext here because the later test for it is not 4210 # safe: cross compilers may not add the suffix if given an `-o' 4211 # argument, so we may need to know it at that point already. 4212 # Even if this section looks crufty: it has the advantage of 4213 # actually working. 4214 break;; 4215 * ) 4216 break;; 4217 esac 4218done 4219test "$ac_cv_exeext" = no && ac_cv_exeext= 4220 4221else 4222 ac_file='' 4223fi 4224if test -z "$ac_file"; then : 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4226$as_echo "no" >&6; } 4227$as_echo "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4232as_fn_error 77 "C compiler cannot create executables 4233See \`config.log' for more details" "$LINENO" 5; } 4234else 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4236$as_echo "yes" >&6; } 4237fi 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4239$as_echo_n "checking for C compiler default output file name... " >&6; } 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4241$as_echo "$ac_file" >&6; } 4242ac_exeext=$ac_cv_exeext 4243 4244rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4245ac_clean_files=$ac_clean_files_save 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4247$as_echo_n "checking for suffix of executables... " >&6; } 4248if { { ac_try="$ac_link" 4249case "(($ac_try" in 4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4251 *) ac_try_echo=$ac_try;; 4252esac 4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4254$as_echo "$ac_try_echo"; } >&5 4255 (eval "$ac_link") 2>&5 4256 ac_status=$? 4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4258 test $ac_status = 0; }; then : 4259 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4261# work properly (i.e., refer to `conftest.exe'), while it won't with 4262# `rm'. 4263for ac_file in conftest.exe conftest conftest.*; do 4264 test -f "$ac_file" || continue 4265 case $ac_file in 4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4268 break;; 4269 * ) break;; 4270 esac 4271done 4272else 4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4275as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4276See \`config.log' for more details" "$LINENO" 5; } 4277fi 4278rm -f conftest conftest$ac_cv_exeext 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4280$as_echo "$ac_cv_exeext" >&6; } 4281 4282rm -f conftest.$ac_ext 4283EXEEXT=$ac_cv_exeext 4284ac_exeext=$EXEEXT 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <stdio.h> 4288int 4289main () 4290{ 4291FILE *f = fopen ("conftest.out", "w"); 4292 return ferror (f) || fclose (f) != 0; 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298ac_clean_files="$ac_clean_files conftest.out" 4299# Check that the compiler produces executables we can run. If not, either 4300# the compiler is broken, or we cross compile. 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4302$as_echo_n "checking whether we are cross compiling... " >&6; } 4303if test "$cross_compiling" != yes; then 4304 { { ac_try="$ac_link" 4305case "(($ac_try" in 4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4307 *) ac_try_echo=$ac_try;; 4308esac 4309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4310$as_echo "$ac_try_echo"; } >&5 4311 (eval "$ac_link") 2>&5 4312 ac_status=$? 4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4314 test $ac_status = 0; } 4315 if { ac_try='./conftest$ac_cv_exeext' 4316 { { case "(($ac_try" in 4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4318 *) ac_try_echo=$ac_try;; 4319esac 4320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4321$as_echo "$ac_try_echo"; } >&5 4322 (eval "$ac_try") 2>&5 4323 ac_status=$? 4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4325 test $ac_status = 0; }; }; then 4326 cross_compiling=no 4327 else 4328 if test "$cross_compiling" = maybe; then 4329 cross_compiling=yes 4330 else 4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4333as_fn_error $? "cannot run C compiled programs. 4334If you meant to cross compile, use \`--host'. 4335See \`config.log' for more details" "$LINENO" 5; } 4336 fi 4337 fi 4338fi 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4340$as_echo "$cross_compiling" >&6; } 4341 4342rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4343ac_clean_files=$ac_clean_files_save 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4345$as_echo_n "checking for suffix of object files... " >&6; } 4346if ${ac_cv_objext+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4350/* end confdefs.h. */ 4351 4352int 4353main () 4354{ 4355 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360rm -f conftest.o conftest.obj 4361if { { ac_try="$ac_compile" 4362case "(($ac_try" in 4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4364 *) ac_try_echo=$ac_try;; 4365esac 4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4367$as_echo "$ac_try_echo"; } >&5 4368 (eval "$ac_compile") 2>&5 4369 ac_status=$? 4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4371 test $ac_status = 0; }; then : 4372 for ac_file in conftest.o conftest.obj conftest.*; do 4373 test -f "$ac_file" || continue; 4374 case $ac_file in 4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4377 break;; 4378 esac 4379done 4380else 4381 $as_echo "$as_me: failed program was:" >&5 4382sed 's/^/| /' conftest.$ac_ext >&5 4383 4384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4386as_fn_error $? "cannot compute suffix of object files: cannot compile 4387See \`config.log' for more details" "$LINENO" 5; } 4388fi 4389rm -f conftest.$ac_cv_objext conftest.$ac_ext 4390fi 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4392$as_echo "$ac_cv_objext" >&6; } 4393OBJEXT=$ac_cv_objext 4394ac_objext=$OBJEXT 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4396$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4397if ${ac_cv_c_compiler_gnu+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399else 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402 4403int 4404main () 4405{ 4406#ifndef __GNUC__ 4407 choke me 4408#endif 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414if ac_fn_c_try_compile "$LINENO"; then : 4415 ac_compiler_gnu=yes 4416else 4417 ac_compiler_gnu=no 4418fi 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420ac_cv_c_compiler_gnu=$ac_compiler_gnu 4421 4422fi 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4424$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4425if test $ac_compiler_gnu = yes; then 4426 GCC=yes 4427else 4428 GCC= 4429fi 4430ac_test_CFLAGS=${CFLAGS+set} 4431ac_save_CFLAGS=$CFLAGS 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4433$as_echo_n "checking whether $CC accepts -g... " >&6; } 4434if ${ac_cv_prog_cc_g+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 ac_save_c_werror_flag=$ac_c_werror_flag 4438 ac_c_werror_flag=yes 4439 ac_cv_prog_cc_g=no 4440 CFLAGS="-g" 4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442/* end confdefs.h. */ 4443 4444int 4445main () 4446{ 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452if ac_fn_c_try_compile "$LINENO"; then : 4453 ac_cv_prog_cc_g=yes 4454else 4455 CFLAGS="" 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458 4459int 4460main () 4461{ 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467if ac_fn_c_try_compile "$LINENO"; then : 4468 4469else 4470 ac_c_werror_flag=$ac_save_c_werror_flag 4471 CFLAGS="-g" 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473/* end confdefs.h. */ 4474 4475int 4476main () 4477{ 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483if ac_fn_c_try_compile "$LINENO"; then : 4484 ac_cv_prog_cc_g=yes 4485fi 4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4487fi 4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4489fi 4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4491 ac_c_werror_flag=$ac_save_c_werror_flag 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4494$as_echo "$ac_cv_prog_cc_g" >&6; } 4495if test "$ac_test_CFLAGS" = set; then 4496 CFLAGS=$ac_save_CFLAGS 4497elif test $ac_cv_prog_cc_g = yes; then 4498 if test "$GCC" = yes; then 4499 CFLAGS="-g -O2" 4500 else 4501 CFLAGS="-g" 4502 fi 4503else 4504 if test "$GCC" = yes; then 4505 CFLAGS="-O2" 4506 else 4507 CFLAGS= 4508 fi 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4511$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4512if ${ac_cv_prog_cc_c89+:} false; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 ac_cv_prog_cc_c89=no 4516ac_save_CC=$CC 4517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518/* end confdefs.h. */ 4519#include <stdarg.h> 4520#include <stdio.h> 4521struct stat; 4522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4523struct buf { int x; }; 4524FILE * (*rcsopen) (struct buf *, struct stat *, int); 4525static char *e (p, i) 4526 char **p; 4527 int i; 4528{ 4529 return p[i]; 4530} 4531static char *f (char * (*g) (char **, int), char **p, ...) 4532{ 4533 char *s; 4534 va_list v; 4535 va_start (v,p); 4536 s = g (p, va_arg (v,int)); 4537 va_end (v); 4538 return s; 4539} 4540 4541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4542 function prototypes and stuff, but not '\xHH' hex character constants. 4543 These don't provoke an error unfortunately, instead are silently treated 4544 as 'x'. The following induces an error, until -std is added to get 4545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4546 array size at least. It's necessary to write '\x00'==0 to get something 4547 that's true only with -std. */ 4548int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4549 4550/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4551 inside strings and character constants. */ 4552#define FOO(x) 'x' 4553int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4554 4555int test (int i, double x); 4556struct s1 {int (*f) (int a);}; 4557struct s2 {int (*f) (double a);}; 4558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4559int argc; 4560char **argv; 4561int 4562main () 4563{ 4564return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4571do 4572 CC="$ac_save_CC $ac_arg" 4573 if ac_fn_c_try_compile "$LINENO"; then : 4574 ac_cv_prog_cc_c89=$ac_arg 4575fi 4576rm -f core conftest.err conftest.$ac_objext 4577 test "x$ac_cv_prog_cc_c89" != "xno" && break 4578done 4579rm -f conftest.$ac_ext 4580CC=$ac_save_CC 4581 4582fi 4583# AC_CACHE_VAL 4584case "x$ac_cv_prog_cc_c89" in 4585 x) 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4587$as_echo "none needed" >&6; } ;; 4588 xno) 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4590$as_echo "unsupported" >&6; } ;; 4591 *) 4592 CC="$CC $ac_cv_prog_cc_c89" 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4594$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4595esac 4596if test "x$ac_cv_prog_cc_c89" != xno; then : 4597 4598fi 4599 4600ac_ext=c 4601ac_cpp='$CPP $CPPFLAGS' 4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4604ac_compiler_gnu=$ac_cv_c_compiler_gnu 4605 4606ac_ext=c 4607ac_cpp='$CPP $CPPFLAGS' 4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4610ac_compiler_gnu=$ac_cv_c_compiler_gnu 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4612$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4613if ${am_cv_prog_cc_c_o+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4617/* end confdefs.h. */ 4618 4619int 4620main () 4621{ 4622 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627 # Make sure it works both with $CC and with simple cc. 4628 # Following AC_PROG_CC_C_O, we do the test twice because some 4629 # compilers refuse to overwrite an existing .o file with -o, 4630 # though they will create one. 4631 am_cv_prog_cc_c_o=yes 4632 for am_i in 1 2; do 4633 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4634 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4635 ac_status=$? 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); } \ 4638 && test -f conftest2.$ac_objext; then 4639 : OK 4640 else 4641 am_cv_prog_cc_c_o=no 4642 break 4643 fi 4644 done 4645 rm -f core conftest* 4646 unset am_i 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4649$as_echo "$am_cv_prog_cc_c_o" >&6; } 4650if test "$am_cv_prog_cc_c_o" != yes; then 4651 # Losing compiler, so override with the script. 4652 # FIXME: It is wrong to rewrite CC. 4653 # But if we don't then we get into trouble of one sort or another. 4654 # A longer-term fix would be to have automake use am__CC in this case, 4655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4656 CC="$am_aux_dir/compile $CC" 4657fi 4658ac_ext=c 4659ac_cpp='$CPP $CPPFLAGS' 4660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4662ac_compiler_gnu=$ac_cv_c_compiler_gnu 4663 4664 4665 4666 4667 4668 4669 4670# Check for compiler 4671# Needs to be split off into an extra macro to ensure right expansion 4672# order. 4673 4674 4675if test x"$_ax_prog_cc_mpi_mpi_wanted" = xno; then : 4676 _ax_prog_cc_mpi_mpi_found=no 4677else 4678 4679 ac_ext=c 4680ac_cpp='$CPP $CPPFLAGS' 4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4683ac_compiler_gnu=$ac_cv_c_compiler_gnu 4684 4685 # test whether MPI_Init is available 4686 # We do not use AC_SEARCH_LIBS here, as it caches its outcome and 4687 # thus disallows corresponding calls in the other AX_PROG_*_MPI 4688 # macros. 4689 for lib in NONE mpi mpich; do 4690 save_LIBS=$LIBS 4691 if test x"$lib" = xNONE; then 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init" >&5 4693$as_echo_n "checking for function MPI_Init... " >&6; } 4694 else 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init in -l$lib" >&5 4696$as_echo_n "checking for function MPI_Init in -l$lib... " >&6; } 4697 LIBS="-l$lib $LIBS" 4698 fi 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700/* end confdefs.h. */ 4701 4702/* Override any GCC internal prototype to avoid an error. 4703 Use char because int might match the return type of a GCC 4704 builtin and then its argument prototype would still apply. */ 4705#ifdef __cplusplus 4706extern "C" 4707#endif 4708char MPI_Init (); 4709int 4710main () 4711{ 4712return MPI_Init (); 4713 ; 4714 return 0; 4715} 4716_ACEOF 4717if ac_fn_c_try_link "$LINENO"; then : 4718 _ax_prog_cc_mpi_mpi_found=yes 4719else 4720 _ax_prog_cc_mpi_mpi_found=no 4721fi 4722rm -f core conftest.err conftest.$ac_objext \ 4723 conftest$ac_exeext conftest.$ac_ext 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_found" >&5 4725$as_echo "$_ax_prog_cc_mpi_mpi_found" >&6; } 4726 if test "x$_ax_prog_cc_mpi_mpi_found" = "xyes"; then 4727 break; 4728 fi 4729 LIBS=$save_LIBS 4730 done 4731 4732 # Check for header 4733 if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then : 4734 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 4736$as_echo_n "checking for mpi.h... " >&6; } 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739#include <mpi.h> 4740int 4741main () 4742{ 4743 4744 ; 4745 return 0; 4746} 4747_ACEOF 4748if ac_fn_c_try_compile "$LINENO"; then : 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4750$as_echo "yes" >&6; } 4751else 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4753$as_echo "no" >&6; } 4754 _ax_prog_cc_mpi_mpi_found=no 4755 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758 4759fi 4760 ac_ext=c 4761ac_cpp='$CPP $CPPFLAGS' 4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4764ac_compiler_gnu=$ac_cv_c_compiler_gnu 4765 4766 if test x"$_ax_prog_cc_mpi_mpi_wanted" = xyes -a x"$_ax_prog_cc_mpi_mpi_found" = xno; then 4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4769as_fn_error $? "MPI not buildable 4770See \`config.log' for more details" "$LINENO" 5; } 4771 fi 4772 4773fi 4774 4775# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 4776if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then : 4777 4778 HAVE_MPI=-DHAVE_MPI 4779 4780 using_mpi=yes 4781 : 4782 4783else 4784 4785 if test "x$enable_mpi" = xyes; then : 4786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4788as_fn_error $? "No MPI compiler found 4789See \`config.log' for more details" "$LINENO" 5; } 4790elif test "x$enable_mpi" != xno; then : 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: No MPI compiler found, disabling MPI" >&5 4792$as_echo "$as_me: No MPI compiler found, disabling MPI" >&6;} 4793fi 4794 ac_ext=c 4795ac_cpp='$CPP $CPPFLAGS' 4796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4798ac_compiler_gnu=$ac_cv_c_compiler_gnu 4799if test -n "$ac_tool_prefix"; then 4800 for ac_prog in gcc cc icc ccc 4801 do 4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4805$as_echo_n "checking for $ac_word... " >&6; } 4806if ${ac_cv_prog_CC+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 if test -n "$CC"; then 4810 ac_cv_prog_CC="$CC" # Let the user override the test. 4811else 4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813for as_dir in $PATH 4814do 4815 IFS=$as_save_IFS 4816 test -z "$as_dir" && as_dir=. 4817 for ac_exec_ext in '' $ac_executable_extensions; do 4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4821 break 2 4822 fi 4823done 4824 done 4825IFS=$as_save_IFS 4826 4827fi 4828fi 4829CC=$ac_cv_prog_CC 4830if test -n "$CC"; then 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4832$as_echo "$CC" >&6; } 4833else 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4835$as_echo "no" >&6; } 4836fi 4837 4838 4839 test -n "$CC" && break 4840 done 4841fi 4842if test -z "$CC"; then 4843 ac_ct_CC=$CC 4844 for ac_prog in gcc cc icc ccc 4845do 4846 # Extract the first word of "$ac_prog", so it can be a program name with args. 4847set dummy $ac_prog; ac_word=$2 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4849$as_echo_n "checking for $ac_word... " >&6; } 4850if ${ac_cv_prog_ac_ct_CC+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 if test -n "$ac_ct_CC"; then 4854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4855else 4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4857for as_dir in $PATH 4858do 4859 IFS=$as_save_IFS 4860 test -z "$as_dir" && as_dir=. 4861 for ac_exec_ext in '' $ac_executable_extensions; do 4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4863 ac_cv_prog_ac_ct_CC="$ac_prog" 4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4865 break 2 4866 fi 4867done 4868 done 4869IFS=$as_save_IFS 4870 4871fi 4872fi 4873ac_ct_CC=$ac_cv_prog_ac_ct_CC 4874if test -n "$ac_ct_CC"; then 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4876$as_echo "$ac_ct_CC" >&6; } 4877else 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4879$as_echo "no" >&6; } 4880fi 4881 4882 4883 test -n "$ac_ct_CC" && break 4884done 4885 4886 if test "x$ac_ct_CC" = x; then 4887 CC="" 4888 else 4889 case $cross_compiling:$ac_tool_warned in 4890yes:) 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4893ac_tool_warned=yes ;; 4894esac 4895 CC=$ac_ct_CC 4896 fi 4897fi 4898 4899 4900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4902as_fn_error $? "no acceptable C compiler found in \$PATH 4903See \`config.log' for more details" "$LINENO" 5; } 4904 4905# Provide some information about the compiler. 4906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4907set X $ac_compile 4908ac_compiler=$2 4909for ac_option in --version -v -V -qversion; do 4910 { { ac_try="$ac_compiler $ac_option >&5" 4911case "(($ac_try" in 4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4913 *) ac_try_echo=$ac_try;; 4914esac 4915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4916$as_echo "$ac_try_echo"; } >&5 4917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4918 ac_status=$? 4919 if test -s conftest.err; then 4920 sed '10a\ 4921... rest of stderr output deleted ... 4922 10q' conftest.err >conftest.er1 4923 cat conftest.er1 >&5 4924 fi 4925 rm -f conftest.er1 conftest.err 4926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4927 test $ac_status = 0; } 4928done 4929 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4931$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4932if ${ac_cv_c_compiler_gnu+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937 4938int 4939main () 4940{ 4941#ifndef __GNUC__ 4942 choke me 4943#endif 4944 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949if ac_fn_c_try_compile "$LINENO"; then : 4950 ac_compiler_gnu=yes 4951else 4952 ac_compiler_gnu=no 4953fi 4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4955ac_cv_c_compiler_gnu=$ac_compiler_gnu 4956 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4959$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4960if test $ac_compiler_gnu = yes; then 4961 GCC=yes 4962else 4963 GCC= 4964fi 4965ac_test_CFLAGS=${CFLAGS+set} 4966ac_save_CFLAGS=$CFLAGS 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4968$as_echo_n "checking whether $CC accepts -g... " >&6; } 4969if ${ac_cv_prog_cc_g+:} false; then : 4970 $as_echo_n "(cached) " >&6 4971else 4972 ac_save_c_werror_flag=$ac_c_werror_flag 4973 ac_c_werror_flag=yes 4974 ac_cv_prog_cc_g=no 4975 CFLAGS="-g" 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978 4979int 4980main () 4981{ 4982 4983 ; 4984 return 0; 4985} 4986_ACEOF 4987if ac_fn_c_try_compile "$LINENO"; then : 4988 ac_cv_prog_cc_g=yes 4989else 4990 CFLAGS="" 4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992/* end confdefs.h. */ 4993 4994int 4995main () 4996{ 4997 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002if ac_fn_c_try_compile "$LINENO"; then : 5003 5004else 5005 ac_c_werror_flag=$ac_save_c_werror_flag 5006 CFLAGS="-g" 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009 5010int 5011main () 5012{ 5013 5014 ; 5015 return 0; 5016} 5017_ACEOF 5018if ac_fn_c_try_compile "$LINENO"; then : 5019 ac_cv_prog_cc_g=yes 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5022fi 5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026 ac_c_werror_flag=$ac_save_c_werror_flag 5027fi 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5029$as_echo "$ac_cv_prog_cc_g" >&6; } 5030if test "$ac_test_CFLAGS" = set; then 5031 CFLAGS=$ac_save_CFLAGS 5032elif test $ac_cv_prog_cc_g = yes; then 5033 if test "$GCC" = yes; then 5034 CFLAGS="-g -O2" 5035 else 5036 CFLAGS="-g" 5037 fi 5038else 5039 if test "$GCC" = yes; then 5040 CFLAGS="-O2" 5041 else 5042 CFLAGS= 5043 fi 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5046$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5047if ${ac_cv_prog_cc_c89+:} false; then : 5048 $as_echo_n "(cached) " >&6 5049else 5050 ac_cv_prog_cc_c89=no 5051ac_save_CC=$CC 5052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054#include <stdarg.h> 5055#include <stdio.h> 5056struct stat; 5057/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5058struct buf { int x; }; 5059FILE * (*rcsopen) (struct buf *, struct stat *, int); 5060static char *e (p, i) 5061 char **p; 5062 int i; 5063{ 5064 return p[i]; 5065} 5066static char *f (char * (*g) (char **, int), char **p, ...) 5067{ 5068 char *s; 5069 va_list v; 5070 va_start (v,p); 5071 s = g (p, va_arg (v,int)); 5072 va_end (v); 5073 return s; 5074} 5075 5076/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5077 function prototypes and stuff, but not '\xHH' hex character constants. 5078 These don't provoke an error unfortunately, instead are silently treated 5079 as 'x'. The following induces an error, until -std is added to get 5080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5081 array size at least. It's necessary to write '\x00'==0 to get something 5082 that's true only with -std. */ 5083int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5084 5085/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5086 inside strings and character constants. */ 5087#define FOO(x) 'x' 5088int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5089 5090int test (int i, double x); 5091struct s1 {int (*f) (int a);}; 5092struct s2 {int (*f) (double a);}; 5093int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5094int argc; 5095char **argv; 5096int 5097main () 5098{ 5099return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5100 ; 5101 return 0; 5102} 5103_ACEOF 5104for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5106do 5107 CC="$ac_save_CC $ac_arg" 5108 if ac_fn_c_try_compile "$LINENO"; then : 5109 ac_cv_prog_cc_c89=$ac_arg 5110fi 5111rm -f core conftest.err conftest.$ac_objext 5112 test "x$ac_cv_prog_cc_c89" != "xno" && break 5113done 5114rm -f conftest.$ac_ext 5115CC=$ac_save_CC 5116 5117fi 5118# AC_CACHE_VAL 5119case "x$ac_cv_prog_cc_c89" in 5120 x) 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5122$as_echo "none needed" >&6; } ;; 5123 xno) 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5125$as_echo "unsupported" >&6; } ;; 5126 *) 5127 CC="$CC $ac_cv_prog_cc_c89" 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5129$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5130esac 5131if test "x$ac_cv_prog_cc_c89" != xno; then : 5132 5133fi 5134 5135ac_ext=c 5136ac_cpp='$CPP $CPPFLAGS' 5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5139ac_compiler_gnu=$ac_cv_c_compiler_gnu 5140 5141ac_ext=c 5142ac_cpp='$CPP $CPPFLAGS' 5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5145ac_compiler_gnu=$ac_cv_c_compiler_gnu 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5147$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5148if ${am_cv_prog_cc_c_o+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153 5154int 5155main () 5156{ 5157 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162 # Make sure it works both with $CC and with simple cc. 5163 # Following AC_PROG_CC_C_O, we do the test twice because some 5164 # compilers refuse to overwrite an existing .o file with -o, 5165 # though they will create one. 5166 am_cv_prog_cc_c_o=yes 5167 for am_i in 1 2; do 5168 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5169 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5170 ac_status=$? 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5172 (exit $ac_status); } \ 5173 && test -f conftest2.$ac_objext; then 5174 : OK 5175 else 5176 am_cv_prog_cc_c_o=no 5177 break 5178 fi 5179 done 5180 rm -f core conftest* 5181 unset am_i 5182fi 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5184$as_echo "$am_cv_prog_cc_c_o" >&6; } 5185if test "$am_cv_prog_cc_c_o" != yes; then 5186 # Losing compiler, so override with the script. 5187 # FIXME: It is wrong to rewrite CC. 5188 # But if we don't then we get into trouble of one sort or another. 5189 # A longer-term fix would be to have automake use am__CC in this case, 5190 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5191 CC="$am_aux_dir/compile $CC" 5192fi 5193ac_ext=c 5194ac_cpp='$CPP $CPPFLAGS' 5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_c_compiler_gnu 5198 5199 5200 5201 5202 : 5203 5204fi 5205 5206 5207 5208if test "x$enable_native_tests" = xauto; then 5209 if test "x$cross_compiling" != xno; then 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: This is a cross-compile; all native tests disabled" >&5 5211$as_echo "$as_me: This is a cross-compile; all native tests disabled" >&6;} 5212 enable_native_tests=no 5213 else 5214 enable_native_tests=yes 5215 fi 5216fi 5217 5218if test "x$cross_compiling" = xno; then : 5219 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional paths" >&5 5221$as_echo_n "checking additional paths... " >&6; } 5222 ADD_LDFLAGS="" 5223 ADD_CFLAGS="" 5224if test -d /usr/local/lib; then 5225 ADD_LDFLAGS="$ADD_LDFLAGS -L/usr/local/lib" 5226fi 5227if test -d /usr/local/include; then 5228 ADD_CFLAGS="$ADD_CFLAGS -I/usr/local/include" 5229fi 5230if test -d /opt/local/lib; then 5231 ADD_LDFLAGS="$ADD_LDFLAGS -L/opt/local/lib" 5232fi 5233if test -d /opt/local/include; then 5234 ADD_CFLAGS="$ADD_CFLAGS -I/opt/local/include" 5235fi 5236if test -d /usr/local/opt/openssl/lib; then 5237 ADD_LDFLAGS="$ADD_LDFLAGS -L/usr/local/opt/openssl/lib" 5238fi 5239if test -d /usr/local/opt/openssl/include; then 5240 ADD_CFLAGS="$ADD_CFLAGS -I/usr/local/opt/openssl/include" 5241fi 5242 5243 for i in $ADD_CFLAGS; do 5244 jtr_list_add_dupe=0 5245 for j in $CPPFLAGS; do 5246 if test "x$i" = "x$j"; then 5247 jtr_list_add_dupe=1 5248 break 5249 fi 5250 done 5251 if test $jtr_list_add_dupe = 0; then 5252 CPPFLAGS="$CPPFLAGS $i" 5253 jtr_list_add_result="$jtr_list_add_result $i" 5254 fi 5255 done 5256 # no typo here 5257jtr_list_add_result="" 5258 5259 for i in $ADD_LDFLAGS; do 5260 jtr_list_add_dupe=0 5261 for j in $LDFLAGS; do 5262 if test "x$i" = "x$j"; then 5263 jtr_list_add_dupe=1 5264 break 5265 fi 5266 done 5267 if test $jtr_list_add_dupe = 0; then 5268 LDFLAGS="$LDFLAGS $i" 5269 jtr_list_add_result="$jtr_list_add_result $i" 5270 fi 5271 done 5272 5273 5274 for i in $ADD_CFLAGS; do 5275 jtr_list_add_dupe=0 5276 for j in $CFLAGS; do 5277 if test "x$i" = "x$j"; then 5278 jtr_list_add_dupe=1 5279 break 5280 fi 5281 done 5282 if test $jtr_list_add_dupe = 0; then 5283 CFLAGS="$CFLAGS $i" 5284 jtr_list_add_result="$jtr_list_add_result $i" 5285 fi 5286 done 5287 5288 5289 if test -z "$jtr_list_add_result"; then : 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5291$as_echo "none" >&6; } 5292else 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jtr_list_add_result" >&5 5294$as_echo "$jtr_list_add_result" >&6; } 5295fi 5296 jtr_list_add_result="" 5297 5298 5299fi 5300 5301if test "x$enable_native_tests" = xyes; then : 5302 UNIT_TESTS_DEPENDENCY=unit-tests 5303 5304fi 5305 5306CFLAGS_EX="" 5307if test 0 -gt 0; then : 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fFOO_BAR_SWITCH_NOT_VALID" >&5 5309$as_echo_n "checking if $CC supports -fFOO_BAR_SWITCH_NOT_VALID... " >&6; } 5310fi 5311 ac_ext=c 5312ac_cpp='$CPP $CPPFLAGS' 5313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5315ac_compiler_gnu=$ac_cv_c_compiler_gnu 5316 5317 ac_saved_cflags="$CFLAGS" 5318 CFLAGS="-Werror -fFOO_BAR_SWITCH_NOT_VALID" 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321 5322int 5323main () 5324{ 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_compile "$LINENO"; then : 5331 if test "0" -gt 0; then : 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5333$as_echo "yes" >&6; } 5334fi 5335 CFLAGS_EX="$CFLAGS_EX -fFOO_BAR_SWITCH_NOT_VALID" 5336 5337else 5338 if test 0 -gt 0; then : 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 if test "0" = 2; then : 5343 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5344fi 5345 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348 CFLAGS="$ac_saved_cflags" 5349 ac_ext=c 5350ac_cpp='$CPP $CPPFLAGS' 5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5353ac_compiler_gnu=$ac_cv_c_compiler_gnu 5354 5355 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking arg check macro for -m with $CC" >&5 5357$as_echo_n "checking arg check macro for -m with $CC... " >&6; } 5358if test 0 -gt 0; then : 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mFOO_BAR_SWITCH_NOT_VALID" >&5 5360$as_echo_n "checking if $CC supports -mFOO_BAR_SWITCH_NOT_VALID... " >&6; } 5361fi 5362 ac_ext=c 5363ac_cpp='$CPP $CPPFLAGS' 5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5366ac_compiler_gnu=$ac_cv_c_compiler_gnu 5367 5368 ac_saved_cflags="$CFLAGS" 5369 CFLAGS="-Werror -mFOO_BAR_SWITCH_NOT_VALID" 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_compile "$LINENO"; then : 5382 if test "0" -gt 0; then : 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5384$as_echo "yes" >&6; } 5385fi 5386 CFLAGS_EX="$CFLAGS_EX -mFOO_BAR_SWITCH_NOT_VALID" 5387 5388else 5389 if test 0 -gt 0; then : 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391$as_echo "no" >&6; } 5392fi 5393 if test "0" = 2; then : 5394 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5395fi 5396 5397fi 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399 CFLAGS="$ac_saved_cflags" 5400 ac_ext=c 5401ac_cpp='$CPP $CPPFLAGS' 5402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5404ac_compiler_gnu=$ac_cv_c_compiler_gnu 5405 5406 5407if test 0 -gt 0; then : 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -m666" >&5 5409$as_echo_n "checking if $CC supports -m666... " >&6; } 5410fi 5411 ac_ext=c 5412ac_cpp='$CPP $CPPFLAGS' 5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5415ac_compiler_gnu=$ac_cv_c_compiler_gnu 5416 5417 ac_saved_cflags="$CFLAGS" 5418 CFLAGS="-Werror -m666" 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420/* end confdefs.h. */ 5421 5422int 5423main () 5424{ 5425 5426 ; 5427 return 0; 5428} 5429_ACEOF 5430if ac_fn_c_try_compile "$LINENO"; then : 5431 if test "0" -gt 0; then : 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5433$as_echo "yes" >&6; } 5434fi 5435 CFLAGS_EX="$CFLAGS_EX -m666" 5436 5437else 5438 if test 0 -gt 0; then : 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 if test "0" = 2; then : 5443 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5444fi 5445 5446fi 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448 CFLAGS="$ac_saved_cflags" 5449 ac_ext=c 5450ac_cpp='$CPP $CPPFLAGS' 5451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5453ac_compiler_gnu=$ac_cv_c_compiler_gnu 5454 5455 5456if test "x${CFLAGS_EX}" = x; then : 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5458$as_echo "yes" >&6; } 5459 JTR_FLAG_CHECK_WORKS=yes 5460 5461else 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463$as_echo "no" >&6; } 5464fi 5465 5466CFLAGS_EX="" 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking arg check macro for -Q with $CC" >&5 5468$as_echo_n "checking arg check macro for -Q with $CC... " >&6; } 5469if test 0 -gt 0; then : 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -QFOO_BAR_SWITCH_NOT_VALID" >&5 5471$as_echo_n "checking if $CC supports -QFOO_BAR_SWITCH_NOT_VALID... " >&6; } 5472fi 5473 ac_ext=c 5474ac_cpp='$CPP $CPPFLAGS' 5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5477ac_compiler_gnu=$ac_cv_c_compiler_gnu 5478 5479 ac_saved_cflags="$CFLAGS" 5480 CFLAGS="-Werror -QFOO_BAR_SWITCH_NOT_VALID" 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483 5484int 5485main () 5486{ 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492if ac_fn_c_try_compile "$LINENO"; then : 5493 if test "0" -gt 0; then : 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5495$as_echo "yes" >&6; } 5496fi 5497 CFLAGS_EX="$CFLAGS_EX -QFOO_BAR_SWITCH_NOT_VALID" 5498 5499else 5500 if test 0 -gt 0; then : 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502$as_echo "no" >&6; } 5503fi 5504 if test "0" = 2; then : 5505 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5506fi 5507 5508fi 5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5510 CFLAGS="$ac_saved_cflags" 5511 ac_ext=c 5512ac_cpp='$CPP $CPPFLAGS' 5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5515ac_compiler_gnu=$ac_cv_c_compiler_gnu 5516 5517 5518if test "x${CFLAGS_EX}" = x; then : 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5520$as_echo "yes" >&6; } 5521 JTR_FLAG_Q_CHECK_WORKS=yes 5522 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528if test "x$JTR_FLAG_CHECK_WORKS" = xyes; then : 5529 5530 CFLAGS_EX="" 5531 if test 1 -gt 0; then : 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -funroll-loops" >&5 5533$as_echo_n "checking if $CC supports -funroll-loops... " >&6; } 5534fi 5535 ac_ext=c 5536ac_cpp='$CPP $CPPFLAGS' 5537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5539ac_compiler_gnu=$ac_cv_c_compiler_gnu 5540 5541 ac_saved_cflags="$CFLAGS" 5542 CFLAGS="-Werror -funroll-loops" 5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5544/* end confdefs.h. */ 5545 5546int 5547main () 5548{ 5549 5550 ; 5551 return 0; 5552} 5553_ACEOF 5554if ac_fn_c_try_compile "$LINENO"; then : 5555 if test "1" -gt 0; then : 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5557$as_echo "yes" >&6; } 5558fi 5559 CFLAGS_EX="$CFLAGS_EX -funroll-loops" 5560 5561else 5562 if test 1 -gt 0; then : 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5564$as_echo "no" >&6; } 5565fi 5566 if test "1" = 2; then : 5567 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5568fi 5569 5570fi 5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5572 CFLAGS="$ac_saved_cflags" 5573 ac_ext=c 5574ac_cpp='$CPP $CPPFLAGS' 5575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5577ac_compiler_gnu=$ac_cv_c_compiler_gnu 5578 5579 5580 OPT_NORMAL_V=${CFLAGS_EX} 5581 OPT_NORMAL_FLAGS="${OPT_NORMAL_V}" 5582 5583 5584 CFLAGS_EX="" 5585 if test 1 -gt 0; then : 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Os" >&5 5587$as_echo_n "checking if $CC supports -Os... " >&6; } 5588fi 5589 ac_ext=c 5590ac_cpp='$CPP $CPPFLAGS' 5591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5593ac_compiler_gnu=$ac_cv_c_compiler_gnu 5594 5595 ac_saved_cflags="$CFLAGS" 5596 CFLAGS="-Werror -Os" 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598/* end confdefs.h. */ 5599 5600int 5601main () 5602{ 5603 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608if ac_fn_c_try_compile "$LINENO"; then : 5609 if test "1" -gt 0; then : 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5611$as_echo "yes" >&6; } 5612fi 5613 CFLAGS_EX="$CFLAGS_EX -Os" 5614 5615else 5616 if test 1 -gt 0; then : 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620 if test "1" = 2; then : 5621 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5622fi 5623 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626 CFLAGS="$ac_saved_cflags" 5627 ac_ext=c 5628ac_cpp='$CPP $CPPFLAGS' 5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5631ac_compiler_gnu=$ac_cv_c_compiler_gnu 5632 5633 5634 if test 0 -gt 0; then : 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -funroll-loops" >&5 5636$as_echo_n "checking if $CC supports -funroll-loops... " >&6; } 5637fi 5638 ac_ext=c 5639ac_cpp='$CPP $CPPFLAGS' 5640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5642ac_compiler_gnu=$ac_cv_c_compiler_gnu 5643 5644 ac_saved_cflags="$CFLAGS" 5645 CFLAGS="-Werror -funroll-loops" 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648 5649int 5650main () 5651{ 5652 5653 ; 5654 return 0; 5655} 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO"; then : 5658 if test "0" -gt 0; then : 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5660$as_echo "yes" >&6; } 5661fi 5662 CFLAGS_EX="$CFLAGS_EX -funroll-loops" 5663 5664else 5665 if test 0 -gt 0; then : 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5667$as_echo "no" >&6; } 5668fi 5669 if test "0" = 2; then : 5670 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5671fi 5672 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675 CFLAGS="$ac_saved_cflags" 5676 ac_ext=c 5677ac_cpp='$CPP $CPPFLAGS' 5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5680ac_compiler_gnu=$ac_cv_c_compiler_gnu 5681 5682 5683 if test 1 -gt 0; then : 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 5685$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 5686fi 5687 ac_ext=c 5688ac_cpp='$CPP $CPPFLAGS' 5689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5691ac_compiler_gnu=$ac_cv_c_compiler_gnu 5692 5693 ac_saved_cflags="$CFLAGS" 5694 CFLAGS="-Werror -finline-functions" 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701 5702 ; 5703 return 0; 5704} 5705_ACEOF 5706if ac_fn_c_try_compile "$LINENO"; then : 5707 if test "1" -gt 0; then : 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5709$as_echo "yes" >&6; } 5710fi 5711 CFLAGS_EX="$CFLAGS_EX -finline-functions" 5712 5713else 5714 if test 1 -gt 0; then : 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5716$as_echo "no" >&6; } 5717fi 5718 if test "1" = 2; then : 5719 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5720fi 5721 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724 CFLAGS="$ac_saved_cflags" 5725 ac_ext=c 5726ac_cpp='$CPP $CPPFLAGS' 5727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5729ac_compiler_gnu=$ac_cv_c_compiler_gnu 5730 5731 5732 OPT_INLINE_FLAGS="${CFLAGS_EX}" 5733 5734 5735 CFLAGS_EX="" 5736 if test 1 -gt 0; then : 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og" >&5 5738$as_echo_n "checking if $CC supports -Og... " >&6; } 5739fi 5740 ac_ext=c 5741ac_cpp='$CPP $CPPFLAGS' 5742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5744ac_compiler_gnu=$ac_cv_c_compiler_gnu 5745 5746 ac_saved_cflags="$CFLAGS" 5747 CFLAGS="-Werror -Og" 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750 5751int 5752main () 5753{ 5754 5755 ; 5756 return 0; 5757} 5758_ACEOF 5759if ac_fn_c_try_compile "$LINENO"; then : 5760 if test "1" -gt 0; then : 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5762$as_echo "yes" >&6; } 5763fi 5764 CFLAGS_EX="$CFLAGS_EX -Og" 5765 5766else 5767 if test 1 -gt 0; then : 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5769$as_echo "no" >&6; } 5770fi 5771 if test "1" = 2; then : 5772 as_fn_error $? "Not supported by compiler" "$LINENO" 5 5773fi 5774 5775fi 5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777 CFLAGS="$ac_saved_cflags" 5778 ac_ext=c 5779ac_cpp='$CPP $CPPFLAGS' 5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5782ac_compiler_gnu=$ac_cv_c_compiler_gnu 5783 5784 5785 if test "x${CFLAGS_EX}" != x ; then 5786 O_DEBUG=${CFLAGS_EX} 5787 else 5788 O_DEBUG="-O1" 5789 fi 5790 O_DEBUG=$O_DEBUG 5791 5792 5793 if test "x$asan" = xyes ; then 5794 CFLAGS_EX="" 5795 LDFLAGS_BAK=${LDFLAGS} 5796 if test 1 -gt 0; then : 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fsanitize=address w/ linking" >&5 5798$as_echo_n "checking if $CC supports -fsanitize=address w/ linking... " >&6; } 5799fi 5800 ac_ext=c 5801ac_cpp='$CPP $CPPFLAGS' 5802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5804ac_compiler_gnu=$ac_cv_c_compiler_gnu 5805 5806 ac_saved_cflags="$CFLAGS" 5807 CFLAGS="-Werror -fsanitize=address" 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810 5811int 5812main () 5813{ 5814 5815 ; 5816 return 0; 5817} 5818_ACEOF 5819if ac_fn_c_try_link "$LINENO"; then : 5820 if test "1" -gt 0; then : 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5822$as_echo "yes" >&6; } 5823fi 5824 CFLAGS_EX="$CFLAGS_EX -fsanitize=address" 5825 5826else 5827 if test 1 -gt 0; then : 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5829$as_echo "no" >&6; } 5830fi 5831 if test "1" = 2; then : 5832 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 5833fi 5834 5835fi 5836rm -f core conftest.err conftest.$ac_objext \ 5837 conftest$ac_exeext conftest.$ac_ext 5838 CFLAGS="$ac_saved_cflags" 5839 ac_ext=c 5840ac_cpp='$CPP $CPPFLAGS' 5841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5843ac_compiler_gnu=$ac_cv_c_compiler_gnu 5844 5845 5846 if test "x${CFLAGS_EX}" = x ; then 5847 if test 1 -gt 0; then : 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -faddress-sanitizer w/ linking" >&5 5849$as_echo_n "checking if $CC supports -faddress-sanitizer w/ linking... " >&6; } 5850fi 5851 ac_ext=c 5852ac_cpp='$CPP $CPPFLAGS' 5853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5855ac_compiler_gnu=$ac_cv_c_compiler_gnu 5856 5857 ac_saved_cflags="$CFLAGS" 5858 CFLAGS="-Werror -faddress-sanitizer" 5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5860/* end confdefs.h. */ 5861 5862int 5863main () 5864{ 5865 5866 ; 5867 return 0; 5868} 5869_ACEOF 5870if ac_fn_c_try_link "$LINENO"; then : 5871 if test "1" -gt 0; then : 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5873$as_echo "yes" >&6; } 5874fi 5875 CFLAGS_EX="$CFLAGS_EX -faddress-sanitizer" 5876 5877else 5878 if test 1 -gt 0; then : 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5880$as_echo "no" >&6; } 5881fi 5882 if test "1" = 2; then : 5883 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 5884fi 5885 5886fi 5887rm -f core conftest.err conftest.$ac_objext \ 5888 conftest$ac_exeext conftest.$ac_ext 5889 CFLAGS="$ac_saved_cflags" 5890 ac_ext=c 5891ac_cpp='$CPP $CPPFLAGS' 5892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5894ac_compiler_gnu=$ac_cv_c_compiler_gnu 5895 5896 5897 if test "x${CFLAGS_EX}" = x ; then 5898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5900as_fn_error $? "Could not find all required ASAN components 5901See \`config.log' for more details" "$LINENO" 5; } 5902 else 5903 LDFLAGS="-faddress-sanitizer $LDFLAGS" 5904 fi 5905 else 5906 LDFLAGS="-fsanitize=address $LDFLAGS" 5907 fi 5908 LDFLAGS=${LDFLAGS_BAK} 5909fi 5910 5911 if test "x$ubsan" = xyes ; then 5912 CFLAGS_EX="" 5913 LDFLAGS_BAK=${LDFLAGS} 5914 if test 1 -gt 0; then : 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined w/ linking" >&5 5916$as_echo_n "checking if $CC supports -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined w/ linking... " >&6; } 5917fi 5918 ac_ext=c 5919ac_cpp='$CPP $CPPFLAGS' 5920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5922ac_compiler_gnu=$ac_cv_c_compiler_gnu 5923 5924 ac_saved_cflags="$CFLAGS" 5925 CFLAGS="-Werror -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined" 5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927/* end confdefs.h. */ 5928 5929int 5930main () 5931{ 5932 5933 ; 5934 return 0; 5935} 5936_ACEOF 5937if ac_fn_c_try_link "$LINENO"; then : 5938 if test "1" -gt 0; then : 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5940$as_echo "yes" >&6; } 5941fi 5942 CFLAGS_EX="$CFLAGS_EX -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined" 5943 5944else 5945 if test 1 -gt 0; then : 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947$as_echo "no" >&6; } 5948fi 5949 if test "1" = 2; then : 5950 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 5951fi 5952 5953fi 5954rm -f core conftest.err conftest.$ac_objext \ 5955 conftest$ac_exeext conftest.$ac_ext 5956 CFLAGS="$ac_saved_cflags" 5957 ac_ext=c 5958ac_cpp='$CPP $CPPFLAGS' 5959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5961ac_compiler_gnu=$ac_cv_c_compiler_gnu 5962 5963 5964 if test "x${CFLAGS_EX}" = x ; then 5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5967as_fn_error $? "Could not find all required UBSAN components 5968See \`config.log' for more details" "$LINENO" 5; } 5969 else 5970 LDFLAGS="-fsanitize=undefined $LDFLAGS" 5971 fi 5972 LDFLAGS=${LDFLAGS_BAK} 5973fi 5974if test "x$ubsantrap" = xyes ; then 5975 CFLAGS_EX="" 5976 LDFLAGS_BAK=${LDFLAGS} 5977 if test 1 -gt 0; then : 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error w/ linking" >&5 5979$as_echo_n "checking if $CC supports -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error w/ linking... " >&6; } 5980fi 5981 ac_ext=c 5982ac_cpp='$CPP $CPPFLAGS' 5983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5985ac_compiler_gnu=$ac_cv_c_compiler_gnu 5986 5987 ac_saved_cflags="$CFLAGS" 5988 CFLAGS="-Werror -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error" 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990/* end confdefs.h. */ 5991 5992int 5993main () 5994{ 5995 5996 ; 5997 return 0; 5998} 5999_ACEOF 6000if ac_fn_c_try_link "$LINENO"; then : 6001 if test "1" -gt 0; then : 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6003$as_echo "yes" >&6; } 6004fi 6005 CFLAGS_EX="$CFLAGS_EX -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error" 6006 6007else 6008 if test 1 -gt 0; then : 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 if test "1" = 2; then : 6013 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 6014fi 6015 6016fi 6017rm -f core conftest.err conftest.$ac_objext \ 6018 conftest$ac_exeext conftest.$ac_ext 6019 CFLAGS="$ac_saved_cflags" 6020 ac_ext=c 6021ac_cpp='$CPP $CPPFLAGS' 6022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6024ac_compiler_gnu=$ac_cv_c_compiler_gnu 6025 6026 6027 if test "x${CFLAGS_EX}" = x ; then 6028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6030as_fn_error $? "Could not find all required UBSAN components 6031See \`config.log' for more details" "$LINENO" 5; } 6032 else 6033 LDFLAGS="-fsanitize=undefined $LDFLAGS" 6034 fi 6035 LDFLAGS=${LDFLAGS_BAK} 6036fi 6037 6038 6039 CFLAGS_EX="" 6040 if test 1 -gt 0; then : 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6042$as_echo_n "checking if $CC supports -Wall... " >&6; } 6043fi 6044 ac_ext=c 6045ac_cpp='$CPP $CPPFLAGS' 6046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6048ac_compiler_gnu=$ac_cv_c_compiler_gnu 6049 6050 ac_saved_cflags="$CFLAGS" 6051 CFLAGS="-Werror -Wall" 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054 6055int 6056main () 6057{ 6058 6059 ; 6060 return 0; 6061} 6062_ACEOF 6063if ac_fn_c_try_compile "$LINENO"; then : 6064 if test "1" -gt 0; then : 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6066$as_echo "yes" >&6; } 6067fi 6068 CFLAGS_EX="$CFLAGS_EX -Wall" 6069 6070else 6071 if test 1 -gt 0; then : 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073$as_echo "no" >&6; } 6074fi 6075 if test "1" = 2; then : 6076 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6077fi 6078 6079fi 6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6081 CFLAGS="$ac_saved_cflags" 6082 ac_ext=c 6083ac_cpp='$CPP $CPPFLAGS' 6084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6086ac_compiler_gnu=$ac_cv_c_compiler_gnu 6087 6088 6089 6090 if (test "x$asan" != xyes); then 6091 warn="-Wstringop-truncation" 6092 nowarn="-Wno-stringop-truncation" 6093 if test 1 -gt 0; then : 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6095$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6096fi 6097 ac_ext=c 6098ac_cpp='$CPP $CPPFLAGS' 6099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6101ac_compiler_gnu=$ac_cv_c_compiler_gnu 6102 6103 ac_saved_cflags="$CFLAGS" 6104 CFLAGS="-Werror $warn" 6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107 6108int 6109main () 6110{ 6111 6112 ; 6113 return 0; 6114} 6115_ACEOF 6116if ac_fn_c_try_compile "$LINENO"; then : 6117 if test "1" -gt 0; then : 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6119$as_echo "yes" >&6; } 6120fi 6121 CFLAGS_EX="$CFLAGS_EX $nowarn" 6122 6123else 6124 if test 1 -gt 0; then : 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 if test "1" = 2; then : 6129 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6130fi 6131 6132fi 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6134 CFLAGS="$ac_saved_cflags" 6135 ac_ext=c 6136ac_cpp='$CPP $CPPFLAGS' 6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6139ac_compiler_gnu=$ac_cv_c_compiler_gnu 6140 6141 6142 warn="-Wformat-overflow" 6143 nowarn="-Wno-format-overflow" 6144 if test 1 -gt 0; then : 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6146$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6147fi 6148 ac_ext=c 6149ac_cpp='$CPP $CPPFLAGS' 6150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6152ac_compiler_gnu=$ac_cv_c_compiler_gnu 6153 6154 ac_saved_cflags="$CFLAGS" 6155 CFLAGS="-Werror $warn" 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158 6159int 6160main () 6161{ 6162 6163 ; 6164 return 0; 6165} 6166_ACEOF 6167if ac_fn_c_try_compile "$LINENO"; then : 6168 if test "1" -gt 0; then : 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6170$as_echo "yes" >&6; } 6171fi 6172 CFLAGS_EX="$CFLAGS_EX $nowarn" 6173 6174else 6175 if test 1 -gt 0; then : 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6177$as_echo "no" >&6; } 6178fi 6179 if test "1" = 2; then : 6180 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6181fi 6182 6183fi 6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6185 CFLAGS="$ac_saved_cflags" 6186 ac_ext=c 6187ac_cpp='$CPP $CPPFLAGS' 6188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6190ac_compiler_gnu=$ac_cv_c_compiler_gnu 6191 6192 6193 fi 6194 6195 if (test "x$asan" != xyes); then 6196 warn="-Wformat-truncation" 6197 nowarn="-Wno-format-truncation" 6198 if test 1 -gt 0; then : 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6200$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6201fi 6202 ac_ext=c 6203ac_cpp='$CPP $CPPFLAGS' 6204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6206ac_compiler_gnu=$ac_cv_c_compiler_gnu 6207 6208 ac_saved_cflags="$CFLAGS" 6209 CFLAGS="-Werror $warn" 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211/* end confdefs.h. */ 6212 6213int 6214main () 6215{ 6216 6217 ; 6218 return 0; 6219} 6220_ACEOF 6221if ac_fn_c_try_compile "$LINENO"; then : 6222 if test "1" -gt 0; then : 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6224$as_echo "yes" >&6; } 6225fi 6226 CFLAGS_EX="$CFLAGS_EX $nowarn" 6227 6228else 6229 if test 1 -gt 0; then : 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231$as_echo "no" >&6; } 6232fi 6233 if test "1" = 2; then : 6234 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6235fi 6236 6237fi 6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6239 CFLAGS="$ac_saved_cflags" 6240 ac_ext=c 6241ac_cpp='$CPP $CPPFLAGS' 6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6244ac_compiler_gnu=$ac_cv_c_compiler_gnu 6245 6246 6247 fi 6248 6249 warn="-Wtautological-constant-out-of-range-compare" 6250 nowarn="-Wno-tautological-constant-out-of-range-compare" 6251 if test 1 -gt 0; then : 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6253$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6254fi 6255 ac_ext=c 6256ac_cpp='$CPP $CPPFLAGS' 6257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6259ac_compiler_gnu=$ac_cv_c_compiler_gnu 6260 6261 ac_saved_cflags="$CFLAGS" 6262 CFLAGS="-Werror $warn" 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265 6266int 6267main () 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_compile "$LINENO"; then : 6275 if test "1" -gt 0; then : 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6277$as_echo "yes" >&6; } 6278fi 6279 CFLAGS_EX="$CFLAGS_EX $nowarn" 6280 6281else 6282 if test 1 -gt 0; then : 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284$as_echo "no" >&6; } 6285fi 6286 if test "1" = 2; then : 6287 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6288fi 6289 6290fi 6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6292 CFLAGS="$ac_saved_cflags" 6293 ac_ext=c 6294ac_cpp='$CPP $CPPFLAGS' 6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6297ac_compiler_gnu=$ac_cv_c_compiler_gnu 6298 6299 6300 6301 if test "x$werror" = xyes; then : 6302 if test 1 -gt 0; then : 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 6304$as_echo_n "checking if $CC supports -Werror... " >&6; } 6305fi 6306 ac_ext=c 6307ac_cpp='$CPP $CPPFLAGS' 6308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6310ac_compiler_gnu=$ac_cv_c_compiler_gnu 6311 6312 ac_saved_cflags="$CFLAGS" 6313 CFLAGS="-Werror -Werror" 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315/* end confdefs.h. */ 6316 6317int 6318main () 6319{ 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO"; then : 6326 if test "1" -gt 0; then : 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6328$as_echo "yes" >&6; } 6329fi 6330 CFLAGS_EX="$CFLAGS_EX -Werror" 6331 6332else 6333 if test 1 -gt 0; then : 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335$as_echo "no" >&6; } 6336fi 6337 if test "1" = 2; then : 6338 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6339fi 6340 6341fi 6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6343 CFLAGS="$ac_saved_cflags" 6344 ac_ext=c 6345ac_cpp='$CPP $CPPFLAGS' 6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6348ac_compiler_gnu=$ac_cv_c_compiler_gnu 6349 6350 6351 warn="-Werror=cpp" 6352 nowarn="-Wno-error=cpp" 6353 if test 1 -gt 0; then : 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6355$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6356fi 6357 ac_ext=c 6358ac_cpp='$CPP $CPPFLAGS' 6359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6361ac_compiler_gnu=$ac_cv_c_compiler_gnu 6362 6363 ac_saved_cflags="$CFLAGS" 6364 CFLAGS="-Werror $warn" 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO"; then : 6377 if test "1" -gt 0; then : 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6379$as_echo "yes" >&6; } 6380fi 6381 CFLAGS_EX="$CFLAGS_EX $nowarn" 6382 6383else 6384 if test 1 -gt 0; then : 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6386$as_echo "no" >&6; } 6387fi 6388 if test "1" = 2; then : 6389 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6390fi 6391 6392fi 6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6394 CFLAGS="$ac_saved_cflags" 6395 ac_ext=c 6396ac_cpp='$CPP $CPPFLAGS' 6397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6399ac_compiler_gnu=$ac_cv_c_compiler_gnu 6400 6401 6402 warn="-Werror=#warnings" 6403 nowarn="-Wno-error=#warnings" 6404 if test 1 -gt 0; then : 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6406$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6407fi 6408 ac_ext=c 6409ac_cpp='$CPP $CPPFLAGS' 6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6412ac_compiler_gnu=$ac_cv_c_compiler_gnu 6413 6414 ac_saved_cflags="$CFLAGS" 6415 CFLAGS="-Werror $warn" 6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6417/* end confdefs.h. */ 6418 6419int 6420main () 6421{ 6422 6423 ; 6424 return 0; 6425} 6426_ACEOF 6427if ac_fn_c_try_compile "$LINENO"; then : 6428 if test "1" -gt 0; then : 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6430$as_echo "yes" >&6; } 6431fi 6432 CFLAGS_EX="$CFLAGS_EX $nowarn" 6433 6434else 6435 if test 1 -gt 0; then : 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 if test "1" = 2; then : 6440 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6441fi 6442 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445 CFLAGS="$ac_saved_cflags" 6446 ac_ext=c 6447ac_cpp='$CPP $CPPFLAGS' 6448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6450ac_compiler_gnu=$ac_cv_c_compiler_gnu 6451 6452 6453 warn="-Werror=stringop-truncation" 6454 nowarn="-Wno-error=stringop-truncation" 6455 if test 1 -gt 0; then : 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6457$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6458fi 6459 ac_ext=c 6460ac_cpp='$CPP $CPPFLAGS' 6461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6463ac_compiler_gnu=$ac_cv_c_compiler_gnu 6464 6465 ac_saved_cflags="$CFLAGS" 6466 CFLAGS="-Werror $warn" 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469 6470int 6471main () 6472{ 6473 6474 ; 6475 return 0; 6476} 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO"; then : 6479 if test "1" -gt 0; then : 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6481$as_echo "yes" >&6; } 6482fi 6483 CFLAGS_EX="$CFLAGS_EX $nowarn" 6484 6485else 6486 if test 1 -gt 0; then : 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488$as_echo "no" >&6; } 6489fi 6490 if test "1" = 2; then : 6491 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6492fi 6493 6494fi 6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6496 CFLAGS="$ac_saved_cflags" 6497 ac_ext=c 6498ac_cpp='$CPP $CPPFLAGS' 6499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6501ac_compiler_gnu=$ac_cv_c_compiler_gnu 6502 6503 6504 warn="-Werror=format-overflow" 6505 nowarn="-Wno-error=format-overflow" 6506 if test 1 -gt 0; then : 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6508$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6509fi 6510 ac_ext=c 6511ac_cpp='$CPP $CPPFLAGS' 6512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6514ac_compiler_gnu=$ac_cv_c_compiler_gnu 6515 6516 ac_saved_cflags="$CFLAGS" 6517 CFLAGS="-Werror $warn" 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520 6521int 6522main () 6523{ 6524 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529if ac_fn_c_try_compile "$LINENO"; then : 6530 if test "1" -gt 0; then : 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6532$as_echo "yes" >&6; } 6533fi 6534 CFLAGS_EX="$CFLAGS_EX $nowarn" 6535 6536else 6537 if test 1 -gt 0; then : 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6539$as_echo "no" >&6; } 6540fi 6541 if test "1" = 2; then : 6542 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6543fi 6544 6545fi 6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6547 CFLAGS="$ac_saved_cflags" 6548 ac_ext=c 6549ac_cpp='$CPP $CPPFLAGS' 6550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6552ac_compiler_gnu=$ac_cv_c_compiler_gnu 6553 6554 6555 6556fi 6557 if test "x$asan" = xyes || test "x$ubsan" = xyes || test "x$ubsantrap" ; then 6558 if test 1 -gt 0; then : 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-omit-frame-pointer" >&5 6560$as_echo_n "checking if $CC supports -fno-omit-frame-pointer... " >&6; } 6561fi 6562 ac_ext=c 6563ac_cpp='$CPP $CPPFLAGS' 6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_c_compiler_gnu 6567 6568 ac_saved_cflags="$CFLAGS" 6569 CFLAGS="-Werror -fno-omit-frame-pointer" 6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572 6573int 6574main () 6575{ 6576 6577 ; 6578 return 0; 6579} 6580_ACEOF 6581if ac_fn_c_try_compile "$LINENO"; then : 6582 if test "1" -gt 0; then : 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6584$as_echo "yes" >&6; } 6585fi 6586 CFLAGS_EX="$CFLAGS_EX -fno-omit-frame-pointer" 6587 6588else 6589 if test 1 -gt 0; then : 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 if test "1" = 2; then : 6594 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6595fi 6596 6597fi 6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6599 CFLAGS="$ac_saved_cflags" 6600 ac_ext=c 6601ac_cpp='$CPP $CPPFLAGS' 6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6604ac_compiler_gnu=$ac_cv_c_compiler_gnu 6605 6606 6607 else 6608 if test 1 -gt 0; then : 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fomit-frame-pointer" >&5 6610$as_echo_n "checking if $CC supports -fomit-frame-pointer... " >&6; } 6611fi 6612 ac_ext=c 6613ac_cpp='$CPP $CPPFLAGS' 6614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6616ac_compiler_gnu=$ac_cv_c_compiler_gnu 6617 6618 ac_saved_cflags="$CFLAGS" 6619 CFLAGS="-Werror -fomit-frame-pointer" 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622 6623int 6624main () 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_compile "$LINENO"; then : 6632 if test "1" -gt 0; then : 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6634$as_echo "yes" >&6; } 6635fi 6636 CFLAGS_EX="$CFLAGS_EX -fomit-frame-pointer" 6637 6638else 6639 if test 1 -gt 0; then : 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641$as_echo "no" >&6; } 6642fi 6643 if test "1" = 2; then : 6644 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6645fi 6646 6647fi 6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6649 CFLAGS="$ac_saved_cflags" 6650 ac_ext=c 6651ac_cpp='$CPP $CPPFLAGS' 6652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6654ac_compiler_gnu=$ac_cv_c_compiler_gnu 6655 6656 6657 fi 6658 6659 if test 1 -gt 0; then : 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports --param allow-store-data-races=0" >&5 6661$as_echo_n "checking if $CC supports --param allow-store-data-races=0... " >&6; } 6662fi 6663 ac_ext=c 6664ac_cpp='$CPP $CPPFLAGS' 6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6667ac_compiler_gnu=$ac_cv_c_compiler_gnu 6668 6669 ac_saved_cflags="$CFLAGS" 6670 CFLAGS="-Werror --param allow-store-data-races=0" 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673 6674int 6675main () 6676{ 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO"; then : 6683 if test "1" -gt 0; then : 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6685$as_echo "yes" >&6; } 6686fi 6687 CFLAGS_EX="$CFLAGS_EX --param allow-store-data-races=0" 6688 6689else 6690 if test 1 -gt 0; then : 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6692$as_echo "no" >&6; } 6693fi 6694 if test "1" = 2; then : 6695 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6696fi 6697 6698fi 6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6700 CFLAGS="$ac_saved_cflags" 6701 ac_ext=c 6702ac_cpp='$CPP $CPPFLAGS' 6703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6705ac_compiler_gnu=$ac_cv_c_compiler_gnu 6706 6707 6708 warn="-Wdeprecated-declarations" 6709 nowarn="-Wno-deprecated-declarations" 6710 if test 1 -gt 0; then : 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $nowarn" >&5 6712$as_echo_n "checking if $CC supports $nowarn... " >&6; } 6713fi 6714 ac_ext=c 6715ac_cpp='$CPP $CPPFLAGS' 6716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6718ac_compiler_gnu=$ac_cv_c_compiler_gnu 6719 6720 ac_saved_cflags="$CFLAGS" 6721 CFLAGS="-Werror $warn" 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723/* end confdefs.h. */ 6724 6725int 6726main () 6727{ 6728 6729 ; 6730 return 0; 6731} 6732_ACEOF 6733if ac_fn_c_try_compile "$LINENO"; then : 6734 if test "1" -gt 0; then : 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6736$as_echo "yes" >&6; } 6737fi 6738 CFLAGS_EX="$CFLAGS_EX $nowarn" 6739 6740else 6741 if test 1 -gt 0; then : 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 if test "1" = 2; then : 6746 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6747fi 6748 6749fi 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751 CFLAGS="$ac_saved_cflags" 6752 ac_ext=c 6753ac_cpp='$CPP $CPPFLAGS' 6754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6756ac_compiler_gnu=$ac_cv_c_compiler_gnu 6757 6758 6759 if test 1 -gt 0; then : 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-extra-args" >&5 6761$as_echo_n "checking if $CC supports -Wformat-extra-args... " >&6; } 6762fi 6763 ac_ext=c 6764ac_cpp='$CPP $CPPFLAGS' 6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6767ac_compiler_gnu=$ac_cv_c_compiler_gnu 6768 6769 ac_saved_cflags="$CFLAGS" 6770 CFLAGS="-Werror -Wformat-extra-args" 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773 6774int 6775main () 6776{ 6777 6778 ; 6779 return 0; 6780} 6781_ACEOF 6782if ac_fn_c_try_compile "$LINENO"; then : 6783 if test "1" -gt 0; then : 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6785$as_echo "yes" >&6; } 6786fi 6787 CFLAGS_EX="$CFLAGS_EX -Wformat-extra-args" 6788 6789else 6790 if test 1 -gt 0; then : 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6792$as_echo "no" >&6; } 6793fi 6794 if test "1" = 2; then : 6795 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6796fi 6797 6798fi 6799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6800 CFLAGS="$ac_saved_cflags" 6801 ac_ext=c 6802ac_cpp='$CPP $CPPFLAGS' 6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6805ac_compiler_gnu=$ac_cv_c_compiler_gnu 6806 6807 6808 if test 1 -gt 0; then : 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-but-set-variable" >&5 6810$as_echo_n "checking if $CC supports -Wunused-but-set-variable... " >&6; } 6811fi 6812 ac_ext=c 6813ac_cpp='$CPP $CPPFLAGS' 6814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6816ac_compiler_gnu=$ac_cv_c_compiler_gnu 6817 6818 ac_saved_cflags="$CFLAGS" 6819 CFLAGS="-Werror -Wunused-but-set-variable" 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822 6823int 6824main () 6825{ 6826 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831if ac_fn_c_try_compile "$LINENO"; then : 6832 if test "1" -gt 0; then : 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6834$as_echo "yes" >&6; } 6835fi 6836 CFLAGS_EX="$CFLAGS_EX -Wunused-but-set-variable" 6837 6838else 6839 if test 1 -gt 0; then : 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 if test "1" = 2; then : 6844 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6845fi 6846 6847fi 6848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6849 CFLAGS="$ac_saved_cflags" 6850 ac_ext=c 6851ac_cpp='$CPP $CPPFLAGS' 6852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6854ac_compiler_gnu=$ac_cv_c_compiler_gnu 6855 6856 6857 if test "x$JTR_FLAG_Q_CHECK_WORKS" = xyes; then : 6858 if test 1 -gt 0; then : 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Qunused-arguments" >&5 6860$as_echo_n "checking if $CC supports -Qunused-arguments... " >&6; } 6861fi 6862 ac_ext=c 6863ac_cpp='$CPP $CPPFLAGS' 6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6866ac_compiler_gnu=$ac_cv_c_compiler_gnu 6867 6868 ac_saved_cflags="$CFLAGS" 6869 CFLAGS="-Werror -Qunused-arguments" 6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6871/* end confdefs.h. */ 6872 6873int 6874main () 6875{ 6876 6877 ; 6878 return 0; 6879} 6880_ACEOF 6881if ac_fn_c_try_compile "$LINENO"; then : 6882 if test "1" -gt 0; then : 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6884$as_echo "yes" >&6; } 6885fi 6886 CFLAGS_EX="$CFLAGS_EX -Qunused-arguments" 6887 6888else 6889 if test 1 -gt 0; then : 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6891$as_echo "no" >&6; } 6892fi 6893 if test "1" = 2; then : 6894 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6895fi 6896 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6899 CFLAGS="$ac_saved_cflags" 6900 ac_ext=c 6901ac_cpp='$CPP $CPPFLAGS' 6902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6904ac_compiler_gnu=$ac_cv_c_compiler_gnu 6905 6906 6907fi 6908 if test 1 -gt 0; then : 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -std=gnu89" >&5 6910$as_echo_n "checking if $CC supports -std=gnu89... " >&6; } 6911fi 6912 ac_ext=c 6913ac_cpp='$CPP $CPPFLAGS' 6914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6916ac_compiler_gnu=$ac_cv_c_compiler_gnu 6917 6918 ac_saved_cflags="$CFLAGS" 6919 CFLAGS="-Werror -std=gnu89" 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_compile "$LINENO"; then : 6932 if test "1" -gt 0; then : 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6934$as_echo "yes" >&6; } 6935fi 6936 CFLAGS_EX="$CFLAGS_EX -std=gnu89" 6937 6938else 6939 if test 1 -gt 0; then : 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941$as_echo "no" >&6; } 6942fi 6943 if test "1" = 2; then : 6944 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6945fi 6946 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949 CFLAGS="$ac_saved_cflags" 6950 ac_ext=c 6951ac_cpp='$CPP $CPPFLAGS' 6952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6954ac_compiler_gnu=$ac_cv_c_compiler_gnu 6955 6956 6957 if test 1 -gt 0; then : 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5 6959$as_echo_n "checking if $CC supports -Wdate-time... " >&6; } 6960fi 6961 ac_ext=c 6962ac_cpp='$CPP $CPPFLAGS' 6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6965ac_compiler_gnu=$ac_cv_c_compiler_gnu 6966 6967 ac_saved_cflags="$CFLAGS" 6968 CFLAGS="-Werror -Wdate-time" 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971 6972int 6973main () 6974{ 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_compile "$LINENO"; then : 6981 if test "1" -gt 0; then : 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6983$as_echo "yes" >&6; } 6984fi 6985 CFLAGS_EX="$CFLAGS_EX -Wdate-time" 6986 6987else 6988 if test 1 -gt 0; then : 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 if test "1" = 2; then : 6993 as_fn_error $? "Not supported by compiler" "$LINENO" 5 6994fi 6995 6996fi 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998 CFLAGS="$ac_saved_cflags" 6999 ac_ext=c 7000ac_cpp='$CPP $CPPFLAGS' 7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7003ac_compiler_gnu=$ac_cv_c_compiler_gnu 7004 7005 7006 7007 for i in "$CFLAGS_EX"; do 7008 jtr_list_add_dupe=0 7009 for j in $CFLAGS_EXTRA; do 7010 if test "x$i" = "x$j"; then 7011 jtr_list_add_dupe=1 7012 break 7013 fi 7014 done 7015 if test $jtr_list_add_dupe = 0; then 7016 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 7017 jtr_list_add_result="$jtr_list_add_result $i" 7018 fi 7019 done 7020 7021 7022else 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to validate $CC command line arguments. Using standard values." >&5 7024$as_echo "$as_me: Unable to validate $CC command line arguments. Using standard values." >&6;} 7025 CFLAGS_EXTRA="-Wall -O2 -fomit-frame-pointer" 7026 7027fi 7028 7029case "$host_cpu" in 7030 ia64|mips64|mips64eb|mipseb64|mips64el|mipsel64|mips64*|powerpc64*|sparc64|x86_64) 7031 CFLAGS_EX="" 7032 if test 1 -gt 0; then : 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -m64 w/ linking" >&5 7034$as_echo_n "checking if $CC supports -m64 w/ linking... " >&6; } 7035fi 7036 ac_ext=c 7037ac_cpp='$CPP $CPPFLAGS' 7038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7040ac_compiler_gnu=$ac_cv_c_compiler_gnu 7041 7042 ac_saved_cflags="$CFLAGS" 7043 CFLAGS="-Werror -m64" 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046 7047int 7048main () 7049{ 7050 7051 ; 7052 return 0; 7053} 7054_ACEOF 7055if ac_fn_c_try_link "$LINENO"; then : 7056 if test "1" -gt 0; then : 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7058$as_echo "yes" >&6; } 7059fi 7060 CFLAGS_EX="$CFLAGS_EX -m64" 7061 7062else 7063 if test 1 -gt 0; then : 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 if test "1" = 2; then : 7068 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 7069fi 7070 7071fi 7072rm -f core conftest.err conftest.$ac_objext \ 7073 conftest$ac_exeext conftest.$ac_ext 7074 CFLAGS="$ac_saved_cflags" 7075 ac_ext=c 7076ac_cpp='$CPP $CPPFLAGS' 7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7079ac_compiler_gnu=$ac_cv_c_compiler_gnu 7080 7081 7082 if test "x${CFLAGS_EX}" != x ; then 7083 LDFLAGS="-m64 $LDFLAGS" 7084 CFLAGS="-m64 $CFLAGS" 7085 ASFLAGS="-m64 $ASFLAGS" 7086 fi 7087 ;; 7088 *) 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -m64" >&5 7090$as_echo_n "checking if gcc supports -m64... " >&6; } 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 7092$as_echo "skipped" >&6; } 7093 ;; 7094esac 7095 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32/64 bit" >&5 7097$as_echo_n "checking for 32/64 bit... " >&6; } 7098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100extern void exit(int); 7101 int main() { 7102 #if defined(_LP64) || defined(__LP64__) || defined(_LLP64) || defined(__LLP64__) || \ 7103 defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(__amd64__) || \ 7104 defined(_M_AMD64) || defined(_M_X64) || defined(WIN64) || \ 7105 defined(__IA64__) || defined(__ia64) || defined(_M_IA64) || \ 7106 defined(__aarch64__) || defined(__ppc64__) 7107 exit(0);} 7108 #else 7109 BORK! 7110 #endif 7111 7112 7113 7114_ACEOF 7115if ac_fn_c_try_link "$LINENO"; then : 7116 CPU_BITS="-m64" 7117 CPU_BIT_STR="64" 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64-bit" >&5 7119$as_echo "64-bit" >&6; } 7120 7121else 7122 CPU_BITS="-m32" 7123 CPU_BIT_STR="32" 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 7125$as_echo "32-bit" >&6; } 7126 7127fi 7128rm -f core conftest.err conftest.$ac_objext \ 7129 conftest$ac_exeext conftest.$ac_ext 7130 7131if test "x${CPU_BITS}" = x-m64 ; then 7132 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional paths (64 bit)" >&5 7134$as_echo_n "checking additional paths (64 bit)... " >&6; } 7135 ADD_LDFLAGS="" 7136 ADD_CFLAGS="" 7137if test -d /usr/local/lib64; then 7138 ADD_LDFLAGS="$ADD_LDFLAGS -L/usr/local/lib64" 7139fi 7140if test -d /usr/lib64; then 7141 ADD_LDFLAGS="$ADD_LDFLAGS -L/usr/lib64" 7142fi 7143if test -d /lib64; then 7144 ADD_LDFLAGS="$ADD_LDFLAGS -L/lib64" 7145fi 7146 7147 for i in $ADD_CFLAGS; do 7148 jtr_list_add_dupe=0 7149 for j in $CPPFLAGS; do 7150 if test "x$i" = "x$j"; then 7151 jtr_list_add_dupe=1 7152 break 7153 fi 7154 done 7155 if test $jtr_list_add_dupe = 0; then 7156 CPPFLAGS="$CPPFLAGS $i" 7157 jtr_list_add_result="$jtr_list_add_result $i" 7158 fi 7159 done 7160 # no typo here 7161jtr_list_add_result="" 7162 7163 for i in $ADD_LDFLAGS; do 7164 jtr_list_add_dupe=0 7165 for j in $LDFLAGS; do 7166 if test "x$i" = "x$j"; then 7167 jtr_list_add_dupe=1 7168 break 7169 fi 7170 done 7171 if test $jtr_list_add_dupe = 0; then 7172 LDFLAGS="$LDFLAGS $i" 7173 jtr_list_add_result="$jtr_list_add_result $i" 7174 fi 7175 done 7176 7177 7178 for i in $ADD_CFLAGS; do 7179 jtr_list_add_dupe=0 7180 for j in $CFLAGS; do 7181 if test "x$i" = "x$j"; then 7182 jtr_list_add_dupe=1 7183 break 7184 fi 7185 done 7186 if test $jtr_list_add_dupe = 0; then 7187 CFLAGS="$CFLAGS $i" 7188 jtr_list_add_result="$jtr_list_add_result $i" 7189 fi 7190 done 7191 7192 7193 if test -z "$jtr_list_add_result"; then : 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7195$as_echo "none" >&6; } 7196else 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jtr_list_add_result" >&5 7198$as_echo "$jtr_list_add_result" >&6; } 7199fi 7200 jtr_list_add_result="" 7201 7202 7203fi 7204 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7206$as_echo_n "checking whether ln -s works... " >&6; } 7207LN_S=$as_ln_s 7208if test "$LN_S" = "ln -s"; then 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7210$as_echo "yes" >&6; } 7211else 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7213$as_echo "no, using $LN_S" >&6; } 7214fi 7215 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7217$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7218if ${ac_cv_path_GREP+:} false; then : 7219 $as_echo_n "(cached) " >&6 7220else 7221 if test -z "$GREP"; then 7222 ac_path_GREP_found=false 7223 # Loop through the user's path and test for each of PROGNAME-LIST 7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7226do 7227 IFS=$as_save_IFS 7228 test -z "$as_dir" && as_dir=. 7229 for ac_prog in grep ggrep; do 7230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7232 as_fn_executable_p "$ac_path_GREP" || continue 7233# Check for GNU ac_path_GREP and select it if it is found. 7234 # Check for GNU $ac_path_GREP 7235case `"$ac_path_GREP" --version 2>&1` in 7236*GNU*) 7237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7238*) 7239 ac_count=0 7240 $as_echo_n 0123456789 >"conftest.in" 7241 while : 7242 do 7243 cat "conftest.in" "conftest.in" >"conftest.tmp" 7244 mv "conftest.tmp" "conftest.in" 7245 cp "conftest.in" "conftest.nl" 7246 $as_echo 'GREP' >> "conftest.nl" 7247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7249 as_fn_arith $ac_count + 1 && ac_count=$as_val 7250 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7251 # Best one so far, save it but keep looking for a better one 7252 ac_cv_path_GREP="$ac_path_GREP" 7253 ac_path_GREP_max=$ac_count 7254 fi 7255 # 10*(2^10) chars as input seems more than enough 7256 test $ac_count -gt 10 && break 7257 done 7258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7259esac 7260 7261 $ac_path_GREP_found && break 3 7262 done 7263 done 7264 done 7265IFS=$as_save_IFS 7266 if test -z "$ac_cv_path_GREP"; then 7267 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7268 fi 7269else 7270 ac_cv_path_GREP=$GREP 7271fi 7272 7273fi 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7275$as_echo "$ac_cv_path_GREP" >&6; } 7276 GREP="$ac_cv_path_GREP" 7277 7278 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7280$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7281if ${ac_cv_path_SED+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7285 for ac_i in 1 2 3 4 5 6 7; do 7286 ac_script="$ac_script$as_nl$ac_script" 7287 done 7288 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7289 { ac_script=; unset ac_script;} 7290 if test -z "$SED"; then 7291 ac_path_SED_found=false 7292 # Loop through the user's path and test for each of PROGNAME-LIST 7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7294for as_dir in $PATH 7295do 7296 IFS=$as_save_IFS 7297 test -z "$as_dir" && as_dir=. 7298 for ac_prog in sed gsed; do 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7301 as_fn_executable_p "$ac_path_SED" || continue 7302# Check for GNU ac_path_SED and select it if it is found. 7303 # Check for GNU $ac_path_SED 7304case `"$ac_path_SED" --version 2>&1` in 7305*GNU*) 7306 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7307*) 7308 ac_count=0 7309 $as_echo_n 0123456789 >"conftest.in" 7310 while : 7311 do 7312 cat "conftest.in" "conftest.in" >"conftest.tmp" 7313 mv "conftest.tmp" "conftest.in" 7314 cp "conftest.in" "conftest.nl" 7315 $as_echo '' >> "conftest.nl" 7316 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7318 as_fn_arith $ac_count + 1 && ac_count=$as_val 7319 if test $ac_count -gt ${ac_path_SED_max-0}; then 7320 # Best one so far, save it but keep looking for a better one 7321 ac_cv_path_SED="$ac_path_SED" 7322 ac_path_SED_max=$ac_count 7323 fi 7324 # 10*(2^10) chars as input seems more than enough 7325 test $ac_count -gt 10 && break 7326 done 7327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7328esac 7329 7330 $ac_path_SED_found && break 3 7331 done 7332 done 7333 done 7334IFS=$as_save_IFS 7335 if test -z "$ac_cv_path_SED"; then 7336 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7337 fi 7338else 7339 ac_cv_path_SED=$SED 7340fi 7341 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7344$as_echo "$ac_cv_path_SED" >&6; } 7345 SED="$ac_cv_path_SED" 7346 rm -f conftest.sed 7347 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 7349$as_echo_n "checking for GNU make... " >&6; } 7350if ${_cv_gnu_make_command+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 _cv_gnu_make_command='' ; 7354 for a in "$MAKE" make gmake gnumake ; do 7355 if test -z "$a" ; then continue ; fi ; 7356 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 7357 _cv_gnu_make_command=$a ; 7358 break; 7359 fi 7360 done ; 7361 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 7364$as_echo "$_cv_gnu_make_command" >&6; } ; 7365 if test "x$_cv_gnu_make_command" != "x" ; then 7366 ifGNUmake='' ; 7367 else 7368 ifGNUmake='#' ; 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 7370$as_echo "\"Not found\"" >&6; }; 7371 fi 7372 7373 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7375$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7376set x ${MAKE-make} 7377ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7378if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7379 $as_echo_n "(cached) " >&6 7380else 7381 cat >conftest.make <<\_ACEOF 7382SHELL = /bin/sh 7383all: 7384 @echo '@@@%%%=$(MAKE)=@@@%%%' 7385_ACEOF 7386# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7387case `${MAKE-make} -f conftest.make 2>/dev/null` in 7388 *@@@%%%=?*=@@@%%%*) 7389 eval ac_cv_prog_make_${ac_make}_set=yes;; 7390 *) 7391 eval ac_cv_prog_make_${ac_make}_set=no;; 7392esac 7393rm -f conftest.make 7394fi 7395if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7397$as_echo "yes" >&6; } 7398 SET_MAKE= 7399else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401$as_echo "no" >&6; } 7402 SET_MAKE="MAKE=${MAKE-make}" 7403fi 7404 7405ac_ext=c 7406ac_cpp='$CPP $CPPFLAGS' 7407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7409ac_compiler_gnu=$ac_cv_c_compiler_gnu 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7411$as_echo_n "checking how to run the C preprocessor... " >&6; } 7412# On Suns, sometimes $CPP names a directory. 7413if test -n "$CPP" && test -d "$CPP"; then 7414 CPP= 7415fi 7416if test -z "$CPP"; then 7417 if ${ac_cv_prog_CPP+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 # Double quotes because CPP needs to be expanded 7421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7422 do 7423 ac_preproc_ok=false 7424for ac_c_preproc_warn_flag in '' yes 7425do 7426 # Use a header file that comes with gcc, so configuring glibc 7427 # with a fresh cross-compiler works. 7428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7429 # <limits.h> exists even on freestanding compilers. 7430 # On the NeXT, cc -E runs the code through the compiler's parser, 7431 # not just through cpp. "Syntax error" is here to catch this case. 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434#ifdef __STDC__ 7435# include <limits.h> 7436#else 7437# include <assert.h> 7438#endif 7439 Syntax error 7440_ACEOF 7441if ac_fn_c_try_cpp "$LINENO"; then : 7442 7443else 7444 # Broken: fails on valid input. 7445continue 7446fi 7447rm -f conftest.err conftest.i conftest.$ac_ext 7448 7449 # OK, works on sane cases. Now check whether nonexistent headers 7450 # can be detected and how. 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453#include <ac_nonexistent.h> 7454_ACEOF 7455if ac_fn_c_try_cpp "$LINENO"; then : 7456 # Broken: success on invalid input. 7457continue 7458else 7459 # Passes both tests. 7460ac_preproc_ok=: 7461break 7462fi 7463rm -f conftest.err conftest.i conftest.$ac_ext 7464 7465done 7466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7467rm -f conftest.i conftest.err conftest.$ac_ext 7468if $ac_preproc_ok; then : 7469 break 7470fi 7471 7472 done 7473 ac_cv_prog_CPP=$CPP 7474 7475fi 7476 CPP=$ac_cv_prog_CPP 7477else 7478 ac_cv_prog_CPP=$CPP 7479fi 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7481$as_echo "$CPP" >&6; } 7482ac_preproc_ok=false 7483for ac_c_preproc_warn_flag in '' yes 7484do 7485 # Use a header file that comes with gcc, so configuring glibc 7486 # with a fresh cross-compiler works. 7487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7488 # <limits.h> exists even on freestanding compilers. 7489 # On the NeXT, cc -E runs the code through the compiler's parser, 7490 # not just through cpp. "Syntax error" is here to catch this case. 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492/* end confdefs.h. */ 7493#ifdef __STDC__ 7494# include <limits.h> 7495#else 7496# include <assert.h> 7497#endif 7498 Syntax error 7499_ACEOF 7500if ac_fn_c_try_cpp "$LINENO"; then : 7501 7502else 7503 # Broken: fails on valid input. 7504continue 7505fi 7506rm -f conftest.err conftest.i conftest.$ac_ext 7507 7508 # OK, works on sane cases. Now check whether nonexistent headers 7509 # can be detected and how. 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7511/* end confdefs.h. */ 7512#include <ac_nonexistent.h> 7513_ACEOF 7514if ac_fn_c_try_cpp "$LINENO"; then : 7515 # Broken: success on invalid input. 7516continue 7517else 7518 # Passes both tests. 7519ac_preproc_ok=: 7520break 7521fi 7522rm -f conftest.err conftest.i conftest.$ac_ext 7523 7524done 7525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7526rm -f conftest.i conftest.err conftest.$ac_ext 7527if $ac_preproc_ok; then : 7528 7529else 7530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7532as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7533See \`config.log' for more details" "$LINENO" 5; } 7534fi 7535 7536ac_ext=c 7537ac_cpp='$CPP $CPPFLAGS' 7538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7540ac_compiler_gnu=$ac_cv_c_compiler_gnu 7541 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 7543$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 7544if test -z "$MKDIR_P"; then 7545 if ${ac_cv_path_mkdir+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7549for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 7550do 7551 IFS=$as_save_IFS 7552 test -z "$as_dir" && as_dir=. 7553 for ac_prog in mkdir gmkdir; do 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 7556 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 7557 'mkdir (GNU coreutils) '* | \ 7558 'mkdir (coreutils) '* | \ 7559 'mkdir (fileutils) '4.1*) 7560 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 7561 break 3;; 7562 esac 7563 done 7564 done 7565 done 7566IFS=$as_save_IFS 7567 7568fi 7569 7570 test -d ./--version && rmdir ./--version 7571 if test "${ac_cv_path_mkdir+set}" = set; then 7572 MKDIR_P="$ac_cv_path_mkdir -p" 7573 else 7574 # As a last resort, use the slow shell script. Don't cache a 7575 # value for MKDIR_P within a source directory, because that will 7576 # break other packages using the cache if that directory is 7577 # removed, or if the value is a relative name. 7578 MKDIR_P="$ac_install_sh -d" 7579 fi 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 7582$as_echo "$MKDIR_P" >&6; } 7583 7584cat >confcache <<\_ACEOF 7585# This file is a shell script that caches the results of configure 7586# tests run on this system so they can be shared between configure 7587# scripts and configure runs, see configure's option --config-cache. 7588# It is not useful on other systems. If it contains results you don't 7589# want to keep, you may remove or edit it. 7590# 7591# config.status only pays attention to the cache file if you give it 7592# the --recheck option to rerun configure. 7593# 7594# `ac_cv_env_foo' variables (set or unset) will be overridden when 7595# loading this file, other *unset* `ac_cv_foo' will be assigned the 7596# following values. 7597 7598_ACEOF 7599 7600# The following way of writing the cache mishandles newlines in values, 7601# but we know of no workaround that is simple, portable, and efficient. 7602# So, we kill variables containing newlines. 7603# Ultrix sh set writes to stderr and can't be redirected directly, 7604# and sets the high bit in the cache file unless we assign to the vars. 7605( 7606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7607 eval ac_val=\$$ac_var 7608 case $ac_val in #( 7609 *${as_nl}*) 7610 case $ac_var in #( 7611 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7612$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 7613 esac 7614 case $ac_var in #( 7615 _ | IFS | as_nl) ;; #( 7616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7617 *) { eval $ac_var=; unset $ac_var;} ;; 7618 esac ;; 7619 esac 7620 done 7621 7622 (set) 2>&1 | 7623 case $as_nl`(ac_space=' '; set) 2>&1` in #( 7624 *${as_nl}ac_space=\ *) 7625 # `set' does not quote correctly, so add quotes: double-quote 7626 # substitution turns \\\\ into \\, and sed turns \\ into \. 7627 sed -n \ 7628 "s/'/'\\\\''/g; 7629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7630 ;; #( 7631 *) 7632 # `set' quotes correctly as required by POSIX, so do not add quotes. 7633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7634 ;; 7635 esac | 7636 sort 7637) | 7638 sed ' 7639 /^ac_cv_env_/b end 7640 t clear 7641 :clear 7642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7643 t end 7644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7645 :end' >>confcache 7646if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7647 if test -w "$cache_file"; then 7648 if test "x$cache_file" != "x/dev/null"; then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7650$as_echo "$as_me: updating cache $cache_file" >&6;} 7651 if test ! -f "$cache_file" || test -h "$cache_file"; then 7652 cat confcache >"$cache_file" 7653 else 7654 case $cache_file in #( 7655 */* | ?:*) 7656 mv -f confcache "$cache_file"$$ && 7657 mv -f "$cache_file"$$ "$cache_file" ;; #( 7658 *) 7659 mv -f confcache "$cache_file" ;; 7660 esac 7661 fi 7662 fi 7663 else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7665$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7666 fi 7667fi 7668rm -f confcache 7669# Extract the first word of "sort", so it can be a program name with args. 7670set dummy sort; ac_word=$2 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672$as_echo_n "checking for $ac_word... " >&6; } 7673if ${ac_cv_path_SORT+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 case $SORT in 7677 [\\/]* | ?:[\\/]*) 7678 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 7679 ;; 7680 *) 7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682for as_dir in $PATH 7683do 7684 IFS=$as_save_IFS 7685 test -z "$as_dir" && as_dir=. 7686 for ac_exec_ext in '' $ac_executable_extensions; do 7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7688 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7690 break 2 7691 fi 7692done 7693 done 7694IFS=$as_save_IFS 7695 7696 ;; 7697esac 7698fi 7699SORT=$ac_cv_path_SORT 7700if test -n "$SORT"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 7702$as_echo "$SORT" >&6; } 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705$as_echo "no" >&6; } 7706fi 7707 7708 7709# Extract the first word of "find", so it can be a program name with args. 7710set dummy find; ac_word=$2 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7712$as_echo_n "checking for $ac_word... " >&6; } 7713if ${ac_cv_path_FIND+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 case $FIND in 7717 [\\/]* | ?:[\\/]*) 7718 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7719 ;; 7720 *) 7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7728 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736 ;; 7737esac 7738fi 7739FIND=$ac_cv_path_FIND 7740if test -n "$FIND"; then 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7742$as_echo "$FIND" >&6; } 7743else 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745$as_echo "no" >&6; } 7746fi 7747 7748 7749# Extract the first word of "perl", so it can be a program name with args. 7750set dummy perl; ac_word=$2 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752$as_echo_n "checking for $ac_word... " >&6; } 7753if ${ac_cv_path_PERL+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 case $PERL in 7757 [\\/]* | ?:[\\/]*) 7758 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7759 ;; 7760 *) 7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776 ;; 7777esac 7778fi 7779PERL=$ac_cv_path_PERL 7780if test -n "$PERL"; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 7782$as_echo "$PERL" >&6; } 7783else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785$as_echo "no" >&6; } 7786fi 7787 7788 7789if test -z "$AS"; then : 7790 AS="$CC" 7791fi 7792if test -z "$LD"; then : 7793 LD="$CC" 7794fi 7795if test -z "$AR"; then : 7796 if test -n "$ac_tool_prefix"; then 7797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7798set dummy ${ac_tool_prefix}ar; ac_word=$2 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7800$as_echo_n "checking for $ac_word... " >&6; } 7801if ${ac_cv_prog_AR+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 if test -n "$AR"; then 7805 ac_cv_prog_AR="$AR" # Let the user override the test. 7806else 7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7808for as_dir in $PATH 7809do 7810 IFS=$as_save_IFS 7811 test -z "$as_dir" && as_dir=. 7812 for ac_exec_ext in '' $ac_executable_extensions; do 7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7814 ac_cv_prog_AR="${ac_tool_prefix}ar" 7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7816 break 2 7817 fi 7818done 7819 done 7820IFS=$as_save_IFS 7821 7822fi 7823fi 7824AR=$ac_cv_prog_AR 7825if test -n "$AR"; then 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7827$as_echo "$AR" >&6; } 7828else 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7830$as_echo "no" >&6; } 7831fi 7832 7833 7834fi 7835if test -z "$ac_cv_prog_AR"; then 7836 ac_ct_AR=$AR 7837 # Extract the first word of "ar", so it can be a program name with args. 7838set dummy ar; ac_word=$2 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7840$as_echo_n "checking for $ac_word... " >&6; } 7841if ${ac_cv_prog_ac_ct_AR+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 if test -n "$ac_ct_AR"; then 7845 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7846else 7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848for as_dir in $PATH 7849do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_prog_ac_ct_AR="ar" 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858done 7859 done 7860IFS=$as_save_IFS 7861 7862fi 7863fi 7864ac_ct_AR=$ac_cv_prog_ac_ct_AR 7865if test -n "$ac_ct_AR"; then 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7867$as_echo "$ac_ct_AR" >&6; } 7868else 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7870$as_echo "no" >&6; } 7871fi 7872 7873 if test "x$ac_ct_AR" = x; then 7874 AR="" 7875 else 7876 case $cross_compiling:$ac_tool_warned in 7877yes:) 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7880ac_tool_warned=yes ;; 7881esac 7882 AR=$ac_ct_AR 7883 fi 7884else 7885 AR="$ac_cv_prog_AR" 7886fi 7887 7888fi 7889if test -z "$STRIP"; then : 7890 if test -n "$ac_tool_prefix"; then 7891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7892set dummy ${ac_tool_prefix}strip; ac_word=$2 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7894$as_echo_n "checking for $ac_word... " >&6; } 7895if ${ac_cv_prog_STRIP+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 if test -n "$STRIP"; then 7899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7900else 7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902for as_dir in $PATH 7903do 7904 IFS=$as_save_IFS 7905 test -z "$as_dir" && as_dir=. 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912done 7913 done 7914IFS=$as_save_IFS 7915 7916fi 7917fi 7918STRIP=$ac_cv_prog_STRIP 7919if test -n "$STRIP"; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7921$as_echo "$STRIP" >&6; } 7922else 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7924$as_echo "no" >&6; } 7925fi 7926 7927 7928fi 7929if test -z "$ac_cv_prog_STRIP"; then 7930 ac_ct_STRIP=$STRIP 7931 # Extract the first word of "strip", so it can be a program name with args. 7932set dummy strip; ac_word=$2 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934$as_echo_n "checking for $ac_word... " >&6; } 7935if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 if test -n "$ac_ct_STRIP"; then 7939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7940else 7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7942for as_dir in $PATH 7943do 7944 IFS=$as_save_IFS 7945 test -z "$as_dir" && as_dir=. 7946 for ac_exec_ext in '' $ac_executable_extensions; do 7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7948 ac_cv_prog_ac_ct_STRIP="strip" 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7950 break 2 7951 fi 7952done 7953 done 7954IFS=$as_save_IFS 7955 7956fi 7957fi 7958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7959if test -n "$ac_ct_STRIP"; then 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7961$as_echo "$ac_ct_STRIP" >&6; } 7962else 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7964$as_echo "no" >&6; } 7965fi 7966 7967 if test "x$ac_ct_STRIP" = x; then 7968 STRIP="" 7969 else 7970 case $cross_compiling:$ac_tool_warned in 7971yes:) 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7974ac_tool_warned=yes ;; 7975esac 7976 STRIP=$ac_ct_STRIP 7977 fi 7978else 7979 STRIP="$ac_cv_prog_STRIP" 7980fi 7981 7982fi 7983 7984 7985 7986 7987 7988 7989 7990if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7991 if test -n "$ac_tool_prefix"; then 7992 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7993set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995$as_echo_n "checking for $ac_word... " >&6; } 7996if ${ac_cv_path_PKG_CONFIG+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 case $PKG_CONFIG in 8000 [\\/]* | ?:[\\/]*) 8001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8002 ;; 8003 *) 8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005for as_dir in $PATH 8006do 8007 IFS=$as_save_IFS 8008 test -z "$as_dir" && as_dir=. 8009 for ac_exec_ext in '' $ac_executable_extensions; do 8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8013 break 2 8014 fi 8015done 8016 done 8017IFS=$as_save_IFS 8018 8019 ;; 8020esac 8021fi 8022PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8023if test -n "$PKG_CONFIG"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8025$as_echo "$PKG_CONFIG" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032fi 8033if test -z "$ac_cv_path_PKG_CONFIG"; then 8034 ac_pt_PKG_CONFIG=$PKG_CONFIG 8035 # Extract the first word of "pkg-config", so it can be a program name with args. 8036set dummy pkg-config; ac_word=$2 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8038$as_echo_n "checking for $ac_word... " >&6; } 8039if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 case $ac_pt_PKG_CONFIG in 8043 [\\/]* | ?:[\\/]*) 8044 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8045 ;; 8046 *) 8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048for as_dir in $PATH 8049do 8050 IFS=$as_save_IFS 8051 test -z "$as_dir" && as_dir=. 8052 for ac_exec_ext in '' $ac_executable_extensions; do 8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8054 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8056 break 2 8057 fi 8058done 8059 done 8060IFS=$as_save_IFS 8061 8062 ;; 8063esac 8064fi 8065ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8066if test -n "$ac_pt_PKG_CONFIG"; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 8068$as_echo "$ac_pt_PKG_CONFIG" >&6; } 8069else 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8071$as_echo "no" >&6; } 8072fi 8073 8074 if test "x$ac_pt_PKG_CONFIG" = x; then 8075 PKG_CONFIG="" 8076 else 8077 case $cross_compiling:$ac_tool_warned in 8078yes:) 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8081ac_tool_warned=yes ;; 8082esac 8083 PKG_CONFIG=$ac_pt_PKG_CONFIG 8084 fi 8085else 8086 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8087fi 8088 8089fi 8090if test -n "$PKG_CONFIG"; then 8091 _pkg_min_version=0.9.0 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 8093$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 8094 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8096$as_echo "yes" >&6; } 8097 else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099$as_echo "no" >&6; } 8100 PKG_CONFIG="" 8101 fi 8102 8103fi 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config will be used" >&5 8105$as_echo_n "checking if pkg-config will be used... " >&6; } 8106if test "x$PKG_CONFIG" = x || test "x$enable_pkg_config" == xno ; then 8107 8108 if test "xno" == xyes; then 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8110$as_echo "yes" >&6; } 8111 else 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8113$as_echo "no" >&6; } 8114 if test "x$enable_pkg_config" == xyes; then 8115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8117as_fn_error $? "pkg-config is NOT available 8118See \`config.log' for more details" "$LINENO" 5; } 8119 fi 8120 fi 8121 8122 PKG_CONFIG=no 8123else 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8125$as_echo "yes" >&6; } 8126fi 8127 8128if ( test -e ../run/john.pot ) ; then 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if potcheck.pl succeeds" >&5 8130$as_echo_n "checking if potcheck.pl succeeds... " >&6; } 8131if test "x$PERL" == x ; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no Perl (unable to check)" >&5 8133$as_echo "no Perl (unable to check)" >&6; } 8134else 8135 $PERL ../run/potcheck.pl -validate < ../run/john.pot 8136 ret=$? 8137 if ( test $ret -ne 0 ) ; then 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8139$as_echo "no" >&6; } 8140 as_fn_error $? "NOTE, john will not run properly until you fix your ../run/john.pot file using '../run/potcheck.pl -longline_fix'" "$LINENO" 5 8141 fi 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8143$as_echo "yes" >&6; } 8144fi 8145fi 8146 8147 8148 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 8150$as_echo_n "checking for egrep... " >&6; } 8151if ${ac_cv_path_EGREP+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153else 8154 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 8155 then ac_cv_path_EGREP="$GREP -E" 8156 else 8157 if test -z "$EGREP"; then 8158 ac_path_EGREP_found=false 8159 # Loop through the user's path and test for each of PROGNAME-LIST 8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8162do 8163 IFS=$as_save_IFS 8164 test -z "$as_dir" && as_dir=. 8165 for ac_prog in egrep; do 8166 for ac_exec_ext in '' $ac_executable_extensions; do 8167 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 8168 as_fn_executable_p "$ac_path_EGREP" || continue 8169# Check for GNU ac_path_EGREP and select it if it is found. 8170 # Check for GNU $ac_path_EGREP 8171case `"$ac_path_EGREP" --version 2>&1` in 8172*GNU*) 8173 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 8174*) 8175 ac_count=0 8176 $as_echo_n 0123456789 >"conftest.in" 8177 while : 8178 do 8179 cat "conftest.in" "conftest.in" >"conftest.tmp" 8180 mv "conftest.tmp" "conftest.in" 8181 cp "conftest.in" "conftest.nl" 8182 $as_echo 'EGREP' >> "conftest.nl" 8183 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8185 as_fn_arith $ac_count + 1 && ac_count=$as_val 8186 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8187 # Best one so far, save it but keep looking for a better one 8188 ac_cv_path_EGREP="$ac_path_EGREP" 8189 ac_path_EGREP_max=$ac_count 8190 fi 8191 # 10*(2^10) chars as input seems more than enough 8192 test $ac_count -gt 10 && break 8193 done 8194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8195esac 8196 8197 $ac_path_EGREP_found && break 3 8198 done 8199 done 8200 done 8201IFS=$as_save_IFS 8202 if test -z "$ac_cv_path_EGREP"; then 8203 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8204 fi 8205else 8206 ac_cv_path_EGREP=$EGREP 8207fi 8208 8209 fi 8210fi 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8212$as_echo "$ac_cv_path_EGREP" >&6; } 8213 EGREP="$ac_cv_path_EGREP" 8214 8215 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8217$as_echo_n "checking for ANSI C header files... " >&6; } 8218if ${ac_cv_header_stdc+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223#include <stdlib.h> 8224#include <stdarg.h> 8225#include <string.h> 8226#include <float.h> 8227 8228int 8229main () 8230{ 8231 8232 ; 8233 return 0; 8234} 8235_ACEOF 8236if ac_fn_c_try_compile "$LINENO"; then : 8237 ac_cv_header_stdc=yes 8238else 8239 ac_cv_header_stdc=no 8240fi 8241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8242 8243if test $ac_cv_header_stdc = yes; then 8244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247#include <string.h> 8248 8249_ACEOF 8250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8251 $EGREP "memchr" >/dev/null 2>&1; then : 8252 8253else 8254 ac_cv_header_stdc=no 8255fi 8256rm -f conftest* 8257 8258fi 8259 8260if test $ac_cv_header_stdc = yes; then 8261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264#include <stdlib.h> 8265 8266_ACEOF 8267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8268 $EGREP "free" >/dev/null 2>&1; then : 8269 8270else 8271 ac_cv_header_stdc=no 8272fi 8273rm -f conftest* 8274 8275fi 8276 8277if test $ac_cv_header_stdc = yes; then 8278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8279 if test "$cross_compiling" = yes; then : 8280 : 8281else 8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8283/* end confdefs.h. */ 8284#include <ctype.h> 8285#include <stdlib.h> 8286#if ((' ' & 0x0FF) == 0x020) 8287# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8288# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8289#else 8290# define ISLOWER(c) \ 8291 (('a' <= (c) && (c) <= 'i') \ 8292 || ('j' <= (c) && (c) <= 'r') \ 8293 || ('s' <= (c) && (c) <= 'z')) 8294# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8295#endif 8296 8297#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8298int 8299main () 8300{ 8301 int i; 8302 for (i = 0; i < 256; i++) 8303 if (XOR (islower (i), ISLOWER (i)) 8304 || toupper (i) != TOUPPER (i)) 8305 return 2; 8306 return 0; 8307} 8308_ACEOF 8309if ac_fn_c_try_run "$LINENO"; then : 8310 8311else 8312 ac_cv_header_stdc=no 8313fi 8314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8315 conftest.$ac_objext conftest.beam conftest.$ac_ext 8316fi 8317 8318fi 8319fi 8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8321$as_echo "$ac_cv_header_stdc" >&6; } 8322if test $ac_cv_header_stdc = yes; then 8323 8324$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8325 8326fi 8327 8328# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8329for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8330 inttypes.h stdint.h unistd.h 8331do : 8332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8333ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8334" 8335if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8336 cat >>confdefs.h <<_ACEOF 8337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8338_ACEOF 8339 8340fi 8341 8342done 8343 8344 8345# The cast to long int works around a bug in the HP C Compiler 8346# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8347# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8348# This bug is HP SR number 8606223364. 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8350$as_echo_n "checking size of short... " >&6; } 8351if ${ac_cv_sizeof_short+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8355 8356else 8357 if test "$ac_cv_type_short" = yes; then 8358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8360as_fn_error 77 "cannot compute sizeof (short) 8361See \`config.log' for more details" "$LINENO" 5; } 8362 else 8363 ac_cv_sizeof_short=0 8364 fi 8365fi 8366 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8369$as_echo "$ac_cv_sizeof_short" >&6; } 8370 8371 8372 8373cat >>confdefs.h <<_ACEOF 8374#define SIZEOF_SHORT $ac_cv_sizeof_short 8375_ACEOF 8376 8377 8378# The cast to long int works around a bug in the HP C Compiler 8379# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8380# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8381# This bug is HP SR number 8606223364. 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8383$as_echo_n "checking size of int... " >&6; } 8384if ${ac_cv_sizeof_int+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8388 8389else 8390 if test "$ac_cv_type_int" = yes; then 8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8393as_fn_error 77 "cannot compute sizeof (int) 8394See \`config.log' for more details" "$LINENO" 5; } 8395 else 8396 ac_cv_sizeof_int=0 8397 fi 8398fi 8399 8400fi 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8402$as_echo "$ac_cv_sizeof_int" >&6; } 8403 8404 8405 8406cat >>confdefs.h <<_ACEOF 8407#define SIZEOF_INT $ac_cv_sizeof_int 8408_ACEOF 8409 8410 8411# The cast to long int works around a bug in the HP C Compiler 8412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8414# This bug is HP SR number 8606223364. 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8416$as_echo_n "checking size of long... " >&6; } 8417if ${ac_cv_sizeof_long+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8421 8422else 8423 if test "$ac_cv_type_long" = yes; then 8424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8426as_fn_error 77 "cannot compute sizeof (long) 8427See \`config.log' for more details" "$LINENO" 5; } 8428 else 8429 ac_cv_sizeof_long=0 8430 fi 8431fi 8432 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8435$as_echo "$ac_cv_sizeof_long" >&6; } 8436 8437 8438 8439cat >>confdefs.h <<_ACEOF 8440#define SIZEOF_LONG $ac_cv_sizeof_long 8441_ACEOF 8442 8443 8444# The cast to long int works around a bug in the HP C Compiler 8445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8447# This bug is HP SR number 8606223364. 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 8449$as_echo_n "checking size of long long... " >&6; } 8450if ${ac_cv_sizeof_long_long+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8454 8455else 8456 if test "$ac_cv_type_long_long" = yes; then 8457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8459as_fn_error 77 "cannot compute sizeof (long long) 8460See \`config.log' for more details" "$LINENO" 5; } 8461 else 8462 ac_cv_sizeof_long_long=0 8463 fi 8464fi 8465 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8468$as_echo "$ac_cv_sizeof_long_long" >&6; } 8469 8470 8471 8472cat >>confdefs.h <<_ACEOF 8473#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8474_ACEOF 8475 8476 8477# The cast to long int works around a bug in the HP C Compiler 8478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8480# This bug is HP SR number 8606223364. 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 8482$as_echo_n "checking size of wchar_t... " >&6; } 8483if ${ac_cv_sizeof_wchar_t+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : 8487 8488else 8489 if test "$ac_cv_type_wchar_t" = yes; then 8490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8492as_fn_error 77 "cannot compute sizeof (wchar_t) 8493See \`config.log' for more details" "$LINENO" 5; } 8494 else 8495 ac_cv_sizeof_wchar_t=0 8496 fi 8497fi 8498 8499fi 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 8501$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 8502 8503 8504 8505cat >>confdefs.h <<_ACEOF 8506#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 8507_ACEOF 8508 8509 8510# The cast to long int works around a bug in the HP C Compiler 8511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8513# This bug is HP SR number 8606223364. 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 8515$as_echo_n "checking size of int *... " >&6; } 8516if ${ac_cv_sizeof_int_p+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 8520 8521else 8522 if test "$ac_cv_type_int_p" = yes; then 8523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8525as_fn_error 77 "cannot compute sizeof (int *) 8526See \`config.log' for more details" "$LINENO" 5; } 8527 else 8528 ac_cv_sizeof_int_p=0 8529 fi 8530fi 8531 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 8534$as_echo "$ac_cv_sizeof_int_p" >&6; } 8535 8536 8537 8538cat >>confdefs.h <<_ACEOF 8539#define SIZEOF_INT_P $ac_cv_sizeof_int_p 8540_ACEOF 8541 8542 8543# The cast to long int works around a bug in the HP C Compiler 8544# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8545# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8546# This bug is HP SR number 8606223364. 8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8548$as_echo_n "checking size of void *... " >&6; } 8549if ${ac_cv_sizeof_void_p+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8553 8554else 8555 if test "$ac_cv_type_void_p" = yes; then 8556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8558as_fn_error 77 "cannot compute sizeof (void *) 8559See \`config.log' for more details" "$LINENO" 5; } 8560 else 8561 ac_cv_sizeof_void_p=0 8562 fi 8563fi 8564 8565fi 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8567$as_echo "$ac_cv_sizeof_void_p" >&6; } 8568 8569 8570 8571cat >>confdefs.h <<_ACEOF 8572#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8573_ACEOF 8574 8575 8576 8577SIMD_FLAGS="" 8578CFLAGS_EX="" 8579case "$simd" in 8580 yes|auto) 8581 ;; 8582 no) 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: SIMD logic disabled by request" >&5 8584$as_echo "$as_me: SIMD logic disabled by request" >&6;} 8585 JOHN_NO_SIMD="-DJOHN_NO_SIMD" 8586 8587 case "$host_cpu" in 8588 aarch64|arm*|powerpc*) 8589 SIMD_NAME="(SIMD disabled)" 8590 ;; 8591 esac 8592 ;; 8593 neon) 8594 case $host_cpu in #( 8595 arm*) : 8596 if test 2 -gt 0; then : 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mfpu=neon w/ linking" >&5 8598$as_echo_n "checking if $CC supports -mfpu=neon w/ linking... " >&6; } 8599fi 8600 ac_ext=c 8601ac_cpp='$CPP $CPPFLAGS' 8602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8604ac_compiler_gnu=$ac_cv_c_compiler_gnu 8605 8606 ac_saved_cflags="$CFLAGS" 8607 CFLAGS="-Werror -mfpu=neon" 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610 8611int 8612main () 8613{ 8614 8615 ; 8616 return 0; 8617} 8618_ACEOF 8619if ac_fn_c_try_link "$LINENO"; then : 8620 if test "2" -gt 0; then : 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8622$as_echo "yes" >&6; } 8623fi 8624 CFLAGS_EX="$CFLAGS_EX -mfpu=neon" 8625 8626else 8627 if test 2 -gt 0; then : 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8629$as_echo "no" >&6; } 8630fi 8631 if test "2" = 2; then : 8632 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 8633fi 8634 8635fi 8636rm -f core conftest.err conftest.$ac_objext \ 8637 conftest$ac_exeext conftest.$ac_ext 8638 CFLAGS="$ac_saved_cflags" 8639 ac_ext=c 8640ac_cpp='$CPP $CPPFLAGS' 8641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8643ac_compiler_gnu=$ac_cv_c_compiler_gnu 8644 8645 8646 SIMD_NAME="NEON" ;; #( 8647 aarch64) : 8648 if test 2 -gt 0; then : 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -march=armv8-a+simd w/ linking" >&5 8650$as_echo_n "checking if $CC supports -march=armv8-a+simd w/ linking... " >&6; } 8651fi 8652 ac_ext=c 8653ac_cpp='$CPP $CPPFLAGS' 8654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8656ac_compiler_gnu=$ac_cv_c_compiler_gnu 8657 8658 ac_saved_cflags="$CFLAGS" 8659 CFLAGS="-Werror -march=armv8-a+simd" 8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8661/* end confdefs.h. */ 8662 8663int 8664main () 8665{ 8666 8667 ; 8668 return 0; 8669} 8670_ACEOF 8671if ac_fn_c_try_link "$LINENO"; then : 8672 if test "2" -gt 0; then : 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8674$as_echo "yes" >&6; } 8675fi 8676 CFLAGS_EX="$CFLAGS_EX -march=armv8-a+simd" 8677 8678else 8679 if test 2 -gt 0; then : 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8681$as_echo "no" >&6; } 8682fi 8683 if test "2" = 2; then : 8684 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 8685fi 8686 8687fi 8688rm -f core conftest.err conftest.$ac_objext \ 8689 conftest$ac_exeext conftest.$ac_ext 8690 CFLAGS="$ac_saved_cflags" 8691 ac_ext=c 8692ac_cpp='$CPP $CPPFLAGS' 8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8695ac_compiler_gnu=$ac_cv_c_compiler_gnu 8696 8697 8698 SIMD_NAME="ASIMD" ;; #( 8699 *) : 8700 as_fn_error $? "NEON/ASIMD only applicable for ARM CPU's" "$LINENO" 5 8701 ;; 8702esac 8703 8704 if test "$SIMD_NAME" = "NEON" || test "$SIMD_NAME" = "ASIMD" ; then 8705 ac_saved_cflags_ex="$CFLAGS_EX" 8706 CFLAGS_EX="" 8707 if test 1 -gt 0; then : 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 8709$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 8710fi 8711 ac_ext=c 8712ac_cpp='$CPP $CPPFLAGS' 8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8715ac_compiler_gnu=$ac_cv_c_compiler_gnu 8716 8717 ac_saved_cflags="$CFLAGS" 8718 CFLAGS="-Werror -fno-strict-aliasing" 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721 8722int 8723main () 8724{ 8725 8726 ; 8727 return 0; 8728} 8729_ACEOF 8730if ac_fn_c_try_compile "$LINENO"; then : 8731 if test "1" -gt 0; then : 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8733$as_echo "yes" >&6; } 8734fi 8735 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 8736 8737else 8738 if test 1 -gt 0; then : 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8740$as_echo "no" >&6; } 8741fi 8742 if test "1" = 2; then : 8743 as_fn_error $? "Not supported by compiler" "$LINENO" 5 8744fi 8745 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748 CFLAGS="$ac_saved_cflags" 8749 ac_ext=c 8750ac_cpp='$CPP $CPPFLAGS' 8751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8753ac_compiler_gnu=$ac_cv_c_compiler_gnu 8754 8755 8756 if test "x$CFLAGS_EX" != x ; then 8757 INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" 8758 fi 8759 CFLAGS_EX="$ac_saved_cflags_ex" 8760 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 8761 8762 fi 8763 8764 ;; 8765 asimd) 8766 if test 2 -gt 0; then : 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -march=armv8-a+simd w/ linking" >&5 8768$as_echo_n "checking if $CC supports -march=armv8-a+simd w/ linking... " >&6; } 8769fi 8770 ac_ext=c 8771ac_cpp='$CPP $CPPFLAGS' 8772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8774ac_compiler_gnu=$ac_cv_c_compiler_gnu 8775 8776 ac_saved_cflags="$CFLAGS" 8777 CFLAGS="-Werror -march=armv8-a+simd" 8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8779/* end confdefs.h. */ 8780 8781int 8782main () 8783{ 8784 8785 ; 8786 return 0; 8787} 8788_ACEOF 8789if ac_fn_c_try_link "$LINENO"; then : 8790 if test "2" -gt 0; then : 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8792$as_echo "yes" >&6; } 8793fi 8794 CFLAGS_EX="$CFLAGS_EX -march=armv8-a+simd" 8795 8796else 8797 if test 2 -gt 0; then : 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799$as_echo "no" >&6; } 8800fi 8801 if test "2" = 2; then : 8802 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 8803fi 8804 8805fi 8806rm -f core conftest.err conftest.$ac_objext \ 8807 conftest$ac_exeext conftest.$ac_ext 8808 CFLAGS="$ac_saved_cflags" 8809 ac_ext=c 8810ac_cpp='$CPP $CPPFLAGS' 8811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8813ac_compiler_gnu=$ac_cv_c_compiler_gnu 8814 8815 8816 SIMD_NAME="ASIMD" 8817 8818 if test "$SIMD_NAME" = "NEON" || test "$SIMD_NAME" = "ASIMD" ; then 8819 ac_saved_cflags_ex="$CFLAGS_EX" 8820 CFLAGS_EX="" 8821 if test 1 -gt 0; then : 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 8823$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 8824fi 8825 ac_ext=c 8826ac_cpp='$CPP $CPPFLAGS' 8827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8829ac_compiler_gnu=$ac_cv_c_compiler_gnu 8830 8831 ac_saved_cflags="$CFLAGS" 8832 CFLAGS="-Werror -fno-strict-aliasing" 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834/* end confdefs.h. */ 8835 8836int 8837main () 8838{ 8839 8840 ; 8841 return 0; 8842} 8843_ACEOF 8844if ac_fn_c_try_compile "$LINENO"; then : 8845 if test "1" -gt 0; then : 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8847$as_echo "yes" >&6; } 8848fi 8849 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 8850 8851else 8852 if test 1 -gt 0; then : 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8854$as_echo "no" >&6; } 8855fi 8856 if test "1" = 2; then : 8857 as_fn_error $? "Not supported by compiler" "$LINENO" 5 8858fi 8859 8860fi 8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8862 CFLAGS="$ac_saved_cflags" 8863 ac_ext=c 8864ac_cpp='$CPP $CPPFLAGS' 8865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8867ac_compiler_gnu=$ac_cv_c_compiler_gnu 8868 8869 8870 if test "x$CFLAGS_EX" != x ; then 8871 INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" 8872 fi 8873 CFLAGS_EX="$ac_saved_cflags_ex" 8874 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 8875 8876 fi 8877 8878 ;; 8879 altivec1) 8880 if test 2 -gt 0; then : 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec w/ linking" >&5 8882$as_echo_n "checking if $CC supports -maltivec w/ linking... " >&6; } 8883fi 8884 ac_ext=c 8885ac_cpp='$CPP $CPPFLAGS' 8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8888ac_compiler_gnu=$ac_cv_c_compiler_gnu 8889 8890 ac_saved_cflags="$CFLAGS" 8891 CFLAGS="-Werror -maltivec" 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894 8895int 8896main () 8897{ 8898 8899 ; 8900 return 0; 8901} 8902_ACEOF 8903if ac_fn_c_try_link "$LINENO"; then : 8904 if test "2" -gt 0; then : 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8906$as_echo "yes" >&6; } 8907fi 8908 CFLAGS_EX="$CFLAGS_EX -maltivec" 8909 8910else 8911 if test 2 -gt 0; then : 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8913$as_echo "no" >&6; } 8914fi 8915 if test "2" = 2; then : 8916 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 8917fi 8918 8919fi 8920rm -f core conftest.err conftest.$ac_objext \ 8921 conftest$ac_exeext conftest.$ac_ext 8922 CFLAGS="$ac_saved_cflags" 8923 ac_ext=c 8924ac_cpp='$CPP $CPPFLAGS' 8925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8927ac_compiler_gnu=$ac_cv_c_compiler_gnu 8928 8929 8930 if test 2 -gt 0; then : 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -msvx w/ linking" >&5 8932$as_echo_n "checking if $CC supports -msvx w/ linking... " >&6; } 8933fi 8934 ac_ext=c 8935ac_cpp='$CPP $CPPFLAGS' 8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8938ac_compiler_gnu=$ac_cv_c_compiler_gnu 8939 8940 ac_saved_cflags="$CFLAGS" 8941 CFLAGS="-Werror -msvx" 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944 8945int 8946main () 8947{ 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_link "$LINENO"; then : 8954 if test "2" -gt 0; then : 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8956$as_echo "yes" >&6; } 8957fi 8958 CFLAGS_EX="$CFLAGS_EX -msvx" 8959 8960else 8961 if test 2 -gt 0; then : 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8963$as_echo "no" >&6; } 8964fi 8965 if test "2" = 2; then : 8966 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 8967fi 8968 8969fi 8970rm -f core conftest.err conftest.$ac_objext \ 8971 conftest$ac_exeext conftest.$ac_ext 8972 CFLAGS="$ac_saved_cflags" 8973 ac_ext=c 8974ac_cpp='$CPP $CPPFLAGS' 8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8977ac_compiler_gnu=$ac_cv_c_compiler_gnu 8978 8979 8980 SIMD_NAME="Altivec" 8981 ;; 8982 altivec*) 8983 if test 2 -gt 0; then : 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec w/ linking" >&5 8985$as_echo_n "checking if $CC supports -maltivec w/ linking... " >&6; } 8986fi 8987 ac_ext=c 8988ac_cpp='$CPP $CPPFLAGS' 8989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8991ac_compiler_gnu=$ac_cv_c_compiler_gnu 8992 8993 ac_saved_cflags="$CFLAGS" 8994 CFLAGS="-Werror -maltivec" 8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996/* end confdefs.h. */ 8997 8998int 8999main () 9000{ 9001 9002 ; 9003 return 0; 9004} 9005_ACEOF 9006if ac_fn_c_try_link "$LINENO"; then : 9007 if test "2" -gt 0; then : 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9009$as_echo "yes" >&6; } 9010fi 9011 CFLAGS_EX="$CFLAGS_EX -maltivec" 9012 9013else 9014 if test 2 -gt 0; then : 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9016$as_echo "no" >&6; } 9017fi 9018 if test "2" = 2; then : 9019 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 9020fi 9021 9022fi 9023rm -f core conftest.err conftest.$ac_objext \ 9024 conftest$ac_exeext conftest.$ac_ext 9025 CFLAGS="$ac_saved_cflags" 9026 ac_ext=c 9027ac_cpp='$CPP $CPPFLAGS' 9028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9030ac_compiler_gnu=$ac_cv_c_compiler_gnu 9031 9032 9033 if test 2 -gt 0; then : 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -msvx w/ linking" >&5 9035$as_echo_n "checking if $CC supports -msvx w/ linking... " >&6; } 9036fi 9037 ac_ext=c 9038ac_cpp='$CPP $CPPFLAGS' 9039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9041ac_compiler_gnu=$ac_cv_c_compiler_gnu 9042 9043 ac_saved_cflags="$CFLAGS" 9044 CFLAGS="-Werror -msvx" 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047 9048int 9049main () 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_link "$LINENO"; then : 9057 if test "2" -gt 0; then : 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9059$as_echo "yes" >&6; } 9060fi 9061 CFLAGS_EX="$CFLAGS_EX -msvx" 9062 9063else 9064 if test 2 -gt 0; then : 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9066$as_echo "no" >&6; } 9067fi 9068 if test "2" = 2; then : 9069 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 9070fi 9071 9072fi 9073rm -f core conftest.err conftest.$ac_objext \ 9074 conftest$ac_exeext conftest.$ac_ext 9075 CFLAGS="$ac_saved_cflags" 9076 ac_ext=c 9077ac_cpp='$CPP $CPPFLAGS' 9078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9080ac_compiler_gnu=$ac_cv_c_compiler_gnu 9081 9082 9083 if test 2 -gt 0; then : 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mpower8vector w/ linking" >&5 9085$as_echo_n "checking if $CC supports -mpower8vector w/ linking... " >&6; } 9086fi 9087 ac_ext=c 9088ac_cpp='$CPP $CPPFLAGS' 9089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9091ac_compiler_gnu=$ac_cv_c_compiler_gnu 9092 9093 ac_saved_cflags="$CFLAGS" 9094 CFLAGS="-Werror -mpower8vector" 9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9096/* end confdefs.h. */ 9097 9098int 9099main () 9100{ 9101 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106if ac_fn_c_try_link "$LINENO"; then : 9107 if test "2" -gt 0; then : 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9109$as_echo "yes" >&6; } 9110fi 9111 CFLAGS_EX="$CFLAGS_EX -mpower8vector" 9112 9113else 9114 if test 2 -gt 0; then : 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9116$as_echo "no" >&6; } 9117fi 9118 if test "2" = 2; then : 9119 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 9120fi 9121 9122fi 9123rm -f core conftest.err conftest.$ac_objext \ 9124 conftest$ac_exeext conftest.$ac_ext 9125 CFLAGS="$ac_saved_cflags" 9126 ac_ext=c 9127ac_cpp='$CPP $CPPFLAGS' 9128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9130ac_compiler_gnu=$ac_cv_c_compiler_gnu 9131 9132 9133 SIMD_NAME="Altivec2" 9134 ;; 9135 mmx|sse*|ssse3|avx*|xop*) 9136 SIMD_NAME=`echo $simd | tr a-z A-Z` 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force $SIMD_NAME using default method (--enable-simd=$simd)." >&5 9138$as_echo "$as_me: Trying to force $SIMD_NAME using default method (--enable-simd=$simd)." >&6;} 9139 if test 2 -gt 0; then : 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -m${simd} w/ linking" >&5 9141$as_echo_n "checking if $CC supports -m${simd} w/ linking... " >&6; } 9142fi 9143 ac_ext=c 9144ac_cpp='$CPP $CPPFLAGS' 9145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9147ac_compiler_gnu=$ac_cv_c_compiler_gnu 9148 9149 ac_saved_cflags="$CFLAGS" 9150 CFLAGS="-Werror -m${simd}" 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153 9154int 9155main () 9156{ 9157 9158 ; 9159 return 0; 9160} 9161_ACEOF 9162if ac_fn_c_try_link "$LINENO"; then : 9163 if test "2" -gt 0; then : 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9165$as_echo "yes" >&6; } 9166fi 9167 CFLAGS_EX="$CFLAGS_EX -m${simd}" 9168 9169else 9170 if test 2 -gt 0; then : 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9172$as_echo "no" >&6; } 9173fi 9174 if test "2" = 2; then : 9175 as_fn_error $? "Not supported by compiler/linker" "$LINENO" 5 9176fi 9177 9178fi 9179rm -f core conftest.err conftest.$ac_objext \ 9180 conftest$ac_exeext conftest.$ac_ext 9181 CFLAGS="$ac_saved_cflags" 9182 ac_ext=c 9183ac_cpp='$CPP $CPPFLAGS' 9184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9186ac_compiler_gnu=$ac_cv_c_compiler_gnu 9187 9188 9189 ;; 9190 *) 9191 SIMD_NAME=`echo $simd | tr a-z A-Z` 9192 as_fn_error $? "SIMD type $SIMD_NAME not supported (--enable-simd=$simd)" "$LINENO" 5 9193esac 9194 9195 for i in "$CFLAGS_EX"; do 9196 jtr_list_add_dupe=0 9197 for j in $SIMD_FLAGS; do 9198 if test "x$i" = "x$j"; then 9199 jtr_list_add_dupe=1 9200 break 9201 fi 9202 done 9203 if test $jtr_list_add_dupe = 0; then 9204 SIMD_FLAGS="$SIMD_FLAGS $i" 9205 jtr_list_add_result="$jtr_list_add_result $i" 9206 fi 9207 done 9208 9209 9210 9211cpu_family="unkown" 9212case "$host_cpu" in 9213 alpha*) ARCH_LINK=alpha.h endian=little ;; 9214 armeb) ARCH_LINK=arm32le.h endian=big ;; 9215 aarch64) ARCH_LINK=arm64le.h endian=little 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 9217$as_echo_n "checking special compiler flags... " >&6; } 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARM64" >&5 9219$as_echo "ARM64" >&6; } 9220 if test $simd != no; then : 9221 SIMD_NAME="ASIMD" 9222 9223 if test "$SIMD_NAME" = "NEON" || test "$SIMD_NAME" = "ASIMD" ; then 9224 ac_saved_cflags_ex="$CFLAGS_EX" 9225 CFLAGS_EX="" 9226 if test 1 -gt 0; then : 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 9228$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 9229fi 9230 ac_ext=c 9231ac_cpp='$CPP $CPPFLAGS' 9232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9234ac_compiler_gnu=$ac_cv_c_compiler_gnu 9235 9236 ac_saved_cflags="$CFLAGS" 9237 CFLAGS="-Werror -fno-strict-aliasing" 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240 9241int 9242main () 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_compile "$LINENO"; then : 9250 if test "1" -gt 0; then : 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9252$as_echo "yes" >&6; } 9253fi 9254 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 9255 9256else 9257 if test 1 -gt 0; then : 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9259$as_echo "no" >&6; } 9260fi 9261 if test "1" = 2; then : 9262 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9263fi 9264 9265fi 9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9267 CFLAGS="$ac_saved_cflags" 9268 ac_ext=c 9269ac_cpp='$CPP $CPPFLAGS' 9270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9272ac_compiler_gnu=$ac_cv_c_compiler_gnu 9273 9274 9275 if test "x$CFLAGS_EX" != x ; then 9276 INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" 9277 fi 9278 CFLAGS_EX="$ac_saved_cflags_ex" 9279 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 9280 9281 fi 9282 9283 9284fi 9285 ;; 9286 arm*) ARCH_LINK=arm32le.h endian=little 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 9288$as_echo_n "checking special compiler flags... " >&6; } 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARM" >&5 9290$as_echo "ARM" >&6; } 9291 9292CC_BACKUP=$CC 9293CFLAGS_BACKUP=$CFLAGS 9294 9295if test "x$simd" = xyes ; then 9296 9297CFLAGS="$CFLAGS -O0" 9298if test "x$enable_native_tests" = xyes; then 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing build host's native CPU features" >&5 9300$as_echo "$as_me: Testing build host's native CPU features" >&6;} 9301 CC="$CC_BACKUP -mfpu=neon" 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5 9303$as_echo_n "checking for NEON... " >&6; } 9304 if test "$cross_compiling" = yes; then : 9305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9307as_fn_error $? "cannot run test program while cross compiling 9308See \`config.log' for more details" "$LINENO" 5; } 9309else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313 #include <arm_neon.h> 9314 #include <stdio.h> 9315 extern void exit(int); 9316 int main(){uint32x4_t t;*((long*)&t)=1;t=veorq_u32(t,t);if((*(unsigned*)&t)==88)printf(".");exit(0);} 9317 9318 9319_ACEOF 9320if ac_fn_c_try_run "$LINENO"; then : 9321 CPU_BEST_FLAGS="-mfpu=neon" 9322 SIMD_NAME="NEON" 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9324$as_echo "yes" >&6; } 9325 9326else 9327 CPU_NOTFOUND="1" 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9329$as_echo "no" >&6; } 9330 9331fi 9332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9333 conftest.$ac_objext conftest.beam conftest.$ac_ext 9334fi 9335 9336else 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5 9338$as_echo_n "checking for NEON... " >&6; } 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341 9342 #include <arm_neon.h> 9343 #include <stdio.h> 9344 extern void exit(int); 9345 int main(){uint32x4_t t;*((long*)&t)=1;t=veorq_u32(t,t);if((*(unsigned*)&t)==88)printf(".");exit(0);} 9346 9347 9348_ACEOF 9349if ac_fn_c_try_link "$LINENO"; then : 9350 CPU_BEST_FLAGS="-mfpu=neon" 9351 SIMD_NAME="NEON" 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9353$as_echo "yes" >&6; } 9354 9355else 9356 CPU_NOTFOUND="1" 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9358$as_echo "no" >&6; } 9359 9360fi 9361rm -f core conftest.err conftest.$ac_objext \ 9362 conftest$ac_exeext conftest.$ac_ext 9363fi 9364fi 9365 9366CC="$CC_BACKUP" 9367CFLAGS="$CFLAGS_BACKUP" 9368 9369 9370 if test "$SIMD_NAME" = "NEON" || test "$SIMD_NAME" = "ASIMD" ; then 9371 ac_saved_cflags_ex="$CFLAGS_EX" 9372 CFLAGS_EX="" 9373 if test 1 -gt 0; then : 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 9375$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 9376fi 9377 ac_ext=c 9378ac_cpp='$CPP $CPPFLAGS' 9379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9381ac_compiler_gnu=$ac_cv_c_compiler_gnu 9382 9383 ac_saved_cflags="$CFLAGS" 9384 CFLAGS="-Werror -fno-strict-aliasing" 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387 9388int 9389main () 9390{ 9391 9392 ; 9393 return 0; 9394} 9395_ACEOF 9396if ac_fn_c_try_compile "$LINENO"; then : 9397 if test "1" -gt 0; then : 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9399$as_echo "yes" >&6; } 9400fi 9401 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 9402 9403else 9404 if test 1 -gt 0; then : 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9406$as_echo "no" >&6; } 9407fi 9408 if test "1" = 2; then : 9409 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9410fi 9411 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9414 CFLAGS="$ac_saved_cflags" 9415 ac_ext=c 9416ac_cpp='$CPP $CPPFLAGS' 9417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9419ac_compiler_gnu=$ac_cv_c_compiler_gnu 9420 9421 9422 if test "x$CFLAGS_EX" != x ; then 9423 INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" 9424 fi 9425 CFLAGS_EX="$ac_saved_cflags_ex" 9426 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 9427 9428 fi 9429 9430 ;; 9431 ia64) ARCH_LINK=ia64.h endian=little cpu_family=intel ;; 9432 i?86) ARCH_LINK=x86-any.h endian=little cpu_family=intel ;; 9433 m68k*) ARCH_LINK=autoconf_arch.h endian=big ;; 9434 mic) ARCH_LINK=mic.h endian=little 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 9436$as_echo_n "checking special compiler flags... " >&6; } 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MIC" >&5 9438$as_echo "MIC" >&6; } 9439 9440 CPU_BEST_FLAGS="-no-opt-prefetch $CPU_BEST_FLAGS" 9441 9442 ;; 9443 mips|mipseb) ARCH_LINK=mips32.h endian=big ;; 9444 mipsel) ARCH_LINK=mips32.h endian=little ;; 9445 mips64|mips64eb|mipseb64) ARCH_LINK=mips64.h endian=big ;; 9446 mips64el|mipsel64) ARCH_LINK=mips64.h endian=little ;; 9447 mips64*) ARCH_LINK=mips64.h endian=big ;; 9448 mips*) ARCH_LINK=mips32.h endian=big ;; 9449 pdp*) ARCH_LINK=autoconf_arch.h endian=little ;; 9450 powerpc64le) ARCH_LINK=ppc64.h endian=little 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 9452$as_echo_n "checking special compiler flags... " >&6; } 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PPC64le" >&5 9454$as_echo "PPC64le" >&6; } 9455 9456 echo "checking special compiler flags... PowerPC64" 9457 CPU_BEST_FLAGS="" 9458 INLINE_FLAGS="" 9459 ac_saved_cflags_ex="$CFLAGS_EX" 9460 CFLAGS_EX="" 9461 if test 1 -gt 0; then : 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 9463$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 9464fi 9465 ac_ext=c 9466ac_cpp='$CPP $CPPFLAGS' 9467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9469ac_compiler_gnu=$ac_cv_c_compiler_gnu 9470 9471 ac_saved_cflags="$CFLAGS" 9472 CFLAGS="-Werror -finline-functions" 9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9474/* end confdefs.h. */ 9475 9476int 9477main () 9478{ 9479 9480 ; 9481 return 0; 9482} 9483_ACEOF 9484if ac_fn_c_try_compile "$LINENO"; then : 9485 if test "1" -gt 0; then : 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9487$as_echo "yes" >&6; } 9488fi 9489 CFLAGS_EX="$CFLAGS_EX -finline-functions" 9490 9491else 9492 if test 1 -gt 0; then : 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494$as_echo "no" >&6; } 9495fi 9496 if test "1" = 2; then : 9497 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9498fi 9499 9500fi 9501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9502 CFLAGS="$ac_saved_cflags" 9503 ac_ext=c 9504ac_cpp='$CPP $CPPFLAGS' 9505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9507ac_compiler_gnu=$ac_cv_c_compiler_gnu 9508 9509 9510 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-functions" ; fi 9511 CFLAGS_EX="" 9512 if test 1 -gt 0; then : 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-limit=4000" >&5 9514$as_echo_n "checking if $CC supports -finline-limit=4000... " >&6; } 9515fi 9516 ac_ext=c 9517ac_cpp='$CPP $CPPFLAGS' 9518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9520ac_compiler_gnu=$ac_cv_c_compiler_gnu 9521 9522 ac_saved_cflags="$CFLAGS" 9523 CFLAGS="-Werror -finline-limit=4000" 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_compile "$LINENO"; then : 9536 if test "1" -gt 0; then : 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9538$as_echo "yes" >&6; } 9539fi 9540 CFLAGS_EX="$CFLAGS_EX -finline-limit=4000" 9541 9542else 9543 if test 1 -gt 0; then : 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9545$as_echo "no" >&6; } 9546fi 9547 if test "1" = 2; then : 9548 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9549fi 9550 9551fi 9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9553 CFLAGS="$ac_saved_cflags" 9554 ac_ext=c 9555ac_cpp='$CPP $CPPFLAGS' 9556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9558ac_compiler_gnu=$ac_cv_c_compiler_gnu 9559 9560 9561 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-limit=4000" ; fi 9562 CFLAGS_EX="" 9563 if test 1 -gt 0; then : 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 9565$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 9566fi 9567 ac_ext=c 9568ac_cpp='$CPP $CPPFLAGS' 9569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9571ac_compiler_gnu=$ac_cv_c_compiler_gnu 9572 9573 ac_saved_cflags="$CFLAGS" 9574 CFLAGS="-Werror -fno-strict-aliasing" 9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576/* end confdefs.h. */ 9577 9578int 9579main () 9580{ 9581 9582 ; 9583 return 0; 9584} 9585_ACEOF 9586if ac_fn_c_try_compile "$LINENO"; then : 9587 if test "1" -gt 0; then : 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9589$as_echo "yes" >&6; } 9590fi 9591 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 9592 9593else 9594 if test 1 -gt 0; then : 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9596$as_echo "no" >&6; } 9597fi 9598 if test "1" = 2; then : 9599 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9600fi 9601 9602fi 9603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9604 CFLAGS="$ac_saved_cflags" 9605 ac_ext=c 9606ac_cpp='$CPP $CPPFLAGS' 9607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9609ac_compiler_gnu=$ac_cv_c_compiler_gnu 9610 9611 9612 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" ; fi 9613 9614 $CC -P $EXTRA_AS_FLAGS $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $CFLAGS_EXTRA ppc_cpuid.c -o test_cpuid 9615 9616 if test "x$simd" = "xyes" -a "`./test_cpuid PPC_FEATURE_HAS_ALTIVEC`" = "1" -a "`./test_cpuid PPC_FEATURE_HAS_VSX`" = "1" -a "`./test_cpuid PPC_FEATURE2_ARCH_2_07`" = "1" ; then 9617 CFLAGS_EX="" 9618 if test 1 -gt 0; then : 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec" >&5 9620$as_echo_n "checking if $CC supports -maltivec... " >&6; } 9621fi 9622 ac_ext=c 9623ac_cpp='$CPP $CPPFLAGS' 9624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9626ac_compiler_gnu=$ac_cv_c_compiler_gnu 9627 9628 ac_saved_cflags="$CFLAGS" 9629 CFLAGS="-Werror -maltivec" 9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9631/* end confdefs.h. */ 9632 9633int 9634main () 9635{ 9636 9637 ; 9638 return 0; 9639} 9640_ACEOF 9641if ac_fn_c_try_compile "$LINENO"; then : 9642 if test "1" -gt 0; then : 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9644$as_echo "yes" >&6; } 9645fi 9646 CFLAGS_EX="$CFLAGS_EX -maltivec" 9647 9648else 9649 if test 1 -gt 0; then : 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9651$as_echo "no" >&6; } 9652fi 9653 if test "1" = 2; then : 9654 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9655fi 9656 9657fi 9658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9659 CFLAGS="$ac_saved_cflags" 9660 ac_ext=c 9661ac_cpp='$CPP $CPPFLAGS' 9662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9664ac_compiler_gnu=$ac_cv_c_compiler_gnu 9665 9666 9667 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -maltivec" INLINE_FLAGS="$INLINE_FLAGS -maltivec" SIMD_NAME="Altivec" ; fi 9668 CFLAGS_EX="" 9669 if test 1 -gt 0; then : 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mvsx" >&5 9671$as_echo_n "checking if $CC supports -mvsx... " >&6; } 9672fi 9673 ac_ext=c 9674ac_cpp='$CPP $CPPFLAGS' 9675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9677ac_compiler_gnu=$ac_cv_c_compiler_gnu 9678 9679 ac_saved_cflags="$CFLAGS" 9680 CFLAGS="-Werror -mvsx" 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9682/* end confdefs.h. */ 9683 9684int 9685main () 9686{ 9687 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692if ac_fn_c_try_compile "$LINENO"; then : 9693 if test "1" -gt 0; then : 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9695$as_echo "yes" >&6; } 9696fi 9697 CFLAGS_EX="$CFLAGS_EX -mvsx" 9698 9699else 9700 if test 1 -gt 0; then : 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9702$as_echo "no" >&6; } 9703fi 9704 if test "1" = 2; then : 9705 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9706fi 9707 9708fi 9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9710 CFLAGS="$ac_saved_cflags" 9711 ac_ext=c 9712ac_cpp='$CPP $CPPFLAGS' 9713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9715ac_compiler_gnu=$ac_cv_c_compiler_gnu 9716 9717 9718 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mvsx" ; fi 9719 CFLAGS_EX="" 9720 if test 1 -gt 0; then : 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mpower8-vector" >&5 9722$as_echo_n "checking if $CC supports -mpower8-vector... " >&6; } 9723fi 9724 ac_ext=c 9725ac_cpp='$CPP $CPPFLAGS' 9726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9728ac_compiler_gnu=$ac_cv_c_compiler_gnu 9729 9730 ac_saved_cflags="$CFLAGS" 9731 CFLAGS="-Werror -mpower8-vector" 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734 9735int 9736main () 9737{ 9738 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_compile "$LINENO"; then : 9744 if test "1" -gt 0; then : 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9746$as_echo "yes" >&6; } 9747fi 9748 CFLAGS_EX="$CFLAGS_EX -mpower8-vector" 9749 9750else 9751 if test 1 -gt 0; then : 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9753$as_echo "no" >&6; } 9754fi 9755 if test "1" = 2; then : 9756 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9757fi 9758 9759fi 9760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9761 CFLAGS="$ac_saved_cflags" 9762 ac_ext=c 9763ac_cpp='$CPP $CPPFLAGS' 9764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9766ac_compiler_gnu=$ac_cv_c_compiler_gnu 9767 9768 9769 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mpower8-vector" ; fi 9770 fi 9771 9772 rm test_cpuid 9773 9774 CFLAGS_EX="$ac_saved_cflags_ex" 9775 9776 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 9777 9778 9779 ;; 9780 powerpc64*) ARCH_LINK=ppc64.h endian=big 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 9782$as_echo_n "checking special compiler flags... " >&6; } 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PPC64" >&5 9784$as_echo "PPC64" >&6; } 9785 9786 echo "checking special compiler flags... PowerPC64" 9787 CPU_BEST_FLAGS="" 9788 INLINE_FLAGS="" 9789 ac_saved_cflags_ex="$CFLAGS_EX" 9790 CFLAGS_EX="" 9791 if test 1 -gt 0; then : 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 9793$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 9794fi 9795 ac_ext=c 9796ac_cpp='$CPP $CPPFLAGS' 9797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9799ac_compiler_gnu=$ac_cv_c_compiler_gnu 9800 9801 ac_saved_cflags="$CFLAGS" 9802 CFLAGS="-Werror -finline-functions" 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804/* end confdefs.h. */ 9805 9806int 9807main () 9808{ 9809 9810 ; 9811 return 0; 9812} 9813_ACEOF 9814if ac_fn_c_try_compile "$LINENO"; then : 9815 if test "1" -gt 0; then : 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9817$as_echo "yes" >&6; } 9818fi 9819 CFLAGS_EX="$CFLAGS_EX -finline-functions" 9820 9821else 9822 if test 1 -gt 0; then : 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9824$as_echo "no" >&6; } 9825fi 9826 if test "1" = 2; then : 9827 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9828fi 9829 9830fi 9831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9832 CFLAGS="$ac_saved_cflags" 9833 ac_ext=c 9834ac_cpp='$CPP $CPPFLAGS' 9835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9837ac_compiler_gnu=$ac_cv_c_compiler_gnu 9838 9839 9840 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-functions" ; fi 9841 CFLAGS_EX="" 9842 if test 1 -gt 0; then : 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-limit=4000" >&5 9844$as_echo_n "checking if $CC supports -finline-limit=4000... " >&6; } 9845fi 9846 ac_ext=c 9847ac_cpp='$CPP $CPPFLAGS' 9848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9850ac_compiler_gnu=$ac_cv_c_compiler_gnu 9851 9852 ac_saved_cflags="$CFLAGS" 9853 CFLAGS="-Werror -finline-limit=4000" 9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855/* end confdefs.h. */ 9856 9857int 9858main () 9859{ 9860 9861 ; 9862 return 0; 9863} 9864_ACEOF 9865if ac_fn_c_try_compile "$LINENO"; then : 9866 if test "1" -gt 0; then : 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9868$as_echo "yes" >&6; } 9869fi 9870 CFLAGS_EX="$CFLAGS_EX -finline-limit=4000" 9871 9872else 9873 if test 1 -gt 0; then : 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9875$as_echo "no" >&6; } 9876fi 9877 if test "1" = 2; then : 9878 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9879fi 9880 9881fi 9882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9883 CFLAGS="$ac_saved_cflags" 9884 ac_ext=c 9885ac_cpp='$CPP $CPPFLAGS' 9886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9888ac_compiler_gnu=$ac_cv_c_compiler_gnu 9889 9890 9891 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-limit=4000" ; fi 9892 CFLAGS_EX="" 9893 if test 1 -gt 0; then : 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 9895$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 9896fi 9897 ac_ext=c 9898ac_cpp='$CPP $CPPFLAGS' 9899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9901ac_compiler_gnu=$ac_cv_c_compiler_gnu 9902 9903 ac_saved_cflags="$CFLAGS" 9904 CFLAGS="-Werror -fno-strict-aliasing" 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907 9908int 9909main () 9910{ 9911 9912 ; 9913 return 0; 9914} 9915_ACEOF 9916if ac_fn_c_try_compile "$LINENO"; then : 9917 if test "1" -gt 0; then : 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9919$as_echo "yes" >&6; } 9920fi 9921 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 9922 9923else 9924 if test 1 -gt 0; then : 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9926$as_echo "no" >&6; } 9927fi 9928 if test "1" = 2; then : 9929 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9930fi 9931 9932fi 9933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9934 CFLAGS="$ac_saved_cflags" 9935 ac_ext=c 9936ac_cpp='$CPP $CPPFLAGS' 9937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9939ac_compiler_gnu=$ac_cv_c_compiler_gnu 9940 9941 9942 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" ; fi 9943 9944 $CC -P $EXTRA_AS_FLAGS $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $CFLAGS_EXTRA ppc_cpuid.c -o test_cpuid 9945 9946 if test "x$simd" = "xyes" -a "`./test_cpuid PPC_FEATURE_HAS_ALTIVEC`" = "1" -a "`./test_cpuid PPC_FEATURE_HAS_VSX`" = "1" -a "`./test_cpuid PPC_FEATURE2_ARCH_2_07`" = "1" ; then 9947 CFLAGS_EX="" 9948 if test 1 -gt 0; then : 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec" >&5 9950$as_echo_n "checking if $CC supports -maltivec... " >&6; } 9951fi 9952 ac_ext=c 9953ac_cpp='$CPP $CPPFLAGS' 9954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9956ac_compiler_gnu=$ac_cv_c_compiler_gnu 9957 9958 ac_saved_cflags="$CFLAGS" 9959 CFLAGS="-Werror -maltivec" 9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9961/* end confdefs.h. */ 9962 9963int 9964main () 9965{ 9966 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971if ac_fn_c_try_compile "$LINENO"; then : 9972 if test "1" -gt 0; then : 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9974$as_echo "yes" >&6; } 9975fi 9976 CFLAGS_EX="$CFLAGS_EX -maltivec" 9977 9978else 9979 if test 1 -gt 0; then : 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9981$as_echo "no" >&6; } 9982fi 9983 if test "1" = 2; then : 9984 as_fn_error $? "Not supported by compiler" "$LINENO" 5 9985fi 9986 9987fi 9988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9989 CFLAGS="$ac_saved_cflags" 9990 ac_ext=c 9991ac_cpp='$CPP $CPPFLAGS' 9992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9994ac_compiler_gnu=$ac_cv_c_compiler_gnu 9995 9996 9997 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -maltivec" INLINE_FLAGS="$INLINE_FLAGS -maltivec" SIMD_NAME="Altivec" ; fi 9998 CFLAGS_EX="" 9999 if test 1 -gt 0; then : 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mvsx" >&5 10001$as_echo_n "checking if $CC supports -mvsx... " >&6; } 10002fi 10003 ac_ext=c 10004ac_cpp='$CPP $CPPFLAGS' 10005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10007ac_compiler_gnu=$ac_cv_c_compiler_gnu 10008 10009 ac_saved_cflags="$CFLAGS" 10010 CFLAGS="-Werror -mvsx" 10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10012/* end confdefs.h. */ 10013 10014int 10015main () 10016{ 10017 10018 ; 10019 return 0; 10020} 10021_ACEOF 10022if ac_fn_c_try_compile "$LINENO"; then : 10023 if test "1" -gt 0; then : 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10025$as_echo "yes" >&6; } 10026fi 10027 CFLAGS_EX="$CFLAGS_EX -mvsx" 10028 10029else 10030 if test 1 -gt 0; then : 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10032$as_echo "no" >&6; } 10033fi 10034 if test "1" = 2; then : 10035 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10036fi 10037 10038fi 10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10040 CFLAGS="$ac_saved_cflags" 10041 ac_ext=c 10042ac_cpp='$CPP $CPPFLAGS' 10043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10045ac_compiler_gnu=$ac_cv_c_compiler_gnu 10046 10047 10048 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mvsx" ; fi 10049 CFLAGS_EX="" 10050 if test 1 -gt 0; then : 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mpower8-vector" >&5 10052$as_echo_n "checking if $CC supports -mpower8-vector... " >&6; } 10053fi 10054 ac_ext=c 10055ac_cpp='$CPP $CPPFLAGS' 10056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10058ac_compiler_gnu=$ac_cv_c_compiler_gnu 10059 10060 ac_saved_cflags="$CFLAGS" 10061 CFLAGS="-Werror -mpower8-vector" 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063/* end confdefs.h. */ 10064 10065int 10066main () 10067{ 10068 10069 ; 10070 return 0; 10071} 10072_ACEOF 10073if ac_fn_c_try_compile "$LINENO"; then : 10074 if test "1" -gt 0; then : 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10076$as_echo "yes" >&6; } 10077fi 10078 CFLAGS_EX="$CFLAGS_EX -mpower8-vector" 10079 10080else 10081 if test 1 -gt 0; then : 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10083$as_echo "no" >&6; } 10084fi 10085 if test "1" = 2; then : 10086 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10087fi 10088 10089fi 10090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10091 CFLAGS="$ac_saved_cflags" 10092 ac_ext=c 10093ac_cpp='$CPP $CPPFLAGS' 10094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10096ac_compiler_gnu=$ac_cv_c_compiler_gnu 10097 10098 10099 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mpower8-vector" ; fi 10100 fi 10101 10102 rm test_cpuid 10103 10104 CFLAGS_EX="$ac_saved_cflags_ex" 10105 10106 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 10107 10108 10109 ;; 10110 powerpcle) ARCH_LINK=ppc32.h endian=little 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 10112$as_echo_n "checking special compiler flags... " >&6; } 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PPC32le" >&5 10114$as_echo "PPC32le" >&6; } 10115 10116 echo "checking special compiler flags... PowerPC32" 10117 CPU_BEST_FLAGS="" 10118 INLINE_FLAGS="" 10119 ac_saved_cflags_ex="$CFLAGS_EX" 10120 CFLAGS_EX="" 10121 if test 1 -gt 0; then : 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 10123$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 10124fi 10125 ac_ext=c 10126ac_cpp='$CPP $CPPFLAGS' 10127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10129ac_compiler_gnu=$ac_cv_c_compiler_gnu 10130 10131 ac_saved_cflags="$CFLAGS" 10132 CFLAGS="-Werror -finline-functions" 10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135 10136int 10137main () 10138{ 10139 10140 ; 10141 return 0; 10142} 10143_ACEOF 10144if ac_fn_c_try_compile "$LINENO"; then : 10145 if test "1" -gt 0; then : 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10147$as_echo "yes" >&6; } 10148fi 10149 CFLAGS_EX="$CFLAGS_EX -finline-functions" 10150 10151else 10152 if test 1 -gt 0; then : 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10154$as_echo "no" >&6; } 10155fi 10156 if test "1" = 2; then : 10157 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10158fi 10159 10160fi 10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10162 CFLAGS="$ac_saved_cflags" 10163 ac_ext=c 10164ac_cpp='$CPP $CPPFLAGS' 10165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10167ac_compiler_gnu=$ac_cv_c_compiler_gnu 10168 10169 10170 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-functions" ; fi 10171 CFLAGS_EX="" 10172 if test 1 -gt 0; then : 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-limit=4000" >&5 10174$as_echo_n "checking if $CC supports -finline-limit=4000... " >&6; } 10175fi 10176 ac_ext=c 10177ac_cpp='$CPP $CPPFLAGS' 10178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10180ac_compiler_gnu=$ac_cv_c_compiler_gnu 10181 10182 ac_saved_cflags="$CFLAGS" 10183 CFLAGS="-Werror -finline-limit=4000" 10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186 10187int 10188main () 10189{ 10190 10191 ; 10192 return 0; 10193} 10194_ACEOF 10195if ac_fn_c_try_compile "$LINENO"; then : 10196 if test "1" -gt 0; then : 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10198$as_echo "yes" >&6; } 10199fi 10200 CFLAGS_EX="$CFLAGS_EX -finline-limit=4000" 10201 10202else 10203 if test 1 -gt 0; then : 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10205$as_echo "no" >&6; } 10206fi 10207 if test "1" = 2; then : 10208 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10209fi 10210 10211fi 10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10213 CFLAGS="$ac_saved_cflags" 10214 ac_ext=c 10215ac_cpp='$CPP $CPPFLAGS' 10216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10218ac_compiler_gnu=$ac_cv_c_compiler_gnu 10219 10220 10221 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-limit=4000" ; fi 10222 CFLAGS_EX="" 10223 if test 1 -gt 0; then : 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 10225$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 10226fi 10227 ac_ext=c 10228ac_cpp='$CPP $CPPFLAGS' 10229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10231ac_compiler_gnu=$ac_cv_c_compiler_gnu 10232 10233 ac_saved_cflags="$CFLAGS" 10234 CFLAGS="-Werror -fno-strict-aliasing" 10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10236/* end confdefs.h. */ 10237 10238int 10239main () 10240{ 10241 10242 ; 10243 return 0; 10244} 10245_ACEOF 10246if ac_fn_c_try_compile "$LINENO"; then : 10247 if test "1" -gt 0; then : 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10249$as_echo "yes" >&6; } 10250fi 10251 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 10252 10253else 10254 if test 1 -gt 0; then : 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10256$as_echo "no" >&6; } 10257fi 10258 if test "1" = 2; then : 10259 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10260fi 10261 10262fi 10263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10264 CFLAGS="$ac_saved_cflags" 10265 ac_ext=c 10266ac_cpp='$CPP $CPPFLAGS' 10267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10269ac_compiler_gnu=$ac_cv_c_compiler_gnu 10270 10271 10272 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" ; fi 10273 10274 $CC -P $EXTRA_AS_FLAGS $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $CFLAGS_EXTRA ppc_cpuid.c -o test_cpuid 10275 10276 if test "x$simd" = "xyes" && test "`./test_cpuid PPC_FEATURE_HAS_ALTIVEC`" = "1" -a "`./test_cpuid PPC_FEATURE_HAS_VSX`" = "1" -a "`./test_cpuid PPC_FEATURE2_ARCH_2_07`" = "1" ; then 10277 CFLAGS_EX="" 10278 if test 1 -gt 0; then : 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec" >&5 10280$as_echo_n "checking if $CC supports -maltivec... " >&6; } 10281fi 10282 ac_ext=c 10283ac_cpp='$CPP $CPPFLAGS' 10284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10286ac_compiler_gnu=$ac_cv_c_compiler_gnu 10287 10288 ac_saved_cflags="$CFLAGS" 10289 CFLAGS="-Werror -maltivec" 10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10291/* end confdefs.h. */ 10292 10293int 10294main () 10295{ 10296 10297 ; 10298 return 0; 10299} 10300_ACEOF 10301if ac_fn_c_try_compile "$LINENO"; then : 10302 if test "1" -gt 0; then : 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10304$as_echo "yes" >&6; } 10305fi 10306 CFLAGS_EX="$CFLAGS_EX -maltivec" 10307 10308else 10309 if test 1 -gt 0; then : 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10311$as_echo "no" >&6; } 10312fi 10313 if test "1" = 2; then : 10314 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10315fi 10316 10317fi 10318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10319 CFLAGS="$ac_saved_cflags" 10320 ac_ext=c 10321ac_cpp='$CPP $CPPFLAGS' 10322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10324ac_compiler_gnu=$ac_cv_c_compiler_gnu 10325 10326 10327 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -maltivec" INLINE_FLAGS="$INLINE_FLAGS -maltivec" SIMD_NAME="Altivec" ; fi 10328 CFLAGS_EX="" 10329 if test 1 -gt 0; then : 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mvsx" >&5 10331$as_echo_n "checking if $CC supports -mvsx... " >&6; } 10332fi 10333 ac_ext=c 10334ac_cpp='$CPP $CPPFLAGS' 10335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10337ac_compiler_gnu=$ac_cv_c_compiler_gnu 10338 10339 ac_saved_cflags="$CFLAGS" 10340 CFLAGS="-Werror -mvsx" 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343 10344int 10345main () 10346{ 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352if ac_fn_c_try_compile "$LINENO"; then : 10353 if test "1" -gt 0; then : 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10355$as_echo "yes" >&6; } 10356fi 10357 CFLAGS_EX="$CFLAGS_EX -mvsx" 10358 10359else 10360 if test 1 -gt 0; then : 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10362$as_echo "no" >&6; } 10363fi 10364 if test "1" = 2; then : 10365 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10366fi 10367 10368fi 10369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10370 CFLAGS="$ac_saved_cflags" 10371 ac_ext=c 10372ac_cpp='$CPP $CPPFLAGS' 10373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10375ac_compiler_gnu=$ac_cv_c_compiler_gnu 10376 10377 10378 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mvsx" ; fi 10379 CFLAGS_EX="" 10380 if test 1 -gt 0; then : 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mpower8-vector" >&5 10382$as_echo_n "checking if $CC supports -mpower8-vector... " >&6; } 10383fi 10384 ac_ext=c 10385ac_cpp='$CPP $CPPFLAGS' 10386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10388ac_compiler_gnu=$ac_cv_c_compiler_gnu 10389 10390 ac_saved_cflags="$CFLAGS" 10391 CFLAGS="-Werror -mpower8-vector" 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394 10395int 10396main () 10397{ 10398 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403if ac_fn_c_try_compile "$LINENO"; then : 10404 if test "1" -gt 0; then : 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10406$as_echo "yes" >&6; } 10407fi 10408 CFLAGS_EX="$CFLAGS_EX -mpower8-vector" 10409 10410else 10411 if test 1 -gt 0; then : 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10413$as_echo "no" >&6; } 10414fi 10415 if test "1" = 2; then : 10416 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10417fi 10418 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10421 CFLAGS="$ac_saved_cflags" 10422 ac_ext=c 10423ac_cpp='$CPP $CPPFLAGS' 10424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10426ac_compiler_gnu=$ac_cv_c_compiler_gnu 10427 10428 10429 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mpower8-vector" ; fi 10430 fi 10431 10432 rm test_cpuid 10433 10434 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 10435 10436 10437 ;; 10438 powerpc*) ARCH_LINK=ppc32.h endian=big 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 10440$as_echo_n "checking special compiler flags... " >&6; } 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PPC32" >&5 10442$as_echo "PPC32" >&6; } 10443 10444 echo "checking special compiler flags... PowerPC32" 10445 CPU_BEST_FLAGS="" 10446 INLINE_FLAGS="" 10447 ac_saved_cflags_ex="$CFLAGS_EX" 10448 CFLAGS_EX="" 10449 if test 1 -gt 0; then : 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5 10451$as_echo_n "checking if $CC supports -finline-functions... " >&6; } 10452fi 10453 ac_ext=c 10454ac_cpp='$CPP $CPPFLAGS' 10455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10457ac_compiler_gnu=$ac_cv_c_compiler_gnu 10458 10459 ac_saved_cflags="$CFLAGS" 10460 CFLAGS="-Werror -finline-functions" 10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10462/* end confdefs.h. */ 10463 10464int 10465main () 10466{ 10467 10468 ; 10469 return 0; 10470} 10471_ACEOF 10472if ac_fn_c_try_compile "$LINENO"; then : 10473 if test "1" -gt 0; then : 10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10475$as_echo "yes" >&6; } 10476fi 10477 CFLAGS_EX="$CFLAGS_EX -finline-functions" 10478 10479else 10480 if test 1 -gt 0; then : 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10482$as_echo "no" >&6; } 10483fi 10484 if test "1" = 2; then : 10485 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10486fi 10487 10488fi 10489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10490 CFLAGS="$ac_saved_cflags" 10491 ac_ext=c 10492ac_cpp='$CPP $CPPFLAGS' 10493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10495ac_compiler_gnu=$ac_cv_c_compiler_gnu 10496 10497 10498 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-functions" ; fi 10499 CFLAGS_EX="" 10500 if test 1 -gt 0; then : 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-limit=4000" >&5 10502$as_echo_n "checking if $CC supports -finline-limit=4000... " >&6; } 10503fi 10504 ac_ext=c 10505ac_cpp='$CPP $CPPFLAGS' 10506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10508ac_compiler_gnu=$ac_cv_c_compiler_gnu 10509 10510 ac_saved_cflags="$CFLAGS" 10511 CFLAGS="-Werror -finline-limit=4000" 10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513/* end confdefs.h. */ 10514 10515int 10516main () 10517{ 10518 10519 ; 10520 return 0; 10521} 10522_ACEOF 10523if ac_fn_c_try_compile "$LINENO"; then : 10524 if test "1" -gt 0; then : 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10526$as_echo "yes" >&6; } 10527fi 10528 CFLAGS_EX="$CFLAGS_EX -finline-limit=4000" 10529 10530else 10531 if test 1 -gt 0; then : 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10533$as_echo "no" >&6; } 10534fi 10535 if test "1" = 2; then : 10536 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10537fi 10538 10539fi 10540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10541 CFLAGS="$ac_saved_cflags" 10542 ac_ext=c 10543ac_cpp='$CPP $CPPFLAGS' 10544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10546ac_compiler_gnu=$ac_cv_c_compiler_gnu 10547 10548 10549 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -finline-limit=4000" ; fi 10550 CFLAGS_EX="" 10551 if test 1 -gt 0; then : 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 10553$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } 10554fi 10555 ac_ext=c 10556ac_cpp='$CPP $CPPFLAGS' 10557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10559ac_compiler_gnu=$ac_cv_c_compiler_gnu 10560 10561 ac_saved_cflags="$CFLAGS" 10562 CFLAGS="-Werror -fno-strict-aliasing" 10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564/* end confdefs.h. */ 10565 10566int 10567main () 10568{ 10569 10570 ; 10571 return 0; 10572} 10573_ACEOF 10574if ac_fn_c_try_compile "$LINENO"; then : 10575 if test "1" -gt 0; then : 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10577$as_echo "yes" >&6; } 10578fi 10579 CFLAGS_EX="$CFLAGS_EX -fno-strict-aliasing" 10580 10581else 10582 if test 1 -gt 0; then : 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10584$as_echo "no" >&6; } 10585fi 10586 if test "1" = 2; then : 10587 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10588fi 10589 10590fi 10591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10592 CFLAGS="$ac_saved_cflags" 10593 ac_ext=c 10594ac_cpp='$CPP $CPPFLAGS' 10595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10597ac_compiler_gnu=$ac_cv_c_compiler_gnu 10598 10599 10600 if test "x$CFLAGS_EX" != x ; then INLINE_FLAGS="$INLINE_FLAGS -fno-strict-aliasing" ; fi 10601 10602 $CC -P $EXTRA_AS_FLAGS $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $CFLAGS_EXTRA ppc_cpuid.c -o test_cpuid 10603 10604 if test "x$simd" = "xyes" && test "`./test_cpuid PPC_FEATURE_HAS_ALTIVEC`" = "1" -a "`./test_cpuid PPC_FEATURE_HAS_VSX`" = "1" -a "`./test_cpuid PPC_FEATURE2_ARCH_2_07`" = "1" ; then 10605 CFLAGS_EX="" 10606 if test 1 -gt 0; then : 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -maltivec" >&5 10608$as_echo_n "checking if $CC supports -maltivec... " >&6; } 10609fi 10610 ac_ext=c 10611ac_cpp='$CPP $CPPFLAGS' 10612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10614ac_compiler_gnu=$ac_cv_c_compiler_gnu 10615 10616 ac_saved_cflags="$CFLAGS" 10617 CFLAGS="-Werror -maltivec" 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620 10621int 10622main () 10623{ 10624 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_compile "$LINENO"; then : 10630 if test "1" -gt 0; then : 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10632$as_echo "yes" >&6; } 10633fi 10634 CFLAGS_EX="$CFLAGS_EX -maltivec" 10635 10636else 10637 if test 1 -gt 0; then : 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10639$as_echo "no" >&6; } 10640fi 10641 if test "1" = 2; then : 10642 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10643fi 10644 10645fi 10646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10647 CFLAGS="$ac_saved_cflags" 10648 ac_ext=c 10649ac_cpp='$CPP $CPPFLAGS' 10650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10652ac_compiler_gnu=$ac_cv_c_compiler_gnu 10653 10654 10655 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -maltivec" INLINE_FLAGS="$INLINE_FLAGS -maltivec" SIMD_NAME="Altivec" ; fi 10656 CFLAGS_EX="" 10657 if test 1 -gt 0; then : 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mvsx" >&5 10659$as_echo_n "checking if $CC supports -mvsx... " >&6; } 10660fi 10661 ac_ext=c 10662ac_cpp='$CPP $CPPFLAGS' 10663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10665ac_compiler_gnu=$ac_cv_c_compiler_gnu 10666 10667 ac_saved_cflags="$CFLAGS" 10668 CFLAGS="-Werror -mvsx" 10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10670/* end confdefs.h. */ 10671 10672int 10673main () 10674{ 10675 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680if ac_fn_c_try_compile "$LINENO"; then : 10681 if test "1" -gt 0; then : 10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10683$as_echo "yes" >&6; } 10684fi 10685 CFLAGS_EX="$CFLAGS_EX -mvsx" 10686 10687else 10688 if test 1 -gt 0; then : 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10690$as_echo "no" >&6; } 10691fi 10692 if test "1" = 2; then : 10693 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10694fi 10695 10696fi 10697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10698 CFLAGS="$ac_saved_cflags" 10699 ac_ext=c 10700ac_cpp='$CPP $CPPFLAGS' 10701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10703ac_compiler_gnu=$ac_cv_c_compiler_gnu 10704 10705 10706 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mvsx" ; fi 10707 CFLAGS_EX="" 10708 if test 1 -gt 0; then : 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -mpower8-vector" >&5 10710$as_echo_n "checking if $CC supports -mpower8-vector... " >&6; } 10711fi 10712 ac_ext=c 10713ac_cpp='$CPP $CPPFLAGS' 10714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10716ac_compiler_gnu=$ac_cv_c_compiler_gnu 10717 10718 ac_saved_cflags="$CFLAGS" 10719 CFLAGS="-Werror -mpower8-vector" 10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10721/* end confdefs.h. */ 10722 10723int 10724main () 10725{ 10726 10727 ; 10728 return 0; 10729} 10730_ACEOF 10731if ac_fn_c_try_compile "$LINENO"; then : 10732 if test "1" -gt 0; then : 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10734$as_echo "yes" >&6; } 10735fi 10736 CFLAGS_EX="$CFLAGS_EX -mpower8-vector" 10737 10738else 10739 if test 1 -gt 0; then : 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10741$as_echo "no" >&6; } 10742fi 10743 if test "1" = 2; then : 10744 as_fn_error $? "Not supported by compiler" "$LINENO" 5 10745fi 10746 10747fi 10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10749 CFLAGS="$ac_saved_cflags" 10750 ac_ext=c 10751ac_cpp='$CPP $CPPFLAGS' 10752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10754ac_compiler_gnu=$ac_cv_c_compiler_gnu 10755 10756 10757 if test "x$CFLAGS_EX" != x ; then CPU_BEST_FLAGS="$CPU_BEST_FLAGS -mpower8-vector" ; fi 10758 fi 10759 10760 rm test_cpuid 10761 10762 OPT_INLINE_FLAGS="${INLINE_FLAGS}" 10763 10764 10765 ;; 10766 sparc64) ARCH_LINK=sparc64.h endian=big ;; 10767 sparc*) ARCH_LINK=sparc32.h endian=big ;; 10768 vax*) ARCH_LINK=vax.h endian=little ;; 10769 x86_64) ARCH_LINK=x86-64.h endian=little cpu_family=intel ;; 10770 *) 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Uncertain support for ${host}, please report!" >&5 10772$as_echo "$as_me: WARNING: Uncertain support for ${host}, please report!" >&2;} 10773 ARCH_LINK=autoconf_arch.h 10774 ;; 10775esac 10776 10777 10778CC_BACKUP=$CC 10779CFLAGS_BACKUP=$CFLAGS 10780 10781EXTRA_AS_FLAGS= 10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ASFLAGS" >&5 10783$as_echo_n "checking for extra ASFLAGS... " >&6; } 10784CC="$CC_BACKUP" 10785CFLAGS="$CFLAGS -O0" 10786if echo "int long_ident;" > conftest.c && ${CC} -c conftest.c && strings - conftest.${OBJEXT} | ${GREP} _long_ident > conftest.out; then : 10787 10788 for i in -DUNDERSCORES; do 10789 jtr_list_add_dupe=0 10790 for j in $EXTRA_AS_FLAGS; do 10791 if test "x$i" = "x$j"; then 10792 jtr_list_add_dupe=1 10793 break 10794 fi 10795 done 10796 if test $jtr_list_add_dupe = 0; then 10797 EXTRA_AS_FLAGS="$EXTRA_AS_FLAGS $i" 10798 jtr_list_add_result="$jtr_list_add_result $i" 10799 fi 10800 done 10801 10802fi 10803 10804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806extern void exit(int); 10807 int main() { 10808 #if defined(__APPLE__) && defined(__MACH__) 10809 exit(0); 10810 #else 10811 BORK! 10812 #endif 10813 } 10814 10815_ACEOF 10816if ac_fn_c_try_link "$LINENO"; then : 10817 10818 for i in -DBSD -DALIGN_LOG; do 10819 jtr_list_add_dupe=0 10820 for j in $EXTRA_AS_FLAGS; do 10821 if test "x$i" = "x$j"; then 10822 jtr_list_add_dupe=1 10823 break 10824 fi 10825 done 10826 if test $jtr_list_add_dupe = 0; then 10827 EXTRA_AS_FLAGS="$EXTRA_AS_FLAGS $i" 10828 jtr_list_add_result="$jtr_list_add_result $i" 10829 fi 10830 done 10831 10832fi 10833rm -f core conftest.err conftest.$ac_objext \ 10834 conftest$ac_exeext conftest.$ac_ext 10835 10836if test "x$EXTRA_AS_FLAGS" = x; then : 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: None needed" >&5 10838$as_echo "None needed" >&6; } 10839else 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${EXTRA_AS_FLAGS}" >&5 10841$as_echo "${EXTRA_AS_FLAGS}" >&6; } 10842fi 10843 10844if test "x$cpu_family" = xintel -a "x$ax_intel_x32" != xno; then : 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X32 ABI" >&5 10846$as_echo_n "checking for X32 ABI... " >&6; } 10847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10848/* end confdefs.h. */ 10849extern void exit(int); 10850 int main() { 10851 #if defined(__x86_64__) && defined(__ILP32__) 10852 exit(0);} 10853 #else 10854 BORK! 10855 #endif 10856 10857 10858 10859_ACEOF 10860if ac_fn_c_try_link "$LINENO"; then : 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10862$as_echo "yes" >&6; } 10863 ax_intel_x32=yes 10864 10865else 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10867$as_echo "no" >&6; } 10868 10869fi 10870rm -f core conftest.err conftest.$ac_objext \ 10871 conftest$ac_exeext conftest.$ac_ext 10872fi 10873 10874CC="$CC_BACKUP" 10875CFLAGS="$CFLAGS_BACKUP" 10876 10877if test "x$cpu_family" = xintel; then : 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking special compiler flags" >&5 10879$as_echo_n "checking special compiler flags... " >&6; } 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel x86" >&5 10881$as_echo "Intel x86" >&6; } 10882 10883 10884CC_BACKUP=$CC 10885CFLAGS_BACKUP=$CFLAGS 10886 10887 10888CFLAGS="$CFLAGS $SIMD_FLAGS -O0" 10889 10890 case $host_os in #( 10891 darwin*) : 10892 CC="$CC_BACKUP -mavx" 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS X 'as' needs -q option" >&5 10894$as_echo_n "checking whether OS X 'as' needs -q option... " >&6; } 10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896/* end confdefs.h. */ 10897 10898 #include <immintrin.h> 10899 #include <stdio.h> 10900 extern void exit(int); 10901 int main(){__m256d t;*((long long*)&t)=1;t=_mm256_movedup_pd(t);if((*(long long*)&t)==88)printf(".");exit(0);} 10902 10903 10904_ACEOF 10905if ac_fn_c_try_link "$LINENO"; then : 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10907$as_echo "no" >&6; } 10908 10909else 10910 OSX_AS_CLANG="-Wa,-q" 10911 CC="$CC_BACKUP -mavx $OSX_AS_CLANG" 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914 10915 #include <immintrin.h> 10916 #include <stdio.h> 10917 extern void exit(int); 10918 int main(){__m256d t;*((long long*)&t)=1;t=_mm256_movedup_pd(t);if((*(long long*)&t)==88)printf(".");exit(0);} 10919 10920 10921_ACEOF 10922if ac_fn_c_try_link "$LINENO"; then : 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10924$as_echo "yes" >&6; } 10925 10926else 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10928$as_echo "no" >&6; } 10929 10930fi 10931rm -f core conftest.err conftest.$ac_objext \ 10932 conftest$ac_exeext conftest.$ac_ext 10933 10934fi 10935rm -f core conftest.err conftest.$ac_objext \ 10936 conftest$ac_exeext conftest.$ac_ext 10937 if test x$OSX_AS_CLANG != x; then : 10938 CC_BACKUP="$CC_BACKUP $OSX_AS_CLANG" 10939 AS="$AS $OSX_AS_CLANG" 10940 10941fi 10942 CC="$CC_BACKUP" 10943 ;; #( 10944 *) : 10945 ;; 10946esac 10947 10948if test "x$simd" != xno; then 10949 if test "x$enable_native_tests" != xno && test "x$simd" = xyes; then 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing build host's native CPU features" >&5 10951$as_echo "$as_me: Testing build host's native CPU features" >&6;} 10952 CPU_NOTFOUND=0 10953 CC="$CC_BACKUP -mmmx" 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX" >&5 10955$as_echo_n "checking for MMX... " >&6; } 10956 if test "$cross_compiling" = yes; then : 10957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10959as_fn_error $? "cannot run test program while cross compiling 10960See \`config.log' for more details" "$LINENO" 5; } 10961else 10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10963/* end confdefs.h. */ 10964 10965 #include <mmintrin.h> 10966 #include <stdio.h> 10967 extern void exit(int); 10968 int main(){__m64 t;*((long long*)&t)=1;t=_mm_set1_pi32(7);if((*(unsigned*)&t)==88)printf(".");exit(0);} 10969 10970 10971_ACEOF 10972if ac_fn_c_try_run "$LINENO"; then : 10973 CPU_BEST_FLAGS="-mmmx" 10974 SIMD_NAME="MMX" 10975 if test y$ARCH_LINK = yx86-any.h; then : 10976 ARCH_LINK=x86-mmx.h 10977fi 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10979$as_echo "yes" >&6; } 10980 10981else 10982 CPU_NOTFOUND="1" 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10984$as_echo "no" >&6; } 10985 10986fi 10987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10988 conftest.$ac_objext conftest.beam conftest.$ac_ext 10989fi 10990 10991 10992 if test "x$CPU_NOTFOUND" = x0; then : 10993 10994 CC="$CC_BACKUP -msse2" 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2" >&5 10996$as_echo_n "checking for SSE2... " >&6; } 10997 if test "$cross_compiling" = yes; then : 10998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11000as_fn_error $? "cannot run test program while cross compiling 11001See \`config.log' for more details" "$LINENO" 5; } 11002else 11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005 11006 #include <emmintrin.h> 11007 #include <stdio.h> 11008 extern void exit(int); 11009 int main(){__m128i t;*((long long*)&t)=1;t=_mm_slli_si128(t,7);if((*(unsigned*)&t)==88)printf(".");exit(0);} 11010 11011 11012_ACEOF 11013if ac_fn_c_try_run "$LINENO"; then : 11014 CPU_BEST_FLAGS="-msse2" 11015 SIMD_NAME="SSE2" 11016 if test y$ARCH_LINK = yx86-mmx.h; then : 11017 ARCH_LINK=x86-sse.h 11018fi 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11020$as_echo "yes" >&6; } 11021 11022else 11023 CPU_NOTFOUND="1" 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11025$as_echo "no" >&6; } 11026 11027fi 11028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11029 conftest.$ac_objext conftest.beam conftest.$ac_ext 11030fi 11031 11032 11033fi 11034 11035 if test "x$CPU_NOTFOUND" = x0; then : 11036 11037 CC="$CC_BACKUP" 11038 if test $host_cpu = "x86_64"; then 11039 CPUID_ASM="x86-64.S" 11040 CPUID_FILE="x86-64.h" 11041 else 11042 CPUID_ASM="x86.S" 11043 CPUID_FILE="x86-sse.h" 11044 fi 11045 11046 CFLAGS="$CFLAGS_BACKUP -mssse3 -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11047 11048 ln -fs $CPUID_FILE arch.h 11049 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3" >&5 11051$as_echo_n "checking for SSSE3... " >&6; } 11052 if test "$cross_compiling" = yes; then : 11053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11055as_fn_error $? "cannot run test program while cross compiling 11056See \`config.log' for more details" "$LINENO" 5; } 11057else 11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060extern int CPU_detect(void); extern char CPU_req_name[]; 11061 unsigned int nt_buffer8x[4], output8x[4]; 11062 int main(int argc, char **argv) { return !CPU_detect(); } 11063 11064_ACEOF 11065if ac_fn_c_try_run "$LINENO"; then : 11066 CPU_BEST_FLAGS="-mssse3" 11067 SIMD_NAME="SSSE3" 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11069$as_echo "yes" >&6; } 11070 11071else 11072 CPU_NOTFOUND="1" 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11074$as_echo "no" >&6; } 11075 11076fi 11077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11078 conftest.$ac_objext conftest.beam conftest.$ac_ext 11079fi 11080 11081 11082 11083fi 11084 11085 if test "x$CPU_NOTFOUND" = x0; then : 11086 11087 CFLAGS="$CFLAGS_BACKUP -msse4.1 -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11088 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1" >&5 11090$as_echo_n "checking for SSE4.1... " >&6; } 11091 if test "$cross_compiling" = yes; then : 11092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11094as_fn_error $? "cannot run test program while cross compiling 11095See \`config.log' for more details" "$LINENO" 5; } 11096else 11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11098/* end confdefs.h. */ 11099extern int CPU_detect(void); extern char CPU_req_name[]; 11100 unsigned int nt_buffer8x[4], output8x[4]; 11101 int main(int argc, char **argv) { return !CPU_detect(); } 11102 11103_ACEOF 11104if ac_fn_c_try_run "$LINENO"; then : 11105 CPU_BEST_FLAGS="-msse4.1" 11106 SIMD_NAME="SSE4.1" 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11108$as_echo "yes" >&6; } 11109 11110else 11111 CPU_NOTFOUND="1" 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11113$as_echo "no" >&6; } 11114 11115fi 11116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11117 conftest.$ac_objext conftest.beam conftest.$ac_ext 11118fi 11119 11120 11121 11122fi 11123 11124 if test "x$CPU_NOTFOUND" = x0; then : 11125 11126 CFLAGS="$CFLAGS_BACKUP -msse4.2 -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11127 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.2" >&5 11129$as_echo_n "checking for SSE4.2... " >&6; } 11130 if test "$cross_compiling" = yes; then : 11131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11133as_fn_error $? "cannot run test program while cross compiling 11134See \`config.log' for more details" "$LINENO" 5; } 11135else 11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11137/* end confdefs.h. */ 11138extern int CPU_detect(void); extern char CPU_req_name[]; 11139 unsigned int nt_buffer8x[4], output8x[4]; 11140 int main(int argc, char **argv) { return !CPU_detect(); } 11141 11142_ACEOF 11143if ac_fn_c_try_run "$LINENO"; then : 11144 CPU_BEST_FLAGS="-msse4.2" 11145 SIMD_NAME="SSE4.2" 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11147$as_echo "yes" >&6; } 11148 11149else 11150 CPU_NOTFOUND="1" 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152$as_echo "no" >&6; } 11153 11154fi 11155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11156 conftest.$ac_objext conftest.beam conftest.$ac_ext 11157fi 11158 11159 11160 11161fi 11162 11163 if test "x$CPU_NOTFOUND" = x0; then : 11164 11165 CFLAGS="$CFLAGS_BACKUP -mavx -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11166 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX" >&5 11168$as_echo_n "checking for AVX... " >&6; } 11169 if test "$cross_compiling" = yes; then : 11170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11172as_fn_error $? "cannot run test program while cross compiling 11173See \`config.log' for more details" "$LINENO" 5; } 11174else 11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11176/* end confdefs.h. */ 11177extern int CPU_detect(void); extern char CPU_req_name[]; 11178 unsigned int nt_buffer8x[4], output8x[4]; 11179 int main(int argc, char **argv) { return !CPU_detect(); } 11180 11181_ACEOF 11182if ac_fn_c_try_run "$LINENO"; then : 11183 CPU_BEST_FLAGS="-mavx" 11184 SIMD_NAME="AVX" 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11186$as_echo "yes" >&6; } 11187 11188else 11189 CPU_NOTFOUND="1" 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11191$as_echo "no" >&6; } 11192 11193fi 11194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11195 conftest.$ac_objext conftest.beam conftest.$ac_ext 11196fi 11197 11198 11199 11200fi 11201 11202 if test "x$CPU_NOTFOUND" = x0; then : 11203 11204 CFLAGS="$CFLAGS_BACKUP -mxop -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11205 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOP" >&5 11207$as_echo_n "checking for XOP... " >&6; } 11208 if test "$cross_compiling" = yes; then : 11209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11211as_fn_error $? "cannot run test program while cross compiling 11212See \`config.log' for more details" "$LINENO" 5; } 11213else 11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11215/* end confdefs.h. */ 11216extern int CPU_detect(void); extern char CPU_req_name[]; 11217 unsigned int nt_buffer8x[4], output8x[4]; 11218 int main(int argc, char **argv) { return !CPU_detect(); } 11219 11220_ACEOF 11221if ac_fn_c_try_run "$LINENO"; then : 11222 CPU_BEST_FLAGS="-mxop" 11223 SIMD_NAME="XOP" 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11225$as_echo "yes" >&6; } 11226 11227else 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11229$as_echo "no" >&6; } 11230 11231fi 11232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11233 conftest.$ac_objext conftest.beam conftest.$ac_ext 11234fi 11235 11236 11237 11238fi 11239 11240 if test "x$CPU_NOTFOUND" = x0; then : 11241 11242 CFLAGS="$CFLAGS_BACKUP -mavx2 -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11243 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2" >&5 11245$as_echo_n "checking for AVX2... " >&6; } 11246 if test "$cross_compiling" = yes; then : 11247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11249as_fn_error $? "cannot run test program while cross compiling 11250See \`config.log' for more details" "$LINENO" 5; } 11251else 11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11253/* end confdefs.h. */ 11254extern int CPU_detect(void); extern char CPU_req_name[]; 11255 unsigned int nt_buffer8x[4], output8x[4]; 11256 int main(int argc, char **argv) { return !CPU_detect(); } 11257 11258_ACEOF 11259if ac_fn_c_try_run "$LINENO"; then : 11260 CPU_BEST_FLAGS="-mavx2" 11261 SIMD_NAME="AVX2" 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11263$as_echo "yes" >&6; } 11264 11265else 11266 CPU_NOTFOUND=1 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11268$as_echo "no" >&6; } 11269 11270fi 11271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11272 conftest.$ac_objext conftest.beam conftest.$ac_ext 11273fi 11274 11275 11276 11277fi 11278 11279 if test "x$CPU_NOTFOUND" = x0; then : 11280 11281 CFLAGS="$CFLAGS_BACKUP -mavx512f -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11282 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F" >&5 11284$as_echo_n "checking for AVX512F... " >&6; } 11285 if test "$cross_compiling" = yes; then : 11286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11288as_fn_error $? "cannot run test program while cross compiling 11289See \`config.log' for more details" "$LINENO" 5; } 11290else 11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292/* end confdefs.h. */ 11293extern int CPU_detect(void); extern char CPU_req_name[]; 11294 unsigned int nt_buffer8x[4], output8x[4]; 11295 int main(int argc, char **argv) { return !CPU_detect(); } 11296 11297_ACEOF 11298if ac_fn_c_try_run "$LINENO"; then : 11299 CPU_BEST_FLAGS="-mavx512f" 11300 SIMD_NAME="AVX512F" 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11302$as_echo "yes" >&6; } 11303 11304else 11305 CPU_NOTFOUND=1 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11307$as_echo "no" >&6; } 11308 11309fi 11310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11311 conftest.$ac_objext conftest.beam conftest.$ac_ext 11312fi 11313 11314 11315 11316fi 11317 11318 if test "x$CPU_NOTFOUND" = x0; then : 11319 11320 CFLAGS="$CFLAGS_BACKUP -mavx512bw -P $EXTRA_AS_FLAGS $CPPFLAGS $CFLAGS_EXTRA $CPUID_ASM" 11321 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512BW" >&5 11323$as_echo_n "checking for AVX512BW... " >&6; } 11324 if test "$cross_compiling" = yes; then : 11325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11327as_fn_error $? "cannot run test program while cross compiling 11328See \`config.log' for more details" "$LINENO" 5; } 11329else 11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332extern int CPU_detect(void); extern char CPU_req_name[]; 11333 unsigned int nt_buffer8x[4], output8x[4]; 11334 int main(int argc, char **argv) { return !CPU_detect(); } 11335 11336_ACEOF 11337if ac_fn_c_try_run "$LINENO"; then : 11338 CPU_BEST_FLAGS="-mavx512bw" 11339 SIMD_NAME="AVX512BW" 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11341$as_echo "yes" >&6; } 11342 11343else 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345$as_echo "no" >&6; } 11346 11347fi 11348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11349 conftest.$ac_objext conftest.beam conftest.$ac_ext 11350fi 11351 11352 11353 11354fi 11355 11356 else 11357 11358 CPU_NOTFOUND=0 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing tool-chain's CPU support with given options" >&5 11360$as_echo "$as_me: Testing tool-chain's CPU support with given options" >&6;} 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMX" >&5 11362$as_echo_n "checking for MMX... " >&6; } 11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11364/* end confdefs.h. */ 11365 11366 #include <mmintrin.h> 11367 #include <stdio.h> 11368 extern void exit(int); 11369 int main(){__m64 t;*((long long*)&t)=1;t=_mm_set1_pi32(7);if((*(unsigned*)&t)==88)printf(".");exit(0);} 11370 11371 11372_ACEOF 11373if ac_fn_c_try_link "$LINENO"; then : 11374 CPU_BEST_FLAGS="-mmmx" 11375 SIMD_NAME="MMX" 11376 if test y$ARCH_LINK = yx86-any.h; then : 11377 ARCH_LINK=x86-mmx.h 11378fi 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11380$as_echo "yes" >&6; } 11381 11382else 11383 CPU_NOTFOUND="1" 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11385$as_echo "no" >&6; } 11386 11387fi 11388rm -f core conftest.err conftest.$ac_objext \ 11389 conftest$ac_exeext conftest.$ac_ext 11390 if test "x$CPU_NOTFOUND" = x0; then : 11391 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2" >&5 11393$as_echo_n "checking for SSE2... " >&6; } 11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11395/* end confdefs.h. */ 11396 11397 #include <emmintrin.h> 11398 #include <stdio.h> 11399 extern void exit(int); 11400 int main(){__m128i t;*((long long*)&t)=1;t=_mm_slli_si128(t,7);if((*(unsigned*)&t)==88)printf(".");exit(0);} 11401 11402 11403_ACEOF 11404if ac_fn_c_try_link "$LINENO"; then : 11405 CPU_BEST_FLAGS="-msse2" 11406 SIMD_NAME="SSE2" 11407 if test y$ARCH_LINK = yx86-mmx.h; then : 11408 ARCH_LINK=x86-sse.h 11409fi 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11411$as_echo "yes" >&6; } 11412 11413else 11414 CPU_NOTFOUND="1" 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11416$as_echo "no" >&6; } 11417 11418fi 11419rm -f core conftest.err conftest.$ac_objext \ 11420 conftest$ac_exeext conftest.$ac_ext 11421 11422fi 11423 if test "x$CPU_NOTFOUND" = x0; then : 11424 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSSE3" >&5 11426$as_echo_n "checking for SSSE3... " >&6; } 11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428/* end confdefs.h. */ 11429 11430 #include <tmmintrin.h> 11431 #include <stdio.h> 11432 extern void exit(int); 11433 int main(){__m128i t;*((long long*)&t)=1;t=_mm_shuffle_epi8(t,t);if((*(unsigned*)&t)==88)printf(".");exit(0);} 11434 11435 11436_ACEOF 11437if ac_fn_c_try_link "$LINENO"; then : 11438 CPU_BEST_FLAGS="-mssse3" 11439 SIMD_NAME="SSSE3" 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11441$as_echo "yes" >&6; } 11442 11443else 11444 CPU_NOTFOUND=1 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11446$as_echo "no" >&6; } 11447 11448fi 11449rm -f core conftest.err conftest.$ac_objext \ 11450 conftest$ac_exeext conftest.$ac_ext 11451 11452 11453fi 11454 if test "x$CPU_NOTFOUND" = x0; then : 11455 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.1" >&5 11457$as_echo_n "checking for SSE4.1... " >&6; } 11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11459/* end confdefs.h. */ 11460 11461 #include <smmintrin.h> 11462 #include <stdio.h> 11463 extern void exit(int); 11464 int main(){__m128d t;*((long long*)&t)=1;t=_mm_round_pd(t,1);if((*(long long*)&t)==88)printf(".");exit(0);} 11465 11466 11467_ACEOF 11468if ac_fn_c_try_link "$LINENO"; then : 11469 CPU_BEST_FLAGS="-msse4.1" 11470 SIMD_NAME="SSE4.1" 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11472$as_echo "yes" >&6; } 11473 11474else 11475 CPU_NOTFOUND=1 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11477$as_echo "no" >&6; } 11478 11479fi 11480rm -f core conftest.err conftest.$ac_objext \ 11481 conftest$ac_exeext conftest.$ac_ext 11482 11483 11484fi 11485 if test "x$CPU_NOTFOUND" = x0; then : 11486 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE4.2" >&5 11488$as_echo_n "checking for SSE4.2... " >&6; } 11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11490/* end confdefs.h. */ 11491 11492 #include <nmmintrin.h> 11493 #include <stdio.h> 11494 extern void exit(int); 11495 int main(){unsigned int t=_mm_crc32_u8(0xffffffff,(unsigned char)'a');if(t==0x3e2fbccf)printf(".");exit(0);} 11496 11497 11498_ACEOF 11499if ac_fn_c_try_link "$LINENO"; then : 11500 CPU_BEST_FLAGS="-msse4.2" 11501 SIMD_NAME="SSE4.2" 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11503$as_echo "yes" >&6; } 11504 11505else 11506 CPU_NOTFOUND=1 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11508$as_echo "no" >&6; } 11509 11510fi 11511rm -f core conftest.err conftest.$ac_objext \ 11512 conftest$ac_exeext conftest.$ac_ext 11513 11514 11515fi 11516 if test "x$CPU_NOTFOUND" = x0; then : 11517 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX" >&5 11519$as_echo_n "checking for AVX... " >&6; } 11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521/* end confdefs.h. */ 11522 11523 #include <immintrin.h> 11524 #include <stdio.h> 11525 extern void exit(int); 11526 int main(){__m256d t;*((long long*)&t)=1;t=_mm256_movedup_pd(t);if((*(long long*)&t)==88)printf(".");exit(0);} 11527 11528 11529_ACEOF 11530if ac_fn_c_try_link "$LINENO"; then : 11531 CPU_BEST_FLAGS="-mavx" 11532 SIMD_NAME="AVX" 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11534$as_echo "yes" >&6; } 11535 11536else 11537 CPU_NOTFOUND=1 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11539$as_echo "no" >&6; } 11540 11541fi 11542rm -f core conftest.err conftest.$ac_objext \ 11543 conftest$ac_exeext conftest.$ac_ext 11544 11545 11546fi 11547 11548 if test "x$CPU_NOTFOUND" = x0; then : 11549 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOP" >&5 11551$as_echo_n "checking for XOP... " >&6; } 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554 11555 #include <x86intrin.h> 11556 #include <stdio.h> 11557 extern void exit(int); 11558 int main(){__m128i t;*((long long*)&t)=1;t=_mm_roti_epi32(t,5);if((*(long long*)&t)==88)printf(".");exit(0);} 11559 11560 11561_ACEOF 11562if ac_fn_c_try_link "$LINENO"; then : 11563 CPU_BEST_FLAGS="-mxop" 11564 SIMD_NAME="XOP" 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11566$as_echo "yes" >&6; } 11567 11568else 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11570$as_echo "no" >&6; } 11571 11572fi 11573rm -f core conftest.err conftest.$ac_objext \ 11574 conftest$ac_exeext conftest.$ac_ext 11575 11576 11577fi 11578 11579 if test "x$CPU_NOTFOUND" = x0; then : 11580 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX2" >&5 11582$as_echo_n "checking for AVX2... " >&6; } 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584/* end confdefs.h. */ 11585 11586 #include <immintrin.h> 11587 #include <stdio.h> 11588 extern void exit(int); 11589 int main(){__m256i t, t1;*((long long*)&t)=1;t1=t;t=_mm256_mul_epi32(t1,t);if((*(long long*)&t)==88)printf(".");exit(0);} 11590 11591 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 CPU_BEST_FLAGS="-mavx2" 11595 SIMD_NAME="AVX2" 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11597$as_echo "yes" >&6; } 11598 11599else 11600 CPU_NOTFOUND=1 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11602$as_echo "no" >&6; } 11603 11604fi 11605rm -f core conftest.err conftest.$ac_objext \ 11606 conftest$ac_exeext conftest.$ac_ext 11607 11608 11609fi 11610 11611 if test "x$CPU_NOTFOUND" = x0; then : 11612 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512F" >&5 11614$as_echo_n "checking for AVX512F... " >&6; } 11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11616/* end confdefs.h. */ 11617 11618 #include <immintrin.h> 11619 #include <stdio.h> 11620 extern void exit(int); 11621 int main(){__m512i t, t1;*((long long*)&t)=1;t1=t;t=_mm512_mul_epi32(t1,t);if((*(long long*)&t)==88)printf(".");exit(0);} 11622 11623 11624_ACEOF 11625if ac_fn_c_try_link "$LINENO"; then : 11626 CPU_BEST_FLAGS="-mavx512f" 11627 SIMD_NAME="AVX512F" 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11629$as_echo "yes" >&6; } 11630 11631else 11632 CPU_NOTFOUND=1 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11634$as_echo "no" >&6; } 11635 11636fi 11637rm -f core conftest.err conftest.$ac_objext \ 11638 conftest$ac_exeext conftest.$ac_ext 11639 11640 11641fi 11642 11643 if test "x$CPU_NOTFOUND" = x0; then : 11644 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVX512BW" >&5 11646$as_echo_n "checking for AVX512BW... " >&6; } 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650 #include <immintrin.h> 11651 #include <stdio.h> 11652 extern void exit(int); 11653 int main(){__m512i t=_mm512_slli_epi16(_mm512_set1_epi16(1),1);exit(!(_mm_cvtsi128_si64x(_mm512_extracti32x4_epi32(t,0))==0x2000200020002ULL));} 11654 11655 11656_ACEOF 11657if ac_fn_c_try_link "$LINENO"; then : 11658 CPU_BEST_FLAGS="-mavx512bw" 11659 SIMD_NAME="AVX512BW" 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11661$as_echo "yes" >&6; } 11662 11663else 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11665$as_echo "no" >&6; } 11666 11667fi 11668rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670 11671 11672fi 11673 fi 11674fi 11675 11676if test $simd != yes; then 11677 if test $simd = no; then 11678 SIMD_NAME="(SIMD disabled)" 11679 else 11680 CPU_BEST_FLAGS=$SIMD_FLAGS 11681 fi 11682fi 11683 11684CC="$CC_BACKUP" 11685CFLAGS="$CFLAGS_BACKUP" 11686 11687 11688 11689fi 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch.h alternative" >&5 11691$as_echo_n "checking for arch.h alternative... " >&6; } 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ARCH_LINK}" >&5 11693$as_echo "${ARCH_LINK}" >&6; } 11694 11695CC_BACKUP=$CC 11696 11697if test "x$enable_native_march" != xno -a "x$osx_assembler_warn" != xyes; then 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -march=native" >&5 11699$as_echo_n "checking whether compiler understands -march=native... " >&6; } 11700 CC="$CC_BACKUP -march=native" 11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703int main() { return 0; } 11704_ACEOF 11705if ac_fn_c_try_link "$LINENO"; then : 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11707$as_echo "yes" >&6; } 11708 CPU_BEST_FLAGS="-march=native $CPU_BEST_FLAGS" 11709else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711$as_echo "no" >&6; } 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -xarch=native64" >&5 11713$as_echo_n "checking whether compiler understands -xarch=native64... " >&6; } 11714 CC="$CC_BACKUP -xarch=native64" 11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11716/* end confdefs.h. */ 11717int main() { return 0; } 11718_ACEOF 11719if ac_fn_c_try_link "$LINENO"; then : 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11721$as_echo "yes" >&6; } 11722 CPU_BEST_FLAGS="-xarch=native64 $CPU_BEST_FLAGS" 11723else 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11725$as_echo "no" >&6; } 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -xarch=native" >&5 11727$as_echo_n "checking whether compiler understands -xarch=native... " >&6; } 11728 CC="$CC_BACKUP -xarch=native" 11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11730/* end confdefs.h. */ 11731int main() { return 0; } 11732_ACEOF 11733if ac_fn_c_try_link "$LINENO"; then : 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11735$as_echo "yes" >&6; } 11736 CPU_BEST_FLAGS="-xarch=native $CPU_BEST_FLAGS" 11737else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11739$as_echo "no" >&6; } 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -arch host" >&5 11741$as_echo_n "checking whether compiler understands -arch host... " >&6; } 11742 CC="$CC_BACKUP -arch host" 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744/* end confdefs.h. */ 11745int main() { return 0; } 11746_ACEOF 11747if ac_fn_c_try_link "$LINENO"; then : 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11749$as_echo "yes" >&6; } 11750 CPU_BEST_FLAGS="-arch host $CPU_BEST_FLAGS" 11751else 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11753$as_echo "no" >&6; } 11754 11755fi 11756rm -f core conftest.err conftest.$ac_objext \ 11757 conftest$ac_exeext conftest.$ac_ext 11758 11759 11760fi 11761rm -f core conftest.err conftest.$ac_objext \ 11762 conftest$ac_exeext conftest.$ac_ext 11763 11764 11765fi 11766rm -f core conftest.err conftest.$ac_objext \ 11767 conftest$ac_exeext conftest.$ac_ext 11768 11769 11770fi 11771rm -f core conftest.err conftest.$ac_objext \ 11772 conftest$ac_exeext conftest.$ac_ext 11773 CC="$CC_BACKUP" 11774fi 11775 11776case "${host_cpu}_${CFLAGS}" in 11777 x86_64_*) 11778 case "${CPPFLAGS}_${CFLAGS}" in 11779 *-mno-sse2*) ;; 11780 *-mno-mmx*) ;; 11781 *) 11782 if test -n "$SIMD_NAME" -o $simd != no; then : 11783 CC_ASM_OBJS="x86-64.o simd-intrinsics.o" 11784fi 11785 ;; 11786 esac 11787 ;; 11788 i?86_*) 11789 if test "y$ARCH_LINK" = "yx86-any.h"; then 11790 CC_ASM_OBJS="x86.o" 11791 elif test "y$ARCH_LINK" = "yx86-mmx.h"; then 11792 CC_ASM_OBJS="x86.o x86-mmx.o" 11793 else 11794 CC_ASM_OBJS="x86.o x86-sse.o simd-intrinsics.o" 11795 fi 11796 ;; 11797 mic*|powerpc*|arm*|aarch64*) 11798 if test -n "$SIMD_NAME" -o $simd != no; then : 11799 CC_ASM_OBJS="simd-intrinsics.o" 11800fi 11801 ;; 11802 alpha*dec*) 11803 CC_ASM_OBJS="digipaq-alpha.o" 11804 ;; 11805 alpha*) 11806 CC_ASM_OBJS="alpha.o" 11807 ;; 11808esac 11809 11810CC="$CC_BACKUP" 11811CFLAGS="$CFLAGS_BACKUP" 11812 11813 11814if test "x$ax_intel_x32" = xyes; then 11815 using_x32=", X32 ABI" 11816else 11817 using_x32="" 11818fi 11819 11820if test "x$endian" = "xunknown"; then 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11822$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11823if ${ac_cv_c_bigendian+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 ac_cv_c_bigendian=unknown 11827 # See if we're dealing with a universal compiler. 11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830#ifndef __APPLE_CC__ 11831 not a universal capable compiler 11832 #endif 11833 typedef int dummy; 11834 11835_ACEOF 11836if ac_fn_c_try_compile "$LINENO"; then : 11837 11838 # Check for potential -arch flags. It is not universal unless 11839 # there are at least two -arch flags with different values. 11840 ac_arch= 11841 ac_prev= 11842 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11843 if test -n "$ac_prev"; then 11844 case $ac_word in 11845 i?86 | x86_64 | ppc | ppc64) 11846 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11847 ac_arch=$ac_word 11848 else 11849 ac_cv_c_bigendian=universal 11850 break 11851 fi 11852 ;; 11853 esac 11854 ac_prev= 11855 elif test "x$ac_word" = "x-arch"; then 11856 ac_prev=arch 11857 fi 11858 done 11859fi 11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11861 if test $ac_cv_c_bigendian = unknown; then 11862 # See if sys/param.h defines the BYTE_ORDER macro. 11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11864/* end confdefs.h. */ 11865#include <sys/types.h> 11866 #include <sys/param.h> 11867 11868int 11869main () 11870{ 11871#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11872 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11873 && LITTLE_ENDIAN) 11874 bogus endian macros 11875 #endif 11876 11877 ; 11878 return 0; 11879} 11880_ACEOF 11881if ac_fn_c_try_compile "$LINENO"; then : 11882 # It does; now see whether it defined to BIG_ENDIAN or not. 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885#include <sys/types.h> 11886 #include <sys/param.h> 11887 11888int 11889main () 11890{ 11891#if BYTE_ORDER != BIG_ENDIAN 11892 not big endian 11893 #endif 11894 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_c_try_compile "$LINENO"; then : 11900 ac_cv_c_bigendian=yes 11901else 11902 ac_cv_c_bigendian=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11905fi 11906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11907 fi 11908 if test $ac_cv_c_bigendian = unknown; then 11909 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912#include <limits.h> 11913 11914int 11915main () 11916{ 11917#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11918 bogus endian macros 11919 #endif 11920 11921 ; 11922 return 0; 11923} 11924_ACEOF 11925if ac_fn_c_try_compile "$LINENO"; then : 11926 # It does; now see whether it defined to _BIG_ENDIAN or not. 11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11928/* end confdefs.h. */ 11929#include <limits.h> 11930 11931int 11932main () 11933{ 11934#ifndef _BIG_ENDIAN 11935 not big endian 11936 #endif 11937 11938 ; 11939 return 0; 11940} 11941_ACEOF 11942if ac_fn_c_try_compile "$LINENO"; then : 11943 ac_cv_c_bigendian=yes 11944else 11945 ac_cv_c_bigendian=no 11946fi 11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11948fi 11949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11950 fi 11951 if test $ac_cv_c_bigendian = unknown; then 11952 # Compile a test program. 11953 if test "$cross_compiling" = yes; then : 11954 # Try to guess by grepping values from an object file. 11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11956/* end confdefs.h. */ 11957short int ascii_mm[] = 11958 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11959 short int ascii_ii[] = 11960 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11961 int use_ascii (int i) { 11962 return ascii_mm[i] + ascii_ii[i]; 11963 } 11964 short int ebcdic_ii[] = 11965 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11966 short int ebcdic_mm[] = 11967 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11968 int use_ebcdic (int i) { 11969 return ebcdic_mm[i] + ebcdic_ii[i]; 11970 } 11971 extern int foo; 11972 11973int 11974main () 11975{ 11976return use_ascii (foo) == use_ebcdic (foo); 11977 ; 11978 return 0; 11979} 11980_ACEOF 11981if ac_fn_c_try_compile "$LINENO"; then : 11982 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11983 ac_cv_c_bigendian=yes 11984 fi 11985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11986 if test "$ac_cv_c_bigendian" = unknown; then 11987 ac_cv_c_bigendian=no 11988 else 11989 # finding both strings is unlikely to happen, but who knows? 11990 ac_cv_c_bigendian=unknown 11991 fi 11992 fi 11993fi 11994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11995else 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11997/* end confdefs.h. */ 11998$ac_includes_default 11999int 12000main () 12001{ 12002 12003 /* Are we little or big endian? From Harbison&Steele. */ 12004 union 12005 { 12006 long int l; 12007 char c[sizeof (long int)]; 12008 } u; 12009 u.l = 1; 12010 return u.c[sizeof (long int) - 1] == 1; 12011 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_run "$LINENO"; then : 12017 ac_cv_c_bigendian=no 12018else 12019 ac_cv_c_bigendian=yes 12020fi 12021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12022 conftest.$ac_objext conftest.beam conftest.$ac_ext 12023fi 12024 12025 fi 12026fi 12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12028$as_echo "$ac_cv_c_bigendian" >&6; } 12029 case $ac_cv_c_bigendian in #( 12030 yes) 12031 endian=big;; #( 12032 no) 12033 endian=little ;; #( 12034 universal) 12035 12036$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12037 12038 ;; #( 12039 *) 12040 as_fn_error $? "unknown endianness 12041 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12042 esac 12043 12044else 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte ordering according to target triple" >&5 12046$as_echo_n "checking for byte ordering according to target triple... " >&6; } 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${endian}" >&5 12048$as_echo "${endian}" >&6; } 12049fi 12050if test "x$endian" = "xbig"; then 12051 12052$as_echo "#define ARCH_LITTLE_ENDIAN 0" >>confdefs.h 12053 12054elif test "x$endian" = "xlittle"; then 12055 12056$as_echo "#define ARCH_LITTLE_ENDIAN 1" >>confdefs.h 12057 12058else 12059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12061as_fn_error $? "Could not determine endianity. Supply '--with-endian=little|big' and re-run 12062See \`config.log' for more details" "$LINENO" 5; } 12063fi 12064 12065 12066if test "x$with_commoncrypto" != xyes && test "x$with_openssl" = xno; then : 12067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12069as_fn_error 1 "At least one of OpenSSL and CommonCrypto must be used 12070See \`config.log' for more details" "$LINENO" 5; } 12071 12072fi 12073 12074if test "x$with_commoncrypto" = xyes; then : 12075 ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonDigest.h" "ac_cv_header_CommonCrypto_CommonDigest_h" "$ac_includes_default" 12076if test "x$ac_cv_header_CommonCrypto_CommonDigest_h" = xyes; then : 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCKeyDerivationPBKDF in -lSystem" >&5 12078$as_echo_n "checking for CCKeyDerivationPBKDF in -lSystem... " >&6; } 12079if ${ac_cv_lib_System_CCKeyDerivationPBKDF+:} false; then : 12080 $as_echo_n "(cached) " >&6 12081else 12082 ac_check_lib_save_LIBS=$LIBS 12083LIBS="-lSystem $LIBS" 12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12085/* end confdefs.h. */ 12086 12087/* Override any GCC internal prototype to avoid an error. 12088 Use char because int might match the return type of a GCC 12089 builtin and then its argument prototype would still apply. */ 12090#ifdef __cplusplus 12091extern "C" 12092#endif 12093char CCKeyDerivationPBKDF (); 12094int 12095main () 12096{ 12097return CCKeyDerivationPBKDF (); 12098 ; 12099 return 0; 12100} 12101_ACEOF 12102if ac_fn_c_try_link "$LINENO"; then : 12103 ac_cv_lib_System_CCKeyDerivationPBKDF=yes 12104else 12105 ac_cv_lib_System_CCKeyDerivationPBKDF=no 12106fi 12107rm -f core conftest.err conftest.$ac_objext \ 12108 conftest$ac_exeext conftest.$ac_ext 12109LIBS=$ac_check_lib_save_LIBS 12110fi 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCKeyDerivationPBKDF" >&5 12112$as_echo "$ac_cv_lib_System_CCKeyDerivationPBKDF" >&6; } 12113if test "x$ac_cv_lib_System_CCKeyDerivationPBKDF" = xyes; then : 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCCryptorCreate in -lSystem" >&5 12115$as_echo_n "checking for CCCryptorCreate in -lSystem... " >&6; } 12116if ${ac_cv_lib_System_CCCryptorCreate+:} false; then : 12117 $as_echo_n "(cached) " >&6 12118else 12119 ac_check_lib_save_LIBS=$LIBS 12120LIBS="-lSystem $LIBS" 12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12122/* end confdefs.h. */ 12123 12124/* Override any GCC internal prototype to avoid an error. 12125 Use char because int might match the return type of a GCC 12126 builtin and then its argument prototype would still apply. */ 12127#ifdef __cplusplus 12128extern "C" 12129#endif 12130char CCCryptorCreate (); 12131int 12132main () 12133{ 12134return CCCryptorCreate (); 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_link "$LINENO"; then : 12140 ac_cv_lib_System_CCCryptorCreate=yes 12141else 12142 ac_cv_lib_System_CCCryptorCreate=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146LIBS=$ac_check_lib_save_LIBS 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCCryptorCreate" >&5 12149$as_echo "$ac_cv_lib_System_CCCryptorCreate" >&6; } 12150if test "x$ac_cv_lib_System_CCCryptorCreate" = xyes; then : 12151 12152 for i in "-DCOMMON_DIGEST_FOR_OPENSSL"; do 12153 jtr_list_add_dupe=0 12154 for j in $CFLAGS; do 12155 if test "x$i" = "x$j"; then 12156 jtr_list_add_dupe=1 12157 break 12158 fi 12159 done 12160 if test $jtr_list_add_dupe = 0; then 12161 CFLAGS="$CFLAGS $i" 12162 jtr_list_add_result="$jtr_list_add_result $i" 12163 fi 12164 done 12165 COMMONCRYPTO_LIBS=-lSystem 12166 12167$as_echo "#define HAVE_COMMONCRYPTO 1" >>confdefs.h 12168 12169else 12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12172as_fn_error 1 "No CommonCrypto found 12173See \`config.log' for more details" "$LINENO" 5; } 12174fi 12175 12176fi 12177 12178fi 12179 12180 12181fi 12182 12183if test "x$with_openssl" != xno; then : 12184 if test "x$enable_native_tests" != xno -a "x$PKG_CONFIG" != xno; then 12185 12186pkg_failed=no 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 12188$as_echo_n "checking for OPENSSL... " >&6; } 12189 12190if test -n "$OPENSSL_CFLAGS"; then 12191 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 12192 elif test -n "$PKG_CONFIG"; then 12193 if test -n "$PKG_CONFIG" && \ 12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 12195 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 12196 ac_status=$? 12197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12198 test $ac_status = 0; }; then 12199 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 12200else 12201 pkg_failed=yes 12202fi 12203 else 12204 pkg_failed=untried 12205fi 12206if test -n "$OPENSSL_LIBS"; then 12207 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 12208 elif test -n "$PKG_CONFIG"; then 12209 if test -n "$PKG_CONFIG" && \ 12210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 12211 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 12212 ac_status=$? 12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12214 test $ac_status = 0; }; then 12215 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 12216else 12217 pkg_failed=yes 12218fi 12219 else 12220 pkg_failed=untried 12221fi 12222 12223 12224 12225if test $pkg_failed = yes; then 12226 12227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12228 _pkg_short_errors_supported=yes 12229else 12230 _pkg_short_errors_supported=no 12231fi 12232 if test $_pkg_short_errors_supported = yes; then 12233 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` 12234 else 12235 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` 12236 fi 12237 # Put the nasty error message in config.log where it belongs 12238 echo "$OPENSSL_PKG_ERRORS" >&5 12239 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12241$as_echo "no" >&6; } 12242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12244as_fn_error 1 "JtR requires OpenSSL and OpenSSL-devel being installed. Install if not installed. 12245Try using --disable-pkg-config and possibly helping configure find oSSL by providing hints in CFLAGS and LDFLAGS 12246See \`config.log' for more details" "$LINENO" 5; } 12247elif test $pkg_failed = untried; then 12248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12250as_fn_error 1 "JtR requires OpenSSL and OpenSSL-devel being installed. Install if not installed. 12251Try using --disable-pkg-config and possibly helping configure find oSSL by providing hints in CFLAGS and LDFLAGS 12252See \`config.log' for more details" "$LINENO" 5; } 12253else 12254 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 12255 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12257$as_echo "yes" >&6; } 12258 12259$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 12260 12261 12262$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h 12263 12264fi 12265else 12266 if test "x${OPENSSL_CFLAGS}${OPENSSL_LIBS}" != "x" -o "x$cross_compiling" = "xyes" -o "x$enable_native_tests" = xno -o "x$PKG_CONFIG" = xno; then : 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking supplied paths for OpenSSL" >&5 12268$as_echo_n "checking supplied paths for OpenSSL... " >&6; } 12269 12270 for i in $OPENSSL_CFLAGS; do 12271 jtr_list_add_dupe=0 12272 for j in $CFLAGS; do 12273 if test "x$i" = "x$j"; then 12274 jtr_list_add_dupe=1 12275 break 12276 fi 12277 done 12278 if test $jtr_list_add_dupe = 0; then 12279 CFLAGS="$CFLAGS $i" 12280 jtr_list_add_result="$jtr_list_add_result $i" 12281 fi 12282 done 12283 12284 if test "x$cross_compiling" = "xyes" -a "x$OPENSSL_LIBS" = "x"; then 12285 OPENSSL_LIBS="-lssl -lcrypto" 12286 fi 12287 LIBS_ORIG="$LIBS" 12288 LIBS="$LIBS $OPENSSL_LIBS" 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_CFLAGS $OPENSSL_LIBS" >&5 12290$as_echo "$OPENSSL_CFLAGS $OPENSSL_LIBS" >&6; } 12291 if test "x$cross_compiling" = xno; then 12292 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional paths for OpenSSL" >&5 12294$as_echo_n "checking additional paths for OpenSSL... " >&6; } 12295 ADD_LDFLAGS="" 12296 ADD_CFLAGS="" 12297if test -d /usr/local/ssl/lib; then 12298 ADD_LDFLAGS="$ADD_LDFLAGS -L/usr/local/ssl/lib" 12299fi 12300if test -d /usr/local/ssl/include; then 12301 ADD_CFLAGS="$ADD_CFLAGS -I/usr/local/ssl/include" 12302fi 12303 12304 for i in $ADD_CFLAGS; do 12305 jtr_list_add_dupe=0 12306 for j in $CPPFLAGS; do 12307 if test "x$i" = "x$j"; then 12308 jtr_list_add_dupe=1 12309 break 12310 fi 12311 done 12312 if test $jtr_list_add_dupe = 0; then 12313 CPPFLAGS="$CPPFLAGS $i" 12314 jtr_list_add_result="$jtr_list_add_result $i" 12315 fi 12316 done 12317 # no typo here 12318jtr_list_add_result="" 12319 12320 for i in $ADD_LDFLAGS; do 12321 jtr_list_add_dupe=0 12322 for j in $LDFLAGS; do 12323 if test "x$i" = "x$j"; then 12324 jtr_list_add_dupe=1 12325 break 12326 fi 12327 done 12328 if test $jtr_list_add_dupe = 0; then 12329 LDFLAGS="$LDFLAGS $i" 12330 jtr_list_add_result="$jtr_list_add_result $i" 12331 fi 12332 done 12333 12334 12335 for i in $ADD_CFLAGS; do 12336 jtr_list_add_dupe=0 12337 for j in $CFLAGS; do 12338 if test "x$i" = "x$j"; then 12339 jtr_list_add_dupe=1 12340 break 12341 fi 12342 done 12343 if test $jtr_list_add_dupe = 0; then 12344 CFLAGS="$CFLAGS $i" 12345 jtr_list_add_result="$jtr_list_add_result $i" 12346 fi 12347 done 12348 12349 12350 if test -z "$jtr_list_add_result"; then : 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12352$as_echo "none" >&6; } 12353else 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jtr_list_add_result" >&5 12355$as_echo "$jtr_list_add_result" >&6; } 12356fi 12357 jtr_list_add_result="" 12358 12359 12360 fi 12361 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" 12362if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 12364$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 12365if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 ac_check_lib_save_LIBS=$LIBS 12369LIBS="-lssl $LIBS" 12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371/* end confdefs.h. */ 12372 12373/* Override any GCC internal prototype to avoid an error. 12374 Use char because int might match the return type of a GCC 12375 builtin and then its argument prototype would still apply. */ 12376#ifdef __cplusplus 12377extern "C" 12378#endif 12379char SSL_CTX_new (); 12380int 12381main () 12382{ 12383return SSL_CTX_new (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO"; then : 12389 ac_cv_lib_ssl_SSL_CTX_new=yes 12390else 12391 ac_cv_lib_ssl_SSL_CTX_new=no 12392fi 12393rm -f core conftest.err conftest.$ac_objext \ 12394 conftest$ac_exeext conftest.$ac_ext 12395LIBS=$ac_check_lib_save_LIBS 12396fi 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 12398$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 12399if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Update in -lcrypto" >&5 12401$as_echo_n "checking for MD5_Update in -lcrypto... " >&6; } 12402if ${ac_cv_lib_crypto_MD5_Update+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404else 12405 ac_check_lib_save_LIBS=$LIBS 12406LIBS="-lcrypto $LIBS" 12407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12408/* end confdefs.h. */ 12409 12410/* Override any GCC internal prototype to avoid an error. 12411 Use char because int might match the return type of a GCC 12412 builtin and then its argument prototype would still apply. */ 12413#ifdef __cplusplus 12414extern "C" 12415#endif 12416char MD5_Update (); 12417int 12418main () 12419{ 12420return MD5_Update (); 12421 ; 12422 return 0; 12423} 12424_ACEOF 12425if ac_fn_c_try_link "$LINENO"; then : 12426 ac_cv_lib_crypto_MD5_Update=yes 12427else 12428 ac_cv_lib_crypto_MD5_Update=no 12429fi 12430rm -f core conftest.err conftest.$ac_objext \ 12431 conftest$ac_exeext conftest.$ac_ext 12432LIBS=$ac_check_lib_save_LIBS 12433fi 12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Update" >&5 12435$as_echo "$ac_cv_lib_crypto_MD5_Update" >&6; } 12436if test "x$ac_cv_lib_crypto_MD5_Update" = xyes; then : 12437 12438$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h 12439 12440 12441$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 12442 12443 OPENSSL_LIBS="-lssl -lcrypto" 12444else 12445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12447as_fn_error 1 "JtR requires libssl/libcrypto being installed 12448See \`config.log' for more details" "$LINENO" 5; } 12449fi 12450 12451else 12452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12454as_fn_error 1 "JtR requires libssl being installed 12455See \`config.log' for more details" "$LINENO" 5; } 12456 12457fi 12458 12459 LIBS="$LIBS_ORIG" 12460else 12461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12463as_fn_error 1 "JtR requires OpenSSL headers being installed 12464See \`config.log' for more details" "$LINENO" 5; } 12465 12466fi 12467 12468 12469 12470fi 12471 fi 12472 12473fi 12474 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 12476$as_echo_n "checking for sqrt in -lm... " >&6; } 12477if ${ac_cv_lib_m_sqrt+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479else 12480 ac_check_lib_save_LIBS=$LIBS 12481LIBS="-lm $LIBS" 12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12483/* end confdefs.h. */ 12484 12485/* Override any GCC internal prototype to avoid an error. 12486 Use char because int might match the return type of a GCC 12487 builtin and then its argument prototype would still apply. */ 12488#ifdef __cplusplus 12489extern "C" 12490#endif 12491char sqrt (); 12492int 12493main () 12494{ 12495return sqrt (); 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500if ac_fn_c_try_link "$LINENO"; then : 12501 ac_cv_lib_m_sqrt=yes 12502else 12503 ac_cv_lib_m_sqrt=no 12504fi 12505rm -f core conftest.err conftest.$ac_objext \ 12506 conftest$ac_exeext conftest.$ac_ext 12507LIBS=$ac_check_lib_save_LIBS 12508fi 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 12510$as_echo "$ac_cv_lib_m_sqrt" >&6; } 12511if test "x$ac_cv_lib_m_sqrt" = xyes; then : 12512 12513$as_echo "#define HAVE_LIBM 1" >>confdefs.h 12514 M_LIBS=-lm 12515 12516else 12517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12519as_fn_error 1 "JtR requires libm being installed 12520See \`config.log' for more details" "$LINENO" 5; } 12521fi 12522 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 12524$as_echo_n "checking for deflate in -lz... " >&6; } 12525if ${ac_cv_lib_z_deflate+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 ac_check_lib_save_LIBS=$LIBS 12529LIBS="-lz $LIBS" 12530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533/* Override any GCC internal prototype to avoid an error. 12534 Use char because int might match the return type of a GCC 12535 builtin and then its argument prototype would still apply. */ 12536#ifdef __cplusplus 12537extern "C" 12538#endif 12539char deflate (); 12540int 12541main () 12542{ 12543return deflate (); 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548if ac_fn_c_try_link "$LINENO"; then : 12549 ac_cv_lib_z_deflate=yes 12550else 12551 ac_cv_lib_z_deflate=no 12552fi 12553rm -f core conftest.err conftest.$ac_objext \ 12554 conftest$ac_exeext conftest.$ac_ext 12555LIBS=$ac_check_lib_save_LIBS 12556fi 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 12558$as_echo "$ac_cv_lib_z_deflate" >&6; } 12559if test "x$ac_cv_lib_z_deflate" = xyes; then : 12560 12561$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 12562 Z_LIBS=-lz 12563 12564fi 12565 12566BACKUP_LIBS="$LIBS" 12567LIBS="" 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 12569$as_echo_n "checking for library containing crypt... " >&6; } 12570if ${ac_cv_search_crypt+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 ac_func_search_save_LIBS=$LIBS 12574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12575/* end confdefs.h. */ 12576 12577/* Override any GCC internal prototype to avoid an error. 12578 Use char because int might match the return type of a GCC 12579 builtin and then its argument prototype would still apply. */ 12580#ifdef __cplusplus 12581extern "C" 12582#endif 12583char crypt (); 12584int 12585main () 12586{ 12587return crypt (); 12588 ; 12589 return 0; 12590} 12591_ACEOF 12592for ac_lib in '' crypt; do 12593 if test -z "$ac_lib"; then 12594 ac_res="none required" 12595 else 12596 ac_res=-l$ac_lib 12597 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12598 fi 12599 if ac_fn_c_try_link "$LINENO"; then : 12600 ac_cv_search_crypt=$ac_res 12601fi 12602rm -f core conftest.err conftest.$ac_objext \ 12603 conftest$ac_exeext 12604 if ${ac_cv_search_crypt+:} false; then : 12605 break 12606fi 12607done 12608if ${ac_cv_search_crypt+:} false; then : 12609 12610else 12611 ac_cv_search_crypt=no 12612fi 12613rm conftest.$ac_ext 12614LIBS=$ac_func_search_save_LIBS 12615fi 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 12617$as_echo "$ac_cv_search_crypt" >&6; } 12618ac_res=$ac_cv_search_crypt 12619if test "$ac_res" != no; then : 12620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12621 12622$as_echo "#define HAVE_CRYPT 1" >>confdefs.h 12623 12624fi 12625 12626CRYPT_LIBS=$LIBS 12627 12628LIBS="$BACKUP_LIBS" 12629 12630for ac_header in gmp.h gmp/gmp.h 12631do : 12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12635 cat >>confdefs.h <<_ACEOF 12636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12637_ACEOF 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 12639$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } 12640if ${ac_cv_lib_gmp___gmpz_init+:} false; then : 12641 $as_echo_n "(cached) " >&6 12642else 12643 ac_check_lib_save_LIBS=$LIBS 12644LIBS="-lgmp $LIBS" 12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647 12648/* Override any GCC internal prototype to avoid an error. 12649 Use char because int might match the return type of a GCC 12650 builtin and then its argument prototype would still apply. */ 12651#ifdef __cplusplus 12652extern "C" 12653#endif 12654char __gmpz_init (); 12655int 12656main () 12657{ 12658return __gmpz_init (); 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663if ac_fn_c_try_link "$LINENO"; then : 12664 ac_cv_lib_gmp___gmpz_init=yes 12665else 12666 ac_cv_lib_gmp___gmpz_init=no 12667fi 12668rm -f core conftest.err conftest.$ac_objext \ 12669 conftest$ac_exeext conftest.$ac_ext 12670LIBS=$ac_check_lib_save_LIBS 12671fi 12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 12673$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } 12674if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : 12675 12676$as_echo "#define HAVE_LIBGMP 1" >>confdefs.h 12677 GMP_LIBS=-lgmp 12678 12679fi 12680 break 12681fi 12682 12683done 12684 12685ac_fn_c_check_header_mongrel "$LINENO" "skey.h" "ac_cv_header_skey_h" "$ac_includes_default" 12686if test "x$ac_cv_header_skey_h" = xyes; then : 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skey_set_algorithm in -lskey" >&5 12688$as_echo_n "checking for skey_set_algorithm in -lskey... " >&6; } 12689if ${ac_cv_lib_skey_skey_set_algorithm+:} false; then : 12690 $as_echo_n "(cached) " >&6 12691else 12692 ac_check_lib_save_LIBS=$LIBS 12693LIBS="-lskey $LIBS" 12694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12695/* end confdefs.h. */ 12696 12697/* Override any GCC internal prototype to avoid an error. 12698 Use char because int might match the return type of a GCC 12699 builtin and then its argument prototype would still apply. */ 12700#ifdef __cplusplus 12701extern "C" 12702#endif 12703char skey_set_algorithm (); 12704int 12705main () 12706{ 12707return skey_set_algorithm (); 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712if ac_fn_c_try_link "$LINENO"; then : 12713 ac_cv_lib_skey_skey_set_algorithm=yes 12714else 12715 ac_cv_lib_skey_skey_set_algorithm=no 12716fi 12717rm -f core conftest.err conftest.$ac_objext \ 12718 conftest$ac_exeext conftest.$ac_ext 12719LIBS=$ac_check_lib_save_LIBS 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skey_set_algorithm" >&5 12722$as_echo "$ac_cv_lib_skey_skey_set_algorithm" >&6; } 12723if test "x$ac_cv_lib_skey_skey_set_algorithm" = xyes; then : 12724 12725$as_echo "#define HAVE_SKEY 1" >>confdefs.h 12726 SKEY_LIBS=-lskey 12727 12728fi 12729 12730fi 12731 12732 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for S/Key" >&5 12734$as_echo_n "checking for S/Key... " >&6; } 12735if test "x${ac_cv_lib_skey_skey_set_algorithm}" != xyes; then : 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using our own code" >&5 12737$as_echo "using our own code" >&6; } 12738else 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system library" >&5 12740$as_echo "using system library" >&6; } 12741 12742fi 12743ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 12744if test "x$ac_cv_header_bzlib_h" = xyes; then : 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbz2" >&5 12746$as_echo_n "checking for main in -lbz2... " >&6; } 12747if ${ac_cv_lib_bz2_main+:} false; then : 12748 $as_echo_n "(cached) " >&6 12749else 12750 ac_check_lib_save_LIBS=$LIBS 12751LIBS="-lbz2 $LIBS" 12752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12753/* end confdefs.h. */ 12754 12755 12756int 12757main () 12758{ 12759return main (); 12760 ; 12761 return 0; 12762} 12763_ACEOF 12764if ac_fn_c_try_link "$LINENO"; then : 12765 ac_cv_lib_bz2_main=yes 12766else 12767 ac_cv_lib_bz2_main=no 12768fi 12769rm -f core conftest.err conftest.$ac_objext \ 12770 conftest$ac_exeext conftest.$ac_ext 12771LIBS=$ac_check_lib_save_LIBS 12772fi 12773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_main" >&5 12774$as_echo "$ac_cv_lib_bz2_main" >&6; } 12775if test "x$ac_cv_lib_bz2_main" = xyes; then : 12776 12777$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h 12778 BZ2_LIBS=-lbz2 12779 12780fi 12781 12782fi 12783 12784 12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5 12786$as_echo_n "checking for main in -lkernel32... " >&6; } 12787if ${ac_cv_lib_kernel32_main+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789else 12790 ac_check_lib_save_LIBS=$LIBS 12791LIBS="-lkernel32 $LIBS" 12792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12793/* end confdefs.h. */ 12794 12795 12796int 12797main () 12798{ 12799return main (); 12800 ; 12801 return 0; 12802} 12803_ACEOF 12804if ac_fn_c_try_link "$LINENO"; then : 12805 ac_cv_lib_kernel32_main=yes 12806else 12807 ac_cv_lib_kernel32_main=no 12808fi 12809rm -f core conftest.err conftest.$ac_objext \ 12810 conftest$ac_exeext conftest.$ac_ext 12811LIBS=$ac_check_lib_save_LIBS 12812fi 12813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5 12814$as_echo "$ac_cv_lib_kernel32_main" >&6; } 12815if test "x$ac_cv_lib_kernel32_main" = xyes; then : 12816 cat >>confdefs.h <<_ACEOF 12817#define HAVE_LIBKERNEL32 1 12818_ACEOF 12819 12820 LIBS="-lkernel32 $LIBS" 12821 12822fi 12823 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12825$as_echo_n "checking for dlopen in -ldl... " >&6; } 12826if ${ac_cv_lib_dl_dlopen+:} false; then : 12827 $as_echo_n "(cached) " >&6 12828else 12829 ac_check_lib_save_LIBS=$LIBS 12830LIBS="-ldl $LIBS" 12831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12832/* end confdefs.h. */ 12833 12834/* Override any GCC internal prototype to avoid an error. 12835 Use char because int might match the return type of a GCC 12836 builtin and then its argument prototype would still apply. */ 12837#ifdef __cplusplus 12838extern "C" 12839#endif 12840char dlopen (); 12841int 12842main () 12843{ 12844return dlopen (); 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849if ac_fn_c_try_link "$LINENO"; then : 12850 ac_cv_lib_dl_dlopen=yes 12851else 12852 ac_cv_lib_dl_dlopen=no 12853fi 12854rm -f core conftest.err conftest.$ac_objext \ 12855 conftest$ac_exeext conftest.$ac_ext 12856LIBS=$ac_check_lib_save_LIBS 12857fi 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12859$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12860if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12861 12862$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 12863 DL_LIBS=-ldl 12864 12865fi 12866 12867 12868for ac_header in intrin.h 12869do : 12870 ac_fn_c_check_header_mongrel "$LINENO" "intrin.h" "ac_cv_header_intrin_h" "$ac_includes_default" 12871if test "x$ac_cv_header_intrin_h" = xyes; then : 12872 cat >>confdefs.h <<_ACEOF 12873#define HAVE_INTRIN_H 1 12874_ACEOF 12875 break 12876fi 12877 12878done 12879 12880for ac_header in openssl/cmac.h 12881do : 12882 ac_fn_c_check_header_mongrel "$LINENO" "openssl/cmac.h" "ac_cv_header_openssl_cmac_h" "$ac_includes_default" 12883if test "x$ac_cv_header_openssl_cmac_h" = xyes; then : 12884 cat >>confdefs.h <<_ACEOF 12885#define HAVE_OPENSSL_CMAC_H 1 12886_ACEOF 12887 break 12888fi 12889 12890done 12891 12892 12893BACKUP_LIBS="$LIBS" 12894 12895LIBS="" 12896using_rexgen=no 12897if test "x$enable_rexgen" != xno ; then 12898 ac_fn_c_check_header_mongrel "$LINENO" "librexgen/version.h" "ac_cv_header_librexgen_version_h" "$ac_includes_default" 12899if test "x$ac_cv_header_librexgen_version_h" = xyes; then : 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rexgen_version_int" >&5 12901$as_echo_n "checking for library containing rexgen_version_int... " >&6; } 12902if ${ac_cv_search_rexgen_version_int+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 ac_func_search_save_LIBS=$LIBS 12906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12907/* end confdefs.h. */ 12908 12909/* Override any GCC internal prototype to avoid an error. 12910 Use char because int might match the return type of a GCC 12911 builtin and then its argument prototype would still apply. */ 12912#ifdef __cplusplus 12913extern "C" 12914#endif 12915char rexgen_version_int (); 12916int 12917main () 12918{ 12919return rexgen_version_int (); 12920 ; 12921 return 0; 12922} 12923_ACEOF 12924for ac_lib in '' rexgen librexgen; do 12925 if test -z "$ac_lib"; then 12926 ac_res="none required" 12927 else 12928 ac_res=-l$ac_lib 12929 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12930 fi 12931 if ac_fn_c_try_link "$LINENO"; then : 12932 ac_cv_search_rexgen_version_int=$ac_res 12933fi 12934rm -f core conftest.err conftest.$ac_objext \ 12935 conftest$ac_exeext 12936 if ${ac_cv_search_rexgen_version_int+:} false; then : 12937 break 12938fi 12939done 12940if ${ac_cv_search_rexgen_version_int+:} false; then : 12941 12942else 12943 ac_cv_search_rexgen_version_int=no 12944fi 12945rm conftest.$ac_ext 12946LIBS=$ac_func_search_save_LIBS 12947fi 12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rexgen_version_int" >&5 12949$as_echo "$ac_cv_search_rexgen_version_int" >&6; } 12950ac_res=$ac_cv_search_rexgen_version_int 12951if test "$ac_res" != no; then : 12952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking librexgen minimum version" >&5 12954$as_echo_n "checking librexgen minimum version... " >&6; } && if test "$cross_compiling" = yes; then : 12955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12957as_fn_error $? "cannot run test program while cross compiling 12958See \`config.log' for more details" "$LINENO" 5; } 12959else 12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12961/* end confdefs.h. */ 12962int main() { return ! (rexgen_version_int() >= 0x020006); } 12963_ACEOF 12964if ac_fn_c_try_run "$LINENO"; then : 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable" >&5 12966$as_echo "usable" >&6; } && using_rexgen=yes 12967else 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: TOO old. Rexgen not usable!" >&5 12969$as_echo "TOO old. Rexgen not usable!" >&6; } 12970fi 12971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12972 conftest.$ac_objext conftest.beam conftest.$ac_ext 12973fi 12974 12975 12976fi 12977 12978 12979fi 12980 12981 12982 if test "x$using_rexgen" == "xyes" ; then 12983 12984$as_echo "#define HAVE_LIBREXGEN 1" >>confdefs.h 12985 12986 else 12987 if test "x$enable_rexgen" == "xyes" ; then 12988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12990as_fn_error $? "rexgen not installed, or unusable version 12991See \`config.log' for more details" "$LINENO" 5; } 12992 fi 12993 fi 12994 REXGEN_LIBS=$LIBS 12995 12996else 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: rexgen check not enabled" >&5 12998$as_echo "$as_me: rexgen check not enabled" >&6;} 12999fi 13000 13001if test "x$ompfast" = xyes ; then 13002 13003$as_echo "#define FAST_FORMATS_OMP 1" >>confdefs.h 13004 13005fi 13006 13007LIBS="$BACKUP_LIBS" 13008if test "x$enable_pcap" != xno ; then 13009 for ac_header in pcap.h pcap/pcap.h 13010do : 13011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13012ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13014 cat >>confdefs.h <<_ACEOF 13015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13016_ACEOF 13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_compile in -lpcap" >&5 13018$as_echo_n "checking for pcap_compile in -lpcap... " >&6; } 13019if ${ac_cv_lib_pcap_pcap_compile+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 ac_check_lib_save_LIBS=$LIBS 13023LIBS="-lpcap $LIBS" 13024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13025/* end confdefs.h. */ 13026 13027/* Override any GCC internal prototype to avoid an error. 13028 Use char because int might match the return type of a GCC 13029 builtin and then its argument prototype would still apply. */ 13030#ifdef __cplusplus 13031extern "C" 13032#endif 13033char pcap_compile (); 13034int 13035main () 13036{ 13037return pcap_compile (); 13038 ; 13039 return 0; 13040} 13041_ACEOF 13042if ac_fn_c_try_link "$LINENO"; then : 13043 ac_cv_lib_pcap_pcap_compile=yes 13044else 13045 ac_cv_lib_pcap_pcap_compile=no 13046fi 13047rm -f core conftest.err conftest.$ac_objext \ 13048 conftest$ac_exeext conftest.$ac_ext 13049LIBS=$ac_check_lib_save_LIBS 13050fi 13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_compile" >&5 13052$as_echo "$ac_cv_lib_pcap_pcap_compile" >&6; } 13053if test "x$ac_cv_lib_pcap_pcap_compile" = xyes; then : 13054 HAVE_PCAP=-DHAVE_PCAP 13055 PCAP_LIBS=-lpcap 13056 13057fi 13058 13059 break 13060fi 13061 13062done 13063 13064 for ac_header in pcap.h pcap/pcap.h 13065do : 13066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13069 cat >>confdefs.h <<_ACEOF 13070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13071_ACEOF 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_compile in -lwpcap" >&5 13073$as_echo_n "checking for pcap_compile in -lwpcap... " >&6; } 13074if ${ac_cv_lib_wpcap_pcap_compile+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 ac_check_lib_save_LIBS=$LIBS 13078LIBS="-lwpcap $LIBS" 13079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081 13082/* Override any GCC internal prototype to avoid an error. 13083 Use char because int might match the return type of a GCC 13084 builtin and then its argument prototype would still apply. */ 13085#ifdef __cplusplus 13086extern "C" 13087#endif 13088char pcap_compile (); 13089int 13090main () 13091{ 13092return pcap_compile (); 13093 ; 13094 return 0; 13095} 13096_ACEOF 13097if ac_fn_c_try_link "$LINENO"; then : 13098 ac_cv_lib_wpcap_pcap_compile=yes 13099else 13100 ac_cv_lib_wpcap_pcap_compile=no 13101fi 13102rm -f core conftest.err conftest.$ac_objext \ 13103 conftest$ac_exeext conftest.$ac_ext 13104LIBS=$ac_check_lib_save_LIBS 13105fi 13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_compile" >&5 13107$as_echo "$ac_cv_lib_wpcap_pcap_compile" >&6; } 13108if test "x$ac_cv_lib_wpcap_pcap_compile" = xyes; then : 13109 HAVE_PCAP=-DHAVE_PCAP 13110 PCAP_LIBS=-lwpcap 13111 13112fi 13113 13114 break 13115fi 13116 13117done 13118 13119 if test x"$enable_pcap" = xyes ; then 13120 if test x"$ac_cv_lib_pcap_pcap_compile" != xyes ; then 13121 if test x"$ac_cv_lib_wpcap_pcap_compile" != xyes; then 13122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13124as_fn_error $? "PCAP not installed/usable 13125See \`config.log' for more details" "$LINENO" 5; } 13126 fi 13127 fi 13128 fi 13129else 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: PCAP check disabled" >&5 13131$as_echo "$as_me: PCAP check disabled" >&6;} 13132fi 13133 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13135$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13136if ${ac_cv_header_time+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141#include <sys/types.h> 13142#include <sys/time.h> 13143#include <time.h> 13144 13145int 13146main () 13147{ 13148if ((struct tm *) 0) 13149return 0; 13150 ; 13151 return 0; 13152} 13153_ACEOF 13154if ac_fn_c_try_compile "$LINENO"; then : 13155 ac_cv_header_time=yes 13156else 13157 ac_cv_header_time=no 13158fi 13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13160fi 13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13162$as_echo "$ac_cv_header_time" >&6; } 13163if test $ac_cv_header_time = yes; then 13164 13165$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13166 13167fi 13168 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 13170$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 13171if ${gcc_cv_header_string+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176#include <string.h> 13177#include <strings.h> 13178int 13179main () 13180{ 13181 13182 ; 13183 return 0; 13184} 13185_ACEOF 13186if ac_fn_c_try_compile "$LINENO"; then : 13187 gcc_cv_header_string=yes 13188else 13189 gcc_cv_header_string=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13192fi 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 13194$as_echo "$gcc_cv_header_string" >&6; } 13195if test $gcc_cv_header_string = yes; then 13196 13197$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 13198 13199fi 13200 13201LIBS_ORIG="$LIBS" 13202CFLAGS_ORIG="$CFLAGS" 13203LIBS="$OPENSSL_LIBS $COMMONCRYPTO_LIBS $LIBS" 13204CFLAGS="$OPENSSL_CFLAGS $CFLAGS" 13205if test "$with_commoncrypto" = yes; then : 13206 13207$as_echo "#define HAVE_SHA256 1" >>confdefs.h 13208 13209fi 13210for ac_func in SHA256 WHIRLPOOL RIPEMD160 AES_encrypt DSA_get0_pqg 13211do : 13212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13213ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13214if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13215 cat >>confdefs.h <<_ACEOF 13216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13217_ACEOF 13218 13219fi 13220done 13221 13222LIBS="$LIBS_ORIG" 13223CFLAGS="$CFLAGS_ORIG" 13224 13225cat >confcache <<\_ACEOF 13226# This file is a shell script that caches the results of configure 13227# tests run on this system so they can be shared between configure 13228# scripts and configure runs, see configure's option --config-cache. 13229# It is not useful on other systems. If it contains results you don't 13230# want to keep, you may remove or edit it. 13231# 13232# config.status only pays attention to the cache file if you give it 13233# the --recheck option to rerun configure. 13234# 13235# `ac_cv_env_foo' variables (set or unset) will be overridden when 13236# loading this file, other *unset* `ac_cv_foo' will be assigned the 13237# following values. 13238 13239_ACEOF 13240 13241# The following way of writing the cache mishandles newlines in values, 13242# but we know of no workaround that is simple, portable, and efficient. 13243# So, we kill variables containing newlines. 13244# Ultrix sh set writes to stderr and can't be redirected directly, 13245# and sets the high bit in the cache file unless we assign to the vars. 13246( 13247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13248 eval ac_val=\$$ac_var 13249 case $ac_val in #( 13250 *${as_nl}*) 13251 case $ac_var in #( 13252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13254 esac 13255 case $ac_var in #( 13256 _ | IFS | as_nl) ;; #( 13257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13258 *) { eval $ac_var=; unset $ac_var;} ;; 13259 esac ;; 13260 esac 13261 done 13262 13263 (set) 2>&1 | 13264 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13265 *${as_nl}ac_space=\ *) 13266 # `set' does not quote correctly, so add quotes: double-quote 13267 # substitution turns \\\\ into \\, and sed turns \\ into \. 13268 sed -n \ 13269 "s/'/'\\\\''/g; 13270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13271 ;; #( 13272 *) 13273 # `set' quotes correctly as required by POSIX, so do not add quotes. 13274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13275 ;; 13276 esac | 13277 sort 13278) | 13279 sed ' 13280 /^ac_cv_env_/b end 13281 t clear 13282 :clear 13283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13284 t end 13285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13286 :end' >>confcache 13287if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13288 if test -w "$cache_file"; then 13289 if test "x$cache_file" != "x/dev/null"; then 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13291$as_echo "$as_me: updating cache $cache_file" >&6;} 13292 if test ! -f "$cache_file" || test -h "$cache_file"; then 13293 cat confcache >"$cache_file" 13294 else 13295 case $cache_file in #( 13296 */* | ?:*) 13297 mv -f confcache "$cache_file"$$ && 13298 mv -f "$cache_file"$$ "$cache_file" ;; #( 13299 *) 13300 mv -f confcache "$cache_file" ;; 13301 esac 13302 fi 13303 fi 13304 else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13306$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13307 fi 13308fi 13309rm -f confcache 13310 13311 13312 13313 OPENMP_CFLAGS= 13314 # Check whether --enable-openmp was given. 13315if test "${enable_openmp+set}" = set; then : 13316 enableval=$enable_openmp; 13317fi 13318 13319 if test "$enable_openmp" != no; then 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 13321$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 13322if ${ac_cv_prog_c_openmp+:} false; then : 13323 $as_echo_n "(cached) " >&6 13324else 13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13326/* end confdefs.h. */ 13327 13328#ifndef _OPENMP 13329 choke me 13330#endif 13331#include <omp.h> 13332int main () { return omp_get_num_threads (); } 13333 13334_ACEOF 13335if ac_fn_c_try_link "$LINENO"; then : 13336 ac_cv_prog_c_openmp='none needed' 13337else 13338 ac_cv_prog_c_openmp='unsupported' 13339 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 13340 -Popenmp --openmp; do 13341 ac_save_CFLAGS=$CFLAGS 13342 CFLAGS="$CFLAGS $ac_option" 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346#ifndef _OPENMP 13347 choke me 13348#endif 13349#include <omp.h> 13350int main () { return omp_get_num_threads (); } 13351 13352_ACEOF 13353if ac_fn_c_try_link "$LINENO"; then : 13354 ac_cv_prog_c_openmp=$ac_option 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358 CFLAGS=$ac_save_CFLAGS 13359 if test "$ac_cv_prog_c_openmp" != unsupported; then 13360 break 13361 fi 13362 done 13363fi 13364rm -f core conftest.err conftest.$ac_objext \ 13365 conftest$ac_exeext conftest.$ac_ext 13366fi 13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 13368$as_echo "$ac_cv_prog_c_openmp" >&6; } 13369 case $ac_cv_prog_c_openmp in #( 13370 "none needed" | unsupported) 13371 ;; #( 13372 *) 13373 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 13374 esac 13375 fi 13376 13377 13378 13379if test "x$cross_compiling" = xno -a "x$enable_opencl" != xno; then : 13380 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional paths for OpenCL" >&5 13382$as_echo_n "checking additional paths for OpenCL... " >&6; } 13383 ADD_LDFLAGS="" 13384 ADD_CFLAGS="" 13385 if test -n "$AMDAPPSDKROOT"; then 13386 if test -d "$AMDAPPSDKROOT/include"; then 13387 ADD_CFLAGS="$ADD_CFLAGS -I$AMDAPPSDKROOT/include" 13388 fi 13389 if test $CPU_BIT_STR = 64 -a -d "$AMDAPPSDKROOT/lib/x86_64" ; then 13390 ADD_LDFLAGS="$ADD_LDFLAGS -L$AMDAPPSDKROOT/lib/x86_64" 13391 elif test $CPU_BIT_STR = 32 -a -d "$AMDAPPSDKROOT/lib/x86" ; then 13392 ADD_LDFLAGS="$ADD_LDFLAGS -L$AMDAPPSDKROOT/lib/x86" 13393 elif test -d "$AMDAPPSDKROOT/lib"; then 13394 ADD_LDFLAGS="$ADD_LDFLAGS -L$AMDAPPSDKROOT/lib" 13395 fi 13396 fi 13397 if test -n "$ATISTREAMSDKROOT"; then 13398 if test -d "$ATISTREAMSDKROOT/include"; then 13399 ADD_CFLAGS="$ADD_CFLAGS -I$ATISTREAMSDKROOT/include" 13400 fi 13401 if test $CPU_BIT_STR = 64 -a -d "$ATISTREAMSDKROOT/lib/x86_64" ; then 13402 ADD_LDFLAGS="$ADD_LDFLAGS -L$ATISTREAMSDKROOT/lib/x86_64" 13403 elif test $CPU_BIT_STR = 32 -a -d "$ATISTREAMSDKROOT/lib/x86" ; then 13404 ADD_LDFLAGS="$ADD_LDFLAGS -L$ATISTREAMSDKROOT/lib/x86" 13405 elif test -d "$ATISTREAMSDKROOT/lib"; then 13406 ADD_LDFLAGS="$ADD_LDFLAGS -L$ATISTREAMSDKROOT/lib" 13407 fi 13408 fi 13409 13410 for i in $ADD_CFLAGS; do 13411 jtr_list_add_dupe=0 13412 for j in $CPPFLAGS; do 13413 if test "x$i" = "x$j"; then 13414 jtr_list_add_dupe=1 13415 break 13416 fi 13417 done 13418 if test $jtr_list_add_dupe = 0; then 13419 CPPFLAGS="$CPPFLAGS $i" 13420 jtr_list_add_result="$jtr_list_add_result $i" 13421 fi 13422 done 13423 # no typo here 13424 jtr_list_add_result="" 13425 13426 for i in $ADD_LDFLAGS; do 13427 jtr_list_add_dupe=0 13428 for j in $LDFLAGS; do 13429 if test "x$i" = "x$j"; then 13430 jtr_list_add_dupe=1 13431 break 13432 fi 13433 done 13434 if test $jtr_list_add_dupe = 0; then 13435 LDFLAGS="$LDFLAGS $i" 13436 jtr_list_add_result="$jtr_list_add_result $i" 13437 fi 13438 done 13439 13440 13441 for i in $ADD_CFLAGS; do 13442 jtr_list_add_dupe=0 13443 for j in $CFLAGS; do 13444 if test "x$i" = "x$j"; then 13445 jtr_list_add_dupe=1 13446 break 13447 fi 13448 done 13449 if test $jtr_list_add_dupe = 0; then 13450 CFLAGS="$CFLAGS $i" 13451 jtr_list_add_result="$jtr_list_add_result $i" 13452 fi 13453 done 13454 13455 13456 if test -z "$jtr_list_add_result"; then : 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13458$as_echo "none" >&6; } 13459else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jtr_list_add_result" >&5 13461$as_echo "$jtr_list_add_result" >&6; } 13462fi 13463 jtr_list_add_result="" 13464 13465 13466fi 13467 13468 13469ac_ext=c 13470ac_cpp='$CPP $CPPFLAGS' 13471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13473ac_compiler_gnu=$ac_cv_c_compiler_gnu 13474 13475ax_pthread_ok=no 13476 13477# We used to check for pthread.h first, but this fails if pthread.h 13478# requires special compiler flags (e.g. on True64 or Sequent). 13479# It gets checked for in the link test anyway. 13480 13481# First of all, check if the user has set any of the PTHREAD_LIBS, 13482# etcetera environment variables, and if threads linking works using 13483# them: 13484if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 13485 save_CFLAGS="$CFLAGS" 13486 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13487 save_LIBS="$LIBS" 13488 LIBS="$PTHREAD_LIBS $LIBS" 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 13490$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13492/* end confdefs.h. */ 13493 13494/* Override any GCC internal prototype to avoid an error. 13495 Use char because int might match the return type of a GCC 13496 builtin and then its argument prototype would still apply. */ 13497#ifdef __cplusplus 13498extern "C" 13499#endif 13500char pthread_join (); 13501int 13502main () 13503{ 13504return pthread_join (); 13505 ; 13506 return 0; 13507} 13508_ACEOF 13509if ac_fn_c_try_link "$LINENO"; then : 13510 ax_pthread_ok=yes 13511fi 13512rm -f core conftest.err conftest.$ac_objext \ 13513 conftest$ac_exeext conftest.$ac_ext 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13515$as_echo "$ax_pthread_ok" >&6; } 13516 if test x"$ax_pthread_ok" = xno; then 13517 PTHREAD_LIBS="" 13518 PTHREAD_CFLAGS="" 13519 fi 13520 LIBS="$save_LIBS" 13521 CFLAGS="$save_CFLAGS" 13522fi 13523 13524# We must check for the threads library under a number of different 13525# names; the ordering is very important because some systems 13526# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13527# libraries is broken (non-POSIX). 13528 13529# Create a list of thread flags to try. Items starting with a "-" are 13530# C compiler flags, and other items are library names, except for "none" 13531# which indicates that we try without any flags at all, and "pthread-config" 13532# which is a program returning the flags for the Pth emulation library. 13533 13534ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 13535 13536# The ordering *is* (sometimes) important. Some notes on the 13537# individual items follow: 13538 13539# pthreads: AIX (must check this before -lpthread) 13540# none: in case threads are in libc; should be tried before -Kthread and 13541# other compiler flags to prevent continual compiler warnings 13542# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13543# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13544# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13545# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 13546# -pthreads: Solaris/gcc 13547# -mthreads: Mingw32/gcc, Lynx/gcc 13548# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13549# doesn't hurt to check since this sometimes defines pthreads too; 13550# also defines -D_REENTRANT) 13551# ... -mt is also the pthreads flag for HP/aCC 13552# pthread: Linux, etcetera 13553# --thread-safe: KAI C++ 13554# pthread-config: use pthread-config program (for GNU Pth library) 13555 13556case ${host_os} in 13557 solaris*) 13558 13559 # On Solaris (at least, for some versions), libc contains stubbed 13560 # (non-functional) versions of the pthreads routines, so link-based 13561 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 13562 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 13563 # a function called by this macro, so we could check for that, but 13564 # who knows whether they'll stub that too in a future libc.) So, 13565 # we'll just look for -pthreads and -lpthread first: 13566 13567 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 13568 ;; 13569 13570 darwin*) 13571 ax_pthread_flags="-pthread $ax_pthread_flags" 13572 ;; 13573esac 13574 13575# Clang doesn't consider unrecognized options an error unless we specify 13576# -Werror. We throw in some extra Clang-specific options to ensure that 13577# this doesn't happen for GCC, which also accepts -Werror. 13578 13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 13580$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 13581save_CFLAGS="$CFLAGS" 13582ax_pthread_extra_flags="-Werror" 13583CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 13584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13585/* end confdefs.h. */ 13586int foo(void); 13587int 13588main () 13589{ 13590foo() 13591 ; 13592 return 0; 13593} 13594_ACEOF 13595if ac_fn_c_try_compile "$LINENO"; then : 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13597$as_echo "yes" >&6; } 13598else 13599 ax_pthread_extra_flags= 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13601$as_echo "no" >&6; } 13602fi 13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13604CFLAGS="$save_CFLAGS" 13605 13606if test x"$ax_pthread_ok" = xno; then 13607for flag in $ax_pthread_flags; do 13608 13609 case $flag in 13610 none) 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13612$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13613 ;; 13614 13615 -*) 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 13617$as_echo_n "checking whether pthreads work with $flag... " >&6; } 13618 PTHREAD_CFLAGS="$flag" 13619 ;; 13620 13621 pthread-config) 13622 # Extract the first word of "pthread-config", so it can be a program name with args. 13623set dummy pthread-config; ac_word=$2 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13625$as_echo_n "checking for $ac_word... " >&6; } 13626if ${ac_cv_prog_ax_pthread_config+:} false; then : 13627 $as_echo_n "(cached) " >&6 13628else 13629 if test -n "$ax_pthread_config"; then 13630 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 13631else 13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13633for as_dir in $PATH 13634do 13635 IFS=$as_save_IFS 13636 test -z "$as_dir" && as_dir=. 13637 for ac_exec_ext in '' $ac_executable_extensions; do 13638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13639 ac_cv_prog_ax_pthread_config="yes" 13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13641 break 2 13642 fi 13643done 13644 done 13645IFS=$as_save_IFS 13646 13647 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 13648fi 13649fi 13650ax_pthread_config=$ac_cv_prog_ax_pthread_config 13651if test -n "$ax_pthread_config"; then 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 13653$as_echo "$ax_pthread_config" >&6; } 13654else 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13656$as_echo "no" >&6; } 13657fi 13658 13659 13660 if test x"$ax_pthread_config" = xno; then continue; fi 13661 PTHREAD_CFLAGS="`pthread-config --cflags`" 13662 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13663 ;; 13664 13665 *) 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 13667$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 13668 PTHREAD_LIBS="-l$flag" 13669 ;; 13670 esac 13671 13672 save_LIBS="$LIBS" 13673 save_CFLAGS="$CFLAGS" 13674 LIBS="$PTHREAD_LIBS $LIBS" 13675 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 13676 13677 # Check for various functions. We must include pthread.h, 13678 # since some functions may be macros. (On the Sequent, we 13679 # need a special flag -Kthread to make this header compile.) 13680 # We check for pthread_join because it is in -lpthread on IRIX 13681 # while pthread_create is in libc. We check for pthread_attr_init 13682 # due to DEC craziness with -lpthreads. We check for 13683 # pthread_cleanup_push because it is one of the few pthread 13684 # functions on Solaris that doesn't have a non-functional libc stub. 13685 # We try pthread_create on general principles. 13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13687/* end confdefs.h. */ 13688#include <pthread.h> 13689 static void routine(void *a) { a = 0; } 13690 static void *start_routine(void *a) { return a; } 13691int 13692main () 13693{ 13694pthread_t th; pthread_attr_t attr; 13695 pthread_create(&th, 0, start_routine, 0); 13696 pthread_join(th, 0); 13697 pthread_attr_init(&attr); 13698 pthread_cleanup_push(routine, 0); 13699 pthread_cleanup_pop(0) /* ; */ 13700 ; 13701 return 0; 13702} 13703_ACEOF 13704if ac_fn_c_try_link "$LINENO"; then : 13705 ax_pthread_ok=yes 13706fi 13707rm -f core conftest.err conftest.$ac_objext \ 13708 conftest$ac_exeext conftest.$ac_ext 13709 13710 LIBS="$save_LIBS" 13711 CFLAGS="$save_CFLAGS" 13712 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13714$as_echo "$ax_pthread_ok" >&6; } 13715 if test "x$ax_pthread_ok" = xyes; then 13716 break; 13717 fi 13718 13719 PTHREAD_LIBS="" 13720 PTHREAD_CFLAGS="" 13721done 13722fi 13723 13724# Various other checks: 13725if test "x$ax_pthread_ok" = xyes; then 13726 save_LIBS="$LIBS" 13727 LIBS="$PTHREAD_LIBS $LIBS" 13728 save_CFLAGS="$CFLAGS" 13729 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13730 13731 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 13733$as_echo_n "checking for joinable pthread attribute... " >&6; } 13734 attr_name=unknown 13735 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738#include <pthread.h> 13739int 13740main () 13741{ 13742int attr = $attr; return attr /* ; */ 13743 ; 13744 return 0; 13745} 13746_ACEOF 13747if ac_fn_c_try_link "$LINENO"; then : 13748 attr_name=$attr; break 13749fi 13750rm -f core conftest.err conftest.$ac_objext \ 13751 conftest$ac_exeext conftest.$ac_ext 13752 done 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 13754$as_echo "$attr_name" >&6; } 13755 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 13756 13757cat >>confdefs.h <<_ACEOF 13758#define PTHREAD_CREATE_JOINABLE $attr_name 13759_ACEOF 13760 13761 fi 13762 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 13764$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 13765 flag=no 13766 case ${host_os} in 13767 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 13768 osf* | hpux*) flag="-D_REENTRANT";; 13769 solaris*) 13770 if test "$GCC" = "yes"; then 13771 flag="-D_REENTRANT" 13772 else 13773 # TODO: What about Clang on Solaris? 13774 flag="-mt -D_REENTRANT" 13775 fi 13776 ;; 13777 esac 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 13779$as_echo "$flag" >&6; } 13780 if test "x$flag" != xno; then 13781 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 13782 fi 13783 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 13785$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 13786if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 13787 $as_echo_n "(cached) " >&6 13788else 13789 13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13791/* end confdefs.h. */ 13792#include <pthread.h> 13793int 13794main () 13795{ 13796int i = PTHREAD_PRIO_INHERIT; 13797 ; 13798 return 0; 13799} 13800_ACEOF 13801if ac_fn_c_try_link "$LINENO"; then : 13802 ax_cv_PTHREAD_PRIO_INHERIT=yes 13803else 13804 ax_cv_PTHREAD_PRIO_INHERIT=no 13805fi 13806rm -f core conftest.err conftest.$ac_objext \ 13807 conftest$ac_exeext conftest.$ac_ext 13808 13809fi 13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 13811$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 13812 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 13813 13814$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 13815 13816fi 13817 13818 LIBS="$save_LIBS" 13819 CFLAGS="$save_CFLAGS" 13820 13821 # More AIX lossage: compile with *_r variant 13822 if test "x$GCC" != xyes; then 13823 case $host_os in 13824 aix*) 13825 case "x/$CC" in #( 13826 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 13827 #handle absolute path differently from PATH based program lookup 13828 case "x$CC" in #( 13829 x/*) : 13830 if as_fn_executable_p ${CC}_r; then : 13831 PTHREAD_CC="${CC}_r" 13832fi ;; #( 13833 *) : 13834 for ac_prog in ${CC}_r 13835do 13836 # Extract the first word of "$ac_prog", so it can be a program name with args. 13837set dummy $ac_prog; ac_word=$2 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13839$as_echo_n "checking for $ac_word... " >&6; } 13840if ${ac_cv_prog_PTHREAD_CC+:} false; then : 13841 $as_echo_n "(cached) " >&6 13842else 13843 if test -n "$PTHREAD_CC"; then 13844 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 13845else 13846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13847for as_dir in $PATH 13848do 13849 IFS=$as_save_IFS 13850 test -z "$as_dir" && as_dir=. 13851 for ac_exec_ext in '' $ac_executable_extensions; do 13852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13853 ac_cv_prog_PTHREAD_CC="$ac_prog" 13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13855 break 2 13856 fi 13857done 13858 done 13859IFS=$as_save_IFS 13860 13861fi 13862fi 13863PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 13864if test -n "$PTHREAD_CC"; then 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 13866$as_echo "$PTHREAD_CC" >&6; } 13867else 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13869$as_echo "no" >&6; } 13870fi 13871 13872 13873 test -n "$PTHREAD_CC" && break 13874done 13875test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 13876 ;; 13877esac ;; #( 13878 *) : 13879 ;; 13880esac 13881 ;; 13882 esac 13883 fi 13884fi 13885 13886test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 13887 13888 13889 13890 13891 13892# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13893if test x"$ax_pthread_ok" = xyes; then 13894 13895$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 13896 13897 : 13898else 13899 ax_pthread_ok=no 13900 13901fi 13902ac_ext=c 13903ac_cpp='$CPP $CPPFLAGS' 13904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13906ac_compiler_gnu=$ac_cv_c_compiler_gnu 13907 13908 13909 13910# Check whether --enable-opencl was given. 13911if test "${enable_opencl+set}" = set; then : 13912 enableval=$enable_opencl; disable_opencl=$enableval 13913else 13914 disable_opencl='yes' 13915fi 13916 13917 13918CPPFLAGS="$CPPFLAGS -DCL_SILENCE_DEPRECATION" 13919 13920if test "$disable_opencl" = 'yes'; then 13921 ac_ext=c 13922ac_cpp='$CPP $CPPFLAGS' 13923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13925ac_compiler_gnu=$ac_cv_c_compiler_gnu 13926 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 13928$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 13929if ${ax_cv_c_compiler_ms+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934 13935int 13936main () 13937{ 13938#ifndef _MSC_VER 13939 choke me 13940#endif 13941 13942 ; 13943 return 0; 13944} 13945_ACEOF 13946if ac_fn_c_try_compile "$LINENO"; then : 13947 ax_compiler_ms=yes 13948else 13949 ax_compiler_ms=no 13950fi 13951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13952ax_cv_c_compiler_ms=$ax_compiler_ms 13953 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 13956$as_echo "$ax_cv_c_compiler_ms" >&6; } 13957 if test X$ax_compiler_ms = Xno; then : 13958 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 13959fi 13960 13961 ax_save_CPPFLAGS=$CPPFLAGS 13962 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 13963 for ac_header in CL/cl.h OpenCL/cl.h 13964do : 13965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13968 cat >>confdefs.h <<_ACEOF 13969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13970_ACEOF 13971 13972fi 13973 13974done 13975 13976 CPPFLAGS=$ax_save_CPPFLAGS 13977 13978 for ac_header in windows.h 13979do : 13980 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 13981if test "x$ac_cv_header_windows_h" = xyes; then : 13982 cat >>confdefs.h <<_ACEOF 13983#define HAVE_WINDOWS_H 1 13984_ACEOF 13985 13986fi 13987 13988done 13989 13990 13991 13992 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 13994$as_echo_n "checking for OpenCL library... " >&6; } 13995if ${ax_cv_check_cl_libcl+:} false; then : 13996 $as_echo_n "(cached) " >&6 13997else 13998 ax_cv_check_cl_libcl=no 13999 case $host_cpu in 14000 x86_64) ax_check_cl_libdir=lib64 ;; 14001 *) ax_check_cl_libdir=lib ;; 14002 esac 14003 ax_save_CPPFLAGS=$CPPFLAGS 14004 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 14005 ax_save_LIBS=$LIBS 14006 LIBS="" 14007 ax_check_libs="-lOpenCL -lCL -lclparser -lpocl" 14008 for ax_lib in $ax_check_libs; do 14009 if test X$ax_compiler_ms = Xyes; then : 14010 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 14011else 14012 ax_try_lib=$ax_lib 14013fi 14014 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017 14018 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 14019 # include <windows.h> 14020 # endif 14021 # ifdef HAVE_CL_CL_H 14022 # include <CL/cl.h> 14023 # elif defined(HAVE_OPENCL_CL_H) 14024 # include <OpenCL/cl.h> 14025 # else 14026 # error no CL.h 14027 # endif 14028int 14029main () 14030{ 14031clCreateContextFromType(0,0,0,0,0) 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036if ac_fn_c_try_link "$LINENO"; then : 14037 ax_cv_check_cl_libcl=$ax_try_lib; break 14038else 14039 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042 14043 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 14044 # include <windows.h> 14045 # endif 14046 # ifdef HAVE_CL_CL_H 14047 # include <CL/cl.h> 14048 # elif defined(HAVE_OPENCL_CL_H) 14049 # include <OpenCL/cl.h> 14050 # else 14051 # error no CL.h 14052 # endif 14053int 14054main () 14055{ 14056clCreateContextFromType(0,0,0,0,0) 14057 ; 14058 return 0; 14059} 14060_ACEOF 14061if ac_fn_c_try_link "$LINENO"; then : 14062 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 14063else 14064 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" 14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14066/* end confdefs.h. */ 14067 14068 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 14069 # include <windows.h> 14070 # endif 14071 # ifdef HAVE_CL_CL_H 14072 # include <CL/cl.h> 14073 # elif defined(HAVE_OPENCL_CL_H) 14074 # include <OpenCL/cl.h> 14075 # else 14076 # error no CL.h 14077 # endif 14078int 14079main () 14080{ 14081clCreateContextFromType(0,0,0,0,0) 14082 ; 14083 return 0; 14084} 14085_ACEOF 14086if ac_fn_c_try_link "$LINENO"; then : 14087 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 14088fi 14089rm -f core conftest.err conftest.$ac_objext \ 14090 conftest$ac_exeext conftest.$ac_ext 14091fi 14092rm -f core conftest.err conftest.$ac_objext \ 14093 conftest$ac_exeext conftest.$ac_ext 14094fi 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext conftest.$ac_ext 14097 done 14098 14099 if test "X$ax_cv_check_cl_libcl" = Xno; then : 14100 LIBS='-Wl,-framework,OpenCL' 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103 14104 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 14105 # include <windows.h> 14106 # endif 14107 # ifdef HAVE_CL_CL_H 14108 # include <CL/cl.h> 14109 # elif defined(HAVE_OPENCL_CL_H) 14110 # include <OpenCL/cl.h> 14111 # else 14112 # error no CL.h 14113 # endif 14114int 14115main () 14116{ 14117clCreateContextFromType(0,0,0,0,0) 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 ax_cv_check_cl_libcl=$LIBS 14124fi 14125rm -f core conftest.err conftest.$ac_objext \ 14126 conftest$ac_exeext conftest.$ac_ext 14127fi 14128 14129 LIBS=$ax_save_LIBS 14130 CPPFLAGS=$ax_save_CPPFLAGS 14131fi 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 14133$as_echo "$ax_cv_check_cl_libcl" >&6; } 14134 14135 if test "X$ax_cv_check_cl_libcl" = Xno; then : 14136 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 14137else 14138 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 14139$as_echo "#define _OPENCL 1" >>confdefs.h 14140 14141fi 14142 ac_ext=c 14143ac_cpp='$CPP $CPPFLAGS' 14144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14146ac_compiler_gnu=$ac_cv_c_compiler_gnu 14147 14148fi 14149 14150 14151 14152 14153if test "x$CL_LIBS" = x; then 14154 using_cl=no 14155else 14156 using_cl=yes 14157 HAVE_OPENCL=-DHAVE_OPENCL 14158fi 14159 14160 14161 14162# Check whether --enable-ztex was given. 14163if test "${enable_ztex+set}" = set; then : 14164 enableval=$enable_ztex; ztex=$enableval 14165else 14166 ztex=no 14167fi 14168 14169 14170ZTEX_SUBDIRS="" 14171ZTEX_LIBS="" 14172 14173if test "x$ztex" = xyes; then 14174 14175ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default" 14176if test "x$ac_cv_header_libusb_1_0_libusb_h" = xyes; then : 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb-1.0" >&5 14178$as_echo_n "checking for libusb_init in -lusb-1.0... " >&6; } 14179if ${ac_cv_lib_usb_1_0_libusb_init+:} false; then : 14180 $as_echo_n "(cached) " >&6 14181else 14182 ac_check_lib_save_LIBS=$LIBS 14183LIBS="-lusb-1.0 $LIBS" 14184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14185/* end confdefs.h. */ 14186 14187/* Override any GCC internal prototype to avoid an error. 14188 Use char because int might match the return type of a GCC 14189 builtin and then its argument prototype would still apply. */ 14190#ifdef __cplusplus 14191extern "C" 14192#endif 14193char libusb_init (); 14194int 14195main () 14196{ 14197return libusb_init (); 14198 ; 14199 return 0; 14200} 14201_ACEOF 14202if ac_fn_c_try_link "$LINENO"; then : 14203 ac_cv_lib_usb_1_0_libusb_init=yes 14204else 14205 ac_cv_lib_usb_1_0_libusb_init=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext \ 14208 conftest$ac_exeext conftest.$ac_ext 14209LIBS=$ac_check_lib_save_LIBS 14210fi 14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_init" >&5 14212$as_echo "$ac_cv_lib_usb_1_0_libusb_init" >&6; } 14213if test "x$ac_cv_lib_usb_1_0_libusb_init" = xyes; then : 14214 cat >>confdefs.h <<_ACEOF 14215#define HAVE_LIBUSB_1_0 1 14216_ACEOF 14217 14218 LIBS="-lusb-1.0 $LIBS" 14219 14220else 14221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14223as_fn_error $? "ZTEX USB-FPGA module requires libusb-1.0. 14224See \`config.log' for more details" "$LINENO" 5; } 14225 14226fi 14227 14228else 14229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14231as_fn_error $? "ZTEX USB-FPGA module requires libusb-1.0. 14232See \`config.log' for more details" "$LINENO" 5; } 14233 14234fi 14235 14236 14237 14238ac_config_files="$ac_config_files ztex/Makefile ztex/pkt_comm/Makefile" 14239 14240 14241ZTEX_SUBDIRS="ztex" 14242ZTEX_LIBS="ztex/*.o ztex/pkt_comm/*.o -lusb-1.0" 14243 14244fi 14245 14246 14247 14248 14249 14250for ac_header in arpa/inet.h crypt.h dirent.h fcntl.h limits.h locale.h \ 14251 malloc.h net/ethernet.h netdb.h netinet/in.h \ 14252 netinet/in_systm.h string.h strings.h \ 14253 sys/ethernet.h sys/file.h sys/param.h sys/socket.h \ 14254 sys/time.h sys/times.h sys/types.h termios.h \ 14255 unistd.h unixlib/local.h windows.h 14256do : 14257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14258ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14259if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14260 cat >>confdefs.h <<_ACEOF 14261#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14262_ACEOF 14263 14264fi 14265 14266done 14267 14268for ac_header in net/if.h 14269do : 14270 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 14271#ifdef HAVE_SYS_SOCKET_H 14272#include <sys/socket.h> 14273#endif 14274#ifdef HAVE_SYS_TYPES_H 14275#include <sys/types.h> 14276#endif 14277 14278" 14279if test "x$ac_cv_header_net_if_h" = xyes; then : 14280 cat >>confdefs.h <<_ACEOF 14281#define HAVE_NET_IF_H 1 14282_ACEOF 14283 14284fi 14285 14286done 14287 14288for ac_header in net/if_arp.h 14289do : 14290 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" " 14291#ifdef HAVE_SYS_SOCKET_H 14292#include <sys/socket.h> 14293#endif 14294#ifdef HAVE_SYS_TYPES_H 14295#include <sys/types.h> 14296#endif 14297#ifdef HAVE_NET_IF_H 14298#include <net/if.h> 14299#endif 14300 14301" 14302if test "x$ac_cv_header_net_if_arp_h" = xyes; then : 14303 cat >>confdefs.h <<_ACEOF 14304#define HAVE_NET_IF_ARP_H 1 14305_ACEOF 14306 14307fi 14308 14309done 14310 14311for ac_header in netinet/if_ether.h 14312do : 14313 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" " 14314#ifdef HAVE_SYS_SOCKET_H 14315#include <sys/socket.h> 14316#endif 14317#ifdef HAVE_ARPA_INET_H 14318#include <arpa/inet.h> 14319#endif 14320#ifdef HAVE_SYS_TYPES_H 14321#include <sys/types.h> 14322#endif 14323#ifdef HAVE_NET_IF_ARP_H 14324#include <net/if_arp.h> 14325#endif 14326#ifdef HAVE_NET_IF_H 14327#include <net/if.h> 14328#endif 14329 14330" 14331if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then : 14332 cat >>confdefs.h <<_ACEOF 14333#define HAVE_NETINET_IF_ETHER_H 1 14334_ACEOF 14335 14336fi 14337 14338done 14339 14340for ac_header in netinet/ip.h 14341do : 14342 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" " 14343#ifdef HAVE_SYS_TYPES_H 14344#include <sys/types.h> 14345#endif 14346#ifdef HAVE_NETINET_IN_SYSTM_H 14347#include <netinet/in_systm.h> 14348#endif 14349#ifdef HAVE_NETINET_IN_H 14350#include <netinet/in.h> 14351#endif 14352 14353" 14354if test "x$ac_cv_header_netinet_ip_h" = xyes; then : 14355 cat >>confdefs.h <<_ACEOF 14356#define HAVE_NETINET_IP_H 1 14357_ACEOF 14358 14359fi 14360 14361done 14362 14363cat >confcache <<\_ACEOF 14364# This file is a shell script that caches the results of configure 14365# tests run on this system so they can be shared between configure 14366# scripts and configure runs, see configure's option --config-cache. 14367# It is not useful on other systems. If it contains results you don't 14368# want to keep, you may remove or edit it. 14369# 14370# config.status only pays attention to the cache file if you give it 14371# the --recheck option to rerun configure. 14372# 14373# `ac_cv_env_foo' variables (set or unset) will be overridden when 14374# loading this file, other *unset* `ac_cv_foo' will be assigned the 14375# following values. 14376 14377_ACEOF 14378 14379# The following way of writing the cache mishandles newlines in values, 14380# but we know of no workaround that is simple, portable, and efficient. 14381# So, we kill variables containing newlines. 14382# Ultrix sh set writes to stderr and can't be redirected directly, 14383# and sets the high bit in the cache file unless we assign to the vars. 14384( 14385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14386 eval ac_val=\$$ac_var 14387 case $ac_val in #( 14388 *${as_nl}*) 14389 case $ac_var in #( 14390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14392 esac 14393 case $ac_var in #( 14394 _ | IFS | as_nl) ;; #( 14395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14396 *) { eval $ac_var=; unset $ac_var;} ;; 14397 esac ;; 14398 esac 14399 done 14400 14401 (set) 2>&1 | 14402 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14403 *${as_nl}ac_space=\ *) 14404 # `set' does not quote correctly, so add quotes: double-quote 14405 # substitution turns \\\\ into \\, and sed turns \\ into \. 14406 sed -n \ 14407 "s/'/'\\\\''/g; 14408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14409 ;; #( 14410 *) 14411 # `set' quotes correctly as required by POSIX, so do not add quotes. 14412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14413 ;; 14414 esac | 14415 sort 14416) | 14417 sed ' 14418 /^ac_cv_env_/b end 14419 t clear 14420 :clear 14421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14422 t end 14423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14424 :end' >>confcache 14425if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14426 if test -w "$cache_file"; then 14427 if test "x$cache_file" != "x/dev/null"; then 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14429$as_echo "$as_me: updating cache $cache_file" >&6;} 14430 if test ! -f "$cache_file" || test -h "$cache_file"; then 14431 cat confcache >"$cache_file" 14432 else 14433 case $cache_file in #( 14434 */* | ?:*) 14435 mv -f confcache "$cache_file"$$ && 14436 mv -f "$cache_file"$$ "$cache_file" ;; #( 14437 *) 14438 mv -f confcache "$cache_file" ;; 14439 esac 14440 fi 14441 fi 14442 else 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14444$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14445 fi 14446fi 14447rm -f confcache 14448 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 14450$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 14451if ${ac_cv_header_stdbool_h+:} false; then : 14452 $as_echo_n "(cached) " >&6 14453else 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456 14457 #include <stdbool.h> 14458 #ifndef bool 14459 "error: bool is not defined" 14460 #endif 14461 #ifndef false 14462 "error: false is not defined" 14463 #endif 14464 #if false 14465 "error: false is not 0" 14466 #endif 14467 #ifndef true 14468 "error: true is not defined" 14469 #endif 14470 #if true != 1 14471 "error: true is not 1" 14472 #endif 14473 #ifndef __bool_true_false_are_defined 14474 "error: __bool_true_false_are_defined is not defined" 14475 #endif 14476 14477 struct s { _Bool s: 1; _Bool t; } s; 14478 14479 char a[true == 1 ? 1 : -1]; 14480 char b[false == 0 ? 1 : -1]; 14481 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 14482 char d[(bool) 0.5 == true ? 1 : -1]; 14483 /* See body of main program for 'e'. */ 14484 char f[(_Bool) 0.0 == false ? 1 : -1]; 14485 char g[true]; 14486 char h[sizeof (_Bool)]; 14487 char i[sizeof s.t]; 14488 enum { j = false, k = true, l = false * true, m = true * 256 }; 14489 /* The following fails for 14490 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 14491 _Bool n[m]; 14492 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 14493 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 14494 /* Catch a bug in an HP-UX C compiler. See 14495 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 14496 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 14497 */ 14498 _Bool q = true; 14499 _Bool *pq = &q; 14500 14501int 14502main () 14503{ 14504 14505 bool e = &s; 14506 *pq |= q; 14507 *pq |= ! q; 14508 /* Refer to every declared value, to avoid compiler optimizations. */ 14509 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 14510 + !m + !n + !o + !p + !q + !pq); 14511 14512 ; 14513 return 0; 14514} 14515_ACEOF 14516if ac_fn_c_try_compile "$LINENO"; then : 14517 ac_cv_header_stdbool_h=yes 14518else 14519 ac_cv_header_stdbool_h=no 14520fi 14521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14522fi 14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 14524$as_echo "$ac_cv_header_stdbool_h" >&6; } 14525 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 14526if test "x$ac_cv_type__Bool" = xyes; then : 14527 14528cat >>confdefs.h <<_ACEOF 14529#define HAVE__BOOL 1 14530_ACEOF 14531 14532 14533fi 14534 14535 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14537$as_echo_n "checking for inline... " >&6; } 14538if ${ac_cv_c_inline+:} false; then : 14539 $as_echo_n "(cached) " >&6 14540else 14541 ac_cv_c_inline=no 14542for ac_kw in inline __inline__ __inline; do 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545#ifndef __cplusplus 14546typedef int foo_t; 14547static $ac_kw foo_t static_foo () {return 0; } 14548$ac_kw foo_t foo () {return 0; } 14549#endif 14550 14551_ACEOF 14552if ac_fn_c_try_compile "$LINENO"; then : 14553 ac_cv_c_inline=$ac_kw 14554fi 14555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14556 test "$ac_cv_c_inline" != no && break 14557done 14558 14559fi 14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14561$as_echo "$ac_cv_c_inline" >&6; } 14562 14563case $ac_cv_c_inline in 14564 inline | yes) ;; 14565 *) 14566 case $ac_cv_c_inline in 14567 no) ac_val=;; 14568 *) ac_val=$ac_cv_c_inline;; 14569 esac 14570 cat >>confdefs.h <<_ACEOF 14571#ifndef __cplusplus 14572#define inline $ac_val 14573#endif 14574_ACEOF 14575 ;; 14576esac 14577 14578ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14579case $ac_cv_c_int32_t in #( 14580 no|yes) ;; #( 14581 *) 14582 14583cat >>confdefs.h <<_ACEOF 14584#define int32_t $ac_cv_c_int32_t 14585_ACEOF 14586;; 14587esac 14588 14589ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 14590case $ac_cv_c_int64_t in #( 14591 no|yes) ;; #( 14592 *) 14593 14594cat >>confdefs.h <<_ACEOF 14595#define int64_t $ac_cv_c_int64_t 14596_ACEOF 14597;; 14598esac 14599 14600ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14601if test "x$ac_cv_type_off_t" = xyes; then : 14602 14603else 14604 14605cat >>confdefs.h <<_ACEOF 14606#define off_t long int 14607_ACEOF 14608 14609fi 14610 14611ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14612if test "x$ac_cv_type_size_t" = xyes; then : 14613 14614else 14615 14616cat >>confdefs.h <<_ACEOF 14617#define size_t unsigned int 14618_ACEOF 14619 14620fi 14621 14622ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14623if test "x$ac_cv_type_ssize_t" = xyes; then : 14624 14625else 14626 14627cat >>confdefs.h <<_ACEOF 14628#define ssize_t int 14629_ACEOF 14630 14631fi 14632 14633ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14634case $ac_cv_c_uint16_t in #( 14635 no|yes) ;; #( 14636 *) 14637 14638 14639cat >>confdefs.h <<_ACEOF 14640#define uint16_t $ac_cv_c_uint16_t 14641_ACEOF 14642;; 14643 esac 14644 14645ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14646case $ac_cv_c_uint32_t in #( 14647 no|yes) ;; #( 14648 *) 14649 14650$as_echo "#define _UINT32_T 1" >>confdefs.h 14651 14652 14653cat >>confdefs.h <<_ACEOF 14654#define uint32_t $ac_cv_c_uint32_t 14655_ACEOF 14656;; 14657 esac 14658 14659ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14660case $ac_cv_c_uint64_t in #( 14661 no|yes) ;; #( 14662 *) 14663 14664$as_echo "#define _UINT64_T 1" >>confdefs.h 14665 14666 14667cat >>confdefs.h <<_ACEOF 14668#define uint64_t $ac_cv_c_uint64_t 14669_ACEOF 14670;; 14671 esac 14672 14673ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14674case $ac_cv_c_uint8_t in #( 14675 no|yes) ;; #( 14676 *) 14677 14678$as_echo "#define _UINT8_T 1" >>confdefs.h 14679 14680 14681cat >>confdefs.h <<_ACEOF 14682#define uint8_t $ac_cv_c_uint8_t 14683_ACEOF 14684;; 14685 esac 14686 14687ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 14688if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 14689 14690cat >>confdefs.h <<_ACEOF 14691#define HAVE_PTRDIFF_T 1 14692_ACEOF 14693 14694 14695fi 14696 14697if test $CPU_BIT_STR -ge 64; then : 14698 if test "x$enable_int128" != xno; then : 14699 ac_fn_c_check_type "$LINENO" "int128" "ac_cv_type_int128" "$ac_includes_default" 14700if test "x$ac_cv_type_int128" = xyes; then : 14701 14702cat >>confdefs.h <<_ACEOF 14703#define HAVE_INT128 1 14704_ACEOF 14705 14706 14707fi 14708ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" 14709if test "x$ac_cv_type___int128" = xyes; then : 14710 14711cat >>confdefs.h <<_ACEOF 14712#define HAVE___INT128 1 14713_ACEOF 14714 14715 14716fi 14717ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default" 14718if test "x$ac_cv_type___int128_t" = xyes; then : 14719 14720cat >>confdefs.h <<_ACEOF 14721#define HAVE___INT128_T 1 14722_ACEOF 14723 14724 14725fi 14726 14727fi 14728fi 14729 14730if test "x$enable_int128" = xno; then 14731 have_int128=disabled 14732elif test "x$ac_cv_type_int128" = xyes || 14733 test "x$ac_cv_type___int128" = xyes || 14734 test "x$ac_cv_type___int128_t" = xyes; then 14735 have_int128=yes 14736else 14737 if test "x$enable_int128" = xyes; then 14738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14740as_fn_error $? "int128 is not capable on this build 14741See \`config.log' for more details" "$LINENO" 5; } 14742 fi 14743 have_int128=no 14744fi 14745 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 14747$as_echo_n "checking for error_at_line... " >&6; } 14748if ${ac_cv_lib_error_at_line+:} false; then : 14749 $as_echo_n "(cached) " >&6 14750else 14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752/* end confdefs.h. */ 14753#include <error.h> 14754int 14755main () 14756{ 14757error_at_line (0, 0, "", 0, "an error occurred"); 14758 ; 14759 return 0; 14760} 14761_ACEOF 14762if ac_fn_c_try_link "$LINENO"; then : 14763 ac_cv_lib_error_at_line=yes 14764else 14765 ac_cv_lib_error_at_line=no 14766fi 14767rm -f core conftest.err conftest.$ac_objext \ 14768 conftest$ac_exeext conftest.$ac_ext 14769fi 14770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 14771$as_echo "$ac_cv_lib_error_at_line" >&6; } 14772if test $ac_cv_lib_error_at_line = no; then 14773 case " $LIBOBJS " in 14774 *" error.$ac_objext "* ) ;; 14775 *) LIBOBJS="$LIBOBJS error.$ac_objext" 14776 ;; 14777esac 14778 14779fi 14780 14781 14782case "$host_os" in 14783 mingw*) 14784 ac_cv_func_fork=no 14785 ac_cv_func_fork_works=no 14786 ac_cv_func_vfork=no 14787 ac_cv_func_vfork_works=no 14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14789$as_echo_n "checking for working fork... " >&6; } 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - os disabled" >&5 14791$as_echo "no - os disabled" >&6; } 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14793$as_echo_n "checking for working vfork... " >&6; } 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - os disabled" >&5 14795$as_echo "no - os disabled" >&6; } 14796 ;; 14797 *) 14798 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14799if test "x$ac_cv_type_pid_t" = xyes; then : 14800 14801else 14802 14803cat >>confdefs.h <<_ACEOF 14804#define pid_t int 14805_ACEOF 14806 14807fi 14808 14809for ac_header in vfork.h 14810do : 14811 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14812if test "x$ac_cv_header_vfork_h" = xyes; then : 14813 cat >>confdefs.h <<_ACEOF 14814#define HAVE_VFORK_H 1 14815_ACEOF 14816 14817fi 14818 14819done 14820 14821for ac_func in fork vfork 14822do : 14823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14824ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14825if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14826 cat >>confdefs.h <<_ACEOF 14827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14828_ACEOF 14829 14830fi 14831done 14832 14833if test "x$ac_cv_func_fork" = xyes; then 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14835$as_echo_n "checking for working fork... " >&6; } 14836if ${ac_cv_func_fork_works+:} false; then : 14837 $as_echo_n "(cached) " >&6 14838else 14839 if test "$cross_compiling" = yes; then : 14840 ac_cv_func_fork_works=cross 14841else 14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843/* end confdefs.h. */ 14844$ac_includes_default 14845int 14846main () 14847{ 14848 14849 /* By Ruediger Kuhlmann. */ 14850 return fork () < 0; 14851 14852 ; 14853 return 0; 14854} 14855_ACEOF 14856if ac_fn_c_try_run "$LINENO"; then : 14857 ac_cv_func_fork_works=yes 14858else 14859 ac_cv_func_fork_works=no 14860fi 14861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14862 conftest.$ac_objext conftest.beam conftest.$ac_ext 14863fi 14864 14865fi 14866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14867$as_echo "$ac_cv_func_fork_works" >&6; } 14868 14869else 14870 ac_cv_func_fork_works=$ac_cv_func_fork 14871fi 14872if test "x$ac_cv_func_fork_works" = xcross; then 14873 case $host in 14874 *-*-amigaos* | *-*-msdosdjgpp*) 14875 # Override, as these systems have only a dummy fork() stub 14876 ac_cv_func_fork_works=no 14877 ;; 14878 *) 14879 ac_cv_func_fork_works=yes 14880 ;; 14881 esac 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14883$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14884fi 14885ac_cv_func_vfork_works=$ac_cv_func_vfork 14886if test "x$ac_cv_func_vfork" = xyes; then 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14888$as_echo_n "checking for working vfork... " >&6; } 14889if ${ac_cv_func_vfork_works+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891else 14892 if test "$cross_compiling" = yes; then : 14893 ac_cv_func_vfork_works=cross 14894else 14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897/* Thanks to Paul Eggert for this test. */ 14898$ac_includes_default 14899#include <sys/wait.h> 14900#ifdef HAVE_VFORK_H 14901# include <vfork.h> 14902#endif 14903/* On some sparc systems, changes by the child to local and incoming 14904 argument registers are propagated back to the parent. The compiler 14905 is told about this with #include <vfork.h>, but some compilers 14906 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14907 static variable whose address is put into a register that is 14908 clobbered by the vfork. */ 14909static void 14910#ifdef __cplusplus 14911sparc_address_test (int arg) 14912# else 14913sparc_address_test (arg) int arg; 14914#endif 14915{ 14916 static pid_t child; 14917 if (!child) { 14918 child = vfork (); 14919 if (child < 0) { 14920 perror ("vfork"); 14921 _exit(2); 14922 } 14923 if (!child) { 14924 arg = getpid(); 14925 write(-1, "", 0); 14926 _exit (arg); 14927 } 14928 } 14929} 14930 14931int 14932main () 14933{ 14934 pid_t parent = getpid (); 14935 pid_t child; 14936 14937 sparc_address_test (0); 14938 14939 child = vfork (); 14940 14941 if (child == 0) { 14942 /* Here is another test for sparc vfork register problems. This 14943 test uses lots of local variables, at least as many local 14944 variables as main has allocated so far including compiler 14945 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14946 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14947 reuse the register of parent for one of the local variables, 14948 since it will think that parent can't possibly be used any more 14949 in this routine. Assigning to the local variable will thus 14950 munge parent in the parent process. */ 14951 pid_t 14952 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14953 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14954 /* Convince the compiler that p..p7 are live; otherwise, it might 14955 use the same hardware register for all 8 local variables. */ 14956 if (p != p1 || p != p2 || p != p3 || p != p4 14957 || p != p5 || p != p6 || p != p7) 14958 _exit(1); 14959 14960 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14961 from child file descriptors. If the child closes a descriptor 14962 before it execs or exits, this munges the parent's descriptor 14963 as well. Test for this by closing stdout in the child. */ 14964 _exit(close(fileno(stdout)) != 0); 14965 } else { 14966 int status; 14967 struct stat st; 14968 14969 while (wait(&status) != child) 14970 ; 14971 return ( 14972 /* Was there some problem with vforking? */ 14973 child < 0 14974 14975 /* Did the child fail? (This shouldn't happen.) */ 14976 || status 14977 14978 /* Did the vfork/compiler bug occur? */ 14979 || parent != getpid() 14980 14981 /* Did the file descriptor bug occur? */ 14982 || fstat(fileno(stdout), &st) != 0 14983 ); 14984 } 14985} 14986_ACEOF 14987if ac_fn_c_try_run "$LINENO"; then : 14988 ac_cv_func_vfork_works=yes 14989else 14990 ac_cv_func_vfork_works=no 14991fi 14992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14993 conftest.$ac_objext conftest.beam conftest.$ac_ext 14994fi 14995 14996fi 14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14998$as_echo "$ac_cv_func_vfork_works" >&6; } 14999 15000fi; 15001if test "x$ac_cv_func_fork_works" = xcross; then 15002 ac_cv_func_vfork_works=$ac_cv_func_vfork 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15004$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15005fi 15006 15007if test "x$ac_cv_func_vfork_works" = xyes; then 15008 15009$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15010 15011else 15012 15013$as_echo "#define vfork fork" >>confdefs.h 15014 15015fi 15016if test "x$ac_cv_func_fork_works" = xyes; then 15017 15018$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15019 15020fi 15021 15022 ;; 15023esac 15024 15025for ac_func in fseek64 fseeko fseeko64 _fseeki64 lseek64 lseek ftell64 ftello \ 15026 ftello64 _ftelli64 fopen64 _fopen64 memmem mmap sleep \ 15027 setenv putenv strcasecmp strncasecmp \ 15028 stricmp strcmpi _stricmp _strcmpi strnicmp strncmpi _strnicmp \ 15029 _strncmpi strnlen strlwr strupr strrev \ 15030 atoll _atoi64 snprintf sprintf_s strcasestr 15031do : 15032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15034if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15035 cat >>confdefs.h <<_ACEOF 15036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15037_ACEOF 15038 15039fi 15040done 15041 15042 15043CFLAGS_BACKUP=$CFLAGS 15044LIBS_BACKUP=$LIBS 15045CFLAGS="$CFLAGS $CL_CFLAGS" 15046LIBS="$LIBS $CL_LIBS" 15047ac_fn_c_check_func "$LINENO" "clGetKernelArgInfo" "ac_cv_func_clGetKernelArgInfo" 15048if test "x$ac_cv_func_clGetKernelArgInfo" = xyes; then : 15049 15050$as_echo "#define HAVE_OPENCL_1_2 1" >>confdefs.h 15051 15052fi 15053 15054CFLAGS=$CFLAGS_BACKUP 15055LIBS=$LIBS_BACKUP 15056 15057for ac_func in posix_memalign aligned_alloc memalign __mingw_aligned_malloc _aligned_malloc 15058do : 15059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15061if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15062 cat >>confdefs.h <<_ACEOF 15063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15064_ACEOF 15065 break 15066fi 15067done 15068 15069 15070cat >confcache <<\_ACEOF 15071# This file is a shell script that caches the results of configure 15072# tests run on this system so they can be shared between configure 15073# scripts and configure runs, see configure's option --config-cache. 15074# It is not useful on other systems. If it contains results you don't 15075# want to keep, you may remove or edit it. 15076# 15077# config.status only pays attention to the cache file if you give it 15078# the --recheck option to rerun configure. 15079# 15080# `ac_cv_env_foo' variables (set or unset) will be overridden when 15081# loading this file, other *unset* `ac_cv_foo' will be assigned the 15082# following values. 15083 15084_ACEOF 15085 15086# The following way of writing the cache mishandles newlines in values, 15087# but we know of no workaround that is simple, portable, and efficient. 15088# So, we kill variables containing newlines. 15089# Ultrix sh set writes to stderr and can't be redirected directly, 15090# and sets the high bit in the cache file unless we assign to the vars. 15091( 15092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15093 eval ac_val=\$$ac_var 15094 case $ac_val in #( 15095 *${as_nl}*) 15096 case $ac_var in #( 15097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15099 esac 15100 case $ac_var in #( 15101 _ | IFS | as_nl) ;; #( 15102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15103 *) { eval $ac_var=; unset $ac_var;} ;; 15104 esac ;; 15105 esac 15106 done 15107 15108 (set) 2>&1 | 15109 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15110 *${as_nl}ac_space=\ *) 15111 # `set' does not quote correctly, so add quotes: double-quote 15112 # substitution turns \\\\ into \\, and sed turns \\ into \. 15113 sed -n \ 15114 "s/'/'\\\\''/g; 15115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15116 ;; #( 15117 *) 15118 # `set' quotes correctly as required by POSIX, so do not add quotes. 15119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15120 ;; 15121 esac | 15122 sort 15123) | 15124 sed ' 15125 /^ac_cv_env_/b end 15126 t clear 15127 :clear 15128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15129 t end 15130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15131 :end' >>confcache 15132if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15133 if test -w "$cache_file"; then 15134 if test "x$cache_file" != "x/dev/null"; then 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15136$as_echo "$as_me: updating cache $cache_file" >&6;} 15137 if test ! -f "$cache_file" || test -h "$cache_file"; then 15138 cat confcache >"$cache_file" 15139 else 15140 case $cache_file in #( 15141 */* | ?:*) 15142 mv -f confcache "$cache_file"$$ && 15143 mv -f "$cache_file"$$ "$cache_file" ;; #( 15144 *) 15145 mv -f confcache "$cache_file" ;; 15146 esac 15147 fi 15148 fi 15149 else 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15151$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15152 fi 15153fi 15154rm -f confcache 15155 15156if test "x$simd" != xno ; then 15157 CPU_BEST_FLAGS_MAIN=-DJOHN_$(echo ${SIMD_NAME} | tr .a-z _A-Z) 15158fi 15159 15160CC_CPU="${CPU_BEST_FLAGS}" 15161 15162CC_MAIN_CPU="${CPU_BEST_FLAGS_MAIN}" 15163 15164CC_ASM_OBJS="${CC_ASM_OBJS}" 15165 15166CPU_BITS="${CPU_BITS}" 15167 15168CPU_BIT_STR="${CPU_BIT_STR}" 15169 15170ASFLAGS="${ASFLAGS}" 15171 15172EXTRA_AS_FLAGS="${EXTRA_AS_FLAGS}" 15173 15174 15175if test $ac_cv_sizeof_int -gt 4; then : 15176 15177$as_echo "#define ARCH_INT_GT_32 1" >>confdefs.h 15178 15179else 15180 15181$as_echo "#define ARCH_INT_GT_32 0" >>confdefs.h 15182 15183fi 15184 15185if test "$CPU_BIT_STR" -eq 64 && test "$ac_cv_sizeof_long" -eq 4; then : 15186 15187$as_echo "#define ARCH_WORD long long" >>confdefs.h 15188 15189else 15190 15191$as_echo "#define ARCH_WORD long" >>confdefs.h 15192 15193fi 15194 15195if test "$CPU_BIT_STR" -eq 64; then : 15196 15197$as_echo "#define ARCH_SIZE 8" >>confdefs.h 15198 15199else 15200 15201$as_echo "#define ARCH_SIZE 4" >>confdefs.h 15202 15203fi 15204 15205cat >>confdefs.h <<_ACEOF 15206#define ARCH_BITS $CPU_BIT_STR 15207_ACEOF 15208 15209if test "$CPU_BIT_STR" -eq 64; then : 15210 15211$as_echo "#define ARCH_BITS_LOG 6" >>confdefs.h 15212 15213else 15214 15215$as_echo "#define ARCH_BITS_LOG 5" >>confdefs.h 15216 15217fi 15218 15219cat >>confdefs.h <<_ACEOF 15220#define ARCH_BITS_STR "$CPU_BIT_STR" 15221_ACEOF 15222 15223 15224if test "$CPU_BIT_STR" = "32"; then 15225 aesni_arch="86" 15226else 15227 aesni_arch="64" 15228fi 15229AESNI_ARCH="$aesni_arch" 15230 15231 15232aesni_os="" 15233aesni_options="DISABLED" 15234 15235if test "x$ax_intel_x32" = xyes; then 15236 aesni_os=linux aesni_options="-g dwarf2 -f elfx32" 15237else 15238 case "${host}_${CFLAGS}" in 15239 *_*-mno-mmx*) ;; 15240 *_*-mno-sse2*) ;; 15241 x86_64*darwin*) 15242 aesni_os=darwin 15243 aesni_options="--prefix=_ -f macho${CPU_BIT_STR}" 15244 ;; 15245 i?86*darwin*) 15246 aesni_os=darwin 15247 aesni_options="-f macho${CPU_BIT_STR}" 15248 ;; 15249 *86*linux*) 15250 aesni_os=linux 15251 aesni_options="-g dwarf2 -f elf${CPU_BIT_STR}" 15252 ;; 15253 *86*cygwin*) 15254 aesni_os=cygwin 15255 aesni_options="-f win${CPU_BIT_STR}" 15256 ;; 15257 esac 15258fi 15259if test "x$aesni_options" != xDISABLED; then 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yasm that supports \"$aesni_options\"" >&5 15261$as_echo_n "checking for yasm that supports \"$aesni_options\"... " >&6; } 15262if ${ac_cv_path_YASM+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 if test -z "$YASM"; then 15266 ac_path_YASM_found=false 15267 # Loop through the user's path and test for each of PROGNAME-LIST 15268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15269for as_dir in $PATH 15270do 15271 IFS=$as_save_IFS 15272 test -z "$as_dir" && as_dir=. 15273 for ac_prog in yasm; do 15274 for ac_exec_ext in '' $ac_executable_extensions; do 15275 ac_path_YASM="$as_dir/$ac_prog$ac_exec_ext" 15276 as_fn_executable_p "$ac_path_YASM" || continue 15277yasmout=`$ac_path_YASM $aesni_options 2>&1 | grep "No input files"` 15278 test "x$yasmout" != x \ 15279 && ac_cv_path_YASM=$ac_path_YASM ac_path_YASM_found=: 15280 15281 $ac_path_YASM_found && break 3 15282 done 15283 done 15284 done 15285IFS=$as_save_IFS 15286 if test -z "$ac_cv_path_YASM"; then 15287 : 15288 fi 15289else 15290 ac_cv_path_YASM=$YASM 15291fi 15292 15293fi 15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_YASM" >&5 15295$as_echo "$ac_cv_path_YASM" >&6; } 15296fi 15297 15298if test "x$aesni_options" != xDISABLED -a "x$ac_path_YASM_found" != xfalse; then 15299 using_aesni="run-time detection" 15300elif test "$cpu_family" = intel; then 15301 using_aesni="depends on OpenSSL" 15302else 15303 using_aesni=no 15304fi 15305YASM=$ac_cv_path_YASM 15306 15307AESNI_OS="$aesni_os" 15308 15309YASM_OPTIONS="$aesni_options" 15310 15311 15312 15313CC_BACKUP=$CC 15314CFLAGS_BACKUP="$CFLAGS" 15315 15316case "$host_os" in 15317 cygwin*) 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *2john helper type" >&5 15319$as_echo_n "checking for *2john helper type... " >&6; } 15320 if test "x$enable_ln_s" != xno; then : 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ln -s" >&5 15322$as_echo "ln -s" >&6; } 15323else 15324 EXE_EXT=.exe 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .exe (symlink.c)" >&5 15326$as_echo ".exe (symlink.c)" >&6; } 15327fi 15328 for ac_func in _get_osfhandle 15329do : 15330 ac_fn_c_check_func "$LINENO" "_get_osfhandle" "ac_cv_func__get_osfhandle" 15331if test "x$ac_cv_func__get_osfhandle" = xyes; then : 15332 cat >>confdefs.h <<_ACEOF 15333#define HAVE__GET_OSFHANDLE 1 15334_ACEOF 15335 15336fi 15337done 15338 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetFileSizeEx" >&5 15340$as_echo_n "checking for GetFileSizeEx... " >&6; } 15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342/* end confdefs.h. */ 15343 15344 #include <windows.h> 15345 #include <io.h> 15346 extern void exit(int); 15347 int main(){long long l; GetFileSizeEx(0,&l); exit(0);} 15348 15349 15350_ACEOF 15351if ac_fn_c_try_link "$LINENO"; then : 15352 15353$as_echo "#define HAVE_GETFILESIZEEX 1" >>confdefs.h 15354 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15356$as_echo "yes" >&6; } 15357 15358else 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15360$as_echo "no" >&6; } 15361 15362fi 15363rm -f core conftest.err conftest.$ac_objext \ 15364 conftest$ac_exeext conftest.$ac_ext 15365 ;; 15366 mingw*) 15367 EXE_EXT=.exe 15368 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *2john helper type" >&5 15370$as_echo_n "checking for *2john helper type... " >&6; } 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .exe (symlink.c)" >&5 15372$as_echo ".exe (symlink.c)" >&6; } 15373 15374 15375ac_ext=c 15376ac_cpp='$CPP $CPPFLAGS' 15377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15379ac_compiler_gnu=$ac_cv_c_compiler_gnu 15380 15381ax_pthread_ok=no 15382 15383# We used to check for pthread.h first, but this fails if pthread.h 15384# requires special compiler flags (e.g. on True64 or Sequent). 15385# It gets checked for in the link test anyway. 15386 15387# First of all, check if the user has set any of the PTHREAD_LIBS, 15388# etcetera environment variables, and if threads linking works using 15389# them: 15390if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15391 save_CFLAGS="$CFLAGS" 15392 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15393 save_LIBS="$LIBS" 15394 LIBS="$PTHREAD_LIBS $LIBS" 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15396$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15398/* end confdefs.h. */ 15399 15400/* Override any GCC internal prototype to avoid an error. 15401 Use char because int might match the return type of a GCC 15402 builtin and then its argument prototype would still apply. */ 15403#ifdef __cplusplus 15404extern "C" 15405#endif 15406char pthread_join (); 15407int 15408main () 15409{ 15410return pthread_join (); 15411 ; 15412 return 0; 15413} 15414_ACEOF 15415if ac_fn_c_try_link "$LINENO"; then : 15416 ax_pthread_ok=yes 15417fi 15418rm -f core conftest.err conftest.$ac_objext \ 15419 conftest$ac_exeext conftest.$ac_ext 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15421$as_echo "$ax_pthread_ok" >&6; } 15422 if test x"$ax_pthread_ok" = xno; then 15423 PTHREAD_LIBS="" 15424 PTHREAD_CFLAGS="" 15425 fi 15426 LIBS="$save_LIBS" 15427 CFLAGS="$save_CFLAGS" 15428fi 15429 15430# We must check for the threads library under a number of different 15431# names; the ordering is very important because some systems 15432# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15433# libraries is broken (non-POSIX). 15434 15435# Create a list of thread flags to try. Items starting with a "-" are 15436# C compiler flags, and other items are library names, except for "none" 15437# which indicates that we try without any flags at all, and "pthread-config" 15438# which is a program returning the flags for the Pth emulation library. 15439 15440ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15441 15442# The ordering *is* (sometimes) important. Some notes on the 15443# individual items follow: 15444 15445# pthreads: AIX (must check this before -lpthread) 15446# none: in case threads are in libc; should be tried before -Kthread and 15447# other compiler flags to prevent continual compiler warnings 15448# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15449# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15450# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15451# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15452# -pthreads: Solaris/gcc 15453# -mthreads: Mingw32/gcc, Lynx/gcc 15454# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15455# doesn't hurt to check since this sometimes defines pthreads too; 15456# also defines -D_REENTRANT) 15457# ... -mt is also the pthreads flag for HP/aCC 15458# pthread: Linux, etcetera 15459# --thread-safe: KAI C++ 15460# pthread-config: use pthread-config program (for GNU Pth library) 15461 15462case ${host_os} in 15463 solaris*) 15464 15465 # On Solaris (at least, for some versions), libc contains stubbed 15466 # (non-functional) versions of the pthreads routines, so link-based 15467 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15468 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15469 # a function called by this macro, so we could check for that, but 15470 # who knows whether they'll stub that too in a future libc.) So, 15471 # we'll just look for -pthreads and -lpthread first: 15472 15473 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15474 ;; 15475 15476 darwin*) 15477 ax_pthread_flags="-pthread $ax_pthread_flags" 15478 ;; 15479esac 15480 15481# Clang doesn't consider unrecognized options an error unless we specify 15482# -Werror. We throw in some extra Clang-specific options to ensure that 15483# this doesn't happen for GCC, which also accepts -Werror. 15484 15485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 15486$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 15487save_CFLAGS="$CFLAGS" 15488ax_pthread_extra_flags="-Werror" 15489CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 15490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15491/* end confdefs.h. */ 15492int foo(void); 15493int 15494main () 15495{ 15496foo() 15497 ; 15498 return 0; 15499} 15500_ACEOF 15501if ac_fn_c_try_compile "$LINENO"; then : 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15503$as_echo "yes" >&6; } 15504else 15505 ax_pthread_extra_flags= 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15507$as_echo "no" >&6; } 15508fi 15509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15510CFLAGS="$save_CFLAGS" 15511 15512if test x"$ax_pthread_ok" = xno; then 15513for flag in $ax_pthread_flags; do 15514 15515 case $flag in 15516 none) 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15518$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15519 ;; 15520 15521 -*) 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15523$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15524 PTHREAD_CFLAGS="$flag" 15525 ;; 15526 15527 pthread-config) 15528 # Extract the first word of "pthread-config", so it can be a program name with args. 15529set dummy pthread-config; ac_word=$2 15530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15531$as_echo_n "checking for $ac_word... " >&6; } 15532if ${ac_cv_prog_ax_pthread_config+:} false; then : 15533 $as_echo_n "(cached) " >&6 15534else 15535 if test -n "$ax_pthread_config"; then 15536 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15537else 15538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15539for as_dir in $PATH 15540do 15541 IFS=$as_save_IFS 15542 test -z "$as_dir" && as_dir=. 15543 for ac_exec_ext in '' $ac_executable_extensions; do 15544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15545 ac_cv_prog_ax_pthread_config="yes" 15546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15547 break 2 15548 fi 15549done 15550 done 15551IFS=$as_save_IFS 15552 15553 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15554fi 15555fi 15556ax_pthread_config=$ac_cv_prog_ax_pthread_config 15557if test -n "$ax_pthread_config"; then 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15559$as_echo "$ax_pthread_config" >&6; } 15560else 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15562$as_echo "no" >&6; } 15563fi 15564 15565 15566 if test x"$ax_pthread_config" = xno; then continue; fi 15567 PTHREAD_CFLAGS="`pthread-config --cflags`" 15568 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15569 ;; 15570 15571 *) 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15573$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15574 PTHREAD_LIBS="-l$flag" 15575 ;; 15576 esac 15577 15578 save_LIBS="$LIBS" 15579 save_CFLAGS="$CFLAGS" 15580 LIBS="$PTHREAD_LIBS $LIBS" 15581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 15582 15583 # Check for various functions. We must include pthread.h, 15584 # since some functions may be macros. (On the Sequent, we 15585 # need a special flag -Kthread to make this header compile.) 15586 # We check for pthread_join because it is in -lpthread on IRIX 15587 # while pthread_create is in libc. We check for pthread_attr_init 15588 # due to DEC craziness with -lpthreads. We check for 15589 # pthread_cleanup_push because it is one of the few pthread 15590 # functions on Solaris that doesn't have a non-functional libc stub. 15591 # We try pthread_create on general principles. 15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594#include <pthread.h> 15595 static void routine(void *a) { a = 0; } 15596 static void *start_routine(void *a) { return a; } 15597int 15598main () 15599{ 15600pthread_t th; pthread_attr_t attr; 15601 pthread_create(&th, 0, start_routine, 0); 15602 pthread_join(th, 0); 15603 pthread_attr_init(&attr); 15604 pthread_cleanup_push(routine, 0); 15605 pthread_cleanup_pop(0) /* ; */ 15606 ; 15607 return 0; 15608} 15609_ACEOF 15610if ac_fn_c_try_link "$LINENO"; then : 15611 ax_pthread_ok=yes 15612fi 15613rm -f core conftest.err conftest.$ac_objext \ 15614 conftest$ac_exeext conftest.$ac_ext 15615 15616 LIBS="$save_LIBS" 15617 CFLAGS="$save_CFLAGS" 15618 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15620$as_echo "$ax_pthread_ok" >&6; } 15621 if test "x$ax_pthread_ok" = xyes; then 15622 break; 15623 fi 15624 15625 PTHREAD_LIBS="" 15626 PTHREAD_CFLAGS="" 15627done 15628fi 15629 15630# Various other checks: 15631if test "x$ax_pthread_ok" = xyes; then 15632 save_LIBS="$LIBS" 15633 LIBS="$PTHREAD_LIBS $LIBS" 15634 save_CFLAGS="$CFLAGS" 15635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15636 15637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15639$as_echo_n "checking for joinable pthread attribute... " >&6; } 15640 attr_name=unknown 15641 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15643/* end confdefs.h. */ 15644#include <pthread.h> 15645int 15646main () 15647{ 15648int attr = $attr; return attr /* ; */ 15649 ; 15650 return 0; 15651} 15652_ACEOF 15653if ac_fn_c_try_link "$LINENO"; then : 15654 attr_name=$attr; break 15655fi 15656rm -f core conftest.err conftest.$ac_objext \ 15657 conftest$ac_exeext conftest.$ac_ext 15658 done 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15660$as_echo "$attr_name" >&6; } 15661 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15662 15663cat >>confdefs.h <<_ACEOF 15664#define PTHREAD_CREATE_JOINABLE $attr_name 15665_ACEOF 15666 15667 fi 15668 15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15670$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15671 flag=no 15672 case ${host_os} in 15673 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15674 osf* | hpux*) flag="-D_REENTRANT";; 15675 solaris*) 15676 if test "$GCC" = "yes"; then 15677 flag="-D_REENTRANT" 15678 else 15679 # TODO: What about Clang on Solaris? 15680 flag="-mt -D_REENTRANT" 15681 fi 15682 ;; 15683 esac 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 15685$as_echo "$flag" >&6; } 15686 if test "x$flag" != xno; then 15687 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15688 fi 15689 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15691$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15692if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15693 $as_echo_n "(cached) " >&6 15694else 15695 15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698#include <pthread.h> 15699int 15700main () 15701{ 15702int i = PTHREAD_PRIO_INHERIT; 15703 ; 15704 return 0; 15705} 15706_ACEOF 15707if ac_fn_c_try_link "$LINENO"; then : 15708 ax_cv_PTHREAD_PRIO_INHERIT=yes 15709else 15710 ax_cv_PTHREAD_PRIO_INHERIT=no 15711fi 15712rm -f core conftest.err conftest.$ac_objext \ 15713 conftest$ac_exeext conftest.$ac_ext 15714 15715fi 15716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15717$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15718 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15719 15720$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15721 15722fi 15723 15724 LIBS="$save_LIBS" 15725 CFLAGS="$save_CFLAGS" 15726 15727 # More AIX lossage: compile with *_r variant 15728 if test "x$GCC" != xyes; then 15729 case $host_os in 15730 aix*) 15731 case "x/$CC" in #( 15732 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15733 #handle absolute path differently from PATH based program lookup 15734 case "x$CC" in #( 15735 x/*) : 15736 if as_fn_executable_p ${CC}_r; then : 15737 PTHREAD_CC="${CC}_r" 15738fi ;; #( 15739 *) : 15740 for ac_prog in ${CC}_r 15741do 15742 # Extract the first word of "$ac_prog", so it can be a program name with args. 15743set dummy $ac_prog; ac_word=$2 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15745$as_echo_n "checking for $ac_word... " >&6; } 15746if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748else 15749 if test -n "$PTHREAD_CC"; then 15750 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15751else 15752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15753for as_dir in $PATH 15754do 15755 IFS=$as_save_IFS 15756 test -z "$as_dir" && as_dir=. 15757 for ac_exec_ext in '' $ac_executable_extensions; do 15758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15759 ac_cv_prog_PTHREAD_CC="$ac_prog" 15760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15761 break 2 15762 fi 15763done 15764 done 15765IFS=$as_save_IFS 15766 15767fi 15768fi 15769PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15770if test -n "$PTHREAD_CC"; then 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15772$as_echo "$PTHREAD_CC" >&6; } 15773else 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15775$as_echo "no" >&6; } 15776fi 15777 15778 15779 test -n "$PTHREAD_CC" && break 15780done 15781test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15782 ;; 15783esac ;; #( 15784 *) : 15785 ;; 15786esac 15787 ;; 15788 esac 15789 fi 15790fi 15791 15792test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15793 15794 15795 15796 15797 15798# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15799if test x"$ax_pthread_ok" = xyes; then 15800 15801$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15802 15803 : 15804else 15805 ax_pthread_ok=no 15806 15807fi 15808ac_ext=c 15809ac_cpp='$CPP $CPPFLAGS' 15810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15812ac_compiler_gnu=$ac_cv_c_compiler_gnu 15813 15814 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5 15816$as_echo_n "checking for main in -lwsock32... " >&6; } 15817if ${ac_cv_lib_wsock32_main+:} false; then : 15818 $as_echo_n "(cached) " >&6 15819else 15820 ac_check_lib_save_LIBS=$LIBS 15821LIBS="-lwsock32 $LIBS" 15822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15823/* end confdefs.h. */ 15824 15825 15826int 15827main () 15828{ 15829return main (); 15830 ; 15831 return 0; 15832} 15833_ACEOF 15834if ac_fn_c_try_link "$LINENO"; then : 15835 ac_cv_lib_wsock32_main=yes 15836else 15837 ac_cv_lib_wsock32_main=no 15838fi 15839rm -f core conftest.err conftest.$ac_objext \ 15840 conftest$ac_exeext conftest.$ac_ext 15841LIBS=$ac_check_lib_save_LIBS 15842fi 15843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5 15844$as_echo "$ac_cv_lib_wsock32_main" >&6; } 15845if test "x$ac_cv_lib_wsock32_main" = xyes; then : 15846 cat >>confdefs.h <<_ACEOF 15847#define HAVE_LIBWSOCK32 1 15848_ACEOF 15849 15850 LIBS="-lwsock32 $LIBS" 15851 15852fi 15853 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 15855$as_echo_n "checking for main in -lws2_32... " >&6; } 15856if ${ac_cv_lib_ws2_32_main+:} false; then : 15857 $as_echo_n "(cached) " >&6 15858else 15859 ac_check_lib_save_LIBS=$LIBS 15860LIBS="-lws2_32 $LIBS" 15861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863 15864 15865int 15866main () 15867{ 15868return main (); 15869 ; 15870 return 0; 15871} 15872_ACEOF 15873if ac_fn_c_try_link "$LINENO"; then : 15874 ac_cv_lib_ws2_32_main=yes 15875else 15876 ac_cv_lib_ws2_32_main=no 15877fi 15878rm -f core conftest.err conftest.$ac_objext \ 15879 conftest$ac_exeext conftest.$ac_ext 15880LIBS=$ac_check_lib_save_LIBS 15881fi 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 15883$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 15884if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 15885 cat >>confdefs.h <<_ACEOF 15886#define HAVE_LIBWS2_32 1 15887_ACEOF 15888 15889 LIBS="-lws2_32 $LIBS" 15890 15891fi 15892 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwst" >&5 15894$as_echo_n "checking for main in -lwst... " >&6; } 15895if ${ac_cv_lib_wst_main+:} false; then : 15896 $as_echo_n "(cached) " >&6 15897else 15898 ac_check_lib_save_LIBS=$LIBS 15899LIBS="-lwst $LIBS" 15900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15901/* end confdefs.h. */ 15902 15903 15904int 15905main () 15906{ 15907return main (); 15908 ; 15909 return 0; 15910} 15911_ACEOF 15912if ac_fn_c_try_link "$LINENO"; then : 15913 ac_cv_lib_wst_main=yes 15914else 15915 ac_cv_lib_wst_main=no 15916fi 15917rm -f core conftest.err conftest.$ac_objext \ 15918 conftest$ac_exeext conftest.$ac_ext 15919LIBS=$ac_check_lib_save_LIBS 15920fi 15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wst_main" >&5 15922$as_echo "$ac_cv_lib_wst_main" >&6; } 15923if test "x$ac_cv_lib_wst_main" = xyes; then : 15924 cat >>confdefs.h <<_ACEOF 15925#define HAVE_LIBWST 1 15926_ACEOF 15927 15928 LIBS="-lwst $LIBS" 15929 15930fi 15931 15932 ;; 15933 15934 solaris*) 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 15936$as_echo_n "checking for main in -lnsl... " >&6; } 15937if ${ac_cv_lib_nsl_main+:} false; then : 15938 $as_echo_n "(cached) " >&6 15939else 15940 ac_check_lib_save_LIBS=$LIBS 15941LIBS="-lnsl $LIBS" 15942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944 15945 15946int 15947main () 15948{ 15949return main (); 15950 ; 15951 return 0; 15952} 15953_ACEOF 15954if ac_fn_c_try_link "$LINENO"; then : 15955 ac_cv_lib_nsl_main=yes 15956else 15957 ac_cv_lib_nsl_main=no 15958fi 15959rm -f core conftest.err conftest.$ac_objext \ 15960 conftest$ac_exeext conftest.$ac_ext 15961LIBS=$ac_check_lib_save_LIBS 15962fi 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 15964$as_echo "$ac_cv_lib_nsl_main" >&6; } 15965if test "x$ac_cv_lib_nsl_main" = xyes; then : 15966 cat >>confdefs.h <<_ACEOF 15967#define HAVE_LIBNSL 1 15968_ACEOF 15969 15970 LIBS="-lnsl $LIBS" 15971 15972fi 15973 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5 15975$as_echo_n "checking for main in -lrt... " >&6; } 15976if ${ac_cv_lib_rt_main+:} false; then : 15977 $as_echo_n "(cached) " >&6 15978else 15979 ac_check_lib_save_LIBS=$LIBS 15980LIBS="-lrt $LIBS" 15981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983 15984 15985int 15986main () 15987{ 15988return main (); 15989 ; 15990 return 0; 15991} 15992_ACEOF 15993if ac_fn_c_try_link "$LINENO"; then : 15994 ac_cv_lib_rt_main=yes 15995else 15996 ac_cv_lib_rt_main=no 15997fi 15998rm -f core conftest.err conftest.$ac_objext \ 15999 conftest$ac_exeext conftest.$ac_ext 16000LIBS=$ac_check_lib_save_LIBS 16001fi 16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5 16003$as_echo "$ac_cv_lib_rt_main" >&6; } 16004if test "x$ac_cv_lib_rt_main" = xyes; then : 16005 cat >>confdefs.h <<_ACEOF 16006#define HAVE_LIBRT 1 16007_ACEOF 16008 16009 LIBS="-lrt $LIBS" 16010 16011fi 16012 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 16014$as_echo_n "checking for main in -lsocket... " >&6; } 16015if ${ac_cv_lib_socket_main+:} false; then : 16016 $as_echo_n "(cached) " >&6 16017else 16018 ac_check_lib_save_LIBS=$LIBS 16019LIBS="-lsocket $LIBS" 16020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16021/* end confdefs.h. */ 16022 16023 16024int 16025main () 16026{ 16027return main (); 16028 ; 16029 return 0; 16030} 16031_ACEOF 16032if ac_fn_c_try_link "$LINENO"; then : 16033 ac_cv_lib_socket_main=yes 16034else 16035 ac_cv_lib_socket_main=no 16036fi 16037rm -f core conftest.err conftest.$ac_objext \ 16038 conftest$ac_exeext conftest.$ac_ext 16039LIBS=$ac_check_lib_save_LIBS 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 16042$as_echo "$ac_cv_lib_socket_main" >&6; } 16043if test "x$ac_cv_lib_socket_main" = xyes; then : 16044 cat >>confdefs.h <<_ACEOF 16045#define HAVE_LIBSOCKET 1 16046_ACEOF 16047 16048 LIBS="-lsocket $LIBS" 16049 16050fi 16051 16052 ;; 16053esac 16054 16055jtr_list_add_result="" 16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS-specific feature macros needed" >&5 16057$as_echo_n "checking for OS-specific feature macros needed... " >&6; } 16058 16059case "$host_os" in 16060 freebsd*) 16061 16062 for i in -D__BSD_VISIBLE; do 16063 jtr_list_add_dupe=0 16064 for j in $CFLAGS_EXTRA; do 16065 if test "x$i" = "x$j"; then 16066 jtr_list_add_dupe=1 16067 break 16068 fi 16069 done 16070 if test $jtr_list_add_dupe = 0; then 16071 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16072 jtr_list_add_result="$jtr_list_add_result $i" 16073 fi 16074 done 16075 16076 if test "x$CPU_BIT_STR" = x32; then : 16077 ASFLAGS="$ASFLAGS -DBSD" 16078fi 16079 ;; 16080 16081 linux*) 16082 16083 for i in -D_POSIX_SOURCE; do 16084 jtr_list_add_dupe=0 16085 for j in $CFLAGS_EXTRA; do 16086 if test "x$i" = "x$j"; then 16087 jtr_list_add_dupe=1 16088 break 16089 fi 16090 done 16091 if test $jtr_list_add_dupe = 0; then 16092 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16093 jtr_list_add_result="$jtr_list_add_result $i" 16094 fi 16095 done 16096 16097 if test "x$ac_cv_func_memmem" = xyes; then : 16098 16099 for i in -D_GNU_SOURCE; do 16100 jtr_list_add_dupe=0 16101 for j in $CFLAGS_EXTRA; do 16102 if test "x$i" = "x$j"; then 16103 jtr_list_add_dupe=1 16104 break 16105 fi 16106 done 16107 if test $jtr_list_add_dupe = 0; then 16108 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16109 jtr_list_add_result="$jtr_list_add_result $i" 16110 fi 16111 done 16112 16113fi 16114 if test "x$ac_cv_func_aligned_alloc" = xyes; then : 16115 16116 for i in -D_ISOC11_SOURCE; do 16117 jtr_list_add_dupe=0 16118 for j in $CFLAGS_EXTRA; do 16119 if test "x$i" = "x$j"; then 16120 jtr_list_add_dupe=1 16121 break 16122 fi 16123 done 16124 if test $jtr_list_add_dupe = 0; then 16125 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16126 jtr_list_add_result="$jtr_list_add_result $i" 16127 fi 16128 done 16129 16130else 16131 if test "x$ac_cv_func_posix_memalign" = xyes; then : 16132 16133 for i in -D_XOPEN_SOURCE=600; do 16134 jtr_list_add_dupe=0 16135 for j in $CFLAGS_EXTRA; do 16136 if test "x$i" = "x$j"; then 16137 jtr_list_add_dupe=1 16138 break 16139 fi 16140 done 16141 if test $jtr_list_add_dupe = 0; then 16142 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16143 jtr_list_add_result="$jtr_list_add_result $i" 16144 fi 16145 done 16146 16147fi 16148 16149fi 16150 ;; 16151 16152 cygwin*) 16153 if test "x$ac_cv_func_memmem" = xyes; then : 16154 16155 for i in -D_GNU_SOURCE; do 16156 jtr_list_add_dupe=0 16157 for j in $CFLAGS_EXTRA; do 16158 if test "x$i" = "x$j"; then 16159 jtr_list_add_dupe=1 16160 break 16161 fi 16162 done 16163 if test $jtr_list_add_dupe = 0; then 16164 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16165 jtr_list_add_result="$jtr_list_add_result $i" 16166 fi 16167 done 16168 16169fi 16170 ;; 16171 16172 mingw*) 16173 16174 for i in -D__USE_MINGW_ANSI_STDIO; do 16175 jtr_list_add_dupe=0 16176 for j in $CFLAGS_EXTRA; do 16177 if test "x$i" = "x$j"; then 16178 jtr_list_add_dupe=1 16179 break 16180 fi 16181 done 16182 if test $jtr_list_add_dupe = 0; then 16183 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16184 jtr_list_add_result="$jtr_list_add_result $i" 16185 fi 16186 done 16187 16188 ;; 16189esac 16190 16191case "$host" in 16192 *linux*|arm*|alpha*|powerpcle|powerpc*) 16193 if test x${CPU_BIT_STR} = x32 && test "x$ac_cv_func_lseek64" = xyes; then : 16194 16195 for i in -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE; do 16196 jtr_list_add_dupe=0 16197 for j in $CFLAGS_EXTRA; do 16198 if test "x$i" = "x$j"; then 16199 jtr_list_add_dupe=1 16200 break 16201 fi 16202 done 16203 if test $jtr_list_add_dupe = 0; then 16204 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16205 jtr_list_add_result="$jtr_list_add_result $i" 16206 fi 16207 done 16208 16209fi 16210 ;; 16211 i?86*darwin*) 16212 if test "x$ac_cv_func_fseeko" = xyes; then : 16213 16214 for i in -D_DARWIN_C_SOURCE; do 16215 jtr_list_add_dupe=0 16216 for j in $CFLAGS_EXTRA; do 16217 if test "x$i" = "x$j"; then 16218 jtr_list_add_dupe=1 16219 break 16220 fi 16221 done 16222 if test $jtr_list_add_dupe = 0; then 16223 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16224 jtr_list_add_result="$jtr_list_add_result $i" 16225 fi 16226 done 16227 16228fi 16229 ;; 16230 x86_64*cygwin*) 16231 ax_intel_x32=no 16232 EXTRA_AS_FLAGS="$EXTRA_AS_FLAGS -D__CYGWIN64__ -D__CYGWIN32__" 16233 16234 for i in "-D__CYGWIN64__ -D__CYGWIN32__"; do 16235 jtr_list_add_dupe=0 16236 for j in $CFLAGS_EXTRA; do 16237 if test "x$i" = "x$j"; then 16238 jtr_list_add_dupe=1 16239 break 16240 fi 16241 done 16242 if test $jtr_list_add_dupe = 0; then 16243 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16244 jtr_list_add_result="$jtr_list_add_result $i" 16245 fi 16246 done 16247 16248 ;; 16249 sparc*solaris*) 16250 if test "x$ac_cv_func_fseeko64" = xyes && test x${CPU_BIT_STR} = x32; then : 16251 16252 for i in -D__EXTENSIONS__ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64; do 16253 jtr_list_add_dupe=0 16254 for j in $CFLAGS_EXTRA; do 16255 if test "x$i" = "x$j"; then 16256 jtr_list_add_dupe=1 16257 break 16258 fi 16259 done 16260 if test $jtr_list_add_dupe = 0; then 16261 CFLAGS_EXTRA="$CFLAGS_EXTRA $i" 16262 jtr_list_add_result="$jtr_list_add_result $i" 16263 fi 16264 done 16265 16266fi 16267 ;; 16268esac 16269 16270 16271 if test -z "$jtr_list_add_result"; then : 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16273$as_echo "none" >&6; } 16274else 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jtr_list_add_result" >&5 16276$as_echo "$jtr_list_add_result" >&6; } 16277fi 16278 jtr_list_add_result="" 16279 16280 16281CC="$CC_BACKUP" 16282CFLAGS="$CFLAGS_BACKUP" 16283 16284 16285CFLAGS_BACKUP="$CFLAGS" 16286CFLAGS="$CFLAGS $CFLAGS_EXTRA" 16287# The cast to long int works around a bug in the HP C Compiler 16288# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16289# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16290# This bug is HP SR number 8606223364. 16291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16292$as_echo_n "checking size of size_t... " >&6; } 16293if ${ac_cv_sizeof_size_t+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 16297 16298else 16299 if test "$ac_cv_type_size_t" = yes; then 16300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16302as_fn_error 77 "cannot compute sizeof (size_t) 16303See \`config.log' for more details" "$LINENO" 5; } 16304 else 16305 ac_cv_sizeof_size_t=0 16306 fi 16307fi 16308 16309fi 16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16311$as_echo "$ac_cv_sizeof_size_t" >&6; } 16312 16313 16314 16315cat >>confdefs.h <<_ACEOF 16316#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 16317_ACEOF 16318 16319 16320# The cast to long int works around a bug in the HP C Compiler 16321# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16322# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16323# This bug is HP SR number 8606223364. 16324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16325$as_echo_n "checking size of off_t... " >&6; } 16326if ${ac_cv_sizeof_off_t+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 16330 16331else 16332 if test "$ac_cv_type_off_t" = yes; then 16333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16335as_fn_error 77 "cannot compute sizeof (off_t) 16336See \`config.log' for more details" "$LINENO" 5; } 16337 else 16338 ac_cv_sizeof_off_t=0 16339 fi 16340fi 16341 16342fi 16343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16344$as_echo "$ac_cv_sizeof_off_t" >&6; } 16345 16346 16347 16348cat >>confdefs.h <<_ACEOF 16349#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 16350_ACEOF 16351 16352 16353CFLAGS="$CFLAGS_BACKUP" 16354 16355if test "x$asan" = xyes ; then 16356 CFLAGS=`echo $CFLAGS | sed 's/-g //g; s/-O2 //g'` 16357 CFLAGS=`echo $CFLAGS | sed 's/-g$//g; s/-O2$//g'` 16358 CFLAGS="-g $O_DEBUG -fsanitize=address $CFLAGS" 16359 LDFLAGS="-fsanitize=address $LDFLAGS" 16360fi 16361 16362if test "x$ubsan" = xyes ; then 16363 CFLAGS=`echo $CFLAGS | sed 's/-g //g; s/-O2 //g'` 16364 CFLAGS=`echo $CFLAGS | sed 's/-g$//g; s/-O2$//g'` 16365 CFLAGS="-g $O_DEBUG -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined $CFLAGS" 16366 ASFLAGS="-DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined $ASFLAGS" 16367 CPPFLAGS="-DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 $CPPFLAGS" 16368 LDFLAGS="-fsanitize=undefined $LDFLAGS" 16369fi 16370 16371if test "x$ubsantrap" = xyes ; then 16372 if test "x$ubsan" = xyes ; then 16373 as_fn_error $? "--enable-ubsan and --enable-ubsantrap are mutually exclusive. Pick one or the other (or NONE)" "$LINENO" 5 16374 fi 16375 CFLAGS=`echo $CFLAGS | sed 's/-g //g; s/-O2 //g'` 16376 CFLAGS=`echo $CFLAGS | sed 's/-g$//g; s/-O2$//g'` 16377 CFLAGS="-g $O_DEBUG -DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error $CFLAGS" 16378 ASFLAGS="-DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 -fsanitize=undefined -fsanitize-undefined-trap-on-error $ASFLAGS" 16379 CPPFLAGS="-DWITH_UBSAN -DARCH_ALLOWS_UNALIGNED=0 $CPPFLAGS" 16380 LDFLAGS="-fsanitize=undefined -fsanitize-undefined-trap-on-error $LDFLAGS" 16381fi 16382 16383if test "x$endian" = "xbig"; then 16384 CFLAGS="$CFLAGS -DARCH_LITTLE_ENDIAN=0" 16385 ASFLAGS="$ASFLAGS -DARCH_LITTLE_ENDIAN=0" 16386else 16387 if test "x$endian" = "xlittle"; then 16388 CFLAGS="$CFLAGS -DARCH_LITTLE_ENDIAN=1" 16389 ASFLAGS="$ASFLAGS -DARCH_LITTLE_ENDIAN=1" 16390 fi 16391fi 16392 16393if rm -f arch.h; then : 16394 16395fi 16396ac_config_links="$ac_config_links arch.h:$ARCH_LINK" 16397 16398 16399if test "x$enable_nt_unicode" != xno; then : 16400 16401$as_echo "#define NT_FULL_UNICODE 1" >>confdefs.h 16402 16403fi 16404 16405if test "x$experimental" != xno; then : 16406 16407$as_echo "#define USE_EXPERIMENTAL 1" >>confdefs.h 16408 16409fi 16410 16411if test "x$fuzz" != xno ; then 16412 HAVE_FUZZ=-DHAVE_FUZZ 16413 16414else 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: Fuzz check disabled" >&5 16416$as_echo "$as_me: Fuzz check disabled" >&6;} 16417fi 16418 16419if test "x$libfuzzer" != xno ; then 16420 HAVE_LIBFUZZER=-DHAVE_LIBFUZZER 16421 16422else 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: Fuzzing (using libFuzzer) check disabled" >&5 16424$as_echo "$as_me: Fuzzing (using libFuzzer) check disabled" >&6;} 16425fi 16426 16427M4_INCLUDES=`echo m4/*.m4` 16428 16429 16430if test $prefix != "../run" && test $prefix != "NONE" ; then : 16431 CFLAGS="$CFLAGS -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_EXEC='\"$prefix/bin\"' -DJOHN_SYSTEMWIDE_HOME='\"$prefix/share/john\"'" 16432else 16433 if test $with_systemwide != no; then : 16434 CFLAGS="$CFLAGS -DJOHN_SYSTEMWIDE" 16435 prefix=/usr/libexec/john 16436fi 16437 16438fi 16439 16440if test x$with_flock != xno; then 16441 CFLAGS="$CFLAGS -DPREFER_FLOCK" 16442fi 16443 16444 16445if test x$using_cl = xyes ; then 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating *_plug.c and OpenCL object rules" >&5 16447$as_echo "$as_me: creating *_plug.c and OpenCL object rules" >&6;} 16448else 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating *_plug.c rules, WITHOUT OpenCL objects" >&5 16450$as_echo "$as_me: creating *_plug.c rules, WITHOUT OpenCL objects" >&6;} 16451fi 16452 16453 16454if test "`echo *_plug.c`" != "*_plug.c"; then 16455 PLUGFORMATS_OBJS=`echo *_plug.c | sed 's/opencl[A-Za-z0-9_\-]*\.c //g;s/\.c/.o/g'` 16456 16457 OPENCL_PLUGFORMATS_OBJS=`echo opencl*_plug.c | sed 's/\.c/.o/g'` 16458 16459 if test x$using_cl = xyes ; then 16460 KERNEL_OBJS=`echo opencl/*.cl | sed 's/opencl\//..\/run\/kernels\//g'` 16461 16462 fi 16463 if test "x$plug_deps" = xyes -a "x$PERL" != x ; then 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating Makefile dependencies" >&5 16465$as_echo "$as_me: creating Makefile dependencies" >&6;} 16466 PLUGFORMATS_DEPS=`$PERL ./plugin_deps.pl *_plug.c` 16467 16468 if test x$using_cl = xyes ; then 16469 KERNEL_DEPS=`$PERL ./plugin_deps.pl opencl/*.cl` 16470 16471 fi 16472 fi 16473fi 16474 16475{ $as_echo "$as_me:${as_lineno-$LINENO}: creating ./john_build_rule.h" >&5 16476$as_echo "$as_me: creating ./john_build_rule.h" >&6;} 16477echo "#define JOHN_BLD \"${host_os} ${CPU_BIT_STR}-bit${using_x32} ${host_cpu} ${SIMD_NAME} AC\"" > john_build_rule.h 16478 16479HOST_OS="$host_os" 16480 16481ac_config_files="$ac_config_files Makefile aes/Makefile aes/aesni/Makefile aes/openssl/Makefile secp256k1/Makefile ed25519-donna/Makefile" 16482 16483 16484CFLAGS_EXTRA_BACKUP=$CFLAGS_EXTRA 16485CFLAGS_EXTRA=$(echo $CFLAGS_EXTRA | sed 's/#/\\#/g') 16486 16487ac_config_commands="$ac_config_commands default" 16488 16489cat >confcache <<\_ACEOF 16490# This file is a shell script that caches the results of configure 16491# tests run on this system so they can be shared between configure 16492# scripts and configure runs, see configure's option --config-cache. 16493# It is not useful on other systems. If it contains results you don't 16494# want to keep, you may remove or edit it. 16495# 16496# config.status only pays attention to the cache file if you give it 16497# the --recheck option to rerun configure. 16498# 16499# `ac_cv_env_foo' variables (set or unset) will be overridden when 16500# loading this file, other *unset* `ac_cv_foo' will be assigned the 16501# following values. 16502 16503_ACEOF 16504 16505# The following way of writing the cache mishandles newlines in values, 16506# but we know of no workaround that is simple, portable, and efficient. 16507# So, we kill variables containing newlines. 16508# Ultrix sh set writes to stderr and can't be redirected directly, 16509# and sets the high bit in the cache file unless we assign to the vars. 16510( 16511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16512 eval ac_val=\$$ac_var 16513 case $ac_val in #( 16514 *${as_nl}*) 16515 case $ac_var in #( 16516 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16517$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16518 esac 16519 case $ac_var in #( 16520 _ | IFS | as_nl) ;; #( 16521 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16522 *) { eval $ac_var=; unset $ac_var;} ;; 16523 esac ;; 16524 esac 16525 done 16526 16527 (set) 2>&1 | 16528 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16529 *${as_nl}ac_space=\ *) 16530 # `set' does not quote correctly, so add quotes: double-quote 16531 # substitution turns \\\\ into \\, and sed turns \\ into \. 16532 sed -n \ 16533 "s/'/'\\\\''/g; 16534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16535 ;; #( 16536 *) 16537 # `set' quotes correctly as required by POSIX, so do not add quotes. 16538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16539 ;; 16540 esac | 16541 sort 16542) | 16543 sed ' 16544 /^ac_cv_env_/b end 16545 t clear 16546 :clear 16547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16548 t end 16549 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16550 :end' >>confcache 16551if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16552 if test -w "$cache_file"; then 16553 if test "x$cache_file" != "x/dev/null"; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16555$as_echo "$as_me: updating cache $cache_file" >&6;} 16556 if test ! -f "$cache_file" || test -h "$cache_file"; then 16557 cat confcache >"$cache_file" 16558 else 16559 case $cache_file in #( 16560 */* | ?:*) 16561 mv -f confcache "$cache_file"$$ && 16562 mv -f "$cache_file"$$ "$cache_file" ;; #( 16563 *) 16564 mv -f confcache "$cache_file" ;; 16565 esac 16566 fi 16567 fi 16568 else 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16570$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16571 fi 16572fi 16573rm -f confcache 16574 16575test "x$prefix" = xNONE && prefix=$ac_default_prefix 16576# Let make expand exec_prefix. 16577test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16578 16579DEFS=-DHAVE_CONFIG_H 16580 16581ac_libobjs= 16582ac_ltlibobjs= 16583U= 16584for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16585 # 1. Remove the extension, and $U if already installed. 16586 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16587 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16589 # will be set to the directory where LIBOBJS objects are built. 16590 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16591 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16592done 16593LIBOBJS=$ac_libobjs 16594 16595LTLIBOBJS=$ac_ltlibobjs 16596 16597 16598 16599 16600: "${CONFIG_STATUS=./config.status}" 16601ac_write_fail=0 16602ac_clean_files_save=$ac_clean_files 16603ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16604{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16605$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16606as_write_fail=0 16607cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16608#! $SHELL 16609# Generated by $as_me. 16610# Run this file to recreate the current configuration. 16611# Compiler output produced by configure, useful for debugging 16612# configure, is in config.log if it exists. 16613 16614debug=false 16615ac_cs_recheck=false 16616ac_cs_silent=false 16617 16618SHELL=\${CONFIG_SHELL-$SHELL} 16619export SHELL 16620_ASEOF 16621cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16622## -------------------- ## 16623## M4sh Initialization. ## 16624## -------------------- ## 16625 16626# Be more Bourne compatible 16627DUALCASE=1; export DUALCASE # for MKS sh 16628if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16629 emulate sh 16630 NULLCMD=: 16631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16632 # is contrary to our usage. Disable this feature. 16633 alias -g '${1+"$@"}'='"$@"' 16634 setopt NO_GLOB_SUBST 16635else 16636 case `(set -o) 2>/dev/null` in #( 16637 *posix*) : 16638 set -o posix ;; #( 16639 *) : 16640 ;; 16641esac 16642fi 16643 16644 16645as_nl=' 16646' 16647export as_nl 16648# Printing a long string crashes Solaris 7 /usr/bin/printf. 16649as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16650as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16652# Prefer a ksh shell builtin over an external printf program on Solaris, 16653# but without wasting forks for bash or zsh. 16654if test -z "$BASH_VERSION$ZSH_VERSION" \ 16655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16656 as_echo='print -r --' 16657 as_echo_n='print -rn --' 16658elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16659 as_echo='printf %s\n' 16660 as_echo_n='printf %s' 16661else 16662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16664 as_echo_n='/usr/ucb/echo -n' 16665 else 16666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16667 as_echo_n_body='eval 16668 arg=$1; 16669 case $arg in #( 16670 *"$as_nl"*) 16671 expr "X$arg" : "X\\(.*\\)$as_nl"; 16672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16673 esac; 16674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16675 ' 16676 export as_echo_n_body 16677 as_echo_n='sh -c $as_echo_n_body as_echo' 16678 fi 16679 export as_echo_body 16680 as_echo='sh -c $as_echo_body as_echo' 16681fi 16682 16683# The user is always right. 16684if test "${PATH_SEPARATOR+set}" != set; then 16685 PATH_SEPARATOR=: 16686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16688 PATH_SEPARATOR=';' 16689 } 16690fi 16691 16692 16693# IFS 16694# We need space, tab and new line, in precisely that order. Quoting is 16695# there to prevent editors from complaining about space-tab. 16696# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16697# splitting by setting IFS to empty value.) 16698IFS=" "" $as_nl" 16699 16700# Find who we are. Look in the path if we contain no directory separator. 16701as_myself= 16702case $0 in #(( 16703 *[\\/]* ) as_myself=$0 ;; 16704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16705for as_dir in $PATH 16706do 16707 IFS=$as_save_IFS 16708 test -z "$as_dir" && as_dir=. 16709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16710 done 16711IFS=$as_save_IFS 16712 16713 ;; 16714esac 16715# We did not find ourselves, most probably we were run as `sh COMMAND' 16716# in which case we are not to be found in the path. 16717if test "x$as_myself" = x; then 16718 as_myself=$0 16719fi 16720if test ! -f "$as_myself"; then 16721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16722 exit 1 16723fi 16724 16725# Unset variables that we do not need and which cause bugs (e.g. in 16726# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16727# suppresses any "Segmentation fault" message there. '((' could 16728# trigger a bug in pdksh 5.2.14. 16729for as_var in BASH_ENV ENV MAIL MAILPATH 16730do eval test x\${$as_var+set} = xset \ 16731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16732done 16733PS1='$ ' 16734PS2='> ' 16735PS4='+ ' 16736 16737# NLS nuisances. 16738LC_ALL=C 16739export LC_ALL 16740LANGUAGE=C 16741export LANGUAGE 16742 16743# CDPATH. 16744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16745 16746 16747# as_fn_error STATUS ERROR [LINENO LOG_FD] 16748# ---------------------------------------- 16749# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16750# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16751# script with STATUS, using 1 if that was 0. 16752as_fn_error () 16753{ 16754 as_status=$1; test $as_status -eq 0 && as_status=1 16755 if test "$4"; then 16756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16758 fi 16759 $as_echo "$as_me: error: $2" >&2 16760 as_fn_exit $as_status 16761} # as_fn_error 16762 16763 16764# as_fn_set_status STATUS 16765# ----------------------- 16766# Set $? to STATUS, without forking. 16767as_fn_set_status () 16768{ 16769 return $1 16770} # as_fn_set_status 16771 16772# as_fn_exit STATUS 16773# ----------------- 16774# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16775as_fn_exit () 16776{ 16777 set +e 16778 as_fn_set_status $1 16779 exit $1 16780} # as_fn_exit 16781 16782# as_fn_unset VAR 16783# --------------- 16784# Portably unset VAR. 16785as_fn_unset () 16786{ 16787 { eval $1=; unset $1;} 16788} 16789as_unset=as_fn_unset 16790# as_fn_append VAR VALUE 16791# ---------------------- 16792# Append the text in VALUE to the end of the definition contained in VAR. Take 16793# advantage of any shell optimizations that allow amortized linear growth over 16794# repeated appends, instead of the typical quadratic growth present in naive 16795# implementations. 16796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16797 eval 'as_fn_append () 16798 { 16799 eval $1+=\$2 16800 }' 16801else 16802 as_fn_append () 16803 { 16804 eval $1=\$$1\$2 16805 } 16806fi # as_fn_append 16807 16808# as_fn_arith ARG... 16809# ------------------ 16810# Perform arithmetic evaluation on the ARGs, and store the result in the 16811# global $as_val. Take advantage of shells that can avoid forks. The arguments 16812# must be portable across $(()) and expr. 16813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16814 eval 'as_fn_arith () 16815 { 16816 as_val=$(( $* )) 16817 }' 16818else 16819 as_fn_arith () 16820 { 16821 as_val=`expr "$@" || test $? -eq 1` 16822 } 16823fi # as_fn_arith 16824 16825 16826if expr a : '\(a\)' >/dev/null 2>&1 && 16827 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16828 as_expr=expr 16829else 16830 as_expr=false 16831fi 16832 16833if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16834 as_basename=basename 16835else 16836 as_basename=false 16837fi 16838 16839if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16840 as_dirname=dirname 16841else 16842 as_dirname=false 16843fi 16844 16845as_me=`$as_basename -- "$0" || 16846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16847 X"$0" : 'X\(//\)$' \| \ 16848 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16849$as_echo X/"$0" | 16850 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16851 s//\1/ 16852 q 16853 } 16854 /^X\/\(\/\/\)$/{ 16855 s//\1/ 16856 q 16857 } 16858 /^X\/\(\/\).*/{ 16859 s//\1/ 16860 q 16861 } 16862 s/.*/./; q'` 16863 16864# Avoid depending upon Character Ranges. 16865as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16867as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16868as_cr_digits='0123456789' 16869as_cr_alnum=$as_cr_Letters$as_cr_digits 16870 16871ECHO_C= ECHO_N= ECHO_T= 16872case `echo -n x` in #((((( 16873-n*) 16874 case `echo 'xy\c'` in 16875 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16876 xy) ECHO_C='\c';; 16877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16878 ECHO_T=' ';; 16879 esac;; 16880*) 16881 ECHO_N='-n';; 16882esac 16883 16884rm -f conf$$ conf$$.exe conf$$.file 16885if test -d conf$$.dir; then 16886 rm -f conf$$.dir/conf$$.file 16887else 16888 rm -f conf$$.dir 16889 mkdir conf$$.dir 2>/dev/null 16890fi 16891if (echo >conf$$.file) 2>/dev/null; then 16892 if ln -s conf$$.file conf$$ 2>/dev/null; then 16893 as_ln_s='ln -s' 16894 # ... but there are two gotchas: 16895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16897 # In both cases, we have to default to `cp -pR'. 16898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16899 as_ln_s='cp -pR' 16900 elif ln conf$$.file conf$$ 2>/dev/null; then 16901 as_ln_s=ln 16902 else 16903 as_ln_s='cp -pR' 16904 fi 16905else 16906 as_ln_s='cp -pR' 16907fi 16908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16909rmdir conf$$.dir 2>/dev/null 16910 16911 16912# as_fn_mkdir_p 16913# ------------- 16914# Create "$as_dir" as a directory, including parents if necessary. 16915as_fn_mkdir_p () 16916{ 16917 16918 case $as_dir in #( 16919 -*) as_dir=./$as_dir;; 16920 esac 16921 test -d "$as_dir" || eval $as_mkdir_p || { 16922 as_dirs= 16923 while :; do 16924 case $as_dir in #( 16925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16926 *) as_qdir=$as_dir;; 16927 esac 16928 as_dirs="'$as_qdir' $as_dirs" 16929 as_dir=`$as_dirname -- "$as_dir" || 16930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16931 X"$as_dir" : 'X\(//\)[^/]' \| \ 16932 X"$as_dir" : 'X\(//\)$' \| \ 16933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16934$as_echo X"$as_dir" | 16935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16936 s//\1/ 16937 q 16938 } 16939 /^X\(\/\/\)[^/].*/{ 16940 s//\1/ 16941 q 16942 } 16943 /^X\(\/\/\)$/{ 16944 s//\1/ 16945 q 16946 } 16947 /^X\(\/\).*/{ 16948 s//\1/ 16949 q 16950 } 16951 s/.*/./; q'` 16952 test -d "$as_dir" && break 16953 done 16954 test -z "$as_dirs" || eval "mkdir $as_dirs" 16955 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16956 16957 16958} # as_fn_mkdir_p 16959if mkdir -p . 2>/dev/null; then 16960 as_mkdir_p='mkdir -p "$as_dir"' 16961else 16962 test -d ./-p && rmdir ./-p 16963 as_mkdir_p=false 16964fi 16965 16966 16967# as_fn_executable_p FILE 16968# ----------------------- 16969# Test if FILE is an executable regular file. 16970as_fn_executable_p () 16971{ 16972 test -f "$1" && test -x "$1" 16973} # as_fn_executable_p 16974as_test_x='test -x' 16975as_executable_p=as_fn_executable_p 16976 16977# Sed expression to map a string onto a valid CPP name. 16978as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16979 16980# Sed expression to map a string onto a valid variable name. 16981as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16982 16983 16984exec 6>&1 16985## ----------------------------------- ## 16986## Main body of $CONFIG_STATUS script. ## 16987## ----------------------------------- ## 16988_ASEOF 16989test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16990 16991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16992# Save the log message, to keep $0 and so on meaningful, and to 16993# report actual input values of CONFIG_FILES etc. instead of their 16994# values after options handling. 16995ac_log=" 16996This file was extended by john $as_me jumbo, which was 16997generated by GNU Autoconf 2.69. Invocation command line was 16998 16999 CONFIG_FILES = $CONFIG_FILES 17000 CONFIG_HEADERS = $CONFIG_HEADERS 17001 CONFIG_LINKS = $CONFIG_LINKS 17002 CONFIG_COMMANDS = $CONFIG_COMMANDS 17003 $ $0 $@ 17004 17005on `(hostname || uname -n) 2>/dev/null | sed 1q` 17006" 17007 17008_ACEOF 17009 17010case $ac_config_files in *" 17011"*) set x $ac_config_files; shift; ac_config_files=$*;; 17012esac 17013 17014case $ac_config_headers in *" 17015"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17016esac 17017 17018 17019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17020# Files that config.status was made for. 17021config_files="$ac_config_files" 17022config_headers="$ac_config_headers" 17023config_links="$ac_config_links" 17024config_commands="$ac_config_commands" 17025 17026_ACEOF 17027 17028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17029ac_cs_usage="\ 17030\`$as_me' instantiates files and other configuration actions 17031from templates according to the current configuration. Unless the files 17032and actions are specified as TAGs, all are instantiated by default. 17033 17034Usage: $0 [OPTION]... [TAG]... 17035 17036 -h, --help print this help, then exit 17037 -V, --version print version number and configuration settings, then exit 17038 --config print configuration, then exit 17039 -q, --quiet, --silent 17040 do not print progress messages 17041 -d, --debug don't remove temporary files 17042 --recheck update $as_me by reconfiguring in the same conditions 17043 --file=FILE[:TEMPLATE] 17044 instantiate the configuration file FILE 17045 --header=FILE[:TEMPLATE] 17046 instantiate the configuration header FILE 17047 17048Configuration files: 17049$config_files 17050 17051Configuration headers: 17052$config_headers 17053 17054Configuration links: 17055$config_links 17056 17057Configuration commands: 17058$config_commands 17059 17060Report bugs to <john-users mailing list at openwall.com>." 17061 17062_ACEOF 17063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17064ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17065ac_cs_version="\\ 17066john config.status jumbo 17067configured by $0, generated by GNU Autoconf 2.69, 17068 with options \\"\$ac_cs_config\\" 17069 17070Copyright (C) 2012 Free Software Foundation, Inc. 17071This config.status script is free software; the Free Software Foundation 17072gives unlimited permission to copy, distribute and modify it." 17073 17074ac_pwd='$ac_pwd' 17075srcdir='$srcdir' 17076MKDIR_P='$MKDIR_P' 17077test -n "\$AWK" || AWK=awk 17078_ACEOF 17079 17080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17081# The default lists apply if the user does not specify any file. 17082ac_need_defaults=: 17083while test $# != 0 17084do 17085 case $1 in 17086 --*=?*) 17087 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17088 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17089 ac_shift=: 17090 ;; 17091 --*=) 17092 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17093 ac_optarg= 17094 ac_shift=: 17095 ;; 17096 *) 17097 ac_option=$1 17098 ac_optarg=$2 17099 ac_shift=shift 17100 ;; 17101 esac 17102 17103 case $ac_option in 17104 # Handling of the options. 17105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17106 ac_cs_recheck=: ;; 17107 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17108 $as_echo "$ac_cs_version"; exit ;; 17109 --config | --confi | --conf | --con | --co | --c ) 17110 $as_echo "$ac_cs_config"; exit ;; 17111 --debug | --debu | --deb | --de | --d | -d ) 17112 debug=: ;; 17113 --file | --fil | --fi | --f ) 17114 $ac_shift 17115 case $ac_optarg in 17116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17117 '') as_fn_error $? "missing file argument" ;; 17118 esac 17119 as_fn_append CONFIG_FILES " '$ac_optarg'" 17120 ac_need_defaults=false;; 17121 --header | --heade | --head | --hea ) 17122 $ac_shift 17123 case $ac_optarg in 17124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17125 esac 17126 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17127 ac_need_defaults=false;; 17128 --he | --h) 17129 # Conflict between --help and --header 17130 as_fn_error $? "ambiguous option: \`$1' 17131Try \`$0 --help' for more information.";; 17132 --help | --hel | -h ) 17133 $as_echo "$ac_cs_usage"; exit ;; 17134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17135 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17136 ac_cs_silent=: ;; 17137 17138 # This is an error. 17139 -*) as_fn_error $? "unrecognized option: \`$1' 17140Try \`$0 --help' for more information." ;; 17141 17142 *) as_fn_append ac_config_targets " $1" 17143 ac_need_defaults=false ;; 17144 17145 esac 17146 shift 17147done 17148 17149ac_configure_extra_args= 17150 17151if $ac_cs_silent; then 17152 exec 6>/dev/null 17153 ac_configure_extra_args="$ac_configure_extra_args --silent" 17154fi 17155 17156_ACEOF 17157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17158if \$ac_cs_recheck; then 17159 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17160 shift 17161 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17162 CONFIG_SHELL='$SHELL' 17163 export CONFIG_SHELL 17164 exec "\$@" 17165fi 17166 17167_ACEOF 17168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17169exec 5>>config.log 17170{ 17171 echo 17172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17173## Running $as_me. ## 17174_ASBOX 17175 $as_echo "$ac_log" 17176} >&5 17177 17178_ACEOF 17179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17180_ACEOF 17181 17182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17183 17184# Handling of arguments. 17185for ac_config_target in $ac_config_targets 17186do 17187 case $ac_config_target in 17188 "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;; 17189 "ztex/Makefile") CONFIG_FILES="$CONFIG_FILES ztex/Makefile" ;; 17190 "ztex/pkt_comm/Makefile") CONFIG_FILES="$CONFIG_FILES ztex/pkt_comm/Makefile" ;; 17191 "arch.h") CONFIG_LINKS="$CONFIG_LINKS arch.h:$ARCH_LINK" ;; 17192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17193 "aes/Makefile") CONFIG_FILES="$CONFIG_FILES aes/Makefile" ;; 17194 "aes/aesni/Makefile") CONFIG_FILES="$CONFIG_FILES aes/aesni/Makefile" ;; 17195 "aes/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES aes/openssl/Makefile" ;; 17196 "secp256k1/Makefile") CONFIG_FILES="$CONFIG_FILES secp256k1/Makefile" ;; 17197 "ed25519-donna/Makefile") CONFIG_FILES="$CONFIG_FILES ed25519-donna/Makefile" ;; 17198 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 17199 17200 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17201 esac 17202done 17203 17204 17205# If the user did not use the arguments to specify the items to instantiate, 17206# then the envvar interface is used. Set only those that are not. 17207# We use the long form for the default assignment because of an extremely 17208# bizarre bug on SunOS 4.1.3. 17209if $ac_need_defaults; then 17210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17212 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 17213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17214fi 17215 17216# Have a temporary directory for convenience. Make it in the build tree 17217# simply because there is no reason against having it here, and in addition, 17218# creating and moving files from /tmp can sometimes cause problems. 17219# Hook for its removal unless debugging. 17220# Note that there is a small window in which the directory will not be cleaned: 17221# after its creation but before its name has been assigned to `$tmp'. 17222$debug || 17223{ 17224 tmp= ac_tmp= 17225 trap 'exit_status=$? 17226 : "${ac_tmp:=$tmp}" 17227 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17228' 0 17229 trap 'as_fn_exit 1' 1 2 13 15 17230} 17231# Create a (secure) tmp directory for tmp files. 17232 17233{ 17234 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17235 test -d "$tmp" 17236} || 17237{ 17238 tmp=./conf$$-$RANDOM 17239 (umask 077 && mkdir "$tmp") 17240} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17241ac_tmp=$tmp 17242 17243# Set up the scripts for CONFIG_FILES section. 17244# No need to generate them if there are no CONFIG_FILES. 17245# This happens for instance with `./config.status config.h'. 17246if test -n "$CONFIG_FILES"; then 17247 17248 17249ac_cr=`echo X | tr X '\015'` 17250# On cygwin, bash can eat \r inside `` if the user requested igncr. 17251# But we know of no other shell where ac_cr would be empty at this 17252# point, so we can use a bashism as a fallback. 17253if test "x$ac_cr" = x; then 17254 eval ac_cr=\$\'\\r\' 17255fi 17256ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17257if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17258 ac_cs_awk_cr='\\r' 17259else 17260 ac_cs_awk_cr=$ac_cr 17261fi 17262 17263echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17264_ACEOF 17265 17266 17267{ 17268 echo "cat >conf$$subs.awk <<_ACEOF" && 17269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17270 echo "_ACEOF" 17271} >conf$$subs.sh || 17272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17273ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17274ac_delim='%!_!# ' 17275for ac_last_try in false false false false false :; do 17276 . ./conf$$subs.sh || 17277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17278 17279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17280 if test $ac_delim_n = $ac_delim_num; then 17281 break 17282 elif $ac_last_try; then 17283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17284 else 17285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17286 fi 17287done 17288rm -f conf$$subs.sh 17289 17290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17291cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17292_ACEOF 17293sed -n ' 17294h 17295s/^/S["/; s/!.*/"]=/ 17296p 17297g 17298s/^[^!]*!// 17299:repl 17300t repl 17301s/'"$ac_delim"'$// 17302t delim 17303:nl 17304h 17305s/\(.\{148\}\)..*/\1/ 17306t more1 17307s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17308p 17309n 17310b repl 17311:more1 17312s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17313p 17314g 17315s/.\{148\}// 17316t nl 17317:delim 17318h 17319s/\(.\{148\}\)..*/\1/ 17320t more2 17321s/["\\]/\\&/g; s/^/"/; s/$/"/ 17322p 17323b 17324:more2 17325s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17326p 17327g 17328s/.\{148\}// 17329t delim 17330' <conf$$subs.awk | sed ' 17331/^[^""]/{ 17332 N 17333 s/\n// 17334} 17335' >>$CONFIG_STATUS || ac_write_fail=1 17336rm -f conf$$subs.awk 17337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17338_ACAWK 17339cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17340 for (key in S) S_is_set[key] = 1 17341 FS = "" 17342 17343} 17344{ 17345 line = $ 0 17346 nfields = split(line, field, "@") 17347 substed = 0 17348 len = length(field[1]) 17349 for (i = 2; i < nfields; i++) { 17350 key = field[i] 17351 keylen = length(key) 17352 if (S_is_set[key]) { 17353 value = S[key] 17354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17355 len += length(value) + length(field[++i]) 17356 substed = 1 17357 } else 17358 len += 1 + keylen 17359 } 17360 17361 print line 17362} 17363 17364_ACAWK 17365_ACEOF 17366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17369else 17370 cat 17371fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17373_ACEOF 17374 17375# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17376# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17377# trailing colons and then remove the whole line if VPATH becomes empty 17378# (actually we leave an empty line to preserve line numbers). 17379if test "x$srcdir" = x.; then 17380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17381h 17382s/// 17383s/^/:/ 17384s/[ ]*$/:/ 17385s/:\$(srcdir):/:/g 17386s/:\${srcdir}:/:/g 17387s/:@srcdir@:/:/g 17388s/^:*// 17389s/:*$// 17390x 17391s/\(=[ ]*\).*/\1/ 17392G 17393s/\n// 17394s/^[^=]*=[ ]*$// 17395}' 17396fi 17397 17398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17399fi # test -n "$CONFIG_FILES" 17400 17401# Set up the scripts for CONFIG_HEADERS section. 17402# No need to generate them if there are no CONFIG_HEADERS. 17403# This happens for instance with `./config.status Makefile'. 17404if test -n "$CONFIG_HEADERS"; then 17405cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17406BEGIN { 17407_ACEOF 17408 17409# Transform confdefs.h into an awk script `defines.awk', embedded as 17410# here-document in config.status, that substitutes the proper values into 17411# config.h.in to produce config.h. 17412 17413# Create a delimiter string that does not exist in confdefs.h, to ease 17414# handling of long lines. 17415ac_delim='%!_!# ' 17416for ac_last_try in false false :; do 17417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17418 if test -z "$ac_tt"; then 17419 break 17420 elif $ac_last_try; then 17421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17422 else 17423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17424 fi 17425done 17426 17427# For the awk script, D is an array of macro values keyed by name, 17428# likewise P contains macro parameters if any. Preserve backslash 17429# newline sequences. 17430 17431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17432sed -n ' 17433s/.\{148\}/&'"$ac_delim"'/g 17434t rset 17435:rset 17436s/^[ ]*#[ ]*define[ ][ ]*/ / 17437t def 17438d 17439:def 17440s/\\$// 17441t bsnl 17442s/["\\]/\\&/g 17443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17444D["\1"]=" \3"/p 17445s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17446d 17447:bsnl 17448s/["\\]/\\&/g 17449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17450D["\1"]=" \3\\\\\\n"\\/p 17451t cont 17452s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17453t cont 17454d 17455:cont 17456n 17457s/.\{148\}/&'"$ac_delim"'/g 17458t clear 17459:clear 17460s/\\$// 17461t bsnlc 17462s/["\\]/\\&/g; s/^/"/; s/$/"/p 17463d 17464:bsnlc 17465s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17466b cont 17467' <confdefs.h | sed ' 17468s/'"$ac_delim"'/"\\\ 17469"/g' >>$CONFIG_STATUS || ac_write_fail=1 17470 17471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17472 for (key in D) D_is_set[key] = 1 17473 FS = "" 17474} 17475/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17476 line = \$ 0 17477 split(line, arg, " ") 17478 if (arg[1] == "#") { 17479 defundef = arg[2] 17480 mac1 = arg[3] 17481 } else { 17482 defundef = substr(arg[1], 2) 17483 mac1 = arg[2] 17484 } 17485 split(mac1, mac2, "(") #) 17486 macro = mac2[1] 17487 prefix = substr(line, 1, index(line, defundef) - 1) 17488 if (D_is_set[macro]) { 17489 # Preserve the white space surrounding the "#". 17490 print prefix "define", macro P[macro] D[macro] 17491 next 17492 } else { 17493 # Replace #undef with comments. This is necessary, for example, 17494 # in the case of _POSIX_SOURCE, which is predefined and required 17495 # on some systems where configure will not decide to define it. 17496 if (defundef == "undef") { 17497 print "/*", prefix defundef, macro, "*/" 17498 next 17499 } 17500 } 17501} 17502{ print } 17503_ACAWK 17504_ACEOF 17505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17507fi # test -n "$CONFIG_HEADERS" 17508 17509 17510eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 17511shift 17512for ac_tag 17513do 17514 case $ac_tag in 17515 :[FHLC]) ac_mode=$ac_tag; continue;; 17516 esac 17517 case $ac_mode$ac_tag in 17518 :[FHL]*:*);; 17519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17520 :[FH]-) ac_tag=-:-;; 17521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17522 esac 17523 ac_save_IFS=$IFS 17524 IFS=: 17525 set x $ac_tag 17526 IFS=$ac_save_IFS 17527 shift 17528 ac_file=$1 17529 shift 17530 17531 case $ac_mode in 17532 :L) ac_source=$1;; 17533 :[FH]) 17534 ac_file_inputs= 17535 for ac_f 17536 do 17537 case $ac_f in 17538 -) ac_f="$ac_tmp/stdin";; 17539 *) # Look for the file first in the build tree, then in the source tree 17540 # (if the path is not absolute). The absolute path cannot be DOS-style, 17541 # because $ac_f cannot contain `:'. 17542 test -f "$ac_f" || 17543 case $ac_f in 17544 [\\/$]*) false;; 17545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17546 esac || 17547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17548 esac 17549 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17550 as_fn_append ac_file_inputs " '$ac_f'" 17551 done 17552 17553 # Let's still pretend it is `configure' which instantiates (i.e., don't 17554 # use $as_me), people would be surprised to read: 17555 # /* config.h. Generated by config.status. */ 17556 configure_input='Generated from '` 17557 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17558 `' by configure.' 17559 if test x"$ac_file" != x-; then 17560 configure_input="$ac_file. $configure_input" 17561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17562$as_echo "$as_me: creating $ac_file" >&6;} 17563 fi 17564 # Neutralize special characters interpreted by sed in replacement strings. 17565 case $configure_input in #( 17566 *\&* | *\|* | *\\* ) 17567 ac_sed_conf_input=`$as_echo "$configure_input" | 17568 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17569 *) ac_sed_conf_input=$configure_input;; 17570 esac 17571 17572 case $ac_tag in 17573 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17575 esac 17576 ;; 17577 esac 17578 17579 ac_dir=`$as_dirname -- "$ac_file" || 17580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17581 X"$ac_file" : 'X\(//\)[^/]' \| \ 17582 X"$ac_file" : 'X\(//\)$' \| \ 17583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17584$as_echo X"$ac_file" | 17585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17586 s//\1/ 17587 q 17588 } 17589 /^X\(\/\/\)[^/].*/{ 17590 s//\1/ 17591 q 17592 } 17593 /^X\(\/\/\)$/{ 17594 s//\1/ 17595 q 17596 } 17597 /^X\(\/\).*/{ 17598 s//\1/ 17599 q 17600 } 17601 s/.*/./; q'` 17602 as_dir="$ac_dir"; as_fn_mkdir_p 17603 ac_builddir=. 17604 17605case "$ac_dir" in 17606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17607*) 17608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17609 # A ".." for each directory in $ac_dir_suffix. 17610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17611 case $ac_top_builddir_sub in 17612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17614 esac ;; 17615esac 17616ac_abs_top_builddir=$ac_pwd 17617ac_abs_builddir=$ac_pwd$ac_dir_suffix 17618# for backward compatibility: 17619ac_top_builddir=$ac_top_build_prefix 17620 17621case $srcdir in 17622 .) # We are building in place. 17623 ac_srcdir=. 17624 ac_top_srcdir=$ac_top_builddir_sub 17625 ac_abs_top_srcdir=$ac_pwd ;; 17626 [\\/]* | ?:[\\/]* ) # Absolute name. 17627 ac_srcdir=$srcdir$ac_dir_suffix; 17628 ac_top_srcdir=$srcdir 17629 ac_abs_top_srcdir=$srcdir ;; 17630 *) # Relative name. 17631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17632 ac_top_srcdir=$ac_top_build_prefix$srcdir 17633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17634esac 17635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17636 17637 17638 case $ac_mode in 17639 :F) 17640 # 17641 # CONFIG_FILE 17642 # 17643 17644 ac_MKDIR_P=$MKDIR_P 17645 case $MKDIR_P in 17646 [\\/$]* | ?:[\\/]* ) ;; 17647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17648 esac 17649_ACEOF 17650 17651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17652# If the template does not know about datarootdir, expand it. 17653# FIXME: This hack should be removed a few years after 2.60. 17654ac_datarootdir_hack=; ac_datarootdir_seen= 17655ac_sed_dataroot=' 17656/datarootdir/ { 17657 p 17658 q 17659} 17660/@datadir@/p 17661/@docdir@/p 17662/@infodir@/p 17663/@localedir@/p 17664/@mandir@/p' 17665case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17666*datarootdir*) ac_datarootdir_seen=yes;; 17667*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17669$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17670_ACEOF 17671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17672 ac_datarootdir_hack=' 17673 s&@datadir@&$datadir&g 17674 s&@docdir@&$docdir&g 17675 s&@infodir@&$infodir&g 17676 s&@localedir@&$localedir&g 17677 s&@mandir@&$mandir&g 17678 s&\\\${datarootdir}&$datarootdir&g' ;; 17679esac 17680_ACEOF 17681 17682# Neutralize VPATH when `$srcdir' = `.'. 17683# Shell code in configure.ac might set extrasub. 17684# FIXME: do we really want to maintain this feature? 17685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17686ac_sed_extra="$ac_vpsub 17687$extrasub 17688_ACEOF 17689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17690:t 17691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17692s|@configure_input@|$ac_sed_conf_input|;t t 17693s&@top_builddir@&$ac_top_builddir_sub&;t t 17694s&@top_build_prefix@&$ac_top_build_prefix&;t t 17695s&@srcdir@&$ac_srcdir&;t t 17696s&@abs_srcdir@&$ac_abs_srcdir&;t t 17697s&@top_srcdir@&$ac_top_srcdir&;t t 17698s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17699s&@builddir@&$ac_builddir&;t t 17700s&@abs_builddir@&$ac_abs_builddir&;t t 17701s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17702s&@MKDIR_P@&$ac_MKDIR_P&;t t 17703$ac_datarootdir_hack 17704" 17705eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17707 17708test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17711 "$ac_tmp/out"`; test -z "$ac_out"; } && 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17713which seems to be undefined. Please make sure it is defined" >&5 17714$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17715which seems to be undefined. Please make sure it is defined" >&2;} 17716 17717 rm -f "$ac_tmp/stdin" 17718 case $ac_file in 17719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17721 esac \ 17722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17723 ;; 17724 :H) 17725 # 17726 # CONFIG_HEADER 17727 # 17728 if test x"$ac_file" != x-; then 17729 { 17730 $as_echo "/* $configure_input */" \ 17731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17732 } >"$ac_tmp/config.h" \ 17733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17734 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17736$as_echo "$as_me: $ac_file is unchanged" >&6;} 17737 else 17738 rm -f "$ac_file" 17739 mv "$ac_tmp/config.h" "$ac_file" \ 17740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17741 fi 17742 else 17743 $as_echo "/* $configure_input */" \ 17744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17745 || as_fn_error $? "could not create -" "$LINENO" 5 17746 fi 17747# Compute "$ac_file"'s index in $config_headers. 17748_am_arg="$ac_file" 17749_am_stamp_count=1 17750for _am_header in $config_headers :; do 17751 case $_am_header in 17752 $_am_arg | $_am_arg:* ) 17753 break ;; 17754 * ) 17755 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17756 esac 17757done 17758echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17759$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17760 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17761 X"$_am_arg" : 'X\(//\)$' \| \ 17762 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17763$as_echo X"$_am_arg" | 17764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17765 s//\1/ 17766 q 17767 } 17768 /^X\(\/\/\)[^/].*/{ 17769 s//\1/ 17770 q 17771 } 17772 /^X\(\/\/\)$/{ 17773 s//\1/ 17774 q 17775 } 17776 /^X\(\/\).*/{ 17777 s//\1/ 17778 q 17779 } 17780 s/.*/./; q'`/stamp-h$_am_stamp_count 17781 ;; 17782 :L) 17783 # 17784 # CONFIG_LINK 17785 # 17786 17787 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 17788 : 17789 else 17790 # Prefer the file from the source tree if names are identical. 17791 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 17792 ac_source=$srcdir/$ac_source 17793 fi 17794 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 17796$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 17797 17798 if test ! -r "$ac_source"; then 17799 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 17800 fi 17801 rm -f "$ac_file" 17802 17803 # Try a relative symlink, then a hard link, then a copy. 17804 case $ac_source in 17805 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 17806 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 17807 esac 17808 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 17809 ln "$ac_source" "$ac_file" 2>/dev/null || 17810 cp -p "$ac_source" "$ac_file" || 17811 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 17812 fi 17813 ;; 17814 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17815$as_echo "$as_me: executing $ac_file commands" >&6;} 17816 ;; 17817 esac 17818 17819 17820 case $ac_file$ac_mode in 17821 "default":C) echo "timestamp from configure.in" > autoconfig-stamp-h ;; 17822 17823 esac 17824done # for ac_tag 17825 17826 17827as_fn_exit 0 17828_ACEOF 17829ac_clean_files=$ac_clean_files_save 17830 17831test $ac_write_fail = 0 || 17832 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17833 17834 17835# configure is writing to config.log, and then calls config.status. 17836# config.status does its own redirection, appending to config.log. 17837# Unfortunately, on DOS this fails, as config.log is still kept open 17838# by configure, so config.status won't be able to write to it; its 17839# output is simply discarded. So we exec the FD to /dev/null, 17840# effectively closing config.log, so it can be properly (re)opened and 17841# appended to by config.status. When coming back to configure, we 17842# need to make the FD available again. 17843if test "$no_create" != yes; then 17844 ac_cs_success=: 17845 ac_config_status_args= 17846 test "$silent" = yes && 17847 ac_config_status_args="$ac_config_status_args --quiet" 17848 exec 5>/dev/null 17849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17850 exec 5>>config.log 17851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17852 # would make configure fail if this is the last instruction. 17853 $ac_cs_success || as_fn_exit 1 17854fi 17855if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17857$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17858fi 17859 17860 17861CFLAGS_EXTRA=$CFLAGS_EXTRA_BACKUP 17862 17863{ $as_echo "$as_me:${as_lineno-$LINENO}: creating ./fmt_externs.h" >&5 17864$as_echo "$as_me: creating ./fmt_externs.h" >&6;} 17865rm -f fmt_externs.h 17866 17867CFLAGS_EX2= 17868if test "x$simd" = xno ; then 17869 CFLAGS_EX2=-DJOHN_NO_SIMD 17870fi 17871 17872if test "`echo *_fmt_plug.c`" != "*_fmt_plug.c"; then 17873 $CC -E -P -DAC_BUILT $CFLAGS_EX2 $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $HAVE_OPENCL $CFLAGS_EXTRA $OPENMP_CFLAGS $OPENSSL_CFLAGS -DFMT_EXTERNS_H *_fmt_plug.c | LC_ALL=C $GREP "extern struct fmt_main" | LC_ALL=C $SORT -f > fmt_externs.h 17874fi 17875if test -f fmt_externs.h -a ! -s fmt_externs.h; then 17876 cp Makefile.stub Makefile 17877 as_fn_error $? "The build of fmt_externs.h failed. Can not continue!" "$LINENO" 5 17878fi 17879if test ! -f fmt_externs.h; then 17880 echo >fmt_externs.h 17881fi 17882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating ./fmt_registers.h" >&5 17883$as_echo "$as_me: creating ./fmt_registers.h" >&6;} 17884rm -f fmt_registers.h 17885if test "`echo *_fmt_plug.c`" != "*_fmt_plug.c"; then 17886 $CC -E -P -DAC_BUILT $CFLAGS_EX2 $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $CFLAGS_EXTRA $OPENMP_CFLAGS $OPENSSL_CFLAGS -DFMT_REGISTERS_H *_fmt_plug.c | LC_ALL=C $GREP "john_register_one" | LC_ALL=C $SORT -f > fmt_registers.h 17887fi 17888if test -f fmt_registers.h -a ! -s fmt_registers.h; then 17889 cp Makefile.stub Makefile 17890 as_fn_error $? "The build of fmt_registers.h failed. Can not continue!" "$LINENO" 5 17891fi 17892if test ! -f fmt_registers.h; then 17893 echo >fmt_registers.h 17894fi 17895 17896if test "`echo opencl_*_fmt_plug.c`" != "opencl_*_fmt_plug.c"; then 17897 $CC -E -P -DAC_BUILT $CFLAGS_EX2 $CPPFLAGS $CPU_BEST_FLAGS $CFLAGS $HAVE_OPENCL $CFLAGS_EXTRA $OPENMP_CFLAGS $OPENSSL_CFLAGS -DFMT_REGISTERS_H opencl_*_fmt_plug.c | LC_ALL=C $GREP "john_register_one" | LC_ALL=C $SORT -f >> fmt_registers.h 17898fi 17899 17900 17901if test "x$ac_cv_prog_c_openmp" != x -a "x$enable_openmp" != xno -a "x$ac_cv_prog_c_openmp" != xunsupported ; then 17902 if test "x$ompfast" = "xyes"; then 17903 using_omp=yes 17904 else 17905 using_omp="yes (not for fast formats)" 17906 fi 17907else 17908 if test "x$ompfast" = "xyes"; then 17909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17911as_fn_error $? "OMP for fast formats requested, but no OMP on this system 17912See \`config.log' for more details" "$LINENO" 5; } 17913 fi 17914 using_omp=no 17915fi 17916 17917if test "x$ac_cv_search_crypt" != xno; then 17918 using_crypt=yes 17919else 17920 using_crypt=no 17921fi 17922 17923if test "x$ac_cv_lib_z_deflate" = xyes; then 17924 using_zlib=yes 17925else 17926 using_zlib=no 17927fi 17928 17929if test "x$ac_cv_lib_bz2_main" = xyes; then 17930 using_bz2=yes 17931else 17932 using_bz2=no 17933fi 17934 17935if test "x$ac_cv_func_mmap" != xno; then 17936 using_mmap=yes 17937else 17938 using_mmap=no 17939fi 17940 17941if test -n "$SIMD_NAME"; then 17942 CPU_NAME="$host_cpu $SIMD_NAME" 17943else 17944 CPU_NAME=$host_cpu 17945fi 17946 17947if test "x$ac_cv_func_fork_works" = x ; then 17948 ac_cv_func_fork_works=no 17949fi 17950if test "x$ac_cv_lib_gmp___gmpz_init" = x ; then 17951 ac_cv_lib_gmp___gmpz_init=no 17952fi 17953using_pcap=no 17954if test "x$ac_cv_lib_pcap_pcap_compile" = xyes ; then 17955 using_pcap=yes 17956fi 17957if test "x$ac_cv_lib_wpcap_pcap_compile" = xyes; then 17958 using_pcap=yes 17959fi 17960if test $(echo "$CFLAGS" | ${GREP} -c -- "-O") -eq 0 && 17961 test $(echo "$CFLAGS" | ${GREP} -c -- "-xO") -eq 0 && 17962 test $(echo "$CFLAGS" | ${GREP} -c -- "-fast\b") -eq 0; then 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No recognized optimization option present in CFLAGS \"$CFLAGS\"" >&5 17964$as_echo "$as_me: WARNING: No recognized optimization option present in CFLAGS \"$CFLAGS\"" >&2;} 17965fi 17966if test "x$endian" = "xbig"; then 17967 using_endian="BE" 17968else 17969 using_endian="LE" 17970fi 17971if test x$_cv_gnu_make_command = x; then 17972 use_make=make 17973else 17974 use_make=$_cv_gnu_make_command 17975fi 17976 17977if test "x$asan" = xyes ; then 17978 asan="enabled" 17979else 17980 asan="disabled" 17981fi 17982 17983if test "x$ubsan" = xyes ; then 17984 ubsan="enabled" 17985else 17986 ubsan="disabled" 17987fi 17988 17989if test "x$ubsantrap" = xyes ; then 17990 ubsan="enabled (trap)" 17991fi 17992 17993cat <<EOF 17994 17995Configured for building John the Ripper ${PACKAGE_VERSION}: 17996 17997Target CPU ................................. ${CPU_NAME}, ${CPU_BIT_STR}-bit ${using_endian}${using_x32} 17998AES-NI support ............................. ${using_aesni} 17999Target OS .................................. ${host_os} 18000Cross compiling ............................ ${cross_compiling} 18001Legacy arch header ......................... ${ARCH_LINK} 18002 18003Optional libraries/features found: 18004Memory map (share/page large files) ........ ${using_mmap} 18005Fork support ............................... ${ac_cv_func_fork_works} 18006OpenMP support ............................. ${using_omp} 18007OpenCL support ............................. ${using_cl} 18008Generic crypt(3) format .................... ${using_crypt} 18009libgmp (PRINCE mode and faster SRP formats) ${ac_cv_lib_gmp___gmpz_init} 18010128-bit integer (faster PRINCE mode) ....... ${have_int128} 18011libz (pkzip and some other formats) ........ ${using_zlib} 18012libbz2 (gpg2john extra decompression logic) ${using_bz2} 18013libpcap (vncpcap2john and SIPdump) ......... ${using_pcap} 18014OpenMPI support (default disabled) ......... ${using_mpi} 18015ZTEX USB-FPGA module 1.15y support ......... ${ztex} 18016 18017EOF 18018 18019if test "$ubsan" != "disabled" || test "$asan" != "disabled" || 18020 test "$fuzz" != "no" || test "$experimental" != "no" || 18021 test "$using_rexgen" != "no" ; then 18022cat <<EOF 18023Development options (these may hurt performance when enabled): 18024AddressSanitizer ("ASan") .................. ${asan} 18025UndefinedBehaviorSanitizer ("UbSan") ....... ${ubsan} 18026Fuzzing test ............................... ${fuzz} 18027Experimental code .......................... ${experimental} 18028 - librexgen (regex mode) .................. ${using_rexgen} 18029 18030EOF 18031fi 18032 18033echo "Install missing libraries to get any needed features that were omitted." 18034echo "" 18035echo "Configure finished. Now \"${use_make} -s clean && ${use_make} -sj4\" to compile." 18036