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