1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57 for protomol 2.0.3. 4# 5# Report bugs to <protomol@cse.nd.edu>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8# Free Software Foundation, Inc. 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 Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245# Name of the host. 246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247# so uname gets run too. 248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250exec 6>&1 251 252# 253# Initializations. 254# 255ac_default_prefix=/usr/local 256ac_config_libobj_dir=. 257cross_compiling=no 258subdirs= 259MFLAGS= 260MAKEFLAGS= 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263# Maximum number of lines to put in a shell here document. 264# This variable seems obsolete. It should probably be removed, and 265# only ac_max_sed_lines should be used. 266: ${ac_max_here_lines=38} 267 268# Identity of this package. 269PACKAGE_NAME='protomol' 270PACKAGE_TARNAME='protomol' 271PACKAGE_VERSION='2.0.3' 272PACKAGE_STRING='protomol 2.0.3' 273PACKAGE_BUGREPORT='protomol@cse.nd.edu' 274 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE PROTOMOL_MAJOR_VERSION PROTOMOL_MINOR_VERSION PROTOMOL_PATCH_LEVEL LT_RELEASE LT_CURRENT LT_REVISION LT_AGE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE CC CFLAGS ac_ct_CC CCDEPMODE DEPFLAGS CXXCPP RANLIB ac_ct_RANLIB X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SOCKET_LIBS EGREP FFT_LIBS FFT_CFLAGS PNG_LIBS GLUT_LIBS GLUT_CFLAGS CLEANFILES AR1 AR2 LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CXX_set=${CXX+set} 754ac_env_CXX_value=$CXX 755ac_cv_env_CXX_set=${CXX+set} 756ac_cv_env_CXX_value=$CXX 757ac_env_CXXFLAGS_set=${CXXFLAGS+set} 758ac_env_CXXFLAGS_value=$CXXFLAGS 759ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 760ac_cv_env_CXXFLAGS_value=$CXXFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CC_set=${CC+set} 770ac_env_CC_value=$CC 771ac_cv_env_CC_set=${CC+set} 772ac_cv_env_CC_value=$CC 773ac_env_CFLAGS_set=${CFLAGS+set} 774ac_env_CFLAGS_value=$CFLAGS 775ac_cv_env_CFLAGS_set=${CFLAGS+set} 776ac_cv_env_CFLAGS_value=$CFLAGS 777ac_env_CXXCPP_set=${CXXCPP+set} 778ac_env_CXXCPP_value=$CXXCPP 779ac_cv_env_CXXCPP_set=${CXXCPP+set} 780ac_cv_env_CXXCPP_value=$CXXCPP 781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789\`configure' configures protomol 2.0.3 to adapt to many kinds of systems. 790 791Usage: $0 [OPTION]... [VAR=VALUE]... 792 793To assign environment variables (e.g., CC, CFLAGS...), specify them as 794VAR=VALUE. See below for descriptions of some of the useful variables. 795 796Defaults for the options are specified in brackets. 797 798Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809_ACEOF 810 811 cat <<_ACEOF 812Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818By default, \`make install' will install all the files in 819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821for instance \`--prefix=\$HOME'. 822 823For better control, use the options below. 824 825Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838_ACEOF 839 840 cat <<\_ACEOF 841 842Program names: 843 --program-prefix=PREFIX prepend PREFIX to installed program names 844 --program-suffix=SUFFIX append SUFFIX to installed program names 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 846 847X features: 848 --x-includes=DIR X include files are in DIR 849 --x-libraries=DIR X library files are in DIR 850_ACEOF 851fi 852 853if test -n "$ac_init_help"; then 854 case $ac_init_help in 855 short | recursive ) echo "Configuration of protomol 2.0.3:";; 856 esac 857 cat <<\_ACEOF 858 859Optional Features: 860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 862 --disable-dependency-tracking Speeds up one-time builds 863 --enable-dependency-tracking Do not reject slow dependency extractors 864 865Optional Packages: 866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 868 --with-fft=sgi|essl|fftw3|fftw2|fft2mpi|zfft Specify the FFT 869 --with-fftw3=DIR Specify the FFTW3 install path and enable FFTW3 870 --with-fftw2=DIR Specify the FFTW2 install path and enable FFTW2 871 --with-fftw2mpi=DIR Specify the FFTW2 MPI install path and enable FFTW2 MPI 872 --with-glut=DIR|no|yes Specify the GLUT install path and enable GLUT 873 --with-aix-xlc Use xlC for AIX with optimization flags 874 --with-aix-xlc-debug Use xlC for AIX with debugging flags 875 --with-aix-xlc-mpi Use xlC for AIX with MPI and optimization flags 876 --with-aix-xlc-mpi-debug Use xlC for AIX with MPI and debugging flags 877 --with-gcc Use g++ for generic with optimization flags 878 --with-gcc-debug Use g++ for generic with debugging flags 879 --with-gcc-debug-gdb Use g++ for generic with debugging and gdb flags 880 --with-gcc-mpich Use g++ for generic with MPICH flags 881 --with-gcc-mpich-debug Use g++ for generic with MPICH debug flags 882 --with-gcc-mpich-xeon Use g++ for generic with MPICH xeon flags (for Notre Dame's HPCC cluster) 883 --with-hpux-cc Use aCC for HPUX optimization flags 884 --with-hpux-cc-debug Use aCC for HPUX with debugging flags 885 --with-hpux-cc-mpi Use aCC for HPUX with MPI and optimization flags 886 --with-hpux-cc-mpi-debug Use aCC for HPUX with MPI and debugging flags 887 --with-icc Use icc for generic with optimization flags 888 --with-icc-debug Use icc for generic with debugging flags 889 --with-icc-mpich Use icc for generic with MPICH and optimization flags 890 --with-icc-mpich-xeon Use icc for generic with MPICH and optimization flags (for Notre Dame's HPCC cluster) 891 --with-icc-mpich-debug Use icc for generic with MPICH and debugging flags 892 --with-irix-mipspro Use CC for IRIX with optimization flags 893 --with-irix-mipspro-debug Use CC for IRIX with debugging flags 894 --with-irix-mipspro-mpi Use CC for IRIX with MPI and optimization flags 895 --with-irix-mipspro-mpi-debug Use CC for IRIX with MPI and debugging flags 896 --with-ppc-xlc Use xlC for PPC with optimization flags 897 --with-pcc-xlc-debug Use xlC for PPC with debugging flags 898 --with-sun-gcc Use g++ for SUN with optimization flags 899 --with-x use the X Window System 900 901Some influential environment variables: 902 CXX C++ compiler command 903 CXXFLAGS C++ compiler flags 904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 905 nonstandard directory <lib dir> 906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 907 headers in a nonstandard directory <include dir> 908 CC C compiler command 909 CFLAGS C compiler flags 910 CXXCPP C++ preprocessor 911 912Use these variables to override the choices made by `configure' or to help 913it to find libraries and programs with nonstandard names/locations. 914 915Report bugs to <protomol@cse.nd.edu>. 916_ACEOF 917fi 918 919if test "$ac_init_help" = "recursive"; then 920 # If there are subdirs, report their specific --help. 921 ac_popdir=`pwd` 922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 923 test -d $ac_dir || continue 924 ac_builddir=. 925 926if test "$ac_dir" != .; then 927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 928 # A "../" for each directory in $ac_dir_suffix. 929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 930else 931 ac_dir_suffix= ac_top_builddir= 932fi 933 934case $srcdir in 935 .) # No --srcdir option. We are building in place. 936 ac_srcdir=. 937 if test -z "$ac_top_builddir"; then 938 ac_top_srcdir=. 939 else 940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 941 fi ;; 942 [\\/]* | ?:[\\/]* ) # Absolute path. 943 ac_srcdir=$srcdir$ac_dir_suffix; 944 ac_top_srcdir=$srcdir ;; 945 *) # Relative path. 946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 947 ac_top_srcdir=$ac_top_builddir$srcdir ;; 948esac 949# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 950# absolute. 951ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 952ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 953ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 954ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 955 956 cd $ac_dir 957 # Check for guested configure; otherwise get Cygnus style configure. 958 if test -f $ac_srcdir/configure.gnu; then 959 echo 960 $SHELL $ac_srcdir/configure.gnu --help=recursive 961 elif test -f $ac_srcdir/configure; then 962 echo 963 $SHELL $ac_srcdir/configure --help=recursive 964 elif test -f $ac_srcdir/configure.ac || 965 test -f $ac_srcdir/configure.in; then 966 echo 967 $ac_configure --help 968 else 969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 970 fi 971 cd $ac_popdir 972 done 973fi 974 975test -n "$ac_init_help" && exit 0 976if $ac_init_version; then 977 cat <<\_ACEOF 978protomol configure 2.0.3 979generated by GNU Autoconf 2.57 980 981Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 982Free Software Foundation, Inc. 983This configure script is free software; the Free Software Foundation 984gives unlimited permission to copy, distribute and modify it. 985_ACEOF 986 exit 0 987fi 988exec 5>config.log 989cat >&5 <<_ACEOF 990This file contains any messages produced by compilers while 991running configure, to aid debugging if configure makes a mistake. 992 993It was created by protomol $as_me 2.0.3, which was 994generated by GNU Autoconf 2.57. Invocation command line was 995 996 $ $0 $@ 997 998_ACEOF 999{ 1000cat <<_ASUNAME 1001## --------- ## 1002## Platform. ## 1003## --------- ## 1004 1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1006uname -m = `(uname -m) 2>/dev/null || echo unknown` 1007uname -r = `(uname -r) 2>/dev/null || echo unknown` 1008uname -s = `(uname -s) 2>/dev/null || echo unknown` 1009uname -v = `(uname -v) 2>/dev/null || echo unknown` 1010 1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1013 1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1021 1022_ASUNAME 1023 1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1025for as_dir in $PATH 1026do 1027 IFS=$as_save_IFS 1028 test -z "$as_dir" && as_dir=. 1029 echo "PATH: $as_dir" 1030done 1031 1032} >&5 1033 1034cat >&5 <<_ACEOF 1035 1036 1037## ----------- ## 1038## Core tests. ## 1039## ----------- ## 1040 1041_ACEOF 1042 1043 1044# Keep a trace of the command line. 1045# Strip out --no-create and --no-recursion so they do not pile up. 1046# Strip out --silent because we don't want to record it for future runs. 1047# Also quote any args containing shell meta-characters. 1048# Make two passes to allow for proper duplicate-argument suppression. 1049ac_configure_args= 1050ac_configure_args0= 1051ac_configure_args1= 1052ac_sep= 1053ac_must_keep_next=false 1054for ac_pass in 1 2 1055do 1056 for ac_arg 1057 do 1058 case $ac_arg in 1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 continue ;; 1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1065 esac 1066 case $ac_pass in 1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1068 2) 1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1070 if test $ac_must_keep_next = true; then 1071 ac_must_keep_next=false # Got value, back to normal. 1072 else 1073 case $ac_arg in 1074 *=* | --config-cache | -C | -disable-* | --disable-* \ 1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1077 | -with-* | --with-* | -without-* | --without-* | --x) 1078 case "$ac_configure_args0 " in 1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1080 esac 1081 ;; 1082 -* ) ac_must_keep_next=true ;; 1083 esac 1084 fi 1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1086 # Get rid of the leading space. 1087 ac_sep=" " 1088 ;; 1089 esac 1090 done 1091done 1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1094 1095# When interrupted or exit'd, cleanup temporary files, and complete 1096# config.log. We remove comments because anyway the quotes in there 1097# would cause problems or look ugly. 1098# WARNING: Be sure not to use single quotes in there, as some shells, 1099# such as our DU 5.0 friend, will then `close' the trap. 1100trap 'exit_status=$? 1101 # Save into config.log some information that might help in debugging. 1102 { 1103 echo 1104 1105 cat <<\_ASBOX 1106## ---------------- ## 1107## Cache variables. ## 1108## ---------------- ## 1109_ASBOX 1110 echo 1111 # The following way of writing the cache mishandles newlines in values, 1112{ 1113 (set) 2>&1 | 1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1115 *ac_space=\ *) 1116 sed -n \ 1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1119 ;; 1120 *) 1121 sed -n \ 1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1123 ;; 1124 esac; 1125} 1126 echo 1127 1128 cat <<\_ASBOX 1129## ----------------- ## 1130## Output variables. ## 1131## ----------------- ## 1132_ASBOX 1133 echo 1134 for ac_var in $ac_subst_vars 1135 do 1136 eval ac_val=$`echo $ac_var` 1137 echo "$ac_var='"'"'$ac_val'"'"'" 1138 done | sort 1139 echo 1140 1141 if test -n "$ac_subst_files"; then 1142 cat <<\_ASBOX 1143## ------------- ## 1144## Output files. ## 1145## ------------- ## 1146_ASBOX 1147 echo 1148 for ac_var in $ac_subst_files 1149 do 1150 eval ac_val=$`echo $ac_var` 1151 echo "$ac_var='"'"'$ac_val'"'"'" 1152 done | sort 1153 echo 1154 fi 1155 1156 if test -s confdefs.h; then 1157 cat <<\_ASBOX 1158## ----------- ## 1159## confdefs.h. ## 1160## ----------- ## 1161_ASBOX 1162 echo 1163 sed "/^$/d" confdefs.h | sort 1164 echo 1165 fi 1166 test "$ac_signal" != 0 && 1167 echo "$as_me: caught signal $ac_signal" 1168 echo "$as_me: exit $exit_status" 1169 } >&5 1170 rm -f core core.* *.core && 1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1172 exit $exit_status 1173 ' 0 1174for ac_signal in 1 2 13 15; do 1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1176done 1177ac_signal=0 1178 1179# confdefs.h avoids OS command line length limits that DEFS can exceed. 1180rm -rf conftest* confdefs.h 1181# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1182echo >confdefs.h 1183 1184# Predefined preprocessor variables. 1185 1186cat >>confdefs.h <<_ACEOF 1187#define PACKAGE_NAME "$PACKAGE_NAME" 1188_ACEOF 1189 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_VERSION "$PACKAGE_VERSION" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_STRING "$PACKAGE_STRING" 1203_ACEOF 1204 1205 1206cat >>confdefs.h <<_ACEOF 1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1208_ACEOF 1209 1210 1211# Let the site file select an alternate cache file if it wants to. 1212# Prefer explicitly selected file to automatically selected ones. 1213if test -z "$CONFIG_SITE"; then 1214 if test "x$prefix" != xNONE; then 1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1216 else 1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1218 fi 1219fi 1220for ac_site_file in $CONFIG_SITE; do 1221 if test -r "$ac_site_file"; then 1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1223echo "$as_me: loading site script $ac_site_file" >&6;} 1224 sed 's/^/| /' "$ac_site_file" >&5 1225 . "$ac_site_file" 1226 fi 1227done 1228 1229if test -r "$cache_file"; then 1230 # Some versions of bash will fail to source /dev/null (special 1231 # files actually), so we avoid doing that. 1232 if test -f "$cache_file"; then 1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1234echo "$as_me: loading cache $cache_file" >&6;} 1235 case $cache_file in 1236 [\\/]* | ?:[\\/]* ) . $cache_file;; 1237 *) . ./$cache_file;; 1238 esac 1239 fi 1240else 1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1242echo "$as_me: creating cache $cache_file" >&6;} 1243 >$cache_file 1244fi 1245 1246# Check that the precious variables saved in the cache have kept the same 1247# value. 1248ac_cache_corrupted=false 1249for ac_var in `(set) 2>&1 | 1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1252 eval ac_new_set=\$ac_env_${ac_var}_set 1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1254 eval ac_new_val="\$ac_env_${ac_var}_value" 1255 case $ac_old_set,$ac_new_set in 1256 set,) 1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1259 ac_cache_corrupted=: ;; 1260 ,set) 1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1263 ac_cache_corrupted=: ;; 1264 ,);; 1265 *) 1266 if test "x$ac_old_val" != "x$ac_new_val"; then 1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1270echo "$as_me: former value: $ac_old_val" >&2;} 1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1272echo "$as_me: current value: $ac_new_val" >&2;} 1273 ac_cache_corrupted=: 1274 fi;; 1275 esac 1276 # Pass precious variables to config.status. 1277 if test "$ac_new_set" = set; then 1278 case $ac_new_val in 1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1281 *) ac_arg=$ac_var=$ac_new_val ;; 1282 esac 1283 case " $ac_configure_args " in 1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1286 esac 1287 fi 1288done 1289if $ac_cache_corrupted; then 1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1291echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1294 { (exit 1); exit 1; }; } 1295fi 1296 1297ac_ext=c 1298ac_cpp='$CPP $CPPFLAGS' 1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1301ac_compiler_gnu=$ac_cv_c_compiler_gnu 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330# 2.13 cp configure.ac configure.in 1331#AC_INIT(README) 1332#AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT,"protomol@cse.nd.edu",[Define to the address where bug reports for this package should be sent.]) 1333#AC_DEFINE_UNQUOTED(PACKAGE_NAME,"protomol",[Define to the full name of this package.]) 1334#AC_DEFINE_UNQUOTED(PACKAGE_STRING,"protomol 2.0.3",[Define to the full name and version of this package.]) 1335#AC_DEFINE_UNQUOTED(PACKAGE_TARNAME,"protomol",[Define to the one symbol short name of this package.]) 1336#AC_DEFINE_UNQUOTED(PACKAGE_VERSION,"2.0.3",[Define to the version of this package.]) 1337 1338#AC_CONFIG_AUX_DIR(./config) 1339#AC_CANONICAL_TARGET 1340 1341# Avoid generating makefile rules to rebuild maintainer-only files by 1342# default. Maintainers may override this default and generate these 1343# makefile rules using the `--enable-maintainer-mode' configure option. 1344#AM_MAINTAINER_MODE 1345 1346# Major Framework release number 1347PROTOMOL_MAJOR_VERSION=2 1348# Minor Framework release number 1349PROTOMOL_MINOR_VERSION=0 1350# Increment after every source code change 1351PROTOMOL_PATCH_LEVEL=3 1352# Combined version number 1353VERSION=$PROTOMOL_MAJOR_VERSION.$PROTOMOL_MINOR_VERSION.$PROTOMOL_PATCH_LEVEL 1354 1355am__api_version="1.6" 1356ac_aux_dir= 1357for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1358 if test -f $ac_dir/install-sh; then 1359 ac_aux_dir=$ac_dir 1360 ac_install_sh="$ac_aux_dir/install-sh -c" 1361 break 1362 elif test -f $ac_dir/install.sh; then 1363 ac_aux_dir=$ac_dir 1364 ac_install_sh="$ac_aux_dir/install.sh -c" 1365 break 1366 elif test -f $ac_dir/shtool; then 1367 ac_aux_dir=$ac_dir 1368 ac_install_sh="$ac_aux_dir/shtool install -c" 1369 break 1370 fi 1371done 1372if test -z "$ac_aux_dir"; then 1373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1374echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1375 { (exit 1); exit 1; }; } 1376fi 1377ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1378ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1379ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1380 1381# Find a good install program. We prefer a C program (faster), 1382# so one script is as good as another. But avoid the broken or 1383# incompatible versions: 1384# SysV /etc/install, /usr/sbin/install 1385# SunOS /usr/etc/install 1386# IRIX /sbin/install 1387# AIX /bin/install 1388# AmigaOS /C/install, which installs bootblocks on floppy discs 1389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1390# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1392# ./install, which can be erroneously created by make from ./install.sh. 1393echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1394echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1395if test -z "$INSTALL"; then 1396if test "${ac_cv_path_install+set}" = set; then 1397 echo $ECHO_N "(cached) $ECHO_C" >&6 1398else 1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1400for as_dir in $PATH 1401do 1402 IFS=$as_save_IFS 1403 test -z "$as_dir" && as_dir=. 1404 # Account for people who put trailing slashes in PATH elements. 1405case $as_dir/ in 1406 ./ | .// | /cC/* | \ 1407 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1408 /usr/ucb/* ) ;; 1409 *) 1410 # OSF1 and SCO ODT 3.0 have their own names for install. 1411 # Don't use installbsd from OSF since it installs stuff as root 1412 # by default. 1413 for ac_prog in ginstall scoinst install; do 1414 for ac_exec_ext in '' $ac_executable_extensions; do 1415 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1416 if test $ac_prog = install && 1417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1418 # AIX install. It has an incompatible calling convention. 1419 : 1420 elif test $ac_prog = install && 1421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1422 # program-specific install script used by HP pwplus--don't use. 1423 : 1424 else 1425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1426 break 3 1427 fi 1428 fi 1429 done 1430 done 1431 ;; 1432esac 1433done 1434 1435 1436fi 1437 if test "${ac_cv_path_install+set}" = set; then 1438 INSTALL=$ac_cv_path_install 1439 else 1440 # As a last resort, use the slow shell script. We don't cache a 1441 # path for INSTALL within a source directory, because that will 1442 # break other packages using the cache if that directory is 1443 # removed, or if the path is relative. 1444 INSTALL=$ac_install_sh 1445 fi 1446fi 1447echo "$as_me:$LINENO: result: $INSTALL" >&5 1448echo "${ECHO_T}$INSTALL" >&6 1449 1450# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1451# It thinks the first close brace ends the variable substitution. 1452test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1453 1454test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1455 1456test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1457 1458echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1459echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1460# Just in case 1461sleep 1 1462echo timestamp > conftest.file 1463# Do `set' in a subshell so we don't clobber the current shell's 1464# arguments. Must try -L first in case configure is actually a 1465# symlink; some systems play weird games with the mod time of symlinks 1466# (eg FreeBSD returns the mod time of the symlink's containing 1467# directory). 1468if ( 1469 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1470 if test "$*" = "X"; then 1471 # -L didn't work. 1472 set X `ls -t $srcdir/configure conftest.file` 1473 fi 1474 rm -f conftest.file 1475 if test "$*" != "X $srcdir/configure conftest.file" \ 1476 && test "$*" != "X conftest.file $srcdir/configure"; then 1477 1478 # If neither matched, then we have a broken ls. This can happen 1479 # if, for instance, CONFIG_SHELL is bash and it inherits a 1480 # broken ls alias from the environment. This has actually 1481 # happened. Such a system could not be considered "sane". 1482 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1483alias in your environment" >&5 1484echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1485alias in your environment" >&2;} 1486 { (exit 1); exit 1; }; } 1487 fi 1488 1489 test "$2" = conftest.file 1490 ) 1491then 1492 # Ok. 1493 : 1494else 1495 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1496Check your system clock" >&5 1497echo "$as_me: error: newly created file is older than distributed files! 1498Check your system clock" >&2;} 1499 { (exit 1); exit 1; }; } 1500fi 1501echo "$as_me:$LINENO: result: yes" >&5 1502echo "${ECHO_T}yes" >&6 1503test "$program_prefix" != NONE && 1504 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1505# Use a double $ so make ignores it. 1506test "$program_suffix" != NONE && 1507 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1508# Double any \ or $. echo might interpret backslashes. 1509# By default was `s,x,x', remove it if useless. 1510cat <<\_ACEOF >conftest.sed 1511s/[\\$]/&&/g;s/;s,x,x,$// 1512_ACEOF 1513program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1514rm conftest.sed 1515 1516 1517# expand $ac_aux_dir to an absolute path 1518am_aux_dir=`cd $ac_aux_dir && pwd` 1519 1520test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1521# Use eval to expand $SHELL 1522if eval "$MISSING --run true"; then 1523 am_missing_run="$MISSING --run " 1524else 1525 am_missing_run= 1526 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1527echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1528fi 1529 1530for ac_prog in gawk mawk nawk awk 1531do 1532 # Extract the first word of "$ac_prog", so it can be a program name with args. 1533set dummy $ac_prog; ac_word=$2 1534echo "$as_me:$LINENO: checking for $ac_word" >&5 1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1536if test "${ac_cv_prog_AWK+set}" = set; then 1537 echo $ECHO_N "(cached) $ECHO_C" >&6 1538else 1539 if test -n "$AWK"; then 1540 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1541else 1542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1543for as_dir in $PATH 1544do 1545 IFS=$as_save_IFS 1546 test -z "$as_dir" && as_dir=. 1547 for ac_exec_ext in '' $ac_executable_extensions; do 1548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1549 ac_cv_prog_AWK="$ac_prog" 1550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1551 break 2 1552 fi 1553done 1554done 1555 1556fi 1557fi 1558AWK=$ac_cv_prog_AWK 1559if test -n "$AWK"; then 1560 echo "$as_me:$LINENO: result: $AWK" >&5 1561echo "${ECHO_T}$AWK" >&6 1562else 1563 echo "$as_me:$LINENO: result: no" >&5 1564echo "${ECHO_T}no" >&6 1565fi 1566 1567 test -n "$AWK" && break 1568done 1569 1570echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1571echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1572set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1573if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 cat >conftest.make <<\_ACEOF 1577all: 1578 @echo 'ac_maketemp="$(MAKE)"' 1579_ACEOF 1580# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1581eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1582if test -n "$ac_maketemp"; then 1583 eval ac_cv_prog_make_${ac_make}_set=yes 1584else 1585 eval ac_cv_prog_make_${ac_make}_set=no 1586fi 1587rm -f conftest.make 1588fi 1589if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1590 echo "$as_me:$LINENO: result: yes" >&5 1591echo "${ECHO_T}yes" >&6 1592 SET_MAKE= 1593else 1594 echo "$as_me:$LINENO: result: no" >&5 1595echo "${ECHO_T}no" >&6 1596 SET_MAKE="MAKE=${MAKE-make}" 1597fi 1598 1599 # test to see if srcdir already configured 1600if test "`cd $srcdir && pwd`" != "`pwd`" && 1601 test -f $srcdir/config.status; then 1602 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1603echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1604 { (exit 1); exit 1; }; } 1605fi 1606 1607# Define the identity of the package. 1608 PACKAGE=protomol 1609 VERSION=$VERSION 1610 1611 1612cat >>confdefs.h <<_ACEOF 1613#define PACKAGE "$PACKAGE" 1614_ACEOF 1615 1616 1617cat >>confdefs.h <<_ACEOF 1618#define VERSION "$VERSION" 1619_ACEOF 1620 1621# Some tools Automake needs. 1622 1623ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1624 1625 1626AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1627 1628 1629AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1630 1631 1632AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1633 1634 1635MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1636 1637 1638AMTAR=${AMTAR-"${am_missing_run}tar"} 1639 1640install_sh=${install_sh-"$am_aux_dir/install-sh"} 1641 1642# Installed binaries are usually stripped using `strip' when the user 1643# run `make install-strip'. However `strip' might not be the right 1644# tool to use in cross-compilation environments, therefore Automake 1645# will honor the `STRIP' environment variable to overrule this program. 1646if test "$cross_compiling" != no; then 1647 if test -n "$ac_tool_prefix"; then 1648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1649set dummy ${ac_tool_prefix}strip; ac_word=$2 1650echo "$as_me:$LINENO: checking for $ac_word" >&5 1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652if test "${ac_cv_prog_STRIP+set}" = set; then 1653 echo $ECHO_N "(cached) $ECHO_C" >&6 1654else 1655 if test -n "$STRIP"; then 1656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1657else 1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659for as_dir in $PATH 1660do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 for ac_exec_ext in '' $ac_executable_extensions; do 1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667 break 2 1668 fi 1669done 1670done 1671 1672fi 1673fi 1674STRIP=$ac_cv_prog_STRIP 1675if test -n "$STRIP"; then 1676 echo "$as_me:$LINENO: result: $STRIP" >&5 1677echo "${ECHO_T}$STRIP" >&6 1678else 1679 echo "$as_me:$LINENO: result: no" >&5 1680echo "${ECHO_T}no" >&6 1681fi 1682 1683fi 1684if test -z "$ac_cv_prog_STRIP"; then 1685 ac_ct_STRIP=$STRIP 1686 # Extract the first word of "strip", so it can be a program name with args. 1687set dummy strip; ac_word=$2 1688echo "$as_me:$LINENO: checking for $ac_word" >&5 1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1690if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1691 echo $ECHO_N "(cached) $ECHO_C" >&6 1692else 1693 if test -n "$ac_ct_STRIP"; then 1694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1695else 1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1697for as_dir in $PATH 1698do 1699 IFS=$as_save_IFS 1700 test -z "$as_dir" && as_dir=. 1701 for ac_exec_ext in '' $ac_executable_extensions; do 1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1703 ac_cv_prog_ac_ct_STRIP="strip" 1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1705 break 2 1706 fi 1707done 1708done 1709 1710 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1711fi 1712fi 1713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1714if test -n "$ac_ct_STRIP"; then 1715 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1716echo "${ECHO_T}$ac_ct_STRIP" >&6 1717else 1718 echo "$as_me:$LINENO: result: no" >&5 1719echo "${ECHO_T}no" >&6 1720fi 1721 1722 STRIP=$ac_ct_STRIP 1723else 1724 STRIP="$ac_cv_prog_STRIP" 1725fi 1726 1727fi 1728INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1729 1730# We need awk for the "check" target. The system "awk" is bad on 1731# some platforms. 1732 1733 1734 1735# Add the stamp file to the list of files AC keeps track of, 1736# along with our hook. 1737 ac_config_headers="$ac_config_headers protomol_config.h" 1738 1739 1740 1741 1742# Report what was found 1743echo "$as_me:$LINENO: checking major version" >&5 1744echo $ECHO_N "checking major version... $ECHO_C" >&6 1745echo "$as_me:$LINENO: result: $PROTOMOL_MAJOR_VERSION" >&5 1746echo "${ECHO_T}$PROTOMOL_MAJOR_VERSION" >&6 1747echo "$as_me:$LINENO: checking minor version" >&5 1748echo $ECHO_N "checking minor version... $ECHO_C" >&6 1749echo "$as_me:$LINENO: result: $PROTOMOL_MINOR_VERSION" >&5 1750echo "${ECHO_T}$PROTOMOL_MINOR_VERSION" >&6 1751echo "$as_me:$LINENO: checking patchlevel" >&5 1752echo $ECHO_N "checking patchlevel... $ECHO_C" >&6 1753echo "$as_me:$LINENO: result: $PROTOMOL_PATCH_LEVEL" >&5 1754echo "${ECHO_T}$PROTOMOL_PATCH_LEVEL" >&6 1755 1756 1757 1758 1759 1760# Calculate libtool versioning information 1761LT_RELEASE=$PROTOMOL_MAJOR_VERSION.$PROTOMOL_MINOR_VERSION 1762LT_CURRENT=$PROTOMOL_INTERFACE_VERSION 1763LT_REVISION=0 #`expr $PROTOMOL_PATCH_LEVEL - $PROTOMOL_INTERFACE_VERSION` 1764LT_AGE=0 #`expr $PROTOMOL_INTERFACE_VERSION - $PROTOMOL_BINARY_VERSION` 1765 1766 1767 1768 1769 1770 1771# 1772# Defines 1773# 1774 1775 1776cat >>confdefs.h <<_ACEOF 1777#define PACKAGE_HOMEPAGE "http://protomol.sourceforge.net" 1778_ACEOF 1779 1780 1781cat >>confdefs.h <<_ACEOF 1782#define PACKAGE_CITE "Please cite T. Matthey, T. Cickovski, S. S. Hampton, A. Ko, Q. Ma, M. Nyerges, T. Raeder,\nT. Slabach, and J. A. Izaguirre. ProtoMol: An object-oriented framework for prototyping\nnovel algorithms for molecular dynamics. ACM Trans. Math. Softw., 30(3):237�265, 2004." 1783_ACEOF 1784 1785 1786cat >>confdefs.h <<_ACEOF 1787#define PACKAGE_UNAME "`uname -a`" 1788_ACEOF 1789 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_WHOAMI "`whoami`" 1793_ACEOF 1794 1795 1796cat >>confdefs.h <<_ACEOF 1797#define PACKAGE_BUGREPORT "protomol@cse.nd.edu" 1798_ACEOF 1799 1800 1801 1802# 1803# Compiler 1804# 1805use_preset=0 1806 1807# Check whether --with-fft or --without-fft was given. 1808if test "${with_fft+set}" = set; then 1809 withval="$with_fft" 1810 1811fi; 1812 1813# Check whether --with-fftw3 or --without-fftw3 was given. 1814if test "${with_fftw3+set}" = set; then 1815 withval="$with_fftw3" 1816 1817fi; 1818 1819# Check whether --with-fftw2 or --without-fftw2 was given. 1820if test "${with_fftw2+set}" = set; then 1821 withval="$with_fftw2" 1822 1823fi; 1824 1825# Check whether --with-fftw2mpi or --without-fftw2mpi was given. 1826if test "${with_fftw2mpi+set}" = set; then 1827 withval="$with_fftw2mpi" 1828 1829fi; 1830 1831# Check whether --with-glut or --without-glut was given. 1832if test "${with_glut+set}" = set; then 1833 withval="$with_glut" 1834 1835fi; 1836 1837# Check whether --with-aix_xlc or --without-aix_xlc was given. 1838if test "${with_aix_xlc+set}" = set; then 1839 withval="$with_aix_xlc" 1840 use_preset=1 1841fi; 1842 1843# Check whether --with-aix_xlc_debug or --without-aix_xlc_debug was given. 1844if test "${with_aix_xlc_debug+set}" = set; then 1845 withval="$with_aix_xlc_debug" 1846 use_preset=1 1847fi; 1848 1849# Check whether --with-aix_xlc_mpi or --without-aix_xlc_mpi was given. 1850if test "${with_aix_xlc_mpi+set}" = set; then 1851 withval="$with_aix_xlc_mpi" 1852 use_preset=1 1853fi; 1854 1855# Check whether --with-aix_xlc_mpi_debug or --without-aix_xlc_mpi_debug was given. 1856if test "${with_aix_xlc_mpi_debug+set}" = set; then 1857 withval="$with_aix_xlc_mpi_debug" 1858 use_preset=1 1859fi; 1860 1861# Check whether --with-gcc or --without-gcc was given. 1862if test "${with_gcc+set}" = set; then 1863 withval="$with_gcc" 1864 use_preset=1 1865fi; 1866 1867# Check whether --with-gcc_debug or --without-gcc_debug was given. 1868if test "${with_gcc_debug+set}" = set; then 1869 withval="$with_gcc_debug" 1870 use_preset=1 1871fi; 1872 1873# Check whether --with-gcc_debug_gdb or --without-gcc_debug_gdb was given. 1874if test "${with_gcc_debug_gdb+set}" = set; then 1875 withval="$with_gcc_debug_gdb" 1876 use_preset=1 1877fi; 1878 1879# Check whether --with-gcc_mpich or --without-gcc_mpich was given. 1880if test "${with_gcc_mpich+set}" = set; then 1881 withval="$with_gcc_mpich" 1882 use_preset=1 1883fi; 1884 1885# Check whether --with-gcc_mpich_debug or --without-gcc_mpich_debug was given. 1886if test "${with_gcc_mpich_debug+set}" = set; then 1887 withval="$with_gcc_mpich_debug" 1888 use_preset=1 1889fi; 1890 1891# Check whether --with-gcc_mpich_xeon or --without-gcc_mpich_xeon was given. 1892if test "${with_gcc_mpich_xeon+set}" = set; then 1893 withval="$with_gcc_mpich_xeon" 1894 1895fi; 1896 1897# Check whether --with-hpux_cc or --without-hpux_cc was given. 1898if test "${with_hpux_cc+set}" = set; then 1899 withval="$with_hpux_cc" 1900 use_preset=1 1901fi; 1902 1903# Check whether --with-hpux_cc_debug or --without-hpux_cc_debug was given. 1904if test "${with_hpux_cc_debug+set}" = set; then 1905 withval="$with_hpux_cc_debug" 1906 use_preset=1 1907fi; 1908 1909# Check whether --with-hpux_cc_mpi or --without-hpux_cc_mpi was given. 1910if test "${with_hpux_cc_mpi+set}" = set; then 1911 withval="$with_hpux_cc_mpi" 1912 use_preset=1 1913fi; 1914 1915# Check whether --with-hpux_cc_mpi_debug or --without-hpux_cc_mpi_debug was given. 1916if test "${with_hpux_cc_mpi_debug+set}" = set; then 1917 withval="$with_hpux_cc_mpi_debug" 1918 use_preset=1 1919fi; 1920 1921# Check whether --with-icc or --without-icc was given. 1922if test "${with_icc+set}" = set; then 1923 withval="$with_icc" 1924 use_preset=1 1925fi; 1926 1927# Check whether --with-icc_debug or --without-icc_debug was given. 1928if test "${with_icc_debug+set}" = set; then 1929 withval="$with_icc_debug" 1930 use_preset=1 1931fi; 1932 1933# Check whether --with-icc_mpich or --without-icc_mpich was given. 1934if test "${with_icc_mpich+set}" = set; then 1935 withval="$with_icc_mpich" 1936 use_preset=1 1937fi; 1938 1939# Check whether --with-icc_mpich_xeon or --without-icc_mpich_xeon was given. 1940if test "${with_icc_mpich_xeon+set}" = set; then 1941 withval="$with_icc_mpich_xeon" 1942 use_preset=1 1943fi; 1944 1945# Check whether --with-icc_mpich_debug or --without-icc_mpich_debug was given. 1946if test "${with_icc_mpich_debug+set}" = set; then 1947 withval="$with_icc_mpich_debug" 1948 use_preset=1 1949fi; 1950 1951# Check whether --with-irix_mipspro or --without-irix_mipspro was given. 1952if test "${with_irix_mipspro+set}" = set; then 1953 withval="$with_irix_mipspro" 1954 use_preset=1 1955fi; 1956 1957# Check whether --with-irix_mipspro_debug or --without-irix_mipspro_debug was given. 1958if test "${with_irix_mipspro_debug+set}" = set; then 1959 withval="$with_irix_mipspro_debug" 1960 use_preset=1 1961fi; 1962 1963# Check whether --with-irix_mipspro_mpi or --without-irix_mipspro_mpi was given. 1964if test "${with_irix_mipspro_mpi+set}" = set; then 1965 withval="$with_irix_mipspro_mpi" 1966 use_preset=1 1967fi; 1968 1969# Check whether --with-irix_mipspro_mpi_debug or --without-irix_mipspro_mpi_debug was given. 1970if test "${with_irix_mipspro_mpi_debug+set}" = set; then 1971 withval="$with_irix_mipspro_mpi_debug" 1972 use_preset=1 1973fi; 1974 1975# Check whether --with-ppc_xlc or --without-ppc_xlc was given. 1976if test "${with_ppc_xlc+set}" = set; then 1977 withval="$with_ppc_xlc" 1978 use_preset=1 1979fi; 1980 1981# Check whether --with-ppc_xlc_debug or --without-ppc_xlc_debug was given. 1982if test "${with_ppc_xlc_debug+set}" = set; then 1983 withval="$with_ppc_xlc_debug" 1984 use_preset=1 1985fi; 1986 1987# Check whether --with-sun_gcc or --without-sun_gcc was given. 1988if test "${with_sun_gcc+set}" = set; then 1989 withval="$with_sun_gcc" 1990 use_preset=1 1991fi; 1992 1993 1994# 2.53 1995ac_ext=cc 1996ac_cpp='$CXXCPP $CPPFLAGS' 1997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2000 2001ac_ext=cc 2002ac_cpp='$CXXCPP $CPPFLAGS' 2003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2006if test -n "$ac_tool_prefix"; then 2007 for ac_prog in $CCC aCC mpCC_r xlC_r xlC xlc++ CC icpc icc g++ cxx mpic++ mpicxx mpiCC 2008 do 2009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2010set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2011echo "$as_me:$LINENO: checking for $ac_word" >&5 2012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2013if test "${ac_cv_prog_CXX+set}" = set; then 2014 echo $ECHO_N "(cached) $ECHO_C" >&6 2015else 2016 if test -n "$CXX"; then 2017 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2018else 2019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2020for as_dir in $PATH 2021do 2022 IFS=$as_save_IFS 2023 test -z "$as_dir" && as_dir=. 2024 for ac_exec_ext in '' $ac_executable_extensions; do 2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2026 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2028 break 2 2029 fi 2030done 2031done 2032 2033fi 2034fi 2035CXX=$ac_cv_prog_CXX 2036if test -n "$CXX"; then 2037 echo "$as_me:$LINENO: result: $CXX" >&5 2038echo "${ECHO_T}$CXX" >&6 2039else 2040 echo "$as_me:$LINENO: result: no" >&5 2041echo "${ECHO_T}no" >&6 2042fi 2043 2044 test -n "$CXX" && break 2045 done 2046fi 2047if test -z "$CXX"; then 2048 ac_ct_CXX=$CXX 2049 for ac_prog in $CCC aCC mpCC_r xlC_r xlC xlc++ CC icpc icc g++ cxx mpic++ mpicxx mpiCC 2050do 2051 # Extract the first word of "$ac_prog", so it can be a program name with args. 2052set dummy $ac_prog; ac_word=$2 2053echo "$as_me:$LINENO: checking for $ac_word" >&5 2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2055if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2056 echo $ECHO_N "(cached) $ECHO_C" >&6 2057else 2058 if test -n "$ac_ct_CXX"; then 2059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2060else 2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2062for as_dir in $PATH 2063do 2064 IFS=$as_save_IFS 2065 test -z "$as_dir" && as_dir=. 2066 for ac_exec_ext in '' $ac_executable_extensions; do 2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2068 ac_cv_prog_ac_ct_CXX="$ac_prog" 2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2070 break 2 2071 fi 2072done 2073done 2074 2075fi 2076fi 2077ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2078if test -n "$ac_ct_CXX"; then 2079 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2080echo "${ECHO_T}$ac_ct_CXX" >&6 2081else 2082 echo "$as_me:$LINENO: result: no" >&5 2083echo "${ECHO_T}no" >&6 2084fi 2085 2086 test -n "$ac_ct_CXX" && break 2087done 2088test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2089 2090 CXX=$ac_ct_CXX 2091fi 2092 2093 2094# Provide some information about the compiler. 2095echo "$as_me:$LINENO:" \ 2096 "checking for C++ compiler version" >&5 2097ac_compiler=`set X $ac_compile; echo $2` 2098{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2099 (eval $ac_compiler --version </dev/null >&5) 2>&5 2100 ac_status=$? 2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2102 (exit $ac_status); } 2103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2104 (eval $ac_compiler -v </dev/null >&5) 2>&5 2105 ac_status=$? 2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2107 (exit $ac_status); } 2108{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2109 (eval $ac_compiler -V </dev/null >&5) 2>&5 2110 ac_status=$? 2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2112 (exit $ac_status); } 2113 2114cat >conftest.$ac_ext <<_ACEOF 2115#line $LINENO "configure" 2116/* confdefs.h. */ 2117_ACEOF 2118cat confdefs.h >>conftest.$ac_ext 2119cat >>conftest.$ac_ext <<_ACEOF 2120/* end confdefs.h. */ 2121 2122int 2123main () 2124{ 2125 2126 ; 2127 return 0; 2128} 2129_ACEOF 2130ac_clean_files_save=$ac_clean_files 2131ac_clean_files="$ac_clean_files a.out a.exe b.out" 2132# Try to create an executable without -o first, disregard a.out. 2133# It will help us diagnose broken compilers, and finding out an intuition 2134# of exeext. 2135echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 2136echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 2137ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2138if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2139 (eval $ac_link_default) 2>&5 2140 ac_status=$? 2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2142 (exit $ac_status); }; then 2143 # Find the output, starting from the most likely. This scheme is 2144# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2145# resort. 2146 2147# Be careful to initialize this variable, since it used to be cached. 2148# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2149ac_cv_exeext= 2150# b.out is created by i960 compilers. 2151for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2152do 2153 test -f "$ac_file" || continue 2154 case $ac_file in 2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2156 ;; 2157 conftest.$ac_ext ) 2158 # This is the source file. 2159 ;; 2160 [ab].out ) 2161 # We found the default executable, but exeext='' is most 2162 # certainly right. 2163 break;; 2164 *.* ) 2165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2166 # FIXME: I believe we export ac_cv_exeext for Libtool, 2167 # but it would be cool to find out if it's true. Does anybody 2168 # maintain Libtool? --akim. 2169 export ac_cv_exeext 2170 break;; 2171 * ) 2172 break;; 2173 esac 2174done 2175else 2176 echo "$as_me: failed program was:" >&5 2177sed 's/^/| /' conftest.$ac_ext >&5 2178 2179{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2180See \`config.log' for more details." >&5 2181echo "$as_me: error: C++ compiler cannot create executables 2182See \`config.log' for more details." >&2;} 2183 { (exit 77); exit 77; }; } 2184fi 2185 2186ac_exeext=$ac_cv_exeext 2187echo "$as_me:$LINENO: result: $ac_file" >&5 2188echo "${ECHO_T}$ac_file" >&6 2189 2190# Check the compiler produces executables we can run. If not, either 2191# the compiler is broken, or we cross compile. 2192echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2193echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 2194# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2195# If not cross compiling, check that we can run a simple program. 2196if test "$cross_compiling" != yes; then 2197 if { ac_try='./$ac_file' 2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2199 (eval $ac_try) 2>&5 2200 ac_status=$? 2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2202 (exit $ac_status); }; }; then 2203 cross_compiling=no 2204 else 2205 if test "$cross_compiling" = maybe; then 2206 cross_compiling=yes 2207 else 2208 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2209If you meant to cross compile, use \`--host'. 2210See \`config.log' for more details." >&5 2211echo "$as_me: error: cannot run C++ compiled programs. 2212If you meant to cross compile, use \`--host'. 2213See \`config.log' for more details." >&2;} 2214 { (exit 1); exit 1; }; } 2215 fi 2216 fi 2217fi 2218echo "$as_me:$LINENO: result: yes" >&5 2219echo "${ECHO_T}yes" >&6 2220 2221rm -f a.out a.exe conftest$ac_cv_exeext b.out 2222ac_clean_files=$ac_clean_files_save 2223# Check the compiler produces executables we can run. If not, either 2224# the compiler is broken, or we cross compile. 2225echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2226echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2227echo "$as_me:$LINENO: result: $cross_compiling" >&5 2228echo "${ECHO_T}$cross_compiling" >&6 2229 2230echo "$as_me:$LINENO: checking for suffix of executables" >&5 2231echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2233 (eval $ac_link) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; then 2237 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2238# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2239# work properly (i.e., refer to `conftest.exe'), while it won't with 2240# `rm'. 2241for ac_file in conftest.exe conftest conftest.*; do 2242 test -f "$ac_file" || continue 2243 case $ac_file in 2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2246 export ac_cv_exeext 2247 break;; 2248 * ) break;; 2249 esac 2250done 2251else 2252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2253See \`config.log' for more details." >&5 2254echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2255See \`config.log' for more details." >&2;} 2256 { (exit 1); exit 1; }; } 2257fi 2258 2259rm -f conftest$ac_cv_exeext 2260echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2261echo "${ECHO_T}$ac_cv_exeext" >&6 2262 2263rm -f conftest.$ac_ext 2264EXEEXT=$ac_cv_exeext 2265ac_exeext=$EXEEXT 2266echo "$as_me:$LINENO: checking for suffix of object files" >&5 2267echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2268if test "${ac_cv_objext+set}" = set; then 2269 echo $ECHO_N "(cached) $ECHO_C" >&6 2270else 2271 cat >conftest.$ac_ext <<_ACEOF 2272#line $LINENO "configure" 2273/* confdefs.h. */ 2274_ACEOF 2275cat confdefs.h >>conftest.$ac_ext 2276cat >>conftest.$ac_ext <<_ACEOF 2277/* end confdefs.h. */ 2278 2279int 2280main () 2281{ 2282 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287rm -f conftest.o conftest.obj 2288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2289 (eval $ac_compile) 2>&5 2290 ac_status=$? 2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2292 (exit $ac_status); }; then 2293 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2294 case $ac_file in 2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2297 break;; 2298 esac 2299done 2300else 2301 echo "$as_me: failed program was:" >&5 2302sed 's/^/| /' conftest.$ac_ext >&5 2303 2304{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2305See \`config.log' for more details." >&5 2306echo "$as_me: error: cannot compute suffix of object files: cannot compile 2307See \`config.log' for more details." >&2;} 2308 { (exit 1); exit 1; }; } 2309fi 2310 2311rm -f conftest.$ac_cv_objext conftest.$ac_ext 2312fi 2313echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2314echo "${ECHO_T}$ac_cv_objext" >&6 2315OBJEXT=$ac_cv_objext 2316ac_objext=$OBJEXT 2317echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2318echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2319if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 cat >conftest.$ac_ext <<_ACEOF 2323#line $LINENO "configure" 2324/* confdefs.h. */ 2325_ACEOF 2326cat confdefs.h >>conftest.$ac_ext 2327cat >>conftest.$ac_ext <<_ACEOF 2328/* end confdefs.h. */ 2329 2330int 2331main () 2332{ 2333#ifndef __GNUC__ 2334 choke me 2335#endif 2336 2337 ; 2338 return 0; 2339} 2340_ACEOF 2341rm -f conftest.$ac_objext 2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2343 (eval $ac_compile) 2>&5 2344 ac_status=$? 2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2346 (exit $ac_status); } && 2347 { ac_try='test -s conftest.$ac_objext' 2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2349 (eval $ac_try) 2>&5 2350 ac_status=$? 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 (exit $ac_status); }; }; then 2353 ac_compiler_gnu=yes 2354else 2355 echo "$as_me: failed program was:" >&5 2356sed 's/^/| /' conftest.$ac_ext >&5 2357 2358ac_compiler_gnu=no 2359fi 2360rm -f conftest.$ac_objext conftest.$ac_ext 2361ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2362 2363fi 2364echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2365echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2366GXX=`test $ac_compiler_gnu = yes && echo yes` 2367ac_test_CXXFLAGS=${CXXFLAGS+set} 2368ac_save_CXXFLAGS=$CXXFLAGS 2369CXXFLAGS="-g" 2370echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2371echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2372if test "${ac_cv_prog_cxx_g+set}" = set; then 2373 echo $ECHO_N "(cached) $ECHO_C" >&6 2374else 2375 cat >conftest.$ac_ext <<_ACEOF 2376#line $LINENO "configure" 2377/* confdefs.h. */ 2378_ACEOF 2379cat confdefs.h >>conftest.$ac_ext 2380cat >>conftest.$ac_ext <<_ACEOF 2381/* end confdefs.h. */ 2382 2383int 2384main () 2385{ 2386 2387 ; 2388 return 0; 2389} 2390_ACEOF 2391rm -f conftest.$ac_objext 2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2393 (eval $ac_compile) 2>&5 2394 ac_status=$? 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -s conftest.$ac_objext' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; }; then 2403 ac_cv_prog_cxx_g=yes 2404else 2405 echo "$as_me: failed program was:" >&5 2406sed 's/^/| /' conftest.$ac_ext >&5 2407 2408ac_cv_prog_cxx_g=no 2409fi 2410rm -f conftest.$ac_objext conftest.$ac_ext 2411fi 2412echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2413echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2414if test "$ac_test_CXXFLAGS" = set; then 2415 CXXFLAGS=$ac_save_CXXFLAGS 2416elif test $ac_cv_prog_cxx_g = yes; then 2417 if test "$GXX" = yes; then 2418 CXXFLAGS="-g -O2" 2419 else 2420 CXXFLAGS="-g" 2421 fi 2422else 2423 if test "$GXX" = yes; then 2424 CXXFLAGS="-O2" 2425 else 2426 CXXFLAGS= 2427 fi 2428fi 2429for ac_declaration in \ 2430 ''\ 2431 '#include <stdlib.h>' \ 2432 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2433 'extern "C" void std::exit (int); using std::exit;' \ 2434 'extern "C" void exit (int) throw ();' \ 2435 'extern "C" void exit (int);' \ 2436 'void exit (int);' 2437do 2438 cat >conftest.$ac_ext <<_ACEOF 2439#line $LINENO "configure" 2440/* confdefs.h. */ 2441_ACEOF 2442cat confdefs.h >>conftest.$ac_ext 2443cat >>conftest.$ac_ext <<_ACEOF 2444/* end confdefs.h. */ 2445#include <stdlib.h> 2446$ac_declaration 2447int 2448main () 2449{ 2450exit (42); 2451 ; 2452 return 0; 2453} 2454_ACEOF 2455rm -f conftest.$ac_objext 2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2457 (eval $ac_compile) 2>&5 2458 ac_status=$? 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); } && 2461 { ac_try='test -s conftest.$ac_objext' 2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2463 (eval $ac_try) 2>&5 2464 ac_status=$? 2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2466 (exit $ac_status); }; }; then 2467 : 2468else 2469 echo "$as_me: failed program was:" >&5 2470sed 's/^/| /' conftest.$ac_ext >&5 2471 2472continue 2473fi 2474rm -f conftest.$ac_objext conftest.$ac_ext 2475 cat >conftest.$ac_ext <<_ACEOF 2476#line $LINENO "configure" 2477/* confdefs.h. */ 2478_ACEOF 2479cat confdefs.h >>conftest.$ac_ext 2480cat >>conftest.$ac_ext <<_ACEOF 2481/* end confdefs.h. */ 2482$ac_declaration 2483int 2484main () 2485{ 2486exit (42); 2487 ; 2488 return 0; 2489} 2490_ACEOF 2491rm -f conftest.$ac_objext 2492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2493 (eval $ac_compile) 2>&5 2494 ac_status=$? 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); } && 2497 { ac_try='test -s conftest.$ac_objext' 2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2499 (eval $ac_try) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; }; then 2503 break 2504else 2505 echo "$as_me: failed program was:" >&5 2506sed 's/^/| /' conftest.$ac_ext >&5 2507 2508fi 2509rm -f conftest.$ac_objext conftest.$ac_ext 2510done 2511rm -f conftest* 2512if test -n "$ac_declaration"; then 2513 echo '#ifdef __cplusplus' >>confdefs.h 2514 echo $ac_declaration >>confdefs.h 2515 echo '#endif' >>confdefs.h 2516fi 2517 2518ac_ext=cc 2519ac_cpp='$CXXCPP $CPPFLAGS' 2520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2523rm -f .deps 2>/dev/null 2524mkdir .deps 2>/dev/null 2525if test -d .deps; then 2526 DEPDIR=.deps 2527else 2528 # MS-DOS does not allow filenames that begin with a dot. 2529 DEPDIR=_deps 2530fi 2531rmdir .deps 2>/dev/null 2532 2533 2534 ac_config_commands="$ac_config_commands depfiles" 2535 2536 2537am_make=${MAKE-make} 2538cat > confinc << 'END' 2539doit: 2540 @echo done 2541END 2542# If we don't find an include directive, just comment out the code. 2543echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2544echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2545am__include="#" 2546am__quote= 2547_am_result=none 2548# First try GNU make style include. 2549echo "include confinc" > confmf 2550# We grep out `Entering directory' and `Leaving directory' 2551# messages which can occur if `w' ends up in MAKEFLAGS. 2552# In particular we don't look at `^make:' because GNU make might 2553# be invoked under some other name (usually "gmake"), in which 2554# case it prints its new name instead of `make'. 2555if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2556 am__include=include 2557 am__quote= 2558 _am_result=GNU 2559fi 2560# Now try BSD make style include. 2561if test "$am__include" = "#"; then 2562 echo '.include "confinc"' > confmf 2563 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2564 am__include=.include 2565 am__quote="\"" 2566 _am_result=BSD 2567 fi 2568fi 2569 2570 2571echo "$as_me:$LINENO: result: $_am_result" >&5 2572echo "${ECHO_T}$_am_result" >&6 2573rm -f confinc confmf 2574 2575# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2576if test "${enable_dependency_tracking+set}" = set; then 2577 enableval="$enable_dependency_tracking" 2578 2579fi; 2580if test "x$enable_dependency_tracking" != xno; then 2581 am_depcomp="$ac_aux_dir/depcomp" 2582 AMDEPBACKSLASH='\' 2583fi 2584 2585 2586if test "x$enable_dependency_tracking" != xno; then 2587 AMDEP_TRUE= 2588 AMDEP_FALSE='#' 2589else 2590 AMDEP_TRUE='#' 2591 AMDEP_FALSE= 2592fi 2593 2594 2595 2596 2597depcc="$CXX" am_compiler_list= 2598 2599echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2600echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2601if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2602 echo $ECHO_N "(cached) $ECHO_C" >&6 2603else 2604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2605 # We make a subdir and do the tests there. Otherwise we can end up 2606 # making bogus files that we don't know about and never remove. For 2607 # instance it was reported that on HP-UX the gcc test will end up 2608 # making a dummy file named `D' -- because `-MD' means `put the output 2609 # in D'. 2610 mkdir conftest.dir 2611 # Copy depcomp to subdir because otherwise we won't find it if we're 2612 # using a relative directory. 2613 cp "$am_depcomp" conftest.dir 2614 cd conftest.dir 2615 2616 am_cv_CXX_dependencies_compiler_type=none 2617 if test "$am_compiler_list" = ""; then 2618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2619 fi 2620 for depmode in $am_compiler_list; do 2621 # We need to recreate these files for each test, as the compiler may 2622 # overwrite some of them when testing with obscure command lines. 2623 # This happens at least with the AIX C compiler. 2624 echo '#include "conftest.h"' > conftest.c 2625 echo 'int i;' > conftest.h 2626 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2627 2628 case $depmode in 2629 nosideeffect) 2630 # after this tag, mechanisms are not by side-effect, so they'll 2631 # only be used when explicitly requested 2632 if test "x$enable_dependency_tracking" = xyes; then 2633 continue 2634 else 2635 break 2636 fi 2637 ;; 2638 none) break ;; 2639 esac 2640 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2641 # mode. It turns out that the SunPro C++ compiler does not properly 2642 # handle `-M -o', and we need to detect this. 2643 if depmode=$depmode \ 2644 source=conftest.c object=conftest.o \ 2645 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2646 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2647 grep conftest.h conftest.Po > /dev/null 2>&1 && 2648 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2649 am_cv_CXX_dependencies_compiler_type=$depmode 2650 break 2651 fi 2652 done 2653 2654 cd .. 2655 rm -rf conftest.dir 2656else 2657 am_cv_CXX_dependencies_compiler_type=none 2658fi 2659 2660fi 2661echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2662echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2663CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2664 2665 2666 2667# 2668if test $use_preset = 0; then 2669 echo "$as_me:$LINENO: result: Auto detection of compiler: $CXX" >&5 2670echo "${ECHO_T}Auto detection of compiler: $CXX" >&6 2671fi 2672unset ac_cv_prog_ac_ct_CC 2673unset ac_cv_prog_ac_ct_CXX 2674 2675 2676echo "$as_me:$LINENO: checking preset g++ for SUN with optimization flags " >&5 2677echo $ECHO_N "checking preset g++ for SUN with optimization flags ... $ECHO_C" >&6 2678WANT_SUN_GCC_FLAGS=0 2679if test "$with_sun_gcc" = "yes"; then 2680 WANT_SUN_GCC_FLAGS=1 2681 echo "$as_me:$LINENO: result: yes" >&5 2682echo "${ECHO_T}yes" >&6 2683 CC="gcc" 2684 CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -mcpu=ultrasparc -m32 -U_LP64 -U__sparc_v9__ -U__sparcv9 -DNDEBUG" 2685 CXX="g++" 2686 CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -mcpu=ultrasparc -m32 -U_LP64 -U__sparc_v9__ -U__sparcv9 -DNDEBUG" 2687 LIBS="-lm -lnsl" 2688 DEPFLAGS="" 2689else 2690 echo "$as_me:$LINENO: result: no" >&5 2691echo "${ECHO_T}no" >&6 2692fi 2693 2694 2695WANT_IRIX_MIPSPRO_MPI_FLAGS=0 2696echo "$as_me:$LINENO: checking preset CC fro IRIX with MPI and optimization flags " >&5 2697echo $ECHO_N "checking preset CC fro IRIX with MPI and optimization flags ... $ECHO_C" >&6 2698if (test "$with_irix_mipspro_mpi" = "yes" || ((test $use_preset = 0) && test $CXX = "CC" )) then 2699 WANT_IRIX_MIPSPRO_MPI_FLAGS=1 2700 echo "$as_me:$LINENO: result: yes" >&5 2701echo "${ECHO_T}yes" >&6 2702 CC="cc" 2703 CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -Ofast=ip35 -64 -DNDEBUG -DHAVE_MPI -DMPI_NO_CPPBIND" 2704 CXX="CC" 2705 CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -Ofast=ip35 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DNDEBUG -DHAVE_MPI -DMPI_NO_CPPBIND" 2706 LIBS="-lmpi -lsma -lm" 2707 DEPFLAGS="-LANG:std" 2708else 2709 echo "$as_me:$LINENO: result: no" >&5 2710echo "${ECHO_T}no" >&6 2711fi 2712 2713WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS=0 2714echo "$as_me:$LINENO: checking preset CC for IRIX with MPI and debugging flags " >&5 2715echo $ECHO_N "checking preset CC for IRIX with MPI and debugging flags ... $ECHO_C" >&6 2716if test "$with_irix_mipspro_mpi_debug" = "yes"; then 2717 WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS=1 2718 echo "$as_me:$LINENO: result: yes" >&5 2719echo "${ECHO_T}yes" >&6 2720 CC="cc" 2721 CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -O2 -64 -DHAVE_MPI -DMPI_NO_CPPBIND" 2722 CXX="CC" 2723 CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -O2 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DHAVE_MPI -DMPI_NO_CPPBIND" 2724 LIBS="-lmpi -lsma -lm" 2725 DEPFLAGS="-LANG:std" 2726else 2727 echo "$as_me:$LINENO: result: no" >&5 2728echo "${ECHO_T}no" >&6 2729fi 2730 2731WANT_IRIX_MIPSPRO_FLAGS=0 2732echo "$as_me:$LINENO: checking preset CC for IRIX with optimization flags " >&5 2733echo $ECHO_N "checking preset CC for IRIX with optimization flags ... $ECHO_C" >&6 2734if test "$with_irix_mipspro" = "yes"; then 2735 WANT_IRIX_MIPSPRO_FLAGS=1 2736 echo "$as_me:$LINENO: result: yes" >&5 2737echo "${ECHO_T}yes" >&6 2738 CC="cc" 2739 CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -Ofast=ip35 -64 -DNDEBUG" 2740 CXX="CC" 2741 CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -Ofast=ip35 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON -DNDEBUG" 2742 LIBS="-lm" 2743 DEPFLAGS="-LANG:std" 2744else 2745 echo "$as_me:$LINENO: result: no" >&5 2746echo "${ECHO_T}no" >&6 2747fi 2748 2749 2750WANT_IRIX_MIPSPRO_DEBUG_FLAGS=0 2751echo "$as_me:$LINENO: checking preset CC for IRIX with debugging flags " >&5 2752echo $ECHO_N "checking preset CC for IRIX with debugging flags ... $ECHO_C" >&6 2753if test "$with_irix_mipspro_debug" = "yes"; then 2754 WANT_IRIX_MIPSPRO_DEBUG_FLAGS=1 2755 echo "$as_me:$LINENO: result: yes" >&5 2756echo "${ECHO_T}yes" >&6 2757 CC="cc" 2758 CFLAGS="-Wl,-read -fullwarn -woff 1209,1506 -mips4 -O2 -64" 2759 CXX="CC" 2760 CXXFLAGS="-Wl,-read -fullwarn -woff 3649,3625,1209,3201,1424,1110,1506,1182 -mips4 -O2 -64 -LANG:std -LANG:restrict=ON -LANG:ansi-for-init-scope=ON" 2761 LIBS="-lm" 2762 DEPFLAGS="-LANG:std" 2763else 2764 echo "$as_me:$LINENO: result: no" >&5 2765echo "${ECHO_T}no" >&6 2766fi 2767 2768 2769WANT_ICC_FLAGS=0 2770echo "$as_me:$LINENO: checking preset icc for generic with optimization flags " >&5 2771echo $ECHO_N "checking preset icc for generic with optimization flags ... $ECHO_C" >&6 2772if (test "$with_icc" = "yes" || ((test $use_preset = 0) && (test $CXX = "icc" || test $CXX = "icpc"))) then 2773 unset CC 2774 unset CXX 2775 WANT_ICC_FLAGS=1 2776 echo "$as_me:$LINENO: result: yes" >&5 2777echo "${ECHO_T}yes" >&6 2778 ac_ext=cc 2779ac_cpp='$CXXCPP $CPPFLAGS' 2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2783 2784 ac_ext=cc 2785ac_cpp='$CXXCPP $CPPFLAGS' 2786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2789if test -n "$ac_tool_prefix"; then 2790 for ac_prog in $CCC icpc icc 2791 do 2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2793set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2794echo "$as_me:$LINENO: checking for $ac_word" >&5 2795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2796if test "${ac_cv_prog_CXX+set}" = set; then 2797 echo $ECHO_N "(cached) $ECHO_C" >&6 2798else 2799 if test -n "$CXX"; then 2800 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814done 2815 2816fi 2817fi 2818CXX=$ac_cv_prog_CXX 2819if test -n "$CXX"; then 2820 echo "$as_me:$LINENO: result: $CXX" >&5 2821echo "${ECHO_T}$CXX" >&6 2822else 2823 echo "$as_me:$LINENO: result: no" >&5 2824echo "${ECHO_T}no" >&6 2825fi 2826 2827 test -n "$CXX" && break 2828 done 2829fi 2830if test -z "$CXX"; then 2831 ac_ct_CXX=$CXX 2832 for ac_prog in $CCC icpc icc 2833do 2834 # Extract the first word of "$ac_prog", so it can be a program name with args. 2835set dummy $ac_prog; ac_word=$2 2836echo "$as_me:$LINENO: checking for $ac_word" >&5 2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2839 echo $ECHO_N "(cached) $ECHO_C" >&6 2840else 2841 if test -n "$ac_ct_CXX"; then 2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2843else 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2851 ac_cv_prog_ac_ct_CXX="$ac_prog" 2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856done 2857 2858fi 2859fi 2860ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2861if test -n "$ac_ct_CXX"; then 2862 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2863echo "${ECHO_T}$ac_ct_CXX" >&6 2864else 2865 echo "$as_me:$LINENO: result: no" >&5 2866echo "${ECHO_T}no" >&6 2867fi 2868 2869 test -n "$ac_ct_CXX" && break 2870done 2871test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2872 2873 CXX=$ac_ct_CXX 2874fi 2875 2876 2877# Provide some information about the compiler. 2878echo "$as_me:$LINENO:" \ 2879 "checking for C++ compiler version" >&5 2880ac_compiler=`set X $ac_compile; echo $2` 2881{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2882 (eval $ac_compiler --version </dev/null >&5) 2>&5 2883 ac_status=$? 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); } 2886{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2887 (eval $ac_compiler -v </dev/null >&5) 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); } 2891{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2892 (eval $ac_compiler -V </dev/null >&5) 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); } 2896 2897echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2898echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2899if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2900 echo $ECHO_N "(cached) $ECHO_C" >&6 2901else 2902 cat >conftest.$ac_ext <<_ACEOF 2903#line $LINENO "configure" 2904/* confdefs.h. */ 2905_ACEOF 2906cat confdefs.h >>conftest.$ac_ext 2907cat >>conftest.$ac_ext <<_ACEOF 2908/* end confdefs.h. */ 2909 2910int 2911main () 2912{ 2913#ifndef __GNUC__ 2914 choke me 2915#endif 2916 2917 ; 2918 return 0; 2919} 2920_ACEOF 2921rm -f conftest.$ac_objext 2922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2923 (eval $ac_compile) 2>&5 2924 ac_status=$? 2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2926 (exit $ac_status); } && 2927 { ac_try='test -s conftest.$ac_objext' 2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2929 (eval $ac_try) 2>&5 2930 ac_status=$? 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); }; }; then 2933 ac_compiler_gnu=yes 2934else 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938ac_compiler_gnu=no 2939fi 2940rm -f conftest.$ac_objext conftest.$ac_ext 2941ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2942 2943fi 2944echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2945echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2946GXX=`test $ac_compiler_gnu = yes && echo yes` 2947ac_test_CXXFLAGS=${CXXFLAGS+set} 2948ac_save_CXXFLAGS=$CXXFLAGS 2949CXXFLAGS="-g" 2950echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2951echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2952if test "${ac_cv_prog_cxx_g+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 cat >conftest.$ac_ext <<_ACEOF 2956#line $LINENO "configure" 2957/* confdefs.h. */ 2958_ACEOF 2959cat confdefs.h >>conftest.$ac_ext 2960cat >>conftest.$ac_ext <<_ACEOF 2961/* end confdefs.h. */ 2962 2963int 2964main () 2965{ 2966 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971rm -f conftest.$ac_objext 2972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2973 (eval $ac_compile) 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); } && 2977 { ac_try='test -s conftest.$ac_objext' 2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2979 (eval $ac_try) 2>&5 2980 ac_status=$? 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); }; }; then 2983 ac_cv_prog_cxx_g=yes 2984else 2985 echo "$as_me: failed program was:" >&5 2986sed 's/^/| /' conftest.$ac_ext >&5 2987 2988ac_cv_prog_cxx_g=no 2989fi 2990rm -f conftest.$ac_objext conftest.$ac_ext 2991fi 2992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2994if test "$ac_test_CXXFLAGS" = set; then 2995 CXXFLAGS=$ac_save_CXXFLAGS 2996elif test $ac_cv_prog_cxx_g = yes; then 2997 if test "$GXX" = yes; then 2998 CXXFLAGS="-g -O2" 2999 else 3000 CXXFLAGS="-g" 3001 fi 3002else 3003 if test "$GXX" = yes; then 3004 CXXFLAGS="-O2" 3005 else 3006 CXXFLAGS= 3007 fi 3008fi 3009for ac_declaration in \ 3010 ''\ 3011 '#include <stdlib.h>' \ 3012 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3013 'extern "C" void std::exit (int); using std::exit;' \ 3014 'extern "C" void exit (int) throw ();' \ 3015 'extern "C" void exit (int);' \ 3016 'void exit (int);' 3017do 3018 cat >conftest.$ac_ext <<_ACEOF 3019#line $LINENO "configure" 3020/* confdefs.h. */ 3021_ACEOF 3022cat confdefs.h >>conftest.$ac_ext 3023cat >>conftest.$ac_ext <<_ACEOF 3024/* end confdefs.h. */ 3025#include <stdlib.h> 3026$ac_declaration 3027int 3028main () 3029{ 3030exit (42); 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3037 (eval $ac_compile) 2>&5 3038 ac_status=$? 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); } && 3041 { ac_try='test -s conftest.$ac_objext' 3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3043 (eval $ac_try) 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); }; }; then 3047 : 3048else 3049 echo "$as_me: failed program was:" >&5 3050sed 's/^/| /' conftest.$ac_ext >&5 3051 3052continue 3053fi 3054rm -f conftest.$ac_objext conftest.$ac_ext 3055 cat >conftest.$ac_ext <<_ACEOF 3056#line $LINENO "configure" 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062$ac_declaration 3063int 3064main () 3065{ 3066exit (42); 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071rm -f conftest.$ac_objext 3072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3073 (eval $ac_compile) 2>&5 3074 ac_status=$? 3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 (exit $ac_status); } && 3077 { ac_try='test -s conftest.$ac_objext' 3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3079 (eval $ac_try) 2>&5 3080 ac_status=$? 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); }; }; then 3083 break 3084else 3085 echo "$as_me: failed program was:" >&5 3086sed 's/^/| /' conftest.$ac_ext >&5 3087 3088fi 3089rm -f conftest.$ac_objext conftest.$ac_ext 3090done 3091rm -f conftest* 3092if test -n "$ac_declaration"; then 3093 echo '#ifdef __cplusplus' >>confdefs.h 3094 echo $ac_declaration >>confdefs.h 3095 echo '#endif' >>confdefs.h 3096fi 3097 3098ac_ext=cc 3099ac_cpp='$CXXCPP $CPPFLAGS' 3100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3103 3104depcc="$CXX" am_compiler_list= 3105 3106echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3107echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3108if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3109 echo $ECHO_N "(cached) $ECHO_C" >&6 3110else 3111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3112 # We make a subdir and do the tests there. Otherwise we can end up 3113 # making bogus files that we don't know about and never remove. For 3114 # instance it was reported that on HP-UX the gcc test will end up 3115 # making a dummy file named `D' -- because `-MD' means `put the output 3116 # in D'. 3117 mkdir conftest.dir 3118 # Copy depcomp to subdir because otherwise we won't find it if we're 3119 # using a relative directory. 3120 cp "$am_depcomp" conftest.dir 3121 cd conftest.dir 3122 3123 am_cv_CXX_dependencies_compiler_type=none 3124 if test "$am_compiler_list" = ""; then 3125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3126 fi 3127 for depmode in $am_compiler_list; do 3128 # We need to recreate these files for each test, as the compiler may 3129 # overwrite some of them when testing with obscure command lines. 3130 # This happens at least with the AIX C compiler. 3131 echo '#include "conftest.h"' > conftest.c 3132 echo 'int i;' > conftest.h 3133 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3134 3135 case $depmode in 3136 nosideeffect) 3137 # after this tag, mechanisms are not by side-effect, so they'll 3138 # only be used when explicitly requested 3139 if test "x$enable_dependency_tracking" = xyes; then 3140 continue 3141 else 3142 break 3143 fi 3144 ;; 3145 none) break ;; 3146 esac 3147 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3148 # mode. It turns out that the SunPro C++ compiler does not properly 3149 # handle `-M -o', and we need to detect this. 3150 if depmode=$depmode \ 3151 source=conftest.c object=conftest.o \ 3152 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3153 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 3154 grep conftest.h conftest.Po > /dev/null 2>&1 && 3155 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3156 am_cv_CXX_dependencies_compiler_type=$depmode 3157 break 3158 fi 3159 done 3160 3161 cd .. 3162 rm -rf conftest.dir 3163else 3164 am_cv_CXX_dependencies_compiler_type=none 3165fi 3166 3167fi 3168echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3169echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3170CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3171 3172 3173 ac_ext=c 3174ac_cpp='$CPP $CPPFLAGS' 3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3177ac_compiler_gnu=$ac_cv_c_compiler_gnu 3178 3179 ac_ext=c 3180ac_cpp='$CPP $CPPFLAGS' 3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3183ac_compiler_gnu=$ac_cv_c_compiler_gnu 3184if test -n "$ac_tool_prefix"; then 3185 for ac_prog in icpc icc 3186 do 3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3188set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3189echo "$as_me:$LINENO: checking for $ac_word" >&5 3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3191if test "${ac_cv_prog_CC+set}" = set; then 3192 echo $ECHO_N "(cached) $ECHO_C" >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209done 3210 3211fi 3212fi 3213CC=$ac_cv_prog_CC 3214if test -n "$CC"; then 3215 echo "$as_me:$LINENO: result: $CC" >&5 3216echo "${ECHO_T}$CC" >&6 3217else 3218 echo "$as_me:$LINENO: result: no" >&5 3219echo "${ECHO_T}no" >&6 3220fi 3221 3222 test -n "$CC" && break 3223 done 3224fi 3225if test -z "$CC"; then 3226 ac_ct_CC=$CC 3227 for ac_prog in icpc icc 3228do 3229 # Extract the first word of "$ac_prog", so it can be a program name with args. 3230set dummy $ac_prog; ac_word=$2 3231echo "$as_me:$LINENO: checking for $ac_word" >&5 3232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3233if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3234 echo $ECHO_N "(cached) $ECHO_C" >&6 3235else 3236 if test -n "$ac_ct_CC"; then 3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3238else 3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3240for as_dir in $PATH 3241do 3242 IFS=$as_save_IFS 3243 test -z "$as_dir" && as_dir=. 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3246 ac_cv_prog_ac_ct_CC="$ac_prog" 3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3248 break 2 3249 fi 3250done 3251done 3252 3253fi 3254fi 3255ac_ct_CC=$ac_cv_prog_ac_ct_CC 3256if test -n "$ac_ct_CC"; then 3257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3258echo "${ECHO_T}$ac_ct_CC" >&6 3259else 3260 echo "$as_me:$LINENO: result: no" >&5 3261echo "${ECHO_T}no" >&6 3262fi 3263 3264 test -n "$ac_ct_CC" && break 3265done 3266 3267 CC=$ac_ct_CC 3268fi 3269 3270 3271test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3272See \`config.log' for more details." >&5 3273echo "$as_me: error: no acceptable C compiler found in \$PATH 3274See \`config.log' for more details." >&2;} 3275 { (exit 1); exit 1; }; } 3276 3277# Provide some information about the compiler. 3278echo "$as_me:$LINENO:" \ 3279 "checking for C compiler version" >&5 3280ac_compiler=`set X $ac_compile; echo $2` 3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3282 (eval $ac_compiler --version </dev/null >&5) 2>&5 3283 ac_status=$? 3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); } 3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3287 (eval $ac_compiler -v </dev/null >&5) 2>&5 3288 ac_status=$? 3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3290 (exit $ac_status); } 3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3292 (eval $ac_compiler -V </dev/null >&5) 2>&5 3293 ac_status=$? 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } 3296 3297echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3299if test "${ac_cv_c_compiler_gnu+set}" = set; then 3300 echo $ECHO_N "(cached) $ECHO_C" >&6 3301else 3302 cat >conftest.$ac_ext <<_ACEOF 3303#line $LINENO "configure" 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309 3310int 3311main () 3312{ 3313#ifndef __GNUC__ 3314 choke me 3315#endif 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321rm -f conftest.$ac_objext 3322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3323 (eval $ac_compile) 2>&5 3324 ac_status=$? 3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3326 (exit $ac_status); } && 3327 { ac_try='test -s conftest.$ac_objext' 3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3329 (eval $ac_try) 2>&5 3330 ac_status=$? 3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3332 (exit $ac_status); }; }; then 3333 ac_compiler_gnu=yes 3334else 3335 echo "$as_me: failed program was:" >&5 3336sed 's/^/| /' conftest.$ac_ext >&5 3337 3338ac_compiler_gnu=no 3339fi 3340rm -f conftest.$ac_objext conftest.$ac_ext 3341ac_cv_c_compiler_gnu=$ac_compiler_gnu 3342 3343fi 3344echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3346GCC=`test $ac_compiler_gnu = yes && echo yes` 3347ac_test_CFLAGS=${CFLAGS+set} 3348ac_save_CFLAGS=$CFLAGS 3349CFLAGS="-g" 3350echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3352if test "${ac_cv_prog_cc_g+set}" = set; then 3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3354else 3355 cat >conftest.$ac_ext <<_ACEOF 3356#line $LINENO "configure" 3357/* confdefs.h. */ 3358_ACEOF 3359cat confdefs.h >>conftest.$ac_ext 3360cat >>conftest.$ac_ext <<_ACEOF 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371rm -f conftest.$ac_objext 3372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3373 (eval $ac_compile) 2>&5 3374 ac_status=$? 3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } && 3377 { ac_try='test -s conftest.$ac_objext' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; }; then 3383 ac_cv_prog_cc_g=yes 3384else 3385 echo "$as_me: failed program was:" >&5 3386sed 's/^/| /' conftest.$ac_ext >&5 3387 3388ac_cv_prog_cc_g=no 3389fi 3390rm -f conftest.$ac_objext conftest.$ac_ext 3391fi 3392echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3393echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3394if test "$ac_test_CFLAGS" = set; then 3395 CFLAGS=$ac_save_CFLAGS 3396elif test $ac_cv_prog_cc_g = yes; then 3397 if test "$GCC" = yes; then 3398 CFLAGS="-g -O2" 3399 else 3400 CFLAGS="-g" 3401 fi 3402else 3403 if test "$GCC" = yes; then 3404 CFLAGS="-O2" 3405 else 3406 CFLAGS= 3407 fi 3408fi 3409echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3410echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3411if test "${ac_cv_prog_cc_stdc+set}" = set; then 3412 echo $ECHO_N "(cached) $ECHO_C" >&6 3413else 3414 ac_cv_prog_cc_stdc=no 3415ac_save_CC=$CC 3416cat >conftest.$ac_ext <<_ACEOF 3417#line $LINENO "configure" 3418/* confdefs.h. */ 3419_ACEOF 3420cat confdefs.h >>conftest.$ac_ext 3421cat >>conftest.$ac_ext <<_ACEOF 3422/* end confdefs.h. */ 3423#include <stdarg.h> 3424#include <stdio.h> 3425#include <sys/types.h> 3426#include <sys/stat.h> 3427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3428struct buf { int x; }; 3429FILE * (*rcsopen) (struct buf *, struct stat *, int); 3430static char *e (p, i) 3431 char **p; 3432 int i; 3433{ 3434 return p[i]; 3435} 3436static char *f (char * (*g) (char **, int), char **p, ...) 3437{ 3438 char *s; 3439 va_list v; 3440 va_start (v,p); 3441 s = g (p, va_arg (v,int)); 3442 va_end (v); 3443 return s; 3444} 3445int test (int i, double x); 3446struct s1 {int (*f) (int a);}; 3447struct s2 {int (*f) (double a);}; 3448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3449int argc; 3450char **argv; 3451int 3452main () 3453{ 3454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3455 ; 3456 return 0; 3457} 3458_ACEOF 3459# Don't try gcc -ansi; that turns off useful extensions and 3460# breaks some systems' header files. 3461# AIX -qlanglvl=ansi 3462# Ultrix and OSF/1 -std1 3463# HP-UX 10.20 and later -Ae 3464# HP-UX older versions -Aa -D_HPUX_SOURCE 3465# SVR4 -Xc -D__EXTENSIONS__ 3466for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3467do 3468 CC="$ac_save_CC $ac_arg" 3469 rm -f conftest.$ac_objext 3470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3471 (eval $ac_compile) 2>&5 3472 ac_status=$? 3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3474 (exit $ac_status); } && 3475 { ac_try='test -s conftest.$ac_objext' 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3477 (eval $ac_try) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 ac_cv_prog_cc_stdc=$ac_arg 3482break 3483else 3484 echo "$as_me: failed program was:" >&5 3485sed 's/^/| /' conftest.$ac_ext >&5 3486 3487fi 3488rm -f conftest.$ac_objext 3489done 3490rm -f conftest.$ac_ext conftest.$ac_objext 3491CC=$ac_save_CC 3492 3493fi 3494 3495case "x$ac_cv_prog_cc_stdc" in 3496 x|xno) 3497 echo "$as_me:$LINENO: result: none needed" >&5 3498echo "${ECHO_T}none needed" >&6 ;; 3499 *) 3500 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3501echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3502 CC="$CC $ac_cv_prog_cc_stdc" ;; 3503esac 3504 3505# Some people use a C++ compiler to compile C. Since we use `exit', 3506# in C++ we need to declare it. In case someone uses the same compiler 3507# for both compiling C and C++ we need to have the C++ compiler decide 3508# the declaration of exit, since it's the most demanding environment. 3509cat >conftest.$ac_ext <<_ACEOF 3510#ifndef __cplusplus 3511 choke me 3512#endif 3513_ACEOF 3514rm -f conftest.$ac_objext 3515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3516 (eval $ac_compile) 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); } && 3520 { ac_try='test -s conftest.$ac_objext' 3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3522 (eval $ac_try) 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); }; }; then 3526 for ac_declaration in \ 3527 ''\ 3528 '#include <stdlib.h>' \ 3529 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3530 'extern "C" void std::exit (int); using std::exit;' \ 3531 'extern "C" void exit (int) throw ();' \ 3532 'extern "C" void exit (int);' \ 3533 'void exit (int);' 3534do 3535 cat >conftest.$ac_ext <<_ACEOF 3536#line $LINENO "configure" 3537/* confdefs.h. */ 3538_ACEOF 3539cat confdefs.h >>conftest.$ac_ext 3540cat >>conftest.$ac_ext <<_ACEOF 3541/* end confdefs.h. */ 3542#include <stdlib.h> 3543$ac_declaration 3544int 3545main () 3546{ 3547exit (42); 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552rm -f conftest.$ac_objext 3553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3554 (eval $ac_compile) 2>&5 3555 ac_status=$? 3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); } && 3558 { ac_try='test -s conftest.$ac_objext' 3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3560 (eval $ac_try) 2>&5 3561 ac_status=$? 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 (exit $ac_status); }; }; then 3564 : 3565else 3566 echo "$as_me: failed program was:" >&5 3567sed 's/^/| /' conftest.$ac_ext >&5 3568 3569continue 3570fi 3571rm -f conftest.$ac_objext conftest.$ac_ext 3572 cat >conftest.$ac_ext <<_ACEOF 3573#line $LINENO "configure" 3574/* confdefs.h. */ 3575_ACEOF 3576cat confdefs.h >>conftest.$ac_ext 3577cat >>conftest.$ac_ext <<_ACEOF 3578/* end confdefs.h. */ 3579$ac_declaration 3580int 3581main () 3582{ 3583exit (42); 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588rm -f conftest.$ac_objext 3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3590 (eval $ac_compile) 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); } && 3594 { ac_try='test -s conftest.$ac_objext' 3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3596 (eval $ac_try) 2>&5 3597 ac_status=$? 3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3599 (exit $ac_status); }; }; then 3600 break 3601else 3602 echo "$as_me: failed program was:" >&5 3603sed 's/^/| /' conftest.$ac_ext >&5 3604 3605fi 3606rm -f conftest.$ac_objext conftest.$ac_ext 3607done 3608rm -f conftest* 3609if test -n "$ac_declaration"; then 3610 echo '#ifdef __cplusplus' >>confdefs.h 3611 echo $ac_declaration >>confdefs.h 3612 echo '#endif' >>confdefs.h 3613fi 3614 3615else 3616 echo "$as_me: failed program was:" >&5 3617sed 's/^/| /' conftest.$ac_ext >&5 3618 3619fi 3620rm -f conftest.$ac_objext conftest.$ac_ext 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626 3627depcc="$CC" am_compiler_list= 3628 3629echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3630echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3631if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3632 echo $ECHO_N "(cached) $ECHO_C" >&6 3633else 3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3635 # We make a subdir and do the tests there. Otherwise we can end up 3636 # making bogus files that we don't know about and never remove. For 3637 # instance it was reported that on HP-UX the gcc test will end up 3638 # making a dummy file named `D' -- because `-MD' means `put the output 3639 # in D'. 3640 mkdir conftest.dir 3641 # Copy depcomp to subdir because otherwise we won't find it if we're 3642 # using a relative directory. 3643 cp "$am_depcomp" conftest.dir 3644 cd conftest.dir 3645 3646 am_cv_CC_dependencies_compiler_type=none 3647 if test "$am_compiler_list" = ""; then 3648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3649 fi 3650 for depmode in $am_compiler_list; do 3651 # We need to recreate these files for each test, as the compiler may 3652 # overwrite some of them when testing with obscure command lines. 3653 # This happens at least with the AIX C compiler. 3654 echo '#include "conftest.h"' > conftest.c 3655 echo 'int i;' > conftest.h 3656 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3657 3658 case $depmode in 3659 nosideeffect) 3660 # after this tag, mechanisms are not by side-effect, so they'll 3661 # only be used when explicitly requested 3662 if test "x$enable_dependency_tracking" = xyes; then 3663 continue 3664 else 3665 break 3666 fi 3667 ;; 3668 none) break ;; 3669 esac 3670 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3671 # mode. It turns out that the SunPro C++ compiler does not properly 3672 # handle `-M -o', and we need to detect this. 3673 if depmode=$depmode \ 3674 source=conftest.c object=conftest.o \ 3675 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3676 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 3677 grep conftest.h conftest.Po > /dev/null 2>&1 && 3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3679 am_cv_CC_dependencies_compiler_type=$depmode 3680 break 3681 fi 3682 done 3683 3684 cd .. 3685 rm -rf conftest.dir 3686else 3687 am_cv_CC_dependencies_compiler_type=none 3688fi 3689 3690fi 3691echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3692echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3693CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3694 3695 3696 CFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG" 3697 CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG" 3698 LIBS="-lm -lnsl" 3699else 3700 echo "$as_me:$LINENO: result: no" >&5 3701echo "${ECHO_T}no" >&6 3702fi 3703 3704WANT_ICC_DEBUG_FLAGS=0 3705echo "$as_me:$LINENO: checking preset icc for generic with debugging flags " >&5 3706echo $ECHO_N "checking preset icc for generic with debugging flags ... $ECHO_C" >&6 3707if test "$with_icc_debug" = "yes"; then 3708 unset CC 3709 unset CXX 3710 WANT_ICC_DEBUG_FLAGS=1 3711 echo "$as_me:$LINENO: result: yes" >&5 3712echo "${ECHO_T}yes" >&6 3713 ac_ext=cc 3714ac_cpp='$CXXCPP $CPPFLAGS' 3715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3718 3719 ac_ext=cc 3720ac_cpp='$CXXCPP $CPPFLAGS' 3721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3724if test -n "$ac_tool_prefix"; then 3725 for ac_prog in $CCC icpc icc 3726 do 3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3728set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3729echo "$as_me:$LINENO: checking for $ac_word" >&5 3730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3731if test "${ac_cv_prog_CXX+set}" = set; then 3732 echo $ECHO_N "(cached) $ECHO_C" >&6 3733else 3734 if test -n "$CXX"; then 3735 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3736else 3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3738for as_dir in $PATH 3739do 3740 IFS=$as_save_IFS 3741 test -z "$as_dir" && as_dir=. 3742 for ac_exec_ext in '' $ac_executable_extensions; do 3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3744 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3746 break 2 3747 fi 3748done 3749done 3750 3751fi 3752fi 3753CXX=$ac_cv_prog_CXX 3754if test -n "$CXX"; then 3755 echo "$as_me:$LINENO: result: $CXX" >&5 3756echo "${ECHO_T}$CXX" >&6 3757else 3758 echo "$as_me:$LINENO: result: no" >&5 3759echo "${ECHO_T}no" >&6 3760fi 3761 3762 test -n "$CXX" && break 3763 done 3764fi 3765if test -z "$CXX"; then 3766 ac_ct_CXX=$CXX 3767 for ac_prog in $CCC icpc icc 3768do 3769 # Extract the first word of "$ac_prog", so it can be a program name with args. 3770set dummy $ac_prog; ac_word=$2 3771echo "$as_me:$LINENO: checking for $ac_word" >&5 3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3773if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 if test -n "$ac_ct_CXX"; then 3777 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3786 ac_cv_prog_ac_ct_CXX="$ac_prog" 3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791done 3792 3793fi 3794fi 3795ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3796if test -n "$ac_ct_CXX"; then 3797 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3798echo "${ECHO_T}$ac_ct_CXX" >&6 3799else 3800 echo "$as_me:$LINENO: result: no" >&5 3801echo "${ECHO_T}no" >&6 3802fi 3803 3804 test -n "$ac_ct_CXX" && break 3805done 3806test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3807 3808 CXX=$ac_ct_CXX 3809fi 3810 3811 3812# Provide some information about the compiler. 3813echo "$as_me:$LINENO:" \ 3814 "checking for C++ compiler version" >&5 3815ac_compiler=`set X $ac_compile; echo $2` 3816{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3817 (eval $ac_compiler --version </dev/null >&5) 2>&5 3818 ac_status=$? 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); } 3821{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3822 (eval $ac_compiler -v </dev/null >&5) 2>&5 3823 ac_status=$? 3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3825 (exit $ac_status); } 3826{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3827 (eval $ac_compiler -V </dev/null >&5) 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); } 3831 3832echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3833echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3834if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3835 echo $ECHO_N "(cached) $ECHO_C" >&6 3836else 3837 cat >conftest.$ac_ext <<_ACEOF 3838#line $LINENO "configure" 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848#ifndef __GNUC__ 3849 choke me 3850#endif 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856rm -f conftest.$ac_objext 3857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3858 (eval $ac_compile) 2>&5 3859 ac_status=$? 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); } && 3862 { ac_try='test -s conftest.$ac_objext' 3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3864 (eval $ac_try) 2>&5 3865 ac_status=$? 3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3867 (exit $ac_status); }; }; then 3868 ac_compiler_gnu=yes 3869else 3870 echo "$as_me: failed program was:" >&5 3871sed 's/^/| /' conftest.$ac_ext >&5 3872 3873ac_compiler_gnu=no 3874fi 3875rm -f conftest.$ac_objext conftest.$ac_ext 3876ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3877 3878fi 3879echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3880echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3881GXX=`test $ac_compiler_gnu = yes && echo yes` 3882ac_test_CXXFLAGS=${CXXFLAGS+set} 3883ac_save_CXXFLAGS=$CXXFLAGS 3884CXXFLAGS="-g" 3885echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3886echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3887if test "${ac_cv_prog_cxx_g+set}" = set; then 3888 echo $ECHO_N "(cached) $ECHO_C" >&6 3889else 3890 cat >conftest.$ac_ext <<_ACEOF 3891#line $LINENO "configure" 3892/* confdefs.h. */ 3893_ACEOF 3894cat confdefs.h >>conftest.$ac_ext 3895cat >>conftest.$ac_ext <<_ACEOF 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906rm -f conftest.$ac_objext 3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3908 (eval $ac_compile) 2>&5 3909 ac_status=$? 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); } && 3912 { ac_try='test -s conftest.$ac_objext' 3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3914 (eval $ac_try) 2>&5 3915 ac_status=$? 3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 (exit $ac_status); }; }; then 3918 ac_cv_prog_cxx_g=yes 3919else 3920 echo "$as_me: failed program was:" >&5 3921sed 's/^/| /' conftest.$ac_ext >&5 3922 3923ac_cv_prog_cxx_g=no 3924fi 3925rm -f conftest.$ac_objext conftest.$ac_ext 3926fi 3927echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3928echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3929if test "$ac_test_CXXFLAGS" = set; then 3930 CXXFLAGS=$ac_save_CXXFLAGS 3931elif test $ac_cv_prog_cxx_g = yes; then 3932 if test "$GXX" = yes; then 3933 CXXFLAGS="-g -O2" 3934 else 3935 CXXFLAGS="-g" 3936 fi 3937else 3938 if test "$GXX" = yes; then 3939 CXXFLAGS="-O2" 3940 else 3941 CXXFLAGS= 3942 fi 3943fi 3944for ac_declaration in \ 3945 ''\ 3946 '#include <stdlib.h>' \ 3947 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3948 'extern "C" void std::exit (int); using std::exit;' \ 3949 'extern "C" void exit (int) throw ();' \ 3950 'extern "C" void exit (int);' \ 3951 'void exit (int);' 3952do 3953 cat >conftest.$ac_ext <<_ACEOF 3954#line $LINENO "configure" 3955/* confdefs.h. */ 3956_ACEOF 3957cat confdefs.h >>conftest.$ac_ext 3958cat >>conftest.$ac_ext <<_ACEOF 3959/* end confdefs.h. */ 3960#include <stdlib.h> 3961$ac_declaration 3962int 3963main () 3964{ 3965exit (42); 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970rm -f conftest.$ac_objext 3971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3972 (eval $ac_compile) 2>&5 3973 ac_status=$? 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } && 3976 { ac_try='test -s conftest.$ac_objext' 3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3978 (eval $ac_try) 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; }; then 3982 : 3983else 3984 echo "$as_me: failed program was:" >&5 3985sed 's/^/| /' conftest.$ac_ext >&5 3986 3987continue 3988fi 3989rm -f conftest.$ac_objext conftest.$ac_ext 3990 cat >conftest.$ac_ext <<_ACEOF 3991#line $LINENO "configure" 3992/* confdefs.h. */ 3993_ACEOF 3994cat confdefs.h >>conftest.$ac_ext 3995cat >>conftest.$ac_ext <<_ACEOF 3996/* end confdefs.h. */ 3997$ac_declaration 3998int 3999main () 4000{ 4001exit (42); 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006rm -f conftest.$ac_objext 4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4008 (eval $ac_compile) 2>&5 4009 ac_status=$? 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); } && 4012 { ac_try='test -s conftest.$ac_objext' 4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4014 (eval $ac_try) 2>&5 4015 ac_status=$? 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); }; }; then 4018 break 4019else 4020 echo "$as_me: failed program was:" >&5 4021sed 's/^/| /' conftest.$ac_ext >&5 4022 4023fi 4024rm -f conftest.$ac_objext conftest.$ac_ext 4025done 4026rm -f conftest* 4027if test -n "$ac_declaration"; then 4028 echo '#ifdef __cplusplus' >>confdefs.h 4029 echo $ac_declaration >>confdefs.h 4030 echo '#endif' >>confdefs.h 4031fi 4032 4033ac_ext=cc 4034ac_cpp='$CXXCPP $CPPFLAGS' 4035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4038 4039depcc="$CXX" am_compiler_list= 4040 4041echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4042echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4043if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4044 echo $ECHO_N "(cached) $ECHO_C" >&6 4045else 4046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4047 # We make a subdir and do the tests there. Otherwise we can end up 4048 # making bogus files that we don't know about and never remove. For 4049 # instance it was reported that on HP-UX the gcc test will end up 4050 # making a dummy file named `D' -- because `-MD' means `put the output 4051 # in D'. 4052 mkdir conftest.dir 4053 # Copy depcomp to subdir because otherwise we won't find it if we're 4054 # using a relative directory. 4055 cp "$am_depcomp" conftest.dir 4056 cd conftest.dir 4057 4058 am_cv_CXX_dependencies_compiler_type=none 4059 if test "$am_compiler_list" = ""; then 4060 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4061 fi 4062 for depmode in $am_compiler_list; do 4063 # We need to recreate these files for each test, as the compiler may 4064 # overwrite some of them when testing with obscure command lines. 4065 # This happens at least with the AIX C compiler. 4066 echo '#include "conftest.h"' > conftest.c 4067 echo 'int i;' > conftest.h 4068 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 4069 4070 case $depmode in 4071 nosideeffect) 4072 # after this tag, mechanisms are not by side-effect, so they'll 4073 # only be used when explicitly requested 4074 if test "x$enable_dependency_tracking" = xyes; then 4075 continue 4076 else 4077 break 4078 fi 4079 ;; 4080 none) break ;; 4081 esac 4082 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4083 # mode. It turns out that the SunPro C++ compiler does not properly 4084 # handle `-M -o', and we need to detect this. 4085 if depmode=$depmode \ 4086 source=conftest.c object=conftest.o \ 4087 depfile=conftest.Po tmpdepfile=conftest.TPo \ 4088 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 4089 grep conftest.h conftest.Po > /dev/null 2>&1 && 4090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4091 am_cv_CXX_dependencies_compiler_type=$depmode 4092 break 4093 fi 4094 done 4095 4096 cd .. 4097 rm -rf conftest.dir 4098else 4099 am_cv_CXX_dependencies_compiler_type=none 4100fi 4101 4102fi 4103echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4104echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4105CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4106 4107 4108 ac_ext=c 4109ac_cpp='$CPP $CPPFLAGS' 4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4112ac_compiler_gnu=$ac_cv_c_compiler_gnu 4113 4114 ac_ext=c 4115ac_cpp='$CPP $CPPFLAGS' 4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4118ac_compiler_gnu=$ac_cv_c_compiler_gnu 4119if test -n "$ac_tool_prefix"; then 4120 for ac_prog in icpc icc 4121 do 4122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4123set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4124echo "$as_me:$LINENO: checking for $ac_word" >&5 4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4126if test "${ac_cv_prog_CC+set}" = set; then 4127 echo $ECHO_N "(cached) $ECHO_C" >&6 4128else 4129 if test -n "$CC"; then 4130 ac_cv_prog_CC="$CC" # Let the user override the test. 4131else 4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4133for as_dir in $PATH 4134do 4135 IFS=$as_save_IFS 4136 test -z "$as_dir" && as_dir=. 4137 for ac_exec_ext in '' $ac_executable_extensions; do 4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4141 break 2 4142 fi 4143done 4144done 4145 4146fi 4147fi 4148CC=$ac_cv_prog_CC 4149if test -n "$CC"; then 4150 echo "$as_me:$LINENO: result: $CC" >&5 4151echo "${ECHO_T}$CC" >&6 4152else 4153 echo "$as_me:$LINENO: result: no" >&5 4154echo "${ECHO_T}no" >&6 4155fi 4156 4157 test -n "$CC" && break 4158 done 4159fi 4160if test -z "$CC"; then 4161 ac_ct_CC=$CC 4162 for ac_prog in icpc icc 4163do 4164 # Extract the first word of "$ac_prog", so it can be a program name with args. 4165set dummy $ac_prog; ac_word=$2 4166echo "$as_me:$LINENO: checking for $ac_word" >&5 4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4169 echo $ECHO_N "(cached) $ECHO_C" >&6 4170else 4171 if test -n "$ac_ct_CC"; then 4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4173else 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH 4176do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4181 ac_cv_prog_ac_ct_CC="$ac_prog" 4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185done 4186done 4187 4188fi 4189fi 4190ac_ct_CC=$ac_cv_prog_ac_ct_CC 4191if test -n "$ac_ct_CC"; then 4192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4193echo "${ECHO_T}$ac_ct_CC" >&6 4194else 4195 echo "$as_me:$LINENO: result: no" >&5 4196echo "${ECHO_T}no" >&6 4197fi 4198 4199 test -n "$ac_ct_CC" && break 4200done 4201 4202 CC=$ac_ct_CC 4203fi 4204 4205 4206test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4207See \`config.log' for more details." >&5 4208echo "$as_me: error: no acceptable C compiler found in \$PATH 4209See \`config.log' for more details." >&2;} 4210 { (exit 1); exit 1; }; } 4211 4212# Provide some information about the compiler. 4213echo "$as_me:$LINENO:" \ 4214 "checking for C compiler version" >&5 4215ac_compiler=`set X $ac_compile; echo $2` 4216{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4217 (eval $ac_compiler --version </dev/null >&5) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); } 4221{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4222 (eval $ac_compiler -v </dev/null >&5) 2>&5 4223 ac_status=$? 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); } 4226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4227 (eval $ac_compiler -V </dev/null >&5) 2>&5 4228 ac_status=$? 4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); } 4231 4232echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4233echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4234if test "${ac_cv_c_compiler_gnu+set}" = set; then 4235 echo $ECHO_N "(cached) $ECHO_C" >&6 4236else 4237 cat >conftest.$ac_ext <<_ACEOF 4238#line $LINENO "configure" 4239/* confdefs.h. */ 4240_ACEOF 4241cat confdefs.h >>conftest.$ac_ext 4242cat >>conftest.$ac_ext <<_ACEOF 4243/* end confdefs.h. */ 4244 4245int 4246main () 4247{ 4248#ifndef __GNUC__ 4249 choke me 4250#endif 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256rm -f conftest.$ac_objext 4257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4258 (eval $ac_compile) 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); } && 4262 { ac_try='test -s conftest.$ac_objext' 4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4264 (eval $ac_try) 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); }; }; then 4268 ac_compiler_gnu=yes 4269else 4270 echo "$as_me: failed program was:" >&5 4271sed 's/^/| /' conftest.$ac_ext >&5 4272 4273ac_compiler_gnu=no 4274fi 4275rm -f conftest.$ac_objext conftest.$ac_ext 4276ac_cv_c_compiler_gnu=$ac_compiler_gnu 4277 4278fi 4279echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4280echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4281GCC=`test $ac_compiler_gnu = yes && echo yes` 4282ac_test_CFLAGS=${CFLAGS+set} 4283ac_save_CFLAGS=$CFLAGS 4284CFLAGS="-g" 4285echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4286echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4287if test "${ac_cv_prog_cc_g+set}" = set; then 4288 echo $ECHO_N "(cached) $ECHO_C" >&6 4289else 4290 cat >conftest.$ac_ext <<_ACEOF 4291#line $LINENO "configure" 4292/* confdefs.h. */ 4293_ACEOF 4294cat confdefs.h >>conftest.$ac_ext 4295cat >>conftest.$ac_ext <<_ACEOF 4296/* end confdefs.h. */ 4297 4298int 4299main () 4300{ 4301 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306rm -f conftest.$ac_objext 4307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4308 (eval $ac_compile) 2>&5 4309 ac_status=$? 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); } && 4312 { ac_try='test -s conftest.$ac_objext' 4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4314 (eval $ac_try) 2>&5 4315 ac_status=$? 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); }; }; then 4318 ac_cv_prog_cc_g=yes 4319else 4320 echo "$as_me: failed program was:" >&5 4321sed 's/^/| /' conftest.$ac_ext >&5 4322 4323ac_cv_prog_cc_g=no 4324fi 4325rm -f conftest.$ac_objext conftest.$ac_ext 4326fi 4327echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4328echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4329if test "$ac_test_CFLAGS" = set; then 4330 CFLAGS=$ac_save_CFLAGS 4331elif test $ac_cv_prog_cc_g = yes; then 4332 if test "$GCC" = yes; then 4333 CFLAGS="-g -O2" 4334 else 4335 CFLAGS="-g" 4336 fi 4337else 4338 if test "$GCC" = yes; then 4339 CFLAGS="-O2" 4340 else 4341 CFLAGS= 4342 fi 4343fi 4344echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 4345echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4346if test "${ac_cv_prog_cc_stdc+set}" = set; then 4347 echo $ECHO_N "(cached) $ECHO_C" >&6 4348else 4349 ac_cv_prog_cc_stdc=no 4350ac_save_CC=$CC 4351cat >conftest.$ac_ext <<_ACEOF 4352#line $LINENO "configure" 4353/* confdefs.h. */ 4354_ACEOF 4355cat confdefs.h >>conftest.$ac_ext 4356cat >>conftest.$ac_ext <<_ACEOF 4357/* end confdefs.h. */ 4358#include <stdarg.h> 4359#include <stdio.h> 4360#include <sys/types.h> 4361#include <sys/stat.h> 4362/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4363struct buf { int x; }; 4364FILE * (*rcsopen) (struct buf *, struct stat *, int); 4365static char *e (p, i) 4366 char **p; 4367 int i; 4368{ 4369 return p[i]; 4370} 4371static char *f (char * (*g) (char **, int), char **p, ...) 4372{ 4373 char *s; 4374 va_list v; 4375 va_start (v,p); 4376 s = g (p, va_arg (v,int)); 4377 va_end (v); 4378 return s; 4379} 4380int test (int i, double x); 4381struct s1 {int (*f) (int a);}; 4382struct s2 {int (*f) (double a);}; 4383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4384int argc; 4385char **argv; 4386int 4387main () 4388{ 4389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394# Don't try gcc -ansi; that turns off useful extensions and 4395# breaks some systems' header files. 4396# AIX -qlanglvl=ansi 4397# Ultrix and OSF/1 -std1 4398# HP-UX 10.20 and later -Ae 4399# HP-UX older versions -Aa -D_HPUX_SOURCE 4400# SVR4 -Xc -D__EXTENSIONS__ 4401for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4402do 4403 CC="$ac_save_CC $ac_arg" 4404 rm -f conftest.$ac_objext 4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406 (eval $ac_compile) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); } && 4410 { ac_try='test -s conftest.$ac_objext' 4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4412 (eval $ac_try) 2>&5 4413 ac_status=$? 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); }; }; then 4416 ac_cv_prog_cc_stdc=$ac_arg 4417break 4418else 4419 echo "$as_me: failed program was:" >&5 4420sed 's/^/| /' conftest.$ac_ext >&5 4421 4422fi 4423rm -f conftest.$ac_objext 4424done 4425rm -f conftest.$ac_ext conftest.$ac_objext 4426CC=$ac_save_CC 4427 4428fi 4429 4430case "x$ac_cv_prog_cc_stdc" in 4431 x|xno) 4432 echo "$as_me:$LINENO: result: none needed" >&5 4433echo "${ECHO_T}none needed" >&6 ;; 4434 *) 4435 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 4436echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4437 CC="$CC $ac_cv_prog_cc_stdc" ;; 4438esac 4439 4440# Some people use a C++ compiler to compile C. Since we use `exit', 4441# in C++ we need to declare it. In case someone uses the same compiler 4442# for both compiling C and C++ we need to have the C++ compiler decide 4443# the declaration of exit, since it's the most demanding environment. 4444cat >conftest.$ac_ext <<_ACEOF 4445#ifndef __cplusplus 4446 choke me 4447#endif 4448_ACEOF 4449rm -f conftest.$ac_objext 4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4451 (eval $ac_compile) 2>&5 4452 ac_status=$? 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4454 (exit $ac_status); } && 4455 { ac_try='test -s conftest.$ac_objext' 4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4457 (eval $ac_try) 2>&5 4458 ac_status=$? 4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); }; }; then 4461 for ac_declaration in \ 4462 ''\ 4463 '#include <stdlib.h>' \ 4464 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4465 'extern "C" void std::exit (int); using std::exit;' \ 4466 'extern "C" void exit (int) throw ();' \ 4467 'extern "C" void exit (int);' \ 4468 'void exit (int);' 4469do 4470 cat >conftest.$ac_ext <<_ACEOF 4471#line $LINENO "configure" 4472/* confdefs.h. */ 4473_ACEOF 4474cat confdefs.h >>conftest.$ac_ext 4475cat >>conftest.$ac_ext <<_ACEOF 4476/* end confdefs.h. */ 4477#include <stdlib.h> 4478$ac_declaration 4479int 4480main () 4481{ 4482exit (42); 4483 ; 4484 return 0; 4485} 4486_ACEOF 4487rm -f conftest.$ac_objext 4488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4489 (eval $ac_compile) 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); } && 4493 { ac_try='test -s conftest.$ac_objext' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; }; then 4499 : 4500else 4501 echo "$as_me: failed program was:" >&5 4502sed 's/^/| /' conftest.$ac_ext >&5 4503 4504continue 4505fi 4506rm -f conftest.$ac_objext conftest.$ac_ext 4507 cat >conftest.$ac_ext <<_ACEOF 4508#line $LINENO "configure" 4509/* confdefs.h. */ 4510_ACEOF 4511cat confdefs.h >>conftest.$ac_ext 4512cat >>conftest.$ac_ext <<_ACEOF 4513/* end confdefs.h. */ 4514$ac_declaration 4515int 4516main () 4517{ 4518exit (42); 4519 ; 4520 return 0; 4521} 4522_ACEOF 4523rm -f conftest.$ac_objext 4524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4525 (eval $ac_compile) 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); } && 4529 { ac_try='test -s conftest.$ac_objext' 4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4531 (eval $ac_try) 2>&5 4532 ac_status=$? 4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4534 (exit $ac_status); }; }; then 4535 break 4536else 4537 echo "$as_me: failed program was:" >&5 4538sed 's/^/| /' conftest.$ac_ext >&5 4539 4540fi 4541rm -f conftest.$ac_objext conftest.$ac_ext 4542done 4543rm -f conftest* 4544if test -n "$ac_declaration"; then 4545 echo '#ifdef __cplusplus' >>confdefs.h 4546 echo $ac_declaration >>confdefs.h 4547 echo '#endif' >>confdefs.h 4548fi 4549 4550else 4551 echo "$as_me: failed program was:" >&5 4552sed 's/^/| /' conftest.$ac_ext >&5 4553 4554fi 4555rm -f conftest.$ac_objext conftest.$ac_ext 4556ac_ext=c 4557ac_cpp='$CPP $CPPFLAGS' 4558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4560ac_compiler_gnu=$ac_cv_c_compiler_gnu 4561 4562depcc="$CC" am_compiler_list= 4563 4564echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4565echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4566if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4570 # We make a subdir and do the tests there. Otherwise we can end up 4571 # making bogus files that we don't know about and never remove. For 4572 # instance it was reported that on HP-UX the gcc test will end up 4573 # making a dummy file named `D' -- because `-MD' means `put the output 4574 # in D'. 4575 mkdir conftest.dir 4576 # Copy depcomp to subdir because otherwise we won't find it if we're 4577 # using a relative directory. 4578 cp "$am_depcomp" conftest.dir 4579 cd conftest.dir 4580 4581 am_cv_CC_dependencies_compiler_type=none 4582 if test "$am_compiler_list" = ""; then 4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4584 fi 4585 for depmode in $am_compiler_list; do 4586 # We need to recreate these files for each test, as the compiler may 4587 # overwrite some of them when testing with obscure command lines. 4588 # This happens at least with the AIX C compiler. 4589 echo '#include "conftest.h"' > conftest.c 4590 echo 'int i;' > conftest.h 4591 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 4592 4593 case $depmode in 4594 nosideeffect) 4595 # after this tag, mechanisms are not by side-effect, so they'll 4596 # only be used when explicitly requested 4597 if test "x$enable_dependency_tracking" = xyes; then 4598 continue 4599 else 4600 break 4601 fi 4602 ;; 4603 none) break ;; 4604 esac 4605 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4606 # mode. It turns out that the SunPro C++ compiler does not properly 4607 # handle `-M -o', and we need to detect this. 4608 if depmode=$depmode \ 4609 source=conftest.c object=conftest.o \ 4610 depfile=conftest.Po tmpdepfile=conftest.TPo \ 4611 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 4612 grep conftest.h conftest.Po > /dev/null 2>&1 && 4613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4614 am_cv_CC_dependencies_compiler_type=$depmode 4615 break 4616 fi 4617 done 4618 4619 cd .. 4620 rm -rf conftest.dir 4621else 4622 am_cv_CC_dependencies_compiler_type=none 4623fi 4624 4625fi 4626echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4627echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4628CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4629 4630 4631 CFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict" 4632 CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict" 4633 LIBS="-lm -lnsl" 4634else 4635 echo "$as_me:$LINENO: result: no" >&5 4636echo "${ECHO_T}no" >&6 4637fi 4638 4639WANT_ICC_MPICH_XEON_FLAGS=0 4640echo "$as_me:$LINENO: checking preset icc for generic with MPICH flags " >&5 4641echo $ECHO_N "checking preset icc for generic with MPICH flags ... $ECHO_C" >&6 4642if test "$with_icc_mpich_xeon" = "yes"; then 4643 unset CC 4644 unset CXX 4645 WANT_ICC_MPICH_XEON_FLAGS=1 4646 echo "$as_me:$LINENO: result: yes" >&5 4647echo "${ECHO_T}yes" >&6 4648 CC="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-intel80/bin/mpicc" 4649 CFLAGS="-Wall -wd810,383,981,279,444 -O3 -ip -static -DNDEBUG -DHAVE_MPI" 4650 CXX="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-intel80/bin/mpicxx" 4651 CXXFLAGS="-Wall -wd810,383,981,279,444 -O3 -ip -static -DNDEBUG -DHAVE_MPI" 4652 LIBS="-lm -lnsl" 4653else 4654 echo "$as_me:$LINENO: result: no" >&5 4655echo "${ECHO_T}no" >&6 4656fi 4657 4658 4659WANT_ICC_MPICH_FLAGS=0 4660echo "$as_me:$LINENO: checking preset icc for generic with MPICH and optimization flags " >&5 4661echo $ECHO_N "checking preset icc for generic with MPICH and optimization flags ... $ECHO_C" >&6 4662if (test "$with_icc_mpich" = "yes") then 4663 unset CC 4664 unset CXX 4665 WANT_ICC_MPICH_FLAGS=1 4666 echo "$as_me:$LINENO: result: yes" >&5 4667echo "${ECHO_T}yes" >&6 4668 ac_ext=cc 4669ac_cpp='$CXXCPP $CPPFLAGS' 4670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4673 4674 ac_ext=cc 4675ac_cpp='$CXXCPP $CPPFLAGS' 4676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4679if test -n "$ac_tool_prefix"; then 4680 for ac_prog in $CCC mpiCC mpic++ mpicxx 4681 do 4682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4683set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4684echo "$as_me:$LINENO: checking for $ac_word" >&5 4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4686if test "${ac_cv_prog_CXX+set}" = set; then 4687 echo $ECHO_N "(cached) $ECHO_C" >&6 4688else 4689 if test -n "$CXX"; then 4690 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704done 4705 4706fi 4707fi 4708CXX=$ac_cv_prog_CXX 4709if test -n "$CXX"; then 4710 echo "$as_me:$LINENO: result: $CXX" >&5 4711echo "${ECHO_T}$CXX" >&6 4712else 4713 echo "$as_me:$LINENO: result: no" >&5 4714echo "${ECHO_T}no" >&6 4715fi 4716 4717 test -n "$CXX" && break 4718 done 4719fi 4720if test -z "$CXX"; then 4721 ac_ct_CXX=$CXX 4722 for ac_prog in $CCC mpiCC mpic++ mpicxx 4723do 4724 # Extract the first word of "$ac_prog", so it can be a program name with args. 4725set dummy $ac_prog; ac_word=$2 4726echo "$as_me:$LINENO: checking for $ac_word" >&5 4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4728if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4729 echo $ECHO_N "(cached) $ECHO_C" >&6 4730else 4731 if test -n "$ac_ct_CXX"; then 4732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4733else 4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4735for as_dir in $PATH 4736do 4737 IFS=$as_save_IFS 4738 test -z "$as_dir" && as_dir=. 4739 for ac_exec_ext in '' $ac_executable_extensions; do 4740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4741 ac_cv_prog_ac_ct_CXX="$ac_prog" 4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4743 break 2 4744 fi 4745done 4746done 4747 4748fi 4749fi 4750ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4751if test -n "$ac_ct_CXX"; then 4752 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4753echo "${ECHO_T}$ac_ct_CXX" >&6 4754else 4755 echo "$as_me:$LINENO: result: no" >&5 4756echo "${ECHO_T}no" >&6 4757fi 4758 4759 test -n "$ac_ct_CXX" && break 4760done 4761test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4762 4763 CXX=$ac_ct_CXX 4764fi 4765 4766 4767# Provide some information about the compiler. 4768echo "$as_me:$LINENO:" \ 4769 "checking for C++ compiler version" >&5 4770ac_compiler=`set X $ac_compile; echo $2` 4771{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4772 (eval $ac_compiler --version </dev/null >&5) 2>&5 4773 ac_status=$? 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); } 4776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4777 (eval $ac_compiler -v </dev/null >&5) 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } 4781{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4782 (eval $ac_compiler -V </dev/null >&5) 2>&5 4783 ac_status=$? 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); } 4786 4787echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4788echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4789if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4790 echo $ECHO_N "(cached) $ECHO_C" >&6 4791else 4792 cat >conftest.$ac_ext <<_ACEOF 4793#line $LINENO "configure" 4794/* confdefs.h. */ 4795_ACEOF 4796cat confdefs.h >>conftest.$ac_ext 4797cat >>conftest.$ac_ext <<_ACEOF 4798/* end confdefs.h. */ 4799 4800int 4801main () 4802{ 4803#ifndef __GNUC__ 4804 choke me 4805#endif 4806 4807 ; 4808 return 0; 4809} 4810_ACEOF 4811rm -f conftest.$ac_objext 4812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4813 (eval $ac_compile) 2>&5 4814 ac_status=$? 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } && 4817 { ac_try='test -s conftest.$ac_objext' 4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4819 (eval $ac_try) 2>&5 4820 ac_status=$? 4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4822 (exit $ac_status); }; }; then 4823 ac_compiler_gnu=yes 4824else 4825 echo "$as_me: failed program was:" >&5 4826sed 's/^/| /' conftest.$ac_ext >&5 4827 4828ac_compiler_gnu=no 4829fi 4830rm -f conftest.$ac_objext conftest.$ac_ext 4831ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4832 4833fi 4834echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4835echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4836GXX=`test $ac_compiler_gnu = yes && echo yes` 4837ac_test_CXXFLAGS=${CXXFLAGS+set} 4838ac_save_CXXFLAGS=$CXXFLAGS 4839CXXFLAGS="-g" 4840echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4841echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4842if test "${ac_cv_prog_cxx_g+set}" = set; then 4843 echo $ECHO_N "(cached) $ECHO_C" >&6 4844else 4845 cat >conftest.$ac_ext <<_ACEOF 4846#line $LINENO "configure" 4847/* confdefs.h. */ 4848_ACEOF 4849cat confdefs.h >>conftest.$ac_ext 4850cat >>conftest.$ac_ext <<_ACEOF 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861rm -f conftest.$ac_objext 4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4863 (eval $ac_compile) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); } && 4867 { ac_try='test -s conftest.$ac_objext' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; }; then 4873 ac_cv_prog_cxx_g=yes 4874else 4875 echo "$as_me: failed program was:" >&5 4876sed 's/^/| /' conftest.$ac_ext >&5 4877 4878ac_cv_prog_cxx_g=no 4879fi 4880rm -f conftest.$ac_objext conftest.$ac_ext 4881fi 4882echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4883echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4884if test "$ac_test_CXXFLAGS" = set; then 4885 CXXFLAGS=$ac_save_CXXFLAGS 4886elif test $ac_cv_prog_cxx_g = yes; then 4887 if test "$GXX" = yes; then 4888 CXXFLAGS="-g -O2" 4889 else 4890 CXXFLAGS="-g" 4891 fi 4892else 4893 if test "$GXX" = yes; then 4894 CXXFLAGS="-O2" 4895 else 4896 CXXFLAGS= 4897 fi 4898fi 4899for ac_declaration in \ 4900 ''\ 4901 '#include <stdlib.h>' \ 4902 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4903 'extern "C" void std::exit (int); using std::exit;' \ 4904 'extern "C" void exit (int) throw ();' \ 4905 'extern "C" void exit (int);' \ 4906 'void exit (int);' 4907do 4908 cat >conftest.$ac_ext <<_ACEOF 4909#line $LINENO "configure" 4910/* confdefs.h. */ 4911_ACEOF 4912cat confdefs.h >>conftest.$ac_ext 4913cat >>conftest.$ac_ext <<_ACEOF 4914/* end confdefs.h. */ 4915#include <stdlib.h> 4916$ac_declaration 4917int 4918main () 4919{ 4920exit (42); 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925rm -f conftest.$ac_objext 4926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4927 (eval $ac_compile) 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); } && 4931 { ac_try='test -s conftest.$ac_objext' 4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 (eval $ac_try) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; }; then 4937 : 4938else 4939 echo "$as_me: failed program was:" >&5 4940sed 's/^/| /' conftest.$ac_ext >&5 4941 4942continue 4943fi 4944rm -f conftest.$ac_objext conftest.$ac_ext 4945 cat >conftest.$ac_ext <<_ACEOF 4946#line $LINENO "configure" 4947/* confdefs.h. */ 4948_ACEOF 4949cat confdefs.h >>conftest.$ac_ext 4950cat >>conftest.$ac_ext <<_ACEOF 4951/* end confdefs.h. */ 4952$ac_declaration 4953int 4954main () 4955{ 4956exit (42); 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961rm -f conftest.$ac_objext 4962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4963 (eval $ac_compile) 2>&5 4964 ac_status=$? 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4966 (exit $ac_status); } && 4967 { ac_try='test -s conftest.$ac_objext' 4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4969 (eval $ac_try) 2>&5 4970 ac_status=$? 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); }; }; then 4973 break 4974else 4975 echo "$as_me: failed program was:" >&5 4976sed 's/^/| /' conftest.$ac_ext >&5 4977 4978fi 4979rm -f conftest.$ac_objext conftest.$ac_ext 4980done 4981rm -f conftest* 4982if test -n "$ac_declaration"; then 4983 echo '#ifdef __cplusplus' >>confdefs.h 4984 echo $ac_declaration >>confdefs.h 4985 echo '#endif' >>confdefs.h 4986fi 4987 4988ac_ext=cc 4989ac_cpp='$CXXCPP $CPPFLAGS' 4990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4993 4994depcc="$CXX" am_compiler_list= 4995 4996echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4997echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4998if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4999 echo $ECHO_N "(cached) $ECHO_C" >&6 5000else 5001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5002 # We make a subdir and do the tests there. Otherwise we can end up 5003 # making bogus files that we don't know about and never remove. For 5004 # instance it was reported that on HP-UX the gcc test will end up 5005 # making a dummy file named `D' -- because `-MD' means `put the output 5006 # in D'. 5007 mkdir conftest.dir 5008 # Copy depcomp to subdir because otherwise we won't find it if we're 5009 # using a relative directory. 5010 cp "$am_depcomp" conftest.dir 5011 cd conftest.dir 5012 5013 am_cv_CXX_dependencies_compiler_type=none 5014 if test "$am_compiler_list" = ""; then 5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5016 fi 5017 for depmode in $am_compiler_list; do 5018 # We need to recreate these files for each test, as the compiler may 5019 # overwrite some of them when testing with obscure command lines. 5020 # This happens at least with the AIX C compiler. 5021 echo '#include "conftest.h"' > conftest.c 5022 echo 'int i;' > conftest.h 5023 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 5024 5025 case $depmode in 5026 nosideeffect) 5027 # after this tag, mechanisms are not by side-effect, so they'll 5028 # only be used when explicitly requested 5029 if test "x$enable_dependency_tracking" = xyes; then 5030 continue 5031 else 5032 break 5033 fi 5034 ;; 5035 none) break ;; 5036 esac 5037 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5038 # mode. It turns out that the SunPro C++ compiler does not properly 5039 # handle `-M -o', and we need to detect this. 5040 if depmode=$depmode \ 5041 source=conftest.c object=conftest.o \ 5042 depfile=conftest.Po tmpdepfile=conftest.TPo \ 5043 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 5044 grep conftest.h conftest.Po > /dev/null 2>&1 && 5045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5046 am_cv_CXX_dependencies_compiler_type=$depmode 5047 break 5048 fi 5049 done 5050 5051 cd .. 5052 rm -rf conftest.dir 5053else 5054 am_cv_CXX_dependencies_compiler_type=none 5055fi 5056 5057fi 5058echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5059echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5060CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5061 5062 5063 ac_ext=c 5064ac_cpp='$CPP $CPPFLAGS' 5065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5067ac_compiler_gnu=$ac_cv_c_compiler_gnu 5068 5069 ac_ext=c 5070ac_cpp='$CPP $CPPFLAGS' 5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_c_compiler_gnu 5074if test -n "$ac_tool_prefix"; then 5075 for ac_prog in mpicc 5076 do 5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5078set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5079echo "$as_me:$LINENO: checking for $ac_word" >&5 5080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5081if test "${ac_cv_prog_CC+set}" = set; then 5082 echo $ECHO_N "(cached) $ECHO_C" >&6 5083else 5084 if test -n "$CC"; then 5085 ac_cv_prog_CC="$CC" # Let the user override the test. 5086else 5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088for as_dir in $PATH 5089do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_exec_ext in '' $ac_executable_extensions; do 5093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5096 break 2 5097 fi 5098done 5099done 5100 5101fi 5102fi 5103CC=$ac_cv_prog_CC 5104if test -n "$CC"; then 5105 echo "$as_me:$LINENO: result: $CC" >&5 5106echo "${ECHO_T}$CC" >&6 5107else 5108 echo "$as_me:$LINENO: result: no" >&5 5109echo "${ECHO_T}no" >&6 5110fi 5111 5112 test -n "$CC" && break 5113 done 5114fi 5115if test -z "$CC"; then 5116 ac_ct_CC=$CC 5117 for ac_prog in mpicc 5118do 5119 # Extract the first word of "$ac_prog", so it can be a program name with args. 5120set dummy $ac_prog; ac_word=$2 5121echo "$as_me:$LINENO: checking for $ac_word" >&5 5122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5123if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5124 echo $ECHO_N "(cached) $ECHO_C" >&6 5125else 5126 if test -n "$ac_ct_CC"; then 5127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5128else 5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5130for as_dir in $PATH 5131do 5132 IFS=$as_save_IFS 5133 test -z "$as_dir" && as_dir=. 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5136 ac_cv_prog_ac_ct_CC="$ac_prog" 5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5138 break 2 5139 fi 5140done 5141done 5142 5143fi 5144fi 5145ac_ct_CC=$ac_cv_prog_ac_ct_CC 5146if test -n "$ac_ct_CC"; then 5147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5148echo "${ECHO_T}$ac_ct_CC" >&6 5149else 5150 echo "$as_me:$LINENO: result: no" >&5 5151echo "${ECHO_T}no" >&6 5152fi 5153 5154 test -n "$ac_ct_CC" && break 5155done 5156 5157 CC=$ac_ct_CC 5158fi 5159 5160 5161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5162See \`config.log' for more details." >&5 5163echo "$as_me: error: no acceptable C compiler found in \$PATH 5164See \`config.log' for more details." >&2;} 5165 { (exit 1); exit 1; }; } 5166 5167# Provide some information about the compiler. 5168echo "$as_me:$LINENO:" \ 5169 "checking for C compiler version" >&5 5170ac_compiler=`set X $ac_compile; echo $2` 5171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5172 (eval $ac_compiler --version </dev/null >&5) 2>&5 5173 ac_status=$? 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); } 5176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5177 (eval $ac_compiler -v </dev/null >&5) 2>&5 5178 ac_status=$? 5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5180 (exit $ac_status); } 5181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5182 (eval $ac_compiler -V </dev/null >&5) 2>&5 5183 ac_status=$? 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); } 5186 5187echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5188echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 5189if test "${ac_cv_c_compiler_gnu+set}" = set; then 5190 echo $ECHO_N "(cached) $ECHO_C" >&6 5191else 5192 cat >conftest.$ac_ext <<_ACEOF 5193#line $LINENO "configure" 5194/* confdefs.h. */ 5195_ACEOF 5196cat confdefs.h >>conftest.$ac_ext 5197cat >>conftest.$ac_ext <<_ACEOF 5198/* end confdefs.h. */ 5199 5200int 5201main () 5202{ 5203#ifndef __GNUC__ 5204 choke me 5205#endif 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211rm -f conftest.$ac_objext 5212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5213 (eval $ac_compile) 2>&5 5214 ac_status=$? 5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5216 (exit $ac_status); } && 5217 { ac_try='test -s conftest.$ac_objext' 5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5219 (eval $ac_try) 2>&5 5220 ac_status=$? 5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5222 (exit $ac_status); }; }; then 5223 ac_compiler_gnu=yes 5224else 5225 echo "$as_me: failed program was:" >&5 5226sed 's/^/| /' conftest.$ac_ext >&5 5227 5228ac_compiler_gnu=no 5229fi 5230rm -f conftest.$ac_objext conftest.$ac_ext 5231ac_cv_c_compiler_gnu=$ac_compiler_gnu 5232 5233fi 5234echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5235echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 5236GCC=`test $ac_compiler_gnu = yes && echo yes` 5237ac_test_CFLAGS=${CFLAGS+set} 5238ac_save_CFLAGS=$CFLAGS 5239CFLAGS="-g" 5240echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5241echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 5242if test "${ac_cv_prog_cc_g+set}" = set; then 5243 echo $ECHO_N "(cached) $ECHO_C" >&6 5244else 5245 cat >conftest.$ac_ext <<_ACEOF 5246#line $LINENO "configure" 5247/* confdefs.h. */ 5248_ACEOF 5249cat confdefs.h >>conftest.$ac_ext 5250cat >>conftest.$ac_ext <<_ACEOF 5251/* end confdefs.h. */ 5252 5253int 5254main () 5255{ 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261rm -f conftest.$ac_objext 5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5263 (eval $ac_compile) 2>&5 5264 ac_status=$? 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } && 5267 { ac_try='test -s conftest.$ac_objext' 5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5269 (eval $ac_try) 2>&5 5270 ac_status=$? 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 (exit $ac_status); }; }; then 5273 ac_cv_prog_cc_g=yes 5274else 5275 echo "$as_me: failed program was:" >&5 5276sed 's/^/| /' conftest.$ac_ext >&5 5277 5278ac_cv_prog_cc_g=no 5279fi 5280rm -f conftest.$ac_objext conftest.$ac_ext 5281fi 5282echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5283echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 5284if test "$ac_test_CFLAGS" = set; then 5285 CFLAGS=$ac_save_CFLAGS 5286elif test $ac_cv_prog_cc_g = yes; then 5287 if test "$GCC" = yes; then 5288 CFLAGS="-g -O2" 5289 else 5290 CFLAGS="-g" 5291 fi 5292else 5293 if test "$GCC" = yes; then 5294 CFLAGS="-O2" 5295 else 5296 CFLAGS= 5297 fi 5298fi 5299echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 5300echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 5301if test "${ac_cv_prog_cc_stdc+set}" = set; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303else 5304 ac_cv_prog_cc_stdc=no 5305ac_save_CC=$CC 5306cat >conftest.$ac_ext <<_ACEOF 5307#line $LINENO "configure" 5308/* confdefs.h. */ 5309_ACEOF 5310cat confdefs.h >>conftest.$ac_ext 5311cat >>conftest.$ac_ext <<_ACEOF 5312/* end confdefs.h. */ 5313#include <stdarg.h> 5314#include <stdio.h> 5315#include <sys/types.h> 5316#include <sys/stat.h> 5317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5318struct buf { int x; }; 5319FILE * (*rcsopen) (struct buf *, struct stat *, int); 5320static char *e (p, i) 5321 char **p; 5322 int i; 5323{ 5324 return p[i]; 5325} 5326static char *f (char * (*g) (char **, int), char **p, ...) 5327{ 5328 char *s; 5329 va_list v; 5330 va_start (v,p); 5331 s = g (p, va_arg (v,int)); 5332 va_end (v); 5333 return s; 5334} 5335int test (int i, double x); 5336struct s1 {int (*f) (int a);}; 5337struct s2 {int (*f) (double a);}; 5338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5339int argc; 5340char **argv; 5341int 5342main () 5343{ 5344return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5345 ; 5346 return 0; 5347} 5348_ACEOF 5349# Don't try gcc -ansi; that turns off useful extensions and 5350# breaks some systems' header files. 5351# AIX -qlanglvl=ansi 5352# Ultrix and OSF/1 -std1 5353# HP-UX 10.20 and later -Ae 5354# HP-UX older versions -Aa -D_HPUX_SOURCE 5355# SVR4 -Xc -D__EXTENSIONS__ 5356for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5357do 5358 CC="$ac_save_CC $ac_arg" 5359 rm -f conftest.$ac_objext 5360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5361 (eval $ac_compile) 2>&5 5362 ac_status=$? 5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); } && 5365 { ac_try='test -s conftest.$ac_objext' 5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5367 (eval $ac_try) 2>&5 5368 ac_status=$? 5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5370 (exit $ac_status); }; }; then 5371 ac_cv_prog_cc_stdc=$ac_arg 5372break 5373else 5374 echo "$as_me: failed program was:" >&5 5375sed 's/^/| /' conftest.$ac_ext >&5 5376 5377fi 5378rm -f conftest.$ac_objext 5379done 5380rm -f conftest.$ac_ext conftest.$ac_objext 5381CC=$ac_save_CC 5382 5383fi 5384 5385case "x$ac_cv_prog_cc_stdc" in 5386 x|xno) 5387 echo "$as_me:$LINENO: result: none needed" >&5 5388echo "${ECHO_T}none needed" >&6 ;; 5389 *) 5390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 5391echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 5392 CC="$CC $ac_cv_prog_cc_stdc" ;; 5393esac 5394 5395# Some people use a C++ compiler to compile C. Since we use `exit', 5396# in C++ we need to declare it. In case someone uses the same compiler 5397# for both compiling C and C++ we need to have the C++ compiler decide 5398# the declaration of exit, since it's the most demanding environment. 5399cat >conftest.$ac_ext <<_ACEOF 5400#ifndef __cplusplus 5401 choke me 5402#endif 5403_ACEOF 5404rm -f conftest.$ac_objext 5405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5406 (eval $ac_compile) 2>&5 5407 ac_status=$? 5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5409 (exit $ac_status); } && 5410 { ac_try='test -s conftest.$ac_objext' 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5412 (eval $ac_try) 2>&5 5413 ac_status=$? 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); }; }; then 5416 for ac_declaration in \ 5417 ''\ 5418 '#include <stdlib.h>' \ 5419 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5420 'extern "C" void std::exit (int); using std::exit;' \ 5421 'extern "C" void exit (int) throw ();' \ 5422 'extern "C" void exit (int);' \ 5423 'void exit (int);' 5424do 5425 cat >conftest.$ac_ext <<_ACEOF 5426#line $LINENO "configure" 5427/* confdefs.h. */ 5428_ACEOF 5429cat confdefs.h >>conftest.$ac_ext 5430cat >>conftest.$ac_ext <<_ACEOF 5431/* end confdefs.h. */ 5432#include <stdlib.h> 5433$ac_declaration 5434int 5435main () 5436{ 5437exit (42); 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442rm -f conftest.$ac_objext 5443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5444 (eval $ac_compile) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && 5448 { ac_try='test -s conftest.$ac_objext' 5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5450 (eval $ac_try) 2>&5 5451 ac_status=$? 5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); }; }; then 5454 : 5455else 5456 echo "$as_me: failed program was:" >&5 5457sed 's/^/| /' conftest.$ac_ext >&5 5458 5459continue 5460fi 5461rm -f conftest.$ac_objext conftest.$ac_ext 5462 cat >conftest.$ac_ext <<_ACEOF 5463#line $LINENO "configure" 5464/* confdefs.h. */ 5465_ACEOF 5466cat confdefs.h >>conftest.$ac_ext 5467cat >>conftest.$ac_ext <<_ACEOF 5468/* end confdefs.h. */ 5469$ac_declaration 5470int 5471main () 5472{ 5473exit (42); 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478rm -f conftest.$ac_objext 5479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5480 (eval $ac_compile) 2>&5 5481 ac_status=$? 5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5483 (exit $ac_status); } && 5484 { ac_try='test -s conftest.$ac_objext' 5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5486 (eval $ac_try) 2>&5 5487 ac_status=$? 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); }; }; then 5490 break 5491else 5492 echo "$as_me: failed program was:" >&5 5493sed 's/^/| /' conftest.$ac_ext >&5 5494 5495fi 5496rm -f conftest.$ac_objext conftest.$ac_ext 5497done 5498rm -f conftest* 5499if test -n "$ac_declaration"; then 5500 echo '#ifdef __cplusplus' >>confdefs.h 5501 echo $ac_declaration >>confdefs.h 5502 echo '#endif' >>confdefs.h 5503fi 5504 5505else 5506 echo "$as_me: failed program was:" >&5 5507sed 's/^/| /' conftest.$ac_ext >&5 5508 5509fi 5510rm -f conftest.$ac_objext conftest.$ac_ext 5511ac_ext=c 5512ac_cpp='$CPP $CPPFLAGS' 5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5515ac_compiler_gnu=$ac_cv_c_compiler_gnu 5516 5517depcc="$CC" am_compiler_list= 5518 5519echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5520echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5521if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5522 echo $ECHO_N "(cached) $ECHO_C" >&6 5523else 5524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5525 # We make a subdir and do the tests there. Otherwise we can end up 5526 # making bogus files that we don't know about and never remove. For 5527 # instance it was reported that on HP-UX the gcc test will end up 5528 # making a dummy file named `D' -- because `-MD' means `put the output 5529 # in D'. 5530 mkdir conftest.dir 5531 # Copy depcomp to subdir because otherwise we won't find it if we're 5532 # using a relative directory. 5533 cp "$am_depcomp" conftest.dir 5534 cd conftest.dir 5535 5536 am_cv_CC_dependencies_compiler_type=none 5537 if test "$am_compiler_list" = ""; then 5538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5539 fi 5540 for depmode in $am_compiler_list; do 5541 # We need to recreate these files for each test, as the compiler may 5542 # overwrite some of them when testing with obscure command lines. 5543 # This happens at least with the AIX C compiler. 5544 echo '#include "conftest.h"' > conftest.c 5545 echo 'int i;' > conftest.h 5546 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 5547 5548 case $depmode in 5549 nosideeffect) 5550 # after this tag, mechanisms are not by side-effect, so they'll 5551 # only be used when explicitly requested 5552 if test "x$enable_dependency_tracking" = xyes; then 5553 continue 5554 else 5555 break 5556 fi 5557 ;; 5558 none) break ;; 5559 esac 5560 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5561 # mode. It turns out that the SunPro C++ compiler does not properly 5562 # handle `-M -o', and we need to detect this. 5563 if depmode=$depmode \ 5564 source=conftest.c object=conftest.o \ 5565 depfile=conftest.Po tmpdepfile=conftest.TPo \ 5566 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 5567 grep conftest.h conftest.Po > /dev/null 2>&1 && 5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5569 am_cv_CC_dependencies_compiler_type=$depmode 5570 break 5571 fi 5572 done 5573 5574 cd .. 5575 rm -rf conftest.dir 5576else 5577 am_cv_CC_dependencies_compiler_type=none 5578fi 5579 5580fi 5581echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5582echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5583CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5584 5585 5586 CFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG -DHAVE_MPI" 5587 CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -O3 -ip -static -DNDEBUG -DHAVE_MPI" 5588 LIBS="-lm -lnsl" 5589else 5590 echo "$as_me:$LINENO: result: no" >&5 5591echo "${ECHO_T}no" >&6 5592fi 5593 5594WANT_ICC_MPICH_DEBUG_FLAGS=0 5595echo "$as_me:$LINENO: checking preset icc for generic with MPICH and debugging flags " >&5 5596echo $ECHO_N "checking preset icc for generic with MPICH and debugging flags ... $ECHO_C" >&6 5597if test "$with_icc_mpich_debug" = "yes"; then 5598 unset CC 5599 unset CXX 5600 WANT_ICC_MPICH_DEBUG_FLAGS=1 5601 echo "$as_me:$LINENO: result: yes" >&5 5602echo "${ECHO_T}yes" >&6 5603 ac_ext=cc 5604ac_cpp='$CXXCPP $CPPFLAGS' 5605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5608 5609 ac_ext=cc 5610ac_cpp='$CXXCPP $CPPFLAGS' 5611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5614if test -n "$ac_tool_prefix"; then 5615 for ac_prog in $CCC mpiCC mpic++ mpicxx 5616 do 5617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5618set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5619echo "$as_me:$LINENO: checking for $ac_word" >&5 5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5621if test "${ac_cv_prog_CXX+set}" = set; then 5622 echo $ECHO_N "(cached) $ECHO_C" >&6 5623else 5624 if test -n "$CXX"; then 5625 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5626else 5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5628for as_dir in $PATH 5629do 5630 IFS=$as_save_IFS 5631 test -z "$as_dir" && as_dir=. 5632 for ac_exec_ext in '' $ac_executable_extensions; do 5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5636 break 2 5637 fi 5638done 5639done 5640 5641fi 5642fi 5643CXX=$ac_cv_prog_CXX 5644if test -n "$CXX"; then 5645 echo "$as_me:$LINENO: result: $CXX" >&5 5646echo "${ECHO_T}$CXX" >&6 5647else 5648 echo "$as_me:$LINENO: result: no" >&5 5649echo "${ECHO_T}no" >&6 5650fi 5651 5652 test -n "$CXX" && break 5653 done 5654fi 5655if test -z "$CXX"; then 5656 ac_ct_CXX=$CXX 5657 for ac_prog in $CCC mpiCC mpic++ mpicxx 5658do 5659 # Extract the first word of "$ac_prog", so it can be a program name with args. 5660set dummy $ac_prog; ac_word=$2 5661echo "$as_me:$LINENO: checking for $ac_word" >&5 5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5663if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5664 echo $ECHO_N "(cached) $ECHO_C" >&6 5665else 5666 if test -n "$ac_ct_CXX"; then 5667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5668else 5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5670for as_dir in $PATH 5671do 5672 IFS=$as_save_IFS 5673 test -z "$as_dir" && as_dir=. 5674 for ac_exec_ext in '' $ac_executable_extensions; do 5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5676 ac_cv_prog_ac_ct_CXX="$ac_prog" 5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5678 break 2 5679 fi 5680done 5681done 5682 5683fi 5684fi 5685ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5686if test -n "$ac_ct_CXX"; then 5687 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5688echo "${ECHO_T}$ac_ct_CXX" >&6 5689else 5690 echo "$as_me:$LINENO: result: no" >&5 5691echo "${ECHO_T}no" >&6 5692fi 5693 5694 test -n "$ac_ct_CXX" && break 5695done 5696test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5697 5698 CXX=$ac_ct_CXX 5699fi 5700 5701 5702# Provide some information about the compiler. 5703echo "$as_me:$LINENO:" \ 5704 "checking for C++ compiler version" >&5 5705ac_compiler=`set X $ac_compile; echo $2` 5706{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5707 (eval $ac_compiler --version </dev/null >&5) 2>&5 5708 ac_status=$? 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); } 5711{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5712 (eval $ac_compiler -v </dev/null >&5) 2>&5 5713 ac_status=$? 5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5715 (exit $ac_status); } 5716{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5717 (eval $ac_compiler -V </dev/null >&5) 2>&5 5718 ac_status=$? 5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 (exit $ac_status); } 5721 5722echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5723echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5724if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5725 echo $ECHO_N "(cached) $ECHO_C" >&6 5726else 5727 cat >conftest.$ac_ext <<_ACEOF 5728#line $LINENO "configure" 5729/* confdefs.h. */ 5730_ACEOF 5731cat confdefs.h >>conftest.$ac_ext 5732cat >>conftest.$ac_ext <<_ACEOF 5733/* end confdefs.h. */ 5734 5735int 5736main () 5737{ 5738#ifndef __GNUC__ 5739 choke me 5740#endif 5741 5742 ; 5743 return 0; 5744} 5745_ACEOF 5746rm -f conftest.$ac_objext 5747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5748 (eval $ac_compile) 2>&5 5749 ac_status=$? 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); } && 5752 { ac_try='test -s conftest.$ac_objext' 5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5754 (eval $ac_try) 2>&5 5755 ac_status=$? 5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5757 (exit $ac_status); }; }; then 5758 ac_compiler_gnu=yes 5759else 5760 echo "$as_me: failed program was:" >&5 5761sed 's/^/| /' conftest.$ac_ext >&5 5762 5763ac_compiler_gnu=no 5764fi 5765rm -f conftest.$ac_objext conftest.$ac_ext 5766ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5767 5768fi 5769echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5770echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5771GXX=`test $ac_compiler_gnu = yes && echo yes` 5772ac_test_CXXFLAGS=${CXXFLAGS+set} 5773ac_save_CXXFLAGS=$CXXFLAGS 5774CXXFLAGS="-g" 5775echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5776echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5777if test "${ac_cv_prog_cxx_g+set}" = set; then 5778 echo $ECHO_N "(cached) $ECHO_C" >&6 5779else 5780 cat >conftest.$ac_ext <<_ACEOF 5781#line $LINENO "configure" 5782/* confdefs.h. */ 5783_ACEOF 5784cat confdefs.h >>conftest.$ac_ext 5785cat >>conftest.$ac_ext <<_ACEOF 5786/* end confdefs.h. */ 5787 5788int 5789main () 5790{ 5791 5792 ; 5793 return 0; 5794} 5795_ACEOF 5796rm -f conftest.$ac_objext 5797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5798 (eval $ac_compile) 2>&5 5799 ac_status=$? 5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5801 (exit $ac_status); } && 5802 { ac_try='test -s conftest.$ac_objext' 5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5804 (eval $ac_try) 2>&5 5805 ac_status=$? 5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5807 (exit $ac_status); }; }; then 5808 ac_cv_prog_cxx_g=yes 5809else 5810 echo "$as_me: failed program was:" >&5 5811sed 's/^/| /' conftest.$ac_ext >&5 5812 5813ac_cv_prog_cxx_g=no 5814fi 5815rm -f conftest.$ac_objext conftest.$ac_ext 5816fi 5817echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5818echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5819if test "$ac_test_CXXFLAGS" = set; then 5820 CXXFLAGS=$ac_save_CXXFLAGS 5821elif test $ac_cv_prog_cxx_g = yes; then 5822 if test "$GXX" = yes; then 5823 CXXFLAGS="-g -O2" 5824 else 5825 CXXFLAGS="-g" 5826 fi 5827else 5828 if test "$GXX" = yes; then 5829 CXXFLAGS="-O2" 5830 else 5831 CXXFLAGS= 5832 fi 5833fi 5834for ac_declaration in \ 5835 ''\ 5836 '#include <stdlib.h>' \ 5837 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5838 'extern "C" void std::exit (int); using std::exit;' \ 5839 'extern "C" void exit (int) throw ();' \ 5840 'extern "C" void exit (int);' \ 5841 'void exit (int);' 5842do 5843 cat >conftest.$ac_ext <<_ACEOF 5844#line $LINENO "configure" 5845/* confdefs.h. */ 5846_ACEOF 5847cat confdefs.h >>conftest.$ac_ext 5848cat >>conftest.$ac_ext <<_ACEOF 5849/* end confdefs.h. */ 5850#include <stdlib.h> 5851$ac_declaration 5852int 5853main () 5854{ 5855exit (42); 5856 ; 5857 return 0; 5858} 5859_ACEOF 5860rm -f conftest.$ac_objext 5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5862 (eval $ac_compile) 2>&5 5863 ac_status=$? 5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5865 (exit $ac_status); } && 5866 { ac_try='test -s conftest.$ac_objext' 5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5868 (eval $ac_try) 2>&5 5869 ac_status=$? 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); }; }; then 5872 : 5873else 5874 echo "$as_me: failed program was:" >&5 5875sed 's/^/| /' conftest.$ac_ext >&5 5876 5877continue 5878fi 5879rm -f conftest.$ac_objext conftest.$ac_ext 5880 cat >conftest.$ac_ext <<_ACEOF 5881#line $LINENO "configure" 5882/* confdefs.h. */ 5883_ACEOF 5884cat confdefs.h >>conftest.$ac_ext 5885cat >>conftest.$ac_ext <<_ACEOF 5886/* end confdefs.h. */ 5887$ac_declaration 5888int 5889main () 5890{ 5891exit (42); 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896rm -f conftest.$ac_objext 5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5898 (eval $ac_compile) 2>&5 5899 ac_status=$? 5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5901 (exit $ac_status); } && 5902 { ac_try='test -s conftest.$ac_objext' 5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5904 (eval $ac_try) 2>&5 5905 ac_status=$? 5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5907 (exit $ac_status); }; }; then 5908 break 5909else 5910 echo "$as_me: failed program was:" >&5 5911sed 's/^/| /' conftest.$ac_ext >&5 5912 5913fi 5914rm -f conftest.$ac_objext conftest.$ac_ext 5915done 5916rm -f conftest* 5917if test -n "$ac_declaration"; then 5918 echo '#ifdef __cplusplus' >>confdefs.h 5919 echo $ac_declaration >>confdefs.h 5920 echo '#endif' >>confdefs.h 5921fi 5922 5923ac_ext=cc 5924ac_cpp='$CXXCPP $CPPFLAGS' 5925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5928 5929depcc="$CXX" am_compiler_list= 5930 5931echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5932echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5933if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5934 echo $ECHO_N "(cached) $ECHO_C" >&6 5935else 5936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5937 # We make a subdir and do the tests there. Otherwise we can end up 5938 # making bogus files that we don't know about and never remove. For 5939 # instance it was reported that on HP-UX the gcc test will end up 5940 # making a dummy file named `D' -- because `-MD' means `put the output 5941 # in D'. 5942 mkdir conftest.dir 5943 # Copy depcomp to subdir because otherwise we won't find it if we're 5944 # using a relative directory. 5945 cp "$am_depcomp" conftest.dir 5946 cd conftest.dir 5947 5948 am_cv_CXX_dependencies_compiler_type=none 5949 if test "$am_compiler_list" = ""; then 5950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5951 fi 5952 for depmode in $am_compiler_list; do 5953 # We need to recreate these files for each test, as the compiler may 5954 # overwrite some of them when testing with obscure command lines. 5955 # This happens at least with the AIX C compiler. 5956 echo '#include "conftest.h"' > conftest.c 5957 echo 'int i;' > conftest.h 5958 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 5959 5960 case $depmode in 5961 nosideeffect) 5962 # after this tag, mechanisms are not by side-effect, so they'll 5963 # only be used when explicitly requested 5964 if test "x$enable_dependency_tracking" = xyes; then 5965 continue 5966 else 5967 break 5968 fi 5969 ;; 5970 none) break ;; 5971 esac 5972 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5973 # mode. It turns out that the SunPro C++ compiler does not properly 5974 # handle `-M -o', and we need to detect this. 5975 if depmode=$depmode \ 5976 source=conftest.c object=conftest.o \ 5977 depfile=conftest.Po tmpdepfile=conftest.TPo \ 5978 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 5979 grep conftest.h conftest.Po > /dev/null 2>&1 && 5980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5981 am_cv_CXX_dependencies_compiler_type=$depmode 5982 break 5983 fi 5984 done 5985 5986 cd .. 5987 rm -rf conftest.dir 5988else 5989 am_cv_CXX_dependencies_compiler_type=none 5990fi 5991 5992fi 5993echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5994echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5995CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5996 5997 5998 ac_ext=c 5999ac_cpp='$CPP $CPPFLAGS' 6000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6002ac_compiler_gnu=$ac_cv_c_compiler_gnu 6003 6004 ac_ext=c 6005ac_cpp='$CPP $CPPFLAGS' 6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6008ac_compiler_gnu=$ac_cv_c_compiler_gnu 6009if test -n "$ac_tool_prefix"; then 6010 for ac_prog in mpicc 6011 do 6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6013set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6014echo "$as_me:$LINENO: checking for $ac_word" >&5 6015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6016if test "${ac_cv_prog_CC+set}" = set; then 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 6018else 6019 if test -n "$CC"; then 6020 ac_cv_prog_CC="$CC" # Let the user override the test. 6021else 6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6023for as_dir in $PATH 6024do 6025 IFS=$as_save_IFS 6026 test -z "$as_dir" && as_dir=. 6027 for ac_exec_ext in '' $ac_executable_extensions; do 6028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6031 break 2 6032 fi 6033done 6034done 6035 6036fi 6037fi 6038CC=$ac_cv_prog_CC 6039if test -n "$CC"; then 6040 echo "$as_me:$LINENO: result: $CC" >&5 6041echo "${ECHO_T}$CC" >&6 6042else 6043 echo "$as_me:$LINENO: result: no" >&5 6044echo "${ECHO_T}no" >&6 6045fi 6046 6047 test -n "$CC" && break 6048 done 6049fi 6050if test -z "$CC"; then 6051 ac_ct_CC=$CC 6052 for ac_prog in mpicc 6053do 6054 # Extract the first word of "$ac_prog", so it can be a program name with args. 6055set dummy $ac_prog; ac_word=$2 6056echo "$as_me:$LINENO: checking for $ac_word" >&5 6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6058if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 6059 echo $ECHO_N "(cached) $ECHO_C" >&6 6060else 6061 if test -n "$ac_ct_CC"; then 6062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_ac_ct_CC="$ac_prog" 6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076done 6077 6078fi 6079fi 6080ac_ct_CC=$ac_cv_prog_ac_ct_CC 6081if test -n "$ac_ct_CC"; then 6082 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 6083echo "${ECHO_T}$ac_ct_CC" >&6 6084else 6085 echo "$as_me:$LINENO: result: no" >&5 6086echo "${ECHO_T}no" >&6 6087fi 6088 6089 test -n "$ac_ct_CC" && break 6090done 6091 6092 CC=$ac_ct_CC 6093fi 6094 6095 6096test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 6097See \`config.log' for more details." >&5 6098echo "$as_me: error: no acceptable C compiler found in \$PATH 6099See \`config.log' for more details." >&2;} 6100 { (exit 1); exit 1; }; } 6101 6102# Provide some information about the compiler. 6103echo "$as_me:$LINENO:" \ 6104 "checking for C compiler version" >&5 6105ac_compiler=`set X $ac_compile; echo $2` 6106{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6107 (eval $ac_compiler --version </dev/null >&5) 2>&5 6108 ac_status=$? 6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110 (exit $ac_status); } 6111{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6112 (eval $ac_compiler -v </dev/null >&5) 2>&5 6113 ac_status=$? 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } 6116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6117 (eval $ac_compiler -V </dev/null >&5) 2>&5 6118 ac_status=$? 6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6120 (exit $ac_status); } 6121 6122echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 6123echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 6124if test "${ac_cv_c_compiler_gnu+set}" = set; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126else 6127 cat >conftest.$ac_ext <<_ACEOF 6128#line $LINENO "configure" 6129/* confdefs.h. */ 6130_ACEOF 6131cat confdefs.h >>conftest.$ac_ext 6132cat >>conftest.$ac_ext <<_ACEOF 6133/* end confdefs.h. */ 6134 6135int 6136main () 6137{ 6138#ifndef __GNUC__ 6139 choke me 6140#endif 6141 6142 ; 6143 return 0; 6144} 6145_ACEOF 6146rm -f conftest.$ac_objext 6147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6148 (eval $ac_compile) 2>&5 6149 ac_status=$? 6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6151 (exit $ac_status); } && 6152 { ac_try='test -s conftest.$ac_objext' 6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6154 (eval $ac_try) 2>&5 6155 ac_status=$? 6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); }; }; then 6158 ac_compiler_gnu=yes 6159else 6160 echo "$as_me: failed program was:" >&5 6161sed 's/^/| /' conftest.$ac_ext >&5 6162 6163ac_compiler_gnu=no 6164fi 6165rm -f conftest.$ac_objext conftest.$ac_ext 6166ac_cv_c_compiler_gnu=$ac_compiler_gnu 6167 6168fi 6169echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 6170echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 6171GCC=`test $ac_compiler_gnu = yes && echo yes` 6172ac_test_CFLAGS=${CFLAGS+set} 6173ac_save_CFLAGS=$CFLAGS 6174CFLAGS="-g" 6175echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 6176echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 6177if test "${ac_cv_prog_cc_g+set}" = set; then 6178 echo $ECHO_N "(cached) $ECHO_C" >&6 6179else 6180 cat >conftest.$ac_ext <<_ACEOF 6181#line $LINENO "configure" 6182/* confdefs.h. */ 6183_ACEOF 6184cat confdefs.h >>conftest.$ac_ext 6185cat >>conftest.$ac_ext <<_ACEOF 6186/* end confdefs.h. */ 6187 6188int 6189main () 6190{ 6191 6192 ; 6193 return 0; 6194} 6195_ACEOF 6196rm -f conftest.$ac_objext 6197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6198 (eval $ac_compile) 2>&5 6199 ac_status=$? 6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6201 (exit $ac_status); } && 6202 { ac_try='test -s conftest.$ac_objext' 6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6204 (eval $ac_try) 2>&5 6205 ac_status=$? 6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6207 (exit $ac_status); }; }; then 6208 ac_cv_prog_cc_g=yes 6209else 6210 echo "$as_me: failed program was:" >&5 6211sed 's/^/| /' conftest.$ac_ext >&5 6212 6213ac_cv_prog_cc_g=no 6214fi 6215rm -f conftest.$ac_objext conftest.$ac_ext 6216fi 6217echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 6218echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 6219if test "$ac_test_CFLAGS" = set; then 6220 CFLAGS=$ac_save_CFLAGS 6221elif test $ac_cv_prog_cc_g = yes; then 6222 if test "$GCC" = yes; then 6223 CFLAGS="-g -O2" 6224 else 6225 CFLAGS="-g" 6226 fi 6227else 6228 if test "$GCC" = yes; then 6229 CFLAGS="-O2" 6230 else 6231 CFLAGS= 6232 fi 6233fi 6234echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 6235echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 6236if test "${ac_cv_prog_cc_stdc+set}" = set; then 6237 echo $ECHO_N "(cached) $ECHO_C" >&6 6238else 6239 ac_cv_prog_cc_stdc=no 6240ac_save_CC=$CC 6241cat >conftest.$ac_ext <<_ACEOF 6242#line $LINENO "configure" 6243/* confdefs.h. */ 6244_ACEOF 6245cat confdefs.h >>conftest.$ac_ext 6246cat >>conftest.$ac_ext <<_ACEOF 6247/* end confdefs.h. */ 6248#include <stdarg.h> 6249#include <stdio.h> 6250#include <sys/types.h> 6251#include <sys/stat.h> 6252/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6253struct buf { int x; }; 6254FILE * (*rcsopen) (struct buf *, struct stat *, int); 6255static char *e (p, i) 6256 char **p; 6257 int i; 6258{ 6259 return p[i]; 6260} 6261static char *f (char * (*g) (char **, int), char **p, ...) 6262{ 6263 char *s; 6264 va_list v; 6265 va_start (v,p); 6266 s = g (p, va_arg (v,int)); 6267 va_end (v); 6268 return s; 6269} 6270int test (int i, double x); 6271struct s1 {int (*f) (int a);}; 6272struct s2 {int (*f) (double a);}; 6273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6274int argc; 6275char **argv; 6276int 6277main () 6278{ 6279return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6280 ; 6281 return 0; 6282} 6283_ACEOF 6284# Don't try gcc -ansi; that turns off useful extensions and 6285# breaks some systems' header files. 6286# AIX -qlanglvl=ansi 6287# Ultrix and OSF/1 -std1 6288# HP-UX 10.20 and later -Ae 6289# HP-UX older versions -Aa -D_HPUX_SOURCE 6290# SVR4 -Xc -D__EXTENSIONS__ 6291for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6292do 6293 CC="$ac_save_CC $ac_arg" 6294 rm -f conftest.$ac_objext 6295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6296 (eval $ac_compile) 2>&5 6297 ac_status=$? 6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && 6300 { ac_try='test -s conftest.$ac_objext' 6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6302 (eval $ac_try) 2>&5 6303 ac_status=$? 6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6305 (exit $ac_status); }; }; then 6306 ac_cv_prog_cc_stdc=$ac_arg 6307break 6308else 6309 echo "$as_me: failed program was:" >&5 6310sed 's/^/| /' conftest.$ac_ext >&5 6311 6312fi 6313rm -f conftest.$ac_objext 6314done 6315rm -f conftest.$ac_ext conftest.$ac_objext 6316CC=$ac_save_CC 6317 6318fi 6319 6320case "x$ac_cv_prog_cc_stdc" in 6321 x|xno) 6322 echo "$as_me:$LINENO: result: none needed" >&5 6323echo "${ECHO_T}none needed" >&6 ;; 6324 *) 6325 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 6326echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 6327 CC="$CC $ac_cv_prog_cc_stdc" ;; 6328esac 6329 6330# Some people use a C++ compiler to compile C. Since we use `exit', 6331# in C++ we need to declare it. In case someone uses the same compiler 6332# for both compiling C and C++ we need to have the C++ compiler decide 6333# the declaration of exit, since it's the most demanding environment. 6334cat >conftest.$ac_ext <<_ACEOF 6335#ifndef __cplusplus 6336 choke me 6337#endif 6338_ACEOF 6339rm -f conftest.$ac_objext 6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6341 (eval $ac_compile) 2>&5 6342 ac_status=$? 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); } && 6345 { ac_try='test -s conftest.$ac_objext' 6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6347 (eval $ac_try) 2>&5 6348 ac_status=$? 6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6350 (exit $ac_status); }; }; then 6351 for ac_declaration in \ 6352 ''\ 6353 '#include <stdlib.h>' \ 6354 'extern "C" void std::exit (int) throw (); using std::exit;' \ 6355 'extern "C" void std::exit (int); using std::exit;' \ 6356 'extern "C" void exit (int) throw ();' \ 6357 'extern "C" void exit (int);' \ 6358 'void exit (int);' 6359do 6360 cat >conftest.$ac_ext <<_ACEOF 6361#line $LINENO "configure" 6362/* confdefs.h. */ 6363_ACEOF 6364cat confdefs.h >>conftest.$ac_ext 6365cat >>conftest.$ac_ext <<_ACEOF 6366/* end confdefs.h. */ 6367#include <stdlib.h> 6368$ac_declaration 6369int 6370main () 6371{ 6372exit (42); 6373 ; 6374 return 0; 6375} 6376_ACEOF 6377rm -f conftest.$ac_objext 6378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6379 (eval $ac_compile) 2>&5 6380 ac_status=$? 6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6382 (exit $ac_status); } && 6383 { ac_try='test -s conftest.$ac_objext' 6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6385 (eval $ac_try) 2>&5 6386 ac_status=$? 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6388 (exit $ac_status); }; }; then 6389 : 6390else 6391 echo "$as_me: failed program was:" >&5 6392sed 's/^/| /' conftest.$ac_ext >&5 6393 6394continue 6395fi 6396rm -f conftest.$ac_objext conftest.$ac_ext 6397 cat >conftest.$ac_ext <<_ACEOF 6398#line $LINENO "configure" 6399/* confdefs.h. */ 6400_ACEOF 6401cat confdefs.h >>conftest.$ac_ext 6402cat >>conftest.$ac_ext <<_ACEOF 6403/* end confdefs.h. */ 6404$ac_declaration 6405int 6406main () 6407{ 6408exit (42); 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413rm -f conftest.$ac_objext 6414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6415 (eval $ac_compile) 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && 6419 { ac_try='test -s conftest.$ac_objext' 6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6421 (eval $ac_try) 2>&5 6422 ac_status=$? 6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6424 (exit $ac_status); }; }; then 6425 break 6426else 6427 echo "$as_me: failed program was:" >&5 6428sed 's/^/| /' conftest.$ac_ext >&5 6429 6430fi 6431rm -f conftest.$ac_objext conftest.$ac_ext 6432done 6433rm -f conftest* 6434if test -n "$ac_declaration"; then 6435 echo '#ifdef __cplusplus' >>confdefs.h 6436 echo $ac_declaration >>confdefs.h 6437 echo '#endif' >>confdefs.h 6438fi 6439 6440else 6441 echo "$as_me: failed program was:" >&5 6442sed 's/^/| /' conftest.$ac_ext >&5 6443 6444fi 6445rm -f conftest.$ac_objext conftest.$ac_ext 6446ac_ext=c 6447ac_cpp='$CPP $CPPFLAGS' 6448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6450ac_compiler_gnu=$ac_cv_c_compiler_gnu 6451 6452depcc="$CC" am_compiler_list= 6453 6454echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6455echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 6456if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 6457 echo $ECHO_N "(cached) $ECHO_C" >&6 6458else 6459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6460 # We make a subdir and do the tests there. Otherwise we can end up 6461 # making bogus files that we don't know about and never remove. For 6462 # instance it was reported that on HP-UX the gcc test will end up 6463 # making a dummy file named `D' -- because `-MD' means `put the output 6464 # in D'. 6465 mkdir conftest.dir 6466 # Copy depcomp to subdir because otherwise we won't find it if we're 6467 # using a relative directory. 6468 cp "$am_depcomp" conftest.dir 6469 cd conftest.dir 6470 6471 am_cv_CC_dependencies_compiler_type=none 6472 if test "$am_compiler_list" = ""; then 6473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6474 fi 6475 for depmode in $am_compiler_list; do 6476 # We need to recreate these files for each test, as the compiler may 6477 # overwrite some of them when testing with obscure command lines. 6478 # This happens at least with the AIX C compiler. 6479 echo '#include "conftest.h"' > conftest.c 6480 echo 'int i;' > conftest.h 6481 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 6482 6483 case $depmode in 6484 nosideeffect) 6485 # after this tag, mechanisms are not by side-effect, so they'll 6486 # only be used when explicitly requested 6487 if test "x$enable_dependency_tracking" = xyes; then 6488 continue 6489 else 6490 break 6491 fi 6492 ;; 6493 none) break ;; 6494 esac 6495 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6496 # mode. It turns out that the SunPro C++ compiler does not properly 6497 # handle `-M -o', and we need to detect this. 6498 if depmode=$depmode \ 6499 source=conftest.c object=conftest.o \ 6500 depfile=conftest.Po tmpdepfile=conftest.TPo \ 6501 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 6502 grep conftest.h conftest.Po > /dev/null 2>&1 && 6503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6504 am_cv_CC_dependencies_compiler_type=$depmode 6505 break 6506 fi 6507 done 6508 6509 cd .. 6510 rm -rf conftest.dir 6511else 6512 am_cv_CC_dependencies_compiler_type=none 6513fi 6514 6515fi 6516echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 6517echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 6518CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6519 6520 6521 CFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict -DHAVE_MPI" 6522 CXXFLAGS="-Wall -wd810,383,981,279,444,1572 -inline_debug_info -restrict -DHAVE_MPI" 6523 LIBS="-lm -lnsl" 6524else 6525 echo "$as_me:$LINENO: result: no" >&5 6526echo "${ECHO_T}no" >&6 6527fi 6528 6529 6530WANT_GCC_MPICH_FLAGS=0 6531echo "$as_me:$LINENO: checking preset g++ for generic with MPICH flags " >&5 6532echo $ECHO_N "checking preset g++ for generic with MPICH flags ... $ECHO_C" >&6 6533if test "$with_gcc_mpich" = "yes"; then 6534 unset CC 6535 unset CXX 6536 WANT_GCC_MPICH_FLAGS=1 6537 echo "$as_me:$LINENO: result: yes" >&5 6538echo "${ECHO_T}yes" >&6 6539 ac_ext=cc 6540ac_cpp='$CXXCPP $CPPFLAGS' 6541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6544 6545 ac_ext=cc 6546ac_cpp='$CXXCPP $CPPFLAGS' 6547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6550if test -n "$ac_tool_prefix"; then 6551 for ac_prog in $CCC mpiCC mpicxx mpic++ 6552 do 6553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6554set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6555echo "$as_me:$LINENO: checking for $ac_word" >&5 6556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6557if test "${ac_cv_prog_CXX+set}" = set; then 6558 echo $ECHO_N "(cached) $ECHO_C" >&6 6559else 6560 if test -n "$CXX"; then 6561 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6562else 6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6564for as_dir in $PATH 6565do 6566 IFS=$as_save_IFS 6567 test -z "$as_dir" && as_dir=. 6568 for ac_exec_ext in '' $ac_executable_extensions; do 6569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6572 break 2 6573 fi 6574done 6575done 6576 6577fi 6578fi 6579CXX=$ac_cv_prog_CXX 6580if test -n "$CXX"; then 6581 echo "$as_me:$LINENO: result: $CXX" >&5 6582echo "${ECHO_T}$CXX" >&6 6583else 6584 echo "$as_me:$LINENO: result: no" >&5 6585echo "${ECHO_T}no" >&6 6586fi 6587 6588 test -n "$CXX" && break 6589 done 6590fi 6591if test -z "$CXX"; then 6592 ac_ct_CXX=$CXX 6593 for ac_prog in $CCC mpiCC mpicxx mpic++ 6594do 6595 # Extract the first word of "$ac_prog", so it can be a program name with args. 6596set dummy $ac_prog; ac_word=$2 6597echo "$as_me:$LINENO: checking for $ac_word" >&5 6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6599if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6600 echo $ECHO_N "(cached) $ECHO_C" >&6 6601else 6602 if test -n "$ac_ct_CXX"; then 6603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_ac_ct_CXX="$ac_prog" 6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617done 6618 6619fi 6620fi 6621ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6622if test -n "$ac_ct_CXX"; then 6623 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6624echo "${ECHO_T}$ac_ct_CXX" >&6 6625else 6626 echo "$as_me:$LINENO: result: no" >&5 6627echo "${ECHO_T}no" >&6 6628fi 6629 6630 test -n "$ac_ct_CXX" && break 6631done 6632test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 6633 6634 CXX=$ac_ct_CXX 6635fi 6636 6637 6638# Provide some information about the compiler. 6639echo "$as_me:$LINENO:" \ 6640 "checking for C++ compiler version" >&5 6641ac_compiler=`set X $ac_compile; echo $2` 6642{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6643 (eval $ac_compiler --version </dev/null >&5) 2>&5 6644 ac_status=$? 6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6646 (exit $ac_status); } 6647{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6648 (eval $ac_compiler -v </dev/null >&5) 2>&5 6649 ac_status=$? 6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6651 (exit $ac_status); } 6652{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6653 (eval $ac_compiler -V </dev/null >&5) 2>&5 6654 ac_status=$? 6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6656 (exit $ac_status); } 6657 6658echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6659echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 6660if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6661 echo $ECHO_N "(cached) $ECHO_C" >&6 6662else 6663 cat >conftest.$ac_ext <<_ACEOF 6664#line $LINENO "configure" 6665/* confdefs.h. */ 6666_ACEOF 6667cat confdefs.h >>conftest.$ac_ext 6668cat >>conftest.$ac_ext <<_ACEOF 6669/* end confdefs.h. */ 6670 6671int 6672main () 6673{ 6674#ifndef __GNUC__ 6675 choke me 6676#endif 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682rm -f conftest.$ac_objext 6683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6684 (eval $ac_compile) 2>&5 6685 ac_status=$? 6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); } && 6688 { ac_try='test -s conftest.$ac_objext' 6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6690 (eval $ac_try) 2>&5 6691 ac_status=$? 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); }; }; then 6694 ac_compiler_gnu=yes 6695else 6696 echo "$as_me: failed program was:" >&5 6697sed 's/^/| /' conftest.$ac_ext >&5 6698 6699ac_compiler_gnu=no 6700fi 6701rm -f conftest.$ac_objext conftest.$ac_ext 6702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6703 6704fi 6705echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6706echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 6707GXX=`test $ac_compiler_gnu = yes && echo yes` 6708ac_test_CXXFLAGS=${CXXFLAGS+set} 6709ac_save_CXXFLAGS=$CXXFLAGS 6710CXXFLAGS="-g" 6711echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6712echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 6713if test "${ac_cv_prog_cxx_g+set}" = set; then 6714 echo $ECHO_N "(cached) $ECHO_C" >&6 6715else 6716 cat >conftest.$ac_ext <<_ACEOF 6717#line $LINENO "configure" 6718/* confdefs.h. */ 6719_ACEOF 6720cat confdefs.h >>conftest.$ac_ext 6721cat >>conftest.$ac_ext <<_ACEOF 6722/* end confdefs.h. */ 6723 6724int 6725main () 6726{ 6727 6728 ; 6729 return 0; 6730} 6731_ACEOF 6732rm -f conftest.$ac_objext 6733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6734 (eval $ac_compile) 2>&5 6735 ac_status=$? 6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6737 (exit $ac_status); } && 6738 { ac_try='test -s conftest.$ac_objext' 6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6740 (eval $ac_try) 2>&5 6741 ac_status=$? 6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6743 (exit $ac_status); }; }; then 6744 ac_cv_prog_cxx_g=yes 6745else 6746 echo "$as_me: failed program was:" >&5 6747sed 's/^/| /' conftest.$ac_ext >&5 6748 6749ac_cv_prog_cxx_g=no 6750fi 6751rm -f conftest.$ac_objext conftest.$ac_ext 6752fi 6753echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6754echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 6755if test "$ac_test_CXXFLAGS" = set; then 6756 CXXFLAGS=$ac_save_CXXFLAGS 6757elif test $ac_cv_prog_cxx_g = yes; then 6758 if test "$GXX" = yes; then 6759 CXXFLAGS="-g -O2" 6760 else 6761 CXXFLAGS="-g" 6762 fi 6763else 6764 if test "$GXX" = yes; then 6765 CXXFLAGS="-O2" 6766 else 6767 CXXFLAGS= 6768 fi 6769fi 6770for ac_declaration in \ 6771 ''\ 6772 '#include <stdlib.h>' \ 6773 'extern "C" void std::exit (int) throw (); using std::exit;' \ 6774 'extern "C" void std::exit (int); using std::exit;' \ 6775 'extern "C" void exit (int) throw ();' \ 6776 'extern "C" void exit (int);' \ 6777 'void exit (int);' 6778do 6779 cat >conftest.$ac_ext <<_ACEOF 6780#line $LINENO "configure" 6781/* confdefs.h. */ 6782_ACEOF 6783cat confdefs.h >>conftest.$ac_ext 6784cat >>conftest.$ac_ext <<_ACEOF 6785/* end confdefs.h. */ 6786#include <stdlib.h> 6787$ac_declaration 6788int 6789main () 6790{ 6791exit (42); 6792 ; 6793 return 0; 6794} 6795_ACEOF 6796rm -f conftest.$ac_objext 6797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6798 (eval $ac_compile) 2>&5 6799 ac_status=$? 6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6801 (exit $ac_status); } && 6802 { ac_try='test -s conftest.$ac_objext' 6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6804 (eval $ac_try) 2>&5 6805 ac_status=$? 6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6807 (exit $ac_status); }; }; then 6808 : 6809else 6810 echo "$as_me: failed program was:" >&5 6811sed 's/^/| /' conftest.$ac_ext >&5 6812 6813continue 6814fi 6815rm -f conftest.$ac_objext conftest.$ac_ext 6816 cat >conftest.$ac_ext <<_ACEOF 6817#line $LINENO "configure" 6818/* confdefs.h. */ 6819_ACEOF 6820cat confdefs.h >>conftest.$ac_ext 6821cat >>conftest.$ac_ext <<_ACEOF 6822/* end confdefs.h. */ 6823$ac_declaration 6824int 6825main () 6826{ 6827exit (42); 6828 ; 6829 return 0; 6830} 6831_ACEOF 6832rm -f conftest.$ac_objext 6833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6834 (eval $ac_compile) 2>&5 6835 ac_status=$? 6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6837 (exit $ac_status); } && 6838 { ac_try='test -s conftest.$ac_objext' 6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6840 (eval $ac_try) 2>&5 6841 ac_status=$? 6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6843 (exit $ac_status); }; }; then 6844 break 6845else 6846 echo "$as_me: failed program was:" >&5 6847sed 's/^/| /' conftest.$ac_ext >&5 6848 6849fi 6850rm -f conftest.$ac_objext conftest.$ac_ext 6851done 6852rm -f conftest* 6853if test -n "$ac_declaration"; then 6854 echo '#ifdef __cplusplus' >>confdefs.h 6855 echo $ac_declaration >>confdefs.h 6856 echo '#endif' >>confdefs.h 6857fi 6858 6859ac_ext=cc 6860ac_cpp='$CXXCPP $CPPFLAGS' 6861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6864 6865depcc="$CXX" am_compiler_list= 6866 6867echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6868echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 6869if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6870 echo $ECHO_N "(cached) $ECHO_C" >&6 6871else 6872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6873 # We make a subdir and do the tests there. Otherwise we can end up 6874 # making bogus files that we don't know about and never remove. For 6875 # instance it was reported that on HP-UX the gcc test will end up 6876 # making a dummy file named `D' -- because `-MD' means `put the output 6877 # in D'. 6878 mkdir conftest.dir 6879 # Copy depcomp to subdir because otherwise we won't find it if we're 6880 # using a relative directory. 6881 cp "$am_depcomp" conftest.dir 6882 cd conftest.dir 6883 6884 am_cv_CXX_dependencies_compiler_type=none 6885 if test "$am_compiler_list" = ""; then 6886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6887 fi 6888 for depmode in $am_compiler_list; do 6889 # We need to recreate these files for each test, as the compiler may 6890 # overwrite some of them when testing with obscure command lines. 6891 # This happens at least with the AIX C compiler. 6892 echo '#include "conftest.h"' > conftest.c 6893 echo 'int i;' > conftest.h 6894 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 6895 6896 case $depmode in 6897 nosideeffect) 6898 # after this tag, mechanisms are not by side-effect, so they'll 6899 # only be used when explicitly requested 6900 if test "x$enable_dependency_tracking" = xyes; then 6901 continue 6902 else 6903 break 6904 fi 6905 ;; 6906 none) break ;; 6907 esac 6908 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6909 # mode. It turns out that the SunPro C++ compiler does not properly 6910 # handle `-M -o', and we need to detect this. 6911 if depmode=$depmode \ 6912 source=conftest.c object=conftest.o \ 6913 depfile=conftest.Po tmpdepfile=conftest.TPo \ 6914 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 6915 grep conftest.h conftest.Po > /dev/null 2>&1 && 6916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6917 am_cv_CXX_dependencies_compiler_type=$depmode 6918 break 6919 fi 6920 done 6921 6922 cd .. 6923 rm -rf conftest.dir 6924else 6925 am_cv_CXX_dependencies_compiler_type=none 6926fi 6927 6928fi 6929echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6930echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6931CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6932 6933 6934 CC="mpicc" 6935 CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI" 6936 CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI" 6937 LIBS="-lm -lnsl" 6938 DEPFLAGS="" 6939else 6940 echo "$as_me:$LINENO: result: no" >&5 6941echo "${ECHO_T}no" >&6 6942fi 6943 6944ANT_GCC_MPICH_XEON=0 6945echo "$as_me:$LINENO: checking preset g++ for generic with MPICH XEON flags " >&5 6946echo $ECHO_N "checking preset g++ for generic with MPICH XEON flags ... $ECHO_C" >&6 6947if test "$with_gcc_mpich_xeon" = "yes"; then 6948 unset CC 6949 unset CXX 6950 WANT_GCC_MPICH_XEON=1 6951 echo "$as_me:$LINENO: result: yes" >&5 6952echo "${ECHO_T}yes" >&6 6953 CC="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-gcc-2/bin/mpicc" 6954 CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI" 6955 CXX="/afs/nd.edu/i386_linux24/opt/und/mpich/mpich-1.2.6/ch_p4-gcc-2/bin/mpicxx" 6956 CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG -DHAVE_MPI" 6957 LIBS="-lm -lnsl" 6958 DEPFLAGS="" 6959else 6960 echo "$as_me:$LINENO: result: no" >&5 6961echo "${ECHO_T}no" >&6 6962fi 6963 6964WANT_GCC_MPICH_DEBUG_FLAGS=0 6965echo "$as_me:$LINENO: checking preset g++ for generic with MPICH debug flags " >&5 6966echo $ECHO_N "checking preset g++ for generic with MPICH debug flags ... $ECHO_C" >&6 6967if test "$with_gcc_mpich_debug" = "yes"; then 6968 unset CC 6969 unset CXX 6970 WANT_GCC_MPICH_DEBUG_FLAGS=1 6971 echo "$as_me:$LINENO: result: yes" >&5 6972echo "${ECHO_T}yes" >&6 6973 CC="mpicc" 6974 CFLAGS="-Wall -DHAVE_MPI -I${MPI_HOME}/include" 6975 ac_ext=cc 6976ac_cpp='$CXXCPP $CPPFLAGS' 6977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6980 6981 ac_ext=cc 6982ac_cpp='$CXXCPP $CPPFLAGS' 6983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6986if test -n "$ac_tool_prefix"; then 6987 for ac_prog in $CCC mpiCC mpicxx mpic++ 6988 do 6989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6990set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6991echo "$as_me:$LINENO: checking for $ac_word" >&5 6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6993if test "${ac_cv_prog_CXX+set}" = set; then 6994 echo $ECHO_N "(cached) $ECHO_C" >&6 6995else 6996 if test -n "$CXX"; then 6997 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7006 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011done 7012 7013fi 7014fi 7015CXX=$ac_cv_prog_CXX 7016if test -n "$CXX"; then 7017 echo "$as_me:$LINENO: result: $CXX" >&5 7018echo "${ECHO_T}$CXX" >&6 7019else 7020 echo "$as_me:$LINENO: result: no" >&5 7021echo "${ECHO_T}no" >&6 7022fi 7023 7024 test -n "$CXX" && break 7025 done 7026fi 7027if test -z "$CXX"; then 7028 ac_ct_CXX=$CXX 7029 for ac_prog in $CCC mpiCC mpicxx mpic++ 7030do 7031 # Extract the first word of "$ac_prog", so it can be a program name with args. 7032set dummy $ac_prog; ac_word=$2 7033echo "$as_me:$LINENO: checking for $ac_word" >&5 7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7035if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7036 echo $ECHO_N "(cached) $ECHO_C" >&6 7037else 7038 if test -n "$ac_ct_CXX"; then 7039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7040else 7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7042for as_dir in $PATH 7043do 7044 IFS=$as_save_IFS 7045 test -z "$as_dir" && as_dir=. 7046 for ac_exec_ext in '' $ac_executable_extensions; do 7047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7048 ac_cv_prog_ac_ct_CXX="$ac_prog" 7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7050 break 2 7051 fi 7052done 7053done 7054 7055fi 7056fi 7057ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7058if test -n "$ac_ct_CXX"; then 7059 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7060echo "${ECHO_T}$ac_ct_CXX" >&6 7061else 7062 echo "$as_me:$LINENO: result: no" >&5 7063echo "${ECHO_T}no" >&6 7064fi 7065 7066 test -n "$ac_ct_CXX" && break 7067done 7068test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 7069 7070 CXX=$ac_ct_CXX 7071fi 7072 7073 7074# Provide some information about the compiler. 7075echo "$as_me:$LINENO:" \ 7076 "checking for C++ compiler version" >&5 7077ac_compiler=`set X $ac_compile; echo $2` 7078{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7079 (eval $ac_compiler --version </dev/null >&5) 2>&5 7080 ac_status=$? 7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 (exit $ac_status); } 7083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7084 (eval $ac_compiler -v </dev/null >&5) 2>&5 7085 ac_status=$? 7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7087 (exit $ac_status); } 7088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7089 (eval $ac_compiler -V </dev/null >&5) 2>&5 7090 ac_status=$? 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); } 7093 7094echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7095echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 7096if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7097 echo $ECHO_N "(cached) $ECHO_C" >&6 7098else 7099 cat >conftest.$ac_ext <<_ACEOF 7100#line $LINENO "configure" 7101/* confdefs.h. */ 7102_ACEOF 7103cat confdefs.h >>conftest.$ac_ext 7104cat >>conftest.$ac_ext <<_ACEOF 7105/* end confdefs.h. */ 7106 7107int 7108main () 7109{ 7110#ifndef __GNUC__ 7111 choke me 7112#endif 7113 7114 ; 7115 return 0; 7116} 7117_ACEOF 7118rm -f conftest.$ac_objext 7119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7120 (eval $ac_compile) 2>&5 7121 ac_status=$? 7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7123 (exit $ac_status); } && 7124 { ac_try='test -s conftest.$ac_objext' 7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7126 (eval $ac_try) 2>&5 7127 ac_status=$? 7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7129 (exit $ac_status); }; }; then 7130 ac_compiler_gnu=yes 7131else 7132 echo "$as_me: failed program was:" >&5 7133sed 's/^/| /' conftest.$ac_ext >&5 7134 7135ac_compiler_gnu=no 7136fi 7137rm -f conftest.$ac_objext conftest.$ac_ext 7138ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7139 7140fi 7141echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7142echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 7143GXX=`test $ac_compiler_gnu = yes && echo yes` 7144ac_test_CXXFLAGS=${CXXFLAGS+set} 7145ac_save_CXXFLAGS=$CXXFLAGS 7146CXXFLAGS="-g" 7147echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7148echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 7149if test "${ac_cv_prog_cxx_g+set}" = set; then 7150 echo $ECHO_N "(cached) $ECHO_C" >&6 7151else 7152 cat >conftest.$ac_ext <<_ACEOF 7153#line $LINENO "configure" 7154/* confdefs.h. */ 7155_ACEOF 7156cat confdefs.h >>conftest.$ac_ext 7157cat >>conftest.$ac_ext <<_ACEOF 7158/* end confdefs.h. */ 7159 7160int 7161main () 7162{ 7163 7164 ; 7165 return 0; 7166} 7167_ACEOF 7168rm -f conftest.$ac_objext 7169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7170 (eval $ac_compile) 2>&5 7171 ac_status=$? 7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7173 (exit $ac_status); } && 7174 { ac_try='test -s conftest.$ac_objext' 7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7176 (eval $ac_try) 2>&5 7177 ac_status=$? 7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7179 (exit $ac_status); }; }; then 7180 ac_cv_prog_cxx_g=yes 7181else 7182 echo "$as_me: failed program was:" >&5 7183sed 's/^/| /' conftest.$ac_ext >&5 7184 7185ac_cv_prog_cxx_g=no 7186fi 7187rm -f conftest.$ac_objext conftest.$ac_ext 7188fi 7189echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7190echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 7191if test "$ac_test_CXXFLAGS" = set; then 7192 CXXFLAGS=$ac_save_CXXFLAGS 7193elif test $ac_cv_prog_cxx_g = yes; then 7194 if test "$GXX" = yes; then 7195 CXXFLAGS="-g -O2" 7196 else 7197 CXXFLAGS="-g" 7198 fi 7199else 7200 if test "$GXX" = yes; then 7201 CXXFLAGS="-O2" 7202 else 7203 CXXFLAGS= 7204 fi 7205fi 7206for ac_declaration in \ 7207 ''\ 7208 '#include <stdlib.h>' \ 7209 'extern "C" void std::exit (int) throw (); using std::exit;' \ 7210 'extern "C" void std::exit (int); using std::exit;' \ 7211 'extern "C" void exit (int) throw ();' \ 7212 'extern "C" void exit (int);' \ 7213 'void exit (int);' 7214do 7215 cat >conftest.$ac_ext <<_ACEOF 7216#line $LINENO "configure" 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222#include <stdlib.h> 7223$ac_declaration 7224int 7225main () 7226{ 7227exit (42); 7228 ; 7229 return 0; 7230} 7231_ACEOF 7232rm -f conftest.$ac_objext 7233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7234 (eval $ac_compile) 2>&5 7235 ac_status=$? 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); } && 7238 { ac_try='test -s conftest.$ac_objext' 7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7240 (eval $ac_try) 2>&5 7241 ac_status=$? 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); }; }; then 7244 : 7245else 7246 echo "$as_me: failed program was:" >&5 7247sed 's/^/| /' conftest.$ac_ext >&5 7248 7249continue 7250fi 7251rm -f conftest.$ac_objext conftest.$ac_ext 7252 cat >conftest.$ac_ext <<_ACEOF 7253#line $LINENO "configure" 7254/* confdefs.h. */ 7255_ACEOF 7256cat confdefs.h >>conftest.$ac_ext 7257cat >>conftest.$ac_ext <<_ACEOF 7258/* end confdefs.h. */ 7259$ac_declaration 7260int 7261main () 7262{ 7263exit (42); 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268rm -f conftest.$ac_objext 7269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7270 (eval $ac_compile) 2>&5 7271 ac_status=$? 7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7273 (exit $ac_status); } && 7274 { ac_try='test -s conftest.$ac_objext' 7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7276 (eval $ac_try) 2>&5 7277 ac_status=$? 7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7279 (exit $ac_status); }; }; then 7280 break 7281else 7282 echo "$as_me: failed program was:" >&5 7283sed 's/^/| /' conftest.$ac_ext >&5 7284 7285fi 7286rm -f conftest.$ac_objext conftest.$ac_ext 7287done 7288rm -f conftest* 7289if test -n "$ac_declaration"; then 7290 echo '#ifdef __cplusplus' >>confdefs.h 7291 echo $ac_declaration >>confdefs.h 7292 echo '#endif' >>confdefs.h 7293fi 7294 7295ac_ext=cc 7296ac_cpp='$CXXCPP $CPPFLAGS' 7297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7300 7301depcc="$CXX" am_compiler_list= 7302 7303echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7304echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 7305if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7306 echo $ECHO_N "(cached) $ECHO_C" >&6 7307else 7308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7309 # We make a subdir and do the tests there. Otherwise we can end up 7310 # making bogus files that we don't know about and never remove. For 7311 # instance it was reported that on HP-UX the gcc test will end up 7312 # making a dummy file named `D' -- because `-MD' means `put the output 7313 # in D'. 7314 mkdir conftest.dir 7315 # Copy depcomp to subdir because otherwise we won't find it if we're 7316 # using a relative directory. 7317 cp "$am_depcomp" conftest.dir 7318 cd conftest.dir 7319 7320 am_cv_CXX_dependencies_compiler_type=none 7321 if test "$am_compiler_list" = ""; then 7322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7323 fi 7324 for depmode in $am_compiler_list; do 7325 # We need to recreate these files for each test, as the compiler may 7326 # overwrite some of them when testing with obscure command lines. 7327 # This happens at least with the AIX C compiler. 7328 echo '#include "conftest.h"' > conftest.c 7329 echo 'int i;' > conftest.h 7330 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 7331 7332 case $depmode in 7333 nosideeffect) 7334 # after this tag, mechanisms are not by side-effect, so they'll 7335 # only be used when explicitly requested 7336 if test "x$enable_dependency_tracking" = xyes; then 7337 continue 7338 else 7339 break 7340 fi 7341 ;; 7342 none) break ;; 7343 esac 7344 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7345 # mode. It turns out that the SunPro C++ compiler does not properly 7346 # handle `-M -o', and we need to detect this. 7347 if depmode=$depmode \ 7348 source=conftest.c object=conftest.o \ 7349 depfile=conftest.Po tmpdepfile=conftest.TPo \ 7350 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 7351 grep conftest.h conftest.Po > /dev/null 2>&1 && 7352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7353 am_cv_CXX_dependencies_compiler_type=$depmode 7354 break 7355 fi 7356 done 7357 7358 cd .. 7359 rm -rf conftest.dir 7360else 7361 am_cv_CXX_dependencies_compiler_type=none 7362fi 7363 7364fi 7365echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7366echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 7367CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7368 7369 7370 CXXFLAGS="-Wall -DHAVE_MPI -I${MPI_HOME}/include" 7371 LIBS="-lm -lnsl" 7372 DEPFLAGS="" 7373else 7374 echo "$as_me:$LINENO: result: no" >&5 7375echo "${ECHO_T}no" >&6 7376fi 7377 7378WANT_GCC_FLAGS=0 7379echo "$as_me:$LINENO: checking preset g++ for generic with optimization flags " >&5 7380echo $ECHO_N "checking preset g++ for generic with optimization flags ... $ECHO_C" >&6 7381if (test "$with_gcc" = "yes" || ((test $use_preset = 0) && ( test $CXX = "c++" || test $CXX = "g++"))) then 7382 WANT_GCC_FLAGS=1 7383 echo "$as_me:$LINENO: result: yes" >&5 7384echo "${ECHO_T}yes" >&6 7385 CC="gcc" 7386 CFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG" 7387 CXX="g++" 7388 CXXFLAGS="-Wall -O9 -ffast-math -finline-functions -funroll-loops -DNDEBUG" 7389 LIBS="-lm -lnsl" 7390 DEPFLAGS="" 7391else 7392 echo "$as_me:$LINENO: result: no" >&5 7393echo "${ECHO_T}no" >&6 7394fi 7395 7396WANT_GCC_DEBUG_FLAGS=0 7397echo "$as_me:$LINENO: checking preset g++ for generic with debugging flags " >&5 7398echo $ECHO_N "checking preset g++ for generic with debugging flags ... $ECHO_C" >&6 7399if test "$with_gcc_debug" = "yes"; then 7400 WANT_GCC_DEBUG_FLAGS=1 7401 echo "$as_me:$LINENO: result: yes" >&5 7402echo "${ECHO_T}yes" >&6 7403 CC="gcc" 7404 CFLAGS="-Wall" 7405 CXX="g++" 7406 CXXFLAGS="-Wall" 7407 LIBS="-lm -lnsl" 7408 DEPFLAGS="" 7409else 7410 echo "$as_me:$LINENO: result: no" >&5 7411echo "${ECHO_T}no" >&6 7412fi 7413 7414WANT_GCC_DEBUG_GDB_FLAGS=0 7415echo "$as_me:$LINENO: checking preset g++ for generic with debugging and gdb flags " >&5 7416echo $ECHO_N "checking preset g++ for generic with debugging and gdb flags ... $ECHO_C" >&6 7417if test "$with_gcc_debug_gdb" = "yes"; then 7418 WANT_GCC_DEBUG_GDB_FLAGS=1 7419 echo "$as_me:$LINENO: result: yes" >&5 7420echo "${ECHO_T}yes" >&6 7421 CC="gcc" 7422 CFLAGS="-g -Wall" 7423 CXX="g++" 7424 CXXFLAGS="-g -Wall" 7425 LIBS="-lm -lnsl" 7426 DEPFLAGS="" 7427else 7428 echo "$as_me:$LINENO: result: no" >&5 7429echo "${ECHO_T}no" >&6 7430fi 7431 7432WANT_PPC_XLC_FLAGS=0 7433echo "$as_me:$LINENO: checking preset xlC for PPC with optimization flags " >&5 7434echo $ECHO_N "checking preset xlC for PPC with optimization flags ... $ECHO_C" >&6 7435if test "$with_ppc_xlc" = "yes"; then 7436 WANT_PPC_XLC_FLAGS=1 7437 echo "$as_me:$LINENO: result: yes" >&5 7438echo "${ECHO_T}yes" >&6 7439 CC="xlc_r" 7440 CFLAGS="-O4 -qinlglue -qcache=auto -qarch=auto -qtune=auto -DNDEBUG" 7441 CXX="xlC_r" 7442 CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG" 7443 LIBS="-lm -lnsl" 7444 DEPFLAGS="" 7445else 7446 echo "$as_me:$LINENO: result: no" >&5 7447echo "${ECHO_T}no" >&6 7448fi 7449 7450WANT_PPC_XLC_DEBUG_FLAGS=0 7451echo "$as_me:$LINENO: checking preset xlC for PPC with debugging flags " >&5 7452echo $ECHO_N "checking preset xlC for PPC with debugging flags ... $ECHO_C" >&6 7453if test "$with_ppc_xlc_debug" = "yes"; then 7454 WANT_PPC_XLC_DEBUG_FLAGS=1 7455 echo "$as_me:$LINENO: result: yes" >&5 7456echo "${ECHO_T}yes" >&6 7457 CC="xlc_r" 7458 CFLAGS="" 7459 CXX="xlC_r" 7460 CXXFLAGS="" 7461 LIBS="-lm -lnsl" 7462 DEPFLAGS="" 7463else 7464 echo "$as_me:$LINENO: result: no" >&5 7465echo "${ECHO_T}no" >&6 7466fi 7467 7468 7469WANT_AIX_XLC_FLAGS=0 7470echo "$as_me:$LINENO: checking preset xlC for AIX with optimization flags " >&5 7471echo $ECHO_N "checking preset xlC for AIX with optimization flags ... $ECHO_C" >&6 7472if test "$with_aix_xlc" = "yes"; then 7473 WANT_AIX_XLC_FLAGS=1 7474 echo "$as_me:$LINENO: result: yes" >&5 7475echo "${ECHO_T}yes" >&6 7476 CC="xlc_r" 7477 CFLAGS="-O4 -qinlglue -qcache=auto -qarch=auto -qtune=auto -DNDEBUG" 7478 CXX="xlC_r" 7479 CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG" 7480 LIBS="-lm -lnsl" 7481 DEPFLAGS="" 7482else 7483 echo "$as_me:$LINENO: result: no" >&5 7484echo "${ECHO_T}no" >&6 7485fi 7486 7487WANT_AIX_XLC_DEBUG_FLAGS=0 7488echo "$as_me:$LINENO: checking preset xlC for AIX with debugging flags " >&5 7489echo $ECHO_N "checking preset xlC for AIX with debugging flags ... $ECHO_C" >&6 7490if test "$with_aix_xlc_debug" = "yes"; then 7491 WANT_AIX_XLC_DEBUG_FLAGS=1 7492 echo "$as_me:$LINENO: result: yes" >&5 7493echo "${ECHO_T}yes" >&6 7494 CC="xlc_r" 7495 CFLAGS="" 7496 CXX="xlC_r" 7497 CXXFLAGS="-qrtti=dyna" 7498 LIBS="-lm -lnsl" 7499 DEPFLAGS="" 7500else 7501 echo "$as_me:$LINENO: result: no" >&5 7502echo "${ECHO_T}no" >&6 7503fi 7504 7505 7506echo "$as_me:$LINENO: checking preset xlC for AIX with MPI and optimization flags " >&5 7507echo $ECHO_N "checking preset xlC for AIX with MPI and optimization flags ... $ECHO_C" >&6 7508WANT_AIX_XLC_MPI_FLAGS=0 7509if (test "$with_aix_xlc_mpi" = "yes" || ((test $use_preset = 0) && test $CXX = "mpCC_r")) then 7510 WANT_AIX_XLC_MPI_FLAGS=1 7511 echo "$as_me:$LINENO: result: yes" >&5 7512echo "${ECHO_T}yes" >&6 7513 CC="mpcc_r" 7514 CFLAGS="-O4 -qinlglue-qcache=auto -qarch=auto -qtune=auto -DNDEBUG -DHAVE_MPI" 7515 CXX="mpCC_r" 7516 CXXFLAGS="-O3 -qstaticinline -qfloat=rsqrt:fltint -qstrict -Q -qmaxmem=-1 -qcache=auto -qarch=auto -qtune=auto -qrtti=dyna -DNDEBUG -DHAVE_MPI" 7517 LIBS="-lm -lnsl" 7518 DEPFLAGS="" 7519else 7520 echo "$as_me:$LINENO: result: no" >&5 7521echo "${ECHO_T}no" >&6 7522fi 7523 7524WANT_AIX_XLC_MPI_DEBUG_FLAGS=0 7525echo "$as_me:$LINENO: checking preset xlC for AIX with MPI and debugging flags " >&5 7526echo $ECHO_N "checking preset xlC for AIX with MPI and debugging flags ... $ECHO_C" >&6 7527if test "$with_aix_xlc_mpi_debug" = "yes"; then 7528 WANT_AIX_XLC_MPI_DEBUG_FLAGS=1 7529 echo "$as_me:$LINENO: result: yes" >&5 7530echo "${ECHO_T}yes" >&6 7531 CC="mpcc_r" 7532 CFLAGS="-g -DHAVE_MPI" 7533 CXX="mpCC_r" 7534 CXXFLAGS="-g -qrtti=dyna -DHAVE_MPI" 7535 LIBS="-lm -lnsl" 7536 DEPFLAGS="" 7537else 7538 echo "$as_me:$LINENO: result: no" >&5 7539echo "${ECHO_T}no" >&6 7540fi 7541 7542echo "$as_me:$LINENO: checking preset aCC for HPUX with optimization flags " >&5 7543echo $ECHO_N "checking preset aCC for HPUX with optimization flags ... $ECHO_C" >&6 7544WANT_HPUX_CC_FLAGS=0 7545if (test "$with_hpux_cc" = "yes" || ((test $use_preset = 0) && test $CXX = "aCC")) then 7546 WANT_HPUX_CC_FLAGS=1 7547 echo "$as_me:$LINENO: result: yes" >&5 7548echo "${ECHO_T}yes" >&6 7549 CC="cc" 7550 CFLAGS="+Z +DD64 -fast -DNDEBUG" 7551 CXX="aCC" 7552 CXXFLAGS="+Z +DD64 +O2 +Oaggressive +noeh -AA +W67,829,336 -DNDEBUG" 7553 LIBS="-lm -lnsl" 7554else 7555 echo "$as_me:$LINENO: result: no" >&5 7556echo "${ECHO_T}no" >&6 7557fi 7558 7559echo "$as_me:$LINENO: checking preset aCC for HPUX with debugging flags " >&5 7560echo $ECHO_N "checking preset aCC for HPUX with debugging flags ... $ECHO_C" >&6 7561WANT_HPUX_CC_DEBUG_FLAGS=0 7562if test "$with_hpux_cc_debug" = "yes"; then 7563 WANT_HPUX_CC_DEBUG_FLAGS=1 7564 echo "$as_me:$LINENO: result: yes" >&5 7565echo "${ECHO_T}yes" >&6 7566 CC="cc" 7567 CFLAGS="+DD64 +Z -g1" 7568 CXX="aCC" 7569 CXXFLAGS="+DD64 +Z -AA -g1 +W67,829,336" 7570 LIBS="-lm -lnsl" 7571else 7572 echo "$as_me:$LINENO: result: no" >&5 7573echo "${ECHO_T}no" >&6 7574fi 7575 7576echo "$as_me:$LINENO: checking preset aCC for HPUX with MPI and optimization flags " >&5 7577echo $ECHO_N "checking preset aCC for HPUX with MPI and optimization flags ... $ECHO_C" >&6 7578WANT_HPUX_CC_MPI_FLAGS=0 7579if test "$with_hpux_cc_mpi" = "yes"; then 7580 unset CC 7581 unset CXX 7582 WANT_HPUX_CC_MPI_FLAGS=1 7583 echo "$as_me:$LINENO: result: yes" >&5 7584echo "${ECHO_T}yes" >&6 7585 CC="mpicc" 7586 CFLAGS="+Z +DD64 -fast -DNDEBUG -DHAVE_MPI" 7587 ac_ext=cc 7588ac_cpp='$CXXCPP $CPPFLAGS' 7589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7592 7593 ac_ext=cc 7594ac_cpp='$CXXCPP $CPPFLAGS' 7595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7598if test -n "$ac_tool_prefix"; then 7599 for ac_prog in $CCC mpiCC mpicxx mpic++ 7600 do 7601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7602set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7603echo "$as_me:$LINENO: checking for $ac_word" >&5 7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7605if test "${ac_cv_prog_CXX+set}" = set; then 7606 echo $ECHO_N "(cached) $ECHO_C" >&6 7607else 7608 if test -n "$CXX"; then 7609 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623done 7624 7625fi 7626fi 7627CXX=$ac_cv_prog_CXX 7628if test -n "$CXX"; then 7629 echo "$as_me:$LINENO: result: $CXX" >&5 7630echo "${ECHO_T}$CXX" >&6 7631else 7632 echo "$as_me:$LINENO: result: no" >&5 7633echo "${ECHO_T}no" >&6 7634fi 7635 7636 test -n "$CXX" && break 7637 done 7638fi 7639if test -z "$CXX"; then 7640 ac_ct_CXX=$CXX 7641 for ac_prog in $CCC mpiCC mpicxx mpic++ 7642do 7643 # Extract the first word of "$ac_prog", so it can be a program name with args. 7644set dummy $ac_prog; ac_word=$2 7645echo "$as_me:$LINENO: checking for $ac_word" >&5 7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7647if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7648 echo $ECHO_N "(cached) $ECHO_C" >&6 7649else 7650 if test -n "$ac_ct_CXX"; then 7651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7652else 7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7654for as_dir in $PATH 7655do 7656 IFS=$as_save_IFS 7657 test -z "$as_dir" && as_dir=. 7658 for ac_exec_ext in '' $ac_executable_extensions; do 7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7660 ac_cv_prog_ac_ct_CXX="$ac_prog" 7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7662 break 2 7663 fi 7664done 7665done 7666 7667fi 7668fi 7669ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7670if test -n "$ac_ct_CXX"; then 7671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7672echo "${ECHO_T}$ac_ct_CXX" >&6 7673else 7674 echo "$as_me:$LINENO: result: no" >&5 7675echo "${ECHO_T}no" >&6 7676fi 7677 7678 test -n "$ac_ct_CXX" && break 7679done 7680test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 7681 7682 CXX=$ac_ct_CXX 7683fi 7684 7685 7686# Provide some information about the compiler. 7687echo "$as_me:$LINENO:" \ 7688 "checking for C++ compiler version" >&5 7689ac_compiler=`set X $ac_compile; echo $2` 7690{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7691 (eval $ac_compiler --version </dev/null >&5) 2>&5 7692 ac_status=$? 7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7694 (exit $ac_status); } 7695{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7696 (eval $ac_compiler -v </dev/null >&5) 2>&5 7697 ac_status=$? 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7699 (exit $ac_status); } 7700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7701 (eval $ac_compiler -V </dev/null >&5) 2>&5 7702 ac_status=$? 7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7704 (exit $ac_status); } 7705 7706echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7707echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 7708if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7709 echo $ECHO_N "(cached) $ECHO_C" >&6 7710else 7711 cat >conftest.$ac_ext <<_ACEOF 7712#line $LINENO "configure" 7713/* confdefs.h. */ 7714_ACEOF 7715cat confdefs.h >>conftest.$ac_ext 7716cat >>conftest.$ac_ext <<_ACEOF 7717/* end confdefs.h. */ 7718 7719int 7720main () 7721{ 7722#ifndef __GNUC__ 7723 choke me 7724#endif 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730rm -f conftest.$ac_objext 7731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7732 (eval $ac_compile) 2>&5 7733 ac_status=$? 7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7735 (exit $ac_status); } && 7736 { ac_try='test -s conftest.$ac_objext' 7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7738 (eval $ac_try) 2>&5 7739 ac_status=$? 7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7741 (exit $ac_status); }; }; then 7742 ac_compiler_gnu=yes 7743else 7744 echo "$as_me: failed program was:" >&5 7745sed 's/^/| /' conftest.$ac_ext >&5 7746 7747ac_compiler_gnu=no 7748fi 7749rm -f conftest.$ac_objext conftest.$ac_ext 7750ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7751 7752fi 7753echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7754echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 7755GXX=`test $ac_compiler_gnu = yes && echo yes` 7756ac_test_CXXFLAGS=${CXXFLAGS+set} 7757ac_save_CXXFLAGS=$CXXFLAGS 7758CXXFLAGS="-g" 7759echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7760echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 7761if test "${ac_cv_prog_cxx_g+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763else 7764 cat >conftest.$ac_ext <<_ACEOF 7765#line $LINENO "configure" 7766/* confdefs.h. */ 7767_ACEOF 7768cat confdefs.h >>conftest.$ac_ext 7769cat >>conftest.$ac_ext <<_ACEOF 7770/* end confdefs.h. */ 7771 7772int 7773main () 7774{ 7775 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780rm -f conftest.$ac_objext 7781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7782 (eval $ac_compile) 2>&5 7783 ac_status=$? 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7785 (exit $ac_status); } && 7786 { ac_try='test -s conftest.$ac_objext' 7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7788 (eval $ac_try) 2>&5 7789 ac_status=$? 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7791 (exit $ac_status); }; }; then 7792 ac_cv_prog_cxx_g=yes 7793else 7794 echo "$as_me: failed program was:" >&5 7795sed 's/^/| /' conftest.$ac_ext >&5 7796 7797ac_cv_prog_cxx_g=no 7798fi 7799rm -f conftest.$ac_objext conftest.$ac_ext 7800fi 7801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 7803if test "$ac_test_CXXFLAGS" = set; then 7804 CXXFLAGS=$ac_save_CXXFLAGS 7805elif test $ac_cv_prog_cxx_g = yes; then 7806 if test "$GXX" = yes; then 7807 CXXFLAGS="-g -O2" 7808 else 7809 CXXFLAGS="-g" 7810 fi 7811else 7812 if test "$GXX" = yes; then 7813 CXXFLAGS="-O2" 7814 else 7815 CXXFLAGS= 7816 fi 7817fi 7818for ac_declaration in \ 7819 ''\ 7820 '#include <stdlib.h>' \ 7821 'extern "C" void std::exit (int) throw (); using std::exit;' \ 7822 'extern "C" void std::exit (int); using std::exit;' \ 7823 'extern "C" void exit (int) throw ();' \ 7824 'extern "C" void exit (int);' \ 7825 'void exit (int);' 7826do 7827 cat >conftest.$ac_ext <<_ACEOF 7828#line $LINENO "configure" 7829/* confdefs.h. */ 7830_ACEOF 7831cat confdefs.h >>conftest.$ac_ext 7832cat >>conftest.$ac_ext <<_ACEOF 7833/* end confdefs.h. */ 7834#include <stdlib.h> 7835$ac_declaration 7836int 7837main () 7838{ 7839exit (42); 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844rm -f conftest.$ac_objext 7845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7846 (eval $ac_compile) 2>&5 7847 ac_status=$? 7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7849 (exit $ac_status); } && 7850 { ac_try='test -s conftest.$ac_objext' 7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7852 (eval $ac_try) 2>&5 7853 ac_status=$? 7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7855 (exit $ac_status); }; }; then 7856 : 7857else 7858 echo "$as_me: failed program was:" >&5 7859sed 's/^/| /' conftest.$ac_ext >&5 7860 7861continue 7862fi 7863rm -f conftest.$ac_objext conftest.$ac_ext 7864 cat >conftest.$ac_ext <<_ACEOF 7865#line $LINENO "configure" 7866/* confdefs.h. */ 7867_ACEOF 7868cat confdefs.h >>conftest.$ac_ext 7869cat >>conftest.$ac_ext <<_ACEOF 7870/* end confdefs.h. */ 7871$ac_declaration 7872int 7873main () 7874{ 7875exit (42); 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880rm -f conftest.$ac_objext 7881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7882 (eval $ac_compile) 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); } && 7886 { ac_try='test -s conftest.$ac_objext' 7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7888 (eval $ac_try) 2>&5 7889 ac_status=$? 7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7891 (exit $ac_status); }; }; then 7892 break 7893else 7894 echo "$as_me: failed program was:" >&5 7895sed 's/^/| /' conftest.$ac_ext >&5 7896 7897fi 7898rm -f conftest.$ac_objext conftest.$ac_ext 7899done 7900rm -f conftest* 7901if test -n "$ac_declaration"; then 7902 echo '#ifdef __cplusplus' >>confdefs.h 7903 echo $ac_declaration >>confdefs.h 7904 echo '#endif' >>confdefs.h 7905fi 7906 7907ac_ext=cc 7908ac_cpp='$CXXCPP $CPPFLAGS' 7909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7912 7913depcc="$CXX" am_compiler_list= 7914 7915echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7916echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 7917if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7918 echo $ECHO_N "(cached) $ECHO_C" >&6 7919else 7920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7921 # We make a subdir and do the tests there. Otherwise we can end up 7922 # making bogus files that we don't know about and never remove. For 7923 # instance it was reported that on HP-UX the gcc test will end up 7924 # making a dummy file named `D' -- because `-MD' means `put the output 7925 # in D'. 7926 mkdir conftest.dir 7927 # Copy depcomp to subdir because otherwise we won't find it if we're 7928 # using a relative directory. 7929 cp "$am_depcomp" conftest.dir 7930 cd conftest.dir 7931 7932 am_cv_CXX_dependencies_compiler_type=none 7933 if test "$am_compiler_list" = ""; then 7934 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7935 fi 7936 for depmode in $am_compiler_list; do 7937 # We need to recreate these files for each test, as the compiler may 7938 # overwrite some of them when testing with obscure command lines. 7939 # This happens at least with the AIX C compiler. 7940 echo '#include "conftest.h"' > conftest.c 7941 echo 'int i;' > conftest.h 7942 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 7943 7944 case $depmode in 7945 nosideeffect) 7946 # after this tag, mechanisms are not by side-effect, so they'll 7947 # only be used when explicitly requested 7948 if test "x$enable_dependency_tracking" = xyes; then 7949 continue 7950 else 7951 break 7952 fi 7953 ;; 7954 none) break ;; 7955 esac 7956 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7957 # mode. It turns out that the SunPro C++ compiler does not properly 7958 # handle `-M -o', and we need to detect this. 7959 if depmode=$depmode \ 7960 source=conftest.c object=conftest.o \ 7961 depfile=conftest.Po tmpdepfile=conftest.TPo \ 7962 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 7963 grep conftest.h conftest.Po > /dev/null 2>&1 && 7964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7965 am_cv_CXX_dependencies_compiler_type=$depmode 7966 break 7967 fi 7968 done 7969 7970 cd .. 7971 rm -rf conftest.dir 7972else 7973 am_cv_CXX_dependencies_compiler_type=none 7974fi 7975 7976fi 7977echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7978echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 7979CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7980 7981 7982 CXXFLAGS="+Z +DD64 +O2 +Oaggressive +noeh -AA +W67,829,336 -DNDEBUG -DHAVE_MPI" 7983 LIBS="-lm -lnsl" 7984else 7985 echo "$as_me:$LINENO: result: no" >&5 7986echo "${ECHO_T}no" >&6 7987fi 7988 7989echo "$as_me:$LINENO: checking preset aCC for HPUX with MPI and debugging flags " >&5 7990echo $ECHO_N "checking preset aCC for HPUX with MPI and debugging flags ... $ECHO_C" >&6 7991WANT_HPUX_CC_MPI_DEBUG_FLAGS=0 7992if test "$with_hpux_cc_mpi_debug" = "yes"; then 7993 unset CC 7994 unset CXX 7995 WANT_HPUX_CC_MPI_DEBUG_FLAGS=1 7996 echo "$as_me:$LINENO: result: yes" >&5 7997echo "${ECHO_T}yes" >&6 7998 CC="mpicc" 7999 CFLAGS="+DD64 +Z -g1 -DHAVE_MPI" 8000 ac_ext=cc 8001ac_cpp='$CXXCPP $CPPFLAGS' 8002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8005 8006 ac_ext=cc 8007ac_cpp='$CXXCPP $CPPFLAGS' 8008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8011if test -n "$ac_tool_prefix"; then 8012 for ac_prog in $CCC mpiCC mpicxx mpic++ 8013 do 8014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8015set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8016echo "$as_me:$LINENO: checking for $ac_word" >&5 8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8018if test "${ac_cv_prog_CXX+set}" = set; then 8019 echo $ECHO_N "(cached) $ECHO_C" >&6 8020else 8021 if test -n "$CXX"; then 8022 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 test -z "$as_dir" && as_dir=. 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8031 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8033 break 2 8034 fi 8035done 8036done 8037 8038fi 8039fi 8040CXX=$ac_cv_prog_CXX 8041if test -n "$CXX"; then 8042 echo "$as_me:$LINENO: result: $CXX" >&5 8043echo "${ECHO_T}$CXX" >&6 8044else 8045 echo "$as_me:$LINENO: result: no" >&5 8046echo "${ECHO_T}no" >&6 8047fi 8048 8049 test -n "$CXX" && break 8050 done 8051fi 8052if test -z "$CXX"; then 8053 ac_ct_CXX=$CXX 8054 for ac_prog in $CCC mpiCC mpicxx mpic++ 8055do 8056 # Extract the first word of "$ac_prog", so it can be a program name with args. 8057set dummy $ac_prog; ac_word=$2 8058echo "$as_me:$LINENO: checking for $ac_word" >&5 8059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8060if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 8061 echo $ECHO_N "(cached) $ECHO_C" >&6 8062else 8063 if test -n "$ac_ct_CXX"; then 8064 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8065else 8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8067for as_dir in $PATH 8068do 8069 IFS=$as_save_IFS 8070 test -z "$as_dir" && as_dir=. 8071 for ac_exec_ext in '' $ac_executable_extensions; do 8072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8073 ac_cv_prog_ac_ct_CXX="$ac_prog" 8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8075 break 2 8076 fi 8077done 8078done 8079 8080fi 8081fi 8082ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8083if test -n "$ac_ct_CXX"; then 8084 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8085echo "${ECHO_T}$ac_ct_CXX" >&6 8086else 8087 echo "$as_me:$LINENO: result: no" >&5 8088echo "${ECHO_T}no" >&6 8089fi 8090 8091 test -n "$ac_ct_CXX" && break 8092done 8093test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 8094 8095 CXX=$ac_ct_CXX 8096fi 8097 8098 8099# Provide some information about the compiler. 8100echo "$as_me:$LINENO:" \ 8101 "checking for C++ compiler version" >&5 8102ac_compiler=`set X $ac_compile; echo $2` 8103{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8104 (eval $ac_compiler --version </dev/null >&5) 2>&5 8105 ac_status=$? 8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8107 (exit $ac_status); } 8108{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8109 (eval $ac_compiler -v </dev/null >&5) 2>&5 8110 ac_status=$? 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); } 8113{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8114 (eval $ac_compiler -V </dev/null >&5) 2>&5 8115 ac_status=$? 8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8117 (exit $ac_status); } 8118 8119echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8120echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 8121if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8122 echo $ECHO_N "(cached) $ECHO_C" >&6 8123else 8124 cat >conftest.$ac_ext <<_ACEOF 8125#line $LINENO "configure" 8126/* confdefs.h. */ 8127_ACEOF 8128cat confdefs.h >>conftest.$ac_ext 8129cat >>conftest.$ac_ext <<_ACEOF 8130/* end confdefs.h. */ 8131 8132int 8133main () 8134{ 8135#ifndef __GNUC__ 8136 choke me 8137#endif 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143rm -f conftest.$ac_objext 8144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8145 (eval $ac_compile) 2>&5 8146 ac_status=$? 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8148 (exit $ac_status); } && 8149 { ac_try='test -s conftest.$ac_objext' 8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8151 (eval $ac_try) 2>&5 8152 ac_status=$? 8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8154 (exit $ac_status); }; }; then 8155 ac_compiler_gnu=yes 8156else 8157 echo "$as_me: failed program was:" >&5 8158sed 's/^/| /' conftest.$ac_ext >&5 8159 8160ac_compiler_gnu=no 8161fi 8162rm -f conftest.$ac_objext conftest.$ac_ext 8163ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8164 8165fi 8166echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8167echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 8168GXX=`test $ac_compiler_gnu = yes && echo yes` 8169ac_test_CXXFLAGS=${CXXFLAGS+set} 8170ac_save_CXXFLAGS=$CXXFLAGS 8171CXXFLAGS="-g" 8172echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8173echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 8174if test "${ac_cv_prog_cxx_g+set}" = set; then 8175 echo $ECHO_N "(cached) $ECHO_C" >&6 8176else 8177 cat >conftest.$ac_ext <<_ACEOF 8178#line $LINENO "configure" 8179/* confdefs.h. */ 8180_ACEOF 8181cat confdefs.h >>conftest.$ac_ext 8182cat >>conftest.$ac_ext <<_ACEOF 8183/* end confdefs.h. */ 8184 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193rm -f conftest.$ac_objext 8194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8195 (eval $ac_compile) 2>&5 8196 ac_status=$? 8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 (exit $ac_status); } && 8199 { ac_try='test -s conftest.$ac_objext' 8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8201 (eval $ac_try) 2>&5 8202 ac_status=$? 8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8204 (exit $ac_status); }; }; then 8205 ac_cv_prog_cxx_g=yes 8206else 8207 echo "$as_me: failed program was:" >&5 8208sed 's/^/| /' conftest.$ac_ext >&5 8209 8210ac_cv_prog_cxx_g=no 8211fi 8212rm -f conftest.$ac_objext conftest.$ac_ext 8213fi 8214echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8215echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 8216if test "$ac_test_CXXFLAGS" = set; then 8217 CXXFLAGS=$ac_save_CXXFLAGS 8218elif test $ac_cv_prog_cxx_g = yes; then 8219 if test "$GXX" = yes; then 8220 CXXFLAGS="-g -O2" 8221 else 8222 CXXFLAGS="-g" 8223 fi 8224else 8225 if test "$GXX" = yes; then 8226 CXXFLAGS="-O2" 8227 else 8228 CXXFLAGS= 8229 fi 8230fi 8231for ac_declaration in \ 8232 ''\ 8233 '#include <stdlib.h>' \ 8234 'extern "C" void std::exit (int) throw (); using std::exit;' \ 8235 'extern "C" void std::exit (int); using std::exit;' \ 8236 'extern "C" void exit (int) throw ();' \ 8237 'extern "C" void exit (int);' \ 8238 'void exit (int);' 8239do 8240 cat >conftest.$ac_ext <<_ACEOF 8241#line $LINENO "configure" 8242/* confdefs.h. */ 8243_ACEOF 8244cat confdefs.h >>conftest.$ac_ext 8245cat >>conftest.$ac_ext <<_ACEOF 8246/* end confdefs.h. */ 8247#include <stdlib.h> 8248$ac_declaration 8249int 8250main () 8251{ 8252exit (42); 8253 ; 8254 return 0; 8255} 8256_ACEOF 8257rm -f conftest.$ac_objext 8258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8259 (eval $ac_compile) 2>&5 8260 ac_status=$? 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8262 (exit $ac_status); } && 8263 { ac_try='test -s conftest.$ac_objext' 8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8265 (eval $ac_try) 2>&5 8266 ac_status=$? 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 (exit $ac_status); }; }; then 8269 : 8270else 8271 echo "$as_me: failed program was:" >&5 8272sed 's/^/| /' conftest.$ac_ext >&5 8273 8274continue 8275fi 8276rm -f conftest.$ac_objext conftest.$ac_ext 8277 cat >conftest.$ac_ext <<_ACEOF 8278#line $LINENO "configure" 8279/* confdefs.h. */ 8280_ACEOF 8281cat confdefs.h >>conftest.$ac_ext 8282cat >>conftest.$ac_ext <<_ACEOF 8283/* end confdefs.h. */ 8284$ac_declaration 8285int 8286main () 8287{ 8288exit (42); 8289 ; 8290 return 0; 8291} 8292_ACEOF 8293rm -f conftest.$ac_objext 8294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8295 (eval $ac_compile) 2>&5 8296 ac_status=$? 8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298 (exit $ac_status); } && 8299 { ac_try='test -s conftest.$ac_objext' 8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8301 (eval $ac_try) 2>&5 8302 ac_status=$? 8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8304 (exit $ac_status); }; }; then 8305 break 8306else 8307 echo "$as_me: failed program was:" >&5 8308sed 's/^/| /' conftest.$ac_ext >&5 8309 8310fi 8311rm -f conftest.$ac_objext conftest.$ac_ext 8312done 8313rm -f conftest* 8314if test -n "$ac_declaration"; then 8315 echo '#ifdef __cplusplus' >>confdefs.h 8316 echo $ac_declaration >>confdefs.h 8317 echo '#endif' >>confdefs.h 8318fi 8319 8320ac_ext=cc 8321ac_cpp='$CXXCPP $CPPFLAGS' 8322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8325 8326depcc="$CXX" am_compiler_list= 8327 8328echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8329echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 8330if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8331 echo $ECHO_N "(cached) $ECHO_C" >&6 8332else 8333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8334 # We make a subdir and do the tests there. Otherwise we can end up 8335 # making bogus files that we don't know about and never remove. For 8336 # instance it was reported that on HP-UX the gcc test will end up 8337 # making a dummy file named `D' -- because `-MD' means `put the output 8338 # in D'. 8339 mkdir conftest.dir 8340 # Copy depcomp to subdir because otherwise we won't find it if we're 8341 # using a relative directory. 8342 cp "$am_depcomp" conftest.dir 8343 cd conftest.dir 8344 8345 am_cv_CXX_dependencies_compiler_type=none 8346 if test "$am_compiler_list" = ""; then 8347 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8348 fi 8349 for depmode in $am_compiler_list; do 8350 # We need to recreate these files for each test, as the compiler may 8351 # overwrite some of them when testing with obscure command lines. 8352 # This happens at least with the AIX C compiler. 8353 echo '#include "conftest.h"' > conftest.c 8354 echo 'int i;' > conftest.h 8355 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 8356 8357 case $depmode in 8358 nosideeffect) 8359 # after this tag, mechanisms are not by side-effect, so they'll 8360 # only be used when explicitly requested 8361 if test "x$enable_dependency_tracking" = xyes; then 8362 continue 8363 else 8364 break 8365 fi 8366 ;; 8367 none) break ;; 8368 esac 8369 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8370 # mode. It turns out that the SunPro C++ compiler does not properly 8371 # handle `-M -o', and we need to detect this. 8372 if depmode=$depmode \ 8373 source=conftest.c object=conftest.o \ 8374 depfile=conftest.Po tmpdepfile=conftest.TPo \ 8375 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 8376 grep conftest.h conftest.Po > /dev/null 2>&1 && 8377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8378 am_cv_CXX_dependencies_compiler_type=$depmode 8379 break 8380 fi 8381 done 8382 8383 cd .. 8384 rm -rf conftest.dir 8385else 8386 am_cv_CXX_dependencies_compiler_type=none 8387fi 8388 8389fi 8390echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8391echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 8392CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8393 8394 8395 CXXFLAGS="+DD64 +Z -AA -g1 +W67,829,336 -DHAVE_MPI" 8396 LIBS="-lm -lnsl" 8397else 8398 echo "$as_me:$LINENO: result: no" >&5 8399echo "${ECHO_T}no" >&6 8400fi 8401 8402 8403 8404 8405 8406 8407 8408 8409echo "" 8410echo "CC : $CC" 8411echo "CFLAGS : $CFLAGS" 8412echo "CXXFLAGS : $CXXFLAGS" 8413echo "CXX : $CXX" 8414echo "CXXCPP : $CXXCPP" 8415echo "LIBS : $LIBS" 8416echo "CPP : $CPP" 8417echo "CPPFLAGS : $CPPFLAGS" 8418echo "" 8419 8420# 8421# Tools 8422# 8423ac_ext=cc 8424ac_cpp='$CXXCPP $CPPFLAGS' 8425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8428 8429ac_ext=cc 8430ac_cpp='$CXXCPP $CPPFLAGS' 8431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8434if test -n "$ac_tool_prefix"; then 8435 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8436 do 8437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8438set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8439echo "$as_me:$LINENO: checking for $ac_word" >&5 8440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8441if test "${ac_cv_prog_CXX+set}" = set; then 8442 echo $ECHO_N "(cached) $ECHO_C" >&6 8443else 8444 if test -n "$CXX"; then 8445 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8446else 8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8448for as_dir in $PATH 8449do 8450 IFS=$as_save_IFS 8451 test -z "$as_dir" && as_dir=. 8452 for ac_exec_ext in '' $ac_executable_extensions; do 8453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8454 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8456 break 2 8457 fi 8458done 8459done 8460 8461fi 8462fi 8463CXX=$ac_cv_prog_CXX 8464if test -n "$CXX"; then 8465 echo "$as_me:$LINENO: result: $CXX" >&5 8466echo "${ECHO_T}$CXX" >&6 8467else 8468 echo "$as_me:$LINENO: result: no" >&5 8469echo "${ECHO_T}no" >&6 8470fi 8471 8472 test -n "$CXX" && break 8473 done 8474fi 8475if test -z "$CXX"; then 8476 ac_ct_CXX=$CXX 8477 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8478do 8479 # Extract the first word of "$ac_prog", so it can be a program name with args. 8480set dummy $ac_prog; ac_word=$2 8481echo "$as_me:$LINENO: checking for $ac_word" >&5 8482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8483if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 8484 echo $ECHO_N "(cached) $ECHO_C" >&6 8485else 8486 if test -n "$ac_ct_CXX"; then 8487 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8488else 8489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490for as_dir in $PATH 8491do 8492 IFS=$as_save_IFS 8493 test -z "$as_dir" && as_dir=. 8494 for ac_exec_ext in '' $ac_executable_extensions; do 8495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8496 ac_cv_prog_ac_ct_CXX="$ac_prog" 8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8498 break 2 8499 fi 8500done 8501done 8502 8503fi 8504fi 8505ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8506if test -n "$ac_ct_CXX"; then 8507 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8508echo "${ECHO_T}$ac_ct_CXX" >&6 8509else 8510 echo "$as_me:$LINENO: result: no" >&5 8511echo "${ECHO_T}no" >&6 8512fi 8513 8514 test -n "$ac_ct_CXX" && break 8515done 8516test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 8517 8518 CXX=$ac_ct_CXX 8519fi 8520 8521 8522# Provide some information about the compiler. 8523echo "$as_me:$LINENO:" \ 8524 "checking for C++ compiler version" >&5 8525ac_compiler=`set X $ac_compile; echo $2` 8526{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8527 (eval $ac_compiler --version </dev/null >&5) 2>&5 8528 ac_status=$? 8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8530 (exit $ac_status); } 8531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8532 (eval $ac_compiler -v </dev/null >&5) 2>&5 8533 ac_status=$? 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } 8536{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8537 (eval $ac_compiler -V </dev/null >&5) 2>&5 8538 ac_status=$? 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); } 8541 8542echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8543echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 8544if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8545 echo $ECHO_N "(cached) $ECHO_C" >&6 8546else 8547 cat >conftest.$ac_ext <<_ACEOF 8548#line $LINENO "configure" 8549/* confdefs.h. */ 8550_ACEOF 8551cat confdefs.h >>conftest.$ac_ext 8552cat >>conftest.$ac_ext <<_ACEOF 8553/* end confdefs.h. */ 8554 8555int 8556main () 8557{ 8558#ifndef __GNUC__ 8559 choke me 8560#endif 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566rm -f conftest.$ac_objext 8567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8568 (eval $ac_compile) 2>&5 8569 ac_status=$? 8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8571 (exit $ac_status); } && 8572 { ac_try='test -s conftest.$ac_objext' 8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8574 (eval $ac_try) 2>&5 8575 ac_status=$? 8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8577 (exit $ac_status); }; }; then 8578 ac_compiler_gnu=yes 8579else 8580 echo "$as_me: failed program was:" >&5 8581sed 's/^/| /' conftest.$ac_ext >&5 8582 8583ac_compiler_gnu=no 8584fi 8585rm -f conftest.$ac_objext conftest.$ac_ext 8586ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8587 8588fi 8589echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8590echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 8591GXX=`test $ac_compiler_gnu = yes && echo yes` 8592ac_test_CXXFLAGS=${CXXFLAGS+set} 8593ac_save_CXXFLAGS=$CXXFLAGS 8594CXXFLAGS="-g" 8595echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8596echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 8597if test "${ac_cv_prog_cxx_g+set}" = set; then 8598 echo $ECHO_N "(cached) $ECHO_C" >&6 8599else 8600 cat >conftest.$ac_ext <<_ACEOF 8601#line $LINENO "configure" 8602/* confdefs.h. */ 8603_ACEOF 8604cat confdefs.h >>conftest.$ac_ext 8605cat >>conftest.$ac_ext <<_ACEOF 8606/* end confdefs.h. */ 8607 8608int 8609main () 8610{ 8611 8612 ; 8613 return 0; 8614} 8615_ACEOF 8616rm -f conftest.$ac_objext 8617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8618 (eval $ac_compile) 2>&5 8619 ac_status=$? 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 (exit $ac_status); } && 8622 { ac_try='test -s conftest.$ac_objext' 8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8624 (eval $ac_try) 2>&5 8625 ac_status=$? 8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8627 (exit $ac_status); }; }; then 8628 ac_cv_prog_cxx_g=yes 8629else 8630 echo "$as_me: failed program was:" >&5 8631sed 's/^/| /' conftest.$ac_ext >&5 8632 8633ac_cv_prog_cxx_g=no 8634fi 8635rm -f conftest.$ac_objext conftest.$ac_ext 8636fi 8637echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8638echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 8639if test "$ac_test_CXXFLAGS" = set; then 8640 CXXFLAGS=$ac_save_CXXFLAGS 8641elif test $ac_cv_prog_cxx_g = yes; then 8642 if test "$GXX" = yes; then 8643 CXXFLAGS="-g -O2" 8644 else 8645 CXXFLAGS="-g" 8646 fi 8647else 8648 if test "$GXX" = yes; then 8649 CXXFLAGS="-O2" 8650 else 8651 CXXFLAGS= 8652 fi 8653fi 8654for ac_declaration in \ 8655 ''\ 8656 '#include <stdlib.h>' \ 8657 'extern "C" void std::exit (int) throw (); using std::exit;' \ 8658 'extern "C" void std::exit (int); using std::exit;' \ 8659 'extern "C" void exit (int) throw ();' \ 8660 'extern "C" void exit (int);' \ 8661 'void exit (int);' 8662do 8663 cat >conftest.$ac_ext <<_ACEOF 8664#line $LINENO "configure" 8665/* confdefs.h. */ 8666_ACEOF 8667cat confdefs.h >>conftest.$ac_ext 8668cat >>conftest.$ac_ext <<_ACEOF 8669/* end confdefs.h. */ 8670#include <stdlib.h> 8671$ac_declaration 8672int 8673main () 8674{ 8675exit (42); 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680rm -f conftest.$ac_objext 8681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8682 (eval $ac_compile) 2>&5 8683 ac_status=$? 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); } && 8686 { ac_try='test -s conftest.$ac_objext' 8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8688 (eval $ac_try) 2>&5 8689 ac_status=$? 8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8691 (exit $ac_status); }; }; then 8692 : 8693else 8694 echo "$as_me: failed program was:" >&5 8695sed 's/^/| /' conftest.$ac_ext >&5 8696 8697continue 8698fi 8699rm -f conftest.$ac_objext conftest.$ac_ext 8700 cat >conftest.$ac_ext <<_ACEOF 8701#line $LINENO "configure" 8702/* confdefs.h. */ 8703_ACEOF 8704cat confdefs.h >>conftest.$ac_ext 8705cat >>conftest.$ac_ext <<_ACEOF 8706/* end confdefs.h. */ 8707$ac_declaration 8708int 8709main () 8710{ 8711exit (42); 8712 ; 8713 return 0; 8714} 8715_ACEOF 8716rm -f conftest.$ac_objext 8717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8718 (eval $ac_compile) 2>&5 8719 ac_status=$? 8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 (exit $ac_status); } && 8722 { ac_try='test -s conftest.$ac_objext' 8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8724 (eval $ac_try) 2>&5 8725 ac_status=$? 8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8727 (exit $ac_status); }; }; then 8728 break 8729else 8730 echo "$as_me: failed program was:" >&5 8731sed 's/^/| /' conftest.$ac_ext >&5 8732 8733fi 8734rm -f conftest.$ac_objext conftest.$ac_ext 8735done 8736rm -f conftest* 8737if test -n "$ac_declaration"; then 8738 echo '#ifdef __cplusplus' >>confdefs.h 8739 echo $ac_declaration >>confdefs.h 8740 echo '#endif' >>confdefs.h 8741fi 8742 8743ac_ext=cc 8744ac_cpp='$CXXCPP $CPPFLAGS' 8745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8748 8749depcc="$CXX" am_compiler_list= 8750 8751echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8752echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 8753if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8754 echo $ECHO_N "(cached) $ECHO_C" >&6 8755else 8756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8757 # We make a subdir and do the tests there. Otherwise we can end up 8758 # making bogus files that we don't know about and never remove. For 8759 # instance it was reported that on HP-UX the gcc test will end up 8760 # making a dummy file named `D' -- because `-MD' means `put the output 8761 # in D'. 8762 mkdir conftest.dir 8763 # Copy depcomp to subdir because otherwise we won't find it if we're 8764 # using a relative directory. 8765 cp "$am_depcomp" conftest.dir 8766 cd conftest.dir 8767 8768 am_cv_CXX_dependencies_compiler_type=none 8769 if test "$am_compiler_list" = ""; then 8770 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8771 fi 8772 for depmode in $am_compiler_list; do 8773 # We need to recreate these files for each test, as the compiler may 8774 # overwrite some of them when testing with obscure command lines. 8775 # This happens at least with the AIX C compiler. 8776 echo '#include "conftest.h"' > conftest.c 8777 echo 'int i;' > conftest.h 8778 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 8779 8780 case $depmode in 8781 nosideeffect) 8782 # after this tag, mechanisms are not by side-effect, so they'll 8783 # only be used when explicitly requested 8784 if test "x$enable_dependency_tracking" = xyes; then 8785 continue 8786 else 8787 break 8788 fi 8789 ;; 8790 none) break ;; 8791 esac 8792 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8793 # mode. It turns out that the SunPro C++ compiler does not properly 8794 # handle `-M -o', and we need to detect this. 8795 if depmode=$depmode \ 8796 source=conftest.c object=conftest.o \ 8797 depfile=conftest.Po tmpdepfile=conftest.TPo \ 8798 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 8799 grep conftest.h conftest.Po > /dev/null 2>&1 && 8800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8801 am_cv_CXX_dependencies_compiler_type=$depmode 8802 break 8803 fi 8804 done 8805 8806 cd .. 8807 rm -rf conftest.dir 8808else 8809 am_cv_CXX_dependencies_compiler_type=none 8810fi 8811 8812fi 8813echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8814echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 8815CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8816 8817 8818ac_ext=cc 8819ac_cpp='$CXXCPP $CPPFLAGS' 8820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8823echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8824echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 8825if test -z "$CXXCPP"; then 8826 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8827 echo $ECHO_N "(cached) $ECHO_C" >&6 8828else 8829 # Double quotes because CXXCPP needs to be expanded 8830 for CXXCPP in "$CXX -E" "/lib/cpp" 8831 do 8832 ac_preproc_ok=false 8833for ac_cxx_preproc_warn_flag in '' yes 8834do 8835 # Use a header file that comes with gcc, so configuring glibc 8836 # with a fresh cross-compiler works. 8837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8838 # <limits.h> exists even on freestanding compilers. 8839 # On the NeXT, cc -E runs the code through the compiler's parser, 8840 # not just through cpp. "Syntax error" is here to catch this case. 8841 cat >conftest.$ac_ext <<_ACEOF 8842#line $LINENO "configure" 8843/* confdefs.h. */ 8844_ACEOF 8845cat confdefs.h >>conftest.$ac_ext 8846cat >>conftest.$ac_ext <<_ACEOF 8847/* end confdefs.h. */ 8848#ifdef __STDC__ 8849# include <limits.h> 8850#else 8851# include <assert.h> 8852#endif 8853 Syntax error 8854_ACEOF 8855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8857 ac_status=$? 8858 grep -v '^ *+' conftest.er1 >conftest.err 8859 rm -f conftest.er1 8860 cat conftest.err >&5 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8862 (exit $ac_status); } >/dev/null; then 8863 if test -s conftest.err; then 8864 ac_cpp_err=$ac_cxx_preproc_warn_flag 8865 else 8866 ac_cpp_err= 8867 fi 8868else 8869 ac_cpp_err=yes 8870fi 8871if test -z "$ac_cpp_err"; then 8872 : 8873else 8874 echo "$as_me: failed program was:" >&5 8875sed 's/^/| /' conftest.$ac_ext >&5 8876 8877 # Broken: fails on valid input. 8878continue 8879fi 8880rm -f conftest.err conftest.$ac_ext 8881 8882 # OK, works on sane cases. Now check whether non-existent headers 8883 # can be detected and how. 8884 cat >conftest.$ac_ext <<_ACEOF 8885#line $LINENO "configure" 8886/* confdefs.h. */ 8887_ACEOF 8888cat confdefs.h >>conftest.$ac_ext 8889cat >>conftest.$ac_ext <<_ACEOF 8890/* end confdefs.h. */ 8891#include <ac_nonexistent.h> 8892_ACEOF 8893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8895 ac_status=$? 8896 grep -v '^ *+' conftest.er1 >conftest.err 8897 rm -f conftest.er1 8898 cat conftest.err >&5 8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8900 (exit $ac_status); } >/dev/null; then 8901 if test -s conftest.err; then 8902 ac_cpp_err=$ac_cxx_preproc_warn_flag 8903 else 8904 ac_cpp_err= 8905 fi 8906else 8907 ac_cpp_err=yes 8908fi 8909if test -z "$ac_cpp_err"; then 8910 # Broken: success on invalid input. 8911continue 8912else 8913 echo "$as_me: failed program was:" >&5 8914sed 's/^/| /' conftest.$ac_ext >&5 8915 8916 # Passes both tests. 8917ac_preproc_ok=: 8918break 8919fi 8920rm -f conftest.err conftest.$ac_ext 8921 8922done 8923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8924rm -f conftest.err conftest.$ac_ext 8925if $ac_preproc_ok; then 8926 break 8927fi 8928 8929 done 8930 ac_cv_prog_CXXCPP=$CXXCPP 8931 8932fi 8933 CXXCPP=$ac_cv_prog_CXXCPP 8934else 8935 ac_cv_prog_CXXCPP=$CXXCPP 8936fi 8937echo "$as_me:$LINENO: result: $CXXCPP" >&5 8938echo "${ECHO_T}$CXXCPP" >&6 8939ac_preproc_ok=false 8940for ac_cxx_preproc_warn_flag in '' yes 8941do 8942 # Use a header file that comes with gcc, so configuring glibc 8943 # with a fresh cross-compiler works. 8944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8945 # <limits.h> exists even on freestanding compilers. 8946 # On the NeXT, cc -E runs the code through the compiler's parser, 8947 # not just through cpp. "Syntax error" is here to catch this case. 8948 cat >conftest.$ac_ext <<_ACEOF 8949#line $LINENO "configure" 8950/* confdefs.h. */ 8951_ACEOF 8952cat confdefs.h >>conftest.$ac_ext 8953cat >>conftest.$ac_ext <<_ACEOF 8954/* end confdefs.h. */ 8955#ifdef __STDC__ 8956# include <limits.h> 8957#else 8958# include <assert.h> 8959#endif 8960 Syntax error 8961_ACEOF 8962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8964 ac_status=$? 8965 grep -v '^ *+' conftest.er1 >conftest.err 8966 rm -f conftest.er1 8967 cat conftest.err >&5 8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8969 (exit $ac_status); } >/dev/null; then 8970 if test -s conftest.err; then 8971 ac_cpp_err=$ac_cxx_preproc_warn_flag 8972 else 8973 ac_cpp_err= 8974 fi 8975else 8976 ac_cpp_err=yes 8977fi 8978if test -z "$ac_cpp_err"; then 8979 : 8980else 8981 echo "$as_me: failed program was:" >&5 8982sed 's/^/| /' conftest.$ac_ext >&5 8983 8984 # Broken: fails on valid input. 8985continue 8986fi 8987rm -f conftest.err conftest.$ac_ext 8988 8989 # OK, works on sane cases. Now check whether non-existent headers 8990 # can be detected and how. 8991 cat >conftest.$ac_ext <<_ACEOF 8992#line $LINENO "configure" 8993/* confdefs.h. */ 8994_ACEOF 8995cat confdefs.h >>conftest.$ac_ext 8996cat >>conftest.$ac_ext <<_ACEOF 8997/* end confdefs.h. */ 8998#include <ac_nonexistent.h> 8999_ACEOF 9000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9002 ac_status=$? 9003 grep -v '^ *+' conftest.er1 >conftest.err 9004 rm -f conftest.er1 9005 cat conftest.err >&5 9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 (exit $ac_status); } >/dev/null; then 9008 if test -s conftest.err; then 9009 ac_cpp_err=$ac_cxx_preproc_warn_flag 9010 else 9011 ac_cpp_err= 9012 fi 9013else 9014 ac_cpp_err=yes 9015fi 9016if test -z "$ac_cpp_err"; then 9017 # Broken: success on invalid input. 9018continue 9019else 9020 echo "$as_me: failed program was:" >&5 9021sed 's/^/| /' conftest.$ac_ext >&5 9022 9023 # Passes both tests. 9024ac_preproc_ok=: 9025break 9026fi 9027rm -f conftest.err conftest.$ac_ext 9028 9029done 9030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9031rm -f conftest.err conftest.$ac_ext 9032if $ac_preproc_ok; then 9033 : 9034else 9035 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9036See \`config.log' for more details." >&5 9037echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9038See \`config.log' for more details." >&2;} 9039 { (exit 1); exit 1; }; } 9040fi 9041 9042ac_ext=cc 9043ac_cpp='$CXXCPP $CPPFLAGS' 9044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9047 9048ac_ext=c 9049ac_cpp='$CPP $CPPFLAGS' 9050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9052ac_compiler_gnu=$ac_cv_c_compiler_gnu 9053if test -n "$ac_tool_prefix"; then 9054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 9055set dummy ${ac_tool_prefix}gcc; ac_word=$2 9056echo "$as_me:$LINENO: checking for $ac_word" >&5 9057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9058if test "${ac_cv_prog_CC+set}" = set; then 9059 echo $ECHO_N "(cached) $ECHO_C" >&6 9060else 9061 if test -n "$CC"; then 9062 ac_cv_prog_CC="$CC" # Let the user override the test. 9063else 9064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9065for as_dir in $PATH 9066do 9067 IFS=$as_save_IFS 9068 test -z "$as_dir" && as_dir=. 9069 for ac_exec_ext in '' $ac_executable_extensions; do 9070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9071 ac_cv_prog_CC="${ac_tool_prefix}gcc" 9072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9073 break 2 9074 fi 9075done 9076done 9077 9078fi 9079fi 9080CC=$ac_cv_prog_CC 9081if test -n "$CC"; then 9082 echo "$as_me:$LINENO: result: $CC" >&5 9083echo "${ECHO_T}$CC" >&6 9084else 9085 echo "$as_me:$LINENO: result: no" >&5 9086echo "${ECHO_T}no" >&6 9087fi 9088 9089fi 9090if test -z "$ac_cv_prog_CC"; then 9091 ac_ct_CC=$CC 9092 # Extract the first word of "gcc", so it can be a program name with args. 9093set dummy gcc; ac_word=$2 9094echo "$as_me:$LINENO: checking for $ac_word" >&5 9095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9096if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 9097 echo $ECHO_N "(cached) $ECHO_C" >&6 9098else 9099 if test -n "$ac_ct_CC"; then 9100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 9101else 9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9103for as_dir in $PATH 9104do 9105 IFS=$as_save_IFS 9106 test -z "$as_dir" && as_dir=. 9107 for ac_exec_ext in '' $ac_executable_extensions; do 9108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9109 ac_cv_prog_ac_ct_CC="gcc" 9110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9111 break 2 9112 fi 9113done 9114done 9115 9116fi 9117fi 9118ac_ct_CC=$ac_cv_prog_ac_ct_CC 9119if test -n "$ac_ct_CC"; then 9120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 9121echo "${ECHO_T}$ac_ct_CC" >&6 9122else 9123 echo "$as_me:$LINENO: result: no" >&5 9124echo "${ECHO_T}no" >&6 9125fi 9126 9127 CC=$ac_ct_CC 9128else 9129 CC="$ac_cv_prog_CC" 9130fi 9131 9132if test -z "$CC"; then 9133 if test -n "$ac_tool_prefix"; then 9134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 9135set dummy ${ac_tool_prefix}cc; ac_word=$2 9136echo "$as_me:$LINENO: checking for $ac_word" >&5 9137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9138if test "${ac_cv_prog_CC+set}" = set; then 9139 echo $ECHO_N "(cached) $ECHO_C" >&6 9140else 9141 if test -n "$CC"; then 9142 ac_cv_prog_CC="$CC" # Let the user override the test. 9143else 9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9145for as_dir in $PATH 9146do 9147 IFS=$as_save_IFS 9148 test -z "$as_dir" && as_dir=. 9149 for ac_exec_ext in '' $ac_executable_extensions; do 9150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9151 ac_cv_prog_CC="${ac_tool_prefix}cc" 9152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9153 break 2 9154 fi 9155done 9156done 9157 9158fi 9159fi 9160CC=$ac_cv_prog_CC 9161if test -n "$CC"; then 9162 echo "$as_me:$LINENO: result: $CC" >&5 9163echo "${ECHO_T}$CC" >&6 9164else 9165 echo "$as_me:$LINENO: result: no" >&5 9166echo "${ECHO_T}no" >&6 9167fi 9168 9169fi 9170if test -z "$ac_cv_prog_CC"; then 9171 ac_ct_CC=$CC 9172 # Extract the first word of "cc", so it can be a program name with args. 9173set dummy cc; ac_word=$2 9174echo "$as_me:$LINENO: checking for $ac_word" >&5 9175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9176if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 9177 echo $ECHO_N "(cached) $ECHO_C" >&6 9178else 9179 if test -n "$ac_ct_CC"; then 9180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 9181else 9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9183for as_dir in $PATH 9184do 9185 IFS=$as_save_IFS 9186 test -z "$as_dir" && as_dir=. 9187 for ac_exec_ext in '' $ac_executable_extensions; do 9188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9189 ac_cv_prog_ac_ct_CC="cc" 9190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9191 break 2 9192 fi 9193done 9194done 9195 9196fi 9197fi 9198ac_ct_CC=$ac_cv_prog_ac_ct_CC 9199if test -n "$ac_ct_CC"; then 9200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 9201echo "${ECHO_T}$ac_ct_CC" >&6 9202else 9203 echo "$as_me:$LINENO: result: no" >&5 9204echo "${ECHO_T}no" >&6 9205fi 9206 9207 CC=$ac_ct_CC 9208else 9209 CC="$ac_cv_prog_CC" 9210fi 9211 9212fi 9213if test -z "$CC"; then 9214 # Extract the first word of "cc", so it can be a program name with args. 9215set dummy cc; ac_word=$2 9216echo "$as_me:$LINENO: checking for $ac_word" >&5 9217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9218if test "${ac_cv_prog_CC+set}" = set; then 9219 echo $ECHO_N "(cached) $ECHO_C" >&6 9220else 9221 if test -n "$CC"; then 9222 ac_cv_prog_CC="$CC" # Let the user override the test. 9223else 9224 ac_prog_rejected=no 9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9226for as_dir in $PATH 9227do 9228 IFS=$as_save_IFS 9229 test -z "$as_dir" && as_dir=. 9230 for ac_exec_ext in '' $ac_executable_extensions; do 9231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 9233 ac_prog_rejected=yes 9234 continue 9235 fi 9236 ac_cv_prog_CC="cc" 9237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9238 break 2 9239 fi 9240done 9241done 9242 9243if test $ac_prog_rejected = yes; then 9244 # We found a bogon in the path, so make sure we never use it. 9245 set dummy $ac_cv_prog_CC 9246 shift 9247 if test $# != 0; then 9248 # We chose a different compiler from the bogus one. 9249 # However, it has the same basename, so the bogon will be chosen 9250 # first if we set CC to just the basename; use the full file name. 9251 shift 9252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 9253 fi 9254fi 9255fi 9256fi 9257CC=$ac_cv_prog_CC 9258if test -n "$CC"; then 9259 echo "$as_me:$LINENO: result: $CC" >&5 9260echo "${ECHO_T}$CC" >&6 9261else 9262 echo "$as_me:$LINENO: result: no" >&5 9263echo "${ECHO_T}no" >&6 9264fi 9265 9266fi 9267if test -z "$CC"; then 9268 if test -n "$ac_tool_prefix"; then 9269 for ac_prog in cl 9270 do 9271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9273echo "$as_me:$LINENO: checking for $ac_word" >&5 9274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9275if test "${ac_cv_prog_CC+set}" = set; then 9276 echo $ECHO_N "(cached) $ECHO_C" >&6 9277else 9278 if test -n "$CC"; then 9279 ac_cv_prog_CC="$CC" # Let the user override the test. 9280else 9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9282for as_dir in $PATH 9283do 9284 IFS=$as_save_IFS 9285 test -z "$as_dir" && as_dir=. 9286 for ac_exec_ext in '' $ac_executable_extensions; do 9287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 9289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9290 break 2 9291 fi 9292done 9293done 9294 9295fi 9296fi 9297CC=$ac_cv_prog_CC 9298if test -n "$CC"; then 9299 echo "$as_me:$LINENO: result: $CC" >&5 9300echo "${ECHO_T}$CC" >&6 9301else 9302 echo "$as_me:$LINENO: result: no" >&5 9303echo "${ECHO_T}no" >&6 9304fi 9305 9306 test -n "$CC" && break 9307 done 9308fi 9309if test -z "$CC"; then 9310 ac_ct_CC=$CC 9311 for ac_prog in cl 9312do 9313 # Extract the first word of "$ac_prog", so it can be a program name with args. 9314set dummy $ac_prog; ac_word=$2 9315echo "$as_me:$LINENO: checking for $ac_word" >&5 9316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 9318 echo $ECHO_N "(cached) $ECHO_C" >&6 9319else 9320 if test -n "$ac_ct_CC"; then 9321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 9322else 9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9324for as_dir in $PATH 9325do 9326 IFS=$as_save_IFS 9327 test -z "$as_dir" && as_dir=. 9328 for ac_exec_ext in '' $ac_executable_extensions; do 9329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9330 ac_cv_prog_ac_ct_CC="$ac_prog" 9331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9332 break 2 9333 fi 9334done 9335done 9336 9337fi 9338fi 9339ac_ct_CC=$ac_cv_prog_ac_ct_CC 9340if test -n "$ac_ct_CC"; then 9341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 9342echo "${ECHO_T}$ac_ct_CC" >&6 9343else 9344 echo "$as_me:$LINENO: result: no" >&5 9345echo "${ECHO_T}no" >&6 9346fi 9347 9348 test -n "$ac_ct_CC" && break 9349done 9350 9351 CC=$ac_ct_CC 9352fi 9353 9354fi 9355 9356 9357test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 9358See \`config.log' for more details." >&5 9359echo "$as_me: error: no acceptable C compiler found in \$PATH 9360See \`config.log' for more details." >&2;} 9361 { (exit 1); exit 1; }; } 9362 9363# Provide some information about the compiler. 9364echo "$as_me:$LINENO:" \ 9365 "checking for C compiler version" >&5 9366ac_compiler=`set X $ac_compile; echo $2` 9367{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 9368 (eval $ac_compiler --version </dev/null >&5) 2>&5 9369 ac_status=$? 9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9371 (exit $ac_status); } 9372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 9373 (eval $ac_compiler -v </dev/null >&5) 2>&5 9374 ac_status=$? 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 (exit $ac_status); } 9377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 9378 (eval $ac_compiler -V </dev/null >&5) 2>&5 9379 ac_status=$? 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } 9382 9383echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 9384echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 9385if test "${ac_cv_c_compiler_gnu+set}" = set; then 9386 echo $ECHO_N "(cached) $ECHO_C" >&6 9387else 9388 cat >conftest.$ac_ext <<_ACEOF 9389#line $LINENO "configure" 9390/* confdefs.h. */ 9391_ACEOF 9392cat confdefs.h >>conftest.$ac_ext 9393cat >>conftest.$ac_ext <<_ACEOF 9394/* end confdefs.h. */ 9395 9396int 9397main () 9398{ 9399#ifndef __GNUC__ 9400 choke me 9401#endif 9402 9403 ; 9404 return 0; 9405} 9406_ACEOF 9407rm -f conftest.$ac_objext 9408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9409 (eval $ac_compile) 2>&5 9410 ac_status=$? 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 (exit $ac_status); } && 9413 { ac_try='test -s conftest.$ac_objext' 9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9415 (eval $ac_try) 2>&5 9416 ac_status=$? 9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9418 (exit $ac_status); }; }; then 9419 ac_compiler_gnu=yes 9420else 9421 echo "$as_me: failed program was:" >&5 9422sed 's/^/| /' conftest.$ac_ext >&5 9423 9424ac_compiler_gnu=no 9425fi 9426rm -f conftest.$ac_objext conftest.$ac_ext 9427ac_cv_c_compiler_gnu=$ac_compiler_gnu 9428 9429fi 9430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 9431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 9432GCC=`test $ac_compiler_gnu = yes && echo yes` 9433ac_test_CFLAGS=${CFLAGS+set} 9434ac_save_CFLAGS=$CFLAGS 9435CFLAGS="-g" 9436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 9437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 9438if test "${ac_cv_prog_cc_g+set}" = set; then 9439 echo $ECHO_N "(cached) $ECHO_C" >&6 9440else 9441 cat >conftest.$ac_ext <<_ACEOF 9442#line $LINENO "configure" 9443/* confdefs.h. */ 9444_ACEOF 9445cat confdefs.h >>conftest.$ac_ext 9446cat >>conftest.$ac_ext <<_ACEOF 9447/* end confdefs.h. */ 9448 9449int 9450main () 9451{ 9452 9453 ; 9454 return 0; 9455} 9456_ACEOF 9457rm -f conftest.$ac_objext 9458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9459 (eval $ac_compile) 2>&5 9460 ac_status=$? 9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9462 (exit $ac_status); } && 9463 { ac_try='test -s conftest.$ac_objext' 9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9465 (eval $ac_try) 2>&5 9466 ac_status=$? 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); }; }; then 9469 ac_cv_prog_cc_g=yes 9470else 9471 echo "$as_me: failed program was:" >&5 9472sed 's/^/| /' conftest.$ac_ext >&5 9473 9474ac_cv_prog_cc_g=no 9475fi 9476rm -f conftest.$ac_objext conftest.$ac_ext 9477fi 9478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 9479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 9480if test "$ac_test_CFLAGS" = set; then 9481 CFLAGS=$ac_save_CFLAGS 9482elif test $ac_cv_prog_cc_g = yes; then 9483 if test "$GCC" = yes; then 9484 CFLAGS="-g -O2" 9485 else 9486 CFLAGS="-g" 9487 fi 9488else 9489 if test "$GCC" = yes; then 9490 CFLAGS="-O2" 9491 else 9492 CFLAGS= 9493 fi 9494fi 9495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 9496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 9497if test "${ac_cv_prog_cc_stdc+set}" = set; then 9498 echo $ECHO_N "(cached) $ECHO_C" >&6 9499else 9500 ac_cv_prog_cc_stdc=no 9501ac_save_CC=$CC 9502cat >conftest.$ac_ext <<_ACEOF 9503#line $LINENO "configure" 9504/* confdefs.h. */ 9505_ACEOF 9506cat confdefs.h >>conftest.$ac_ext 9507cat >>conftest.$ac_ext <<_ACEOF 9508/* end confdefs.h. */ 9509#include <stdarg.h> 9510#include <stdio.h> 9511#include <sys/types.h> 9512#include <sys/stat.h> 9513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 9514struct buf { int x; }; 9515FILE * (*rcsopen) (struct buf *, struct stat *, int); 9516static char *e (p, i) 9517 char **p; 9518 int i; 9519{ 9520 return p[i]; 9521} 9522static char *f (char * (*g) (char **, int), char **p, ...) 9523{ 9524 char *s; 9525 va_list v; 9526 va_start (v,p); 9527 s = g (p, va_arg (v,int)); 9528 va_end (v); 9529 return s; 9530} 9531int test (int i, double x); 9532struct s1 {int (*f) (int a);}; 9533struct s2 {int (*f) (double a);}; 9534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 9535int argc; 9536char **argv; 9537int 9538main () 9539{ 9540return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 9541 ; 9542 return 0; 9543} 9544_ACEOF 9545# Don't try gcc -ansi; that turns off useful extensions and 9546# breaks some systems' header files. 9547# AIX -qlanglvl=ansi 9548# Ultrix and OSF/1 -std1 9549# HP-UX 10.20 and later -Ae 9550# HP-UX older versions -Aa -D_HPUX_SOURCE 9551# SVR4 -Xc -D__EXTENSIONS__ 9552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 9553do 9554 CC="$ac_save_CC $ac_arg" 9555 rm -f conftest.$ac_objext 9556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9557 (eval $ac_compile) 2>&5 9558 ac_status=$? 9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); } && 9561 { ac_try='test -s conftest.$ac_objext' 9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9563 (eval $ac_try) 2>&5 9564 ac_status=$? 9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9566 (exit $ac_status); }; }; then 9567 ac_cv_prog_cc_stdc=$ac_arg 9568break 9569else 9570 echo "$as_me: failed program was:" >&5 9571sed 's/^/| /' conftest.$ac_ext >&5 9572 9573fi 9574rm -f conftest.$ac_objext 9575done 9576rm -f conftest.$ac_ext conftest.$ac_objext 9577CC=$ac_save_CC 9578 9579fi 9580 9581case "x$ac_cv_prog_cc_stdc" in 9582 x|xno) 9583 echo "$as_me:$LINENO: result: none needed" >&5 9584echo "${ECHO_T}none needed" >&6 ;; 9585 *) 9586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 9587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 9588 CC="$CC $ac_cv_prog_cc_stdc" ;; 9589esac 9590 9591# Some people use a C++ compiler to compile C. Since we use `exit', 9592# in C++ we need to declare it. In case someone uses the same compiler 9593# for both compiling C and C++ we need to have the C++ compiler decide 9594# the declaration of exit, since it's the most demanding environment. 9595cat >conftest.$ac_ext <<_ACEOF 9596#ifndef __cplusplus 9597 choke me 9598#endif 9599_ACEOF 9600rm -f conftest.$ac_objext 9601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9602 (eval $ac_compile) 2>&5 9603 ac_status=$? 9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9605 (exit $ac_status); } && 9606 { ac_try='test -s conftest.$ac_objext' 9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9608 (eval $ac_try) 2>&5 9609 ac_status=$? 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9611 (exit $ac_status); }; }; then 9612 for ac_declaration in \ 9613 ''\ 9614 '#include <stdlib.h>' \ 9615 'extern "C" void std::exit (int) throw (); using std::exit;' \ 9616 'extern "C" void std::exit (int); using std::exit;' \ 9617 'extern "C" void exit (int) throw ();' \ 9618 'extern "C" void exit (int);' \ 9619 'void exit (int);' 9620do 9621 cat >conftest.$ac_ext <<_ACEOF 9622#line $LINENO "configure" 9623/* confdefs.h. */ 9624_ACEOF 9625cat confdefs.h >>conftest.$ac_ext 9626cat >>conftest.$ac_ext <<_ACEOF 9627/* end confdefs.h. */ 9628#include <stdlib.h> 9629$ac_declaration 9630int 9631main () 9632{ 9633exit (42); 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638rm -f conftest.$ac_objext 9639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9640 (eval $ac_compile) 2>&5 9641 ac_status=$? 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 (exit $ac_status); } && 9644 { ac_try='test -s conftest.$ac_objext' 9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9646 (eval $ac_try) 2>&5 9647 ac_status=$? 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); }; }; then 9650 : 9651else 9652 echo "$as_me: failed program was:" >&5 9653sed 's/^/| /' conftest.$ac_ext >&5 9654 9655continue 9656fi 9657rm -f conftest.$ac_objext conftest.$ac_ext 9658 cat >conftest.$ac_ext <<_ACEOF 9659#line $LINENO "configure" 9660/* confdefs.h. */ 9661_ACEOF 9662cat confdefs.h >>conftest.$ac_ext 9663cat >>conftest.$ac_ext <<_ACEOF 9664/* end confdefs.h. */ 9665$ac_declaration 9666int 9667main () 9668{ 9669exit (42); 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674rm -f conftest.$ac_objext 9675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9676 (eval $ac_compile) 2>&5 9677 ac_status=$? 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); } && 9680 { ac_try='test -s conftest.$ac_objext' 9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9682 (eval $ac_try) 2>&5 9683 ac_status=$? 9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9685 (exit $ac_status); }; }; then 9686 break 9687else 9688 echo "$as_me: failed program was:" >&5 9689sed 's/^/| /' conftest.$ac_ext >&5 9690 9691fi 9692rm -f conftest.$ac_objext conftest.$ac_ext 9693done 9694rm -f conftest* 9695if test -n "$ac_declaration"; then 9696 echo '#ifdef __cplusplus' >>confdefs.h 9697 echo $ac_declaration >>confdefs.h 9698 echo '#endif' >>confdefs.h 9699fi 9700 9701else 9702 echo "$as_me: failed program was:" >&5 9703sed 's/^/| /' conftest.$ac_ext >&5 9704 9705fi 9706rm -f conftest.$ac_objext conftest.$ac_ext 9707ac_ext=cc 9708ac_cpp='$CXXCPP $CPPFLAGS' 9709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9712 9713depcc="$CC" am_compiler_list= 9714 9715echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 9716echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 9717if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 9718 echo $ECHO_N "(cached) $ECHO_C" >&6 9719else 9720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9721 # We make a subdir and do the tests there. Otherwise we can end up 9722 # making bogus files that we don't know about and never remove. For 9723 # instance it was reported that on HP-UX the gcc test will end up 9724 # making a dummy file named `D' -- because `-MD' means `put the output 9725 # in D'. 9726 mkdir conftest.dir 9727 # Copy depcomp to subdir because otherwise we won't find it if we're 9728 # using a relative directory. 9729 cp "$am_depcomp" conftest.dir 9730 cd conftest.dir 9731 9732 am_cv_CC_dependencies_compiler_type=none 9733 if test "$am_compiler_list" = ""; then 9734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9735 fi 9736 for depmode in $am_compiler_list; do 9737 # We need to recreate these files for each test, as the compiler may 9738 # overwrite some of them when testing with obscure command lines. 9739 # This happens at least with the AIX C compiler. 9740 echo '#include "conftest.h"' > conftest.c 9741 echo 'int i;' > conftest.h 9742 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 9743 9744 case $depmode in 9745 nosideeffect) 9746 # after this tag, mechanisms are not by side-effect, so they'll 9747 # only be used when explicitly requested 9748 if test "x$enable_dependency_tracking" = xyes; then 9749 continue 9750 else 9751 break 9752 fi 9753 ;; 9754 none) break ;; 9755 esac 9756 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9757 # mode. It turns out that the SunPro C++ compiler does not properly 9758 # handle `-M -o', and we need to detect this. 9759 if depmode=$depmode \ 9760 source=conftest.c object=conftest.o \ 9761 depfile=conftest.Po tmpdepfile=conftest.TPo \ 9762 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 9763 grep conftest.h conftest.Po > /dev/null 2>&1 && 9764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9765 am_cv_CC_dependencies_compiler_type=$depmode 9766 break 9767 fi 9768 done 9769 9770 cd .. 9771 rm -rf conftest.dir 9772else 9773 am_cv_CC_dependencies_compiler_type=none 9774fi 9775 9776fi 9777echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 9778echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 9779CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 9780 9781 9782# Find a good install program. We prefer a C program (faster), 9783# so one script is as good as another. But avoid the broken or 9784# incompatible versions: 9785# SysV /etc/install, /usr/sbin/install 9786# SunOS /usr/etc/install 9787# IRIX /sbin/install 9788# AIX /bin/install 9789# AmigaOS /C/install, which installs bootblocks on floppy discs 9790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9791# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9793# ./install, which can be erroneously created by make from ./install.sh. 9794echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 9795echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 9796if test -z "$INSTALL"; then 9797if test "${ac_cv_path_install+set}" = set; then 9798 echo $ECHO_N "(cached) $ECHO_C" >&6 9799else 9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9801for as_dir in $PATH 9802do 9803 IFS=$as_save_IFS 9804 test -z "$as_dir" && as_dir=. 9805 # Account for people who put trailing slashes in PATH elements. 9806case $as_dir/ in 9807 ./ | .// | /cC/* | \ 9808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9809 /usr/ucb/* ) ;; 9810 *) 9811 # OSF1 and SCO ODT 3.0 have their own names for install. 9812 # Don't use installbsd from OSF since it installs stuff as root 9813 # by default. 9814 for ac_prog in ginstall scoinst install; do 9815 for ac_exec_ext in '' $ac_executable_extensions; do 9816 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9817 if test $ac_prog = install && 9818 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9819 # AIX install. It has an incompatible calling convention. 9820 : 9821 elif test $ac_prog = install && 9822 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9823 # program-specific install script used by HP pwplus--don't use. 9824 : 9825 else 9826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9827 break 3 9828 fi 9829 fi 9830 done 9831 done 9832 ;; 9833esac 9834done 9835 9836 9837fi 9838 if test "${ac_cv_path_install+set}" = set; then 9839 INSTALL=$ac_cv_path_install 9840 else 9841 # As a last resort, use the slow shell script. We don't cache a 9842 # path for INSTALL within a source directory, because that will 9843 # break other packages using the cache if that directory is 9844 # removed, or if the path is relative. 9845 INSTALL=$ac_install_sh 9846 fi 9847fi 9848echo "$as_me:$LINENO: result: $INSTALL" >&5 9849echo "${ECHO_T}$INSTALL" >&6 9850 9851# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9852# It thinks the first close brace ends the variable substitution. 9853test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9854 9855test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9856 9857test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9858 9859if test -n "$ac_tool_prefix"; then 9860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9861set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9862echo "$as_me:$LINENO: checking for $ac_word" >&5 9863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9864if test "${ac_cv_prog_RANLIB+set}" = set; then 9865 echo $ECHO_N "(cached) $ECHO_C" >&6 9866else 9867 if test -n "$RANLIB"; then 9868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9869else 9870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871for as_dir in $PATH 9872do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881done 9882done 9883 9884fi 9885fi 9886RANLIB=$ac_cv_prog_RANLIB 9887if test -n "$RANLIB"; then 9888 echo "$as_me:$LINENO: result: $RANLIB" >&5 9889echo "${ECHO_T}$RANLIB" >&6 9890else 9891 echo "$as_me:$LINENO: result: no" >&5 9892echo "${ECHO_T}no" >&6 9893fi 9894 9895fi 9896if test -z "$ac_cv_prog_RANLIB"; then 9897 ac_ct_RANLIB=$RANLIB 9898 # Extract the first word of "ranlib", so it can be a program name with args. 9899set dummy ranlib; ac_word=$2 9900echo "$as_me:$LINENO: checking for $ac_word" >&5 9901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 9903 echo $ECHO_N "(cached) $ECHO_C" >&6 9904else 9905 if test -n "$ac_ct_RANLIB"; then 9906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9907else 9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9909for as_dir in $PATH 9910do 9911 IFS=$as_save_IFS 9912 test -z "$as_dir" && as_dir=. 9913 for ac_exec_ext in '' $ac_executable_extensions; do 9914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9915 ac_cv_prog_ac_ct_RANLIB="ranlib" 9916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9917 break 2 9918 fi 9919done 9920done 9921 9922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 9923fi 9924fi 9925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9926if test -n "$ac_ct_RANLIB"; then 9927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 9928echo "${ECHO_T}$ac_ct_RANLIB" >&6 9929else 9930 echo "$as_me:$LINENO: result: no" >&5 9931echo "${ECHO_T}no" >&6 9932fi 9933 9934 RANLIB=$ac_ct_RANLIB 9935else 9936 RANLIB="$ac_cv_prog_RANLIB" 9937fi 9938 9939 9940have_mpi=false 9941case $CXXFLAGS in 9942 *-DHAVE_MPI*) have_mpi=true;; 9943esac 9944echo "$as_me:$LINENO: checking using MPI" >&5 9945echo $ECHO_N "checking using MPI... $ECHO_C" >&6 9946if test $have_mpi = false; then 9947 echo "$as_me:$LINENO: result: no" >&5 9948echo "${ECHO_T}no" >&6; 9949else 9950 echo "$as_me:$LINENO: result: yes" >&5 9951echo "${ECHO_T}yes" >&6; 9952fi 9953 9954 9955 9956 9957echo "$as_me:$LINENO: checking for X" >&5 9958echo $ECHO_N "checking for X... $ECHO_C" >&6 9959 9960 9961# Check whether --with-x or --without-x was given. 9962if test "${with_x+set}" = set; then 9963 withval="$with_x" 9964 9965fi; 9966# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9967if test "x$with_x" = xno; then 9968 # The user explicitly disabled X. 9969 have_x=disabled 9970else 9971 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9972 # Both variables are already set. 9973 have_x=yes 9974 else 9975 if test "${ac_cv_have_x+set}" = set; then 9976 echo $ECHO_N "(cached) $ECHO_C" >&6 9977else 9978 # One or both of the vars are not set, and there is no cached value. 9979ac_x_includes=no ac_x_libraries=no 9980rm -fr conftest.dir 9981if mkdir conftest.dir; then 9982 cd conftest.dir 9983 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9984 cat >Imakefile <<'_ACEOF' 9985acfindx: 9986 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9987_ACEOF 9988 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9990 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9991 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9992 for ac_extension in a so sl; do 9993 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9994 test -f $ac_im_libdir/libX11.$ac_extension; then 9995 ac_im_usrlibdir=$ac_im_libdir; break 9996 fi 9997 done 9998 # Screen out bogus values from the imake configuration. They are 9999 # bogus both because they are the default anyway, and because 10000 # using them would break gcc on systems where it needs fixed includes. 10001 case $ac_im_incroot in 10002 /usr/include) ;; 10003 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 10004 esac 10005 case $ac_im_usrlibdir in 10006 /usr/lib | /lib) ;; 10007 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 10008 esac 10009 fi 10010 cd .. 10011 rm -fr conftest.dir 10012fi 10013 10014# Standard set of common directories for X headers. 10015# Check X11 before X11Rn because it is often a symlink to the current release. 10016ac_x_header_dirs=' 10017/usr/X11/include 10018/usr/X11R6/include 10019/usr/X11R5/include 10020/usr/X11R4/include 10021 10022/usr/include/X11 10023/usr/include/X11R6 10024/usr/include/X11R5 10025/usr/include/X11R4 10026 10027/usr/local/X11/include 10028/usr/local/X11R6/include 10029/usr/local/X11R5/include 10030/usr/local/X11R4/include 10031 10032/usr/local/include/X11 10033/usr/local/include/X11R6 10034/usr/local/include/X11R5 10035/usr/local/include/X11R4 10036 10037/usr/X386/include 10038/usr/x386/include 10039/usr/XFree86/include/X11 10040 10041/usr/include 10042/usr/local/include 10043/usr/unsupported/include 10044/usr/athena/include 10045/usr/local/x11r5/include 10046/usr/lpp/Xamples/include 10047 10048/usr/openwin/include 10049/usr/openwin/share/include' 10050 10051if test "$ac_x_includes" = no; then 10052 # Guess where to find include files, by looking for Intrinsic.h. 10053 # First, try using that file with no special directory specified. 10054 cat >conftest.$ac_ext <<_ACEOF 10055#line $LINENO "configure" 10056/* confdefs.h. */ 10057_ACEOF 10058cat confdefs.h >>conftest.$ac_ext 10059cat >>conftest.$ac_ext <<_ACEOF 10060/* end confdefs.h. */ 10061#include <X11/Intrinsic.h> 10062_ACEOF 10063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10065 ac_status=$? 10066 grep -v '^ *+' conftest.er1 >conftest.err 10067 rm -f conftest.er1 10068 cat conftest.err >&5 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10070 (exit $ac_status); } >/dev/null; then 10071 if test -s conftest.err; then 10072 ac_cpp_err=$ac_cxx_preproc_warn_flag 10073 else 10074 ac_cpp_err= 10075 fi 10076else 10077 ac_cpp_err=yes 10078fi 10079if test -z "$ac_cpp_err"; then 10080 # We can compile using X headers with no special include directory. 10081ac_x_includes= 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086 for ac_dir in $ac_x_header_dirs; do 10087 if test -r "$ac_dir/X11/Intrinsic.h"; then 10088 ac_x_includes=$ac_dir 10089 break 10090 fi 10091done 10092fi 10093rm -f conftest.err conftest.$ac_ext 10094fi # $ac_x_includes = no 10095 10096if test "$ac_x_libraries" = no; then 10097 # Check for the libraries. 10098 # See if we find them without any special options. 10099 # Don't add to $LIBS permanently. 10100 ac_save_LIBS=$LIBS 10101 LIBS="-lXt $LIBS" 10102 cat >conftest.$ac_ext <<_ACEOF 10103#line $LINENO "configure" 10104/* confdefs.h. */ 10105_ACEOF 10106cat confdefs.h >>conftest.$ac_ext 10107cat >>conftest.$ac_ext <<_ACEOF 10108/* end confdefs.h. */ 10109#include <X11/Intrinsic.h> 10110int 10111main () 10112{ 10113XtMalloc (0) 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118rm -f conftest.$ac_objext conftest$ac_exeext 10119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10120 (eval $ac_link) 2>&5 10121 ac_status=$? 10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10123 (exit $ac_status); } && 10124 { ac_try='test -s conftest$ac_exeext' 10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10126 (eval $ac_try) 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); }; }; then 10130 LIBS=$ac_save_LIBS 10131# We can link X programs with no special library path. 10132ac_x_libraries= 10133else 10134 echo "$as_me: failed program was:" >&5 10135sed 's/^/| /' conftest.$ac_ext >&5 10136 10137LIBS=$ac_save_LIBS 10138for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10139do 10140 # Don't even attempt the hair of trying to link an X program! 10141 for ac_extension in a so sl; do 10142 if test -r $ac_dir/libXt.$ac_extension; then 10143 ac_x_libraries=$ac_dir 10144 break 2 10145 fi 10146 done 10147done 10148fi 10149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10150fi # $ac_x_libraries = no 10151 10152if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 10153 # Didn't find X anywhere. Cache the known absence of X. 10154 ac_cv_have_x="have_x=no" 10155else 10156 # Record where we found X for the cache. 10157 ac_cv_have_x="have_x=yes \ 10158 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 10159fi 10160fi 10161 10162 fi 10163 eval "$ac_cv_have_x" 10164fi # $with_x != no 10165 10166if test "$have_x" != yes; then 10167 echo "$as_me:$LINENO: result: $have_x" >&5 10168echo "${ECHO_T}$have_x" >&6 10169 no_x=yes 10170else 10171 # If each of the values was on the command line, it overrides each guess. 10172 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10173 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10174 # Update the cache value to reflect the command line values. 10175 ac_cv_have_x="have_x=yes \ 10176 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10177 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10178echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10179fi 10180 10181if test "$no_x" = yes; then 10182 # Not all programs may use this symbol, but it does not hurt to define it. 10183 10184cat >>confdefs.h <<\_ACEOF 10185#define X_DISPLAY_MISSING 1 10186_ACEOF 10187 10188 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 10189else 10190 if test -n "$x_includes"; then 10191 X_CFLAGS="$X_CFLAGS -I$x_includes" 10192 fi 10193 10194 # It would also be nice to do this for all -L options, not just this one. 10195 if test -n "$x_libraries"; then 10196 X_LIBS="$X_LIBS -L$x_libraries" 10197 # For Solaris; some versions of Sun CC require a space after -R and 10198 # others require no space. Words are not sufficient . . . . 10199 case `(uname -sr) 2>/dev/null` in 10200 "SunOS 5"*) 10201 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 10202echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 10203 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 10204 cat >conftest.$ac_ext <<_ACEOF 10205#line $LINENO "configure" 10206/* confdefs.h. */ 10207_ACEOF 10208cat confdefs.h >>conftest.$ac_ext 10209cat >>conftest.$ac_ext <<_ACEOF 10210/* end confdefs.h. */ 10211 10212int 10213main () 10214{ 10215 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220rm -f conftest.$ac_objext conftest$ac_exeext 10221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10222 (eval $ac_link) 2>&5 10223 ac_status=$? 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 (exit $ac_status); } && 10226 { ac_try='test -s conftest$ac_exeext' 10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10228 (eval $ac_try) 2>&5 10229 ac_status=$? 10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 (exit $ac_status); }; }; then 10232 ac_R_nospace=yes 10233else 10234 echo "$as_me: failed program was:" >&5 10235sed 's/^/| /' conftest.$ac_ext >&5 10236 10237ac_R_nospace=no 10238fi 10239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10240 if test $ac_R_nospace = yes; then 10241 echo "$as_me:$LINENO: result: no" >&5 10242echo "${ECHO_T}no" >&6 10243 X_LIBS="$X_LIBS -R$x_libraries" 10244 else 10245 LIBS="$ac_xsave_LIBS -R $x_libraries" 10246 cat >conftest.$ac_ext <<_ACEOF 10247#line $LINENO "configure" 10248/* confdefs.h. */ 10249_ACEOF 10250cat confdefs.h >>conftest.$ac_ext 10251cat >>conftest.$ac_ext <<_ACEOF 10252/* end confdefs.h. */ 10253 10254int 10255main () 10256{ 10257 10258 ; 10259 return 0; 10260} 10261_ACEOF 10262rm -f conftest.$ac_objext conftest$ac_exeext 10263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10264 (eval $ac_link) 2>&5 10265 ac_status=$? 10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10267 (exit $ac_status); } && 10268 { ac_try='test -s conftest$ac_exeext' 10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10270 (eval $ac_try) 2>&5 10271 ac_status=$? 10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10273 (exit $ac_status); }; }; then 10274 ac_R_space=yes 10275else 10276 echo "$as_me: failed program was:" >&5 10277sed 's/^/| /' conftest.$ac_ext >&5 10278 10279ac_R_space=no 10280fi 10281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10282 if test $ac_R_space = yes; then 10283 echo "$as_me:$LINENO: result: yes" >&5 10284echo "${ECHO_T}yes" >&6 10285 X_LIBS="$X_LIBS -R $x_libraries" 10286 else 10287 echo "$as_me:$LINENO: result: neither works" >&5 10288echo "${ECHO_T}neither works" >&6 10289 fi 10290 fi 10291 LIBS=$ac_xsave_LIBS 10292 esac 10293 fi 10294 10295 # Check for system-dependent libraries X programs must link with. 10296 # Do this before checking for the system-independent R6 libraries 10297 # (-lICE), since we may need -lsocket or whatever for X linking. 10298 10299 if test "$ISC" = yes; then 10300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 10301 else 10302 # Martyn Johnson says this is needed for Ultrix, if the X 10303 # libraries were built with DECnet support. And Karl Berry says 10304 # the Alpha needs dnet_stub (dnet does not exist). 10305 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 10306 cat >conftest.$ac_ext <<_ACEOF 10307#line $LINENO "configure" 10308/* confdefs.h. */ 10309_ACEOF 10310cat confdefs.h >>conftest.$ac_ext 10311cat >>conftest.$ac_ext <<_ACEOF 10312/* end confdefs.h. */ 10313 10314/* Override any gcc2 internal prototype to avoid an error. */ 10315#ifdef __cplusplus 10316extern "C" 10317#endif 10318/* We use char because int might match the return type of a gcc2 10319 builtin and then its argument prototype would still apply. */ 10320char XOpenDisplay (); 10321int 10322main () 10323{ 10324XOpenDisplay (); 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329rm -f conftest.$ac_objext conftest$ac_exeext 10330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10331 (eval $ac_link) 2>&5 10332 ac_status=$? 10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 (exit $ac_status); } && 10335 { ac_try='test -s conftest$ac_exeext' 10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10337 (eval $ac_try) 2>&5 10338 ac_status=$? 10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10340 (exit $ac_status); }; }; then 10341 : 10342else 10343 echo "$as_me: failed program was:" >&5 10344sed 's/^/| /' conftest.$ac_ext >&5 10345 10346echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 10347echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 10348if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 10349 echo $ECHO_N "(cached) $ECHO_C" >&6 10350else 10351 ac_check_lib_save_LIBS=$LIBS 10352LIBS="-ldnet $LIBS" 10353cat >conftest.$ac_ext <<_ACEOF 10354#line $LINENO "configure" 10355/* confdefs.h. */ 10356_ACEOF 10357cat confdefs.h >>conftest.$ac_ext 10358cat >>conftest.$ac_ext <<_ACEOF 10359/* end confdefs.h. */ 10360 10361/* Override any gcc2 internal prototype to avoid an error. */ 10362#ifdef __cplusplus 10363extern "C" 10364#endif 10365/* We use char because int might match the return type of a gcc2 10366 builtin and then its argument prototype would still apply. */ 10367char dnet_ntoa (); 10368int 10369main () 10370{ 10371dnet_ntoa (); 10372 ; 10373 return 0; 10374} 10375_ACEOF 10376rm -f conftest.$ac_objext conftest$ac_exeext 10377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10378 (eval $ac_link) 2>&5 10379 ac_status=$? 10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10381 (exit $ac_status); } && 10382 { ac_try='test -s conftest$ac_exeext' 10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10384 (eval $ac_try) 2>&5 10385 ac_status=$? 10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10387 (exit $ac_status); }; }; then 10388 ac_cv_lib_dnet_dnet_ntoa=yes 10389else 10390 echo "$as_me: failed program was:" >&5 10391sed 's/^/| /' conftest.$ac_ext >&5 10392 10393ac_cv_lib_dnet_dnet_ntoa=no 10394fi 10395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10396LIBS=$ac_check_lib_save_LIBS 10397fi 10398echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10399echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 10400if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 10401 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 10402fi 10403 10404 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 10405 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 10406echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 10407if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 10408 echo $ECHO_N "(cached) $ECHO_C" >&6 10409else 10410 ac_check_lib_save_LIBS=$LIBS 10411LIBS="-ldnet_stub $LIBS" 10412cat >conftest.$ac_ext <<_ACEOF 10413#line $LINENO "configure" 10414/* confdefs.h. */ 10415_ACEOF 10416cat confdefs.h >>conftest.$ac_ext 10417cat >>conftest.$ac_ext <<_ACEOF 10418/* end confdefs.h. */ 10419 10420/* Override any gcc2 internal prototype to avoid an error. */ 10421#ifdef __cplusplus 10422extern "C" 10423#endif 10424/* We use char because int might match the return type of a gcc2 10425 builtin and then its argument prototype would still apply. */ 10426char dnet_ntoa (); 10427int 10428main () 10429{ 10430dnet_ntoa (); 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435rm -f conftest.$ac_objext conftest$ac_exeext 10436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10437 (eval $ac_link) 2>&5 10438 ac_status=$? 10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10440 (exit $ac_status); } && 10441 { ac_try='test -s conftest$ac_exeext' 10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10443 (eval $ac_try) 2>&5 10444 ac_status=$? 10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10446 (exit $ac_status); }; }; then 10447 ac_cv_lib_dnet_stub_dnet_ntoa=yes 10448else 10449 echo "$as_me: failed program was:" >&5 10450sed 's/^/| /' conftest.$ac_ext >&5 10451 10452ac_cv_lib_dnet_stub_dnet_ntoa=no 10453fi 10454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10455LIBS=$ac_check_lib_save_LIBS 10456fi 10457echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 10458echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 10459if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 10460 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 10461fi 10462 10463 fi 10464fi 10465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10466 LIBS="$ac_xsave_LIBS" 10467 10468 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 10469 # to get the SysV transport functions. 10470 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 10471 # needs -lnsl. 10472 # The nsl library prevents programs from opening the X display 10473 # on Irix 5.2, according to T.E. Dickey. 10474 # The functions gethostbyname, getservbyname, and inet_addr are 10475 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 10476 echo "$as_me:$LINENO: checking for gethostbyname" >&5 10477echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 10478if test "${ac_cv_func_gethostbyname+set}" = set; then 10479 echo $ECHO_N "(cached) $ECHO_C" >&6 10480else 10481 cat >conftest.$ac_ext <<_ACEOF 10482#line $LINENO "configure" 10483/* confdefs.h. */ 10484_ACEOF 10485cat confdefs.h >>conftest.$ac_ext 10486cat >>conftest.$ac_ext <<_ACEOF 10487/* end confdefs.h. */ 10488/* System header to define __stub macros and hopefully few prototypes, 10489 which can conflict with char gethostbyname (); below. 10490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10491 <limits.h> exists even on freestanding compilers. */ 10492#ifdef __STDC__ 10493# include <limits.h> 10494#else 10495# include <assert.h> 10496#endif 10497/* Override any gcc2 internal prototype to avoid an error. */ 10498#ifdef __cplusplus 10499extern "C" 10500{ 10501#endif 10502/* We use char because int might match the return type of a gcc2 10503 builtin and then its argument prototype would still apply. */ 10504char gethostbyname (); 10505/* The GNU C library defines this for functions which it implements 10506 to always fail with ENOSYS. Some functions are actually named 10507 something starting with __ and the normal name is an alias. */ 10508#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 10509choke me 10510#else 10511char (*f) () = gethostbyname; 10512#endif 10513#ifdef __cplusplus 10514} 10515#endif 10516 10517int 10518main () 10519{ 10520return f != gethostbyname; 10521 ; 10522 return 0; 10523} 10524_ACEOF 10525rm -f conftest.$ac_objext conftest$ac_exeext 10526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10527 (eval $ac_link) 2>&5 10528 ac_status=$? 10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10530 (exit $ac_status); } && 10531 { ac_try='test -s conftest$ac_exeext' 10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10533 (eval $ac_try) 2>&5 10534 ac_status=$? 10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10536 (exit $ac_status); }; }; then 10537 ac_cv_func_gethostbyname=yes 10538else 10539 echo "$as_me: failed program was:" >&5 10540sed 's/^/| /' conftest.$ac_ext >&5 10541 10542ac_cv_func_gethostbyname=no 10543fi 10544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10545fi 10546echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 10547echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 10548 10549 if test $ac_cv_func_gethostbyname = no; then 10550 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 10551echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 10552if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 10553 echo $ECHO_N "(cached) $ECHO_C" >&6 10554else 10555 ac_check_lib_save_LIBS=$LIBS 10556LIBS="-lnsl $LIBS" 10557cat >conftest.$ac_ext <<_ACEOF 10558#line $LINENO "configure" 10559/* confdefs.h. */ 10560_ACEOF 10561cat confdefs.h >>conftest.$ac_ext 10562cat >>conftest.$ac_ext <<_ACEOF 10563/* end confdefs.h. */ 10564 10565/* Override any gcc2 internal prototype to avoid an error. */ 10566#ifdef __cplusplus 10567extern "C" 10568#endif 10569/* We use char because int might match the return type of a gcc2 10570 builtin and then its argument prototype would still apply. */ 10571char gethostbyname (); 10572int 10573main () 10574{ 10575gethostbyname (); 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580rm -f conftest.$ac_objext conftest$ac_exeext 10581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10582 (eval $ac_link) 2>&5 10583 ac_status=$? 10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10585 (exit $ac_status); } && 10586 { ac_try='test -s conftest$ac_exeext' 10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10588 (eval $ac_try) 2>&5 10589 ac_status=$? 10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10591 (exit $ac_status); }; }; then 10592 ac_cv_lib_nsl_gethostbyname=yes 10593else 10594 echo "$as_me: failed program was:" >&5 10595sed 's/^/| /' conftest.$ac_ext >&5 10596 10597ac_cv_lib_nsl_gethostbyname=no 10598fi 10599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10600LIBS=$ac_check_lib_save_LIBS 10601fi 10602echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 10603echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 10604if test $ac_cv_lib_nsl_gethostbyname = yes; then 10605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 10606fi 10607 10608 if test $ac_cv_lib_nsl_gethostbyname = no; then 10609 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 10610echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 10611if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 10612 echo $ECHO_N "(cached) $ECHO_C" >&6 10613else 10614 ac_check_lib_save_LIBS=$LIBS 10615LIBS="-lbsd $LIBS" 10616cat >conftest.$ac_ext <<_ACEOF 10617#line $LINENO "configure" 10618/* confdefs.h. */ 10619_ACEOF 10620cat confdefs.h >>conftest.$ac_ext 10621cat >>conftest.$ac_ext <<_ACEOF 10622/* end confdefs.h. */ 10623 10624/* Override any gcc2 internal prototype to avoid an error. */ 10625#ifdef __cplusplus 10626extern "C" 10627#endif 10628/* We use char because int might match the return type of a gcc2 10629 builtin and then its argument prototype would still apply. */ 10630char gethostbyname (); 10631int 10632main () 10633{ 10634gethostbyname (); 10635 ; 10636 return 0; 10637} 10638_ACEOF 10639rm -f conftest.$ac_objext conftest$ac_exeext 10640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10641 (eval $ac_link) 2>&5 10642 ac_status=$? 10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10644 (exit $ac_status); } && 10645 { ac_try='test -s conftest$ac_exeext' 10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10647 (eval $ac_try) 2>&5 10648 ac_status=$? 10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10650 (exit $ac_status); }; }; then 10651 ac_cv_lib_bsd_gethostbyname=yes 10652else 10653 echo "$as_me: failed program was:" >&5 10654sed 's/^/| /' conftest.$ac_ext >&5 10655 10656ac_cv_lib_bsd_gethostbyname=no 10657fi 10658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10659LIBS=$ac_check_lib_save_LIBS 10660fi 10661echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 10662echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 10663if test $ac_cv_lib_bsd_gethostbyname = yes; then 10664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 10665fi 10666 10667 fi 10668 fi 10669 10670 # lieder@skyler.mavd.honeywell.com says without -lsocket, 10671 # socket/setsockopt and other routines are undefined under SCO ODT 10672 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 10673 # on later versions), says Simon Leinen: it contains gethostby* 10674 # variants that don't use the name server (or something). -lsocket 10675 # must be given before -lnsl if both are needed. We assume that 10676 # if connect needs -lnsl, so does gethostbyname. 10677 echo "$as_me:$LINENO: checking for connect" >&5 10678echo $ECHO_N "checking for connect... $ECHO_C" >&6 10679if test "${ac_cv_func_connect+set}" = set; then 10680 echo $ECHO_N "(cached) $ECHO_C" >&6 10681else 10682 cat >conftest.$ac_ext <<_ACEOF 10683#line $LINENO "configure" 10684/* confdefs.h. */ 10685_ACEOF 10686cat confdefs.h >>conftest.$ac_ext 10687cat >>conftest.$ac_ext <<_ACEOF 10688/* end confdefs.h. */ 10689/* System header to define __stub macros and hopefully few prototypes, 10690 which can conflict with char connect (); below. 10691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10692 <limits.h> exists even on freestanding compilers. */ 10693#ifdef __STDC__ 10694# include <limits.h> 10695#else 10696# include <assert.h> 10697#endif 10698/* Override any gcc2 internal prototype to avoid an error. */ 10699#ifdef __cplusplus 10700extern "C" 10701{ 10702#endif 10703/* We use char because int might match the return type of a gcc2 10704 builtin and then its argument prototype would still apply. */ 10705char connect (); 10706/* The GNU C library defines this for functions which it implements 10707 to always fail with ENOSYS. Some functions are actually named 10708 something starting with __ and the normal name is an alias. */ 10709#if defined (__stub_connect) || defined (__stub___connect) 10710choke me 10711#else 10712char (*f) () = connect; 10713#endif 10714#ifdef __cplusplus 10715} 10716#endif 10717 10718int 10719main () 10720{ 10721return f != connect; 10722 ; 10723 return 0; 10724} 10725_ACEOF 10726rm -f conftest.$ac_objext conftest$ac_exeext 10727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10728 (eval $ac_link) 2>&5 10729 ac_status=$? 10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); } && 10732 { ac_try='test -s conftest$ac_exeext' 10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10734 (eval $ac_try) 2>&5 10735 ac_status=$? 10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10737 (exit $ac_status); }; }; then 10738 ac_cv_func_connect=yes 10739else 10740 echo "$as_me: failed program was:" >&5 10741sed 's/^/| /' conftest.$ac_ext >&5 10742 10743ac_cv_func_connect=no 10744fi 10745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10746fi 10747echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 10748echo "${ECHO_T}$ac_cv_func_connect" >&6 10749 10750 if test $ac_cv_func_connect = no; then 10751 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 10752echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 10753if test "${ac_cv_lib_socket_connect+set}" = set; then 10754 echo $ECHO_N "(cached) $ECHO_C" >&6 10755else 10756 ac_check_lib_save_LIBS=$LIBS 10757LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 10758cat >conftest.$ac_ext <<_ACEOF 10759#line $LINENO "configure" 10760/* confdefs.h. */ 10761_ACEOF 10762cat confdefs.h >>conftest.$ac_ext 10763cat >>conftest.$ac_ext <<_ACEOF 10764/* end confdefs.h. */ 10765 10766/* Override any gcc2 internal prototype to avoid an error. */ 10767#ifdef __cplusplus 10768extern "C" 10769#endif 10770/* We use char because int might match the return type of a gcc2 10771 builtin and then its argument prototype would still apply. */ 10772char connect (); 10773int 10774main () 10775{ 10776connect (); 10777 ; 10778 return 0; 10779} 10780_ACEOF 10781rm -f conftest.$ac_objext conftest$ac_exeext 10782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10783 (eval $ac_link) 2>&5 10784 ac_status=$? 10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10786 (exit $ac_status); } && 10787 { ac_try='test -s conftest$ac_exeext' 10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10789 (eval $ac_try) 2>&5 10790 ac_status=$? 10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10792 (exit $ac_status); }; }; then 10793 ac_cv_lib_socket_connect=yes 10794else 10795 echo "$as_me: failed program was:" >&5 10796sed 's/^/| /' conftest.$ac_ext >&5 10797 10798ac_cv_lib_socket_connect=no 10799fi 10800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10801LIBS=$ac_check_lib_save_LIBS 10802fi 10803echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 10804echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 10805if test $ac_cv_lib_socket_connect = yes; then 10806 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 10807fi 10808 10809 fi 10810 10811 # Guillermo Gomez says -lposix is necessary on A/UX. 10812 echo "$as_me:$LINENO: checking for remove" >&5 10813echo $ECHO_N "checking for remove... $ECHO_C" >&6 10814if test "${ac_cv_func_remove+set}" = set; then 10815 echo $ECHO_N "(cached) $ECHO_C" >&6 10816else 10817 cat >conftest.$ac_ext <<_ACEOF 10818#line $LINENO "configure" 10819/* confdefs.h. */ 10820_ACEOF 10821cat confdefs.h >>conftest.$ac_ext 10822cat >>conftest.$ac_ext <<_ACEOF 10823/* end confdefs.h. */ 10824/* System header to define __stub macros and hopefully few prototypes, 10825 which can conflict with char remove (); below. 10826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10827 <limits.h> exists even on freestanding compilers. */ 10828#ifdef __STDC__ 10829# include <limits.h> 10830#else 10831# include <assert.h> 10832#endif 10833/* Override any gcc2 internal prototype to avoid an error. */ 10834#ifdef __cplusplus 10835extern "C" 10836{ 10837#endif 10838/* We use char because int might match the return type of a gcc2 10839 builtin and then its argument prototype would still apply. */ 10840char remove (); 10841/* The GNU C library defines this for functions which it implements 10842 to always fail with ENOSYS. Some functions are actually named 10843 something starting with __ and the normal name is an alias. */ 10844#if defined (__stub_remove) || defined (__stub___remove) 10845choke me 10846#else 10847char (*f) () = remove; 10848#endif 10849#ifdef __cplusplus 10850} 10851#endif 10852 10853int 10854main () 10855{ 10856return f != remove; 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861rm -f conftest.$ac_objext conftest$ac_exeext 10862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10863 (eval $ac_link) 2>&5 10864 ac_status=$? 10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10866 (exit $ac_status); } && 10867 { ac_try='test -s conftest$ac_exeext' 10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10869 (eval $ac_try) 2>&5 10870 ac_status=$? 10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 (exit $ac_status); }; }; then 10873 ac_cv_func_remove=yes 10874else 10875 echo "$as_me: failed program was:" >&5 10876sed 's/^/| /' conftest.$ac_ext >&5 10877 10878ac_cv_func_remove=no 10879fi 10880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10881fi 10882echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 10883echo "${ECHO_T}$ac_cv_func_remove" >&6 10884 10885 if test $ac_cv_func_remove = no; then 10886 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 10887echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 10888if test "${ac_cv_lib_posix_remove+set}" = set; then 10889 echo $ECHO_N "(cached) $ECHO_C" >&6 10890else 10891 ac_check_lib_save_LIBS=$LIBS 10892LIBS="-lposix $LIBS" 10893cat >conftest.$ac_ext <<_ACEOF 10894#line $LINENO "configure" 10895/* confdefs.h. */ 10896_ACEOF 10897cat confdefs.h >>conftest.$ac_ext 10898cat >>conftest.$ac_ext <<_ACEOF 10899/* end confdefs.h. */ 10900 10901/* Override any gcc2 internal prototype to avoid an error. */ 10902#ifdef __cplusplus 10903extern "C" 10904#endif 10905/* We use char because int might match the return type of a gcc2 10906 builtin and then its argument prototype would still apply. */ 10907char remove (); 10908int 10909main () 10910{ 10911remove (); 10912 ; 10913 return 0; 10914} 10915_ACEOF 10916rm -f conftest.$ac_objext conftest$ac_exeext 10917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10918 (eval $ac_link) 2>&5 10919 ac_status=$? 10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10921 (exit $ac_status); } && 10922 { ac_try='test -s conftest$ac_exeext' 10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10924 (eval $ac_try) 2>&5 10925 ac_status=$? 10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10927 (exit $ac_status); }; }; then 10928 ac_cv_lib_posix_remove=yes 10929else 10930 echo "$as_me: failed program was:" >&5 10931sed 's/^/| /' conftest.$ac_ext >&5 10932 10933ac_cv_lib_posix_remove=no 10934fi 10935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10936LIBS=$ac_check_lib_save_LIBS 10937fi 10938echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 10939echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 10940if test $ac_cv_lib_posix_remove = yes; then 10941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 10942fi 10943 10944 fi 10945 10946 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10947 echo "$as_me:$LINENO: checking for shmat" >&5 10948echo $ECHO_N "checking for shmat... $ECHO_C" >&6 10949if test "${ac_cv_func_shmat+set}" = set; then 10950 echo $ECHO_N "(cached) $ECHO_C" >&6 10951else 10952 cat >conftest.$ac_ext <<_ACEOF 10953#line $LINENO "configure" 10954/* confdefs.h. */ 10955_ACEOF 10956cat confdefs.h >>conftest.$ac_ext 10957cat >>conftest.$ac_ext <<_ACEOF 10958/* end confdefs.h. */ 10959/* System header to define __stub macros and hopefully few prototypes, 10960 which can conflict with char shmat (); below. 10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10962 <limits.h> exists even on freestanding compilers. */ 10963#ifdef __STDC__ 10964# include <limits.h> 10965#else 10966# include <assert.h> 10967#endif 10968/* Override any gcc2 internal prototype to avoid an error. */ 10969#ifdef __cplusplus 10970extern "C" 10971{ 10972#endif 10973/* We use char because int might match the return type of a gcc2 10974 builtin and then its argument prototype would still apply. */ 10975char shmat (); 10976/* The GNU C library defines this for functions which it implements 10977 to always fail with ENOSYS. Some functions are actually named 10978 something starting with __ and the normal name is an alias. */ 10979#if defined (__stub_shmat) || defined (__stub___shmat) 10980choke me 10981#else 10982char (*f) () = shmat; 10983#endif 10984#ifdef __cplusplus 10985} 10986#endif 10987 10988int 10989main () 10990{ 10991return f != shmat; 10992 ; 10993 return 0; 10994} 10995_ACEOF 10996rm -f conftest.$ac_objext conftest$ac_exeext 10997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10998 (eval $ac_link) 2>&5 10999 ac_status=$? 11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 (exit $ac_status); } && 11002 { ac_try='test -s conftest$ac_exeext' 11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11004 (eval $ac_try) 2>&5 11005 ac_status=$? 11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11007 (exit $ac_status); }; }; then 11008 ac_cv_func_shmat=yes 11009else 11010 echo "$as_me: failed program was:" >&5 11011sed 's/^/| /' conftest.$ac_ext >&5 11012 11013ac_cv_func_shmat=no 11014fi 11015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11016fi 11017echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 11018echo "${ECHO_T}$ac_cv_func_shmat" >&6 11019 11020 if test $ac_cv_func_shmat = no; then 11021 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 11022echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 11023if test "${ac_cv_lib_ipc_shmat+set}" = set; then 11024 echo $ECHO_N "(cached) $ECHO_C" >&6 11025else 11026 ac_check_lib_save_LIBS=$LIBS 11027LIBS="-lipc $LIBS" 11028cat >conftest.$ac_ext <<_ACEOF 11029#line $LINENO "configure" 11030/* confdefs.h. */ 11031_ACEOF 11032cat confdefs.h >>conftest.$ac_ext 11033cat >>conftest.$ac_ext <<_ACEOF 11034/* end confdefs.h. */ 11035 11036/* Override any gcc2 internal prototype to avoid an error. */ 11037#ifdef __cplusplus 11038extern "C" 11039#endif 11040/* We use char because int might match the return type of a gcc2 11041 builtin and then its argument prototype would still apply. */ 11042char shmat (); 11043int 11044main () 11045{ 11046shmat (); 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051rm -f conftest.$ac_objext conftest$ac_exeext 11052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11053 (eval $ac_link) 2>&5 11054 ac_status=$? 11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11056 (exit $ac_status); } && 11057 { ac_try='test -s conftest$ac_exeext' 11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11059 (eval $ac_try) 2>&5 11060 ac_status=$? 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 (exit $ac_status); }; }; then 11063 ac_cv_lib_ipc_shmat=yes 11064else 11065 echo "$as_me: failed program was:" >&5 11066sed 's/^/| /' conftest.$ac_ext >&5 11067 11068ac_cv_lib_ipc_shmat=no 11069fi 11070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11071LIBS=$ac_check_lib_save_LIBS 11072fi 11073echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 11074echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 11075if test $ac_cv_lib_ipc_shmat = yes; then 11076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 11077fi 11078 11079 fi 11080 fi 11081 11082 # Check for libraries that X11R6 Xt/Xaw programs need. 11083 ac_save_LDFLAGS=$LDFLAGS 11084 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 11085 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 11086 # check for ICE first), but we must link in the order -lSM -lICE or 11087 # we get undefined symbols. So assume we have SM if we have ICE. 11088 # These have to be linked with before -lX11, unlike the other 11089 # libraries we check for below, so use a different variable. 11090 # John Interrante, Karl Berry 11091 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 11092echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 11093if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 11094 echo $ECHO_N "(cached) $ECHO_C" >&6 11095else 11096 ac_check_lib_save_LIBS=$LIBS 11097LIBS="-lICE $X_EXTRA_LIBS $LIBS" 11098cat >conftest.$ac_ext <<_ACEOF 11099#line $LINENO "configure" 11100/* confdefs.h. */ 11101_ACEOF 11102cat confdefs.h >>conftest.$ac_ext 11103cat >>conftest.$ac_ext <<_ACEOF 11104/* end confdefs.h. */ 11105 11106/* Override any gcc2 internal prototype to avoid an error. */ 11107#ifdef __cplusplus 11108extern "C" 11109#endif 11110/* We use char because int might match the return type of a gcc2 11111 builtin and then its argument prototype would still apply. */ 11112char IceConnectionNumber (); 11113int 11114main () 11115{ 11116IceConnectionNumber (); 11117 ; 11118 return 0; 11119} 11120_ACEOF 11121rm -f conftest.$ac_objext conftest$ac_exeext 11122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11123 (eval $ac_link) 2>&5 11124 ac_status=$? 11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11126 (exit $ac_status); } && 11127 { ac_try='test -s conftest$ac_exeext' 11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11129 (eval $ac_try) 2>&5 11130 ac_status=$? 11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11132 (exit $ac_status); }; }; then 11133 ac_cv_lib_ICE_IceConnectionNumber=yes 11134else 11135 echo "$as_me: failed program was:" >&5 11136sed 's/^/| /' conftest.$ac_ext >&5 11137 11138ac_cv_lib_ICE_IceConnectionNumber=no 11139fi 11140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11141LIBS=$ac_check_lib_save_LIBS 11142fi 11143echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 11144echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 11145if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 11146 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 11147fi 11148 11149 LDFLAGS=$ac_save_LDFLAGS 11150 11151fi 11152 11153 11154 11155save_libs=$LIBS 11156save_cflags=$CFLAGS 11157save_cppflags=$CPPFLAGS 11158save_ldflags=$LDFLAGS 11159save_cxxflags=$CXXFLAGS 11160 11161 11162 11163#save_cxxflags="$save_cxxflags -DTEMPLATE_IN_HEADER" 11164 11165# 11166# limits 11167# 11168have_no_limits=false 11169echo "$as_me:$LINENO: checking for limits " >&5 11170echo $ECHO_N "checking for limits ... $ECHO_C" >&6 11171cat >conftest.$ac_ext <<_ACEOF 11172#line $LINENO "configure" 11173/* confdefs.h. */ 11174_ACEOF 11175cat confdefs.h >>conftest.$ac_ext 11176cat >>conftest.$ac_ext <<_ACEOF 11177/* end confdefs.h. */ 11178 11179 #include <limits> 11180 11181int 11182main () 11183{ 11184 11185 11186 ; 11187 return 0; 11188} 11189_ACEOF 11190rm -f conftest.$ac_objext 11191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11192 (eval $ac_compile) 2>&5 11193 ac_status=$? 11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11195 (exit $ac_status); } && 11196 { ac_try='test -s conftest.$ac_objext' 11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11198 (eval $ac_try) 2>&5 11199 ac_status=$? 11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11201 (exit $ac_status); }; }; then 11202 have_no_limits=true 11203else 11204 echo "$as_me: failed program was:" >&5 11205sed 's/^/| /' conftest.$ac_ext >&5 11206 11207fi 11208rm -f conftest.$ac_objext conftest.$ac_ext 11209if test $have_no_limits = false; then 11210 save_cxxflags="$save_cxxflags -DHAVE_NO_LIMITS" 11211 echo "$as_me:$LINENO: result: no" >&5 11212echo "${ECHO_T}no" >&6; 11213else 11214 echo "$as_me:$LINENO: result: yes" >&5 11215echo "${ECHO_T}yes" >&6; 11216fi 11217 11218# 11219# sstream 11220# 11221have_no_sstream=false 11222echo "$as_me:$LINENO: checking for sstream " >&5 11223echo $ECHO_N "checking for sstream ... $ECHO_C" >&6 11224cat >conftest.$ac_ext <<_ACEOF 11225#line $LINENO "configure" 11226/* confdefs.h. */ 11227_ACEOF 11228cat confdefs.h >>conftest.$ac_ext 11229cat >>conftest.$ac_ext <<_ACEOF 11230/* end confdefs.h. */ 11231 11232 #include <sstream> 11233 11234int 11235main () 11236{ 11237 11238 11239 ; 11240 return 0; 11241} 11242_ACEOF 11243rm -f conftest.$ac_objext 11244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11245 (eval $ac_compile) 2>&5 11246 ac_status=$? 11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11248 (exit $ac_status); } && 11249 { ac_try='test -s conftest.$ac_objext' 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11251 (eval $ac_try) 2>&5 11252 ac_status=$? 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11254 (exit $ac_status); }; }; then 11255 have_no_sstream=true 11256else 11257 echo "$as_me: failed program was:" >&5 11258sed 's/^/| /' conftest.$ac_ext >&5 11259 11260fi 11261rm -f conftest.$ac_objext conftest.$ac_ext 11262if test $have_no_sstream = false; then 11263 save_cxxflags="$save_cxxflags -DHAVE_NO_SSTREAM" 11264 echo "$as_me:$LINENO: result: no" >&5 11265echo "${ECHO_T}no" >&6; 11266else 11267 echo "$as_me:$LINENO: result: yes" >&5 11268echo "${ECHO_T}yes" >&6; 11269fi 11270 11271# 11272# partial_template_specialization 11273# 11274partial_template_specialization=false 11275echo "$as_me:$LINENO: checking for partial template specialization" >&5 11276echo $ECHO_N "checking for partial template specialization... $ECHO_C" >&6 11277cat >conftest.$ac_ext <<_ACEOF 11278#line $LINENO "configure" 11279/* confdefs.h. */ 11280_ACEOF 11281cat confdefs.h >>conftest.$ac_ext 11282cat >>conftest.$ac_ext <<_ACEOF 11283/* end confdefs.h. */ 11284 11285 #include "framework/base/Array_Fastest.h" 11286 using namespace ProtoMol; 11287 11288int 11289main () 11290{ 11291 11292 Array<int,3> a(ArraySizes(1)(1)(1)); 11293 RefArray<int,2> rA = a[0]; 11294 11295 ; 11296 return 0; 11297} 11298_ACEOF 11299rm -f conftest.$ac_objext 11300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11301 (eval $ac_compile) 2>&5 11302 ac_status=$? 11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11304 (exit $ac_status); } && 11305 { ac_try='test -s conftest.$ac_objext' 11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11307 (eval $ac_try) 2>&5 11308 ac_status=$? 11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11310 (exit $ac_status); }; }; then 11311 partial_template_specialization=true 11312else 11313 echo "$as_me: failed program was:" >&5 11314sed 's/^/| /' conftest.$ac_ext >&5 11315 11316fi 11317rm -f conftest.$ac_objext conftest.$ac_ext 11318if test $partial_template_specialization = false; then 11319 save_cxxflags="$save_cxxflags -DNO_PARTIAL_TEMPLATE_SPECIALIZATION" 11320 echo "$as_me:$LINENO: result: no" >&5 11321echo "${ECHO_T}no" >&6; 11322else 11323 echo "$as_me:$LINENO: result: yes" >&5 11324echo "${ECHO_T}yes" >&6; 11325fi 11326 11327 11328# 11329# Socket 11330# 11331have_socket=true 11332 11333echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 11334echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 11335if test "${ac_cv_lib_socket_socket+set}" = set; then 11336 echo $ECHO_N "(cached) $ECHO_C" >&6 11337else 11338 ac_check_lib_save_LIBS=$LIBS 11339LIBS="-lsocket $LIBS" 11340cat >conftest.$ac_ext <<_ACEOF 11341#line $LINENO "configure" 11342/* confdefs.h. */ 11343_ACEOF 11344cat confdefs.h >>conftest.$ac_ext 11345cat >>conftest.$ac_ext <<_ACEOF 11346/* end confdefs.h. */ 11347 11348/* Override any gcc2 internal prototype to avoid an error. */ 11349#ifdef __cplusplus 11350extern "C" 11351#endif 11352/* We use char because int might match the return type of a gcc2 11353 builtin and then its argument prototype would still apply. */ 11354char socket (); 11355int 11356main () 11357{ 11358socket (); 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363rm -f conftest.$ac_objext conftest$ac_exeext 11364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11365 (eval $ac_link) 2>&5 11366 ac_status=$? 11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11368 (exit $ac_status); } && 11369 { ac_try='test -s conftest$ac_exeext' 11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11371 (eval $ac_try) 2>&5 11372 ac_status=$? 11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11374 (exit $ac_status); }; }; then 11375 ac_cv_lib_socket_socket=yes 11376else 11377 echo "$as_me: failed program was:" >&5 11378sed 's/^/| /' conftest.$ac_ext >&5 11379 11380ac_cv_lib_socket_socket=no 11381fi 11382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11383LIBS=$ac_check_lib_save_LIBS 11384fi 11385echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 11386echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 11387if test $ac_cv_lib_socket_socket = yes; then 11388 cat >>confdefs.h <<_ACEOF 11389#define HAVE_LIBSOCKET 1 11390_ACEOF 11391 11392 LIBS="-lsocket $LIBS" 11393 11394else 11395 have_socket=false 11396fi 11397 11398if test $have_socket = true; then 11399 SOCKET_LIBS="-lsocket" 11400fi 11401 11402 11403have_socket=true 11404echo "$as_me:$LINENO: checking for egrep" >&5 11405echo $ECHO_N "checking for egrep... $ECHO_C" >&6 11406if test "${ac_cv_prog_egrep+set}" = set; then 11407 echo $ECHO_N "(cached) $ECHO_C" >&6 11408else 11409 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 11410 then ac_cv_prog_egrep='grep -E' 11411 else ac_cv_prog_egrep='egrep' 11412 fi 11413fi 11414echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 11415echo "${ECHO_T}$ac_cv_prog_egrep" >&6 11416 EGREP=$ac_cv_prog_egrep 11417 11418 11419echo "$as_me:$LINENO: checking for ANSI C header files" >&5 11420echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 11421if test "${ac_cv_header_stdc+set}" = set; then 11422 echo $ECHO_N "(cached) $ECHO_C" >&6 11423else 11424 cat >conftest.$ac_ext <<_ACEOF 11425#line $LINENO "configure" 11426/* confdefs.h. */ 11427_ACEOF 11428cat confdefs.h >>conftest.$ac_ext 11429cat >>conftest.$ac_ext <<_ACEOF 11430/* end confdefs.h. */ 11431#include <stdlib.h> 11432#include <stdarg.h> 11433#include <string.h> 11434#include <float.h> 11435 11436int 11437main () 11438{ 11439 11440 ; 11441 return 0; 11442} 11443_ACEOF 11444rm -f conftest.$ac_objext 11445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11446 (eval $ac_compile) 2>&5 11447 ac_status=$? 11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11449 (exit $ac_status); } && 11450 { ac_try='test -s conftest.$ac_objext' 11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11452 (eval $ac_try) 2>&5 11453 ac_status=$? 11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11455 (exit $ac_status); }; }; then 11456 ac_cv_header_stdc=yes 11457else 11458 echo "$as_me: failed program was:" >&5 11459sed 's/^/| /' conftest.$ac_ext >&5 11460 11461ac_cv_header_stdc=no 11462fi 11463rm -f conftest.$ac_objext conftest.$ac_ext 11464 11465if test $ac_cv_header_stdc = yes; then 11466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11467 cat >conftest.$ac_ext <<_ACEOF 11468#line $LINENO "configure" 11469/* confdefs.h. */ 11470_ACEOF 11471cat confdefs.h >>conftest.$ac_ext 11472cat >>conftest.$ac_ext <<_ACEOF 11473/* end confdefs.h. */ 11474#include <string.h> 11475 11476_ACEOF 11477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11478 $EGREP "memchr" >/dev/null 2>&1; then 11479 : 11480else 11481 ac_cv_header_stdc=no 11482fi 11483rm -f conftest* 11484 11485fi 11486 11487if test $ac_cv_header_stdc = yes; then 11488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11489 cat >conftest.$ac_ext <<_ACEOF 11490#line $LINENO "configure" 11491/* confdefs.h. */ 11492_ACEOF 11493cat confdefs.h >>conftest.$ac_ext 11494cat >>conftest.$ac_ext <<_ACEOF 11495/* end confdefs.h. */ 11496#include <stdlib.h> 11497 11498_ACEOF 11499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11500 $EGREP "free" >/dev/null 2>&1; then 11501 : 11502else 11503 ac_cv_header_stdc=no 11504fi 11505rm -f conftest* 11506 11507fi 11508 11509if test $ac_cv_header_stdc = yes; then 11510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11511 if test "$cross_compiling" = yes; then 11512 : 11513else 11514 cat >conftest.$ac_ext <<_ACEOF 11515#line $LINENO "configure" 11516/* confdefs.h. */ 11517_ACEOF 11518cat confdefs.h >>conftest.$ac_ext 11519cat >>conftest.$ac_ext <<_ACEOF 11520/* end confdefs.h. */ 11521#include <ctype.h> 11522#if ((' ' & 0x0FF) == 0x020) 11523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11525#else 11526# define ISLOWER(c) \ 11527 (('a' <= (c) && (c) <= 'i') \ 11528 || ('j' <= (c) && (c) <= 'r') \ 11529 || ('s' <= (c) && (c) <= 'z')) 11530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11531#endif 11532 11533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11534int 11535main () 11536{ 11537 int i; 11538 for (i = 0; i < 256; i++) 11539 if (XOR (islower (i), ISLOWER (i)) 11540 || toupper (i) != TOUPPER (i)) 11541 exit(2); 11542 exit (0); 11543} 11544_ACEOF 11545rm -f conftest$ac_exeext 11546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11547 (eval $ac_link) 2>&5 11548 ac_status=$? 11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11552 (eval $ac_try) 2>&5 11553 ac_status=$? 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 (exit $ac_status); }; }; then 11556 : 11557else 11558 echo "$as_me: program exited with status $ac_status" >&5 11559echo "$as_me: failed program was:" >&5 11560sed 's/^/| /' conftest.$ac_ext >&5 11561 11562( exit $ac_status ) 11563ac_cv_header_stdc=no 11564fi 11565rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11566fi 11567fi 11568fi 11569echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 11570echo "${ECHO_T}$ac_cv_header_stdc" >&6 11571if test $ac_cv_header_stdc = yes; then 11572 11573cat >>confdefs.h <<\_ACEOF 11574#define STDC_HEADERS 1 11575_ACEOF 11576 11577fi 11578 11579# On IRIX 5.3, sys/types and inttypes.h are conflicting. 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 11590 inttypes.h stdint.h unistd.h 11591do 11592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11593echo "$as_me:$LINENO: checking for $ac_header" >&5 11594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11595if eval "test \"\${$as_ac_Header+set}\" = set"; then 11596 echo $ECHO_N "(cached) $ECHO_C" >&6 11597else 11598 cat >conftest.$ac_ext <<_ACEOF 11599#line $LINENO "configure" 11600/* confdefs.h. */ 11601_ACEOF 11602cat confdefs.h >>conftest.$ac_ext 11603cat >>conftest.$ac_ext <<_ACEOF 11604/* end confdefs.h. */ 11605$ac_includes_default 11606 11607#include <$ac_header> 11608_ACEOF 11609rm -f conftest.$ac_objext 11610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11611 (eval $ac_compile) 2>&5 11612 ac_status=$? 11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && 11615 { ac_try='test -s conftest.$ac_objext' 11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11617 (eval $ac_try) 2>&5 11618 ac_status=$? 11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11620 (exit $ac_status); }; }; then 11621 eval "$as_ac_Header=yes" 11622else 11623 echo "$as_me: failed program was:" >&5 11624sed 's/^/| /' conftest.$ac_ext >&5 11625 11626eval "$as_ac_Header=no" 11627fi 11628rm -f conftest.$ac_objext conftest.$ac_ext 11629fi 11630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11632if test `eval echo '${'$as_ac_Header'}'` = yes; then 11633 cat >>confdefs.h <<_ACEOF 11634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11635_ACEOF 11636 11637fi 11638 11639done 11640 11641 11642if test "${ac_cv_header_sys_socket_h+set}" = set; then 11643 echo "$as_me:$LINENO: checking for sys/socket.h" >&5 11644echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 11645if test "${ac_cv_header_sys_socket_h+set}" = set; then 11646 echo $ECHO_N "(cached) $ECHO_C" >&6 11647fi 11648echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 11649echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 11650else 11651 # Is the header compilable? 11652echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 11653echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 11654cat >conftest.$ac_ext <<_ACEOF 11655#line $LINENO "configure" 11656/* confdefs.h. */ 11657_ACEOF 11658cat confdefs.h >>conftest.$ac_ext 11659cat >>conftest.$ac_ext <<_ACEOF 11660/* end confdefs.h. */ 11661$ac_includes_default 11662#include <sys/socket.h> 11663_ACEOF 11664rm -f conftest.$ac_objext 11665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11666 (eval $ac_compile) 2>&5 11667 ac_status=$? 11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11669 (exit $ac_status); } && 11670 { ac_try='test -s conftest.$ac_objext' 11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11672 (eval $ac_try) 2>&5 11673 ac_status=$? 11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11675 (exit $ac_status); }; }; then 11676 ac_header_compiler=yes 11677else 11678 echo "$as_me: failed program was:" >&5 11679sed 's/^/| /' conftest.$ac_ext >&5 11680 11681ac_header_compiler=no 11682fi 11683rm -f conftest.$ac_objext conftest.$ac_ext 11684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11685echo "${ECHO_T}$ac_header_compiler" >&6 11686 11687# Is the header present? 11688echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 11689echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 11690cat >conftest.$ac_ext <<_ACEOF 11691#line $LINENO "configure" 11692/* confdefs.h. */ 11693_ACEOF 11694cat confdefs.h >>conftest.$ac_ext 11695cat >>conftest.$ac_ext <<_ACEOF 11696/* end confdefs.h. */ 11697#include <sys/socket.h> 11698_ACEOF 11699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11701 ac_status=$? 11702 grep -v '^ *+' conftest.er1 >conftest.err 11703 rm -f conftest.er1 11704 cat conftest.err >&5 11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11706 (exit $ac_status); } >/dev/null; then 11707 if test -s conftest.err; then 11708 ac_cpp_err=$ac_cxx_preproc_warn_flag 11709 else 11710 ac_cpp_err= 11711 fi 11712else 11713 ac_cpp_err=yes 11714fi 11715if test -z "$ac_cpp_err"; then 11716 ac_header_preproc=yes 11717else 11718 echo "$as_me: failed program was:" >&5 11719sed 's/^/| /' conftest.$ac_ext >&5 11720 11721 ac_header_preproc=no 11722fi 11723rm -f conftest.err conftest.$ac_ext 11724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11725echo "${ECHO_T}$ac_header_preproc" >&6 11726 11727# So? What about this header? 11728case $ac_header_compiler:$ac_header_preproc in 11729 yes:no ) 11730 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 11731echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11732 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 11733echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} 11734 ( 11735 cat <<\_ASBOX 11736## ------------------------------------ ## 11737## Report this to bug-autoconf@gnu.org. ## 11738## ------------------------------------ ## 11739_ASBOX 11740 ) | 11741 sed "s/^/$as_me: WARNING: /" >&2 11742 ;; 11743 no:yes ) 11744 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 11745echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} 11746 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 11747echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} 11748 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 11749echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} 11750 ( 11751 cat <<\_ASBOX 11752## ------------------------------------ ## 11753## Report this to bug-autoconf@gnu.org. ## 11754## ------------------------------------ ## 11755_ASBOX 11756 ) | 11757 sed "s/^/$as_me: WARNING: /" >&2 11758 ;; 11759esac 11760echo "$as_me:$LINENO: checking for sys/socket.h" >&5 11761echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 11762if test "${ac_cv_header_sys_socket_h+set}" = set; then 11763 echo $ECHO_N "(cached) $ECHO_C" >&6 11764else 11765 ac_cv_header_sys_socket_h=$ac_header_preproc 11766fi 11767echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 11768echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 11769 11770fi 11771if test $ac_cv_header_sys_socket_h = yes; then 11772 : 11773else 11774 have_socket=false 11775fi 11776 11777 11778 11779echo "$as_me:$LINENO: checking for socketlen type" >&5 11780echo $ECHO_N "checking for socketlen type... $ECHO_C" >&6 11781cat >conftest.$ac_ext <<_ACEOF 11782#line $LINENO "configure" 11783/* confdefs.h. */ 11784_ACEOF 11785cat confdefs.h >>conftest.$ac_ext 11786cat >>conftest.$ac_ext <<_ACEOF 11787/* end confdefs.h. */ 11788 11789 #include <sys/types.h> 11790 #include <sys/socket.h> 11791 #include <netinet/in.h> 11792 11793int 11794main () 11795{ 11796 sockaddr_in addr; 11797 socklen_t len = 0; 11798 getsockname(0, (struct sockaddr*)&addr, &len); 11799 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804rm -f conftest.$ac_objext 11805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11806 (eval $ac_compile) 2>&5 11807 ac_status=$? 11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11809 (exit $ac_status); } && 11810 { ac_try='test -s conftest.$ac_objext' 11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11812 (eval $ac_try) 2>&5 11813 ac_status=$? 11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11815 (exit $ac_status); }; }; then 11816 SOCKLEN_TYPE=socklen_t 11817else 11818 echo "$as_me: failed program was:" >&5 11819sed 's/^/| /' conftest.$ac_ext >&5 11820 11821fi 11822rm -f conftest.$ac_objext conftest.$ac_ext 11823if test "${SOCKLEN_TYPE}" = "" ; then 11824 cat >conftest.$ac_ext <<_ACEOF 11825#line $LINENO "configure" 11826/* confdefs.h. */ 11827_ACEOF 11828cat confdefs.h >>conftest.$ac_ext 11829cat >>conftest.$ac_ext <<_ACEOF 11830/* end confdefs.h. */ 11831 11832 #include <sys/types.h> 11833 #include <sys/socket.h> 11834 #include <netinet/in.h> 11835 11836int 11837main () 11838{ 11839 sockaddr_in addr; 11840 size_t len = 0; 11841 getsockname(0, (struct sockaddr*)&addr, &len); 11842 11843 ; 11844 return 0; 11845} 11846_ACEOF 11847rm -f conftest.$ac_objext 11848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11849 (eval $ac_compile) 2>&5 11850 ac_status=$? 11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11852 (exit $ac_status); } && 11853 { ac_try='test -s conftest.$ac_objext' 11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11855 (eval $ac_try) 2>&5 11856 ac_status=$? 11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11858 (exit $ac_status); }; }; then 11859 SOCKLEN_TYPE=size_t 11860else 11861 echo "$as_me: failed program was:" >&5 11862sed 's/^/| /' conftest.$ac_ext >&5 11863 11864fi 11865rm -f conftest.$ac_objext conftest.$ac_ext 11866fi 11867if test "${SOCKLEN_TYPE}" = "" ; then 11868 cat >conftest.$ac_ext <<_ACEOF 11869#line $LINENO "configure" 11870/* confdefs.h. */ 11871_ACEOF 11872cat confdefs.h >>conftest.$ac_ext 11873cat >>conftest.$ac_ext <<_ACEOF 11874/* end confdefs.h. */ 11875 11876 #include <sys/types.h> 11877 #include <sys/socket.h> 11878 #include <netinet/in.h> 11879 11880int 11881main () 11882{ 11883 sockaddr_in addr; 11884 unsigned int len = 0; 11885 getsockname(0, (struct sockaddr*)&addr, &len); 11886 11887 ; 11888 return 0; 11889} 11890_ACEOF 11891rm -f conftest.$ac_objext 11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11893 (eval $ac_compile) 2>&5 11894 ac_status=$? 11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11896 (exit $ac_status); } && 11897 { ac_try='test -s conftest.$ac_objext' 11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11899 (eval $ac_try) 2>&5 11900 ac_status=$? 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); }; }; then 11903 SOCKLEN_TYPE="unsigned int" 11904else 11905 echo "$as_me: failed program was:" >&5 11906sed 's/^/| /' conftest.$ac_ext >&5 11907 11908fi 11909rm -f conftest.$ac_objext conftest.$ac_ext 11910fi 11911if test "${SOCKLEN_TYPE}" = "" ; then 11912 cat >conftest.$ac_ext <<_ACEOF 11913#line $LINENO "configure" 11914/* confdefs.h. */ 11915_ACEOF 11916cat confdefs.h >>conftest.$ac_ext 11917cat >>conftest.$ac_ext <<_ACEOF 11918/* end confdefs.h. */ 11919 11920 #include <sys/types.h> 11921 #include <sys/socket.h> 11922 #include <netinet/in.h> 11923 11924int 11925main () 11926{ 11927 sockaddr_in addr; 11928 int len = 0; 11929 getsockname(0, (struct sockaddr*)&addr, &len); 11930 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935rm -f conftest.$ac_objext 11936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11937 (eval $ac_compile) 2>&5 11938 ac_status=$? 11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11940 (exit $ac_status); } && 11941 { ac_try='test -s conftest.$ac_objext' 11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11943 (eval $ac_try) 2>&5 11944 ac_status=$? 11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11946 (exit $ac_status); }; }; then 11947 SOCKLEN_TYPE="int" 11948else 11949 echo "$as_me: failed program was:" >&5 11950sed 's/^/| /' conftest.$ac_ext >&5 11951 11952fi 11953rm -f conftest.$ac_objext conftest.$ac_ext 11954fi 11955if test "${SOCKLEN_TYPE}" != "" ; then 11956 echo "$as_me:$LINENO: result: $SOCKLEN_TYPE" >&5 11957echo "${ECHO_T}$SOCKLEN_TYPE" >&6 11958fi 11959 11960cat >>confdefs.h <<_ACEOF 11961#define SOCKLEN_TYPE ${SOCKLEN_TYPE} 11962_ACEOF 11963 11964 11965# 11966# Sizeof 11967# 11968echo "$as_me:$LINENO: checking for char" >&5 11969echo $ECHO_N "checking for char... $ECHO_C" >&6 11970if test "${ac_cv_type_char+set}" = set; then 11971 echo $ECHO_N "(cached) $ECHO_C" >&6 11972else 11973 cat >conftest.$ac_ext <<_ACEOF 11974#line $LINENO "configure" 11975/* confdefs.h. */ 11976_ACEOF 11977cat confdefs.h >>conftest.$ac_ext 11978cat >>conftest.$ac_ext <<_ACEOF 11979/* end confdefs.h. */ 11980$ac_includes_default 11981int 11982main () 11983{ 11984if ((char *) 0) 11985 return 0; 11986if (sizeof (char)) 11987 return 0; 11988 ; 11989 return 0; 11990} 11991_ACEOF 11992rm -f conftest.$ac_objext 11993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11994 (eval $ac_compile) 2>&5 11995 ac_status=$? 11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11997 (exit $ac_status); } && 11998 { ac_try='test -s conftest.$ac_objext' 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12000 (eval $ac_try) 2>&5 12001 ac_status=$? 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); }; }; then 12004 ac_cv_type_char=yes 12005else 12006 echo "$as_me: failed program was:" >&5 12007sed 's/^/| /' conftest.$ac_ext >&5 12008 12009ac_cv_type_char=no 12010fi 12011rm -f conftest.$ac_objext conftest.$ac_ext 12012fi 12013echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 12014echo "${ECHO_T}$ac_cv_type_char" >&6 12015 12016echo "$as_me:$LINENO: checking size of char" >&5 12017echo $ECHO_N "checking size of char... $ECHO_C" >&6 12018if test "${ac_cv_sizeof_char+set}" = set; then 12019 echo $ECHO_N "(cached) $ECHO_C" >&6 12020else 12021 if test "$ac_cv_type_char" = yes; then 12022 # The cast to unsigned long works around a bug in the HP C Compiler 12023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12025 # This bug is HP SR number 8606223364. 12026 if test "$cross_compiling" = yes; then 12027 # Depending upon the size, compute the lo and hi bounds. 12028cat >conftest.$ac_ext <<_ACEOF 12029#line $LINENO "configure" 12030/* confdefs.h. */ 12031_ACEOF 12032cat confdefs.h >>conftest.$ac_ext 12033cat >>conftest.$ac_ext <<_ACEOF 12034/* end confdefs.h. */ 12035$ac_includes_default 12036int 12037main () 12038{ 12039static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 12040test_array [0] = 0 12041 12042 ; 12043 return 0; 12044} 12045_ACEOF 12046rm -f conftest.$ac_objext 12047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12048 (eval $ac_compile) 2>&5 12049 ac_status=$? 12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); } && 12052 { ac_try='test -s conftest.$ac_objext' 12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12054 (eval $ac_try) 2>&5 12055 ac_status=$? 12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12057 (exit $ac_status); }; }; then 12058 ac_lo=0 ac_mid=0 12059 while :; do 12060 cat >conftest.$ac_ext <<_ACEOF 12061#line $LINENO "configure" 12062/* confdefs.h. */ 12063_ACEOF 12064cat confdefs.h >>conftest.$ac_ext 12065cat >>conftest.$ac_ext <<_ACEOF 12066/* end confdefs.h. */ 12067$ac_includes_default 12068int 12069main () 12070{ 12071static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 12072test_array [0] = 0 12073 12074 ; 12075 return 0; 12076} 12077_ACEOF 12078rm -f conftest.$ac_objext 12079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12080 (eval $ac_compile) 2>&5 12081 ac_status=$? 12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); } && 12084 { ac_try='test -s conftest.$ac_objext' 12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12086 (eval $ac_try) 2>&5 12087 ac_status=$? 12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12089 (exit $ac_status); }; }; then 12090 ac_hi=$ac_mid; break 12091else 12092 echo "$as_me: failed program was:" >&5 12093sed 's/^/| /' conftest.$ac_ext >&5 12094 12095ac_lo=`expr $ac_mid + 1` 12096 if test $ac_lo -le $ac_mid; then 12097 ac_lo= ac_hi= 12098 break 12099 fi 12100 ac_mid=`expr 2 '*' $ac_mid + 1` 12101fi 12102rm -f conftest.$ac_objext conftest.$ac_ext 12103 done 12104else 12105 echo "$as_me: failed program was:" >&5 12106sed 's/^/| /' conftest.$ac_ext >&5 12107 12108cat >conftest.$ac_ext <<_ACEOF 12109#line $LINENO "configure" 12110/* confdefs.h. */ 12111_ACEOF 12112cat confdefs.h >>conftest.$ac_ext 12113cat >>conftest.$ac_ext <<_ACEOF 12114/* end confdefs.h. */ 12115$ac_includes_default 12116int 12117main () 12118{ 12119static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 12120test_array [0] = 0 12121 12122 ; 12123 return 0; 12124} 12125_ACEOF 12126rm -f conftest.$ac_objext 12127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12128 (eval $ac_compile) 2>&5 12129 ac_status=$? 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12131 (exit $ac_status); } && 12132 { ac_try='test -s conftest.$ac_objext' 12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12134 (eval $ac_try) 2>&5 12135 ac_status=$? 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); }; }; then 12138 ac_hi=-1 ac_mid=-1 12139 while :; do 12140 cat >conftest.$ac_ext <<_ACEOF 12141#line $LINENO "configure" 12142/* confdefs.h. */ 12143_ACEOF 12144cat confdefs.h >>conftest.$ac_ext 12145cat >>conftest.$ac_ext <<_ACEOF 12146/* end confdefs.h. */ 12147$ac_includes_default 12148int 12149main () 12150{ 12151static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 12152test_array [0] = 0 12153 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158rm -f conftest.$ac_objext 12159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12160 (eval $ac_compile) 2>&5 12161 ac_status=$? 12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12163 (exit $ac_status); } && 12164 { ac_try='test -s conftest.$ac_objext' 12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12166 (eval $ac_try) 2>&5 12167 ac_status=$? 12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12169 (exit $ac_status); }; }; then 12170 ac_lo=$ac_mid; break 12171else 12172 echo "$as_me: failed program was:" >&5 12173sed 's/^/| /' conftest.$ac_ext >&5 12174 12175ac_hi=`expr '(' $ac_mid ')' - 1` 12176 if test $ac_mid -le $ac_hi; then 12177 ac_lo= ac_hi= 12178 break 12179 fi 12180 ac_mid=`expr 2 '*' $ac_mid` 12181fi 12182rm -f conftest.$ac_objext conftest.$ac_ext 12183 done 12184else 12185 echo "$as_me: failed program was:" >&5 12186sed 's/^/| /' conftest.$ac_ext >&5 12187 12188ac_lo= ac_hi= 12189fi 12190rm -f conftest.$ac_objext conftest.$ac_ext 12191fi 12192rm -f conftest.$ac_objext conftest.$ac_ext 12193# Binary search between lo and hi bounds. 12194while test "x$ac_lo" != "x$ac_hi"; do 12195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12196 cat >conftest.$ac_ext <<_ACEOF 12197#line $LINENO "configure" 12198/* confdefs.h. */ 12199_ACEOF 12200cat confdefs.h >>conftest.$ac_ext 12201cat >>conftest.$ac_ext <<_ACEOF 12202/* end confdefs.h. */ 12203$ac_includes_default 12204int 12205main () 12206{ 12207static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 12208test_array [0] = 0 12209 12210 ; 12211 return 0; 12212} 12213_ACEOF 12214rm -f conftest.$ac_objext 12215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12216 (eval $ac_compile) 2>&5 12217 ac_status=$? 12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); } && 12220 { ac_try='test -s conftest.$ac_objext' 12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12222 (eval $ac_try) 2>&5 12223 ac_status=$? 12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12225 (exit $ac_status); }; }; then 12226 ac_hi=$ac_mid 12227else 12228 echo "$as_me: failed program was:" >&5 12229sed 's/^/| /' conftest.$ac_ext >&5 12230 12231ac_lo=`expr '(' $ac_mid ')' + 1` 12232fi 12233rm -f conftest.$ac_objext conftest.$ac_ext 12234done 12235case $ac_lo in 12236?*) ac_cv_sizeof_char=$ac_lo;; 12237'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 12238See \`config.log' for more details." >&5 12239echo "$as_me: error: cannot compute sizeof (char), 77 12240See \`config.log' for more details." >&2;} 12241 { (exit 1); exit 1; }; } ;; 12242esac 12243else 12244 if test "$cross_compiling" = yes; then 12245 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12246See \`config.log' for more details." >&5 12247echo "$as_me: error: cannot run test program while cross compiling 12248See \`config.log' for more details." >&2;} 12249 { (exit 1); exit 1; }; } 12250else 12251 cat >conftest.$ac_ext <<_ACEOF 12252#line $LINENO "configure" 12253/* confdefs.h. */ 12254_ACEOF 12255cat confdefs.h >>conftest.$ac_ext 12256cat >>conftest.$ac_ext <<_ACEOF 12257/* end confdefs.h. */ 12258$ac_includes_default 12259long longval () { return (long) (sizeof (char)); } 12260unsigned long ulongval () { return (long) (sizeof (char)); } 12261#include <stdio.h> 12262#include <stdlib.h> 12263int 12264main () 12265{ 12266 12267 FILE *f = fopen ("conftest.val", "w"); 12268 if (! f) 12269 exit (1); 12270 if (((long) (sizeof (char))) < 0) 12271 { 12272 long i = longval (); 12273 if (i != ((long) (sizeof (char)))) 12274 exit (1); 12275 fprintf (f, "%ld\n", i); 12276 } 12277 else 12278 { 12279 unsigned long i = ulongval (); 12280 if (i != ((long) (sizeof (char)))) 12281 exit (1); 12282 fprintf (f, "%lu\n", i); 12283 } 12284 exit (ferror (f) || fclose (f) != 0); 12285 12286 ; 12287 return 0; 12288} 12289_ACEOF 12290rm -f conftest$ac_exeext 12291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12292 (eval $ac_link) 2>&5 12293 ac_status=$? 12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12297 (eval $ac_try) 2>&5 12298 ac_status=$? 12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12300 (exit $ac_status); }; }; then 12301 ac_cv_sizeof_char=`cat conftest.val` 12302else 12303 echo "$as_me: program exited with status $ac_status" >&5 12304echo "$as_me: failed program was:" >&5 12305sed 's/^/| /' conftest.$ac_ext >&5 12306 12307( exit $ac_status ) 12308{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 12309See \`config.log' for more details." >&5 12310echo "$as_me: error: cannot compute sizeof (char), 77 12311See \`config.log' for more details." >&2;} 12312 { (exit 1); exit 1; }; } 12313fi 12314rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12315fi 12316fi 12317rm -f conftest.val 12318else 12319 ac_cv_sizeof_char=0 12320fi 12321fi 12322echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 12323echo "${ECHO_T}$ac_cv_sizeof_char" >&6 12324cat >>confdefs.h <<_ACEOF 12325#define SIZEOF_CHAR $ac_cv_sizeof_char 12326_ACEOF 12327 12328 12329echo "$as_me:$LINENO: checking for short" >&5 12330echo $ECHO_N "checking for short... $ECHO_C" >&6 12331if test "${ac_cv_type_short+set}" = set; then 12332 echo $ECHO_N "(cached) $ECHO_C" >&6 12333else 12334 cat >conftest.$ac_ext <<_ACEOF 12335#line $LINENO "configure" 12336/* confdefs.h. */ 12337_ACEOF 12338cat confdefs.h >>conftest.$ac_ext 12339cat >>conftest.$ac_ext <<_ACEOF 12340/* end confdefs.h. */ 12341$ac_includes_default 12342int 12343main () 12344{ 12345if ((short *) 0) 12346 return 0; 12347if (sizeof (short)) 12348 return 0; 12349 ; 12350 return 0; 12351} 12352_ACEOF 12353rm -f conftest.$ac_objext 12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12355 (eval $ac_compile) 2>&5 12356 ac_status=$? 12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); } && 12359 { ac_try='test -s conftest.$ac_objext' 12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12361 (eval $ac_try) 2>&5 12362 ac_status=$? 12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12364 (exit $ac_status); }; }; then 12365 ac_cv_type_short=yes 12366else 12367 echo "$as_me: failed program was:" >&5 12368sed 's/^/| /' conftest.$ac_ext >&5 12369 12370ac_cv_type_short=no 12371fi 12372rm -f conftest.$ac_objext conftest.$ac_ext 12373fi 12374echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12375echo "${ECHO_T}$ac_cv_type_short" >&6 12376 12377echo "$as_me:$LINENO: checking size of short" >&5 12378echo $ECHO_N "checking size of short... $ECHO_C" >&6 12379if test "${ac_cv_sizeof_short+set}" = set; then 12380 echo $ECHO_N "(cached) $ECHO_C" >&6 12381else 12382 if test "$ac_cv_type_short" = yes; then 12383 # The cast to unsigned long works around a bug in the HP C Compiler 12384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12386 # This bug is HP SR number 8606223364. 12387 if test "$cross_compiling" = yes; then 12388 # Depending upon the size, compute the lo and hi bounds. 12389cat >conftest.$ac_ext <<_ACEOF 12390#line $LINENO "configure" 12391/* confdefs.h. */ 12392_ACEOF 12393cat confdefs.h >>conftest.$ac_ext 12394cat >>conftest.$ac_ext <<_ACEOF 12395/* end confdefs.h. */ 12396$ac_includes_default 12397int 12398main () 12399{ 12400static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 12401test_array [0] = 0 12402 12403 ; 12404 return 0; 12405} 12406_ACEOF 12407rm -f conftest.$ac_objext 12408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12409 (eval $ac_compile) 2>&5 12410 ac_status=$? 12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12412 (exit $ac_status); } && 12413 { ac_try='test -s conftest.$ac_objext' 12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12415 (eval $ac_try) 2>&5 12416 ac_status=$? 12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12418 (exit $ac_status); }; }; then 12419 ac_lo=0 ac_mid=0 12420 while :; do 12421 cat >conftest.$ac_ext <<_ACEOF 12422#line $LINENO "configure" 12423/* confdefs.h. */ 12424_ACEOF 12425cat confdefs.h >>conftest.$ac_ext 12426cat >>conftest.$ac_ext <<_ACEOF 12427/* end confdefs.h. */ 12428$ac_includes_default 12429int 12430main () 12431{ 12432static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12433test_array [0] = 0 12434 12435 ; 12436 return 0; 12437} 12438_ACEOF 12439rm -f conftest.$ac_objext 12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12441 (eval $ac_compile) 2>&5 12442 ac_status=$? 12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12444 (exit $ac_status); } && 12445 { ac_try='test -s conftest.$ac_objext' 12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12447 (eval $ac_try) 2>&5 12448 ac_status=$? 12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12450 (exit $ac_status); }; }; then 12451 ac_hi=$ac_mid; break 12452else 12453 echo "$as_me: failed program was:" >&5 12454sed 's/^/| /' conftest.$ac_ext >&5 12455 12456ac_lo=`expr $ac_mid + 1` 12457 if test $ac_lo -le $ac_mid; then 12458 ac_lo= ac_hi= 12459 break 12460 fi 12461 ac_mid=`expr 2 '*' $ac_mid + 1` 12462fi 12463rm -f conftest.$ac_objext conftest.$ac_ext 12464 done 12465else 12466 echo "$as_me: failed program was:" >&5 12467sed 's/^/| /' conftest.$ac_ext >&5 12468 12469cat >conftest.$ac_ext <<_ACEOF 12470#line $LINENO "configure" 12471/* confdefs.h. */ 12472_ACEOF 12473cat confdefs.h >>conftest.$ac_ext 12474cat >>conftest.$ac_ext <<_ACEOF 12475/* end confdefs.h. */ 12476$ac_includes_default 12477int 12478main () 12479{ 12480static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 12481test_array [0] = 0 12482 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487rm -f conftest.$ac_objext 12488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12489 (eval $ac_compile) 2>&5 12490 ac_status=$? 12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12492 (exit $ac_status); } && 12493 { ac_try='test -s conftest.$ac_objext' 12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12495 (eval $ac_try) 2>&5 12496 ac_status=$? 12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12498 (exit $ac_status); }; }; then 12499 ac_hi=-1 ac_mid=-1 12500 while :; do 12501 cat >conftest.$ac_ext <<_ACEOF 12502#line $LINENO "configure" 12503/* confdefs.h. */ 12504_ACEOF 12505cat confdefs.h >>conftest.$ac_ext 12506cat >>conftest.$ac_ext <<_ACEOF 12507/* end confdefs.h. */ 12508$ac_includes_default 12509int 12510main () 12511{ 12512static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 12513test_array [0] = 0 12514 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519rm -f conftest.$ac_objext 12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12521 (eval $ac_compile) 2>&5 12522 ac_status=$? 12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); } && 12525 { ac_try='test -s conftest.$ac_objext' 12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12527 (eval $ac_try) 2>&5 12528 ac_status=$? 12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12530 (exit $ac_status); }; }; then 12531 ac_lo=$ac_mid; break 12532else 12533 echo "$as_me: failed program was:" >&5 12534sed 's/^/| /' conftest.$ac_ext >&5 12535 12536ac_hi=`expr '(' $ac_mid ')' - 1` 12537 if test $ac_mid -le $ac_hi; then 12538 ac_lo= ac_hi= 12539 break 12540 fi 12541 ac_mid=`expr 2 '*' $ac_mid` 12542fi 12543rm -f conftest.$ac_objext conftest.$ac_ext 12544 done 12545else 12546 echo "$as_me: failed program was:" >&5 12547sed 's/^/| /' conftest.$ac_ext >&5 12548 12549ac_lo= ac_hi= 12550fi 12551rm -f conftest.$ac_objext conftest.$ac_ext 12552fi 12553rm -f conftest.$ac_objext conftest.$ac_ext 12554# Binary search between lo and hi bounds. 12555while test "x$ac_lo" != "x$ac_hi"; do 12556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12557 cat >conftest.$ac_ext <<_ACEOF 12558#line $LINENO "configure" 12559/* confdefs.h. */ 12560_ACEOF 12561cat confdefs.h >>conftest.$ac_ext 12562cat >>conftest.$ac_ext <<_ACEOF 12563/* end confdefs.h. */ 12564$ac_includes_default 12565int 12566main () 12567{ 12568static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12569test_array [0] = 0 12570 12571 ; 12572 return 0; 12573} 12574_ACEOF 12575rm -f conftest.$ac_objext 12576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12577 (eval $ac_compile) 2>&5 12578 ac_status=$? 12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } && 12581 { ac_try='test -s conftest.$ac_objext' 12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12583 (eval $ac_try) 2>&5 12584 ac_status=$? 12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12586 (exit $ac_status); }; }; then 12587 ac_hi=$ac_mid 12588else 12589 echo "$as_me: failed program was:" >&5 12590sed 's/^/| /' conftest.$ac_ext >&5 12591 12592ac_lo=`expr '(' $ac_mid ')' + 1` 12593fi 12594rm -f conftest.$ac_objext conftest.$ac_ext 12595done 12596case $ac_lo in 12597?*) ac_cv_sizeof_short=$ac_lo;; 12598'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12599See \`config.log' for more details." >&5 12600echo "$as_me: error: cannot compute sizeof (short), 77 12601See \`config.log' for more details." >&2;} 12602 { (exit 1); exit 1; }; } ;; 12603esac 12604else 12605 if test "$cross_compiling" = yes; then 12606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12607See \`config.log' for more details." >&5 12608echo "$as_me: error: cannot run test program while cross compiling 12609See \`config.log' for more details." >&2;} 12610 { (exit 1); exit 1; }; } 12611else 12612 cat >conftest.$ac_ext <<_ACEOF 12613#line $LINENO "configure" 12614/* confdefs.h. */ 12615_ACEOF 12616cat confdefs.h >>conftest.$ac_ext 12617cat >>conftest.$ac_ext <<_ACEOF 12618/* end confdefs.h. */ 12619$ac_includes_default 12620long longval () { return (long) (sizeof (short)); } 12621unsigned long ulongval () { return (long) (sizeof (short)); } 12622#include <stdio.h> 12623#include <stdlib.h> 12624int 12625main () 12626{ 12627 12628 FILE *f = fopen ("conftest.val", "w"); 12629 if (! f) 12630 exit (1); 12631 if (((long) (sizeof (short))) < 0) 12632 { 12633 long i = longval (); 12634 if (i != ((long) (sizeof (short)))) 12635 exit (1); 12636 fprintf (f, "%ld\n", i); 12637 } 12638 else 12639 { 12640 unsigned long i = ulongval (); 12641 if (i != ((long) (sizeof (short)))) 12642 exit (1); 12643 fprintf (f, "%lu\n", i); 12644 } 12645 exit (ferror (f) || fclose (f) != 0); 12646 12647 ; 12648 return 0; 12649} 12650_ACEOF 12651rm -f conftest$ac_exeext 12652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12653 (eval $ac_link) 2>&5 12654 ac_status=$? 12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12658 (eval $ac_try) 2>&5 12659 ac_status=$? 12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12661 (exit $ac_status); }; }; then 12662 ac_cv_sizeof_short=`cat conftest.val` 12663else 12664 echo "$as_me: program exited with status $ac_status" >&5 12665echo "$as_me: failed program was:" >&5 12666sed 's/^/| /' conftest.$ac_ext >&5 12667 12668( exit $ac_status ) 12669{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 12670See \`config.log' for more details." >&5 12671echo "$as_me: error: cannot compute sizeof (short), 77 12672See \`config.log' for more details." >&2;} 12673 { (exit 1); exit 1; }; } 12674fi 12675rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12676fi 12677fi 12678rm -f conftest.val 12679else 12680 ac_cv_sizeof_short=0 12681fi 12682fi 12683echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12684echo "${ECHO_T}$ac_cv_sizeof_short" >&6 12685cat >>confdefs.h <<_ACEOF 12686#define SIZEOF_SHORT $ac_cv_sizeof_short 12687_ACEOF 12688 12689 12690echo "$as_me:$LINENO: checking for int" >&5 12691echo $ECHO_N "checking for int... $ECHO_C" >&6 12692if test "${ac_cv_type_int+set}" = set; then 12693 echo $ECHO_N "(cached) $ECHO_C" >&6 12694else 12695 cat >conftest.$ac_ext <<_ACEOF 12696#line $LINENO "configure" 12697/* confdefs.h. */ 12698_ACEOF 12699cat confdefs.h >>conftest.$ac_ext 12700cat >>conftest.$ac_ext <<_ACEOF 12701/* end confdefs.h. */ 12702$ac_includes_default 12703int 12704main () 12705{ 12706if ((int *) 0) 12707 return 0; 12708if (sizeof (int)) 12709 return 0; 12710 ; 12711 return 0; 12712} 12713_ACEOF 12714rm -f conftest.$ac_objext 12715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12716 (eval $ac_compile) 2>&5 12717 ac_status=$? 12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12719 (exit $ac_status); } && 12720 { ac_try='test -s conftest.$ac_objext' 12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12722 (eval $ac_try) 2>&5 12723 ac_status=$? 12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12725 (exit $ac_status); }; }; then 12726 ac_cv_type_int=yes 12727else 12728 echo "$as_me: failed program was:" >&5 12729sed 's/^/| /' conftest.$ac_ext >&5 12730 12731ac_cv_type_int=no 12732fi 12733rm -f conftest.$ac_objext conftest.$ac_ext 12734fi 12735echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12736echo "${ECHO_T}$ac_cv_type_int" >&6 12737 12738echo "$as_me:$LINENO: checking size of int" >&5 12739echo $ECHO_N "checking size of int... $ECHO_C" >&6 12740if test "${ac_cv_sizeof_int+set}" = set; then 12741 echo $ECHO_N "(cached) $ECHO_C" >&6 12742else 12743 if test "$ac_cv_type_int" = yes; then 12744 # The cast to unsigned long works around a bug in the HP C Compiler 12745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12747 # This bug is HP SR number 8606223364. 12748 if test "$cross_compiling" = yes; then 12749 # Depending upon the size, compute the lo and hi bounds. 12750cat >conftest.$ac_ext <<_ACEOF 12751#line $LINENO "configure" 12752/* confdefs.h. */ 12753_ACEOF 12754cat confdefs.h >>conftest.$ac_ext 12755cat >>conftest.$ac_ext <<_ACEOF 12756/* end confdefs.h. */ 12757$ac_includes_default 12758int 12759main () 12760{ 12761static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 12762test_array [0] = 0 12763 12764 ; 12765 return 0; 12766} 12767_ACEOF 12768rm -f conftest.$ac_objext 12769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12770 (eval $ac_compile) 2>&5 12771 ac_status=$? 12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12773 (exit $ac_status); } && 12774 { ac_try='test -s conftest.$ac_objext' 12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12776 (eval $ac_try) 2>&5 12777 ac_status=$? 12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12779 (exit $ac_status); }; }; then 12780 ac_lo=0 ac_mid=0 12781 while :; do 12782 cat >conftest.$ac_ext <<_ACEOF 12783#line $LINENO "configure" 12784/* confdefs.h. */ 12785_ACEOF 12786cat confdefs.h >>conftest.$ac_ext 12787cat >>conftest.$ac_ext <<_ACEOF 12788/* end confdefs.h. */ 12789$ac_includes_default 12790int 12791main () 12792{ 12793static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12794test_array [0] = 0 12795 12796 ; 12797 return 0; 12798} 12799_ACEOF 12800rm -f conftest.$ac_objext 12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12802 (eval $ac_compile) 2>&5 12803 ac_status=$? 12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12805 (exit $ac_status); } && 12806 { ac_try='test -s conftest.$ac_objext' 12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12808 (eval $ac_try) 2>&5 12809 ac_status=$? 12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); }; }; then 12812 ac_hi=$ac_mid; break 12813else 12814 echo "$as_me: failed program was:" >&5 12815sed 's/^/| /' conftest.$ac_ext >&5 12816 12817ac_lo=`expr $ac_mid + 1` 12818 if test $ac_lo -le $ac_mid; then 12819 ac_lo= ac_hi= 12820 break 12821 fi 12822 ac_mid=`expr 2 '*' $ac_mid + 1` 12823fi 12824rm -f conftest.$ac_objext conftest.$ac_ext 12825 done 12826else 12827 echo "$as_me: failed program was:" >&5 12828sed 's/^/| /' conftest.$ac_ext >&5 12829 12830cat >conftest.$ac_ext <<_ACEOF 12831#line $LINENO "configure" 12832/* confdefs.h. */ 12833_ACEOF 12834cat confdefs.h >>conftest.$ac_ext 12835cat >>conftest.$ac_ext <<_ACEOF 12836/* end confdefs.h. */ 12837$ac_includes_default 12838int 12839main () 12840{ 12841static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 12842test_array [0] = 0 12843 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848rm -f conftest.$ac_objext 12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12850 (eval $ac_compile) 2>&5 12851 ac_status=$? 12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12853 (exit $ac_status); } && 12854 { ac_try='test -s conftest.$ac_objext' 12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12856 (eval $ac_try) 2>&5 12857 ac_status=$? 12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12859 (exit $ac_status); }; }; then 12860 ac_hi=-1 ac_mid=-1 12861 while :; do 12862 cat >conftest.$ac_ext <<_ACEOF 12863#line $LINENO "configure" 12864/* confdefs.h. */ 12865_ACEOF 12866cat confdefs.h >>conftest.$ac_ext 12867cat >>conftest.$ac_ext <<_ACEOF 12868/* end confdefs.h. */ 12869$ac_includes_default 12870int 12871main () 12872{ 12873static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 12874test_array [0] = 0 12875 12876 ; 12877 return 0; 12878} 12879_ACEOF 12880rm -f conftest.$ac_objext 12881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12882 (eval $ac_compile) 2>&5 12883 ac_status=$? 12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12885 (exit $ac_status); } && 12886 { ac_try='test -s conftest.$ac_objext' 12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12888 (eval $ac_try) 2>&5 12889 ac_status=$? 12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12891 (exit $ac_status); }; }; then 12892 ac_lo=$ac_mid; break 12893else 12894 echo "$as_me: failed program was:" >&5 12895sed 's/^/| /' conftest.$ac_ext >&5 12896 12897ac_hi=`expr '(' $ac_mid ')' - 1` 12898 if test $ac_mid -le $ac_hi; then 12899 ac_lo= ac_hi= 12900 break 12901 fi 12902 ac_mid=`expr 2 '*' $ac_mid` 12903fi 12904rm -f conftest.$ac_objext conftest.$ac_ext 12905 done 12906else 12907 echo "$as_me: failed program was:" >&5 12908sed 's/^/| /' conftest.$ac_ext >&5 12909 12910ac_lo= ac_hi= 12911fi 12912rm -f conftest.$ac_objext conftest.$ac_ext 12913fi 12914rm -f conftest.$ac_objext conftest.$ac_ext 12915# Binary search between lo and hi bounds. 12916while test "x$ac_lo" != "x$ac_hi"; do 12917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12918 cat >conftest.$ac_ext <<_ACEOF 12919#line $LINENO "configure" 12920/* confdefs.h. */ 12921_ACEOF 12922cat confdefs.h >>conftest.$ac_ext 12923cat >>conftest.$ac_ext <<_ACEOF 12924/* end confdefs.h. */ 12925$ac_includes_default 12926int 12927main () 12928{ 12929static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12930test_array [0] = 0 12931 12932 ; 12933 return 0; 12934} 12935_ACEOF 12936rm -f conftest.$ac_objext 12937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12938 (eval $ac_compile) 2>&5 12939 ac_status=$? 12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12941 (exit $ac_status); } && 12942 { ac_try='test -s conftest.$ac_objext' 12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12944 (eval $ac_try) 2>&5 12945 ac_status=$? 12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12947 (exit $ac_status); }; }; then 12948 ac_hi=$ac_mid 12949else 12950 echo "$as_me: failed program was:" >&5 12951sed 's/^/| /' conftest.$ac_ext >&5 12952 12953ac_lo=`expr '(' $ac_mid ')' + 1` 12954fi 12955rm -f conftest.$ac_objext conftest.$ac_ext 12956done 12957case $ac_lo in 12958?*) ac_cv_sizeof_int=$ac_lo;; 12959'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12960See \`config.log' for more details." >&5 12961echo "$as_me: error: cannot compute sizeof (int), 77 12962See \`config.log' for more details." >&2;} 12963 { (exit 1); exit 1; }; } ;; 12964esac 12965else 12966 if test "$cross_compiling" = yes; then 12967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12968See \`config.log' for more details." >&5 12969echo "$as_me: error: cannot run test program while cross compiling 12970See \`config.log' for more details." >&2;} 12971 { (exit 1); exit 1; }; } 12972else 12973 cat >conftest.$ac_ext <<_ACEOF 12974#line $LINENO "configure" 12975/* confdefs.h. */ 12976_ACEOF 12977cat confdefs.h >>conftest.$ac_ext 12978cat >>conftest.$ac_ext <<_ACEOF 12979/* end confdefs.h. */ 12980$ac_includes_default 12981long longval () { return (long) (sizeof (int)); } 12982unsigned long ulongval () { return (long) (sizeof (int)); } 12983#include <stdio.h> 12984#include <stdlib.h> 12985int 12986main () 12987{ 12988 12989 FILE *f = fopen ("conftest.val", "w"); 12990 if (! f) 12991 exit (1); 12992 if (((long) (sizeof (int))) < 0) 12993 { 12994 long i = longval (); 12995 if (i != ((long) (sizeof (int)))) 12996 exit (1); 12997 fprintf (f, "%ld\n", i); 12998 } 12999 else 13000 { 13001 unsigned long i = ulongval (); 13002 if (i != ((long) (sizeof (int)))) 13003 exit (1); 13004 fprintf (f, "%lu\n", i); 13005 } 13006 exit (ferror (f) || fclose (f) != 0); 13007 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012rm -f conftest$ac_exeext 13013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13014 (eval $ac_link) 2>&5 13015 ac_status=$? 13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13019 (eval $ac_try) 2>&5 13020 ac_status=$? 13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13022 (exit $ac_status); }; }; then 13023 ac_cv_sizeof_int=`cat conftest.val` 13024else 13025 echo "$as_me: program exited with status $ac_status" >&5 13026echo "$as_me: failed program was:" >&5 13027sed 's/^/| /' conftest.$ac_ext >&5 13028 13029( exit $ac_status ) 13030{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 13031See \`config.log' for more details." >&5 13032echo "$as_me: error: cannot compute sizeof (int), 77 13033See \`config.log' for more details." >&2;} 13034 { (exit 1); exit 1; }; } 13035fi 13036rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13037fi 13038fi 13039rm -f conftest.val 13040else 13041 ac_cv_sizeof_int=0 13042fi 13043fi 13044echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13045echo "${ECHO_T}$ac_cv_sizeof_int" >&6 13046cat >>confdefs.h <<_ACEOF 13047#define SIZEOF_INT $ac_cv_sizeof_int 13048_ACEOF 13049 13050 13051echo "$as_me:$LINENO: checking for long" >&5 13052echo $ECHO_N "checking for long... $ECHO_C" >&6 13053if test "${ac_cv_type_long+set}" = set; then 13054 echo $ECHO_N "(cached) $ECHO_C" >&6 13055else 13056 cat >conftest.$ac_ext <<_ACEOF 13057#line $LINENO "configure" 13058/* confdefs.h. */ 13059_ACEOF 13060cat confdefs.h >>conftest.$ac_ext 13061cat >>conftest.$ac_ext <<_ACEOF 13062/* end confdefs.h. */ 13063$ac_includes_default 13064int 13065main () 13066{ 13067if ((long *) 0) 13068 return 0; 13069if (sizeof (long)) 13070 return 0; 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075rm -f conftest.$ac_objext 13076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13077 (eval $ac_compile) 2>&5 13078 ac_status=$? 13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13080 (exit $ac_status); } && 13081 { ac_try='test -s conftest.$ac_objext' 13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13083 (eval $ac_try) 2>&5 13084 ac_status=$? 13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13086 (exit $ac_status); }; }; then 13087 ac_cv_type_long=yes 13088else 13089 echo "$as_me: failed program was:" >&5 13090sed 's/^/| /' conftest.$ac_ext >&5 13091 13092ac_cv_type_long=no 13093fi 13094rm -f conftest.$ac_objext conftest.$ac_ext 13095fi 13096echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 13097echo "${ECHO_T}$ac_cv_type_long" >&6 13098 13099echo "$as_me:$LINENO: checking size of long" >&5 13100echo $ECHO_N "checking size of long... $ECHO_C" >&6 13101if test "${ac_cv_sizeof_long+set}" = set; then 13102 echo $ECHO_N "(cached) $ECHO_C" >&6 13103else 13104 if test "$ac_cv_type_long" = yes; then 13105 # The cast to unsigned long works around a bug in the HP C Compiler 13106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13108 # This bug is HP SR number 8606223364. 13109 if test "$cross_compiling" = yes; then 13110 # Depending upon the size, compute the lo and hi bounds. 13111cat >conftest.$ac_ext <<_ACEOF 13112#line $LINENO "configure" 13113/* confdefs.h. */ 13114_ACEOF 13115cat confdefs.h >>conftest.$ac_ext 13116cat >>conftest.$ac_ext <<_ACEOF 13117/* end confdefs.h. */ 13118$ac_includes_default 13119int 13120main () 13121{ 13122static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 13123test_array [0] = 0 13124 13125 ; 13126 return 0; 13127} 13128_ACEOF 13129rm -f conftest.$ac_objext 13130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13131 (eval $ac_compile) 2>&5 13132 ac_status=$? 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } && 13135 { ac_try='test -s conftest.$ac_objext' 13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13137 (eval $ac_try) 2>&5 13138 ac_status=$? 13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13140 (exit $ac_status); }; }; then 13141 ac_lo=0 ac_mid=0 13142 while :; do 13143 cat >conftest.$ac_ext <<_ACEOF 13144#line $LINENO "configure" 13145/* confdefs.h. */ 13146_ACEOF 13147cat confdefs.h >>conftest.$ac_ext 13148cat >>conftest.$ac_ext <<_ACEOF 13149/* end confdefs.h. */ 13150$ac_includes_default 13151int 13152main () 13153{ 13154static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13155test_array [0] = 0 13156 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161rm -f conftest.$ac_objext 13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13163 (eval $ac_compile) 2>&5 13164 ac_status=$? 13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13166 (exit $ac_status); } && 13167 { ac_try='test -s conftest.$ac_objext' 13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13169 (eval $ac_try) 2>&5 13170 ac_status=$? 13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13172 (exit $ac_status); }; }; then 13173 ac_hi=$ac_mid; break 13174else 13175 echo "$as_me: failed program was:" >&5 13176sed 's/^/| /' conftest.$ac_ext >&5 13177 13178ac_lo=`expr $ac_mid + 1` 13179 if test $ac_lo -le $ac_mid; then 13180 ac_lo= ac_hi= 13181 break 13182 fi 13183 ac_mid=`expr 2 '*' $ac_mid + 1` 13184fi 13185rm -f conftest.$ac_objext conftest.$ac_ext 13186 done 13187else 13188 echo "$as_me: failed program was:" >&5 13189sed 's/^/| /' conftest.$ac_ext >&5 13190 13191cat >conftest.$ac_ext <<_ACEOF 13192#line $LINENO "configure" 13193/* confdefs.h. */ 13194_ACEOF 13195cat confdefs.h >>conftest.$ac_ext 13196cat >>conftest.$ac_ext <<_ACEOF 13197/* end confdefs.h. */ 13198$ac_includes_default 13199int 13200main () 13201{ 13202static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 13203test_array [0] = 0 13204 13205 ; 13206 return 0; 13207} 13208_ACEOF 13209rm -f conftest.$ac_objext 13210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13211 (eval $ac_compile) 2>&5 13212 ac_status=$? 13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13214 (exit $ac_status); } && 13215 { ac_try='test -s conftest.$ac_objext' 13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13217 (eval $ac_try) 2>&5 13218 ac_status=$? 13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13220 (exit $ac_status); }; }; then 13221 ac_hi=-1 ac_mid=-1 13222 while :; do 13223 cat >conftest.$ac_ext <<_ACEOF 13224#line $LINENO "configure" 13225/* confdefs.h. */ 13226_ACEOF 13227cat confdefs.h >>conftest.$ac_ext 13228cat >>conftest.$ac_ext <<_ACEOF 13229/* end confdefs.h. */ 13230$ac_includes_default 13231int 13232main () 13233{ 13234static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 13235test_array [0] = 0 13236 13237 ; 13238 return 0; 13239} 13240_ACEOF 13241rm -f conftest.$ac_objext 13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13243 (eval $ac_compile) 2>&5 13244 ac_status=$? 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); } && 13247 { ac_try='test -s conftest.$ac_objext' 13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13249 (eval $ac_try) 2>&5 13250 ac_status=$? 13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13252 (exit $ac_status); }; }; then 13253 ac_lo=$ac_mid; break 13254else 13255 echo "$as_me: failed program was:" >&5 13256sed 's/^/| /' conftest.$ac_ext >&5 13257 13258ac_hi=`expr '(' $ac_mid ')' - 1` 13259 if test $ac_mid -le $ac_hi; then 13260 ac_lo= ac_hi= 13261 break 13262 fi 13263 ac_mid=`expr 2 '*' $ac_mid` 13264fi 13265rm -f conftest.$ac_objext conftest.$ac_ext 13266 done 13267else 13268 echo "$as_me: failed program was:" >&5 13269sed 's/^/| /' conftest.$ac_ext >&5 13270 13271ac_lo= ac_hi= 13272fi 13273rm -f conftest.$ac_objext conftest.$ac_ext 13274fi 13275rm -f conftest.$ac_objext conftest.$ac_ext 13276# Binary search between lo and hi bounds. 13277while test "x$ac_lo" != "x$ac_hi"; do 13278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13279 cat >conftest.$ac_ext <<_ACEOF 13280#line $LINENO "configure" 13281/* confdefs.h. */ 13282_ACEOF 13283cat confdefs.h >>conftest.$ac_ext 13284cat >>conftest.$ac_ext <<_ACEOF 13285/* end confdefs.h. */ 13286$ac_includes_default 13287int 13288main () 13289{ 13290static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 13291test_array [0] = 0 13292 13293 ; 13294 return 0; 13295} 13296_ACEOF 13297rm -f conftest.$ac_objext 13298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13299 (eval $ac_compile) 2>&5 13300 ac_status=$? 13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13302 (exit $ac_status); } && 13303 { ac_try='test -s conftest.$ac_objext' 13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13305 (eval $ac_try) 2>&5 13306 ac_status=$? 13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13308 (exit $ac_status); }; }; then 13309 ac_hi=$ac_mid 13310else 13311 echo "$as_me: failed program was:" >&5 13312sed 's/^/| /' conftest.$ac_ext >&5 13313 13314ac_lo=`expr '(' $ac_mid ')' + 1` 13315fi 13316rm -f conftest.$ac_objext conftest.$ac_ext 13317done 13318case $ac_lo in 13319?*) ac_cv_sizeof_long=$ac_lo;; 13320'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13321See \`config.log' for more details." >&5 13322echo "$as_me: error: cannot compute sizeof (long), 77 13323See \`config.log' for more details." >&2;} 13324 { (exit 1); exit 1; }; } ;; 13325esac 13326else 13327 if test "$cross_compiling" = yes; then 13328 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13329See \`config.log' for more details." >&5 13330echo "$as_me: error: cannot run test program while cross compiling 13331See \`config.log' for more details." >&2;} 13332 { (exit 1); exit 1; }; } 13333else 13334 cat >conftest.$ac_ext <<_ACEOF 13335#line $LINENO "configure" 13336/* confdefs.h. */ 13337_ACEOF 13338cat confdefs.h >>conftest.$ac_ext 13339cat >>conftest.$ac_ext <<_ACEOF 13340/* end confdefs.h. */ 13341$ac_includes_default 13342long longval () { return (long) (sizeof (long)); } 13343unsigned long ulongval () { return (long) (sizeof (long)); } 13344#include <stdio.h> 13345#include <stdlib.h> 13346int 13347main () 13348{ 13349 13350 FILE *f = fopen ("conftest.val", "w"); 13351 if (! f) 13352 exit (1); 13353 if (((long) (sizeof (long))) < 0) 13354 { 13355 long i = longval (); 13356 if (i != ((long) (sizeof (long)))) 13357 exit (1); 13358 fprintf (f, "%ld\n", i); 13359 } 13360 else 13361 { 13362 unsigned long i = ulongval (); 13363 if (i != ((long) (sizeof (long)))) 13364 exit (1); 13365 fprintf (f, "%lu\n", i); 13366 } 13367 exit (ferror (f) || fclose (f) != 0); 13368 13369 ; 13370 return 0; 13371} 13372_ACEOF 13373rm -f conftest$ac_exeext 13374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13375 (eval $ac_link) 2>&5 13376 ac_status=$? 13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13380 (eval $ac_try) 2>&5 13381 ac_status=$? 13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13383 (exit $ac_status); }; }; then 13384 ac_cv_sizeof_long=`cat conftest.val` 13385else 13386 echo "$as_me: program exited with status $ac_status" >&5 13387echo "$as_me: failed program was:" >&5 13388sed 's/^/| /' conftest.$ac_ext >&5 13389 13390( exit $ac_status ) 13391{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13392See \`config.log' for more details." >&5 13393echo "$as_me: error: cannot compute sizeof (long), 77 13394See \`config.log' for more details." >&2;} 13395 { (exit 1); exit 1; }; } 13396fi 13397rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13398fi 13399fi 13400rm -f conftest.val 13401else 13402 ac_cv_sizeof_long=0 13403fi 13404fi 13405echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13406echo "${ECHO_T}$ac_cv_sizeof_long" >&6 13407cat >>confdefs.h <<_ACEOF 13408#define SIZEOF_LONG $ac_cv_sizeof_long 13409_ACEOF 13410 13411 13412echo "$as_me:$LINENO: checking for size_t" >&5 13413echo $ECHO_N "checking for size_t... $ECHO_C" >&6 13414if test "${ac_cv_type_size_t+set}" = set; then 13415 echo $ECHO_N "(cached) $ECHO_C" >&6 13416else 13417 cat >conftest.$ac_ext <<_ACEOF 13418#line $LINENO "configure" 13419/* confdefs.h. */ 13420_ACEOF 13421cat confdefs.h >>conftest.$ac_ext 13422cat >>conftest.$ac_ext <<_ACEOF 13423/* end confdefs.h. */ 13424$ac_includes_default 13425int 13426main () 13427{ 13428if ((size_t *) 0) 13429 return 0; 13430if (sizeof (size_t)) 13431 return 0; 13432 ; 13433 return 0; 13434} 13435_ACEOF 13436rm -f conftest.$ac_objext 13437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13438 (eval $ac_compile) 2>&5 13439 ac_status=$? 13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13441 (exit $ac_status); } && 13442 { ac_try='test -s conftest.$ac_objext' 13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13444 (eval $ac_try) 2>&5 13445 ac_status=$? 13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13447 (exit $ac_status); }; }; then 13448 ac_cv_type_size_t=yes 13449else 13450 echo "$as_me: failed program was:" >&5 13451sed 's/^/| /' conftest.$ac_ext >&5 13452 13453ac_cv_type_size_t=no 13454fi 13455rm -f conftest.$ac_objext conftest.$ac_ext 13456fi 13457echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 13458echo "${ECHO_T}$ac_cv_type_size_t" >&6 13459 13460echo "$as_me:$LINENO: checking size of size_t" >&5 13461echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 13462if test "${ac_cv_sizeof_size_t+set}" = set; then 13463 echo $ECHO_N "(cached) $ECHO_C" >&6 13464else 13465 if test "$ac_cv_type_size_t" = yes; then 13466 # The cast to unsigned long works around a bug in the HP C Compiler 13467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13469 # This bug is HP SR number 8606223364. 13470 if test "$cross_compiling" = yes; then 13471 # Depending upon the size, compute the lo and hi bounds. 13472cat >conftest.$ac_ext <<_ACEOF 13473#line $LINENO "configure" 13474/* confdefs.h. */ 13475_ACEOF 13476cat confdefs.h >>conftest.$ac_ext 13477cat >>conftest.$ac_ext <<_ACEOF 13478/* end confdefs.h. */ 13479$ac_includes_default 13480int 13481main () 13482{ 13483static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; 13484test_array [0] = 0 13485 13486 ; 13487 return 0; 13488} 13489_ACEOF 13490rm -f conftest.$ac_objext 13491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13492 (eval $ac_compile) 2>&5 13493 ac_status=$? 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); } && 13496 { ac_try='test -s conftest.$ac_objext' 13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13498 (eval $ac_try) 2>&5 13499 ac_status=$? 13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13501 (exit $ac_status); }; }; then 13502 ac_lo=0 ac_mid=0 13503 while :; do 13504 cat >conftest.$ac_ext <<_ACEOF 13505#line $LINENO "configure" 13506/* confdefs.h. */ 13507_ACEOF 13508cat confdefs.h >>conftest.$ac_ext 13509cat >>conftest.$ac_ext <<_ACEOF 13510/* end confdefs.h. */ 13511$ac_includes_default 13512int 13513main () 13514{ 13515static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; 13516test_array [0] = 0 13517 13518 ; 13519 return 0; 13520} 13521_ACEOF 13522rm -f conftest.$ac_objext 13523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13524 (eval $ac_compile) 2>&5 13525 ac_status=$? 13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13527 (exit $ac_status); } && 13528 { ac_try='test -s conftest.$ac_objext' 13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13530 (eval $ac_try) 2>&5 13531 ac_status=$? 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); }; }; then 13534 ac_hi=$ac_mid; break 13535else 13536 echo "$as_me: failed program was:" >&5 13537sed 's/^/| /' conftest.$ac_ext >&5 13538 13539ac_lo=`expr $ac_mid + 1` 13540 if test $ac_lo -le $ac_mid; then 13541 ac_lo= ac_hi= 13542 break 13543 fi 13544 ac_mid=`expr 2 '*' $ac_mid + 1` 13545fi 13546rm -f conftest.$ac_objext conftest.$ac_ext 13547 done 13548else 13549 echo "$as_me: failed program was:" >&5 13550sed 's/^/| /' conftest.$ac_ext >&5 13551 13552cat >conftest.$ac_ext <<_ACEOF 13553#line $LINENO "configure" 13554/* confdefs.h. */ 13555_ACEOF 13556cat confdefs.h >>conftest.$ac_ext 13557cat >>conftest.$ac_ext <<_ACEOF 13558/* end confdefs.h. */ 13559$ac_includes_default 13560int 13561main () 13562{ 13563static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; 13564test_array [0] = 0 13565 13566 ; 13567 return 0; 13568} 13569_ACEOF 13570rm -f conftest.$ac_objext 13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13572 (eval $ac_compile) 2>&5 13573 ac_status=$? 13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13575 (exit $ac_status); } && 13576 { ac_try='test -s conftest.$ac_objext' 13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13578 (eval $ac_try) 2>&5 13579 ac_status=$? 13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13581 (exit $ac_status); }; }; then 13582 ac_hi=-1 ac_mid=-1 13583 while :; do 13584 cat >conftest.$ac_ext <<_ACEOF 13585#line $LINENO "configure" 13586/* confdefs.h. */ 13587_ACEOF 13588cat confdefs.h >>conftest.$ac_ext 13589cat >>conftest.$ac_ext <<_ACEOF 13590/* end confdefs.h. */ 13591$ac_includes_default 13592int 13593main () 13594{ 13595static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; 13596test_array [0] = 0 13597 13598 ; 13599 return 0; 13600} 13601_ACEOF 13602rm -f conftest.$ac_objext 13603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13604 (eval $ac_compile) 2>&5 13605 ac_status=$? 13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13607 (exit $ac_status); } && 13608 { ac_try='test -s conftest.$ac_objext' 13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13610 (eval $ac_try) 2>&5 13611 ac_status=$? 13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13613 (exit $ac_status); }; }; then 13614 ac_lo=$ac_mid; break 13615else 13616 echo "$as_me: failed program was:" >&5 13617sed 's/^/| /' conftest.$ac_ext >&5 13618 13619ac_hi=`expr '(' $ac_mid ')' - 1` 13620 if test $ac_mid -le $ac_hi; then 13621 ac_lo= ac_hi= 13622 break 13623 fi 13624 ac_mid=`expr 2 '*' $ac_mid` 13625fi 13626rm -f conftest.$ac_objext conftest.$ac_ext 13627 done 13628else 13629 echo "$as_me: failed program was:" >&5 13630sed 's/^/| /' conftest.$ac_ext >&5 13631 13632ac_lo= ac_hi= 13633fi 13634rm -f conftest.$ac_objext conftest.$ac_ext 13635fi 13636rm -f conftest.$ac_objext conftest.$ac_ext 13637# Binary search between lo and hi bounds. 13638while test "x$ac_lo" != "x$ac_hi"; do 13639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13640 cat >conftest.$ac_ext <<_ACEOF 13641#line $LINENO "configure" 13642/* confdefs.h. */ 13643_ACEOF 13644cat confdefs.h >>conftest.$ac_ext 13645cat >>conftest.$ac_ext <<_ACEOF 13646/* end confdefs.h. */ 13647$ac_includes_default 13648int 13649main () 13650{ 13651static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; 13652test_array [0] = 0 13653 13654 ; 13655 return 0; 13656} 13657_ACEOF 13658rm -f conftest.$ac_objext 13659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13660 (eval $ac_compile) 2>&5 13661 ac_status=$? 13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13663 (exit $ac_status); } && 13664 { ac_try='test -s conftest.$ac_objext' 13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13666 (eval $ac_try) 2>&5 13667 ac_status=$? 13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13669 (exit $ac_status); }; }; then 13670 ac_hi=$ac_mid 13671else 13672 echo "$as_me: failed program was:" >&5 13673sed 's/^/| /' conftest.$ac_ext >&5 13674 13675ac_lo=`expr '(' $ac_mid ')' + 1` 13676fi 13677rm -f conftest.$ac_objext conftest.$ac_ext 13678done 13679case $ac_lo in 13680?*) ac_cv_sizeof_size_t=$ac_lo;; 13681'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 13682See \`config.log' for more details." >&5 13683echo "$as_me: error: cannot compute sizeof (size_t), 77 13684See \`config.log' for more details." >&2;} 13685 { (exit 1); exit 1; }; } ;; 13686esac 13687else 13688 if test "$cross_compiling" = yes; then 13689 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13690See \`config.log' for more details." >&5 13691echo "$as_me: error: cannot run test program while cross compiling 13692See \`config.log' for more details." >&2;} 13693 { (exit 1); exit 1; }; } 13694else 13695 cat >conftest.$ac_ext <<_ACEOF 13696#line $LINENO "configure" 13697/* confdefs.h. */ 13698_ACEOF 13699cat confdefs.h >>conftest.$ac_ext 13700cat >>conftest.$ac_ext <<_ACEOF 13701/* end confdefs.h. */ 13702$ac_includes_default 13703long longval () { return (long) (sizeof (size_t)); } 13704unsigned long ulongval () { return (long) (sizeof (size_t)); } 13705#include <stdio.h> 13706#include <stdlib.h> 13707int 13708main () 13709{ 13710 13711 FILE *f = fopen ("conftest.val", "w"); 13712 if (! f) 13713 exit (1); 13714 if (((long) (sizeof (size_t))) < 0) 13715 { 13716 long i = longval (); 13717 if (i != ((long) (sizeof (size_t)))) 13718 exit (1); 13719 fprintf (f, "%ld\n", i); 13720 } 13721 else 13722 { 13723 unsigned long i = ulongval (); 13724 if (i != ((long) (sizeof (size_t)))) 13725 exit (1); 13726 fprintf (f, "%lu\n", i); 13727 } 13728 exit (ferror (f) || fclose (f) != 0); 13729 13730 ; 13731 return 0; 13732} 13733_ACEOF 13734rm -f conftest$ac_exeext 13735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13736 (eval $ac_link) 2>&5 13737 ac_status=$? 13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13741 (eval $ac_try) 2>&5 13742 ac_status=$? 13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13744 (exit $ac_status); }; }; then 13745 ac_cv_sizeof_size_t=`cat conftest.val` 13746else 13747 echo "$as_me: program exited with status $ac_status" >&5 13748echo "$as_me: failed program was:" >&5 13749sed 's/^/| /' conftest.$ac_ext >&5 13750 13751( exit $ac_status ) 13752{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 13753See \`config.log' for more details." >&5 13754echo "$as_me: error: cannot compute sizeof (size_t), 77 13755See \`config.log' for more details." >&2;} 13756 { (exit 1); exit 1; }; } 13757fi 13758rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13759fi 13760fi 13761rm -f conftest.val 13762else 13763 ac_cv_sizeof_size_t=0 13764fi 13765fi 13766echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 13767echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 13768cat >>confdefs.h <<_ACEOF 13769#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 13770_ACEOF 13771 13772 13773echo "$as_me:$LINENO: checking for void*" >&5 13774echo $ECHO_N "checking for void*... $ECHO_C" >&6 13775if test "${ac_cv_type_voidp+set}" = set; then 13776 echo $ECHO_N "(cached) $ECHO_C" >&6 13777else 13778 cat >conftest.$ac_ext <<_ACEOF 13779#line $LINENO "configure" 13780/* confdefs.h. */ 13781_ACEOF 13782cat confdefs.h >>conftest.$ac_ext 13783cat >>conftest.$ac_ext <<_ACEOF 13784/* end confdefs.h. */ 13785$ac_includes_default 13786int 13787main () 13788{ 13789if ((void* *) 0) 13790 return 0; 13791if (sizeof (void*)) 13792 return 0; 13793 ; 13794 return 0; 13795} 13796_ACEOF 13797rm -f conftest.$ac_objext 13798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13799 (eval $ac_compile) 2>&5 13800 ac_status=$? 13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13802 (exit $ac_status); } && 13803 { ac_try='test -s conftest.$ac_objext' 13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13805 (eval $ac_try) 2>&5 13806 ac_status=$? 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13808 (exit $ac_status); }; }; then 13809 ac_cv_type_voidp=yes 13810else 13811 echo "$as_me: failed program was:" >&5 13812sed 's/^/| /' conftest.$ac_ext >&5 13813 13814ac_cv_type_voidp=no 13815fi 13816rm -f conftest.$ac_objext conftest.$ac_ext 13817fi 13818echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 13819echo "${ECHO_T}$ac_cv_type_voidp" >&6 13820 13821echo "$as_me:$LINENO: checking size of void*" >&5 13822echo $ECHO_N "checking size of void*... $ECHO_C" >&6 13823if test "${ac_cv_sizeof_voidp+set}" = set; then 13824 echo $ECHO_N "(cached) $ECHO_C" >&6 13825else 13826 if test "$ac_cv_type_voidp" = yes; then 13827 # The cast to unsigned long works around a bug in the HP C Compiler 13828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13830 # This bug is HP SR number 8606223364. 13831 if test "$cross_compiling" = yes; then 13832 # Depending upon the size, compute the lo and hi bounds. 13833cat >conftest.$ac_ext <<_ACEOF 13834#line $LINENO "configure" 13835/* confdefs.h. */ 13836_ACEOF 13837cat confdefs.h >>conftest.$ac_ext 13838cat >>conftest.$ac_ext <<_ACEOF 13839/* end confdefs.h. */ 13840$ac_includes_default 13841int 13842main () 13843{ 13844static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; 13845test_array [0] = 0 13846 13847 ; 13848 return 0; 13849} 13850_ACEOF 13851rm -f conftest.$ac_objext 13852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13853 (eval $ac_compile) 2>&5 13854 ac_status=$? 13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13856 (exit $ac_status); } && 13857 { ac_try='test -s conftest.$ac_objext' 13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13859 (eval $ac_try) 2>&5 13860 ac_status=$? 13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13862 (exit $ac_status); }; }; then 13863 ac_lo=0 ac_mid=0 13864 while :; do 13865 cat >conftest.$ac_ext <<_ACEOF 13866#line $LINENO "configure" 13867/* confdefs.h. */ 13868_ACEOF 13869cat confdefs.h >>conftest.$ac_ext 13870cat >>conftest.$ac_ext <<_ACEOF 13871/* end confdefs.h. */ 13872$ac_includes_default 13873int 13874main () 13875{ 13876static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 13877test_array [0] = 0 13878 13879 ; 13880 return 0; 13881} 13882_ACEOF 13883rm -f conftest.$ac_objext 13884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13885 (eval $ac_compile) 2>&5 13886 ac_status=$? 13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13888 (exit $ac_status); } && 13889 { ac_try='test -s conftest.$ac_objext' 13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13891 (eval $ac_try) 2>&5 13892 ac_status=$? 13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13894 (exit $ac_status); }; }; then 13895 ac_hi=$ac_mid; break 13896else 13897 echo "$as_me: failed program was:" >&5 13898sed 's/^/| /' conftest.$ac_ext >&5 13899 13900ac_lo=`expr $ac_mid + 1` 13901 if test $ac_lo -le $ac_mid; then 13902 ac_lo= ac_hi= 13903 break 13904 fi 13905 ac_mid=`expr 2 '*' $ac_mid + 1` 13906fi 13907rm -f conftest.$ac_objext conftest.$ac_ext 13908 done 13909else 13910 echo "$as_me: failed program was:" >&5 13911sed 's/^/| /' conftest.$ac_ext >&5 13912 13913cat >conftest.$ac_ext <<_ACEOF 13914#line $LINENO "configure" 13915/* confdefs.h. */ 13916_ACEOF 13917cat confdefs.h >>conftest.$ac_ext 13918cat >>conftest.$ac_ext <<_ACEOF 13919/* end confdefs.h. */ 13920$ac_includes_default 13921int 13922main () 13923{ 13924static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; 13925test_array [0] = 0 13926 13927 ; 13928 return 0; 13929} 13930_ACEOF 13931rm -f conftest.$ac_objext 13932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13933 (eval $ac_compile) 2>&5 13934 ac_status=$? 13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13936 (exit $ac_status); } && 13937 { ac_try='test -s conftest.$ac_objext' 13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13939 (eval $ac_try) 2>&5 13940 ac_status=$? 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13942 (exit $ac_status); }; }; then 13943 ac_hi=-1 ac_mid=-1 13944 while :; do 13945 cat >conftest.$ac_ext <<_ACEOF 13946#line $LINENO "configure" 13947/* confdefs.h. */ 13948_ACEOF 13949cat confdefs.h >>conftest.$ac_ext 13950cat >>conftest.$ac_ext <<_ACEOF 13951/* end confdefs.h. */ 13952$ac_includes_default 13953int 13954main () 13955{ 13956static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; 13957test_array [0] = 0 13958 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963rm -f conftest.$ac_objext 13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13965 (eval $ac_compile) 2>&5 13966 ac_status=$? 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13968 (exit $ac_status); } && 13969 { ac_try='test -s conftest.$ac_objext' 13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13971 (eval $ac_try) 2>&5 13972 ac_status=$? 13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13974 (exit $ac_status); }; }; then 13975 ac_lo=$ac_mid; break 13976else 13977 echo "$as_me: failed program was:" >&5 13978sed 's/^/| /' conftest.$ac_ext >&5 13979 13980ac_hi=`expr '(' $ac_mid ')' - 1` 13981 if test $ac_mid -le $ac_hi; then 13982 ac_lo= ac_hi= 13983 break 13984 fi 13985 ac_mid=`expr 2 '*' $ac_mid` 13986fi 13987rm -f conftest.$ac_objext conftest.$ac_ext 13988 done 13989else 13990 echo "$as_me: failed program was:" >&5 13991sed 's/^/| /' conftest.$ac_ext >&5 13992 13993ac_lo= ac_hi= 13994fi 13995rm -f conftest.$ac_objext conftest.$ac_ext 13996fi 13997rm -f conftest.$ac_objext conftest.$ac_ext 13998# Binary search between lo and hi bounds. 13999while test "x$ac_lo" != "x$ac_hi"; do 14000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14001 cat >conftest.$ac_ext <<_ACEOF 14002#line $LINENO "configure" 14003/* confdefs.h. */ 14004_ACEOF 14005cat confdefs.h >>conftest.$ac_ext 14006cat >>conftest.$ac_ext <<_ACEOF 14007/* end confdefs.h. */ 14008$ac_includes_default 14009int 14010main () 14011{ 14012static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 14013test_array [0] = 0 14014 14015 ; 14016 return 0; 14017} 14018_ACEOF 14019rm -f conftest.$ac_objext 14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14021 (eval $ac_compile) 2>&5 14022 ac_status=$? 14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14024 (exit $ac_status); } && 14025 { ac_try='test -s conftest.$ac_objext' 14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14027 (eval $ac_try) 2>&5 14028 ac_status=$? 14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14030 (exit $ac_status); }; }; then 14031 ac_hi=$ac_mid 14032else 14033 echo "$as_me: failed program was:" >&5 14034sed 's/^/| /' conftest.$ac_ext >&5 14035 14036ac_lo=`expr '(' $ac_mid ')' + 1` 14037fi 14038rm -f conftest.$ac_objext conftest.$ac_ext 14039done 14040case $ac_lo in 14041?*) ac_cv_sizeof_voidp=$ac_lo;; 14042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 14043See \`config.log' for more details." >&5 14044echo "$as_me: error: cannot compute sizeof (void*), 77 14045See \`config.log' for more details." >&2;} 14046 { (exit 1); exit 1; }; } ;; 14047esac 14048else 14049 if test "$cross_compiling" = yes; then 14050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14051See \`config.log' for more details." >&5 14052echo "$as_me: error: cannot run test program while cross compiling 14053See \`config.log' for more details." >&2;} 14054 { (exit 1); exit 1; }; } 14055else 14056 cat >conftest.$ac_ext <<_ACEOF 14057#line $LINENO "configure" 14058/* confdefs.h. */ 14059_ACEOF 14060cat confdefs.h >>conftest.$ac_ext 14061cat >>conftest.$ac_ext <<_ACEOF 14062/* end confdefs.h. */ 14063$ac_includes_default 14064long longval () { return (long) (sizeof (void*)); } 14065unsigned long ulongval () { return (long) (sizeof (void*)); } 14066#include <stdio.h> 14067#include <stdlib.h> 14068int 14069main () 14070{ 14071 14072 FILE *f = fopen ("conftest.val", "w"); 14073 if (! f) 14074 exit (1); 14075 if (((long) (sizeof (void*))) < 0) 14076 { 14077 long i = longval (); 14078 if (i != ((long) (sizeof (void*)))) 14079 exit (1); 14080 fprintf (f, "%ld\n", i); 14081 } 14082 else 14083 { 14084 unsigned long i = ulongval (); 14085 if (i != ((long) (sizeof (void*)))) 14086 exit (1); 14087 fprintf (f, "%lu\n", i); 14088 } 14089 exit (ferror (f) || fclose (f) != 0); 14090 14091 ; 14092 return 0; 14093} 14094_ACEOF 14095rm -f conftest$ac_exeext 14096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14097 (eval $ac_link) 2>&5 14098 ac_status=$? 14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14102 (eval $ac_try) 2>&5 14103 ac_status=$? 14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14105 (exit $ac_status); }; }; then 14106 ac_cv_sizeof_voidp=`cat conftest.val` 14107else 14108 echo "$as_me: program exited with status $ac_status" >&5 14109echo "$as_me: failed program was:" >&5 14110sed 's/^/| /' conftest.$ac_ext >&5 14111 14112( exit $ac_status ) 14113{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 14114See \`config.log' for more details." >&5 14115echo "$as_me: error: cannot compute sizeof (void*), 77 14116See \`config.log' for more details." >&2;} 14117 { (exit 1); exit 1; }; } 14118fi 14119rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14120fi 14121fi 14122rm -f conftest.val 14123else 14124 ac_cv_sizeof_voidp=0 14125fi 14126fi 14127echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 14128echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 14129cat >>confdefs.h <<_ACEOF 14130#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 14131_ACEOF 14132 14133 14134SIZEOF_INT=$ac_cv_sizeof_int 14135SIZEOF_SHORT=$ac_cv_sizeof_int 14136 14137echo "$as_me:$LINENO: checking for 32-bit int" >&5 14138echo $ECHO_N "checking for 32-bit int... $ECHO_C" >&6 14139if test "${SIZEOF_INT}" = 4; then 14140 INT32_TYPE=int 14141elif test "${SIZEOF_SHORT}" = 4; then 14142 INT32_TYPE=short 14143else 14144 { { echo "$as_me:$LINENO: error: neither int (${SIZEOF_INT}) nor short (${SIZEOF_SHORT}) have sizeof 4!" >&5 14145echo "$as_me: error: neither int (${SIZEOF_INT}) nor short (${SIZEOF_SHORT}) have sizeof 4!" >&2;} 14146 { (exit 1); exit 1; }; } 14147fi 14148 14149cat >>confdefs.h <<_ACEOF 14150#define INT32_TYPE ${INT32_TYPE} 14151_ACEOF 14152 14153echo "$as_me:$LINENO: result: $INT32_TYPE" >&5 14154echo "${ECHO_T}$INT32_TYPE" >&6 14155 14156 14157# 14158# cycles 14159# 14160# comment out if autoconf less then 2.53 14161 14162echo "$as_me:$LINENO: checking for inline" >&5 14163echo $ECHO_N "checking for inline... $ECHO_C" >&6 14164if test "${ac_cv_c_inline+set}" = set; then 14165 echo $ECHO_N "(cached) $ECHO_C" >&6 14166else 14167 ac_cv_c_inline=no 14168for ac_kw in inline __inline__ __inline; do 14169 cat >conftest.$ac_ext <<_ACEOF 14170#line $LINENO "configure" 14171/* confdefs.h. */ 14172_ACEOF 14173cat confdefs.h >>conftest.$ac_ext 14174cat >>conftest.$ac_ext <<_ACEOF 14175/* end confdefs.h. */ 14176#ifndef __cplusplus 14177typedef int foo_t; 14178static $ac_kw foo_t static_foo () {return 0; } 14179$ac_kw foo_t foo () {return 0; } 14180#endif 14181 14182_ACEOF 14183rm -f conftest.$ac_objext 14184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14185 (eval $ac_compile) 2>&5 14186 ac_status=$? 14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14188 (exit $ac_status); } && 14189 { ac_try='test -s conftest.$ac_objext' 14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14191 (eval $ac_try) 2>&5 14192 ac_status=$? 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14194 (exit $ac_status); }; }; then 14195 ac_cv_c_inline=$ac_kw; break 14196else 14197 echo "$as_me: failed program was:" >&5 14198sed 's/^/| /' conftest.$ac_ext >&5 14199 14200fi 14201rm -f conftest.$ac_objext conftest.$ac_ext 14202done 14203 14204fi 14205echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 14206echo "${ECHO_T}$ac_cv_c_inline" >&6 14207case $ac_cv_c_inline in 14208 inline | yes) ;; 14209 no) 14210cat >>confdefs.h <<\_ACEOF 14211#define inline 14212_ACEOF 14213 ;; 14214 *) cat >>confdefs.h <<_ACEOF 14215#define inline $ac_cv_c_inline 14216_ACEOF 14217 ;; 14218esac 14219 14220echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14221echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 14222if test "${ac_cv_header_time+set}" = set; then 14223 echo $ECHO_N "(cached) $ECHO_C" >&6 14224else 14225 cat >conftest.$ac_ext <<_ACEOF 14226#line $LINENO "configure" 14227/* confdefs.h. */ 14228_ACEOF 14229cat confdefs.h >>conftest.$ac_ext 14230cat >>conftest.$ac_ext <<_ACEOF 14231/* end confdefs.h. */ 14232#include <sys/types.h> 14233#include <sys/time.h> 14234#include <time.h> 14235 14236int 14237main () 14238{ 14239if ((struct tm *) 0) 14240return 0; 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245rm -f conftest.$ac_objext 14246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14247 (eval $ac_compile) 2>&5 14248 ac_status=$? 14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14250 (exit $ac_status); } && 14251 { ac_try='test -s conftest.$ac_objext' 14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14253 (eval $ac_try) 2>&5 14254 ac_status=$? 14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14256 (exit $ac_status); }; }; then 14257 ac_cv_header_time=yes 14258else 14259 echo "$as_me: failed program was:" >&5 14260sed 's/^/| /' conftest.$ac_ext >&5 14261 14262ac_cv_header_time=no 14263fi 14264rm -f conftest.$ac_objext conftest.$ac_ext 14265fi 14266echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14267echo "${ECHO_T}$ac_cv_header_time" >&6 14268if test $ac_cv_header_time = yes; then 14269 14270cat >>confdefs.h <<\_ACEOF 14271#define TIME_WITH_SYS_TIME 1 14272_ACEOF 14273 14274fi 14275 14276 14277 14278 14279for ac_header in sys/time.h c_asm.h intrinsics.h 14280do 14281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14282if eval "test \"\${$as_ac_Header+set}\" = set"; then 14283 echo "$as_me:$LINENO: checking for $ac_header" >&5 14284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14285if eval "test \"\${$as_ac_Header+set}\" = set"; then 14286 echo $ECHO_N "(cached) $ECHO_C" >&6 14287fi 14288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14290else 14291 # Is the header compilable? 14292echo "$as_me:$LINENO: checking $ac_header usability" >&5 14293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14294cat >conftest.$ac_ext <<_ACEOF 14295#line $LINENO "configure" 14296/* confdefs.h. */ 14297_ACEOF 14298cat confdefs.h >>conftest.$ac_ext 14299cat >>conftest.$ac_ext <<_ACEOF 14300/* end confdefs.h. */ 14301$ac_includes_default 14302#include <$ac_header> 14303_ACEOF 14304rm -f conftest.$ac_objext 14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14306 (eval $ac_compile) 2>&5 14307 ac_status=$? 14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14309 (exit $ac_status); } && 14310 { ac_try='test -s conftest.$ac_objext' 14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14312 (eval $ac_try) 2>&5 14313 ac_status=$? 14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14315 (exit $ac_status); }; }; then 14316 ac_header_compiler=yes 14317else 14318 echo "$as_me: failed program was:" >&5 14319sed 's/^/| /' conftest.$ac_ext >&5 14320 14321ac_header_compiler=no 14322fi 14323rm -f conftest.$ac_objext conftest.$ac_ext 14324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14325echo "${ECHO_T}$ac_header_compiler" >&6 14326 14327# Is the header present? 14328echo "$as_me:$LINENO: checking $ac_header presence" >&5 14329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14330cat >conftest.$ac_ext <<_ACEOF 14331#line $LINENO "configure" 14332/* confdefs.h. */ 14333_ACEOF 14334cat confdefs.h >>conftest.$ac_ext 14335cat >>conftest.$ac_ext <<_ACEOF 14336/* end confdefs.h. */ 14337#include <$ac_header> 14338_ACEOF 14339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14341 ac_status=$? 14342 grep -v '^ *+' conftest.er1 >conftest.err 14343 rm -f conftest.er1 14344 cat conftest.err >&5 14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14346 (exit $ac_status); } >/dev/null; then 14347 if test -s conftest.err; then 14348 ac_cpp_err=$ac_cxx_preproc_warn_flag 14349 else 14350 ac_cpp_err= 14351 fi 14352else 14353 ac_cpp_err=yes 14354fi 14355if test -z "$ac_cpp_err"; then 14356 ac_header_preproc=yes 14357else 14358 echo "$as_me: failed program was:" >&5 14359sed 's/^/| /' conftest.$ac_ext >&5 14360 14361 ac_header_preproc=no 14362fi 14363rm -f conftest.err conftest.$ac_ext 14364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14365echo "${ECHO_T}$ac_header_preproc" >&6 14366 14367# So? What about this header? 14368case $ac_header_compiler:$ac_header_preproc in 14369 yes:no ) 14370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14374 ( 14375 cat <<\_ASBOX 14376## ------------------------------------ ## 14377## Report this to bug-autoconf@gnu.org. ## 14378## ------------------------------------ ## 14379_ASBOX 14380 ) | 14381 sed "s/^/$as_me: WARNING: /" >&2 14382 ;; 14383 no:yes ) 14384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14390 ( 14391 cat <<\_ASBOX 14392## ------------------------------------ ## 14393## Report this to bug-autoconf@gnu.org. ## 14394## ------------------------------------ ## 14395_ASBOX 14396 ) | 14397 sed "s/^/$as_me: WARNING: /" >&2 14398 ;; 14399esac 14400echo "$as_me:$LINENO: checking for $ac_header" >&5 14401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14402if eval "test \"\${$as_ac_Header+set}\" = set"; then 14403 echo $ECHO_N "(cached) $ECHO_C" >&6 14404else 14405 eval "$as_ac_Header=$ac_header_preproc" 14406fi 14407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14409 14410fi 14411if test `eval echo '${'$as_ac_Header'}'` = yes; then 14412 cat >>confdefs.h <<_ACEOF 14413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14414_ACEOF 14415 14416fi 14417 14418done 14419 14420 14421echo "$as_me:$LINENO: checking for hrtime_t" >&5 14422echo $ECHO_N "checking for hrtime_t... $ECHO_C" >&6 14423if test "${ac_cv_type_hrtime_t+set}" = set; then 14424 echo $ECHO_N "(cached) $ECHO_C" >&6 14425else 14426 cat >conftest.$ac_ext <<_ACEOF 14427#line $LINENO "configure" 14428/* confdefs.h. */ 14429_ACEOF 14430cat confdefs.h >>conftest.$ac_ext 14431cat >>conftest.$ac_ext <<_ACEOF 14432/* end confdefs.h. */ 14433#if HAVE_SYS_TIME_H 14434#include <sys/time.h> 14435#endif 14436 14437int 14438main () 14439{ 14440if ((hrtime_t *) 0) 14441 return 0; 14442if (sizeof (hrtime_t)) 14443 return 0; 14444 ; 14445 return 0; 14446} 14447_ACEOF 14448rm -f conftest.$ac_objext 14449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14450 (eval $ac_compile) 2>&5 14451 ac_status=$? 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14453 (exit $ac_status); } && 14454 { ac_try='test -s conftest.$ac_objext' 14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14456 (eval $ac_try) 2>&5 14457 ac_status=$? 14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14459 (exit $ac_status); }; }; then 14460 ac_cv_type_hrtime_t=yes 14461else 14462 echo "$as_me: failed program was:" >&5 14463sed 's/^/| /' conftest.$ac_ext >&5 14464 14465ac_cv_type_hrtime_t=no 14466fi 14467rm -f conftest.$ac_objext conftest.$ac_ext 14468fi 14469echo "$as_me:$LINENO: result: $ac_cv_type_hrtime_t" >&5 14470echo "${ECHO_T}$ac_cv_type_hrtime_t" >&6 14471if test $ac_cv_type_hrtime_t = yes; then 14472 14473cat >>confdefs.h <<\_ACEOF 14474#define HAVE_HRTIME_T 1 14475_ACEOF 14476 14477fi 14478 14479 14480 14481 14482for ac_func in gethrtime clock_gettime 14483do 14484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14485echo "$as_me:$LINENO: checking for $ac_func" >&5 14486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14487if eval "test \"\${$as_ac_var+set}\" = set"; then 14488 echo $ECHO_N "(cached) $ECHO_C" >&6 14489else 14490 cat >conftest.$ac_ext <<_ACEOF 14491#line $LINENO "configure" 14492/* confdefs.h. */ 14493_ACEOF 14494cat confdefs.h >>conftest.$ac_ext 14495cat >>conftest.$ac_ext <<_ACEOF 14496/* end confdefs.h. */ 14497/* System header to define __stub macros and hopefully few prototypes, 14498 which can conflict with char $ac_func (); below. 14499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14500 <limits.h> exists even on freestanding compilers. */ 14501#ifdef __STDC__ 14502# include <limits.h> 14503#else 14504# include <assert.h> 14505#endif 14506/* Override any gcc2 internal prototype to avoid an error. */ 14507#ifdef __cplusplus 14508extern "C" 14509{ 14510#endif 14511/* We use char because int might match the return type of a gcc2 14512 builtin and then its argument prototype would still apply. */ 14513char $ac_func (); 14514/* The GNU C library defines this for functions which it implements 14515 to always fail with ENOSYS. Some functions are actually named 14516 something starting with __ and the normal name is an alias. */ 14517#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14518choke me 14519#else 14520char (*f) () = $ac_func; 14521#endif 14522#ifdef __cplusplus 14523} 14524#endif 14525 14526int 14527main () 14528{ 14529return f != $ac_func; 14530 ; 14531 return 0; 14532} 14533_ACEOF 14534rm -f conftest.$ac_objext conftest$ac_exeext 14535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14536 (eval $ac_link) 2>&5 14537 ac_status=$? 14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14539 (exit $ac_status); } && 14540 { ac_try='test -s conftest$ac_exeext' 14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14542 (eval $ac_try) 2>&5 14543 ac_status=$? 14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14545 (exit $ac_status); }; }; then 14546 eval "$as_ac_var=yes" 14547else 14548 echo "$as_me: failed program was:" >&5 14549sed 's/^/| /' conftest.$ac_ext >&5 14550 14551eval "$as_ac_var=no" 14552fi 14553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14554fi 14555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14557if test `eval echo '${'$as_ac_var'}'` = yes; then 14558 cat >>confdefs.h <<_ACEOF 14559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14560_ACEOF 14561 14562fi 14563done 14564 14565 14566 14567echo "$as_me:$LINENO: checking for read_real_time" >&5 14568echo $ECHO_N "checking for read_real_time... $ECHO_C" >&6 14569read_real_time_ok=yes 14570cat >conftest.$ac_ext <<_ACEOF 14571#line $LINENO "configure" 14572/* confdefs.h. */ 14573_ACEOF 14574cat confdefs.h >>conftest.$ac_ext 14575cat >>conftest.$ac_ext <<_ACEOF 14576/* end confdefs.h. */ 14577#if TIME_WITH_SYS_TIME 14578 # include <sys/time.h> 14579 # include <time.h> 14580 #else 14581 # if HAVE_SYS_TIME_H 14582 # include <sys/time.h> 14583 # else 14584 # include <time.h> 14585 # endif 14586 #endif 14587 14588int 14589main () 14590{ 14591 14592 timebasestruct_t t; 14593 read_real_time(&t, TIMEBASE_SZ); 14594 14595 ; 14596 return 0; 14597} 14598_ACEOF 14599rm -f conftest.$ac_objext 14600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14601 (eval $ac_compile) 2>&5 14602 ac_status=$? 14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14604 (exit $ac_status); } && 14605 { ac_try='test -s conftest.$ac_objext' 14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14607 (eval $ac_try) 2>&5 14608 ac_status=$? 14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14610 (exit $ac_status); }; }; then 14611 14612cat >>confdefs.h <<\_ACEOF 14613#define HAVE_READ_REAL_TIME 1 14614_ACEOF 14615 14616else 14617 echo "$as_me: failed program was:" >&5 14618sed 's/^/| /' conftest.$ac_ext >&5 14619 14620read_real_time_ok=no 14621fi 14622rm -f conftest.$ac_objext conftest.$ac_ext 14623echo "$as_me:$LINENO: result: $read_real_time_ok" >&5 14624echo "${ECHO_T}$read_real_time_ok" >&6 14625 14626echo "$as_me:$LINENO: checking for time_base_to_time" >&5 14627echo $ECHO_N "checking for time_base_to_time... $ECHO_C" >&6 14628time_base_to_time_ok=yes 14629cat >conftest.$ac_ext <<_ACEOF 14630#line $LINENO "configure" 14631/* confdefs.h. */ 14632_ACEOF 14633cat confdefs.h >>conftest.$ac_ext 14634cat >>conftest.$ac_ext <<_ACEOF 14635/* end confdefs.h. */ 14636#if TIME_WITH_SYS_TIME 14637 # include <sys/time.h> 14638 # include <time.h> 14639 #else 14640 # if HAVE_SYS_TIME_H 14641 # include <sys/time.h> 14642 # else 14643 # include <time.h> 14644 # endif 14645 #endif 14646 14647int 14648main () 14649{ 14650 14651 timebasestruct_t t; 14652 time_base_to_time(&t, TIMEBASE_SZ); 14653 14654 ; 14655 return 0; 14656} 14657_ACEOF 14658rm -f conftest.$ac_objext 14659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14660 (eval $ac_compile) 2>&5 14661 ac_status=$? 14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14663 (exit $ac_status); } && 14664 { ac_try='test -s conftest.$ac_objext' 14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14666 (eval $ac_try) 2>&5 14667 ac_status=$? 14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14669 (exit $ac_status); }; }; then 14670 14671cat >>confdefs.h <<\_ACEOF 14672#define HAVE_TIME_BASE_TO_TIME 1 14673_ACEOF 14674 14675else 14676 echo "$as_me: failed program was:" >&5 14677sed 's/^/| /' conftest.$ac_ext >&5 14678 14679time_base_to_time_ok=no 14680fi 14681rm -f conftest.$ac_objext conftest.$ac_ext 14682echo "$as_me:$LINENO: result: $time_base_to_time_ok" >&5 14683echo "${ECHO_T}$time_base_to_time_ok" >&6 14684 14685#AC_MSG_CHECKING([for rtc]) 14686#rtc_ok=yes 14687#AC_TRY_COMPILE([], [], [AC_DEFINE(HAVE_RTC,1,[Define if you have the rtc().])], [rtc_ok=no]) 14688#AC_MSG_RESULT($rtc_ok) 14689 14690 14691 14692echo "$as_me:$LINENO: checking for _rtc intrinsic" >&5 14693echo $ECHO_N "checking for _rtc intrinsic... $ECHO_C" >&6 14694rtc_ok=yes 14695cat >conftest.$ac_ext <<_ACEOF 14696#line $LINENO "configure" 14697/* confdefs.h. */ 14698_ACEOF 14699cat confdefs.h >>conftest.$ac_ext 14700cat >>conftest.$ac_ext <<_ACEOF 14701/* end confdefs.h. */ 14702#ifdef HAVE_INTRINSICS_H 14703#include <intrinsics.h> 14704#endif 14705int 14706main () 14707{ 14708_rtc() 14709 ; 14710 return 0; 14711} 14712_ACEOF 14713rm -f conftest.$ac_objext conftest$ac_exeext 14714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14715 (eval $ac_link) 2>&5 14716 ac_status=$? 14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14718 (exit $ac_status); } && 14719 { ac_try='test -s conftest$ac_exeext' 14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14721 (eval $ac_try) 2>&5 14722 ac_status=$? 14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14724 (exit $ac_status); }; }; then 14725 14726cat >>confdefs.h <<\_ACEOF 14727#define HAVE__RTC 1 14728_ACEOF 14729 14730else 14731 echo "$as_me: failed program was:" >&5 14732sed 's/^/| /' conftest.$ac_ext >&5 14733 14734rtc_ok=no 14735fi 14736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14737echo "$as_me:$LINENO: result: $rtc_ok" >&5 14738echo "${ECHO_T}$rtc_ok" >&6 14739 14740 14741# 14742# FFT 14743# 14744# 14745# FFT ZFFT 14746# 14747have_fft_zfft=true 14748FFT_ZFFT_LIBS="" 14749FFT_ZFFT_CFLAGS="" 14750 14751# 14752# FFT SGI 14753# 14754LIBS=$save_libs 14755CFLAGS=$save_cflags 14756CPPFLAGS=$save_cppflags 14757have_fft_sgi=true 14758FFT_SGI_LIBS="-lcomplib.sgimath" 14759FFT_SGI_CFLAGS="-DHAVE_FFT_SGI -DHAVE_FFT" 14760 14761echo "$as_me:$LINENO: checking for zfftm1di in -lcomplib.sgimath" >&5 14762echo $ECHO_N "checking for zfftm1di in -lcomplib.sgimath... $ECHO_C" >&6 14763if test "${ac_cv_lib_complib_sgimath_zfftm1di+set}" = set; then 14764 echo $ECHO_N "(cached) $ECHO_C" >&6 14765else 14766 ac_check_lib_save_LIBS=$LIBS 14767LIBS="-lcomplib.sgimath $LIBS" 14768cat >conftest.$ac_ext <<_ACEOF 14769#line $LINENO "configure" 14770/* confdefs.h. */ 14771_ACEOF 14772cat confdefs.h >>conftest.$ac_ext 14773cat >>conftest.$ac_ext <<_ACEOF 14774/* end confdefs.h. */ 14775 14776/* Override any gcc2 internal prototype to avoid an error. */ 14777#ifdef __cplusplus 14778extern "C" 14779#endif 14780/* We use char because int might match the return type of a gcc2 14781 builtin and then its argument prototype would still apply. */ 14782char zfftm1di (); 14783int 14784main () 14785{ 14786zfftm1di (); 14787 ; 14788 return 0; 14789} 14790_ACEOF 14791rm -f conftest.$ac_objext conftest$ac_exeext 14792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14793 (eval $ac_link) 2>&5 14794 ac_status=$? 14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14796 (exit $ac_status); } && 14797 { ac_try='test -s conftest$ac_exeext' 14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14799 (eval $ac_try) 2>&5 14800 ac_status=$? 14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14802 (exit $ac_status); }; }; then 14803 ac_cv_lib_complib_sgimath_zfftm1di=yes 14804else 14805 echo "$as_me: failed program was:" >&5 14806sed 's/^/| /' conftest.$ac_ext >&5 14807 14808ac_cv_lib_complib_sgimath_zfftm1di=no 14809fi 14810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14811LIBS=$ac_check_lib_save_LIBS 14812fi 14813echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfftm1di" >&5 14814echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfftm1di" >&6 14815if test $ac_cv_lib_complib_sgimath_zfftm1di = yes; then 14816 cat >>confdefs.h <<_ACEOF 14817#define HAVE_LIBCOMPLIB_SGIMATH 1 14818_ACEOF 14819 14820 LIBS="-lcomplib.sgimath $LIBS" 14821 14822else 14823 have_fft_sgi=false 14824fi 14825 14826 14827echo "$as_me:$LINENO: checking for zfftm1d in -lcomplib.sgimath" >&5 14828echo $ECHO_N "checking for zfftm1d in -lcomplib.sgimath... $ECHO_C" >&6 14829if test "${ac_cv_lib_complib_sgimath_zfftm1d+set}" = set; then 14830 echo $ECHO_N "(cached) $ECHO_C" >&6 14831else 14832 ac_check_lib_save_LIBS=$LIBS 14833LIBS="-lcomplib.sgimath $LIBS" 14834cat >conftest.$ac_ext <<_ACEOF 14835#line $LINENO "configure" 14836/* confdefs.h. */ 14837_ACEOF 14838cat confdefs.h >>conftest.$ac_ext 14839cat >>conftest.$ac_ext <<_ACEOF 14840/* end confdefs.h. */ 14841 14842/* Override any gcc2 internal prototype to avoid an error. */ 14843#ifdef __cplusplus 14844extern "C" 14845#endif 14846/* We use char because int might match the return type of a gcc2 14847 builtin and then its argument prototype would still apply. */ 14848char zfftm1d (); 14849int 14850main () 14851{ 14852zfftm1d (); 14853 ; 14854 return 0; 14855} 14856_ACEOF 14857rm -f conftest.$ac_objext conftest$ac_exeext 14858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14859 (eval $ac_link) 2>&5 14860 ac_status=$? 14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14862 (exit $ac_status); } && 14863 { ac_try='test -s conftest$ac_exeext' 14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14865 (eval $ac_try) 2>&5 14866 ac_status=$? 14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14868 (exit $ac_status); }; }; then 14869 ac_cv_lib_complib_sgimath_zfftm1d=yes 14870else 14871 echo "$as_me: failed program was:" >&5 14872sed 's/^/| /' conftest.$ac_ext >&5 14873 14874ac_cv_lib_complib_sgimath_zfftm1d=no 14875fi 14876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14877LIBS=$ac_check_lib_save_LIBS 14878fi 14879echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfftm1d" >&5 14880echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfftm1d" >&6 14881if test $ac_cv_lib_complib_sgimath_zfftm1d = yes; then 14882 cat >>confdefs.h <<_ACEOF 14883#define HAVE_LIBCOMPLIB_SGIMATH 1 14884_ACEOF 14885 14886 LIBS="-lcomplib.sgimath $LIBS" 14887 14888else 14889 have_fft_sgi=false 14890fi 14891 14892 14893echo "$as_me:$LINENO: checking for zfft2di in -lcomplib.sgimath" >&5 14894echo $ECHO_N "checking for zfft2di in -lcomplib.sgimath... $ECHO_C" >&6 14895if test "${ac_cv_lib_complib_sgimath_zfft2di+set}" = set; then 14896 echo $ECHO_N "(cached) $ECHO_C" >&6 14897else 14898 ac_check_lib_save_LIBS=$LIBS 14899LIBS="-lcomplib.sgimath $LIBS" 14900cat >conftest.$ac_ext <<_ACEOF 14901#line $LINENO "configure" 14902/* confdefs.h. */ 14903_ACEOF 14904cat confdefs.h >>conftest.$ac_ext 14905cat >>conftest.$ac_ext <<_ACEOF 14906/* end confdefs.h. */ 14907 14908/* Override any gcc2 internal prototype to avoid an error. */ 14909#ifdef __cplusplus 14910extern "C" 14911#endif 14912/* We use char because int might match the return type of a gcc2 14913 builtin and then its argument prototype would still apply. */ 14914char zfft2di (); 14915int 14916main () 14917{ 14918zfft2di (); 14919 ; 14920 return 0; 14921} 14922_ACEOF 14923rm -f conftest.$ac_objext conftest$ac_exeext 14924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14925 (eval $ac_link) 2>&5 14926 ac_status=$? 14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14928 (exit $ac_status); } && 14929 { ac_try='test -s conftest$ac_exeext' 14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14931 (eval $ac_try) 2>&5 14932 ac_status=$? 14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14934 (exit $ac_status); }; }; then 14935 ac_cv_lib_complib_sgimath_zfft2di=yes 14936else 14937 echo "$as_me: failed program was:" >&5 14938sed 's/^/| /' conftest.$ac_ext >&5 14939 14940ac_cv_lib_complib_sgimath_zfft2di=no 14941fi 14942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14943LIBS=$ac_check_lib_save_LIBS 14944fi 14945echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft2di" >&5 14946echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft2di" >&6 14947if test $ac_cv_lib_complib_sgimath_zfft2di = yes; then 14948 cat >>confdefs.h <<_ACEOF 14949#define HAVE_LIBCOMPLIB_SGIMATH 1 14950_ACEOF 14951 14952 LIBS="-lcomplib.sgimath $LIBS" 14953 14954else 14955 have_fft_sgi=false 14956fi 14957 14958 14959echo "$as_me:$LINENO: checking for zfft2d in -lcomplib.sgimath" >&5 14960echo $ECHO_N "checking for zfft2d in -lcomplib.sgimath... $ECHO_C" >&6 14961if test "${ac_cv_lib_complib_sgimath_zfft2d+set}" = set; then 14962 echo $ECHO_N "(cached) $ECHO_C" >&6 14963else 14964 ac_check_lib_save_LIBS=$LIBS 14965LIBS="-lcomplib.sgimath $LIBS" 14966cat >conftest.$ac_ext <<_ACEOF 14967#line $LINENO "configure" 14968/* confdefs.h. */ 14969_ACEOF 14970cat confdefs.h >>conftest.$ac_ext 14971cat >>conftest.$ac_ext <<_ACEOF 14972/* end confdefs.h. */ 14973 14974/* Override any gcc2 internal prototype to avoid an error. */ 14975#ifdef __cplusplus 14976extern "C" 14977#endif 14978/* We use char because int might match the return type of a gcc2 14979 builtin and then its argument prototype would still apply. */ 14980char zfft2d (); 14981int 14982main () 14983{ 14984zfft2d (); 14985 ; 14986 return 0; 14987} 14988_ACEOF 14989rm -f conftest.$ac_objext conftest$ac_exeext 14990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14991 (eval $ac_link) 2>&5 14992 ac_status=$? 14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14994 (exit $ac_status); } && 14995 { ac_try='test -s conftest$ac_exeext' 14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14997 (eval $ac_try) 2>&5 14998 ac_status=$? 14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15000 (exit $ac_status); }; }; then 15001 ac_cv_lib_complib_sgimath_zfft2d=yes 15002else 15003 echo "$as_me: failed program was:" >&5 15004sed 's/^/| /' conftest.$ac_ext >&5 15005 15006ac_cv_lib_complib_sgimath_zfft2d=no 15007fi 15008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15009LIBS=$ac_check_lib_save_LIBS 15010fi 15011echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft2d" >&5 15012echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft2d" >&6 15013if test $ac_cv_lib_complib_sgimath_zfft2d = yes; then 15014 cat >>confdefs.h <<_ACEOF 15015#define HAVE_LIBCOMPLIB_SGIMATH 1 15016_ACEOF 15017 15018 LIBS="-lcomplib.sgimath $LIBS" 15019 15020else 15021 have_fft_sgi=false 15022fi 15023 15024 15025echo "$as_me:$LINENO: checking for zfft3di in -lcomplib.sgimath" >&5 15026echo $ECHO_N "checking for zfft3di in -lcomplib.sgimath... $ECHO_C" >&6 15027if test "${ac_cv_lib_complib_sgimath_zfft3di+set}" = set; then 15028 echo $ECHO_N "(cached) $ECHO_C" >&6 15029else 15030 ac_check_lib_save_LIBS=$LIBS 15031LIBS="-lcomplib.sgimath $LIBS" 15032cat >conftest.$ac_ext <<_ACEOF 15033#line $LINENO "configure" 15034/* confdefs.h. */ 15035_ACEOF 15036cat confdefs.h >>conftest.$ac_ext 15037cat >>conftest.$ac_ext <<_ACEOF 15038/* end confdefs.h. */ 15039 15040/* Override any gcc2 internal prototype to avoid an error. */ 15041#ifdef __cplusplus 15042extern "C" 15043#endif 15044/* We use char because int might match the return type of a gcc2 15045 builtin and then its argument prototype would still apply. */ 15046char zfft3di (); 15047int 15048main () 15049{ 15050zfft3di (); 15051 ; 15052 return 0; 15053} 15054_ACEOF 15055rm -f conftest.$ac_objext conftest$ac_exeext 15056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15057 (eval $ac_link) 2>&5 15058 ac_status=$? 15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15060 (exit $ac_status); } && 15061 { ac_try='test -s conftest$ac_exeext' 15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15063 (eval $ac_try) 2>&5 15064 ac_status=$? 15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15066 (exit $ac_status); }; }; then 15067 ac_cv_lib_complib_sgimath_zfft3di=yes 15068else 15069 echo "$as_me: failed program was:" >&5 15070sed 's/^/| /' conftest.$ac_ext >&5 15071 15072ac_cv_lib_complib_sgimath_zfft3di=no 15073fi 15074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15075LIBS=$ac_check_lib_save_LIBS 15076fi 15077echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft3di" >&5 15078echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft3di" >&6 15079if test $ac_cv_lib_complib_sgimath_zfft3di = yes; then 15080 cat >>confdefs.h <<_ACEOF 15081#define HAVE_LIBCOMPLIB_SGIMATH 1 15082_ACEOF 15083 15084 LIBS="-lcomplib.sgimath $LIBS" 15085 15086else 15087 have_fft_sgi=false 15088fi 15089 15090 15091echo "$as_me:$LINENO: checking for zfft3d in -lcomplib.sgimath" >&5 15092echo $ECHO_N "checking for zfft3d in -lcomplib.sgimath... $ECHO_C" >&6 15093if test "${ac_cv_lib_complib_sgimath_zfft3d+set}" = set; then 15094 echo $ECHO_N "(cached) $ECHO_C" >&6 15095else 15096 ac_check_lib_save_LIBS=$LIBS 15097LIBS="-lcomplib.sgimath $LIBS" 15098cat >conftest.$ac_ext <<_ACEOF 15099#line $LINENO "configure" 15100/* confdefs.h. */ 15101_ACEOF 15102cat confdefs.h >>conftest.$ac_ext 15103cat >>conftest.$ac_ext <<_ACEOF 15104/* end confdefs.h. */ 15105 15106/* Override any gcc2 internal prototype to avoid an error. */ 15107#ifdef __cplusplus 15108extern "C" 15109#endif 15110/* We use char because int might match the return type of a gcc2 15111 builtin and then its argument prototype would still apply. */ 15112char zfft3d (); 15113int 15114main () 15115{ 15116zfft3d (); 15117 ; 15118 return 0; 15119} 15120_ACEOF 15121rm -f conftest.$ac_objext conftest$ac_exeext 15122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15123 (eval $ac_link) 2>&5 15124 ac_status=$? 15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15126 (exit $ac_status); } && 15127 { ac_try='test -s conftest$ac_exeext' 15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15129 (eval $ac_try) 2>&5 15130 ac_status=$? 15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15132 (exit $ac_status); }; }; then 15133 ac_cv_lib_complib_sgimath_zfft3d=yes 15134else 15135 echo "$as_me: failed program was:" >&5 15136sed 's/^/| /' conftest.$ac_ext >&5 15137 15138ac_cv_lib_complib_sgimath_zfft3d=no 15139fi 15140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15141LIBS=$ac_check_lib_save_LIBS 15142fi 15143echo "$as_me:$LINENO: result: $ac_cv_lib_complib_sgimath_zfft3d" >&5 15144echo "${ECHO_T}$ac_cv_lib_complib_sgimath_zfft3d" >&6 15145if test $ac_cv_lib_complib_sgimath_zfft3d = yes; then 15146 cat >>confdefs.h <<_ACEOF 15147#define HAVE_LIBCOMPLIB_SGIMATH 1 15148_ACEOF 15149 15150 LIBS="-lcomplib.sgimath $LIBS" 15151 15152else 15153 have_fft_sgi=false 15154fi 15155 15156if test "${ac_cv_header_fft_h+set}" = set; then 15157 echo "$as_me:$LINENO: checking for fft.h" >&5 15158echo $ECHO_N "checking for fft.h... $ECHO_C" >&6 15159if test "${ac_cv_header_fft_h+set}" = set; then 15160 echo $ECHO_N "(cached) $ECHO_C" >&6 15161fi 15162echo "$as_me:$LINENO: result: $ac_cv_header_fft_h" >&5 15163echo "${ECHO_T}$ac_cv_header_fft_h" >&6 15164else 15165 # Is the header compilable? 15166echo "$as_me:$LINENO: checking fft.h usability" >&5 15167echo $ECHO_N "checking fft.h usability... $ECHO_C" >&6 15168cat >conftest.$ac_ext <<_ACEOF 15169#line $LINENO "configure" 15170/* confdefs.h. */ 15171_ACEOF 15172cat confdefs.h >>conftest.$ac_ext 15173cat >>conftest.$ac_ext <<_ACEOF 15174/* end confdefs.h. */ 15175$ac_includes_default 15176#include <fft.h> 15177_ACEOF 15178rm -f conftest.$ac_objext 15179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15180 (eval $ac_compile) 2>&5 15181 ac_status=$? 15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15183 (exit $ac_status); } && 15184 { ac_try='test -s conftest.$ac_objext' 15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15186 (eval $ac_try) 2>&5 15187 ac_status=$? 15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15189 (exit $ac_status); }; }; then 15190 ac_header_compiler=yes 15191else 15192 echo "$as_me: failed program was:" >&5 15193sed 's/^/| /' conftest.$ac_ext >&5 15194 15195ac_header_compiler=no 15196fi 15197rm -f conftest.$ac_objext conftest.$ac_ext 15198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15199echo "${ECHO_T}$ac_header_compiler" >&6 15200 15201# Is the header present? 15202echo "$as_me:$LINENO: checking fft.h presence" >&5 15203echo $ECHO_N "checking fft.h presence... $ECHO_C" >&6 15204cat >conftest.$ac_ext <<_ACEOF 15205#line $LINENO "configure" 15206/* confdefs.h. */ 15207_ACEOF 15208cat confdefs.h >>conftest.$ac_ext 15209cat >>conftest.$ac_ext <<_ACEOF 15210/* end confdefs.h. */ 15211#include <fft.h> 15212_ACEOF 15213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15215 ac_status=$? 15216 grep -v '^ *+' conftest.er1 >conftest.err 15217 rm -f conftest.er1 15218 cat conftest.err >&5 15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15220 (exit $ac_status); } >/dev/null; then 15221 if test -s conftest.err; then 15222 ac_cpp_err=$ac_cxx_preproc_warn_flag 15223 else 15224 ac_cpp_err= 15225 fi 15226else 15227 ac_cpp_err=yes 15228fi 15229if test -z "$ac_cpp_err"; then 15230 ac_header_preproc=yes 15231else 15232 echo "$as_me: failed program was:" >&5 15233sed 's/^/| /' conftest.$ac_ext >&5 15234 15235 ac_header_preproc=no 15236fi 15237rm -f conftest.err conftest.$ac_ext 15238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15239echo "${ECHO_T}$ac_header_preproc" >&6 15240 15241# So? What about this header? 15242case $ac_header_compiler:$ac_header_preproc in 15243 yes:no ) 15244 { echo "$as_me:$LINENO: WARNING: fft.h: accepted by the compiler, rejected by the preprocessor!" >&5 15245echo "$as_me: WARNING: fft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15246 { echo "$as_me:$LINENO: WARNING: fft.h: proceeding with the preprocessor's result" >&5 15247echo "$as_me: WARNING: fft.h: proceeding with the preprocessor's result" >&2;} 15248 ( 15249 cat <<\_ASBOX 15250## ------------------------------------ ## 15251## Report this to bug-autoconf@gnu.org. ## 15252## ------------------------------------ ## 15253_ASBOX 15254 ) | 15255 sed "s/^/$as_me: WARNING: /" >&2 15256 ;; 15257 no:yes ) 15258 { echo "$as_me:$LINENO: WARNING: fft.h: present but cannot be compiled" >&5 15259echo "$as_me: WARNING: fft.h: present but cannot be compiled" >&2;} 15260 { echo "$as_me:$LINENO: WARNING: fft.h: check for missing prerequisite headers?" >&5 15261echo "$as_me: WARNING: fft.h: check for missing prerequisite headers?" >&2;} 15262 { echo "$as_me:$LINENO: WARNING: fft.h: proceeding with the preprocessor's result" >&5 15263echo "$as_me: WARNING: fft.h: proceeding with the preprocessor's result" >&2;} 15264 ( 15265 cat <<\_ASBOX 15266## ------------------------------------ ## 15267## Report this to bug-autoconf@gnu.org. ## 15268## ------------------------------------ ## 15269_ASBOX 15270 ) | 15271 sed "s/^/$as_me: WARNING: /" >&2 15272 ;; 15273esac 15274echo "$as_me:$LINENO: checking for fft.h" >&5 15275echo $ECHO_N "checking for fft.h... $ECHO_C" >&6 15276if test "${ac_cv_header_fft_h+set}" = set; then 15277 echo $ECHO_N "(cached) $ECHO_C" >&6 15278else 15279 ac_cv_header_fft_h=$ac_header_preproc 15280fi 15281echo "$as_me:$LINENO: result: $ac_cv_header_fft_h" >&5 15282echo "${ECHO_T}$ac_cv_header_fft_h" >&6 15283 15284fi 15285if test $ac_cv_header_fft_h = yes; then 15286 : 15287else 15288 have_fft_sgi=false 15289fi 15290 15291 15292 15293# 15294# FFT AIX/IBM 15295# 15296LIBS=$save_libs 15297CFLAGS=$save_cflags 15298CPPFLAGS=$save_cppflags 15299have_fft_essl=true 15300FFT_ESSL_LIBS="-lessl" 15301FFT_ESSL_CFLAGS="-DHAVE_FFT_ESSL -DHAVE_FFT" 15302 15303echo "$as_me:$LINENO: checking for dcft in -lessl" >&5 15304echo $ECHO_N "checking for dcft in -lessl... $ECHO_C" >&6 15305if test "${ac_cv_lib_essl_dcft+set}" = set; then 15306 echo $ECHO_N "(cached) $ECHO_C" >&6 15307else 15308 ac_check_lib_save_LIBS=$LIBS 15309LIBS="-lessl $LIBS" 15310cat >conftest.$ac_ext <<_ACEOF 15311#line $LINENO "configure" 15312/* confdefs.h. */ 15313_ACEOF 15314cat confdefs.h >>conftest.$ac_ext 15315cat >>conftest.$ac_ext <<_ACEOF 15316/* end confdefs.h. */ 15317 15318/* Override any gcc2 internal prototype to avoid an error. */ 15319#ifdef __cplusplus 15320extern "C" 15321#endif 15322/* We use char because int might match the return type of a gcc2 15323 builtin and then its argument prototype would still apply. */ 15324char dcft (); 15325int 15326main () 15327{ 15328dcft (); 15329 ; 15330 return 0; 15331} 15332_ACEOF 15333rm -f conftest.$ac_objext conftest$ac_exeext 15334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15335 (eval $ac_link) 2>&5 15336 ac_status=$? 15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15338 (exit $ac_status); } && 15339 { ac_try='test -s conftest$ac_exeext' 15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15341 (eval $ac_try) 2>&5 15342 ac_status=$? 15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15344 (exit $ac_status); }; }; then 15345 ac_cv_lib_essl_dcft=yes 15346else 15347 echo "$as_me: failed program was:" >&5 15348sed 's/^/| /' conftest.$ac_ext >&5 15349 15350ac_cv_lib_essl_dcft=no 15351fi 15352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15353LIBS=$ac_check_lib_save_LIBS 15354fi 15355echo "$as_me:$LINENO: result: $ac_cv_lib_essl_dcft" >&5 15356echo "${ECHO_T}$ac_cv_lib_essl_dcft" >&6 15357if test $ac_cv_lib_essl_dcft = yes; then 15358 cat >>confdefs.h <<_ACEOF 15359#define HAVE_LIBESSL 1 15360_ACEOF 15361 15362 LIBS="-lessl $LIBS" 15363 15364else 15365 have_fft_essl=false 15366fi 15367 15368if test "${ac_cv_header_essl_h+set}" = set; then 15369 echo "$as_me:$LINENO: checking for essl.h" >&5 15370echo $ECHO_N "checking for essl.h... $ECHO_C" >&6 15371if test "${ac_cv_header_essl_h+set}" = set; then 15372 echo $ECHO_N "(cached) $ECHO_C" >&6 15373fi 15374echo "$as_me:$LINENO: result: $ac_cv_header_essl_h" >&5 15375echo "${ECHO_T}$ac_cv_header_essl_h" >&6 15376else 15377 # Is the header compilable? 15378echo "$as_me:$LINENO: checking essl.h usability" >&5 15379echo $ECHO_N "checking essl.h usability... $ECHO_C" >&6 15380cat >conftest.$ac_ext <<_ACEOF 15381#line $LINENO "configure" 15382/* confdefs.h. */ 15383_ACEOF 15384cat confdefs.h >>conftest.$ac_ext 15385cat >>conftest.$ac_ext <<_ACEOF 15386/* end confdefs.h. */ 15387$ac_includes_default 15388#include <essl.h> 15389_ACEOF 15390rm -f conftest.$ac_objext 15391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15392 (eval $ac_compile) 2>&5 15393 ac_status=$? 15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15395 (exit $ac_status); } && 15396 { ac_try='test -s conftest.$ac_objext' 15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15398 (eval $ac_try) 2>&5 15399 ac_status=$? 15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15401 (exit $ac_status); }; }; then 15402 ac_header_compiler=yes 15403else 15404 echo "$as_me: failed program was:" >&5 15405sed 's/^/| /' conftest.$ac_ext >&5 15406 15407ac_header_compiler=no 15408fi 15409rm -f conftest.$ac_objext conftest.$ac_ext 15410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15411echo "${ECHO_T}$ac_header_compiler" >&6 15412 15413# Is the header present? 15414echo "$as_me:$LINENO: checking essl.h presence" >&5 15415echo $ECHO_N "checking essl.h presence... $ECHO_C" >&6 15416cat >conftest.$ac_ext <<_ACEOF 15417#line $LINENO "configure" 15418/* confdefs.h. */ 15419_ACEOF 15420cat confdefs.h >>conftest.$ac_ext 15421cat >>conftest.$ac_ext <<_ACEOF 15422/* end confdefs.h. */ 15423#include <essl.h> 15424_ACEOF 15425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15427 ac_status=$? 15428 grep -v '^ *+' conftest.er1 >conftest.err 15429 rm -f conftest.er1 15430 cat conftest.err >&5 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); } >/dev/null; then 15433 if test -s conftest.err; then 15434 ac_cpp_err=$ac_cxx_preproc_warn_flag 15435 else 15436 ac_cpp_err= 15437 fi 15438else 15439 ac_cpp_err=yes 15440fi 15441if test -z "$ac_cpp_err"; then 15442 ac_header_preproc=yes 15443else 15444 echo "$as_me: failed program was:" >&5 15445sed 's/^/| /' conftest.$ac_ext >&5 15446 15447 ac_header_preproc=no 15448fi 15449rm -f conftest.err conftest.$ac_ext 15450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15451echo "${ECHO_T}$ac_header_preproc" >&6 15452 15453# So? What about this header? 15454case $ac_header_compiler:$ac_header_preproc in 15455 yes:no ) 15456 { echo "$as_me:$LINENO: WARNING: essl.h: accepted by the compiler, rejected by the preprocessor!" >&5 15457echo "$as_me: WARNING: essl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15458 { echo "$as_me:$LINENO: WARNING: essl.h: proceeding with the preprocessor's result" >&5 15459echo "$as_me: WARNING: essl.h: proceeding with the preprocessor's result" >&2;} 15460 ( 15461 cat <<\_ASBOX 15462## ------------------------------------ ## 15463## Report this to bug-autoconf@gnu.org. ## 15464## ------------------------------------ ## 15465_ASBOX 15466 ) | 15467 sed "s/^/$as_me: WARNING: /" >&2 15468 ;; 15469 no:yes ) 15470 { echo "$as_me:$LINENO: WARNING: essl.h: present but cannot be compiled" >&5 15471echo "$as_me: WARNING: essl.h: present but cannot be compiled" >&2;} 15472 { echo "$as_me:$LINENO: WARNING: essl.h: check for missing prerequisite headers?" >&5 15473echo "$as_me: WARNING: essl.h: check for missing prerequisite headers?" >&2;} 15474 { echo "$as_me:$LINENO: WARNING: essl.h: proceeding with the preprocessor's result" >&5 15475echo "$as_me: WARNING: essl.h: proceeding with the preprocessor's result" >&2;} 15476 ( 15477 cat <<\_ASBOX 15478## ------------------------------------ ## 15479## Report this to bug-autoconf@gnu.org. ## 15480## ------------------------------------ ## 15481_ASBOX 15482 ) | 15483 sed "s/^/$as_me: WARNING: /" >&2 15484 ;; 15485esac 15486echo "$as_me:$LINENO: checking for essl.h" >&5 15487echo $ECHO_N "checking for essl.h... $ECHO_C" >&6 15488if test "${ac_cv_header_essl_h+set}" = set; then 15489 echo $ECHO_N "(cached) $ECHO_C" >&6 15490else 15491 ac_cv_header_essl_h=$ac_header_preproc 15492fi 15493echo "$as_me:$LINENO: result: $ac_cv_header_essl_h" >&5 15494echo "${ECHO_T}$ac_cv_header_essl_h" >&6 15495 15496fi 15497if test $ac_cv_header_essl_h = yes; then 15498 : 15499else 15500 have_fft_essl=false 15501fi 15502 15503 15504 15505# 15506# FFTW2 MPI 15507# 15508LIBS=$save_libs 15509CFLAGS=$save_cflags 15510CPPFLAGS=$save_cppflags 15511require_fftw2mpi=false 15512if test x"$with_fftw2mpi" != x; then 15513 FFTW2_MPI_INCLUDE="$with_fftw2mpi/include" 15514 FFTW2_MPI_LIB="$with_fftw2mpi/lib" 15515 FFTW2_MPI_ROOT="$with_fftw2mpi" 15516 require_fftw2mpi=true 15517fi 15518FFT_FFTW2_MPI_LIBS="-L$FFTW2_MPI_LIB -lfftw_mpi -lfftw" 15519FFT_FFTW2_MPI_CFLAGS="-DHAVE_FFT_FFTW2_MPI -DHAVE_FFT -I$FFTW2_MPI_INCLUDE" 15520LIBS="$FFT_FFTW2_MPI_LIBS" 15521CFLAGS="$CFLAGS $FFT_FFTW2_MPI_CFLAGS" 15522CPPFLAGS="$CPPFLAGS $FFT_FFTW2_MPI_CFLAGS" 15523 15524have_fft_fftw2mpi=true 15525unset ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan 15526unset ac_cv_lib_fftw_fftw3d_create_plan 15527unset ac_cv_header_fftw_mpi_h 15528unset ac_cv_header_fftw_h 15529 15530echo "$as_me:$LINENO: checking for fftw3d_mpi_create_plan in -lfftw_mpi" >&5 15531echo $ECHO_N "checking for fftw3d_mpi_create_plan in -lfftw_mpi... $ECHO_C" >&6 15532if test "${ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan+set}" = set; then 15533 echo $ECHO_N "(cached) $ECHO_C" >&6 15534else 15535 ac_check_lib_save_LIBS=$LIBS 15536LIBS="-lfftw_mpi $LIBS" 15537cat >conftest.$ac_ext <<_ACEOF 15538#line $LINENO "configure" 15539/* confdefs.h. */ 15540_ACEOF 15541cat confdefs.h >>conftest.$ac_ext 15542cat >>conftest.$ac_ext <<_ACEOF 15543/* end confdefs.h. */ 15544 15545/* Override any gcc2 internal prototype to avoid an error. */ 15546#ifdef __cplusplus 15547extern "C" 15548#endif 15549/* We use char because int might match the return type of a gcc2 15550 builtin and then its argument prototype would still apply. */ 15551char fftw3d_mpi_create_plan (); 15552int 15553main () 15554{ 15555fftw3d_mpi_create_plan (); 15556 ; 15557 return 0; 15558} 15559_ACEOF 15560rm -f conftest.$ac_objext conftest$ac_exeext 15561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15562 (eval $ac_link) 2>&5 15563 ac_status=$? 15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15565 (exit $ac_status); } && 15566 { ac_try='test -s conftest$ac_exeext' 15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15568 (eval $ac_try) 2>&5 15569 ac_status=$? 15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15571 (exit $ac_status); }; }; then 15572 ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan=yes 15573else 15574 echo "$as_me: failed program was:" >&5 15575sed 's/^/| /' conftest.$ac_ext >&5 15576 15577ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan=no 15578fi 15579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15580LIBS=$ac_check_lib_save_LIBS 15581fi 15582echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan" >&5 15583echo "${ECHO_T}$ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan" >&6 15584if test $ac_cv_lib_fftw_mpi_fftw3d_mpi_create_plan = yes; then 15585 cat >>confdefs.h <<_ACEOF 15586#define HAVE_LIBFFTW_MPI 1 15587_ACEOF 15588 15589 LIBS="-lfftw_mpi $LIBS" 15590 15591else 15592 have_fft_fftw2mpi=false 15593fi 15594 15595 15596echo "$as_me:$LINENO: checking for fftw3d_create_plan in -lfftw" >&5 15597echo $ECHO_N "checking for fftw3d_create_plan in -lfftw... $ECHO_C" >&6 15598if test "${ac_cv_lib_fftw_fftw3d_create_plan+set}" = set; then 15599 echo $ECHO_N "(cached) $ECHO_C" >&6 15600else 15601 ac_check_lib_save_LIBS=$LIBS 15602LIBS="-lfftw $LIBS" 15603cat >conftest.$ac_ext <<_ACEOF 15604#line $LINENO "configure" 15605/* confdefs.h. */ 15606_ACEOF 15607cat confdefs.h >>conftest.$ac_ext 15608cat >>conftest.$ac_ext <<_ACEOF 15609/* end confdefs.h. */ 15610 15611/* Override any gcc2 internal prototype to avoid an error. */ 15612#ifdef __cplusplus 15613extern "C" 15614#endif 15615/* We use char because int might match the return type of a gcc2 15616 builtin and then its argument prototype would still apply. */ 15617char fftw3d_create_plan (); 15618int 15619main () 15620{ 15621fftw3d_create_plan (); 15622 ; 15623 return 0; 15624} 15625_ACEOF 15626rm -f conftest.$ac_objext conftest$ac_exeext 15627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15628 (eval $ac_link) 2>&5 15629 ac_status=$? 15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15631 (exit $ac_status); } && 15632 { ac_try='test -s conftest$ac_exeext' 15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15634 (eval $ac_try) 2>&5 15635 ac_status=$? 15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15637 (exit $ac_status); }; }; then 15638 ac_cv_lib_fftw_fftw3d_create_plan=yes 15639else 15640 echo "$as_me: failed program was:" >&5 15641sed 's/^/| /' conftest.$ac_ext >&5 15642 15643ac_cv_lib_fftw_fftw3d_create_plan=no 15644fi 15645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15646LIBS=$ac_check_lib_save_LIBS 15647fi 15648echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw3d_create_plan" >&5 15649echo "${ECHO_T}$ac_cv_lib_fftw_fftw3d_create_plan" >&6 15650if test $ac_cv_lib_fftw_fftw3d_create_plan = yes; then 15651 cat >>confdefs.h <<_ACEOF 15652#define HAVE_LIBFFTW 1 15653_ACEOF 15654 15655 LIBS="-lfftw $LIBS" 15656 15657else 15658 have_fft_fftw2mpi=false 15659fi 15660 15661if test "${ac_cv_header_fftw_mpi_h+set}" = set; then 15662 echo "$as_me:$LINENO: checking for fftw_mpi.h" >&5 15663echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6 15664if test "${ac_cv_header_fftw_mpi_h+set}" = set; then 15665 echo $ECHO_N "(cached) $ECHO_C" >&6 15666fi 15667echo "$as_me:$LINENO: result: $ac_cv_header_fftw_mpi_h" >&5 15668echo "${ECHO_T}$ac_cv_header_fftw_mpi_h" >&6 15669else 15670 # Is the header compilable? 15671echo "$as_me:$LINENO: checking fftw_mpi.h usability" >&5 15672echo $ECHO_N "checking fftw_mpi.h usability... $ECHO_C" >&6 15673cat >conftest.$ac_ext <<_ACEOF 15674#line $LINENO "configure" 15675/* confdefs.h. */ 15676_ACEOF 15677cat confdefs.h >>conftest.$ac_ext 15678cat >>conftest.$ac_ext <<_ACEOF 15679/* end confdefs.h. */ 15680$ac_includes_default 15681#include <fftw_mpi.h> 15682_ACEOF 15683rm -f conftest.$ac_objext 15684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15685 (eval $ac_compile) 2>&5 15686 ac_status=$? 15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15688 (exit $ac_status); } && 15689 { ac_try='test -s conftest.$ac_objext' 15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15691 (eval $ac_try) 2>&5 15692 ac_status=$? 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15694 (exit $ac_status); }; }; then 15695 ac_header_compiler=yes 15696else 15697 echo "$as_me: failed program was:" >&5 15698sed 's/^/| /' conftest.$ac_ext >&5 15699 15700ac_header_compiler=no 15701fi 15702rm -f conftest.$ac_objext conftest.$ac_ext 15703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15704echo "${ECHO_T}$ac_header_compiler" >&6 15705 15706# Is the header present? 15707echo "$as_me:$LINENO: checking fftw_mpi.h presence" >&5 15708echo $ECHO_N "checking fftw_mpi.h presence... $ECHO_C" >&6 15709cat >conftest.$ac_ext <<_ACEOF 15710#line $LINENO "configure" 15711/* confdefs.h. */ 15712_ACEOF 15713cat confdefs.h >>conftest.$ac_ext 15714cat >>conftest.$ac_ext <<_ACEOF 15715/* end confdefs.h. */ 15716#include <fftw_mpi.h> 15717_ACEOF 15718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15720 ac_status=$? 15721 grep -v '^ *+' conftest.er1 >conftest.err 15722 rm -f conftest.er1 15723 cat conftest.err >&5 15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15725 (exit $ac_status); } >/dev/null; then 15726 if test -s conftest.err; then 15727 ac_cpp_err=$ac_cxx_preproc_warn_flag 15728 else 15729 ac_cpp_err= 15730 fi 15731else 15732 ac_cpp_err=yes 15733fi 15734if test -z "$ac_cpp_err"; then 15735 ac_header_preproc=yes 15736else 15737 echo "$as_me: failed program was:" >&5 15738sed 's/^/| /' conftest.$ac_ext >&5 15739 15740 ac_header_preproc=no 15741fi 15742rm -f conftest.err conftest.$ac_ext 15743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15744echo "${ECHO_T}$ac_header_preproc" >&6 15745 15746# So? What about this header? 15747case $ac_header_compiler:$ac_header_preproc in 15748 yes:no ) 15749 { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: accepted by the compiler, rejected by the preprocessor!" >&5 15750echo "$as_me: WARNING: fftw_mpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15751 { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&5 15752echo "$as_me: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&2;} 15753 ( 15754 cat <<\_ASBOX 15755## ------------------------------------ ## 15756## Report this to bug-autoconf@gnu.org. ## 15757## ------------------------------------ ## 15758_ASBOX 15759 ) | 15760 sed "s/^/$as_me: WARNING: /" >&2 15761 ;; 15762 no:yes ) 15763 { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: present but cannot be compiled" >&5 15764echo "$as_me: WARNING: fftw_mpi.h: present but cannot be compiled" >&2;} 15765 { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: check for missing prerequisite headers?" >&5 15766echo "$as_me: WARNING: fftw_mpi.h: check for missing prerequisite headers?" >&2;} 15767 { echo "$as_me:$LINENO: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&5 15768echo "$as_me: WARNING: fftw_mpi.h: proceeding with the preprocessor's result" >&2;} 15769 ( 15770 cat <<\_ASBOX 15771## ------------------------------------ ## 15772## Report this to bug-autoconf@gnu.org. ## 15773## ------------------------------------ ## 15774_ASBOX 15775 ) | 15776 sed "s/^/$as_me: WARNING: /" >&2 15777 ;; 15778esac 15779echo "$as_me:$LINENO: checking for fftw_mpi.h" >&5 15780echo $ECHO_N "checking for fftw_mpi.h... $ECHO_C" >&6 15781if test "${ac_cv_header_fftw_mpi_h+set}" = set; then 15782 echo $ECHO_N "(cached) $ECHO_C" >&6 15783else 15784 ac_cv_header_fftw_mpi_h=$ac_header_preproc 15785fi 15786echo "$as_me:$LINENO: result: $ac_cv_header_fftw_mpi_h" >&5 15787echo "${ECHO_T}$ac_cv_header_fftw_mpi_h" >&6 15788 15789fi 15790if test $ac_cv_header_fftw_mpi_h = yes; then 15791 : 15792else 15793 have_fft_fftw2mpi=false 15794fi 15795 15796 15797if test "${ac_cv_header_fftw_h+set}" = set; then 15798 echo "$as_me:$LINENO: checking for fftw.h" >&5 15799echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 15800if test "${ac_cv_header_fftw_h+set}" = set; then 15801 echo $ECHO_N "(cached) $ECHO_C" >&6 15802fi 15803echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 15804echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 15805else 15806 # Is the header compilable? 15807echo "$as_me:$LINENO: checking fftw.h usability" >&5 15808echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6 15809cat >conftest.$ac_ext <<_ACEOF 15810#line $LINENO "configure" 15811/* confdefs.h. */ 15812_ACEOF 15813cat confdefs.h >>conftest.$ac_ext 15814cat >>conftest.$ac_ext <<_ACEOF 15815/* end confdefs.h. */ 15816$ac_includes_default 15817#include <fftw.h> 15818_ACEOF 15819rm -f conftest.$ac_objext 15820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15821 (eval $ac_compile) 2>&5 15822 ac_status=$? 15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15824 (exit $ac_status); } && 15825 { ac_try='test -s conftest.$ac_objext' 15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15827 (eval $ac_try) 2>&5 15828 ac_status=$? 15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15830 (exit $ac_status); }; }; then 15831 ac_header_compiler=yes 15832else 15833 echo "$as_me: failed program was:" >&5 15834sed 's/^/| /' conftest.$ac_ext >&5 15835 15836ac_header_compiler=no 15837fi 15838rm -f conftest.$ac_objext conftest.$ac_ext 15839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15840echo "${ECHO_T}$ac_header_compiler" >&6 15841 15842# Is the header present? 15843echo "$as_me:$LINENO: checking fftw.h presence" >&5 15844echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6 15845cat >conftest.$ac_ext <<_ACEOF 15846#line $LINENO "configure" 15847/* confdefs.h. */ 15848_ACEOF 15849cat confdefs.h >>conftest.$ac_ext 15850cat >>conftest.$ac_ext <<_ACEOF 15851/* end confdefs.h. */ 15852#include <fftw.h> 15853_ACEOF 15854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15856 ac_status=$? 15857 grep -v '^ *+' conftest.er1 >conftest.err 15858 rm -f conftest.er1 15859 cat conftest.err >&5 15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15861 (exit $ac_status); } >/dev/null; then 15862 if test -s conftest.err; then 15863 ac_cpp_err=$ac_cxx_preproc_warn_flag 15864 else 15865 ac_cpp_err= 15866 fi 15867else 15868 ac_cpp_err=yes 15869fi 15870if test -z "$ac_cpp_err"; then 15871 ac_header_preproc=yes 15872else 15873 echo "$as_me: failed program was:" >&5 15874sed 's/^/| /' conftest.$ac_ext >&5 15875 15876 ac_header_preproc=no 15877fi 15878rm -f conftest.err conftest.$ac_ext 15879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15880echo "${ECHO_T}$ac_header_preproc" >&6 15881 15882# So? What about this header? 15883case $ac_header_compiler:$ac_header_preproc in 15884 yes:no ) 15885 { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 15886echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15887 { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 15888echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} 15889 ( 15890 cat <<\_ASBOX 15891## ------------------------------------ ## 15892## Report this to bug-autoconf@gnu.org. ## 15893## ------------------------------------ ## 15894_ASBOX 15895 ) | 15896 sed "s/^/$as_me: WARNING: /" >&2 15897 ;; 15898 no:yes ) 15899 { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 15900echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} 15901 { echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 15902echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} 15903 { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 15904echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} 15905 ( 15906 cat <<\_ASBOX 15907## ------------------------------------ ## 15908## Report this to bug-autoconf@gnu.org. ## 15909## ------------------------------------ ## 15910_ASBOX 15911 ) | 15912 sed "s/^/$as_me: WARNING: /" >&2 15913 ;; 15914esac 15915echo "$as_me:$LINENO: checking for fftw.h" >&5 15916echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 15917if test "${ac_cv_header_fftw_h+set}" = set; then 15918 echo $ECHO_N "(cached) $ECHO_C" >&6 15919else 15920 ac_cv_header_fftw_h=$ac_header_preproc 15921fi 15922echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 15923echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 15924 15925fi 15926if test $ac_cv_header_fftw_h = yes; then 15927 : 15928else 15929 have_fft_fftw2mpi=false 15930fi 15931 15932 15933 15934 15935# 15936# FFTW3 15937# 15938LIBS=$save_libs 15939CFLAGS=$save_cflags 15940CPPFLAGS=$save_cppflags 15941require_fftw3=false 15942if test x"$with_fftw3" != x; then 15943 FFTW3_INCLUDE="$with_fftw3/include" 15944 FFTW3_LIB="$with_fftw3/lib" 15945 FFTW3_ROOT="$with_fftw3" 15946 require_fftw3=true 15947fi 15948FFT_FFTW3_LIBS="-L$FFTW3_LIB -lfftw3" 15949FFT_FFTW3_CFLAGS="-DHAVE_FFT_FFTW3 -DHAVE_FFT -I$FFTW3_INCLUDE" 15950LIBS="$FFT_FFTW3_LIBS" 15951CFLAGS="$CFLAGS $FFT_FFTW3_CFLAGS" 15952CPPFLAGS="$CPPFLAGS $FFT_FFTW3_CFLAGS" 15953 15954have_fft_fftw3=true 15955unset ac_cv_lib_fftw3_fftw_plan_dft_3d 15956unset ac_cv_header_fftw3_h 15957 15958echo "$as_me:$LINENO: checking for fftw_plan_dft_3d in -lfftw3" >&5 15959echo $ECHO_N "checking for fftw_plan_dft_3d in -lfftw3... $ECHO_C" >&6 15960if test "${ac_cv_lib_fftw3_fftw_plan_dft_3d+set}" = set; then 15961 echo $ECHO_N "(cached) $ECHO_C" >&6 15962else 15963 ac_check_lib_save_LIBS=$LIBS 15964LIBS="-lfftw3 $LIBS" 15965cat >conftest.$ac_ext <<_ACEOF 15966#line $LINENO "configure" 15967/* confdefs.h. */ 15968_ACEOF 15969cat confdefs.h >>conftest.$ac_ext 15970cat >>conftest.$ac_ext <<_ACEOF 15971/* end confdefs.h. */ 15972 15973/* Override any gcc2 internal prototype to avoid an error. */ 15974#ifdef __cplusplus 15975extern "C" 15976#endif 15977/* We use char because int might match the return type of a gcc2 15978 builtin and then its argument prototype would still apply. */ 15979char fftw_plan_dft_3d (); 15980int 15981main () 15982{ 15983fftw_plan_dft_3d (); 15984 ; 15985 return 0; 15986} 15987_ACEOF 15988rm -f conftest.$ac_objext conftest$ac_exeext 15989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15990 (eval $ac_link) 2>&5 15991 ac_status=$? 15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15993 (exit $ac_status); } && 15994 { ac_try='test -s conftest$ac_exeext' 15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15996 (eval $ac_try) 2>&5 15997 ac_status=$? 15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15999 (exit $ac_status); }; }; then 16000 ac_cv_lib_fftw3_fftw_plan_dft_3d=yes 16001else 16002 echo "$as_me: failed program was:" >&5 16003sed 's/^/| /' conftest.$ac_ext >&5 16004 16005ac_cv_lib_fftw3_fftw_plan_dft_3d=no 16006fi 16007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16008LIBS=$ac_check_lib_save_LIBS 16009fi 16010echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_3d" >&5 16011echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_3d" >&6 16012if test $ac_cv_lib_fftw3_fftw_plan_dft_3d = yes; then 16013 cat >>confdefs.h <<_ACEOF 16014#define HAVE_LIBFFTW3 1 16015_ACEOF 16016 16017 LIBS="-lfftw3 $LIBS" 16018 16019else 16020 have_fft_fftw3=false 16021fi 16022 16023if test "${ac_cv_header_fftw3_h+set}" = set; then 16024 echo "$as_me:$LINENO: checking for fftw3.h" >&5 16025echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6 16026if test "${ac_cv_header_fftw3_h+set}" = set; then 16027 echo $ECHO_N "(cached) $ECHO_C" >&6 16028fi 16029echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 16030echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6 16031else 16032 # Is the header compilable? 16033echo "$as_me:$LINENO: checking fftw3.h usability" >&5 16034echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6 16035cat >conftest.$ac_ext <<_ACEOF 16036#line $LINENO "configure" 16037/* confdefs.h. */ 16038_ACEOF 16039cat confdefs.h >>conftest.$ac_ext 16040cat >>conftest.$ac_ext <<_ACEOF 16041/* end confdefs.h. */ 16042$ac_includes_default 16043#include <fftw3.h> 16044_ACEOF 16045rm -f conftest.$ac_objext 16046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16047 (eval $ac_compile) 2>&5 16048 ac_status=$? 16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16050 (exit $ac_status); } && 16051 { ac_try='test -s conftest.$ac_objext' 16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16053 (eval $ac_try) 2>&5 16054 ac_status=$? 16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16056 (exit $ac_status); }; }; then 16057 ac_header_compiler=yes 16058else 16059 echo "$as_me: failed program was:" >&5 16060sed 's/^/| /' conftest.$ac_ext >&5 16061 16062ac_header_compiler=no 16063fi 16064rm -f conftest.$ac_objext conftest.$ac_ext 16065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16066echo "${ECHO_T}$ac_header_compiler" >&6 16067 16068# Is the header present? 16069echo "$as_me:$LINENO: checking fftw3.h presence" >&5 16070echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6 16071cat >conftest.$ac_ext <<_ACEOF 16072#line $LINENO "configure" 16073/* confdefs.h. */ 16074_ACEOF 16075cat confdefs.h >>conftest.$ac_ext 16076cat >>conftest.$ac_ext <<_ACEOF 16077/* end confdefs.h. */ 16078#include <fftw3.h> 16079_ACEOF 16080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16082 ac_status=$? 16083 grep -v '^ *+' conftest.er1 >conftest.err 16084 rm -f conftest.er1 16085 cat conftest.err >&5 16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16087 (exit $ac_status); } >/dev/null; then 16088 if test -s conftest.err; then 16089 ac_cpp_err=$ac_cxx_preproc_warn_flag 16090 else 16091 ac_cpp_err= 16092 fi 16093else 16094 ac_cpp_err=yes 16095fi 16096if test -z "$ac_cpp_err"; then 16097 ac_header_preproc=yes 16098else 16099 echo "$as_me: failed program was:" >&5 16100sed 's/^/| /' conftest.$ac_ext >&5 16101 16102 ac_header_preproc=no 16103fi 16104rm -f conftest.err conftest.$ac_ext 16105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16106echo "${ECHO_T}$ac_header_preproc" >&6 16107 16108# So? What about this header? 16109case $ac_header_compiler:$ac_header_preproc in 16110 yes:no ) 16111 { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 16112echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 16113 { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 16114echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} 16115 ( 16116 cat <<\_ASBOX 16117## ------------------------------------ ## 16118## Report this to bug-autoconf@gnu.org. ## 16119## ------------------------------------ ## 16120_ASBOX 16121 ) | 16122 sed "s/^/$as_me: WARNING: /" >&2 16123 ;; 16124 no:yes ) 16125 { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 16126echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} 16127 { echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 16128echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} 16129 { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 16130echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} 16131 ( 16132 cat <<\_ASBOX 16133## ------------------------------------ ## 16134## Report this to bug-autoconf@gnu.org. ## 16135## ------------------------------------ ## 16136_ASBOX 16137 ) | 16138 sed "s/^/$as_me: WARNING: /" >&2 16139 ;; 16140esac 16141echo "$as_me:$LINENO: checking for fftw3.h" >&5 16142echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6 16143if test "${ac_cv_header_fftw3_h+set}" = set; then 16144 echo $ECHO_N "(cached) $ECHO_C" >&6 16145else 16146 ac_cv_header_fftw3_h=$ac_header_preproc 16147fi 16148echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 16149echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6 16150 16151fi 16152if test $ac_cv_header_fftw3_h = yes; then 16153 : 16154else 16155 have_fft_fftw3=false 16156fi 16157 16158 16159 16160# 16161# FFTW2 16162# 16163LIBS=$save_libs 16164CFLAGS=$save_cflags 16165CPPFLAGS=$save_cppflags 16166require_fftw2=false 16167if test x"$with_fftw2" != x; then 16168 FFTW2_INCLUDE="$with_fftw2/include" 16169 FFTW2_LIB="$with_fftw2/lib" 16170 FFTW2_ROOT="$with_fftw2" 16171 require_fftw2=true 16172fi 16173FFT_FFTW2_LIBS="-L$FFTW2_LIB -lfftw" 16174FFT_FFTW2_CFLAGS="-DHAVE_FFT_FFTW2 -DHAVE_FFT -I$FFTW2_INCLUDE" 16175LIBS="$FFT_FFTW2_LIBS" 16176CFLAGS="$CFLAGS $FFT_FFTW2_CFLAGS" 16177CPPFLAGS="$CPPFLAGS $FFT_FFTW2_CFLAGS" 16178 16179have_fft_fftw2=true 16180unset ac_cv_lib_fftw_fftw3d_create_plan 16181unset ac_cv_header_fftw_h 16182 16183echo "$as_me:$LINENO: checking for fftw3d_create_plan in -lfftw" >&5 16184echo $ECHO_N "checking for fftw3d_create_plan in -lfftw... $ECHO_C" >&6 16185if test "${ac_cv_lib_fftw_fftw3d_create_plan+set}" = set; then 16186 echo $ECHO_N "(cached) $ECHO_C" >&6 16187else 16188 ac_check_lib_save_LIBS=$LIBS 16189LIBS="-lfftw $LIBS" 16190cat >conftest.$ac_ext <<_ACEOF 16191#line $LINENO "configure" 16192/* confdefs.h. */ 16193_ACEOF 16194cat confdefs.h >>conftest.$ac_ext 16195cat >>conftest.$ac_ext <<_ACEOF 16196/* end confdefs.h. */ 16197 16198/* Override any gcc2 internal prototype to avoid an error. */ 16199#ifdef __cplusplus 16200extern "C" 16201#endif 16202/* We use char because int might match the return type of a gcc2 16203 builtin and then its argument prototype would still apply. */ 16204char fftw3d_create_plan (); 16205int 16206main () 16207{ 16208fftw3d_create_plan (); 16209 ; 16210 return 0; 16211} 16212_ACEOF 16213rm -f conftest.$ac_objext conftest$ac_exeext 16214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16215 (eval $ac_link) 2>&5 16216 ac_status=$? 16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16218 (exit $ac_status); } && 16219 { ac_try='test -s conftest$ac_exeext' 16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16221 (eval $ac_try) 2>&5 16222 ac_status=$? 16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16224 (exit $ac_status); }; }; then 16225 ac_cv_lib_fftw_fftw3d_create_plan=yes 16226else 16227 echo "$as_me: failed program was:" >&5 16228sed 's/^/| /' conftest.$ac_ext >&5 16229 16230ac_cv_lib_fftw_fftw3d_create_plan=no 16231fi 16232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16233LIBS=$ac_check_lib_save_LIBS 16234fi 16235echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw3d_create_plan" >&5 16236echo "${ECHO_T}$ac_cv_lib_fftw_fftw3d_create_plan" >&6 16237if test $ac_cv_lib_fftw_fftw3d_create_plan = yes; then 16238 cat >>confdefs.h <<_ACEOF 16239#define HAVE_LIBFFTW 1 16240_ACEOF 16241 16242 LIBS="-lfftw $LIBS" 16243 16244else 16245 have_fft_fftw2=false 16246fi 16247 16248if test "${ac_cv_header_fftw_h+set}" = set; then 16249 echo "$as_me:$LINENO: checking for fftw.h" >&5 16250echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 16251if test "${ac_cv_header_fftw_h+set}" = set; then 16252 echo $ECHO_N "(cached) $ECHO_C" >&6 16253fi 16254echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 16255echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 16256else 16257 # Is the header compilable? 16258echo "$as_me:$LINENO: checking fftw.h usability" >&5 16259echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6 16260cat >conftest.$ac_ext <<_ACEOF 16261#line $LINENO "configure" 16262/* confdefs.h. */ 16263_ACEOF 16264cat confdefs.h >>conftest.$ac_ext 16265cat >>conftest.$ac_ext <<_ACEOF 16266/* end confdefs.h. */ 16267$ac_includes_default 16268#include <fftw.h> 16269_ACEOF 16270rm -f conftest.$ac_objext 16271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16272 (eval $ac_compile) 2>&5 16273 ac_status=$? 16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16275 (exit $ac_status); } && 16276 { ac_try='test -s conftest.$ac_objext' 16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16278 (eval $ac_try) 2>&5 16279 ac_status=$? 16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16281 (exit $ac_status); }; }; then 16282 ac_header_compiler=yes 16283else 16284 echo "$as_me: failed program was:" >&5 16285sed 's/^/| /' conftest.$ac_ext >&5 16286 16287ac_header_compiler=no 16288fi 16289rm -f conftest.$ac_objext conftest.$ac_ext 16290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16291echo "${ECHO_T}$ac_header_compiler" >&6 16292 16293# Is the header present? 16294echo "$as_me:$LINENO: checking fftw.h presence" >&5 16295echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6 16296cat >conftest.$ac_ext <<_ACEOF 16297#line $LINENO "configure" 16298/* confdefs.h. */ 16299_ACEOF 16300cat confdefs.h >>conftest.$ac_ext 16301cat >>conftest.$ac_ext <<_ACEOF 16302/* end confdefs.h. */ 16303#include <fftw.h> 16304_ACEOF 16305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16307 ac_status=$? 16308 grep -v '^ *+' conftest.er1 >conftest.err 16309 rm -f conftest.er1 16310 cat conftest.err >&5 16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16312 (exit $ac_status); } >/dev/null; then 16313 if test -s conftest.err; then 16314 ac_cpp_err=$ac_cxx_preproc_warn_flag 16315 else 16316 ac_cpp_err= 16317 fi 16318else 16319 ac_cpp_err=yes 16320fi 16321if test -z "$ac_cpp_err"; then 16322 ac_header_preproc=yes 16323else 16324 echo "$as_me: failed program was:" >&5 16325sed 's/^/| /' conftest.$ac_ext >&5 16326 16327 ac_header_preproc=no 16328fi 16329rm -f conftest.err conftest.$ac_ext 16330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16331echo "${ECHO_T}$ac_header_preproc" >&6 16332 16333# So? What about this header? 16334case $ac_header_compiler:$ac_header_preproc in 16335 yes:no ) 16336 { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5 16337echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 16338 { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 16339echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} 16340 ( 16341 cat <<\_ASBOX 16342## ------------------------------------ ## 16343## Report this to bug-autoconf@gnu.org. ## 16344## ------------------------------------ ## 16345_ASBOX 16346 ) | 16347 sed "s/^/$as_me: WARNING: /" >&2 16348 ;; 16349 no:yes ) 16350 { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5 16351echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;} 16352 { echo "$as_me:$LINENO: WARNING: fftw.h: check for missing prerequisite headers?" >&5 16353echo "$as_me: WARNING: fftw.h: check for missing prerequisite headers?" >&2;} 16354 { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5 16355echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;} 16356 ( 16357 cat <<\_ASBOX 16358## ------------------------------------ ## 16359## Report this to bug-autoconf@gnu.org. ## 16360## ------------------------------------ ## 16361_ASBOX 16362 ) | 16363 sed "s/^/$as_me: WARNING: /" >&2 16364 ;; 16365esac 16366echo "$as_me:$LINENO: checking for fftw.h" >&5 16367echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6 16368if test "${ac_cv_header_fftw_h+set}" = set; then 16369 echo $ECHO_N "(cached) $ECHO_C" >&6 16370else 16371 ac_cv_header_fftw_h=$ac_header_preproc 16372fi 16373echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5 16374echo "${ECHO_T}$ac_cv_header_fftw_h" >&6 16375 16376fi 16377if test $ac_cv_header_fftw_h = yes; then 16378 : 16379else 16380 have_fft_fftw2=false 16381fi 16382 16383 16384 16385 16386# 16387echo "$as_me:$LINENO: checking FFT SGI complib.sgimath" >&5 16388echo $ECHO_N "checking FFT SGI complib.sgimath... $ECHO_C" >&6 16389if test $have_fft_sgi = false; then 16390 echo "$as_me:$LINENO: result: no" >&5 16391echo "${ECHO_T}no" >&6; 16392else 16393 echo "$as_me:$LINENO: result: yes" >&5 16394echo "${ECHO_T}yes" >&6; 16395fi 16396echo "$as_me:$LINENO: checking FFT ESSL" >&5 16397echo $ECHO_N "checking FFT ESSL... $ECHO_C" >&6 16398if test $have_fft_essl = false; then 16399 echo "$as_me:$LINENO: result: no" >&5 16400echo "${ECHO_T}no" >&6; 16401else 16402 echo "$as_me:$LINENO: result: yes" >&5 16403echo "${ECHO_T}yes" >&6; 16404fi 16405echo "$as_me:$LINENO: checking FFT FFTW3" >&5 16406echo $ECHO_N "checking FFT FFTW3... $ECHO_C" >&6 16407if test $have_fft_fftw3 = false; then 16408 echo "$as_me:$LINENO: result: no" >&5 16409echo "${ECHO_T}no" >&6; 16410else 16411 echo "$as_me:$LINENO: result: yes" >&5 16412echo "${ECHO_T}yes" >&6; 16413fi 16414echo "$as_me:$LINENO: checking FFT FFTW2" >&5 16415echo $ECHO_N "checking FFT FFTW2... $ECHO_C" >&6 16416if test $have_fft_fftw2 = false; then 16417 echo "$as_me:$LINENO: result: no" >&5 16418echo "${ECHO_T}no" >&6; 16419else 16420 echo "$as_me:$LINENO: result: yes" >&5 16421echo "${ECHO_T}yes" >&6; 16422fi 16423echo "$as_me:$LINENO: checking FFT FFTW2 MPI" >&5 16424echo $ECHO_N "checking FFT FFTW2 MPI... $ECHO_C" >&6 16425if test $have_fft_fftw2mpi = false; then 16426 echo "$as_me:$LINENO: result: no" >&5 16427echo "${ECHO_T}no" >&6; 16428else 16429 echo "$as_me:$LINENO: result: yes" >&5 16430echo "${ECHO_T}yes" >&6; 16431fi 16432 16433 16434# Now, pick the right one ... 16435have_fft=false 16436if (test x"$with_fft" = xsgi && test $have_fft_sgi = true) then 16437 echo "using SGI FFT complib.sgimath" 16438 FFT_LIBS=$FFT_SGI_LIBS 16439 FFT_CFLAGS=$FFT_SGI_CFLAGS 16440 have_fft=true 16441elif (test x"$with_fft" = xessl && test $have_fft_essl = true) then 16442 echo "using FFT ESSL" 16443 FFT_LIBS=$FFT_ESSL_LIBS 16444 FFT_CFLAGS=$FFT_ESSL_CFLAGS 16445 have_fft=true 16446elif (test x"$with_fft" = xfftw2mpi && test $have_fft_fftw2mpi = true && $have_mpi = true) then 16447 echo "using FFTW2 MPI" 16448 FFT_LIBS=$FFT_FFTW2_MPI_LIBS 16449 FFT_CFLAGS=$FFT_FFTW2_MPI_CFLAGS 16450 have_fft=true 16451elif (test x"$with_fft" = xfftw3 && test $have_fft_fftw3 = true) then 16452 echo "using FFTW3" 16453 FFT_LIBS=$FFT_FFTW3_LIBS 16454 FFT_CFLAGS=$FFT_FFTW3_CFLAGS 16455 have_fft=true 16456elif (test x"$with_fft" = xfftw2 && test $have_fft_fftw2 = true) then 16457 echo "using FFTW2" 16458 FFT_LIBS=$FFT_FFTW2_LIBS 16459 FFT_CFLAGS=$FFT_FFTW2_CFLAGS 16460 have_fft=true 16461elif (test x"$with_fft" = xzfft) then 16462 echo "using FFT ZFFT" 16463 FFT_LIBS=$FFT_ZFFT_LIBS 16464 FFT_CFLAGS=$FFT_ZFFT_CFLAGS 16465 have_fft=true 16466else 16467 if (test x"$with_fft" != x) then 16468 echo "Opps ... $with_fft not supported!" 16469 fi 16470 if (test $have_fft_fftw2mpi = true && test $require_fftw2mpi = true && $have_mpi = true) then 16471 echo "using FFTW2 MPI" 16472 FFT_LIBS=$FFT_FFTW2_MPI_LIBS 16473 FFT_CFLAGS=$FFT_FFTW2_MPI_CFLAGS 16474 elif (test $have_fft_fftw3 = true && test $require_fftw3 = true) then 16475 echo "using FFTW3" 16476 FFT_LIBS=$FFT_FFTW3_LIBS 16477 FFT_CFLAGS=$FFT_FFTW3_CFLAGS 16478 elif (test $have_fft_sgi = true) then 16479 echo "using SGI FFT complib.sgimath" 16480 FFT_LIBS=$FFT_SGI_LIBS 16481 FFT_CFLAGS=$FFT_SGI_CFLAGS 16482 elif (test $have_fft_essl = true) then 16483 echo "using FFT ESSL" 16484 FFT_LIBS=$FFT_ESSL_LIBS 16485 FFT_CFLAGS=$FFT_ESSL_CFLAGS 16486 elif (test $have_fft_fftw3 = true) then 16487 echo "using FFTW3" 16488 FFT_LIBS=$FFT_FFTW3_LIBS 16489 FFT_CFLAGS=$FFT_FFTW3_CFLAGS 16490 elif (test $have_fft_fftw2 = true) then 16491 echo "using FFTW2" 16492 FFT_LIBS=$FFT_FFTW2_LIBS 16493 FFT_CFLAGS=$FFT_FFTW2_CFLAGS 16494 else 16495 echo "using FFT ZFFT" 16496 FFT_LIBS=$FFT_ZFFT_LIBS 16497 FFT_CFLAGS=$FFT_ZFFT_CFLAGS 16498 fi 16499fi 16500 16501 16502 16503 16504# echo "FFT_ESSL_LIBS : $FFT_ESSL_LIBS" 16505# echo "FFT_ESSL_CFLAGS : $FFT_ESSL_CFLAGS" 16506# echo "FFT_FFTW3_LIBS : $FFT_FFTW3_LIBS" 16507# echo "FFT_FFTW3_CFLAGS : $FFT_FFTW3_CFLAGS" 16508# echo "FFT_FFTW2_LIBS : $FFT_FFTW2_LIBS" 16509# echo "FFT_FFTW2_CFLAGS : $FFT_FFTW2_CFLAGS" 16510# echo "FFT_LIBS : $FFT_LIBS" 16511# echo "FFT_CFLAGS : $FFT_CFLAGS" 16512 16513 16514# PNG 16515LIBS=$save_libs 16516CFLAGS=$save_cflags 16517CPPFLAGS=$save_cppflags 16518have_png=true 16519PNG_LIBS="-lpng" 16520 16521echo "$as_me:$LINENO: checking for compress in -lz" >&5 16522echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6 16523if test "${ac_cv_lib_z_compress+set}" = set; then 16524 echo $ECHO_N "(cached) $ECHO_C" >&6 16525else 16526 ac_check_lib_save_LIBS=$LIBS 16527LIBS="-lz $LIBS" 16528cat >conftest.$ac_ext <<_ACEOF 16529#line $LINENO "configure" 16530/* confdefs.h. */ 16531_ACEOF 16532cat confdefs.h >>conftest.$ac_ext 16533cat >>conftest.$ac_ext <<_ACEOF 16534/* end confdefs.h. */ 16535 16536/* Override any gcc2 internal prototype to avoid an error. */ 16537#ifdef __cplusplus 16538extern "C" 16539#endif 16540/* We use char because int might match the return type of a gcc2 16541 builtin and then its argument prototype would still apply. */ 16542char compress (); 16543int 16544main () 16545{ 16546compress (); 16547 ; 16548 return 0; 16549} 16550_ACEOF 16551rm -f conftest.$ac_objext conftest$ac_exeext 16552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16553 (eval $ac_link) 2>&5 16554 ac_status=$? 16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16556 (exit $ac_status); } && 16557 { ac_try='test -s conftest$ac_exeext' 16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16559 (eval $ac_try) 2>&5 16560 ac_status=$? 16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16562 (exit $ac_status); }; }; then 16563 ac_cv_lib_z_compress=yes 16564else 16565 echo "$as_me: failed program was:" >&5 16566sed 's/^/| /' conftest.$ac_ext >&5 16567 16568ac_cv_lib_z_compress=no 16569fi 16570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16571LIBS=$ac_check_lib_save_LIBS 16572fi 16573echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 16574echo "${ECHO_T}$ac_cv_lib_z_compress" >&6 16575if test $ac_cv_lib_z_compress = yes; then 16576 LIBS="$LIBS -lz" GLUT_LIBS="$GLUT_LIBS -lz" 16577fi 16578 16579if test "${ac_cv_header_png_h+set}" = set; then 16580 echo "$as_me:$LINENO: checking for png.h" >&5 16581echo $ECHO_N "checking for png.h... $ECHO_C" >&6 16582if test "${ac_cv_header_png_h+set}" = set; then 16583 echo $ECHO_N "(cached) $ECHO_C" >&6 16584fi 16585echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 16586echo "${ECHO_T}$ac_cv_header_png_h" >&6 16587else 16588 # Is the header compilable? 16589echo "$as_me:$LINENO: checking png.h usability" >&5 16590echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 16591cat >conftest.$ac_ext <<_ACEOF 16592#line $LINENO "configure" 16593/* confdefs.h. */ 16594_ACEOF 16595cat confdefs.h >>conftest.$ac_ext 16596cat >>conftest.$ac_ext <<_ACEOF 16597/* end confdefs.h. */ 16598$ac_includes_default 16599#include <png.h> 16600_ACEOF 16601rm -f conftest.$ac_objext 16602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16603 (eval $ac_compile) 2>&5 16604 ac_status=$? 16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16606 (exit $ac_status); } && 16607 { ac_try='test -s conftest.$ac_objext' 16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16609 (eval $ac_try) 2>&5 16610 ac_status=$? 16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16612 (exit $ac_status); }; }; then 16613 ac_header_compiler=yes 16614else 16615 echo "$as_me: failed program was:" >&5 16616sed 's/^/| /' conftest.$ac_ext >&5 16617 16618ac_header_compiler=no 16619fi 16620rm -f conftest.$ac_objext conftest.$ac_ext 16621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16622echo "${ECHO_T}$ac_header_compiler" >&6 16623 16624# Is the header present? 16625echo "$as_me:$LINENO: checking png.h presence" >&5 16626echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 16627cat >conftest.$ac_ext <<_ACEOF 16628#line $LINENO "configure" 16629/* confdefs.h. */ 16630_ACEOF 16631cat confdefs.h >>conftest.$ac_ext 16632cat >>conftest.$ac_ext <<_ACEOF 16633/* end confdefs.h. */ 16634#include <png.h> 16635_ACEOF 16636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16638 ac_status=$? 16639 grep -v '^ *+' conftest.er1 >conftest.err 16640 rm -f conftest.er1 16641 cat conftest.err >&5 16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16643 (exit $ac_status); } >/dev/null; then 16644 if test -s conftest.err; then 16645 ac_cpp_err=$ac_cxx_preproc_warn_flag 16646 else 16647 ac_cpp_err= 16648 fi 16649else 16650 ac_cpp_err=yes 16651fi 16652if test -z "$ac_cpp_err"; then 16653 ac_header_preproc=yes 16654else 16655 echo "$as_me: failed program was:" >&5 16656sed 's/^/| /' conftest.$ac_ext >&5 16657 16658 ac_header_preproc=no 16659fi 16660rm -f conftest.err conftest.$ac_ext 16661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16662echo "${ECHO_T}$ac_header_preproc" >&6 16663 16664# So? What about this header? 16665case $ac_header_compiler:$ac_header_preproc in 16666 yes:no ) 16667 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 16668echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 16669 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 16670echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} 16671 ( 16672 cat <<\_ASBOX 16673## ------------------------------------ ## 16674## Report this to bug-autoconf@gnu.org. ## 16675## ------------------------------------ ## 16676_ASBOX 16677 ) | 16678 sed "s/^/$as_me: WARNING: /" >&2 16679 ;; 16680 no:yes ) 16681 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 16682echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} 16683 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 16684echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} 16685 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 16686echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} 16687 ( 16688 cat <<\_ASBOX 16689## ------------------------------------ ## 16690## Report this to bug-autoconf@gnu.org. ## 16691## ------------------------------------ ## 16692_ASBOX 16693 ) | 16694 sed "s/^/$as_me: WARNING: /" >&2 16695 ;; 16696esac 16697echo "$as_me:$LINENO: checking for png.h" >&5 16698echo $ECHO_N "checking for png.h... $ECHO_C" >&6 16699if test "${ac_cv_header_png_h+set}" = set; then 16700 echo $ECHO_N "(cached) $ECHO_C" >&6 16701else 16702 ac_cv_header_png_h=$ac_header_preproc 16703fi 16704echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 16705echo "${ECHO_T}$ac_cv_header_png_h" >&6 16706 16707fi 16708if test $ac_cv_header_png_h = yes; then 16709 : 16710else 16711 have_png=false PNG_LIBS="" 16712fi 16713 16714 16715 16716echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5 16717echo $ECHO_N "checking for png_create_write_struct in -lpng... $ECHO_C" >&6 16718if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then 16719 echo $ECHO_N "(cached) $ECHO_C" >&6 16720else 16721 ac_check_lib_save_LIBS=$LIBS 16722LIBS="-lpng $LIBS" 16723cat >conftest.$ac_ext <<_ACEOF 16724#line $LINENO "configure" 16725/* confdefs.h. */ 16726_ACEOF 16727cat confdefs.h >>conftest.$ac_ext 16728cat >>conftest.$ac_ext <<_ACEOF 16729/* end confdefs.h. */ 16730 16731/* Override any gcc2 internal prototype to avoid an error. */ 16732#ifdef __cplusplus 16733extern "C" 16734#endif 16735/* We use char because int might match the return type of a gcc2 16736 builtin and then its argument prototype would still apply. */ 16737char png_create_write_struct (); 16738int 16739main () 16740{ 16741png_create_write_struct (); 16742 ; 16743 return 0; 16744} 16745_ACEOF 16746rm -f conftest.$ac_objext conftest$ac_exeext 16747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16748 (eval $ac_link) 2>&5 16749 ac_status=$? 16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16751 (exit $ac_status); } && 16752 { ac_try='test -s conftest$ac_exeext' 16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16754 (eval $ac_try) 2>&5 16755 ac_status=$? 16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16757 (exit $ac_status); }; }; then 16758 ac_cv_lib_png_png_create_write_struct=yes 16759else 16760 echo "$as_me: failed program was:" >&5 16761sed 's/^/| /' conftest.$ac_ext >&5 16762 16763ac_cv_lib_png_png_create_write_struct=no 16764fi 16765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16766LIBS=$ac_check_lib_save_LIBS 16767fi 16768echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5 16769echo "${ECHO_T}$ac_cv_lib_png_png_create_write_struct" >&6 16770if test $ac_cv_lib_png_png_create_write_struct = yes; then 16771 cat >>confdefs.h <<_ACEOF 16772#define HAVE_LIBPNG 1 16773_ACEOF 16774 16775 LIBS="-lpng $LIBS" 16776 16777else 16778 have_png=false PNG_LIBS="" 16779fi 16780 16781if (test "$PNG_LIBS" != "") then 16782 echo "using PNG... yes" 16783else 16784 echo "using PNG... no" 16785fi 16786 16787 16788# X11 16789LIBS=$save_libs 16790CFLAGS=$save_cflags 16791CPPFLAGS=$save_cppflags 16792have_x11=true 16793#X_CFLAGS="-I/usr/X11R6/include" 16794#X_LIBS="-L/usr/X11R6/lib -lXm -lXt -lXext -lX11" 16795LIBS="$X_LIBS $LIBS -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11" 16796CFLAGS="$CFLAGS $X_CFLAGS" 16797echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5 16798echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6 16799if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then 16800 echo $ECHO_N "(cached) $ECHO_C" >&6 16801else 16802 ac_check_lib_save_LIBS=$LIBS 16803LIBS="-lpthread $LIBS" 16804cat >conftest.$ac_ext <<_ACEOF 16805#line $LINENO "configure" 16806/* confdefs.h. */ 16807_ACEOF 16808cat confdefs.h >>conftest.$ac_ext 16809cat >>conftest.$ac_ext <<_ACEOF 16810/* end confdefs.h. */ 16811 16812/* Override any gcc2 internal prototype to avoid an error. */ 16813#ifdef __cplusplus 16814extern "C" 16815#endif 16816/* We use char because int might match the return type of a gcc2 16817 builtin and then its argument prototype would still apply. */ 16818char pthread_cancel (); 16819int 16820main () 16821{ 16822pthread_cancel (); 16823 ; 16824 return 0; 16825} 16826_ACEOF 16827rm -f conftest.$ac_objext conftest$ac_exeext 16828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16829 (eval $ac_link) 2>&5 16830 ac_status=$? 16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16832 (exit $ac_status); } && 16833 { ac_try='test -s conftest$ac_exeext' 16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16835 (eval $ac_try) 2>&5 16836 ac_status=$? 16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16838 (exit $ac_status); }; }; then 16839 ac_cv_lib_pthread_pthread_cancel=yes 16840else 16841 echo "$as_me: failed program was:" >&5 16842sed 's/^/| /' conftest.$ac_ext >&5 16843 16844ac_cv_lib_pthread_pthread_cancel=no 16845fi 16846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16847LIBS=$ac_check_lib_save_LIBS 16848fi 16849echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5 16850echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6 16851if test $ac_cv_lib_pthread_pthread_cancel = yes; then 16852 LIBS="$LIBS -lpthread" 16853fi 16854 16855echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16856echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16857if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16858 echo $ECHO_N "(cached) $ECHO_C" >&6 16859else 16860 ac_check_lib_save_LIBS=$LIBS 16861LIBS="-ldl $LIBS" 16862cat >conftest.$ac_ext <<_ACEOF 16863#line $LINENO "configure" 16864/* confdefs.h. */ 16865_ACEOF 16866cat confdefs.h >>conftest.$ac_ext 16867cat >>conftest.$ac_ext <<_ACEOF 16868/* end confdefs.h. */ 16869 16870/* Override any gcc2 internal prototype to avoid an error. */ 16871#ifdef __cplusplus 16872extern "C" 16873#endif 16874/* We use char because int might match the return type of a gcc2 16875 builtin and then its argument prototype would still apply. */ 16876char dlopen (); 16877int 16878main () 16879{ 16880dlopen (); 16881 ; 16882 return 0; 16883} 16884_ACEOF 16885rm -f conftest.$ac_objext conftest$ac_exeext 16886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16887 (eval $ac_link) 2>&5 16888 ac_status=$? 16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16890 (exit $ac_status); } && 16891 { ac_try='test -s conftest$ac_exeext' 16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16893 (eval $ac_try) 2>&5 16894 ac_status=$? 16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16896 (exit $ac_status); }; }; then 16897 ac_cv_lib_dl_dlopen=yes 16898else 16899 echo "$as_me: failed program was:" >&5 16900sed 's/^/| /' conftest.$ac_ext >&5 16901 16902ac_cv_lib_dl_dlopen=no 16903fi 16904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16905LIBS=$ac_check_lib_save_LIBS 16906fi 16907echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16908echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16909if test $ac_cv_lib_dl_dlopen = yes; then 16910 LIBS="$LIBS -ldl" 16911fi 16912 16913 16914#echo "$X_LIBS $X_CFLAGS" 16915#echo "$LIBS $CFLAGS" 16916 16917 16918#AC_CHECK_LIB(Xm, XmStringFree, ,[have_x11=false]) 16919 16920echo "$as_me:$LINENO: checking for XmuAllStandardColormaps in -lXmu" >&5 16921echo $ECHO_N "checking for XmuAllStandardColormaps in -lXmu... $ECHO_C" >&6 16922if test "${ac_cv_lib_Xmu_XmuAllStandardColormaps_+set}" = set; then 16923 echo $ECHO_N "(cached) $ECHO_C" >&6 16924else 16925 ac_check_lib_save_LIBS=$LIBS 16926LIBS="-lXmu $LIBS" 16927cat >conftest.$ac_ext <<_ACEOF 16928#line $LINENO "configure" 16929/* confdefs.h. */ 16930_ACEOF 16931cat confdefs.h >>conftest.$ac_ext 16932cat >>conftest.$ac_ext <<_ACEOF 16933/* end confdefs.h. */ 16934 16935/* Override any gcc2 internal prototype to avoid an error. */ 16936#ifdef __cplusplus 16937extern "C" 16938#endif 16939/* We use char because int might match the return type of a gcc2 16940 builtin and then its argument prototype would still apply. */ 16941char XmuAllStandardColormaps (); 16942int 16943main () 16944{ 16945XmuAllStandardColormaps (); 16946 ; 16947 return 0; 16948} 16949_ACEOF 16950rm -f conftest.$ac_objext conftest$ac_exeext 16951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16952 (eval $ac_link) 2>&5 16953 ac_status=$? 16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16955 (exit $ac_status); } && 16956 { ac_try='test -s conftest$ac_exeext' 16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16958 (eval $ac_try) 2>&5 16959 ac_status=$? 16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16961 (exit $ac_status); }; }; then 16962 ac_cv_lib_Xmu_XmuAllStandardColormaps_=yes 16963else 16964 echo "$as_me: failed program was:" >&5 16965sed 's/^/| /' conftest.$ac_ext >&5 16966 16967ac_cv_lib_Xmu_XmuAllStandardColormaps_=no 16968fi 16969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16970LIBS=$ac_check_lib_save_LIBS 16971fi 16972echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuAllStandardColormaps_" >&5 16973echo "${ECHO_T}$ac_cv_lib_Xmu_XmuAllStandardColormaps_" >&6 16974if test $ac_cv_lib_Xmu_XmuAllStandardColormaps_ = yes; then 16975 cat >>confdefs.h <<_ACEOF 16976#define HAVE_LIBXMU 1 16977_ACEOF 16978 16979 LIBS="-lXmu $LIBS" 16980 16981else 16982 have_x11=false 16983fi 16984 16985 16986echo "$as_me:$LINENO: checking for XtAppInitialize in -lXt" >&5 16987echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6 16988if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then 16989 echo $ECHO_N "(cached) $ECHO_C" >&6 16990else 16991 ac_check_lib_save_LIBS=$LIBS 16992LIBS="-lXt $LIBS" 16993cat >conftest.$ac_ext <<_ACEOF 16994#line $LINENO "configure" 16995/* confdefs.h. */ 16996_ACEOF 16997cat confdefs.h >>conftest.$ac_ext 16998cat >>conftest.$ac_ext <<_ACEOF 16999/* end confdefs.h. */ 17000 17001/* Override any gcc2 internal prototype to avoid an error. */ 17002#ifdef __cplusplus 17003extern "C" 17004#endif 17005/* We use char because int might match the return type of a gcc2 17006 builtin and then its argument prototype would still apply. */ 17007char XtAppInitialize (); 17008int 17009main () 17010{ 17011XtAppInitialize (); 17012 ; 17013 return 0; 17014} 17015_ACEOF 17016rm -f conftest.$ac_objext conftest$ac_exeext 17017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17018 (eval $ac_link) 2>&5 17019 ac_status=$? 17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17021 (exit $ac_status); } && 17022 { ac_try='test -s conftest$ac_exeext' 17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17024 (eval $ac_try) 2>&5 17025 ac_status=$? 17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17027 (exit $ac_status); }; }; then 17028 ac_cv_lib_Xt_XtAppInitialize=yes 17029else 17030 echo "$as_me: failed program was:" >&5 17031sed 's/^/| /' conftest.$ac_ext >&5 17032 17033ac_cv_lib_Xt_XtAppInitialize=no 17034fi 17035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17036LIBS=$ac_check_lib_save_LIBS 17037fi 17038echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppInitialize" >&5 17039echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6 17040if test $ac_cv_lib_Xt_XtAppInitialize = yes; then 17041 cat >>confdefs.h <<_ACEOF 17042#define HAVE_LIBXT 1 17043_ACEOF 17044 17045 LIBS="-lXt $LIBS" 17046 17047else 17048 have_x11=false 17049fi 17050 17051 17052echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 17053echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 17054if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 17055 echo $ECHO_N "(cached) $ECHO_C" >&6 17056else 17057 ac_check_lib_save_LIBS=$LIBS 17058LIBS="-lSM $LIBS" 17059cat >conftest.$ac_ext <<_ACEOF 17060#line $LINENO "configure" 17061/* confdefs.h. */ 17062_ACEOF 17063cat confdefs.h >>conftest.$ac_ext 17064cat >>conftest.$ac_ext <<_ACEOF 17065/* end confdefs.h. */ 17066 17067/* Override any gcc2 internal prototype to avoid an error. */ 17068#ifdef __cplusplus 17069extern "C" 17070#endif 17071/* We use char because int might match the return type of a gcc2 17072 builtin and then its argument prototype would still apply. */ 17073char SmcOpenConnection (); 17074int 17075main () 17076{ 17077SmcOpenConnection (); 17078 ; 17079 return 0; 17080} 17081_ACEOF 17082rm -f conftest.$ac_objext conftest$ac_exeext 17083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17084 (eval $ac_link) 2>&5 17085 ac_status=$? 17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17087 (exit $ac_status); } && 17088 { ac_try='test -s conftest$ac_exeext' 17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17090 (eval $ac_try) 2>&5 17091 ac_status=$? 17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17093 (exit $ac_status); }; }; then 17094 ac_cv_lib_SM_SmcOpenConnection=yes 17095else 17096 echo "$as_me: failed program was:" >&5 17097sed 's/^/| /' conftest.$ac_ext >&5 17098 17099ac_cv_lib_SM_SmcOpenConnection=no 17100fi 17101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17102LIBS=$ac_check_lib_save_LIBS 17103fi 17104echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 17105echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 17106if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 17107 cat >>confdefs.h <<_ACEOF 17108#define HAVE_LIBSM 1 17109_ACEOF 17110 17111 LIBS="-lSM $LIBS" 17112 17113else 17114 have_x11=false 17115fi 17116 17117 17118echo "$as_me:$LINENO: checking for IceAcceptConnection in -lICE" >&5 17119echo $ECHO_N "checking for IceAcceptConnection in -lICE... $ECHO_C" >&6 17120if test "${ac_cv_lib_ICE_IceAcceptConnection+set}" = set; then 17121 echo $ECHO_N "(cached) $ECHO_C" >&6 17122else 17123 ac_check_lib_save_LIBS=$LIBS 17124LIBS="-lICE $LIBS" 17125cat >conftest.$ac_ext <<_ACEOF 17126#line $LINENO "configure" 17127/* confdefs.h. */ 17128_ACEOF 17129cat confdefs.h >>conftest.$ac_ext 17130cat >>conftest.$ac_ext <<_ACEOF 17131/* end confdefs.h. */ 17132 17133/* Override any gcc2 internal prototype to avoid an error. */ 17134#ifdef __cplusplus 17135extern "C" 17136#endif 17137/* We use char because int might match the return type of a gcc2 17138 builtin and then its argument prototype would still apply. */ 17139char IceAcceptConnection (); 17140int 17141main () 17142{ 17143IceAcceptConnection (); 17144 ; 17145 return 0; 17146} 17147_ACEOF 17148rm -f conftest.$ac_objext conftest$ac_exeext 17149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17150 (eval $ac_link) 2>&5 17151 ac_status=$? 17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17153 (exit $ac_status); } && 17154 { ac_try='test -s conftest$ac_exeext' 17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17156 (eval $ac_try) 2>&5 17157 ac_status=$? 17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17159 (exit $ac_status); }; }; then 17160 ac_cv_lib_ICE_IceAcceptConnection=yes 17161else 17162 echo "$as_me: failed program was:" >&5 17163sed 's/^/| /' conftest.$ac_ext >&5 17164 17165ac_cv_lib_ICE_IceAcceptConnection=no 17166fi 17167rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17168LIBS=$ac_check_lib_save_LIBS 17169fi 17170echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceAcceptConnection" >&5 17171echo "${ECHO_T}$ac_cv_lib_ICE_IceAcceptConnection" >&6 17172if test $ac_cv_lib_ICE_IceAcceptConnection = yes; then 17173 cat >>confdefs.h <<_ACEOF 17174#define HAVE_LIBICE 1 17175_ACEOF 17176 17177 LIBS="-lICE $LIBS" 17178 17179else 17180 have_x11=false 17181fi 17182 17183 17184echo "$as_me:$LINENO: checking for XextCreateExtension in -lXext" >&5 17185echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6 17186if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then 17187 echo $ECHO_N "(cached) $ECHO_C" >&6 17188else 17189 ac_check_lib_save_LIBS=$LIBS 17190LIBS="-lXext $LIBS" 17191cat >conftest.$ac_ext <<_ACEOF 17192#line $LINENO "configure" 17193/* confdefs.h. */ 17194_ACEOF 17195cat confdefs.h >>conftest.$ac_ext 17196cat >>conftest.$ac_ext <<_ACEOF 17197/* end confdefs.h. */ 17198 17199/* Override any gcc2 internal prototype to avoid an error. */ 17200#ifdef __cplusplus 17201extern "C" 17202#endif 17203/* We use char because int might match the return type of a gcc2 17204 builtin and then its argument prototype would still apply. */ 17205char XextCreateExtension (); 17206int 17207main () 17208{ 17209XextCreateExtension (); 17210 ; 17211 return 0; 17212} 17213_ACEOF 17214rm -f conftest.$ac_objext conftest$ac_exeext 17215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17216 (eval $ac_link) 2>&5 17217 ac_status=$? 17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17219 (exit $ac_status); } && 17220 { ac_try='test -s conftest$ac_exeext' 17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17222 (eval $ac_try) 2>&5 17223 ac_status=$? 17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17225 (exit $ac_status); }; }; then 17226 ac_cv_lib_Xext_XextCreateExtension=yes 17227else 17228 echo "$as_me: failed program was:" >&5 17229sed 's/^/| /' conftest.$ac_ext >&5 17230 17231ac_cv_lib_Xext_XextCreateExtension=no 17232fi 17233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17234LIBS=$ac_check_lib_save_LIBS 17235fi 17236echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextCreateExtension" >&5 17237echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6 17238if test $ac_cv_lib_Xext_XextCreateExtension = yes; then 17239 cat >>confdefs.h <<_ACEOF 17240#define HAVE_LIBXEXT 1 17241_ACEOF 17242 17243 LIBS="-lXext $LIBS" 17244 17245else 17246 have_x11=false 17247fi 17248 17249 17250echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 17251echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6 17252if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 17253 echo $ECHO_N "(cached) $ECHO_C" >&6 17254else 17255 ac_check_lib_save_LIBS=$LIBS 17256LIBS="-lX11 $LIBS" 17257cat >conftest.$ac_ext <<_ACEOF 17258#line $LINENO "configure" 17259/* confdefs.h. */ 17260_ACEOF 17261cat confdefs.h >>conftest.$ac_ext 17262cat >>conftest.$ac_ext <<_ACEOF 17263/* end confdefs.h. */ 17264 17265/* Override any gcc2 internal prototype to avoid an error. */ 17266#ifdef __cplusplus 17267extern "C" 17268#endif 17269/* We use char because int might match the return type of a gcc2 17270 builtin and then its argument prototype would still apply. */ 17271char XOpenDisplay (); 17272int 17273main () 17274{ 17275XOpenDisplay (); 17276 ; 17277 return 0; 17278} 17279_ACEOF 17280rm -f conftest.$ac_objext conftest$ac_exeext 17281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17282 (eval $ac_link) 2>&5 17283 ac_status=$? 17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17285 (exit $ac_status); } && 17286 { ac_try='test -s conftest$ac_exeext' 17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17288 (eval $ac_try) 2>&5 17289 ac_status=$? 17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17291 (exit $ac_status); }; }; then 17292 ac_cv_lib_X11_XOpenDisplay=yes 17293else 17294 echo "$as_me: failed program was:" >&5 17295sed 's/^/| /' conftest.$ac_ext >&5 17296 17297ac_cv_lib_X11_XOpenDisplay=no 17298fi 17299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17300LIBS=$ac_check_lib_save_LIBS 17301fi 17302echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5 17303echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6 17304if test $ac_cv_lib_X11_XOpenDisplay = yes; then 17305 cat >>confdefs.h <<_ACEOF 17306#define HAVE_LIBX11 1 17307_ACEOF 17308 17309 LIBS="-lX11 $LIBS" 17310 17311else 17312 have_x11=false 17313fi 17314 17315 17316echo "$as_me:$LINENO: checking for XOpenDevice in -lXi" >&5 17317echo $ECHO_N "checking for XOpenDevice in -lXi... $ECHO_C" >&6 17318if test "${ac_cv_lib_Xi_XOpenDevice+set}" = set; then 17319 echo $ECHO_N "(cached) $ECHO_C" >&6 17320else 17321 ac_check_lib_save_LIBS=$LIBS 17322LIBS="-lXi $LIBS" 17323cat >conftest.$ac_ext <<_ACEOF 17324#line $LINENO "configure" 17325/* confdefs.h. */ 17326_ACEOF 17327cat confdefs.h >>conftest.$ac_ext 17328cat >>conftest.$ac_ext <<_ACEOF 17329/* end confdefs.h. */ 17330 17331/* Override any gcc2 internal prototype to avoid an error. */ 17332#ifdef __cplusplus 17333extern "C" 17334#endif 17335/* We use char because int might match the return type of a gcc2 17336 builtin and then its argument prototype would still apply. */ 17337char XOpenDevice (); 17338int 17339main () 17340{ 17341XOpenDevice (); 17342 ; 17343 return 0; 17344} 17345_ACEOF 17346rm -f conftest.$ac_objext conftest$ac_exeext 17347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17348 (eval $ac_link) 2>&5 17349 ac_status=$? 17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17351 (exit $ac_status); } && 17352 { ac_try='test -s conftest$ac_exeext' 17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17354 (eval $ac_try) 2>&5 17355 ac_status=$? 17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17357 (exit $ac_status); }; }; then 17358 ac_cv_lib_Xi_XOpenDevice=yes 17359else 17360 echo "$as_me: failed program was:" >&5 17361sed 's/^/| /' conftest.$ac_ext >&5 17362 17363ac_cv_lib_Xi_XOpenDevice=no 17364fi 17365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17366LIBS=$ac_check_lib_save_LIBS 17367fi 17368echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XOpenDevice" >&5 17369echo "${ECHO_T}$ac_cv_lib_Xi_XOpenDevice" >&6 17370if test $ac_cv_lib_Xi_XOpenDevice = yes; then 17371 cat >>confdefs.h <<_ACEOF 17372#define HAVE_LIBXI 1 17373_ACEOF 17374 17375 LIBS="-lXi $LIBS" 17376 17377else 17378 have_x11=false 17379fi 17380 17381 17382 17383# GLUT 17384LIBS=$save_libs 17385CFLAGS=$save_cflags 17386CPPFLAGS=$save_cppflags 17387have_glut=true 17388require_glut=false 17389if test "$with_glut" != ""; then 17390 if (test "$with_glut" != false && test "$with_glut" != no) then 17391 require_glut=true 17392 fi 17393 if (test "$with_glut" != yes && test "$with_glut" != true && test "$with_glut" != false && test "$with_glut" != no) then 17394 GLUT_ROOT="$with_glut" 17395 GLUT_LIBS="-L$GLUT_ROOT/lib -L$GLUT_ROOT/lib/glut" 17396 GLUT_CFLAGS="-I$GLUT_ROOT/include -I$GLUT_ROOT/include/GL" 17397 fi 17398fi 17399 17400GLUT_LIBS="$GLUT_LIBS $X_LIBS -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11" 17401GLUT_CFLAGS="$GLUT_CFLAGS $X_CFLAGS" 17402LIBS=$GLUT_LIBS 17403CPPFLAGS="$CPPFLAGS $GLUT_CFLAGS" 17404echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5 17405echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6 17406if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then 17407 echo $ECHO_N "(cached) $ECHO_C" >&6 17408else 17409 ac_check_lib_save_LIBS=$LIBS 17410LIBS="-lpthread $LIBS" 17411cat >conftest.$ac_ext <<_ACEOF 17412#line $LINENO "configure" 17413/* confdefs.h. */ 17414_ACEOF 17415cat confdefs.h >>conftest.$ac_ext 17416cat >>conftest.$ac_ext <<_ACEOF 17417/* end confdefs.h. */ 17418 17419/* Override any gcc2 internal prototype to avoid an error. */ 17420#ifdef __cplusplus 17421extern "C" 17422#endif 17423/* We use char because int might match the return type of a gcc2 17424 builtin and then its argument prototype would still apply. */ 17425char pthread_cancel (); 17426int 17427main () 17428{ 17429pthread_cancel (); 17430 ; 17431 return 0; 17432} 17433_ACEOF 17434rm -f conftest.$ac_objext conftest$ac_exeext 17435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17436 (eval $ac_link) 2>&5 17437 ac_status=$? 17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17439 (exit $ac_status); } && 17440 { ac_try='test -s conftest$ac_exeext' 17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17442 (eval $ac_try) 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; }; then 17446 ac_cv_lib_pthread_pthread_cancel=yes 17447else 17448 echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451ac_cv_lib_pthread_pthread_cancel=no 17452fi 17453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17454LIBS=$ac_check_lib_save_LIBS 17455fi 17456echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5 17457echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6 17458if test $ac_cv_lib_pthread_pthread_cancel = yes; then 17459 GLUT_LIBS="$GLUT_LIBS -lpthread" LIBS="$LIBS -lpthread" 17460fi 17461 17462echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17463echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17464if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17465 echo $ECHO_N "(cached) $ECHO_C" >&6 17466else 17467 ac_check_lib_save_LIBS=$LIBS 17468LIBS="-ldl $LIBS" 17469cat >conftest.$ac_ext <<_ACEOF 17470#line $LINENO "configure" 17471/* confdefs.h. */ 17472_ACEOF 17473cat confdefs.h >>conftest.$ac_ext 17474cat >>conftest.$ac_ext <<_ACEOF 17475/* end confdefs.h. */ 17476 17477/* Override any gcc2 internal prototype to avoid an error. */ 17478#ifdef __cplusplus 17479extern "C" 17480#endif 17481/* We use char because int might match the return type of a gcc2 17482 builtin and then its argument prototype would still apply. */ 17483char dlopen (); 17484int 17485main () 17486{ 17487dlopen (); 17488 ; 17489 return 0; 17490} 17491_ACEOF 17492rm -f conftest.$ac_objext conftest$ac_exeext 17493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17494 (eval $ac_link) 2>&5 17495 ac_status=$? 17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17497 (exit $ac_status); } && 17498 { ac_try='test -s conftest$ac_exeext' 17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17500 (eval $ac_try) 2>&5 17501 ac_status=$? 17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17503 (exit $ac_status); }; }; then 17504 ac_cv_lib_dl_dlopen=yes 17505else 17506 echo "$as_me: failed program was:" >&5 17507sed 's/^/| /' conftest.$ac_ext >&5 17508 17509ac_cv_lib_dl_dlopen=no 17510fi 17511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17512LIBS=$ac_check_lib_save_LIBS 17513fi 17514echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17515echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17516if test $ac_cv_lib_dl_dlopen = yes; then 17517 GLUT_LIBS="$GLUT_LIBS -ldl" LIBS="$LIBS -ldl" 17518fi 17519 17520 17521echo "$as_me:$LINENO: checking for glClear in -lGL" >&5 17522echo $ECHO_N "checking for glClear in -lGL... $ECHO_C" >&6 17523if test "${ac_cv_lib_GL_glClear+set}" = set; then 17524 echo $ECHO_N "(cached) $ECHO_C" >&6 17525else 17526 ac_check_lib_save_LIBS=$LIBS 17527LIBS="-lGL $LIBS" 17528cat >conftest.$ac_ext <<_ACEOF 17529#line $LINENO "configure" 17530/* confdefs.h. */ 17531_ACEOF 17532cat confdefs.h >>conftest.$ac_ext 17533cat >>conftest.$ac_ext <<_ACEOF 17534/* end confdefs.h. */ 17535 17536/* Override any gcc2 internal prototype to avoid an error. */ 17537#ifdef __cplusplus 17538extern "C" 17539#endif 17540/* We use char because int might match the return type of a gcc2 17541 builtin and then its argument prototype would still apply. */ 17542char glClear (); 17543int 17544main () 17545{ 17546glClear (); 17547 ; 17548 return 0; 17549} 17550_ACEOF 17551rm -f conftest.$ac_objext conftest$ac_exeext 17552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17553 (eval $ac_link) 2>&5 17554 ac_status=$? 17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17556 (exit $ac_status); } && 17557 { ac_try='test -s conftest$ac_exeext' 17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17559 (eval $ac_try) 2>&5 17560 ac_status=$? 17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17562 (exit $ac_status); }; }; then 17563 ac_cv_lib_GL_glClear=yes 17564else 17565 echo "$as_me: failed program was:" >&5 17566sed 's/^/| /' conftest.$ac_ext >&5 17567 17568ac_cv_lib_GL_glClear=no 17569fi 17570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17571LIBS=$ac_check_lib_save_LIBS 17572fi 17573echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glClear" >&5 17574echo "${ECHO_T}$ac_cv_lib_GL_glClear" >&6 17575if test $ac_cv_lib_GL_glClear = yes; then 17576 cat >>confdefs.h <<_ACEOF 17577#define HAVE_LIBGL 1 17578_ACEOF 17579 17580 LIBS="-lGL $LIBS" 17581 17582else 17583 have_glut=false 17584fi 17585 17586 17587echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 17588echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 17589if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then 17590 echo $ECHO_N "(cached) $ECHO_C" >&6 17591else 17592 ac_check_lib_save_LIBS=$LIBS 17593LIBS="-lGLU $LIBS" 17594cat >conftest.$ac_ext <<_ACEOF 17595#line $LINENO "configure" 17596/* confdefs.h. */ 17597_ACEOF 17598cat confdefs.h >>conftest.$ac_ext 17599cat >>conftest.$ac_ext <<_ACEOF 17600/* end confdefs.h. */ 17601 17602/* Override any gcc2 internal prototype to avoid an error. */ 17603#ifdef __cplusplus 17604extern "C" 17605#endif 17606/* We use char because int might match the return type of a gcc2 17607 builtin and then its argument prototype would still apply. */ 17608char gluLookAt (); 17609int 17610main () 17611{ 17612gluLookAt (); 17613 ; 17614 return 0; 17615} 17616_ACEOF 17617rm -f conftest.$ac_objext conftest$ac_exeext 17618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17619 (eval $ac_link) 2>&5 17620 ac_status=$? 17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17622 (exit $ac_status); } && 17623 { ac_try='test -s conftest$ac_exeext' 17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17625 (eval $ac_try) 2>&5 17626 ac_status=$? 17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17628 (exit $ac_status); }; }; then 17629 ac_cv_lib_GLU_gluLookAt=yes 17630else 17631 echo "$as_me: failed program was:" >&5 17632sed 's/^/| /' conftest.$ac_ext >&5 17633 17634ac_cv_lib_GLU_gluLookAt=no 17635fi 17636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17637LIBS=$ac_check_lib_save_LIBS 17638fi 17639echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 17640echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 17641if test $ac_cv_lib_GLU_gluLookAt = yes; then 17642 cat >>confdefs.h <<_ACEOF 17643#define HAVE_LIBGLU 1 17644_ACEOF 17645 17646 LIBS="-lGLU $LIBS" 17647 17648else 17649 have_glut=false 17650fi 17651 17652 17653echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 17654echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6 17655if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then 17656 echo $ECHO_N "(cached) $ECHO_C" >&6 17657else 17658 ac_check_lib_save_LIBS=$LIBS 17659LIBS="-lglut $LIBS" 17660cat >conftest.$ac_ext <<_ACEOF 17661#line $LINENO "configure" 17662/* confdefs.h. */ 17663_ACEOF 17664cat confdefs.h >>conftest.$ac_ext 17665cat >>conftest.$ac_ext <<_ACEOF 17666/* end confdefs.h. */ 17667 17668/* Override any gcc2 internal prototype to avoid an error. */ 17669#ifdef __cplusplus 17670extern "C" 17671#endif 17672/* We use char because int might match the return type of a gcc2 17673 builtin and then its argument prototype would still apply. */ 17674char glutMainLoop (); 17675int 17676main () 17677{ 17678glutMainLoop (); 17679 ; 17680 return 0; 17681} 17682_ACEOF 17683rm -f conftest.$ac_objext conftest$ac_exeext 17684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17685 (eval $ac_link) 2>&5 17686 ac_status=$? 17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17688 (exit $ac_status); } && 17689 { ac_try='test -s conftest$ac_exeext' 17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17691 (eval $ac_try) 2>&5 17692 ac_status=$? 17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17694 (exit $ac_status); }; }; then 17695 ac_cv_lib_glut_glutMainLoop=yes 17696else 17697 echo "$as_me: failed program was:" >&5 17698sed 's/^/| /' conftest.$ac_ext >&5 17699 17700ac_cv_lib_glut_glutMainLoop=no 17701fi 17702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17703LIBS=$ac_check_lib_save_LIBS 17704fi 17705echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 17706echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6 17707if test $ac_cv_lib_glut_glutMainLoop = yes; then 17708 cat >>confdefs.h <<_ACEOF 17709#define HAVE_LIBGLUT 1 17710_ACEOF 17711 17712 LIBS="-lglut $LIBS" 17713 17714else 17715 have_glut=false 17716fi 17717 17718if test "${ac_cv_header_GL_glut_h+set}" = set; then 17719 echo "$as_me:$LINENO: checking for GL/glut.h" >&5 17720echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6 17721if test "${ac_cv_header_GL_glut_h+set}" = set; then 17722 echo $ECHO_N "(cached) $ECHO_C" >&6 17723fi 17724echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5 17725echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6 17726else 17727 # Is the header compilable? 17728echo "$as_me:$LINENO: checking GL/glut.h usability" >&5 17729echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6 17730cat >conftest.$ac_ext <<_ACEOF 17731#line $LINENO "configure" 17732/* confdefs.h. */ 17733_ACEOF 17734cat confdefs.h >>conftest.$ac_ext 17735cat >>conftest.$ac_ext <<_ACEOF 17736/* end confdefs.h. */ 17737$ac_includes_default 17738#include <GL/glut.h> 17739_ACEOF 17740rm -f conftest.$ac_objext 17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17742 (eval $ac_compile) 2>&5 17743 ac_status=$? 17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17745 (exit $ac_status); } && 17746 { ac_try='test -s conftest.$ac_objext' 17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17748 (eval $ac_try) 2>&5 17749 ac_status=$? 17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17751 (exit $ac_status); }; }; then 17752 ac_header_compiler=yes 17753else 17754 echo "$as_me: failed program was:" >&5 17755sed 's/^/| /' conftest.$ac_ext >&5 17756 17757ac_header_compiler=no 17758fi 17759rm -f conftest.$ac_objext conftest.$ac_ext 17760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17761echo "${ECHO_T}$ac_header_compiler" >&6 17762 17763# Is the header present? 17764echo "$as_me:$LINENO: checking GL/glut.h presence" >&5 17765echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6 17766cat >conftest.$ac_ext <<_ACEOF 17767#line $LINENO "configure" 17768/* confdefs.h. */ 17769_ACEOF 17770cat confdefs.h >>conftest.$ac_ext 17771cat >>conftest.$ac_ext <<_ACEOF 17772/* end confdefs.h. */ 17773#include <GL/glut.h> 17774_ACEOF 17775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 17776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17777 ac_status=$? 17778 grep -v '^ *+' conftest.er1 >conftest.err 17779 rm -f conftest.er1 17780 cat conftest.err >&5 17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17782 (exit $ac_status); } >/dev/null; then 17783 if test -s conftest.err; then 17784 ac_cpp_err=$ac_cxx_preproc_warn_flag 17785 else 17786 ac_cpp_err= 17787 fi 17788else 17789 ac_cpp_err=yes 17790fi 17791if test -z "$ac_cpp_err"; then 17792 ac_header_preproc=yes 17793else 17794 echo "$as_me: failed program was:" >&5 17795sed 's/^/| /' conftest.$ac_ext >&5 17796 17797 ac_header_preproc=no 17798fi 17799rm -f conftest.err conftest.$ac_ext 17800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17801echo "${ECHO_T}$ac_header_preproc" >&6 17802 17803# So? What about this header? 17804case $ac_header_compiler:$ac_header_preproc in 17805 yes:no ) 17806 { echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5 17807echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 17808 { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5 17809echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;} 17810 ( 17811 cat <<\_ASBOX 17812## ------------------------------------ ## 17813## Report this to bug-autoconf@gnu.org. ## 17814## ------------------------------------ ## 17815_ASBOX 17816 ) | 17817 sed "s/^/$as_me: WARNING: /" >&2 17818 ;; 17819 no:yes ) 17820 { echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5 17821echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;} 17822 { echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5 17823echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;} 17824 { echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5 17825echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;} 17826 ( 17827 cat <<\_ASBOX 17828## ------------------------------------ ## 17829## Report this to bug-autoconf@gnu.org. ## 17830## ------------------------------------ ## 17831_ASBOX 17832 ) | 17833 sed "s/^/$as_me: WARNING: /" >&2 17834 ;; 17835esac 17836echo "$as_me:$LINENO: checking for GL/glut.h" >&5 17837echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6 17838if test "${ac_cv_header_GL_glut_h+set}" = set; then 17839 echo $ECHO_N "(cached) $ECHO_C" >&6 17840else 17841 ac_cv_header_GL_glut_h=$ac_header_preproc 17842fi 17843echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5 17844echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6 17845 17846fi 17847if test $ac_cv_header_GL_glut_h = yes; then 17848 : 17849else 17850 have_glut=false 17851fi 17852 17853 17854echo "$as_me:$LINENO: checking for jpeg_CreateDecompress in -ljpeg" >&5 17855echo $ECHO_N "checking for jpeg_CreateDecompress in -ljpeg... $ECHO_C" >&6 17856if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then 17857 echo $ECHO_N "(cached) $ECHO_C" >&6 17858else 17859 ac_check_lib_save_LIBS=$LIBS 17860LIBS="-ljpeg $LIBS" 17861cat >conftest.$ac_ext <<_ACEOF 17862#line $LINENO "configure" 17863/* confdefs.h. */ 17864_ACEOF 17865cat confdefs.h >>conftest.$ac_ext 17866cat >>conftest.$ac_ext <<_ACEOF 17867/* end confdefs.h. */ 17868 17869/* Override any gcc2 internal prototype to avoid an error. */ 17870#ifdef __cplusplus 17871extern "C" 17872#endif 17873/* We use char because int might match the return type of a gcc2 17874 builtin and then its argument prototype would still apply. */ 17875char jpeg_CreateDecompress (); 17876int 17877main () 17878{ 17879jpeg_CreateDecompress (); 17880 ; 17881 return 0; 17882} 17883_ACEOF 17884rm -f conftest.$ac_objext conftest$ac_exeext 17885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17886 (eval $ac_link) 2>&5 17887 ac_status=$? 17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17889 (exit $ac_status); } && 17890 { ac_try='test -s conftest$ac_exeext' 17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17892 (eval $ac_try) 2>&5 17893 ac_status=$? 17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17895 (exit $ac_status); }; }; then 17896 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 17897else 17898 echo "$as_me: failed program was:" >&5 17899sed 's/^/| /' conftest.$ac_ext >&5 17900 17901ac_cv_lib_jpeg_jpeg_CreateDecompress=no 17902fi 17903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17904LIBS=$ac_check_lib_save_LIBS 17905fi 17906echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 17907echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6 17908if test $ac_cv_lib_jpeg_jpeg_CreateDecompress = yes; then 17909 GLUT_LIBS="$GLUT_LIBS -ljpeg" 17910fi 17911 17912echo "$as_me:$LINENO: checking for TIFFSetErrorHandler in -ltiff" >&5 17913echo $ECHO_N "checking for TIFFSetErrorHandler in -ltiff... $ECHO_C" >&6 17914if test "${ac_cv_lib_tiff_TIFFSetErrorHandler+set}" = set; then 17915 echo $ECHO_N "(cached) $ECHO_C" >&6 17916else 17917 ac_check_lib_save_LIBS=$LIBS 17918LIBS="-ltiff $LIBS" 17919cat >conftest.$ac_ext <<_ACEOF 17920#line $LINENO "configure" 17921/* confdefs.h. */ 17922_ACEOF 17923cat confdefs.h >>conftest.$ac_ext 17924cat >>conftest.$ac_ext <<_ACEOF 17925/* end confdefs.h. */ 17926 17927/* Override any gcc2 internal prototype to avoid an error. */ 17928#ifdef __cplusplus 17929extern "C" 17930#endif 17931/* We use char because int might match the return type of a gcc2 17932 builtin and then its argument prototype would still apply. */ 17933char TIFFSetErrorHandler (); 17934int 17935main () 17936{ 17937TIFFSetErrorHandler (); 17938 ; 17939 return 0; 17940} 17941_ACEOF 17942rm -f conftest.$ac_objext conftest$ac_exeext 17943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17944 (eval $ac_link) 2>&5 17945 ac_status=$? 17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17947 (exit $ac_status); } && 17948 { ac_try='test -s conftest$ac_exeext' 17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17950 (eval $ac_try) 2>&5 17951 ac_status=$? 17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17953 (exit $ac_status); }; }; then 17954 ac_cv_lib_tiff_TIFFSetErrorHandler=yes 17955else 17956 echo "$as_me: failed program was:" >&5 17957sed 's/^/| /' conftest.$ac_ext >&5 17958 17959ac_cv_lib_tiff_TIFFSetErrorHandler=no 17960fi 17961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17962LIBS=$ac_check_lib_save_LIBS 17963fi 17964echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFSetErrorHandler" >&5 17965echo "${ECHO_T}$ac_cv_lib_tiff_TIFFSetErrorHandler" >&6 17966if test $ac_cv_lib_tiff_TIFFSetErrorHandler = yes; then 17967 GLUT_LIBS="$GLUT_LIBS -ltiff" 17968fi 17969 17970 17971echo "$as_me:$LINENO: checking found GLUT" >&5 17972echo $ECHO_N "checking found GLUT... $ECHO_C" >&6 17973if test $have_glut = false; then 17974 echo "$as_me:$LINENO: result: no" >&5 17975echo "${ECHO_T}no" >&6; 17976else 17977 echo "$as_me:$LINENO: result: yes" >&5 17978echo "${ECHO_T}yes" >&6; 17979fi 17980if (test $require_glut = true) then 17981 if (test $have_glut = false) then 17982 { { echo "$as_me:$LINENO: error: Required library GLUT not found!" >&5 17983echo "$as_me: error: Required library GLUT not found!" >&2;} 17984 { (exit 1); exit 1; }; } 17985 elif (test $have_png = false) then 17986 { { echo "$as_me:$LINENO: error: GLUT GUI cannot be built. Missing PNG library!!!" >&5 17987echo "$as_me: error: GLUT GUI cannot be built. Missing PNG library!!!" >&2;} 17988 { (exit 1); exit 1; }; } 17989 elif (test $have_x11 = false) then 17990 { { echo "$as_me:$LINENO: error: GLUT GUI cannot be built. Missing X11 library!!!" >&5 17991echo "$as_me: error: GLUT GUI cannot be built. Missing X11 library!!!" >&2;} 17992 { (exit 1); exit 1; }; } 17993 else 17994 GLUT_CFLAGS="-DHAVE_GLUT $GLUT_CFLAGS" 17995 fi 17996else 17997 GLUT_CFLAGS="" 17998 GLUT_LIBS="" 17999 X_LIBS="" 18000 X_CFLAGS="" 18001 #PNG_LIBS="" 18002fi 18003if (test "$GLUT_LIBS" != "") then 18004 echo "using GLUT... yes" 18005else 18006 echo "using GLUT... no" 18007fi 18008 18009 18010 18011 18012 18013 18014#echo "GLUT: $GLUT_CFLAGS $GLUT_LIBS" 18015 18016 18017# 18018# Check to see if the user wants our preset Sun g++ flags and the g++ compiler 18019# 18020 18021 18022LIBS=$save_libs 18023CFLAGS=$save_cflags 18024CPPFLAGS=$save_cppflags 18025CXXFLAGS=$save_cxxflags 18026 18027#AC_SUBST(CFLAGS) 18028#AC_SUBST(LIBS) 18029 18030compiler_version=`($CXX -V;$CXX -v) 2>&1 | perl ./compilerVersion.pl` 18031 18032cat >>confdefs.h <<_ACEOF 18033#define PACKAGE_COMPILER "$CXX $CXXFLAGS" 18034_ACEOF 18035 18036 18037cat >>confdefs.h <<_ACEOF 18038#define PACKAGE_COMPILER_VERSION "$compiler_version" 18039_ACEOF 18040 18041 18042 18043 18044 18045#Default AR 18046#Early versions of automake 18047AR1="ar" 18048#Late versions of automake 18049AR2="ar cru" 18050 18051 18052# 18053#Change the AR flag to CC -ar -o if we are using MIPSpro 18054#in debug or production mode. 18055# 18056 18057if(test "$WANT_IRIX_MIPSPRO_MPI_FLAGS" = 1 || 18058 test "$WANT_IRIX_MIPSPRO_MPI_DEBUG_FLAGS" = 1 || 18059 test "$WANT_IRIX_MIPSPRO_FLAGS" = 1 || 18060 test "$WANT_IRIX_MIPSPRO_DEBUG_FLAGS" = 1) then 18061 AR1="../mipscc_ar" 18062 AR2="$(CXX) -ar -o" 18063fi 18064 18065 18066 18067 18068CLEANFILES="-r *~" 18069 18070 18071# 18072# Check for "makedepend". Not everyone has this. 18073# 18074 18075#AC_CHECK_PROGS(MAKEDEPEND, makedepend, no) 18076 18077# 18078# Fix for ar 18079# 18080 18081 18082 18083 18084# 18085 18086 18087 ac_config_files="$ac_config_files Makefile framework/Makefile framework/base/Makefile framework/io/Makefile framework/parallel/Makefile framework/topology/Makefile framework/forces/Makefile framework/imd/Makefile framework/integrators/Makefile framework/frontend/Makefile framework/factories/Makefile applications/Makefile applications/protomol-app/Makefile applications/coulomb-app/Makefile applications/dcd2dcd-app/Makefile applications/iSGProtomol-app/Makefile applications/iSGProtomol-app/base/Makefile applications/iSGProtomol-app/io/Makefile applications/iSGProtomol-app/frontend/Makefile applications/iSGProtomol-app/forces/Makefile applications/iSGProtomol-app/factories/Makefile applications/iSGProtomol-app/integrators/Makefile applications/coords2coords-app/Makefile applications/xyzviz-app/Makefile" 18088cat >confcache <<\_ACEOF 18089# This file is a shell script that caches the results of configure 18090# tests run on this system so they can be shared between configure 18091# scripts and configure runs, see configure's option --config-cache. 18092# It is not useful on other systems. If it contains results you don't 18093# want to keep, you may remove or edit it. 18094# 18095# config.status only pays attention to the cache file if you give it 18096# the --recheck option to rerun configure. 18097# 18098# `ac_cv_env_foo' variables (set or unset) will be overridden when 18099# loading this file, other *unset* `ac_cv_foo' will be assigned the 18100# following values. 18101 18102_ACEOF 18103 18104# The following way of writing the cache mishandles newlines in values, 18105# but we know of no workaround that is simple, portable, and efficient. 18106# So, don't put newlines in cache variables' values. 18107# Ultrix sh set writes to stderr and can't be redirected directly, 18108# and sets the high bit in the cache file unless we assign to the vars. 18109{ 18110 (set) 2>&1 | 18111 case `(ac_space=' '; set | grep ac_space) 2>&1` in 18112 *ac_space=\ *) 18113 # `set' does not quote correctly, so add quotes (double-quote 18114 # substitution turns \\\\ into \\, and sed turns \\ into \). 18115 sed -n \ 18116 "s/'/'\\\\''/g; 18117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18118 ;; 18119 *) 18120 # `set' quotes correctly as required by POSIX, so do not add quotes. 18121 sed -n \ 18122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 18123 ;; 18124 esac; 18125} | 18126 sed ' 18127 t clear 18128 : clear 18129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18130 t end 18131 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18132 : end' >>confcache 18133if diff $cache_file confcache >/dev/null 2>&1; then :; else 18134 if test -w $cache_file; then 18135 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 18136 cat confcache >$cache_file 18137 else 18138 echo "not updating unwritable cache $cache_file" 18139 fi 18140fi 18141rm -f confcache 18142 18143test "x$prefix" = xNONE && prefix=$ac_default_prefix 18144# Let make expand exec_prefix. 18145test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18146 18147# VPATH may cause trouble with some makes, so we remove $(srcdir), 18148# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18149# trailing colons and then remove the whole line if VPATH becomes empty 18150# (actually we leave an empty line to preserve line numbers). 18151if test "x$srcdir" = x.; then 18152 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18153s/:*\$(srcdir):*/:/; 18154s/:*\${srcdir}:*/:/; 18155s/:*@srcdir@:*/:/; 18156s/^\([^=]*=[ ]*\):*/\1/; 18157s/:*$//; 18158s/^[^=]*=[ ]*$//; 18159}' 18160fi 18161 18162DEFS=-DHAVE_CONFIG_H 18163 18164ac_libobjs= 18165ac_ltlibobjs= 18166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18167 # 1. Remove the extension, and $U if already installed. 18168 ac_i=`echo "$ac_i" | 18169 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 18170 # 2. Add them. 18171 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 18172 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 18173done 18174LIBOBJS=$ac_libobjs 18175 18176LTLIBOBJS=$ac_ltlibobjs 18177 18178 18179if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18180 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 18181Usually this means the macro was only invoked conditionally." >&5 18182echo "$as_me: error: conditional \"AMDEP\" was never defined. 18183Usually this means the macro was only invoked conditionally." >&2;} 18184 { (exit 1); exit 1; }; } 18185fi 18186 18187: ${CONFIG_STATUS=./config.status} 18188ac_clean_files_save=$ac_clean_files 18189ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18190{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18191echo "$as_me: creating $CONFIG_STATUS" >&6;} 18192cat >$CONFIG_STATUS <<_ACEOF 18193#! $SHELL 18194# Generated by $as_me. 18195# Run this file to recreate the current configuration. 18196# Compiler output produced by configure, useful for debugging 18197# configure, is in config.log if it exists. 18198 18199debug=false 18200ac_cs_recheck=false 18201ac_cs_silent=false 18202SHELL=\${CONFIG_SHELL-$SHELL} 18203_ACEOF 18204 18205cat >>$CONFIG_STATUS <<\_ACEOF 18206## --------------------- ## 18207## M4sh Initialization. ## 18208## --------------------- ## 18209 18210# Be Bourne compatible 18211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18212 emulate sh 18213 NULLCMD=: 18214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18215 # is contrary to our usage. Disable this feature. 18216 alias -g '${1+"$@"}'='"$@"' 18217elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 18218 set -o posix 18219fi 18220 18221# Support unset when possible. 18222if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 18223 as_unset=unset 18224else 18225 as_unset=false 18226fi 18227 18228 18229# Work around bugs in pre-3.0 UWIN ksh. 18230$as_unset ENV MAIL MAILPATH 18231PS1='$ ' 18232PS2='> ' 18233PS4='+ ' 18234 18235# NLS nuisances. 18236for as_var in \ 18237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18239 LC_TELEPHONE LC_TIME 18240do 18241 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 18242 eval $as_var=C; export $as_var 18243 else 18244 $as_unset $as_var 18245 fi 18246done 18247 18248# Required to use basename. 18249if expr a : '\(a\)' >/dev/null 2>&1; then 18250 as_expr=expr 18251else 18252 as_expr=false 18253fi 18254 18255if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 18256 as_basename=basename 18257else 18258 as_basename=false 18259fi 18260 18261 18262# Name of the executable. 18263as_me=`$as_basename "$0" || 18264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18265 X"$0" : 'X\(//\)$' \| \ 18266 X"$0" : 'X\(/\)$' \| \ 18267 . : '\(.\)' 2>/dev/null || 18268echo X/"$0" | 18269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 18270 /^X\/\(\/\/\)$/{ s//\1/; q; } 18271 /^X\/\(\/\).*/{ s//\1/; q; } 18272 s/.*/./; q'` 18273 18274 18275# PATH needs CR, and LINENO needs CR and PATH. 18276# Avoid depending upon Character Ranges. 18277as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18278as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18279as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18280as_cr_digits='0123456789' 18281as_cr_alnum=$as_cr_Letters$as_cr_digits 18282 18283# The user is always right. 18284if test "${PATH_SEPARATOR+set}" != set; then 18285 echo "#! /bin/sh" >conf$$.sh 18286 echo "exit 0" >>conf$$.sh 18287 chmod +x conf$$.sh 18288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18289 PATH_SEPARATOR=';' 18290 else 18291 PATH_SEPARATOR=: 18292 fi 18293 rm -f conf$$.sh 18294fi 18295 18296 18297 as_lineno_1=$LINENO 18298 as_lineno_2=$LINENO 18299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 18300 test "x$as_lineno_1" != "x$as_lineno_2" && 18301 test "x$as_lineno_3" = "x$as_lineno_2" || { 18302 # Find who we are. Look in the path if we contain no path at all 18303 # relative or not. 18304 case $0 in 18305 *[\\/]* ) as_myself=$0 ;; 18306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18307for as_dir in $PATH 18308do 18309 IFS=$as_save_IFS 18310 test -z "$as_dir" && as_dir=. 18311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18312done 18313 18314 ;; 18315 esac 18316 # We did not find ourselves, most probably we were run as `sh COMMAND' 18317 # in which case we are not to be found in the path. 18318 if test "x$as_myself" = x; then 18319 as_myself=$0 18320 fi 18321 if test ! -f "$as_myself"; then 18322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 18323echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 18324 { (exit 1); exit 1; }; } 18325 fi 18326 case $CONFIG_SHELL in 18327 '') 18328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18329for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 18330do 18331 IFS=$as_save_IFS 18332 test -z "$as_dir" && as_dir=. 18333 for as_base in sh bash ksh sh5; do 18334 case $as_dir in 18335 /*) 18336 if ("$as_dir/$as_base" -c ' 18337 as_lineno_1=$LINENO 18338 as_lineno_2=$LINENO 18339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 18340 test "x$as_lineno_1" != "x$as_lineno_2" && 18341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 18342 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 18343 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 18344 CONFIG_SHELL=$as_dir/$as_base 18345 export CONFIG_SHELL 18346 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 18347 fi;; 18348 esac 18349 done 18350done 18351;; 18352 esac 18353 18354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18355 # uniformly replaced by the line number. The first 'sed' inserts a 18356 # line-number line before each line; the second 'sed' does the real 18357 # work. The second script uses 'N' to pair each line-number line 18358 # with the numbered line, and appends trailing '-' during 18359 # substitution so that $LINENO is not a special case at line end. 18360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 18362 sed '=' <$as_myself | 18363 sed ' 18364 N 18365 s,$,-, 18366 : loop 18367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 18368 t loop 18369 s,-$,, 18370 s,^['$as_cr_digits']*\n,, 18371 ' >$as_me.lineno && 18372 chmod +x $as_me.lineno || 18373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 18374echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 18375 { (exit 1); exit 1; }; } 18376 18377 # Don't try to exec as it changes $[0], causing all sort of problems 18378 # (the dirname of $[0] is not the place where we might find the 18379 # original and so on. Autoconf is especially sensible to this). 18380 . ./$as_me.lineno 18381 # Exit status is that of the last command. 18382 exit 18383} 18384 18385 18386case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 18387 *c*,-n*) ECHO_N= ECHO_C=' 18388' ECHO_T=' ' ;; 18389 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 18390 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 18391esac 18392 18393if expr a : '\(a\)' >/dev/null 2>&1; then 18394 as_expr=expr 18395else 18396 as_expr=false 18397fi 18398 18399rm -f conf$$ conf$$.exe conf$$.file 18400echo >conf$$.file 18401if ln -s conf$$.file conf$$ 2>/dev/null; then 18402 # We could just check for DJGPP; but this test a) works b) is more generic 18403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 18404 if test -f conf$$.exe; then 18405 # Don't use ln at all; we don't have any links 18406 as_ln_s='cp -p' 18407 else 18408 as_ln_s='ln -s' 18409 fi 18410elif ln conf$$.file conf$$ 2>/dev/null; then 18411 as_ln_s=ln 18412else 18413 as_ln_s='cp -p' 18414fi 18415rm -f conf$$ conf$$.exe conf$$.file 18416 18417if mkdir -p . 2>/dev/null; then 18418 as_mkdir_p=: 18419else 18420 as_mkdir_p=false 18421fi 18422 18423as_executable_p="test -f" 18424 18425# Sed expression to map a string onto a valid CPP name. 18426as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 18427 18428# Sed expression to map a string onto a valid variable name. 18429as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 18430 18431 18432# IFS 18433# We need space, tab and new line, in precisely that order. 18434as_nl=' 18435' 18436IFS=" $as_nl" 18437 18438# CDPATH. 18439$as_unset CDPATH 18440 18441exec 6>&1 18442 18443# Open the log real soon, to keep \$[0] and so on meaningful, and to 18444# report actual input values of CONFIG_FILES etc. instead of their 18445# values after options handling. Logging --version etc. is OK. 18446exec 5>>config.log 18447{ 18448 echo 18449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18450## Running $as_me. ## 18451_ASBOX 18452} >&5 18453cat >&5 <<_CSEOF 18454 18455This file was extended by protomol $as_me 2.0.3, which was 18456generated by GNU Autoconf 2.57. Invocation command line was 18457 18458 CONFIG_FILES = $CONFIG_FILES 18459 CONFIG_HEADERS = $CONFIG_HEADERS 18460 CONFIG_LINKS = $CONFIG_LINKS 18461 CONFIG_COMMANDS = $CONFIG_COMMANDS 18462 $ $0 $@ 18463 18464_CSEOF 18465echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 18466echo >&5 18467_ACEOF 18468 18469# Files that config.status was made for. 18470if test -n "$ac_config_files"; then 18471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 18472fi 18473 18474if test -n "$ac_config_headers"; then 18475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 18476fi 18477 18478if test -n "$ac_config_links"; then 18479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 18480fi 18481 18482if test -n "$ac_config_commands"; then 18483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 18484fi 18485 18486cat >>$CONFIG_STATUS <<\_ACEOF 18487 18488ac_cs_usage="\ 18489\`$as_me' instantiates files from templates according to the 18490current configuration. 18491 18492Usage: $0 [OPTIONS] [FILE]... 18493 18494 -h, --help print this help, then exit 18495 -V, --version print version number, then exit 18496 -q, --quiet do not print progress messages 18497 -d, --debug don't remove temporary files 18498 --recheck update $as_me by reconfiguring in the same conditions 18499 --file=FILE[:TEMPLATE] 18500 instantiate the configuration file FILE 18501 --header=FILE[:TEMPLATE] 18502 instantiate the configuration header FILE 18503 18504Configuration files: 18505$config_files 18506 18507Configuration headers: 18508$config_headers 18509 18510Configuration commands: 18511$config_commands 18512 18513Report bugs to <bug-autoconf@gnu.org>." 18514_ACEOF 18515 18516cat >>$CONFIG_STATUS <<_ACEOF 18517ac_cs_version="\\ 18518protomol config.status 2.0.3 18519configured by $0, generated by GNU Autoconf 2.57, 18520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 18521 18522Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 18523Free Software Foundation, Inc. 18524This config.status script is free software; the Free Software Foundation 18525gives unlimited permission to copy, distribute and modify it." 18526srcdir=$srcdir 18527INSTALL="$INSTALL" 18528_ACEOF 18529 18530cat >>$CONFIG_STATUS <<\_ACEOF 18531# If no file are specified by the user, then we need to provide default 18532# value. By we need to know if files were specified by the user. 18533ac_need_defaults=: 18534while test $# != 0 18535do 18536 case $1 in 18537 --*=*) 18538 ac_option=`expr "x$1" : 'x\([^=]*\)='` 18539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 18540 ac_shift=: 18541 ;; 18542 -*) 18543 ac_option=$1 18544 ac_optarg=$2 18545 ac_shift=shift 18546 ;; 18547 *) # This is not an option, so the user has probably given explicit 18548 # arguments. 18549 ac_option=$1 18550 ac_need_defaults=false;; 18551 esac 18552 18553 case $ac_option in 18554 # Handling of the options. 18555_ACEOF 18556cat >>$CONFIG_STATUS <<\_ACEOF 18557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18558 ac_cs_recheck=: ;; 18559 --version | --vers* | -V ) 18560 echo "$ac_cs_version"; exit 0 ;; 18561 --he | --h) 18562 # Conflict between --help and --header 18563 { { echo "$as_me:$LINENO: error: ambiguous option: $1 18564Try \`$0 --help' for more information." >&5 18565echo "$as_me: error: ambiguous option: $1 18566Try \`$0 --help' for more information." >&2;} 18567 { (exit 1); exit 1; }; };; 18568 --help | --hel | -h ) 18569 echo "$ac_cs_usage"; exit 0 ;; 18570 --debug | --d* | -d ) 18571 debug=: ;; 18572 --file | --fil | --fi | --f ) 18573 $ac_shift 18574 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 18575 ac_need_defaults=false;; 18576 --header | --heade | --head | --hea ) 18577 $ac_shift 18578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 18579 ac_need_defaults=false;; 18580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18581 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18582 ac_cs_silent=: ;; 18583 18584 # This is an error. 18585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 18586Try \`$0 --help' for more information." >&5 18587echo "$as_me: error: unrecognized option: $1 18588Try \`$0 --help' for more information." >&2;} 18589 { (exit 1); exit 1; }; } ;; 18590 18591 *) ac_config_targets="$ac_config_targets $1" ;; 18592 18593 esac 18594 shift 18595done 18596 18597ac_configure_extra_args= 18598 18599if $ac_cs_silent; then 18600 exec 6>/dev/null 18601 ac_configure_extra_args="$ac_configure_extra_args --silent" 18602fi 18603 18604_ACEOF 18605cat >>$CONFIG_STATUS <<_ACEOF 18606if \$ac_cs_recheck; then 18607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 18608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18609fi 18610 18611_ACEOF 18612 18613cat >>$CONFIG_STATUS <<_ACEOF 18614# 18615# INIT-COMMANDS section. 18616# 18617 18618AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18619 18620_ACEOF 18621 18622 18623 18624cat >>$CONFIG_STATUS <<\_ACEOF 18625for ac_config_target in $ac_config_targets 18626do 18627 case "$ac_config_target" in 18628 # Handling of arguments. 18629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18630 "framework/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/Makefile" ;; 18631 "framework/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/base/Makefile" ;; 18632 "framework/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/io/Makefile" ;; 18633 "framework/parallel/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/parallel/Makefile" ;; 18634 "framework/topology/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/topology/Makefile" ;; 18635 "framework/forces/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/forces/Makefile" ;; 18636 "framework/imd/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/imd/Makefile" ;; 18637 "framework/integrators/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/integrators/Makefile" ;; 18638 "framework/frontend/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/frontend/Makefile" ;; 18639 "framework/factories/Makefile" ) CONFIG_FILES="$CONFIG_FILES framework/factories/Makefile" ;; 18640 "applications/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;; 18641 "applications/protomol-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/protomol-app/Makefile" ;; 18642 "applications/coulomb-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/coulomb-app/Makefile" ;; 18643 "applications/dcd2dcd-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/dcd2dcd-app/Makefile" ;; 18644 "applications/iSGProtomol-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/Makefile" ;; 18645 "applications/iSGProtomol-app/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/base/Makefile" ;; 18646 "applications/iSGProtomol-app/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/io/Makefile" ;; 18647 "applications/iSGProtomol-app/frontend/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/frontend/Makefile" ;; 18648 "applications/iSGProtomol-app/forces/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/forces/Makefile" ;; 18649 "applications/iSGProtomol-app/factories/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/factories/Makefile" ;; 18650 "applications/iSGProtomol-app/integrators/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/iSGProtomol-app/integrators/Makefile" ;; 18651 "applications/coords2coords-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/coords2coords-app/Makefile" ;; 18652 "applications/xyzviz-app/Makefile" ) CONFIG_FILES="$CONFIG_FILES applications/xyzviz-app/Makefile" ;; 18653 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18654 "protomol_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS protomol_config.h" ;; 18655 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18656echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18657 { (exit 1); exit 1; }; };; 18658 esac 18659done 18660 18661# If the user did not use the arguments to specify the items to instantiate, 18662# then the envvar interface is used. Set only those that are not. 18663# We use the long form for the default assignment because of an extremely 18664# bizarre bug on SunOS 4.1.3. 18665if $ac_need_defaults; then 18666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18669fi 18670 18671# Have a temporary directory for convenience. Make it in the build tree 18672# simply because there is no reason to put it here, and in addition, 18673# creating and moving files from /tmp can sometimes cause problems. 18674# Create a temporary directory, and hook for its removal unless debugging. 18675$debug || 18676{ 18677 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 18678 trap '{ (exit 1); exit 1; }' 1 2 13 15 18679} 18680 18681# Create a (secure) tmp directory for tmp files. 18682 18683{ 18684 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 18685 test -n "$tmp" && test -d "$tmp" 18686} || 18687{ 18688 tmp=./confstat$$-$RANDOM 18689 (umask 077 && mkdir $tmp) 18690} || 18691{ 18692 echo "$me: cannot create a temporary directory in ." >&2 18693 { (exit 1); exit 1; } 18694} 18695 18696_ACEOF 18697 18698cat >>$CONFIG_STATUS <<_ACEOF 18699 18700# 18701# CONFIG_FILES section. 18702# 18703 18704# No need to generate the scripts if there are no CONFIG_FILES. 18705# This happens for instance when ./config.status config.h 18706if test -n "\$CONFIG_FILES"; then 18707 # Protect against being on the right side of a sed subst in config.status. 18708 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 18709 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 18710s,@SHELL@,$SHELL,;t t 18711s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 18712s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 18713s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 18714s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 18715s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 18716s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 18717s,@exec_prefix@,$exec_prefix,;t t 18718s,@prefix@,$prefix,;t t 18719s,@program_transform_name@,$program_transform_name,;t t 18720s,@bindir@,$bindir,;t t 18721s,@sbindir@,$sbindir,;t t 18722s,@libexecdir@,$libexecdir,;t t 18723s,@datadir@,$datadir,;t t 18724s,@sysconfdir@,$sysconfdir,;t t 18725s,@sharedstatedir@,$sharedstatedir,;t t 18726s,@localstatedir@,$localstatedir,;t t 18727s,@libdir@,$libdir,;t t 18728s,@includedir@,$includedir,;t t 18729s,@oldincludedir@,$oldincludedir,;t t 18730s,@infodir@,$infodir,;t t 18731s,@mandir@,$mandir,;t t 18732s,@build_alias@,$build_alias,;t t 18733s,@host_alias@,$host_alias,;t t 18734s,@target_alias@,$target_alias,;t t 18735s,@DEFS@,$DEFS,;t t 18736s,@ECHO_C@,$ECHO_C,;t t 18737s,@ECHO_N@,$ECHO_N,;t t 18738s,@ECHO_T@,$ECHO_T,;t t 18739s,@LIBS@,$LIBS,;t t 18740s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 18741s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 18742s,@INSTALL_DATA@,$INSTALL_DATA,;t t 18743s,@PACKAGE@,$PACKAGE,;t t 18744s,@VERSION@,$VERSION,;t t 18745s,@ACLOCAL@,$ACLOCAL,;t t 18746s,@AUTOCONF@,$AUTOCONF,;t t 18747s,@AUTOMAKE@,$AUTOMAKE,;t t 18748s,@AUTOHEADER@,$AUTOHEADER,;t t 18749s,@MAKEINFO@,$MAKEINFO,;t t 18750s,@AMTAR@,$AMTAR,;t t 18751s,@install_sh@,$install_sh,;t t 18752s,@STRIP@,$STRIP,;t t 18753s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 18754s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 18755s,@AWK@,$AWK,;t t 18756s,@SET_MAKE@,$SET_MAKE,;t t 18757s,@PROTOMOL_MAJOR_VERSION@,$PROTOMOL_MAJOR_VERSION,;t t 18758s,@PROTOMOL_MINOR_VERSION@,$PROTOMOL_MINOR_VERSION,;t t 18759s,@PROTOMOL_PATCH_LEVEL@,$PROTOMOL_PATCH_LEVEL,;t t 18760s,@LT_RELEASE@,$LT_RELEASE,;t t 18761s,@LT_CURRENT@,$LT_CURRENT,;t t 18762s,@LT_REVISION@,$LT_REVISION,;t t 18763s,@LT_AGE@,$LT_AGE,;t t 18764s,@CXX@,$CXX,;t t 18765s,@CXXFLAGS@,$CXXFLAGS,;t t 18766s,@LDFLAGS@,$LDFLAGS,;t t 18767s,@CPPFLAGS@,$CPPFLAGS,;t t 18768s,@ac_ct_CXX@,$ac_ct_CXX,;t t 18769s,@EXEEXT@,$EXEEXT,;t t 18770s,@OBJEXT@,$OBJEXT,;t t 18771s,@DEPDIR@,$DEPDIR,;t t 18772s,@am__include@,$am__include,;t t 18773s,@am__quote@,$am__quote,;t t 18774s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 18775s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 18776s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 18777s,@CXXDEPMODE@,$CXXDEPMODE,;t t 18778s,@CC@,$CC,;t t 18779s,@CFLAGS@,$CFLAGS,;t t 18780s,@ac_ct_CC@,$ac_ct_CC,;t t 18781s,@CCDEPMODE@,$CCDEPMODE,;t t 18782s,@DEPFLAGS@,$DEPFLAGS,;t t 18783s,@CXXCPP@,$CXXCPP,;t t 18784s,@RANLIB@,$RANLIB,;t t 18785s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 18786s,@X_CFLAGS@,$X_CFLAGS,;t t 18787s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 18788s,@X_LIBS@,$X_LIBS,;t t 18789s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 18790s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t 18791s,@EGREP@,$EGREP,;t t 18792s,@FFT_LIBS@,$FFT_LIBS,;t t 18793s,@FFT_CFLAGS@,$FFT_CFLAGS,;t t 18794s,@PNG_LIBS@,$PNG_LIBS,;t t 18795s,@GLUT_LIBS@,$GLUT_LIBS,;t t 18796s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t 18797s,@CLEANFILES@,$CLEANFILES,;t t 18798s,@AR1@,$AR1,;t t 18799s,@AR2@,$AR2,;t t 18800s,@LIBOBJS@,$LIBOBJS,;t t 18801s,@LTLIBOBJS@,$LTLIBOBJS,;t t 18802CEOF 18803 18804_ACEOF 18805 18806 cat >>$CONFIG_STATUS <<\_ACEOF 18807 # Split the substitutions into bite-sized pieces for seds with 18808 # small command number limits, like on Digital OSF/1 and HP-UX. 18809 ac_max_sed_lines=48 18810 ac_sed_frag=1 # Number of current file. 18811 ac_beg=1 # First line for current file. 18812 ac_end=$ac_max_sed_lines # Line after last line for current file. 18813 ac_more_lines=: 18814 ac_sed_cmds= 18815 while $ac_more_lines; do 18816 if test $ac_beg -gt 1; then 18817 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 18818 else 18819 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 18820 fi 18821 if test ! -s $tmp/subs.frag; then 18822 ac_more_lines=false 18823 else 18824 # The purpose of the label and of the branching condition is to 18825 # speed up the sed processing (if there are no `@' at all, there 18826 # is no need to browse any of the substitutions). 18827 # These are the two extra sed commands mentioned above. 18828 (echo ':t 18829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 18830 if test -z "$ac_sed_cmds"; then 18831 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 18832 else 18833 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 18834 fi 18835 ac_sed_frag=`expr $ac_sed_frag + 1` 18836 ac_beg=$ac_end 18837 ac_end=`expr $ac_end + $ac_max_sed_lines` 18838 fi 18839 done 18840 if test -z "$ac_sed_cmds"; then 18841 ac_sed_cmds=cat 18842 fi 18843fi # test -n "$CONFIG_FILES" 18844 18845_ACEOF 18846cat >>$CONFIG_STATUS <<\_ACEOF 18847for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 18848 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 18849 case $ac_file in 18850 - | *:- | *:-:* ) # input from stdin 18851 cat >$tmp/stdin 18852 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 18853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18854 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 18855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 18856 * ) ac_file_in=$ac_file.in ;; 18857 esac 18858 18859 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 18860 ac_dir=`(dirname "$ac_file") 2>/dev/null || 18861$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18862 X"$ac_file" : 'X\(//\)[^/]' \| \ 18863 X"$ac_file" : 'X\(//\)$' \| \ 18864 X"$ac_file" : 'X\(/\)' \| \ 18865 . : '\(.\)' 2>/dev/null || 18866echo X"$ac_file" | 18867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18868 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18869 /^X\(\/\/\)$/{ s//\1/; q; } 18870 /^X\(\/\).*/{ s//\1/; q; } 18871 s/.*/./; q'` 18872 { if $as_mkdir_p; then 18873 mkdir -p "$ac_dir" 18874 else 18875 as_dir="$ac_dir" 18876 as_dirs= 18877 while test ! -d "$as_dir"; do 18878 as_dirs="$as_dir $as_dirs" 18879 as_dir=`(dirname "$as_dir") 2>/dev/null || 18880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18881 X"$as_dir" : 'X\(//\)[^/]' \| \ 18882 X"$as_dir" : 'X\(//\)$' \| \ 18883 X"$as_dir" : 'X\(/\)' \| \ 18884 . : '\(.\)' 2>/dev/null || 18885echo X"$as_dir" | 18886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 18887 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 18888 /^X\(\/\/\)$/{ s//\1/; q; } 18889 /^X\(\/\).*/{ s//\1/; q; } 18890 s/.*/./; q'` 18891 done 18892 test ! -n "$as_dirs" || mkdir $as_dirs 18893 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 18894echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 18895 { (exit 1); exit 1; }; }; } 18896 18897 ac_builddir=. 18898 18899if test "$ac_dir" != .; then 18900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 18901 # A "../" for each directory in $ac_dir_suffix. 18902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 18903else 18904 ac_dir_suffix= ac_top_builddir= 18905fi 18906 18907case $srcdir in 18908 .) # No --srcdir option. We are building in place. 18909 ac_srcdir=. 18910 if test -z "$ac_top_builddir"; then 18911 ac_top_srcdir=. 18912 else 18913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 18914 fi ;; 18915 [\\/]* | ?:[\\/]* ) # Absolute path. 18916 ac_srcdir=$srcdir$ac_dir_suffix; 18917 ac_top_srcdir=$srcdir ;; 18918 *) # Relative path. 18919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 18920 ac_top_srcdir=$ac_top_builddir$srcdir ;; 18921esac 18922# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 18923# absolute. 18924ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 18925ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 18926ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 18927ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 18928 18929 18930 case $INSTALL in 18931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18932 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 18933 esac 18934 18935 if test x"$ac_file" != x-; then 18936 { echo "$as_me:$LINENO: creating $ac_file" >&5 18937echo "$as_me: creating $ac_file" >&6;} 18938 rm -f "$ac_file" 18939 fi 18940 # Let's still pretend it is `configure' which instantiates (i.e., don't 18941 # use $as_me), people would be surprised to read: 18942 # /* config.h. Generated by config.status. */ 18943 if test x"$ac_file" = x-; then 18944 configure_input= 18945 else 18946 configure_input="$ac_file. " 18947 fi 18948 configure_input=$configure_input"Generated from `echo $ac_file_in | 18949 sed 's,.*/,,'` by configure." 18950 18951 # First look for the input files in the build tree, otherwise in the 18952 # src tree. 18953 ac_file_inputs=`IFS=: 18954 for f in $ac_file_in; do 18955 case $f in 18956 -) echo $tmp/stdin ;; 18957 [\\/$]*) 18958 # Absolute (can't be DOS-style, as IFS=:) 18959 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 18960echo "$as_me: error: cannot find input file: $f" >&2;} 18961 { (exit 1); exit 1; }; } 18962 echo $f;; 18963 *) # Relative 18964 if test -f "$f"; then 18965 # Build tree 18966 echo $f 18967 elif test -f "$srcdir/$f"; then 18968 # Source tree 18969 echo $srcdir/$f 18970 else 18971 # /dev/null tree 18972 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 18973echo "$as_me: error: cannot find input file: $f" >&2;} 18974 { (exit 1); exit 1; }; } 18975 fi;; 18976 esac 18977 done` || { (exit 1); exit 1; } 18978_ACEOF 18979cat >>$CONFIG_STATUS <<_ACEOF 18980 sed "$ac_vpsub 18981$extrasub 18982_ACEOF 18983cat >>$CONFIG_STATUS <<\_ACEOF 18984:t 18985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18986s,@configure_input@,$configure_input,;t t 18987s,@srcdir@,$ac_srcdir,;t t 18988s,@abs_srcdir@,$ac_abs_srcdir,;t t 18989s,@top_srcdir@,$ac_top_srcdir,;t t 18990s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 18991s,@builddir@,$ac_builddir,;t t 18992s,@abs_builddir@,$ac_abs_builddir,;t t 18993s,@top_builddir@,$ac_top_builddir,;t t 18994s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 18995s,@INSTALL@,$ac_INSTALL,;t t 18996" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 18997 rm -f $tmp/stdin 18998 if test x"$ac_file" != x-; then 18999 mv $tmp/out $ac_file 19000 else 19001 cat $tmp/out 19002 rm -f $tmp/out 19003 fi 19004 19005done 19006_ACEOF 19007cat >>$CONFIG_STATUS <<\_ACEOF 19008 19009# 19010# CONFIG_HEADER section. 19011# 19012 19013# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 19014# NAME is the cpp macro being defined and VALUE is the value it is being given. 19015# 19016# ac_d sets the value in "#define NAME VALUE" lines. 19017ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 19018ac_dB='[ ].*$,\1#\2' 19019ac_dC=' ' 19020ac_dD=',;t' 19021# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 19022ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19023ac_uB='$,\1#\2define\3' 19024ac_uC=' ' 19025ac_uD=',;t' 19026 19027for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 19028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19029 case $ac_file in 19030 - | *:- | *:-:* ) # input from stdin 19031 cat >$tmp/stdin 19032 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19034 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19036 * ) ac_file_in=$ac_file.in ;; 19037 esac 19038 19039 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 19040echo "$as_me: creating $ac_file" >&6;} 19041 19042 # First look for the input files in the build tree, otherwise in the 19043 # src tree. 19044 ac_file_inputs=`IFS=: 19045 for f in $ac_file_in; do 19046 case $f in 19047 -) echo $tmp/stdin ;; 19048 [\\/$]*) 19049 # Absolute (can't be DOS-style, as IFS=:) 19050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19051echo "$as_me: error: cannot find input file: $f" >&2;} 19052 { (exit 1); exit 1; }; } 19053 echo $f;; 19054 *) # Relative 19055 if test -f "$f"; then 19056 # Build tree 19057 echo $f 19058 elif test -f "$srcdir/$f"; then 19059 # Source tree 19060 echo $srcdir/$f 19061 else 19062 # /dev/null tree 19063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19064echo "$as_me: error: cannot find input file: $f" >&2;} 19065 { (exit 1); exit 1; }; } 19066 fi;; 19067 esac 19068 done` || { (exit 1); exit 1; } 19069 # Remove the trailing spaces. 19070 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 19071 19072_ACEOF 19073 19074# Transform confdefs.h into two sed scripts, `conftest.defines' and 19075# `conftest.undefs', that substitutes the proper values into 19076# config.h.in to produce config.h. The first handles `#define' 19077# templates, and the second `#undef' templates. 19078# And first: Protect against being on the right side of a sed subst in 19079# config.status. Protect against being in an unquoted here document 19080# in config.status. 19081rm -f conftest.defines conftest.undefs 19082# Using a here document instead of a string reduces the quoting nightmare. 19083# Putting comments in sed scripts is not portable. 19084# 19085# `end' is used to avoid that the second main sed command (meant for 19086# 0-ary CPP macros) applies to n-ary macro definitions. 19087# See the Autoconf documentation for `clear'. 19088cat >confdef2sed.sed <<\_ACEOF 19089s/[\\&,]/\\&/g 19090s,[\\$`],\\&,g 19091t clear 19092: clear 19093s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 19094t end 19095s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 19096: end 19097_ACEOF 19098# If some macros were called several times there might be several times 19099# the same #defines, which is useless. Nevertheless, we may not want to 19100# sort them, since we want the *last* AC-DEFINE to be honored. 19101uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 19102sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 19103rm -f confdef2sed.sed 19104 19105# This sed command replaces #undef with comments. This is necessary, for 19106# example, in the case of _POSIX_SOURCE, which is predefined and required 19107# on some systems where configure will not decide to define it. 19108cat >>conftest.undefs <<\_ACEOF 19109s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 19110_ACEOF 19111 19112# Break up conftest.defines because some shells have a limit on the size 19113# of here documents, and old seds have small limits too (100 cmds). 19114echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 19115echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 19116echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 19117echo ' :' >>$CONFIG_STATUS 19118rm -f conftest.tail 19119while grep . conftest.defines >/dev/null 19120do 19121 # Write a limited-size here document to $tmp/defines.sed. 19122 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 19123 # Speed up: don't consider the non `#define' lines. 19124 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 19125 # Work around the forget-to-reset-the-flag bug. 19126 echo 't clr' >>$CONFIG_STATUS 19127 echo ': clr' >>$CONFIG_STATUS 19128 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 19129 echo 'CEOF 19130 sed -f $tmp/defines.sed $tmp/in >$tmp/out 19131 rm -f $tmp/in 19132 mv $tmp/out $tmp/in 19133' >>$CONFIG_STATUS 19134 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 19135 rm -f conftest.defines 19136 mv conftest.tail conftest.defines 19137done 19138rm -f conftest.defines 19139echo ' fi # grep' >>$CONFIG_STATUS 19140echo >>$CONFIG_STATUS 19141 19142# Break up conftest.undefs because some shells have a limit on the size 19143# of here documents, and old seds have small limits too (100 cmds). 19144echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 19145rm -f conftest.tail 19146while grep . conftest.undefs >/dev/null 19147do 19148 # Write a limited-size here document to $tmp/undefs.sed. 19149 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 19150 # Speed up: don't consider the non `#undef' 19151 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 19152 # Work around the forget-to-reset-the-flag bug. 19153 echo 't clr' >>$CONFIG_STATUS 19154 echo ': clr' >>$CONFIG_STATUS 19155 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 19156 echo 'CEOF 19157 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 19158 rm -f $tmp/in 19159 mv $tmp/out $tmp/in 19160' >>$CONFIG_STATUS 19161 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 19162 rm -f conftest.undefs 19163 mv conftest.tail conftest.undefs 19164done 19165rm -f conftest.undefs 19166 19167cat >>$CONFIG_STATUS <<\_ACEOF 19168 # Let's still pretend it is `configure' which instantiates (i.e., don't 19169 # use $as_me), people would be surprised to read: 19170 # /* config.h. Generated by config.status. */ 19171 if test x"$ac_file" = x-; then 19172 echo "/* Generated by configure. */" >$tmp/config.h 19173 else 19174 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 19175 fi 19176 cat $tmp/in >>$tmp/config.h 19177 rm -f $tmp/in 19178 if test x"$ac_file" != x-; then 19179 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 19180 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19181echo "$as_me: $ac_file is unchanged" >&6;} 19182 else 19183 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19185 X"$ac_file" : 'X\(//\)[^/]' \| \ 19186 X"$ac_file" : 'X\(//\)$' \| \ 19187 X"$ac_file" : 'X\(/\)' \| \ 19188 . : '\(.\)' 2>/dev/null || 19189echo X"$ac_file" | 19190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19191 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19192 /^X\(\/\/\)$/{ s//\1/; q; } 19193 /^X\(\/\).*/{ s//\1/; q; } 19194 s/.*/./; q'` 19195 { if $as_mkdir_p; then 19196 mkdir -p "$ac_dir" 19197 else 19198 as_dir="$ac_dir" 19199 as_dirs= 19200 while test ! -d "$as_dir"; do 19201 as_dirs="$as_dir $as_dirs" 19202 as_dir=`(dirname "$as_dir") 2>/dev/null || 19203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19204 X"$as_dir" : 'X\(//\)[^/]' \| \ 19205 X"$as_dir" : 'X\(//\)$' \| \ 19206 X"$as_dir" : 'X\(/\)' \| \ 19207 . : '\(.\)' 2>/dev/null || 19208echo X"$as_dir" | 19209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19210 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19211 /^X\(\/\/\)$/{ s//\1/; q; } 19212 /^X\(\/\).*/{ s//\1/; q; } 19213 s/.*/./; q'` 19214 done 19215 test ! -n "$as_dirs" || mkdir $as_dirs 19216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19218 { (exit 1); exit 1; }; }; } 19219 19220 rm -f $ac_file 19221 mv $tmp/config.h $ac_file 19222 fi 19223 else 19224 cat $tmp/config.h 19225 rm -f $tmp/config.h 19226 fi 19227 # Run the commands associated with the file. 19228 case $ac_file in 19229 protomol_config.h ) # update the timestamp 19230echo 'timestamp for protomol_config.h' >"./stamp-h1" 19231 ;; 19232 esac 19233done 19234_ACEOF 19235cat >>$CONFIG_STATUS <<\_ACEOF 19236 19237# 19238# CONFIG_COMMANDS section. 19239# 19240for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 19241 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 19242 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 19243 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 19244$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19245 X"$ac_dest" : 'X\(//\)[^/]' \| \ 19246 X"$ac_dest" : 'X\(//\)$' \| \ 19247 X"$ac_dest" : 'X\(/\)' \| \ 19248 . : '\(.\)' 2>/dev/null || 19249echo X"$ac_dest" | 19250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19251 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19252 /^X\(\/\/\)$/{ s//\1/; q; } 19253 /^X\(\/\).*/{ s//\1/; q; } 19254 s/.*/./; q'` 19255 ac_builddir=. 19256 19257if test "$ac_dir" != .; then 19258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19259 # A "../" for each directory in $ac_dir_suffix. 19260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19261else 19262 ac_dir_suffix= ac_top_builddir= 19263fi 19264 19265case $srcdir in 19266 .) # No --srcdir option. We are building in place. 19267 ac_srcdir=. 19268 if test -z "$ac_top_builddir"; then 19269 ac_top_srcdir=. 19270 else 19271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19272 fi ;; 19273 [\\/]* | ?:[\\/]* ) # Absolute path. 19274 ac_srcdir=$srcdir$ac_dir_suffix; 19275 ac_top_srcdir=$srcdir ;; 19276 *) # Relative path. 19277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19278 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19279esac 19280# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 19281# absolute. 19282ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 19283ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 19284ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 19285ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 19286 19287 19288 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 19289echo "$as_me: executing $ac_dest commands" >&6;} 19290 case $ac_dest in 19291 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 19292 # Strip MF so we end up with the name of the file. 19293 mf=`echo "$mf" | sed -e 's/:.*$//'` 19294 # Check whether this is an Automake generated Makefile or not. 19295 # We used to match only the files named `Makefile.in', but 19296 # some people rename them; so instead we look at the file content. 19297 # Grep'ing the first line is not enough: some people post-process 19298 # each Makefile.in and add a new line on top of each file to say so. 19299 # So let's grep whole file. 19300 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 19301 dirpart=`(dirname "$mf") 2>/dev/null || 19302$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19303 X"$mf" : 'X\(//\)[^/]' \| \ 19304 X"$mf" : 'X\(//\)$' \| \ 19305 X"$mf" : 'X\(/\)' \| \ 19306 . : '\(.\)' 2>/dev/null || 19307echo X"$mf" | 19308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19309 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19310 /^X\(\/\/\)$/{ s//\1/; q; } 19311 /^X\(\/\).*/{ s//\1/; q; } 19312 s/.*/./; q'` 19313 else 19314 continue 19315 fi 19316 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 19317 # Extract the definition of DEP_FILES from the Makefile without 19318 # running `make'. 19319 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 19320 test -z "$DEPDIR" && continue 19321 # When using ansi2knr, U may be empty or an underscore; expand it 19322 U=`sed -n -e '/^U = / s///p' < "$mf"` 19323 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 19324 # We invoke sed twice because it is the simplest approach to 19325 # changing $(DEPDIR) to its actual value in the expansion. 19326 for file in `sed -n -e ' 19327 /^DEP_FILES = .*\\\\$/ { 19328 s/^DEP_FILES = // 19329 :loop 19330 s/\\\\$// 19331 p 19332 n 19333 /\\\\$/ b loop 19334 p 19335 } 19336 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 19337 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19338 # Make sure the directory exists. 19339 test -f "$dirpart/$file" && continue 19340 fdir=`(dirname "$file") 2>/dev/null || 19341$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19342 X"$file" : 'X\(//\)[^/]' \| \ 19343 X"$file" : 'X\(//\)$' \| \ 19344 X"$file" : 'X\(/\)' \| \ 19345 . : '\(.\)' 2>/dev/null || 19346echo X"$file" | 19347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19348 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19349 /^X\(\/\/\)$/{ s//\1/; q; } 19350 /^X\(\/\).*/{ s//\1/; q; } 19351 s/.*/./; q'` 19352 { if $as_mkdir_p; then 19353 mkdir -p $dirpart/$fdir 19354 else 19355 as_dir=$dirpart/$fdir 19356 as_dirs= 19357 while test ! -d "$as_dir"; do 19358 as_dirs="$as_dir $as_dirs" 19359 as_dir=`(dirname "$as_dir") 2>/dev/null || 19360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19361 X"$as_dir" : 'X\(//\)[^/]' \| \ 19362 X"$as_dir" : 'X\(//\)$' \| \ 19363 X"$as_dir" : 'X\(/\)' \| \ 19364 . : '\(.\)' 2>/dev/null || 19365echo X"$as_dir" | 19366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19367 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19368 /^X\(\/\/\)$/{ s//\1/; q; } 19369 /^X\(\/\).*/{ s//\1/; q; } 19370 s/.*/./; q'` 19371 done 19372 test ! -n "$as_dirs" || mkdir $as_dirs 19373 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 19374echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 19375 { (exit 1); exit 1; }; }; } 19376 19377 # echo "creating $dirpart/$file" 19378 echo '# dummy' > "$dirpart/$file" 19379 done 19380done 19381 ;; 19382 esac 19383done 19384_ACEOF 19385 19386cat >>$CONFIG_STATUS <<\_ACEOF 19387 19388{ (exit 0); exit 0; } 19389_ACEOF 19390chmod +x $CONFIG_STATUS 19391ac_clean_files=$ac_clean_files_save 19392 19393 19394# configure is writing to config.log, and then calls config.status. 19395# config.status does its own redirection, appending to config.log. 19396# Unfortunately, on DOS this fails, as config.log is still kept open 19397# by configure, so config.status won't be able to write to it; its 19398# output is simply discarded. So we exec the FD to /dev/null, 19399# effectively closing config.log, so it can be properly (re)opened and 19400# appended to by config.status. When coming back to configure, we 19401# need to make the FD available again. 19402if test "$no_create" != yes; then 19403 ac_cs_success=: 19404 ac_config_status_args= 19405 test "$silent" = yes && 19406 ac_config_status_args="$ac_config_status_args --quiet" 19407 exec 5>/dev/null 19408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19409 exec 5>>config.log 19410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19411 # would make configure fail if this is the last instruction. 19412 $ac_cs_success || { (exit 1); exit 1; } 19413fi 19414 19415 19416 19417echo "" 19418echo "CC : $CC" 19419echo "CFLAGS : $CFLAGS" 19420echo "CXXFLAGS : $CXXFLAGS" 19421echo "CXX : $CXX" 19422echo "CXXCPP : $CXXCPP" 19423echo "LIBS : $LIBS" 19424echo "CPP : $CPP" 19425echo "CPPFLAGS : $CPPFLAGS" 19426echo "" 19427echo "make clean; make" 19428 19429