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