| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.59. |
| 4 |
# |
| 5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 |
# This configure script is free software; the Free Software Foundation |
| 7 |
# gives unlimited permission to copy, distribute and modify it. |
| 8 |
## --------------------- ## |
| 9 |
## M4sh Initialization. ## |
| 10 |
## --------------------- ## |
| 11 |
|
| 12 |
# Be Bourne compatible |
| 13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 |
emulate sh |
| 15 |
NULLCMD=: |
| 16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 |
# is contrary to our usage. Disable this feature. |
| 18 |
alias -g '${1+"$@"}'='"$@"' |
| 19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 |
set -o posix |
| 21 |
fi |
| 22 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 23 |
|
| 24 |
# Support unset when possible. |
| 25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 |
as_unset=unset |
| 27 |
else |
| 28 |
as_unset=false |
| 29 |
fi |
| 30 |
|
| 31 |
|
| 32 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 33 |
$as_unset ENV MAIL MAILPATH |
| 34 |
PS1='$ ' |
| 35 |
PS2='> ' |
| 36 |
PS4='+ ' |
| 37 |
|
| 38 |
# NLS nuisances. |
| 39 |
for as_var in \ |
| 40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 |
LC_TELEPHONE LC_TIME |
| 43 |
do |
| 44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 |
eval $as_var=C; export $as_var |
| 46 |
else |
| 47 |
$as_unset $as_var |
| 48 |
fi |
| 49 |
done |
| 50 |
|
| 51 |
# Required to use basename. |
| 52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 |
as_expr=expr |
| 54 |
else |
| 55 |
as_expr=false |
| 56 |
fi |
| 57 |
|
| 58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 |
as_basename=basename |
| 60 |
else |
| 61 |
as_basename=false |
| 62 |
fi |
| 63 |
|
| 64 |
|
| 65 |
# Name of the executable. |
| 66 |
as_me=`$as_basename "$0" || |
| 67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 |
X"$0" : 'X\(//\)$' \| \ |
| 69 |
X"$0" : 'X\(/\)$' \| \ |
| 70 |
. : '\(.\)' 2>/dev/null || |
| 71 |
echo X/"$0" | |
| 72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 75 |
s/.*/./; q'` |
| 76 |
|
| 77 |
|
| 78 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 79 |
# Avoid depending upon Character Ranges. |
| 80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 |
as_cr_digits='0123456789' |
| 84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 |
|
| 86 |
# The user is always right. |
| 87 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 88 |
echo "#! /bin/sh" >conf$$.sh |
| 89 |
echo "exit 0" >>conf$$.sh |
| 90 |
chmod +x conf$$.sh |
| 91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 |
PATH_SEPARATOR=';' |
| 93 |
else |
| 94 |
PATH_SEPARATOR=: |
| 95 |
fi |
| 96 |
rm -f conf$$.sh |
| 97 |
fi |
| 98 |
|
| 99 |
|
| 100 |
as_lineno_1=$LINENO |
| 101 |
as_lineno_2=$LINENO |
| 102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 |
# Find who we are. Look in the path if we contain no path at all |
| 106 |
# relative or not. |
| 107 |
case $0 in |
| 108 |
*[\\/]* ) as_myself=$0 ;; |
| 109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 |
for as_dir in $PATH |
| 111 |
do |
| 112 |
IFS=$as_save_IFS |
| 113 |
test -z "$as_dir" && as_dir=. |
| 114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 |
done |
| 116 |
|
| 117 |
;; |
| 118 |
esac |
| 119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 |
# in which case we are not to be found in the path. |
| 121 |
if test "x$as_myself" = x; then |
| 122 |
as_myself=$0 |
| 123 |
fi |
| 124 |
if test ! -f "$as_myself"; then |
| 125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 |
{ (exit 1); exit 1; }; } |
| 127 |
fi |
| 128 |
case $CONFIG_SHELL in |
| 129 |
'') |
| 130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 |
do |
| 133 |
IFS=$as_save_IFS |
| 134 |
test -z "$as_dir" && as_dir=. |
| 135 |
for as_base in sh bash ksh sh5; do |
| 136 |
case $as_dir in |
| 137 |
/*) |
| 138 |
if ("$as_dir/$as_base" -c ' |
| 139 |
as_lineno_1=$LINENO |
| 140 |
as_lineno_2=$LINENO |
| 141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 |
CONFIG_SHELL=$as_dir/$as_base |
| 147 |
export CONFIG_SHELL |
| 148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 |
fi;; |
| 150 |
esac |
| 151 |
done |
| 152 |
done |
| 153 |
;; |
| 154 |
esac |
| 155 |
|
| 156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 158 |
# line-number line before each line; the second 'sed' does the real |
| 159 |
# work. The second script uses 'N' to pair each line-number line |
| 160 |
# with the numbered line, and appends trailing '-' during |
| 161 |
# substitution so that $LINENO is not a special case at line end. |
| 162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 |
sed '=' <$as_myself | |
| 165 |
sed ' |
| 166 |
N |
| 167 |
s,$,-, |
| 168 |
: loop |
| 169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 |
t loop |
| 171 |
s,-$,, |
| 172 |
s,^['$as_cr_digits']*\n,, |
| 173 |
' >$as_me.lineno && |
| 174 |
chmod +x $as_me.lineno || |
| 175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 |
{ (exit 1); exit 1; }; } |
| 177 |
|
| 178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 179 |
# (the dirname of $[0] is not the place where we might find the |
| 180 |
# original and so on. Autoconf is especially sensible to this). |
| 181 |
. ./$as_me.lineno |
| 182 |
# Exit status is that of the last command. |
| 183 |
exit |
| 184 |
} |
| 185 |
|
| 186 |
|
| 187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 189 |
' ECHO_T=' ' ;; |
| 190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 |
esac |
| 193 |
|
| 194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 |
as_expr=expr |
| 196 |
else |
| 197 |
as_expr=false |
| 198 |
fi |
| 199 |
|
| 200 |
rm -f conf$$ conf$$.exe conf$$.file |
| 201 |
echo >conf$$.file |
| 202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 |
if test -f conf$$.exe; then |
| 206 |
# Don't use ln at all; we don't have any links |
| 207 |
as_ln_s='cp -p' |
| 208 |
else |
| 209 |
as_ln_s='ln -s' |
| 210 |
fi |
| 211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 |
as_ln_s=ln |
| 213 |
else |
| 214 |
as_ln_s='cp -p' |
| 215 |
fi |
| 216 |
rm -f conf$$ conf$$.exe conf$$.file |
| 217 |
|
| 218 |
if mkdir -p . 2>/dev/null; then |
| 219 |
as_mkdir_p=: |
| 220 |
else |
| 221 |
test -d ./-p && rmdir ./-p |
| 222 |
as_mkdir_p=false |
| 223 |
fi |
| 224 |
|
| 225 |
as_executable_p="test -f" |
| 226 |
|
| 227 |
# Sed expression to map a string onto a valid CPP name. |
| 228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 |
|
| 230 |
# Sed expression to map a string onto a valid variable name. |
| 231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 |
|
| 233 |
|
| 234 |
# IFS |
| 235 |
# We need space, tab and new line, in precisely that order. |
| 236 |
as_nl=' |
| 237 |
' |
| 238 |
IFS=" $as_nl" |
| 239 |
|
| 240 |
# CDPATH. |
| 241 |
$as_unset CDPATH |
| 242 |
|
| 243 |
|
| 244 |
# Name of the host. |
| 245 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 |
# so uname gets run too. |
| 247 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 |
|
| 249 |
exec 6>&1 |
| 250 |
|
| 251 |
# |
| 252 |
# Initializations. |
| 253 |
# |
| 254 |
ac_default_prefix=/usr/local |
| 255 |
ac_config_libobj_dir=. |
| 256 |
cross_compiling=no |
| 257 |
subdirs= |
| 258 |
MFLAGS= |
| 259 |
MAKEFLAGS= |
| 260 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 |
|
| 262 |
# Maximum number of lines to put in a shell here document. |
| 263 |
# This variable seems obsolete. It should probably be removed, and |
| 264 |
# only ac_max_sed_lines should be used. |
| 265 |
: ${ac_max_here_lines=38} |
| 266 |
|
| 267 |
# Identity of this package. |
| 268 |
PACKAGE_NAME= |
| 269 |
PACKAGE_TARNAME= |
| 270 |
PACKAGE_VERSION= |
| 271 |
PACKAGE_STRING= |
| 272 |
PACKAGE_BUGREPORT= |
| 273 |
|
| 274 |
ac_unique_file="../generic/compiler/ascParse.y" |
| 275 |
# Factoring default headers for most tests. |
| 276 |
ac_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 |
|
| 312 |
ac_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 RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT asc_cc1 asc_cc2 asc_cc3 CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT TCL_LIB TCL_HDR TK_LIB TK_HDR TKTABLE_LIB F77 BLASLIB LPAKLIB LSODLIB ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX ASC_TK_LIBRARY ASC_TCL_LIBRARY HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LIBOBJS LTLIBOBJS' |
| 313 |
ac_subst_files='' |
| 314 |
|
| 315 |
# Initialize some variables set by options. |
| 316 |
ac_init_help= |
| 317 |
ac_init_version=false |
| 318 |
# The variables have the same names as the options, with |
| 319 |
# dashes changed to underlines. |
| 320 |
cache_file=/dev/null |
| 321 |
exec_prefix=NONE |
| 322 |
no_create= |
| 323 |
no_recursion= |
| 324 |
prefix=NONE |
| 325 |
program_prefix=NONE |
| 326 |
program_suffix=NONE |
| 327 |
program_transform_name=s,x,x, |
| 328 |
silent= |
| 329 |
site= |
| 330 |
srcdir= |
| 331 |
verbose= |
| 332 |
x_includes=NONE |
| 333 |
x_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. |
| 340 |
bindir='${exec_prefix}/bin' |
| 341 |
sbindir='${exec_prefix}/sbin' |
| 342 |
libexecdir='${exec_prefix}/libexec' |
| 343 |
datadir='${prefix}/share' |
| 344 |
sysconfdir='${prefix}/etc' |
| 345 |
sharedstatedir='${prefix}/com' |
| 346 |
localstatedir='${prefix}/var' |
| 347 |
libdir='${exec_prefix}/lib' |
| 348 |
includedir='${prefix}/include' |
| 349 |
oldincludedir='/usr/include' |
| 350 |
infodir='${prefix}/info' |
| 351 |
mandir='${prefix}/man' |
| 352 |
|
| 353 |
ac_prev= |
| 354 |
for ac_option |
| 355 |
do |
| 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 |
| 627 |
Try \`$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 |
| 650 |
done |
| 651 |
|
| 652 |
if 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; }; } |
| 656 |
fi |
| 657 |
|
| 658 |
# Be sure to have absolute paths. |
| 659 |
for ac_var in exec_prefix prefix |
| 660 |
do |
| 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 |
| 667 |
done |
| 668 |
|
| 669 |
# Be sure to have absolute paths. |
| 670 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 |
localstatedir libdir includedir oldincludedir infodir mandir |
| 672 |
do |
| 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 |
| 679 |
done |
| 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. |
| 684 |
build=$build_alias |
| 685 |
host=$host_alias |
| 686 |
target=$target_alias |
| 687 |
|
| 688 |
# FIXME: To remove some day. |
| 689 |
if 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 |
| 697 |
fi |
| 698 |
|
| 699 |
ac_tool_prefix= |
| 700 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 |
|
| 702 |
test "$silent" = yes && exec 6>/dev/null |
| 703 |
|
| 704 |
|
| 705 |
# Find the source files, if location was not specified. |
| 706 |
if 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 || |
| 715 |
echo 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 |
| 725 |
else |
| 726 |
ac_srcdir_defaulted=no |
| 727 |
fi |
| 728 |
if 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 |
| 736 |
fi |
| 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; }; } |
| 740 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 |
ac_env_build_alias_set=${build_alias+set} |
| 742 |
ac_env_build_alias_value=$build_alias |
| 743 |
ac_cv_env_build_alias_set=${build_alias+set} |
| 744 |
ac_cv_env_build_alias_value=$build_alias |
| 745 |
ac_env_host_alias_set=${host_alias+set} |
| 746 |
ac_env_host_alias_value=$host_alias |
| 747 |
ac_cv_env_host_alias_set=${host_alias+set} |
| 748 |
ac_cv_env_host_alias_value=$host_alias |
| 749 |
ac_env_target_alias_set=${target_alias+set} |
| 750 |
ac_env_target_alias_value=$target_alias |
| 751 |
ac_cv_env_target_alias_set=${target_alias+set} |
| 752 |
ac_cv_env_target_alias_value=$target_alias |
| 753 |
ac_env_CC_set=${CC+set} |
| 754 |
ac_env_CC_value=$CC |
| 755 |
ac_cv_env_CC_set=${CC+set} |
| 756 |
ac_cv_env_CC_value=$CC |
| 757 |
ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 |
ac_env_CFLAGS_value=$CFLAGS |
| 759 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 |
ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 |
ac_env_LDFLAGS_value=$LDFLAGS |
| 763 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 |
ac_env_CPP_set=${CPP+set} |
| 770 |
ac_env_CPP_value=$CPP |
| 771 |
ac_cv_env_CPP_set=${CPP+set} |
| 772 |
ac_cv_env_CPP_value=$CPP |
| 773 |
|
| 774 |
# |
| 775 |
# Report the --help message. |
| 776 |
# |
| 777 |
if test "$ac_init_help" = "long"; then |
| 778 |
# Omit some internal or obsolete options to make the list less imposing. |
| 779 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 780 |
cat <<_ACEOF |
| 781 |
\`configure' configures this package to adapt to many kinds of systems. |
| 782 |
|
| 783 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 |
|
| 785 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 |
|
| 788 |
Defaults for the options are specified in brackets. |
| 789 |
|
| 790 |
Configuration: |
| 791 |
-h, --help display this help and exit |
| 792 |
--help=short display options specific to this package |
| 793 |
--help=recursive display the short help of all the included packages |
| 794 |
-V, --version display version information and exit |
| 795 |
-q, --quiet, --silent do not print \`checking...' messages |
| 796 |
--cache-file=FILE cache test results in FILE [disabled] |
| 797 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 798 |
-n, --no-create do not create output files |
| 799 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 |
|
| 801 |
_ACEOF |
| 802 |
|
| 803 |
cat <<_ACEOF |
| 804 |
Installation directories: |
| 805 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 806 |
[$ac_default_prefix] |
| 807 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 |
[PREFIX] |
| 809 |
|
| 810 |
By default, \`make install' will install all the files in |
| 811 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 |
for instance \`--prefix=\$HOME'. |
| 814 |
|
| 815 |
For better control, use the options below. |
| 816 |
|
| 817 |
Fine tuning of the installation directories: |
| 818 |
--bindir=DIR user executables [EPREFIX/bin] |
| 819 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 826 |
--includedir=DIR C header files [PREFIX/include] |
| 827 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 |
--infodir=DIR info documentation [PREFIX/info] |
| 829 |
--mandir=DIR man documentation [PREFIX/man] |
| 830 |
_ACEOF |
| 831 |
|
| 832 |
cat <<\_ACEOF |
| 833 |
|
| 834 |
X features: |
| 835 |
--x-includes=DIR X include files are in DIR |
| 836 |
--x-libraries=DIR X library files are in DIR |
| 837 |
|
| 838 |
System types: |
| 839 |
--build=BUILD configure for building on BUILD [guessed] |
| 840 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 841 |
_ACEOF |
| 842 |
fi |
| 843 |
|
| 844 |
if test -n "$ac_init_help"; then |
| 845 |
|
| 846 |
cat <<\_ACEOF |
| 847 |
|
| 848 |
Optional Features: |
| 849 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 850 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 851 |
|
| 852 |
ASCEND specific options |
| 853 |
|
| 854 |
Compiler options: |
| 855 |
--enable-gcc allow use of gcc if avaiable |
| 856 |
--enable-optimization optimize the C code while building ascend |
| 857 |
|
| 858 |
Optional Packages: |
| 859 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 860 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 861 |
--with-x use the X Window System |
| 862 |
Location of Tcl, Tk, and tkTable: |
| 863 |
--with-tcl=LIBRARY,HEADER |
| 864 |
The location of the Tcl8.0 library and/or header |
| 865 |
For a static Tcl8.0 library, give the full path: |
| 866 |
--with-tcl='/usr/local/lib/libtcl8.0.a' |
| 867 |
For a dynamic library, give any -L options required: |
| 868 |
--with-tcl='-L/usr/local/lib -ltcl8.0' |
| 869 |
To specify only the header, leave off the library: |
| 870 |
--with-tcl=',/usr/local/include/tcl.h' |
| 871 |
--with-tk=LIBRARY,HEADER |
| 872 |
The location of the Tk8.0 library and/or header |
| 873 |
For a static Tk8.0 library, give the full path: |
| 874 |
--with-tk='/usr/local/lib/libtk8.3.a' |
| 875 |
For a dynamic library, give any -L options required: |
| 876 |
--with-tk='-L/usr/local/lib -ltk8.3' |
| 877 |
To specify only the header, leave off the library: |
| 878 |
--with-tk=',/usr/local/include/tk.h' |
| 879 |
--with-tktable=TKTABLE full path to a TkTable1.3 static library |
| 880 |
--with-wish=/path/to/bin/wish |
| 881 |
The location of the wish shell executable matching |
| 882 |
the tcl/tk given by --with-tk and --with-tcl. |
| 883 |
X11 must be running during configure. |
| 884 |
Fortran compiler and libraries: |
| 885 |
--with-fortran=F77,F77LIBS |
| 886 |
The location of your Fortran compiler and its |
| 887 |
library files. For example, under SunOS: |
| 888 |
--with-fortran='f77,-L/usr/lang/lib -lF77 -lM77' |
| 889 |
To specify only the compiler or libraries, leave off |
| 890 |
whatever is not needed: |
| 891 |
--with-fortran=',-L/usr/lang/lib -lF77 -lM77' |
| 892 |
Use '--without-fortran' to not link against |
| 893 |
any Fortran libraries |
| 894 |
--with-blas=BLASLIB The full path to the blas library. |
| 895 |
Use '--with-blas=build' to build the blas library |
| 896 |
from the sources that come with the distribution. |
| 897 |
--with-linpack=LPAKLIB The full path to the linpack library. |
| 898 |
Use '--with-linpack=build' to build the library |
| 899 |
from the sources that come with the distribution. |
| 900 |
--with-lsod=LSODLIB The full path to the lsod library. |
| 901 |
Use '--with-lsod=build' to build the lsod library |
| 902 |
from the sources that come with the distribution. |
| 903 |
Generation of Makefiles: |
| 904 |
--without-tkdir do not generate Makefiles in the TK subdir |
| 905 |
--without-models do not generate Makefiles in the models subdir |
| 906 |
|
| 907 |
Some influential environment variables: |
| 908 |
CC C compiler command |
| 909 |
CFLAGS C compiler flags |
| 910 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 911 |
nonstandard directory <lib dir> |
| 912 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 913 |
headers in a nonstandard directory <include dir> |
| 914 |
CPP C preprocessor |
| 915 |
|
| 916 |
Use these variables to override the choices made by `configure' or to help |
| 917 |
it to find libraries and programs with nonstandard names/locations. |
| 918 |
|
| 919 |
_ACEOF |
| 920 |
fi |
| 921 |
|
| 922 |
if test "$ac_init_help" = "recursive"; then |
| 923 |
# If there are subdirs, report their specific --help. |
| 924 |
ac_popdir=`pwd` |
| 925 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 926 |
test -d $ac_dir || continue |
| 927 |
ac_builddir=. |
| 928 |
|
| 929 |
if test "$ac_dir" != .; then |
| 930 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 931 |
# A "../" for each directory in $ac_dir_suffix. |
| 932 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 933 |
else |
| 934 |
ac_dir_suffix= ac_top_builddir= |
| 935 |
fi |
| 936 |
|
| 937 |
case $srcdir in |
| 938 |
.) # No --srcdir option. We are building in place. |
| 939 |
ac_srcdir=. |
| 940 |
if test -z "$ac_top_builddir"; then |
| 941 |
ac_top_srcdir=. |
| 942 |
else |
| 943 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 944 |
fi ;; |
| 945 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 946 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 947 |
ac_top_srcdir=$srcdir ;; |
| 948 |
*) # Relative path. |
| 949 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 950 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 951 |
esac |
| 952 |
|
| 953 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 954 |
# the directories may not exist. |
| 955 |
case `pwd` in |
| 956 |
.) ac_abs_builddir="$ac_dir";; |
| 957 |
*) |
| 958 |
case "$ac_dir" in |
| 959 |
.) ac_abs_builddir=`pwd`;; |
| 960 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 961 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 962 |
esac;; |
| 963 |
esac |
| 964 |
case $ac_abs_builddir in |
| 965 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 966 |
*) |
| 967 |
case ${ac_top_builddir}. in |
| 968 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 969 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 970 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 971 |
esac;; |
| 972 |
esac |
| 973 |
case $ac_abs_builddir in |
| 974 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 975 |
*) |
| 976 |
case $ac_srcdir in |
| 977 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 978 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 979 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 980 |
esac;; |
| 981 |
esac |
| 982 |
case $ac_abs_builddir in |
| 983 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 984 |
*) |
| 985 |
case $ac_top_srcdir in |
| 986 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 987 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 988 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 989 |
esac;; |
| 990 |
esac |
| 991 |
|
| 992 |
cd $ac_dir |
| 993 |
# Check for guested configure; otherwise get Cygnus style configure. |
| 994 |
if test -f $ac_srcdir/configure.gnu; then |
| 995 |
echo |
| 996 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
| 997 |
elif test -f $ac_srcdir/configure; then |
| 998 |
echo |
| 999 |
$SHELL $ac_srcdir/configure --help=recursive |
| 1000 |
elif test -f $ac_srcdir/configure.ac || |
| 1001 |
test -f $ac_srcdir/configure.in; then |
| 1002 |
echo |
| 1003 |
$ac_configure --help |
| 1004 |
else |
| 1005 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1006 |
fi |
| 1007 |
cd $ac_popdir |
| 1008 |
done |
| 1009 |
fi |
| 1010 |
|
| 1011 |
test -n "$ac_init_help" && exit 0 |
| 1012 |
if $ac_init_version; then |
| 1013 |
cat <<\_ACEOF |
| 1014 |
|
| 1015 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 1016 |
This configure script is free software; the Free Software Foundation |
| 1017 |
gives unlimited permission to copy, distribute and modify it. |
| 1018 |
_ACEOF |
| 1019 |
exit 0 |
| 1020 |
fi |
| 1021 |
exec 5>config.log |
| 1022 |
cat >&5 <<_ACEOF |
| 1023 |
This file contains any messages produced by compilers while |
| 1024 |
running configure, to aid debugging if configure makes a mistake. |
| 1025 |
|
| 1026 |
It was created by $as_me, which was |
| 1027 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 1028 |
|
| 1029 |
$ $0 $@ |
| 1030 |
|
| 1031 |
_ACEOF |
| 1032 |
{ |
| 1033 |
cat <<_ASUNAME |
| 1034 |
## --------- ## |
| 1035 |
## Platform. ## |
| 1036 |
## --------- ## |
| 1037 |
|
| 1038 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1039 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1040 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1041 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1042 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1043 |
|
| 1044 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1045 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1046 |
|
| 1047 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1048 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1049 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1050 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1051 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1052 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1053 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1054 |
|
| 1055 |
_ASUNAME |
| 1056 |
|
| 1057 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1058 |
for as_dir in $PATH |
| 1059 |
do |
| 1060 |
IFS=$as_save_IFS |
| 1061 |
test -z "$as_dir" && as_dir=. |
| 1062 |
echo "PATH: $as_dir" |
| 1063 |
done |
| 1064 |
|
| 1065 |
} >&5 |
| 1066 |
|
| 1067 |
cat >&5 <<_ACEOF |
| 1068 |
|
| 1069 |
|
| 1070 |
## ----------- ## |
| 1071 |
## Core tests. ## |
| 1072 |
## ----------- ## |
| 1073 |
|
| 1074 |
_ACEOF |
| 1075 |
|
| 1076 |
|
| 1077 |
# Keep a trace of the command line. |
| 1078 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 1079 |
# Strip out --silent because we don't want to record it for future runs. |
| 1080 |
# Also quote any args containing shell meta-characters. |
| 1081 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 1082 |
ac_configure_args= |
| 1083 |
ac_configure_args0= |
| 1084 |
ac_configure_args1= |
| 1085 |
ac_sep= |
| 1086 |
ac_must_keep_next=false |
| 1087 |
for ac_pass in 1 2 |
| 1088 |
do |
| 1089 |
for ac_arg |
| 1090 |
do |
| 1091 |
case $ac_arg in |
| 1092 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1093 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1094 |
| -silent | --silent | --silen | --sile | --sil) |
| 1095 |
continue ;; |
| 1096 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1097 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1098 |
esac |
| 1099 |
case $ac_pass in |
| 1100 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1101 |
2) |
| 1102 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1103 |
if test $ac_must_keep_next = true; then |
| 1104 |
ac_must_keep_next=false # Got value, back to normal. |
| 1105 |
else |
| 1106 |
case $ac_arg in |
| 1107 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1108 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1109 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1110 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1111 |
case "$ac_configure_args0 " in |
| 1112 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1113 |
esac |
| 1114 |
;; |
| 1115 |
-* ) ac_must_keep_next=true ;; |
| 1116 |
esac |
| 1117 |
fi |
| 1118 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1119 |
# Get rid of the leading space. |
| 1120 |
ac_sep=" " |
| 1121 |
;; |
| 1122 |
esac |
| 1123 |
done |
| 1124 |
done |
| 1125 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1126 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1127 |
|
| 1128 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1129 |
# config.log. We remove comments because anyway the quotes in there |
| 1130 |
# would cause problems or look ugly. |
| 1131 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
| 1132 |
# such as our DU 5.0 friend, will then `close' the trap. |
| 1133 |
trap 'exit_status=$? |
| 1134 |
# Save into config.log some information that might help in debugging. |
| 1135 |
{ |
| 1136 |
echo |
| 1137 |
|
| 1138 |
cat <<\_ASBOX |
| 1139 |
## ---------------- ## |
| 1140 |
## Cache variables. ## |
| 1141 |
## ---------------- ## |
| 1142 |
_ASBOX |
| 1143 |
echo |
| 1144 |
# The following way of writing the cache mishandles newlines in values, |
| 1145 |
{ |
| 1146 |
(set) 2>&1 | |
| 1147 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1148 |
*ac_space=\ *) |
| 1149 |
sed -n \ |
| 1150 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1151 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1152 |
;; |
| 1153 |
*) |
| 1154 |
sed -n \ |
| 1155 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1156 |
;; |
| 1157 |
esac; |
| 1158 |
} |
| 1159 |
echo |
| 1160 |
|
| 1161 |
cat <<\_ASBOX |
| 1162 |
## ----------------- ## |
| 1163 |
## Output variables. ## |
| 1164 |
## ----------------- ## |
| 1165 |
_ASBOX |
| 1166 |
echo |
| 1167 |
for ac_var in $ac_subst_vars |
| 1168 |
do |
| 1169 |
eval ac_val=$`echo $ac_var` |
| 1170 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1171 |
done | sort |
| 1172 |
echo |
| 1173 |
|
| 1174 |
if test -n "$ac_subst_files"; then |
| 1175 |
cat <<\_ASBOX |
| 1176 |
## ------------- ## |
| 1177 |
## Output files. ## |
| 1178 |
## ------------- ## |
| 1179 |
_ASBOX |
| 1180 |
echo |
| 1181 |
for ac_var in $ac_subst_files |
| 1182 |
do |
| 1183 |
eval ac_val=$`echo $ac_var` |
| 1184 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1185 |
done | sort |
| 1186 |
echo |
| 1187 |
fi |
| 1188 |
|
| 1189 |
if test -s confdefs.h; then |
| 1190 |
cat <<\_ASBOX |
| 1191 |
## ----------- ## |
| 1192 |
## confdefs.h. ## |
| 1193 |
## ----------- ## |
| 1194 |
_ASBOX |
| 1195 |
echo |
| 1196 |
sed "/^$/d" confdefs.h | sort |
| 1197 |
echo |
| 1198 |
fi |
| 1199 |
test "$ac_signal" != 0 && |
| 1200 |
echo "$as_me: caught signal $ac_signal" |
| 1201 |
echo "$as_me: exit $exit_status" |
| 1202 |
} >&5 |
| 1203 |
rm -f core *.core && |
| 1204 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1205 |
exit $exit_status |
| 1206 |
' 0 |
| 1207 |
for ac_signal in 1 2 13 15; do |
| 1208 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1209 |
done |
| 1210 |
ac_signal=0 |
| 1211 |
|
| 1212 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1213 |
rm -rf conftest* confdefs.h |
| 1214 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1215 |
echo >confdefs.h |
| 1216 |
|
| 1217 |
# Predefined preprocessor variables. |
| 1218 |
|
| 1219 |
cat >>confdefs.h <<_ACEOF |
| 1220 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 1221 |
_ACEOF |
| 1222 |
|
| 1223 |
|
| 1224 |
cat >>confdefs.h <<_ACEOF |
| 1225 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1226 |
_ACEOF |
| 1227 |
|
| 1228 |
|
| 1229 |
cat >>confdefs.h <<_ACEOF |
| 1230 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1231 |
_ACEOF |
| 1232 |
|
| 1233 |
|
| 1234 |
cat >>confdefs.h <<_ACEOF |
| 1235 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 1236 |
_ACEOF |
| 1237 |
|
| 1238 |
|
| 1239 |
cat >>confdefs.h <<_ACEOF |
| 1240 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1241 |
_ACEOF |
| 1242 |
|
| 1243 |
|
| 1244 |
# Let the site file select an alternate cache file if it wants to. |
| 1245 |
# Prefer explicitly selected file to automatically selected ones. |
| 1246 |
if test -z "$CONFIG_SITE"; then |
| 1247 |
if test "x$prefix" != xNONE; then |
| 1248 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1249 |
else |
| 1250 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1251 |
fi |
| 1252 |
fi |
| 1253 |
for ac_site_file in $CONFIG_SITE; do |
| 1254 |
if test -r "$ac_site_file"; then |
| 1255 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1256 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1257 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1258 |
. "$ac_site_file" |
| 1259 |
fi |
| 1260 |
done |
| 1261 |
|
| 1262 |
|
| 1263 |
# Check that the precious variables saved in the cache have kept the same |
| 1264 |
# value. |
| 1265 |
ac_cache_corrupted=false |
| 1266 |
for ac_var in `(set) 2>&1 | |
| 1267 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1268 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1269 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 1270 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1271 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1272 |
case $ac_old_set,$ac_new_set in |
| 1273 |
set,) |
| 1274 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1275 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1276 |
ac_cache_corrupted=: ;; |
| 1277 |
,set) |
| 1278 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1279 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1280 |
ac_cache_corrupted=: ;; |
| 1281 |
,);; |
| 1282 |
*) |
| 1283 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1284 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1285 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1286 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1287 |
echo "$as_me: former value: $ac_old_val" >&2;} |
| 1288 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1289 |
echo "$as_me: current value: $ac_new_val" >&2;} |
| 1290 |
ac_cache_corrupted=: |
| 1291 |
fi;; |
| 1292 |
esac |
| 1293 |
# Pass precious variables to config.status. |
| 1294 |
if test "$ac_new_set" = set; then |
| 1295 |
case $ac_new_val in |
| 1296 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1297 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1298 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 1299 |
esac |
| 1300 |
case " $ac_configure_args " in |
| 1301 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1302 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1303 |
esac |
| 1304 |
fi |
| 1305 |
done |
| 1306 |
if $ac_cache_corrupted; then |
| 1307 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1308 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1309 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1310 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1311 |
{ (exit 1); exit 1; }; } |
| 1312 |
fi |
| 1313 |
|
| 1314 |
ac_ext=c |
| 1315 |
ac_cpp='$CPP $CPPFLAGS' |
| 1316 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1317 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1318 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1319 |
|
| 1320 |
|
| 1321 |
|
| 1322 |
|
| 1323 |
|
| 1324 |
|
| 1325 |
|
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
|
| 1330 |
|
| 1331 |
|
| 1332 |
|
| 1333 |
|
| 1334 |
|
| 1335 |
|
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
#-------------------------------------------------------------------- |
| 1341 |
# CVS Most Recent Revision Data |
| 1342 |
# Put this data after AC_INIT since we want this information |
| 1343 |
# to also appear in configure and autoconf, when creating |
| 1344 |
# configure, strips all comments that appear in configure.in |
| 1345 |
# before AC_INIT |
| 1346 |
# $Revision: 1.38 $ |
| 1347 |
# $Date: 2003/11/23 19:36:39 $ |
| 1348 |
# $Author: ballan $ |
| 1349 |
# $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $ |
| 1350 |
#-------------------------------------------------------------------- |
| 1351 |
|
| 1352 |
|
| 1353 |
#-------------------------------------------------------------------- |
| 1354 |
# Where configure should look for files it needs. |
| 1355 |
#-------------------------------------------------------------------- |
| 1356 |
ac_aux_dir= |
| 1357 |
for ac_dir in config $srcdir/config; 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 |
| 1371 |
done |
| 1372 |
if test -z "$ac_aux_dir"; then |
| 1373 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
| 1374 |
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
| 1375 |
{ (exit 1); exit 1; }; } |
| 1376 |
fi |
| 1377 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1378 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1379 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1380 |
|
| 1381 |
|
| 1382 |
#-------------------------------------------------------------------- |
| 1383 |
# Set the output variables prefix and exec_prefix that |
| 1384 |
# determine where things will be installed. |
| 1385 |
#-------------------------------------------------------------------- |
| 1386 |
if test "${prefix}" = "NONE"; then |
| 1387 |
prefix=/usr/local |
| 1388 |
fi |
| 1389 |
if test "${exec_prefix}" = "NONE"; then |
| 1390 |
exec_prefix=$prefix |
| 1391 |
fi |
| 1392 |
|
| 1393 |
|
| 1394 |
#-------------------------------------------------------------------- |
| 1395 |
# For the Fortran support libraries and the TCL/TK libraries |
| 1396 |
# and header files, we unfortunately need the full path to |
| 1397 |
# these files. The problem with having the full path is that |
| 1398 |
# if the user moves the source tree, things will break unless |
| 1399 |
# the user re-runs configure. |
| 1400 |
#-------------------------------------------------------------------- |
| 1401 |
|
| 1402 |
#-------------------------------------------------------------------- |
| 1403 |
##AWW |
| 1404 |
##AWW We put the .o files when compiling into a tree structure |
| 1405 |
##AWW relative to the directory in which we currently reside, |
| 1406 |
##AWW while the .c and .h files are in a similar tree structure |
| 1407 |
##AWW relative to the configure instruction we invoke. This |
| 1408 |
##AWW allows one to have separate .o files in their own tree when |
| 1409 |
##AWW compiling for different operating systems. |
| 1410 |
##AWW |
| 1411 |
##AWW Example 1 (same directories) |
| 1412 |
##AWW Current directory one is in: /home/me/trunk/base/unixAC213 |
| 1413 |
##AWW Directory containing configure: /home/me/trunk/base/unixAC213 |
| 1414 |
##AWW Command to invoke configure: ./configure |
| 1415 |
##AWW $ascpwd will be: /home/me/trunk/base/unixAC213 |
| 1416 |
##AWW $srcdir will be: . |
| 1417 |
##AWW |
| 1418 |
##AWW Example 2 (different directories, abs path for command) |
| 1419 |
##AWW Current directory one is in: /home/me/trunk/base/newTree |
| 1420 |
##AWW Directory containing configure: /home/me/trunk/base/unixAC213 |
| 1421 |
##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure |
| 1422 |
##AWW $ascpwd will be: /home/me/trunk/base/newTree |
| 1423 |
##AWW $srcdir will be: /home/me/trunk/base/unixAC213 |
| 1424 |
##AWW |
| 1425 |
##AWW Example 3 (different directories, rel path for command) |
| 1426 |
##AWW Same as Example 2 |
| 1427 |
##AWW Command to invoke configure: ../unixAC213/configure |
| 1428 |
##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2) |
| 1429 |
##AWW $srcdir will be: ../unixAC213 |
| 1430 |
##AWW |
| 1431 |
##AWW Key elements of the source tree are: |
| 1432 |
##AWW code/trunk/trunk/base/unixAC213/configure |
| 1433 |
##AWW code/trunk/trunk/base/generic |
| 1434 |
##AWW code/trunk/tcltk98 |
| 1435 |
##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder |
| 1436 |
##AWW containing "configure" |
| 1437 |
##AWW |
| 1438 |
##AWW Configure is located at: |
| 1439 |
##AWW $srcdir/configure |
| 1440 |
##AWW while the .c/.h files one wants are in: |
| 1441 |
##AWW $srcdir/../generic/compiler |
| 1442 |
##AWW $srcdir/../generic/general |
| 1443 |
##AWW $srcdir/../generic/packages |
| 1444 |
##AWW $srcdir/../generic/solver |
| 1445 |
##AWW $srcdir/../generic/utilities |
| 1446 |
##AWW $srcdir/../../tcltk98/generic/interface |
| 1447 |
##AWW |
| 1448 |
##AWW Each of these directories contain Makefiles and possible |
| 1449 |
##AWW need to find .h files in the other directories. For example |
| 1450 |
##AWW the include statements are always of the form |
| 1451 |
##AWW #include compiler/slv3.h or |
| 1452 |
##AWW #include interface/SlvProc.h |
| 1453 |
##AWW |
| 1454 |
##AWW A safe include path should assume one is a directory with any |
| 1455 |
##AWW of these .h and .c files and one needs to find a .h file in |
| 1456 |
##AWW any other of them. The following paths should do it. |
| 1457 |
##AWW |
| 1458 |
##AWW If in compiler, general, packages, solver, utilities |
| 1459 |
##AWW .. for general, packages, etc |
| 1460 |
##AWW ../../../tcltk98/generic for interface |
| 1461 |
##AWW If in interface |
| 1462 |
##AWW .. for interface |
| 1463 |
##AWW ../../../base/generic for compiler, general, .. |
| 1464 |
##AWW |
| 1465 |
#-------------------------------------------------------------------- |
| 1466 |
# The asc_include variable is (directory) path to the ascend4 |
| 1467 |
# SOURCE directory relative to the immediate subdirectories of |
| 1468 |
# the ascend4 OBJECT directory. --rewrite - not clear. |
| 1469 |
#AWW To compile a new ASCEND executable, one should move into the |
| 1470 |
#AWW directory in which one wants the ASCEND object/executable |
| 1471 |
#AWW to reside (call this objTree) and from there run |
| 1472 |
#AWW ../base/unixAC213/configure. |
| 1473 |
#AWW In the following code asc_include is set to the path from |
| 1474 |
|
| 1475 |
ascpwd=`pwd` |
| 1476 |
fullpathsrcdir=`cd $srcdir ; pwd` |
| 1477 |
|
| 1478 |
case "$srcdir" in |
| 1479 |
.) |
| 1480 |
asc_include="../$srcdir" |
| 1481 |
;; |
| 1482 |
/*) |
| 1483 |
#AWW20041113: asc_include="$srcdir/ascend4" |
| 1484 |
asc_include="$srcdir/../generic" |
| 1485 |
;; |
| 1486 |
*) |
| 1487 |
#AWW20041113: asc_include="../../$srcdir/ascend4" |
| 1488 |
asc_include="$srcdir/../generic" |
| 1489 |
;; |
| 1490 |
esac |
| 1491 |
|
| 1492 |
|
| 1493 |
#-------------------------------------------------------------------- |
| 1494 |
# Do basic checks to determine |
| 1495 |
# * if we have `ranlib' |
| 1496 |
# * if we can create symbolic links |
| 1497 |
# * if `make' sets the MAKE macro |
| 1498 |
# * a bsd-compatible `install' program |
| 1499 |
# If we use the install-sh script that comes with configure, |
| 1500 |
# prefix it with the current directory so it'll work in |
| 1501 |
# subdirectories. Unfortunately, it won't work if the user |
| 1502 |
# moves the source tree. |
| 1503 |
#-------------------------------------------------------------------- |
| 1504 |
if test -n "$ac_tool_prefix"; then |
| 1505 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1506 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1507 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1508 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1509 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 1510 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1511 |
else |
| 1512 |
if test -n "$RANLIB"; then |
| 1513 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1514 |
else |
| 1515 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1516 |
for as_dir in $PATH |
| 1517 |
do |
| 1518 |
IFS=$as_save_IFS |
| 1519 |
test -z "$as_dir" && as_dir=. |
| 1520 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1521 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1522 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1523 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1524 |
break 2 |
| 1525 |
fi |
| 1526 |
done |
| 1527 |
done |
| 1528 |
|
| 1529 |
fi |
| 1530 |
fi |
| 1531 |
RANLIB=$ac_cv_prog_RANLIB |
| 1532 |
if test -n "$RANLIB"; then |
| 1533 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 1534 |
echo "${ECHO_T}$RANLIB" >&6 |
| 1535 |
else |
| 1536 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1537 |
echo "${ECHO_T}no" >&6 |
| 1538 |
fi |
| 1539 |
|
| 1540 |
fi |
| 1541 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 1542 |
ac_ct_RANLIB=$RANLIB |
| 1543 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 1544 |
set dummy ranlib; ac_word=$2 |
| 1545 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1546 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1547 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 1548 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1549 |
else |
| 1550 |
if test -n "$ac_ct_RANLIB"; then |
| 1551 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 1552 |
else |
| 1553 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1554 |
for as_dir in $PATH |
| 1555 |
do |
| 1556 |
IFS=$as_save_IFS |
| 1557 |
test -z "$as_dir" && as_dir=. |
| 1558 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1559 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1560 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 1561 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1562 |
break 2 |
| 1563 |
fi |
| 1564 |
done |
| 1565 |
done |
| 1566 |
|
| 1567 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 1568 |
fi |
| 1569 |
fi |
| 1570 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 1571 |
if test -n "$ac_ct_RANLIB"; then |
| 1572 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 1573 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 1574 |
else |
| 1575 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1576 |
echo "${ECHO_T}no" >&6 |
| 1577 |
fi |
| 1578 |
|
| 1579 |
RANLIB=$ac_ct_RANLIB |
| 1580 |
else |
| 1581 |
RANLIB="$ac_cv_prog_RANLIB" |
| 1582 |
fi |
| 1583 |
|
| 1584 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 1585 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 1586 |
LN_S=$as_ln_s |
| 1587 |
if test "$LN_S" = "ln -s"; then |
| 1588 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 1589 |
echo "${ECHO_T}yes" >&6 |
| 1590 |
else |
| 1591 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 1592 |
echo "${ECHO_T}no, using $LN_S" >&6 |
| 1593 |
fi |
| 1594 |
|
| 1595 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1596 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1597 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1598 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1599 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1600 |
else |
| 1601 |
cat >conftest.make <<\_ACEOF |
| 1602 |
all: |
| 1603 |
@echo 'ac_maketemp="$(MAKE)"' |
| 1604 |
_ACEOF |
| 1605 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1606 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1607 |
if test -n "$ac_maketemp"; then |
| 1608 |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 1609 |
else |
| 1610 |
eval ac_cv_prog_make_${ac_make}_set=no |
| 1611 |
fi |
| 1612 |
rm -f conftest.make |
| 1613 |
fi |
| 1614 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1615 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 1616 |
echo "${ECHO_T}yes" >&6 |
| 1617 |
SET_MAKE= |
| 1618 |
else |
| 1619 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1620 |
echo "${ECHO_T}no" >&6 |
| 1621 |
SET_MAKE="MAKE=${MAKE-make}" |
| 1622 |
fi |
| 1623 |
|
| 1624 |
# Find a good install program. We prefer a C program (faster), |
| 1625 |
# so one script is as good as another. But avoid the broken or |
| 1626 |
# incompatible versions: |
| 1627 |
# SysV /etc/install, /usr/sbin/install |
| 1628 |
# SunOS /usr/etc/install |
| 1629 |
# IRIX /sbin/install |
| 1630 |
# AIX /bin/install |
| 1631 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1632 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1633 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1634 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1635 |
# OS/2's system install, which has a completely different semantic |
| 1636 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 1637 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1638 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1639 |
if test -z "$INSTALL"; then |
| 1640 |
if test "${ac_cv_path_install+set}" = set; then |
| 1641 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1642 |
else |
| 1643 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1644 |
for as_dir in $PATH |
| 1645 |
do |
| 1646 |
IFS=$as_save_IFS |
| 1647 |
test -z "$as_dir" && as_dir=. |
| 1648 |
# Account for people who put trailing slashes in PATH elements. |
| 1649 |
case $as_dir/ in |
| 1650 |
./ | .// | /cC/* | \ |
| 1651 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1652 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1653 |
/usr/ucb/* ) ;; |
| 1654 |
*) |
| 1655 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 1656 |
# Don't use installbsd from OSF since it installs stuff as root |
| 1657 |
# by default. |
| 1658 |
for ac_prog in ginstall scoinst install; do |
| 1659 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1660 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1661 |
if test $ac_prog = install && |
| 1662 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1663 |
# AIX install. It has an incompatible calling convention. |
| 1664 |
: |
| 1665 |
elif test $ac_prog = install && |
| 1666 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1667 |
# program-specific install script used by HP pwplus--don't use. |
| 1668 |
: |
| 1669 |
else |
| 1670 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1671 |
break 3 |
| 1672 |
fi |
| 1673 |
fi |
| 1674 |
done |
| 1675 |
done |
| 1676 |
;; |
| 1677 |
esac |
| 1678 |
done |
| 1679 |
|
| 1680 |
|
| 1681 |
fi |
| 1682 |
if test "${ac_cv_path_install+set}" = set; then |
| 1683 |
INSTALL=$ac_cv_path_install |
| 1684 |
else |
| 1685 |
# As a last resort, use the slow shell script. We don't cache a |
| 1686 |
# path for INSTALL within a source directory, because that will |
| 1687 |
# break other packages using the cache if that directory is |
| 1688 |
# removed, or if the path is relative. |
| 1689 |
INSTALL=$ac_install_sh |
| 1690 |
fi |
| 1691 |
fi |
| 1692 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1693 |
echo "${ECHO_T}$INSTALL" >&6 |
| 1694 |
|
| 1695 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1696 |
# It thinks the first close brace ends the variable substitution. |
| 1697 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1698 |
|
| 1699 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1700 |
|
| 1701 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1702 |
|
| 1703 |
##AWW20041113: No fixing seems necessary. |
| 1704 |
case "X$INSTALL" in |
| 1705 |
X/*) |
| 1706 |
;; |
| 1707 |
*) |
| 1708 |
INSTALL="$ascpwd/$INSTALL" |
| 1709 |
;; |
| 1710 |
esac |
| 1711 |
|
| 1712 |
|
| 1713 |
#-------------------------------------------------------------------- |
| 1714 |
# Get the host type for various checks along the way |
| 1715 |
#-------------------------------------------------------------------- |
| 1716 |
# Make sure we can run config.sub. |
| 1717 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
| 1718 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1719 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1720 |
{ (exit 1); exit 1; }; } |
| 1721 |
|
| 1722 |
echo "$as_me:$LINENO: checking build system type" >&5 |
| 1723 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1724 |
if test "${ac_cv_build+set}" = set; then |
| 1725 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1726 |
else |
| 1727 |
ac_cv_build_alias=$build_alias |
| 1728 |
test -z "$ac_cv_build_alias" && |
| 1729 |
ac_cv_build_alias=`$ac_config_guess` |
| 1730 |
test -z "$ac_cv_build_alias" && |
| 1731 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1732 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1733 |
{ (exit 1); exit 1; }; } |
| 1734 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1735 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1736 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1737 |
{ (exit 1); exit 1; }; } |
| 1738 |
|
| 1739 |
fi |
| 1740 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1741 |
echo "${ECHO_T}$ac_cv_build" >&6 |
| 1742 |
build=$ac_cv_build |
| 1743 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1744 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1745 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1746 |
|
| 1747 |
|
| 1748 |
echo "$as_me:$LINENO: checking host system type" >&5 |
| 1749 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1750 |
if test "${ac_cv_host+set}" = set; then |
| 1751 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1752 |
else |
| 1753 |
ac_cv_host_alias=$host_alias |
| 1754 |
test -z "$ac_cv_host_alias" && |
| 1755 |
ac_cv_host_alias=$ac_cv_build_alias |
| 1756 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1757 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1758 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1759 |
{ (exit 1); exit 1; }; } |
| 1760 |
|
| 1761 |
fi |
| 1762 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1763 |
echo "${ECHO_T}$ac_cv_host" >&6 |
| 1764 |
host=$ac_cv_host |
| 1765 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1766 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1767 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1768 |
|
| 1769 |
|
| 1770 |
|
| 1771 |
|
| 1772 |
#-------------------------------------------------------------------- |
| 1773 |
# Check for the C compiler: set CC and CFLAGS. |
| 1774 |
# If the user does NOT specify `--enable-gcc' on the configure |
| 1775 |
# command command line, set CC to either the envar CC or `cc'. |
| 1776 |
# Call AC_PROG_CC which will use the value of CC (perhaps set |
| 1777 |
# immediately above) or will check for `gcc' and then for `cc' |
| 1778 |
# if `gcc' is not found. |
| 1779 |
# |
| 1780 |
# If we are using GCC, then assume it groks ANSI. Otherwise, |
| 1781 |
# try to compile a small program using ANSI constructs with |
| 1782 |
# CC. If this fails, try to locate each of the following: |
| 1783 |
# c89 xlc acc |
| 1784 |
# and if successful, see if it compiles an ANSI C program. |
| 1785 |
# (Doing this in a loop would be ideal, but configure caches |
| 1786 |
# the result of AC_CHECK_PROG and uses the cached value for |
| 1787 |
# all but the first pass through the loop. This is also the |
| 1788 |
# reason we have to use a different variable asc_cc1, asc_cc2 |
| 1789 |
# for each call to AC_CHECK_PROG. |
| 1790 |
# |
| 1791 |
# If we do not find an ANSI C compiler, print a warning and |
| 1792 |
# use the first value of CC we tried. |
| 1793 |
#-------------------------------------------------------------------- |
| 1794 |
|
| 1795 |
# Check whether --enable-gcc or --disable-gcc was given. |
| 1796 |
if test "${enable_gcc+set}" = set; then |
| 1797 |
enableval="$enable_gcc" |
| 1798 |
asc_gcc_ok=$enableval |
| 1799 |
else |
| 1800 |
asc_gcc_ok=no |
| 1801 |
fi; |
| 1802 |
if test ! "$asc_gcc_ok" = "yes"; then |
| 1803 |
CC=${CC-cc} |
| 1804 |
fi |
| 1805 |
asc_orig_cc=$CC |
| 1806 |
|
| 1807 |
if test "X$asc_gcc_ok" = "Xyes" ; then |
| 1808 |
asc_ansi_ok=yes |
| 1809 |
else |
| 1810 |
echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5 |
| 1811 |
echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6 |
| 1812 |
ac_ext=c |
| 1813 |
ac_cpp='$CPP $CPPFLAGS' |
| 1814 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1815 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1816 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1817 |
if test -n "$ac_tool_prefix"; then |
| 1818 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1819 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1820 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1821 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1822 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1823 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1824 |
else |
| 1825 |
if test -n "$CC"; then |
| 1826 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1827 |
else |
| 1828 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1829 |
for as_dir in $PATH |
| 1830 |
do |
| 1831 |
IFS=$as_save_IFS |
| 1832 |
test -z "$as_dir" && as_dir=. |
| 1833 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1834 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1835 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1836 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1837 |
break 2 |
| 1838 |
fi |
| 1839 |
done |
| 1840 |
done |
| 1841 |
|
| 1842 |
fi |
| 1843 |
fi |
| 1844 |
CC=$ac_cv_prog_CC |
| 1845 |
if test -n "$CC"; then |
| 1846 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1847 |
echo "${ECHO_T}$CC" >&6 |
| 1848 |
else |
| 1849 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1850 |
echo "${ECHO_T}no" >&6 |
| 1851 |
fi |
| 1852 |
|
| 1853 |
fi |
| 1854 |
if test -z "$ac_cv_prog_CC"; then |
| 1855 |
ac_ct_CC=$CC |
| 1856 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1857 |
set dummy gcc; ac_word=$2 |
| 1858 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1859 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1860 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1861 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1862 |
else |
| 1863 |
if test -n "$ac_ct_CC"; then |
| 1864 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1865 |
else |
| 1866 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1867 |
for as_dir in $PATH |
| 1868 |
do |
| 1869 |
IFS=$as_save_IFS |
| 1870 |
test -z "$as_dir" && as_dir=. |
| 1871 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1872 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1873 |
ac_cv_prog_ac_ct_CC="gcc" |
| 1874 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1875 |
break 2 |
| 1876 |
fi |
| 1877 |
done |
| 1878 |
done |
| 1879 |
|
| 1880 |
fi |
| 1881 |
fi |
| 1882 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1883 |
if test -n "$ac_ct_CC"; then |
| 1884 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1885 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1886 |
else |
| 1887 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1888 |
echo "${ECHO_T}no" >&6 |
| 1889 |
fi |
| 1890 |
|
| 1891 |
CC=$ac_ct_CC |
| 1892 |
else |
| 1893 |
CC="$ac_cv_prog_CC" |
| 1894 |
fi |
| 1895 |
|
| 1896 |
if test -z "$CC"; then |
| 1897 |
if test -n "$ac_tool_prefix"; then |
| 1898 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1899 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1900 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1901 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1902 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1903 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1904 |
else |
| 1905 |
if test -n "$CC"; then |
| 1906 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1907 |
else |
| 1908 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1909 |
for as_dir in $PATH |
| 1910 |
do |
| 1911 |
IFS=$as_save_IFS |
| 1912 |
test -z "$as_dir" && as_dir=. |
| 1913 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1914 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1915 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1916 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1917 |
break 2 |
| 1918 |
fi |
| 1919 |
done |
| 1920 |
done |
| 1921 |
|
| 1922 |
fi |
| 1923 |
fi |
| 1924 |
CC=$ac_cv_prog_CC |
| 1925 |
if test -n "$CC"; then |
| 1926 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1927 |
echo "${ECHO_T}$CC" >&6 |
| 1928 |
else |
| 1929 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1930 |
echo "${ECHO_T}no" >&6 |
| 1931 |
fi |
| 1932 |
|
| 1933 |
fi |
| 1934 |
if test -z "$ac_cv_prog_CC"; then |
| 1935 |
ac_ct_CC=$CC |
| 1936 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1937 |
set dummy cc; ac_word=$2 |
| 1938 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1939 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1940 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1941 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1942 |
else |
| 1943 |
if test -n "$ac_ct_CC"; then |
| 1944 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1945 |
else |
| 1946 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1947 |
for as_dir in $PATH |
| 1948 |
do |
| 1949 |
IFS=$as_save_IFS |
| 1950 |
test -z "$as_dir" && as_dir=. |
| 1951 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1952 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1953 |
ac_cv_prog_ac_ct_CC="cc" |
| 1954 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1955 |
break 2 |
| 1956 |
fi |
| 1957 |
done |
| 1958 |
done |
| 1959 |
|
| 1960 |
fi |
| 1961 |
fi |
| 1962 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1963 |
if test -n "$ac_ct_CC"; then |
| 1964 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1965 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1966 |
else |
| 1967 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1968 |
echo "${ECHO_T}no" >&6 |
| 1969 |
fi |
| 1970 |
|
| 1971 |
CC=$ac_ct_CC |
| 1972 |
else |
| 1973 |
CC="$ac_cv_prog_CC" |
| 1974 |
fi |
| 1975 |
|
| 1976 |
fi |
| 1977 |
if test -z "$CC"; then |
| 1978 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1979 |
set dummy cc; ac_word=$2 |
| 1980 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1981 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1982 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1983 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1984 |
else |
| 1985 |
if test -n "$CC"; then |
| 1986 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1987 |
else |
| 1988 |
ac_prog_rejected=no |
| 1989 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1990 |
for as_dir in $PATH |
| 1991 |
do |
| 1992 |
IFS=$as_save_IFS |
| 1993 |
test -z "$as_dir" && as_dir=. |
| 1994 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1995 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1996 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1997 |
ac_prog_rejected=yes |
| 1998 |
continue |
| 1999 |
fi |
| 2000 |
ac_cv_prog_CC="cc" |
| 2001 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2002 |
break 2 |
| 2003 |
fi |
| 2004 |
done |
| 2005 |
done |
| 2006 |
|
| 2007 |
if test $ac_prog_rejected = yes; then |
| 2008 |
# We found a bogon in the path, so make sure we never use it. |
| 2009 |
set dummy $ac_cv_prog_CC |
| 2010 |
shift |
| 2011 |
if test $# != 0; then |
| 2012 |
# We chose a different compiler from the bogus one. |
| 2013 |
# However, it has the same basename, so the bogon will be chosen |
| 2014 |
# first if we set CC to just the basename; use the full file name. |
| 2015 |
shift |
| 2016 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2017 |
fi |
| 2018 |
fi |
| 2019 |
fi |
| 2020 |
fi |
| 2021 |
CC=$ac_cv_prog_CC |
| 2022 |
if test -n "$CC"; then |
| 2023 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 2024 |
echo "${ECHO_T}$CC" >&6 |
| 2025 |
else |
| 2026 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2027 |
echo "${ECHO_T}no" >&6 |
| 2028 |
fi |
| 2029 |
|
| 2030 |
fi |
| 2031 |
if test -z "$CC"; then |
| 2032 |
if test -n "$ac_tool_prefix"; then |
| 2033 |
for ac_prog in cl |
| 2034 |
do |
| 2035 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2036 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2037 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2038 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2039 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 2040 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2041 |
else |
| 2042 |
if test -n "$CC"; then |
| 2043 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2044 |
else |
| 2045 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2046 |
for as_dir in $PATH |
| 2047 |
do |
| 2048 |
IFS=$as_save_IFS |
| 2049 |
test -z "$as_dir" && as_dir=. |
| 2050 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2051 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2052 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2053 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2054 |
break 2 |
| 2055 |
fi |
| 2056 |
done |
| 2057 |
done |
| 2058 |
|
| 2059 |
fi |
| 2060 |
fi |
| 2061 |
CC=$ac_cv_prog_CC |
| 2062 |
if test -n "$CC"; then |
| 2063 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 2064 |
echo "${ECHO_T}$CC" >&6 |
| 2065 |
else |
| 2066 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2067 |
echo "${ECHO_T}no" >&6 |
| 2068 |
fi |
| 2069 |
|
| 2070 |
test -n "$CC" && break |
| 2071 |
done |
| 2072 |
fi |
| 2073 |
if test -z "$CC"; then |
| 2074 |
ac_ct_CC=$CC |
| 2075 |
for ac_prog in cl |
| 2076 |
do |
| 2077 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2078 |
set dummy $ac_prog; ac_word=$2 |
| 2079 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2080 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2081 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2082 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2083 |
else |
| 2084 |
if test -n "$ac_ct_CC"; then |
| 2085 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2086 |
else |
| 2087 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2088 |
for as_dir in $PATH |
| 2089 |
do |
| 2090 |
IFS=$as_save_IFS |
| 2091 |
test -z "$as_dir" && as_dir=. |
| 2092 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2093 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2094 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2095 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2096 |
break 2 |
| 2097 |
fi |
| 2098 |
done |
| 2099 |
done |
| 2100 |
|
| 2101 |
fi |
| 2102 |
fi |
| 2103 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2104 |
if test -n "$ac_ct_CC"; then |
| 2105 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2106 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2107 |
else |
| 2108 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2109 |
echo "${ECHO_T}no" >&6 |
| 2110 |
fi |
| 2111 |
|
| 2112 |
test -n "$ac_ct_CC" && break |
| 2113 |
done |
| 2114 |
|
| 2115 |
CC=$ac_ct_CC |
| 2116 |
fi |
| 2117 |
|
| 2118 |
fi |
| 2119 |
|
| 2120 |
|
| 2121 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2122 |
See \`config.log' for more details." >&5 |
| 2123 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2124 |
See \`config.log' for more details." >&2;} |
| 2125 |
{ (exit 1); exit 1; }; } |
| 2126 |
|
| 2127 |
# Provide some information about the compiler. |
| 2128 |
echo "$as_me:$LINENO:" \ |
| 2129 |
"checking for C compiler version" >&5 |
| 2130 |
ac_compiler=`set X $ac_compile; echo $2` |
| 2131 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2132 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2133 |
ac_status=$? |
| 2134 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2135 |
(exit $ac_status); } |
| 2136 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2137 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2138 |
ac_status=$? |
| 2139 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2140 |
(exit $ac_status); } |
| 2141 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2142 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2143 |
ac_status=$? |
| 2144 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2145 |
(exit $ac_status); } |
| 2146 |
|
| 2147 |
cat >conftest.$ac_ext <<_ACEOF |
| 2148 |
/* confdefs.h. */ |
| 2149 |
_ACEOF |
| 2150 |
cat confdefs.h >>conftest.$ac_ext |
| 2151 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2152 |
/* end confdefs.h. */ |
| 2153 |
|
| 2154 |
int |
| 2155 |
main () |
| 2156 |
{ |
| 2157 |
|
| 2158 |
; |
| 2159 |
return 0; |
| 2160 |
} |
| 2161 |
_ACEOF |
| 2162 |
ac_clean_files_save=$ac_clean_files |
| 2163 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2164 |
# Try to create an executable without -o first, disregard a.out. |
| 2165 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 2166 |
# of exeext. |
| 2167 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2168 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2169 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2170 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2171 |
(eval $ac_link_default) 2>&5 |
| 2172 |
ac_status=$? |
| 2173 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2174 |
(exit $ac_status); }; then |
| 2175 |
# Find the output, starting from the most likely. This scheme is |
| 2176 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2177 |
# resort. |
| 2178 |
|
| 2179 |
# Be careful to initialize this variable, since it used to be cached. |
| 2180 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2181 |
ac_cv_exeext= |
| 2182 |
# b.out is created by i960 compilers. |
| 2183 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2184 |
do |
| 2185 |
test -f "$ac_file" || continue |
| 2186 |
case $ac_file in |
| 2187 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2188 |
;; |
| 2189 |
conftest.$ac_ext ) |
| 2190 |
# This is the source file. |
| 2191 |
;; |
| 2192 |
[ab].out ) |
| 2193 |
# We found the default executable, but exeext='' is most |
| 2194 |
# certainly right. |
| 2195 |
break;; |
| 2196 |
*.* ) |
| 2197 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2198 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2199 |
# but it would be cool to find out if it's true. Does anybody |
| 2200 |
# maintain Libtool? --akim. |
| 2201 |
export ac_cv_exeext |
| 2202 |
break;; |
| 2203 |
* ) |
| 2204 |
break;; |
| 2205 |
esac |
| 2206 |
done |
| 2207 |
else |
| 2208 |
echo "$as_me: failed program was:" >&5 |
| 2209 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2210 |
|
| 2211 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2212 |
See \`config.log' for more details." >&5 |
| 2213 |
echo "$as_me: error: C compiler cannot create executables |
| 2214 |
See \`config.log' for more details." >&2;} |
| 2215 |
{ (exit 77); exit 77; }; } |
| 2216 |
fi |
| 2217 |
|
| 2218 |
ac_exeext=$ac_cv_exeext |
| 2219 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2220 |
echo "${ECHO_T}$ac_file" >&6 |
| 2221 |
|
| 2222 |
# Check the compiler produces executables we can run. If not, either |
| 2223 |
# the compiler is broken, or we cross compile. |
| 2224 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2225 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2226 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2227 |
# If not cross compiling, check that we can run a simple program. |
| 2228 |
if test "$cross_compiling" != yes; then |
| 2229 |
if { ac_try='./$ac_file' |
| 2230 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2231 |
(eval $ac_try) 2>&5 |
| 2232 |
ac_status=$? |
| 2233 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 |
(exit $ac_status); }; }; then |
| 2235 |
cross_compiling=no |
| 2236 |
else |
| 2237 |
if test "$cross_compiling" = maybe; then |
| 2238 |
cross_compiling=yes |
| 2239 |
else |
| 2240 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2241 |
If you meant to cross compile, use \`--host'. |
| 2242 |
See \`config.log' for more details." >&5 |
| 2243 |
echo "$as_me: error: cannot run C compiled programs. |
| 2244 |
If you meant to cross compile, use \`--host'. |
| 2245 |
See \`config.log' for more details." >&2;} |
| 2246 |
{ (exit 1); exit 1; }; } |
| 2247 |
fi |
| 2248 |
fi |
| 2249 |
fi |
| 2250 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 2251 |
echo "${ECHO_T}yes" >&6 |
| 2252 |
|
| 2253 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2254 |
ac_clean_files=$ac_clean_files_save |
| 2255 |
# Check the compiler produces executables we can run. If not, either |
| 2256 |
# the compiler is broken, or we cross compile. |
| 2257 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2258 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2259 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2260 |
echo "${ECHO_T}$cross_compiling" >&6 |
| 2261 |
|
| 2262 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2263 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2264 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2265 |
(eval $ac_link) 2>&5 |
| 2266 |
ac_status=$? |
| 2267 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 |
(exit $ac_status); }; then |
| 2269 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2270 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2271 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2272 |
# `rm'. |
| 2273 |
for ac_file in conftest.exe conftest conftest.*; do |
| 2274 |
test -f "$ac_file" || continue |
| 2275 |
case $ac_file in |
| 2276 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2277 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2278 |
export ac_cv_exeext |
| 2279 |
break;; |
| 2280 |
* ) break;; |
| 2281 |
esac |
| 2282 |
done |
| 2283 |
else |
| 2284 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2285 |
See \`config.log' for more details." >&5 |
| 2286 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2287 |
See \`config.log' for more details." >&2;} |
| 2288 |
{ (exit 1); exit 1; }; } |
| 2289 |
fi |
| 2290 |
|
| 2291 |
rm -f conftest$ac_cv_exeext |
| 2292 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2293 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2294 |
|
| 2295 |
rm -f conftest.$ac_ext |
| 2296 |
EXEEXT=$ac_cv_exeext |
| 2297 |
ac_exeext=$EXEEXT |
| 2298 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2299 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2300 |
if test "${ac_cv_objext+set}" = set; then |
| 2301 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2302 |
else |
| 2303 |
cat >conftest.$ac_ext <<_ACEOF |
| 2304 |
/* confdefs.h. */ |
| 2305 |
_ACEOF |
| 2306 |
cat confdefs.h >>conftest.$ac_ext |
| 2307 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2308 |
/* end confdefs.h. */ |
| 2309 |
|
| 2310 |
int |
| 2311 |
main () |
| 2312 |
{ |
| 2313 |
|
| 2314 |
; |
| 2315 |
return 0; |
| 2316 |
} |
| 2317 |
_ACEOF |
| 2318 |
rm -f conftest.o conftest.obj |
| 2319 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2320 |
(eval $ac_compile) 2>&5 |
| 2321 |
ac_status=$? |
| 2322 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 |
(exit $ac_status); }; then |
| 2324 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2325 |
case $ac_file in |
| 2326 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2327 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2328 |
break;; |
| 2329 |
esac |
| 2330 |
done |
| 2331 |
else |
| 2332 |
echo "$as_me: failed program was:" >&5 |
| 2333 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2334 |
|
| 2335 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2336 |
See \`config.log' for more details." >&5 |
| 2337 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2338 |
See \`config.log' for more details." >&2;} |
| 2339 |
{ (exit 1); exit 1; }; } |
| 2340 |
fi |
| 2341 |
|
| 2342 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2343 |
fi |
| 2344 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2345 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2346 |
OBJEXT=$ac_cv_objext |
| 2347 |
ac_objext=$OBJEXT |
| 2348 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2349 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2350 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2351 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2352 |
else |
| 2353 |
cat >conftest.$ac_ext <<_ACEOF |
| 2354 |
/* confdefs.h. */ |
| 2355 |
_ACEOF |
| 2356 |
cat confdefs.h >>conftest.$ac_ext |
| 2357 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2358 |
/* end confdefs.h. */ |
| 2359 |
|
| 2360 |
int |
| 2361 |
main () |
| 2362 |
{ |
| 2363 |
#ifndef __GNUC__ |
| 2364 |
choke me |
| 2365 |
#endif |
| 2366 |
|
| 2367 |
; |
| 2368 |
return 0; |
| 2369 |
} |
| 2370 |
_ACEOF |
| 2371 |
rm -f conftest.$ac_objext |
| 2372 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2373 |
(eval $ac_compile) 2>conftest.er1 |
| 2374 |
ac_status=$? |
| 2375 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2376 |
rm -f conftest.er1 |
| 2377 |
cat conftest.err >&5 |
| 2378 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2379 |
(exit $ac_status); } && |
| 2380 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2381 |
|| test ! -s conftest.err' |
| 2382 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2383 |
(eval $ac_try) 2>&5 |
| 2384 |
ac_status=$? |
| 2385 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2386 |
(exit $ac_status); }; } && |
| 2387 |
{ ac_try='test -s conftest.$ac_objext' |
| 2388 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2389 |
(eval $ac_try) 2>&5 |
| 2390 |
ac_status=$? |
| 2391 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2392 |
(exit $ac_status); }; }; then |
| 2393 |
ac_compiler_gnu=yes |
| 2394 |
else |
| 2395 |
echo "$as_me: failed program was:" >&5 |
| 2396 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2397 |
|
| 2398 |
ac_compiler_gnu=no |
| 2399 |
fi |
| 2400 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2401 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2402 |
|
| 2403 |
fi |
| 2404 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2405 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2406 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2407 |
ac_test_CFLAGS=${CFLAGS+set} |
| 2408 |
ac_save_CFLAGS=$CFLAGS |
| 2409 |
CFLAGS="-g" |
| 2410 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2411 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2412 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2413 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2414 |
else |
| 2415 |
cat >conftest.$ac_ext <<_ACEOF |
| 2416 |
/* confdefs.h. */ |
| 2417 |
_ACEOF |
| 2418 |
cat confdefs.h >>conftest.$ac_ext |
| 2419 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2420 |
/* end confdefs.h. */ |
| 2421 |
|
| 2422 |
int |
| 2423 |
main () |
| 2424 |
{ |
| 2425 |
|
| 2426 |
; |
| 2427 |
return 0; |
| 2428 |
} |
| 2429 |
_ACEOF |
| 2430 |
rm -f conftest.$ac_objext |
| 2431 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2432 |
(eval $ac_compile) 2>conftest.er1 |
| 2433 |
ac_status=$? |
| 2434 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2435 |
rm -f conftest.er1 |
| 2436 |
cat conftest.err >&5 |
| 2437 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2438 |
(exit $ac_status); } && |
| 2439 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2440 |
|| test ! -s conftest.err' |
| 2441 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2442 |
(eval $ac_try) 2>&5 |
| 2443 |
ac_status=$? |
| 2444 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2445 |
(exit $ac_status); }; } && |
| 2446 |
{ ac_try='test -s conftest.$ac_objext' |
| 2447 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2448 |
(eval $ac_try) 2>&5 |
| 2449 |
ac_status=$? |
| 2450 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 |
(exit $ac_status); }; }; then |
| 2452 |
ac_cv_prog_cc_g=yes |
| 2453 |
else |
| 2454 |
echo "$as_me: failed program was:" >&5 |
| 2455 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2456 |
|
| 2457 |
ac_cv_prog_cc_g=no |
| 2458 |
fi |
| 2459 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2460 |
fi |
| 2461 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2462 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2463 |
if test "$ac_test_CFLAGS" = set; then |
| 2464 |
CFLAGS=$ac_save_CFLAGS |
| 2465 |
elif test $ac_cv_prog_cc_g = yes; then |
| 2466 |
if test "$GCC" = yes; then |
| 2467 |
CFLAGS="-g -O2" |
| 2468 |
else |
| 2469 |
CFLAGS="-g" |
| 2470 |
fi |
| 2471 |
else |
| 2472 |
if test "$GCC" = yes; then |
| 2473 |
CFLAGS="-O2" |
| 2474 |
else |
| 2475 |
CFLAGS= |
| 2476 |
fi |
| 2477 |
fi |
| 2478 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2479 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2480 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2481 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2482 |
else |
| 2483 |
ac_cv_prog_cc_stdc=no |
| 2484 |
ac_save_CC=$CC |
| 2485 |
cat >conftest.$ac_ext <<_ACEOF |
| 2486 |
/* confdefs.h. */ |
| 2487 |
_ACEOF |
| 2488 |
cat confdefs.h >>conftest.$ac_ext |
| 2489 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2490 |
/* end confdefs.h. */ |
| 2491 |
#include <stdarg.h> |
| 2492 |
#include <stdio.h> |
| 2493 |
#include <sys/types.h> |
| 2494 |
#include <sys/stat.h> |
| 2495 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2496 |
struct buf { int x; }; |
| 2497 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2498 |
static char *e (p, i) |
| 2499 |
char **p; |
| 2500 |
int i; |
| 2501 |
{ |
| 2502 |
return p[i]; |
| 2503 |
} |
| 2504 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2505 |
{ |
| 2506 |
char *s; |
| 2507 |
va_list v; |
| 2508 |
va_start (v,p); |
| 2509 |
s = g (p, va_arg (v,int)); |
| 2510 |
va_end (v); |
| 2511 |
return s; |
| 2512 |
} |
| 2513 |
|
| 2514 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2515 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 2516 |
These don't provoke an error unfortunately, instead are silently treated |
| 2517 |
as 'x'. The following induces an error, until -std1 is added to get |
| 2518 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2519 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 2520 |
that's true only with -std1. */ |
| 2521 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2522 |
|
| 2523 |
int test (int i, double x); |
| 2524 |
struct s1 {int (*f) (int a);}; |
| 2525 |
struct s2 {int (*f) (double a);}; |
| 2526 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2527 |
int argc; |
| 2528 |
char **argv; |
| 2529 |
int |
| 2530 |
main () |
| 2531 |
{ |
| 2532 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2533 |
; |
| 2534 |
return 0; |
| 2535 |
} |
| 2536 |
_ACEOF |
| 2537 |
# Don't try gcc -ansi; that turns off useful extensions and |
| 2538 |
# breaks some systems' header files. |
| 2539 |
# AIX -qlanglvl=ansi |
| 2540 |
# Ultrix and OSF/1 -std1 |
| 2541 |
# HP-UX 10.20 and later -Ae |
| 2542 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2543 |
# SVR4 -Xc -D__EXTENSIONS__ |
| 2544 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2545 |
do |
| 2546 |
CC="$ac_save_CC $ac_arg" |
| 2547 |
rm -f conftest.$ac_objext |
| 2548 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2549 |
(eval $ac_compile) 2>conftest.er1 |
| 2550 |
ac_status=$? |
| 2551 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2552 |
rm -f conftest.er1 |
| 2553 |
cat conftest.err >&5 |
| 2554 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 |
(exit $ac_status); } && |
| 2556 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2557 |
|| test ! -s conftest.err' |
| 2558 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2559 |
(eval $ac_try) 2>&5 |
| 2560 |
ac_status=$? |
| 2561 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2562 |
(exit $ac_status); }; } && |
| 2563 |
{ ac_try='test -s conftest.$ac_objext' |
| 2564 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2565 |
(eval $ac_try) 2>&5 |
| 2566 |
ac_status=$? |
| 2567 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2568 |
(exit $ac_status); }; }; then |
| 2569 |
ac_cv_prog_cc_stdc=$ac_arg |
| 2570 |
break |
| 2571 |
else |
| 2572 |
echo "$as_me: failed program was:" >&5 |
| 2573 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2574 |
|
| 2575 |
fi |
| 2576 |
rm -f conftest.err conftest.$ac_objext |
| 2577 |
done |
| 2578 |
rm -f conftest.$ac_ext conftest.$ac_objext |
| 2579 |
CC=$ac_save_CC |
| 2580 |
|
| 2581 |
fi |
| 2582 |
|
| 2583 |
case "x$ac_cv_prog_cc_stdc" in |
| 2584 |
x|xno) |
| 2585 |
echo "$as_me:$LINENO: result: none needed" >&5 |
| 2586 |
echo "${ECHO_T}none needed" >&6 ;; |
| 2587 |
*) |
| 2588 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2589 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2590 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2591 |
esac |
| 2592 |
|
| 2593 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| 2594 |
# in C++ we need to declare it. In case someone uses the same compiler |
| 2595 |
# for both compiling C and C++ we need to have the C++ compiler decide |
| 2596 |
# the declaration of exit, since it's the most demanding environment. |
| 2597 |
cat >conftest.$ac_ext <<_ACEOF |
| 2598 |
#ifndef __cplusplus |
| 2599 |
choke me |
| 2600 |
#endif |
| 2601 |
_ACEOF |
| 2602 |
rm -f conftest.$ac_objext |
| 2603 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2604 |
(eval $ac_compile) 2>conftest.er1 |
| 2605 |
ac_status=$? |
| 2606 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2607 |
rm -f conftest.er1 |
| 2608 |
cat conftest.err >&5 |
| 2609 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2610 |
(exit $ac_status); } && |
| 2611 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2612 |
|| test ! -s conftest.err' |
| 2613 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2614 |
(eval $ac_try) 2>&5 |
| 2615 |
ac_status=$? |
| 2616 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2617 |
(exit $ac_status); }; } && |
| 2618 |
{ ac_try='test -s conftest.$ac_objext' |
| 2619 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2620 |
(eval $ac_try) 2>&5 |
| 2621 |
ac_status=$? |
| 2622 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2623 |
(exit $ac_status); }; }; then |
| 2624 |
for ac_declaration in \ |
| 2625 |
'' \ |
| 2626 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2627 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 2628 |
'extern "C" void exit (int) throw ();' \ |
| 2629 |
'extern "C" void exit (int);' \ |
| 2630 |
'void exit (int);' |
| 2631 |
do |
| 2632 |
cat >conftest.$ac_ext <<_ACEOF |
| 2633 |
/* confdefs.h. */ |
| 2634 |
_ACEOF |
| 2635 |
cat confdefs.h >>conftest.$ac_ext |
| 2636 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2637 |
/* end confdefs.h. */ |
| 2638 |
$ac_declaration |
| 2639 |
#include <stdlib.h> |
| 2640 |
int |
| 2641 |
main () |
| 2642 |
{ |
| 2643 |
exit (42); |
| 2644 |
; |
| 2645 |
return 0; |
| 2646 |
} |
| 2647 |
_ACEOF |
| 2648 |
rm -f conftest.$ac_objext |
| 2649 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2650 |
(eval $ac_compile) 2>conftest.er1 |
| 2651 |
ac_status=$? |
| 2652 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2653 |
rm -f conftest.er1 |
| 2654 |
cat conftest.err >&5 |
| 2655 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 |
(exit $ac_status); } && |
| 2657 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2658 |
|| test ! -s conftest.err' |
| 2659 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2660 |
(eval $ac_try) 2>&5 |
| 2661 |
ac_status=$? |
| 2662 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2663 |
(exit $ac_status); }; } && |
| 2664 |
{ ac_try='test -s conftest.$ac_objext' |
| 2665 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2666 |
(eval $ac_try) 2>&5 |
| 2667 |
ac_status=$? |
| 2668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2669 |
(exit $ac_status); }; }; then |
| 2670 |
: |
| 2671 |
else |
| 2672 |
echo "$as_me: failed program was:" >&5 |
| 2673 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2674 |
|
| 2675 |
continue |
| 2676 |
fi |
| 2677 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2678 |
cat >conftest.$ac_ext <<_ACEOF |
| 2679 |
/* confdefs.h. */ |
| 2680 |
_ACEOF |
| 2681 |
cat confdefs.h >>conftest.$ac_ext |
| 2682 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2683 |
/* end confdefs.h. */ |
| 2684 |
$ac_declaration |
| 2685 |
int |
| 2686 |
main () |
| 2687 |
{ |
| 2688 |
exit (42); |
| 2689 |
; |
| 2690 |
return 0; |
| 2691 |
} |
| 2692 |
_ACEOF |
| 2693 |
rm -f conftest.$ac_objext |
| 2694 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2695 |
(eval $ac_compile) 2>conftest.er1 |
| 2696 |
ac_status=$? |
| 2697 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2698 |
rm -f conftest.er1 |
| 2699 |
cat conftest.err >&5 |
| 2700 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 |
(exit $ac_status); } && |
| 2702 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2703 |
|| test ! -s conftest.err' |
| 2704 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2705 |
(eval $ac_try) 2>&5 |
| 2706 |
ac_status=$? |
| 2707 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2708 |
(exit $ac_status); }; } && |
| 2709 |
{ ac_try='test -s conftest.$ac_objext' |
| 2710 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2711 |
(eval $ac_try) 2>&5 |
| 2712 |
ac_status=$? |
| 2713 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2714 |
(exit $ac_status); }; }; then |
| 2715 |
break |
| 2716 |
else |
| 2717 |
echo "$as_me: failed program was:" >&5 |
| 2718 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2719 |
|
| 2720 |
fi |
| 2721 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2722 |
done |
| 2723 |
rm -f conftest* |
| 2724 |
if test -n "$ac_declaration"; then |
| 2725 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 2726 |
echo $ac_declaration >>confdefs.h |
| 2727 |
echo '#endif' >>confdefs.h |
| 2728 |
fi |
| 2729 |
|
| 2730 |
else |
| 2731 |
echo "$as_me: failed program was:" >&5 |
| 2732 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2733 |
|
| 2734 |
fi |
| 2735 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2736 |
ac_ext=c |
| 2737 |
ac_cpp='$CPP $CPPFLAGS' |
| 2738 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2739 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2740 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2741 |
|
| 2742 |
|
| 2743 |
cat >conftest.$ac_ext <<_ACEOF |
| 2744 |
/* confdefs.h. */ |
| 2745 |
_ACEOF |
| 2746 |
cat confdefs.h >>conftest.$ac_ext |
| 2747 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2748 |
/* end confdefs.h. */ |
| 2749 |
|
| 2750 |
int |
| 2751 |
main () |
| 2752 |
{ |
| 2753 |
|
| 2754 |
int tstproto(int arg1, char * arg2); |
| 2755 |
int tstconst(const int arg1, const char *arg2); |
| 2756 |
int tstvoidp(const int arg1, const void *arg2); |
| 2757 |
; |
| 2758 |
return 0; |
| 2759 |
} |
| 2760 |
_ACEOF |
| 2761 |
rm -f conftest.$ac_objext |
| 2762 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2763 |
(eval $ac_compile) 2>conftest.er1 |
| 2764 |
ac_status=$? |
| 2765 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2766 |
rm -f conftest.er1 |
| 2767 |
cat conftest.err >&5 |
| 2768 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2769 |
(exit $ac_status); } && |
| 2770 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2771 |
|| test ! -s conftest.err' |
| 2772 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2773 |
(eval $ac_try) 2>&5 |
| 2774 |
ac_status=$? |
| 2775 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 |
(exit $ac_status); }; } && |
| 2777 |
{ ac_try='test -s conftest.$ac_objext' |
| 2778 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2779 |
(eval $ac_try) 2>&5 |
| 2780 |
ac_status=$? |
| 2781 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2782 |
(exit $ac_status); }; }; then |
| 2783 |
asc_ansi_ok=yes |
| 2784 |
else |
| 2785 |
echo "$as_me: failed program was:" >&5 |
| 2786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2787 |
|
| 2788 |
asc_ansi_ok=no |
| 2789 |
fi |
| 2790 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2791 |
echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5 |
| 2792 |
echo "${ECHO_T}$asc_ansi_ok" >&6 |
| 2793 |
fi |
| 2794 |
|
| 2795 |
if test "$asc_ansi_ok" = no ; then |
| 2796 |
# Extract the first word of "c89", so it can be a program name with args. |
| 2797 |
set dummy c89; ac_word=$2 |
| 2798 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2799 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2800 |
if test "${ac_cv_prog_asc_cc1+set}" = set; then |
| 2801 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2802 |
else |
| 2803 |
if test -n "$asc_cc1"; then |
| 2804 |
ac_cv_prog_asc_cc1="$asc_cc1" # Let the user override the test. |
| 2805 |
else |
| 2806 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2807 |
for as_dir in $PATH |
| 2808 |
do |
| 2809 |
IFS=$as_save_IFS |
| 2810 |
test -z "$as_dir" && as_dir=. |
| 2811 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2812 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2813 |
ac_cv_prog_asc_cc1="c89" |
| 2814 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2815 |
break 2 |
| 2816 |
fi |
| 2817 |
done |
| 2818 |
done |
| 2819 |
|
| 2820 |
test -z "$ac_cv_prog_asc_cc1" && ac_cv_prog_asc_cc1="NONE" |
| 2821 |
fi |
| 2822 |
fi |
| 2823 |
asc_cc1=$ac_cv_prog_asc_cc1 |
| 2824 |
if test -n "$asc_cc1"; then |
| 2825 |
echo "$as_me:$LINENO: result: $asc_cc1" >&5 |
| 2826 |
echo "${ECHO_T}$asc_cc1" >&6 |
| 2827 |
else |
| 2828 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2829 |
echo "${ECHO_T}no" >&6 |
| 2830 |
fi |
| 2831 |
|
| 2832 |
if test ! "$asc_cc1" = NONE ; then |
| 2833 |
CC=$asc_cc1 |
| 2834 |
echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5 |
| 2835 |
echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6 |
| 2836 |
cat >conftest.$ac_ext <<_ACEOF |
| 2837 |
/* confdefs.h. */ |
| 2838 |
_ACEOF |
| 2839 |
cat confdefs.h >>conftest.$ac_ext |
| 2840 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2841 |
/* end confdefs.h. */ |
| 2842 |
|
| 2843 |
int |
| 2844 |
main () |
| 2845 |
{ |
| 2846 |
|
| 2847 |
int tstproto(int arg1, char * arg2); |
| 2848 |
int tstconst(const int arg1, const char *arg2); |
| 2849 |
int tstvoidp(const int arg1, const void *arg2); |
| 2850 |
; |
| 2851 |
return 0; |
| 2852 |
} |
| 2853 |
_ACEOF |
| 2854 |
rm -f conftest.$ac_objext |
| 2855 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2856 |
(eval $ac_compile) 2>conftest.er1 |
| 2857 |
ac_status=$? |
| 2858 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2859 |
rm -f conftest.er1 |
| 2860 |
cat conftest.err >&5 |
| 2861 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2862 |
(exit $ac_status); } && |
| 2863 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2864 |
|| test ! -s conftest.err' |
| 2865 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2866 |
(eval $ac_try) 2>&5 |
| 2867 |
ac_status=$? |
| 2868 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2869 |
(exit $ac_status); }; } && |
| 2870 |
{ ac_try='test -s conftest.$ac_objext' |
| 2871 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2872 |
(eval $ac_try) 2>&5 |
| 2873 |
ac_status=$? |
| 2874 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2875 |
(exit $ac_status); }; }; then |
| 2876 |
asc_ansi_ok=yes |
| 2877 |
else |
| 2878 |
echo "$as_me: failed program was:" >&5 |
| 2879 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2880 |
|
| 2881 |
asc_ansi_ok=no |
| 2882 |
fi |
| 2883 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2884 |
echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5 |
| 2885 |
echo "${ECHO_T}$asc_ansi_ok" >&6 |
| 2886 |
fi |
| 2887 |
fi |
| 2888 |
|
| 2889 |
if test "$asc_ansi_ok" = no ; then |
| 2890 |
# Extract the first word of "xlc", so it can be a program name with args. |
| 2891 |
set dummy xlc; ac_word=$2 |
| 2892 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2893 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2894 |
if test "${ac_cv_prog_asc_cc2+set}" = set; then |
| 2895 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2896 |
else |
| 2897 |
if test -n "$asc_cc2"; then |
| 2898 |
ac_cv_prog_asc_cc2="$asc_cc2" # Let the user override the test. |
| 2899 |
else |
| 2900 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2901 |
for as_dir in $PATH |
| 2902 |
do |
| 2903 |
IFS=$as_save_IFS |
| 2904 |
test -z "$as_dir" && as_dir=. |
| 2905 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2906 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2907 |
ac_cv_prog_asc_cc2="xlc" |
| 2908 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2909 |
break 2 |
| 2910 |
fi |
| 2911 |
done |
| 2912 |
done |
| 2913 |
|
| 2914 |
test -z "$ac_cv_prog_asc_cc2" && ac_cv_prog_asc_cc2="NONE" |
| 2915 |
fi |
| 2916 |
fi |
| 2917 |
asc_cc2=$ac_cv_prog_asc_cc2 |
| 2918 |
if test -n "$asc_cc2"; then |
| 2919 |
echo "$as_me:$LINENO: result: $asc_cc2" >&5 |
| 2920 |
echo "${ECHO_T}$asc_cc2" >&6 |
| 2921 |
else |
| 2922 |
echo "$as_me:$LINENO: result: no" >&5 |
| 2923 |
echo "${ECHO_T}no" >&6 |
| 2924 |
fi |
| 2925 |
|
| 2926 |
if test ! "$asc_cc2" = NONE ; then |
| 2927 |
CC=$asc_cc2 |
| 2928 |
echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5 |
| 2929 |
echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6 |
| 2930 |
cat >conftest.$ac_ext <<_ACEOF |
| 2931 |
/* confdefs.h. */ |
| 2932 |
_ACEOF |
| 2933 |
cat confdefs.h >>conftest.$ac_ext |
| 2934 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2935 |
/* end confdefs.h. */ |
| 2936 |
|
| 2937 |
int |
| 2938 |
main () |
| 2939 |
{ |
| 2940 |
|
| 2941 |
int tstproto(int arg1, char * arg2); |
| 2942 |
int tstconst(const int arg1, const char *arg2); |
| 2943 |
int tstvoidp(const int arg1, const void *arg2); |
| 2944 |
; |
| 2945 |
return 0; |
| 2946 |
} |
| 2947 |
_ACEOF |
| 2948 |
rm -f conftest.$ac_objext |
| 2949 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2950 |
(eval $ac_compile) 2>conftest.er1 |
| 2951 |
ac_status=$? |
| 2952 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2953 |
rm -f conftest.er1 |
| 2954 |
cat conftest.err >&5 |
| 2955 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2956 |
(exit $ac_status); } && |
| 2957 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 2958 |
|| test ! -s conftest.err' |
| 2959 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2960 |
(eval $ac_try) 2>&5 |
| 2961 |
ac_status=$? |
| 2962 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2963 |
(exit $ac_status); }; } && |
| 2964 |
{ ac_try='test -s conftest.$ac_objext' |
| 2965 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2966 |
(eval $ac_try) 2>&5 |
| 2967 |
ac_status=$? |
| 2968 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 |
(exit $ac_status); }; }; then |
| 2970 |
asc_ansi_ok=yes |
| 2971 |
else |
| 2972 |
echo "$as_me: failed program was:" >&5 |
| 2973 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 |
|
| 2975 |
asc_ansi_ok=no |
| 2976 |
fi |
| 2977 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2978 |
echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5 |
| 2979 |
echo "${ECHO_T}$asc_ansi_ok" >&6 |
| 2980 |
fi |
| 2981 |
fi |
| 2982 |
|
| 2983 |
if test "$asc_ansi_ok" = no ; then |
| 2984 |
# Extract the first word of "acc", so it can be a program name with args. |
| 2985 |
set dummy acc; ac_word=$2 |
| 2986 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2987 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2988 |
if test "${ac_cv_prog_asc_cc3+set}" = set; then |
| 2989 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2990 |
else |
| 2991 |
if test -n "$asc_cc3"; then |
| 2992 |
ac_cv_prog_asc_cc3="$asc_cc3" # Let the user override the test. |
| 2993 |
else |
| 2994 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2995 |
for as_dir in $PATH |
| 2996 |
do |
| 2997 |
IFS=$as_save_IFS |
| 2998 |
test -z "$as_dir" && as_dir=. |
| 2999 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3000 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3001 |
ac_cv_prog_asc_cc3="acc" |
| 3002 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3003 |
break 2 |
| 3004 |
fi |
| 3005 |
done |
| 3006 |
done |
| 3007 |
|
| 3008 |
test -z "$ac_cv_prog_asc_cc3" && ac_cv_prog_asc_cc3="NONE" |
| 3009 |
fi |
| 3010 |
fi |
| 3011 |
asc_cc3=$ac_cv_prog_asc_cc3 |
| 3012 |
if test -n "$asc_cc3"; then |
| 3013 |
echo "$as_me:$LINENO: result: $asc_cc3" >&5 |
| 3014 |
echo "${ECHO_T}$asc_cc3" >&6 |
| 3015 |
else |
| 3016 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3017 |
echo "${ECHO_T}no" >&6 |
| 3018 |
fi |
| 3019 |
|
| 3020 |
if test ! "$asc_cc3" = NONE ; then |
| 3021 |
CC=$asc_cc3 |
| 3022 |
echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5 |
| 3023 |
echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6 |
| 3024 |
cat >conftest.$ac_ext <<_ACEOF |
| 3025 |
/* confdefs.h. */ |
| 3026 |
_ACEOF |
| 3027 |
cat confdefs.h >>conftest.$ac_ext |
| 3028 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3029 |
/* end confdefs.h. */ |
| 3030 |
|
| 3031 |
int |
| 3032 |
main () |
| 3033 |
{ |
| 3034 |
|
| 3035 |
int tstproto(int arg1, char * arg2); |
| 3036 |
int tstconst(const int arg1, const char *arg2); |
| 3037 |
int tstvoidp(const int arg1, const void *arg2); |
| 3038 |
; |
| 3039 |
return 0; |
| 3040 |
} |
| 3041 |
_ACEOF |
| 3042 |
rm -f conftest.$ac_objext |
| 3043 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3044 |
(eval $ac_compile) 2>conftest.er1 |
| 3045 |
ac_status=$? |
| 3046 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3047 |
rm -f conftest.er1 |
| 3048 |
cat conftest.err >&5 |
| 3049 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 |
(exit $ac_status); } && |
| 3051 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3052 |
|| test ! -s conftest.err' |
| 3053 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3054 |
(eval $ac_try) 2>&5 |
| 3055 |
ac_status=$? |
| 3056 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3057 |
(exit $ac_status); }; } && |
| 3058 |
{ ac_try='test -s conftest.$ac_objext' |
| 3059 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3060 |
(eval $ac_try) 2>&5 |
| 3061 |
ac_status=$? |
| 3062 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3063 |
(exit $ac_status); }; }; then |
| 3064 |
asc_ansi_ok=yes |
| 3065 |
else |
| 3066 |
echo "$as_me: failed program was:" >&5 |
| 3067 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3068 |
|
| 3069 |
asc_ansi_ok=no |
| 3070 |
fi |
| 3071 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3072 |
echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5 |
| 3073 |
echo "${ECHO_T}$asc_ansi_ok" >&6 |
| 3074 |
fi |
| 3075 |
fi |
| 3076 |
|
| 3077 |
ac_ext=c |
| 3078 |
ac_cpp='$CPP $CPPFLAGS' |
| 3079 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3080 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3081 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3082 |
if test -n "$ac_tool_prefix"; then |
| 3083 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3084 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3085 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3086 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3087 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 3088 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3089 |
else |
| 3090 |
if test -n "$CC"; then |
| 3091 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3092 |
else |
| 3093 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3094 |
for as_dir in $PATH |
| 3095 |
do |
| 3096 |
IFS=$as_save_IFS |
| 3097 |
test -z "$as_dir" && as_dir=. |
| 3098 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3099 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3100 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3101 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3102 |
break 2 |
| 3103 |
fi |
| 3104 |
done |
| 3105 |
done |
| 3106 |
|
| 3107 |
fi |
| 3108 |
fi |
| 3109 |
CC=$ac_cv_prog_CC |
| 3110 |
if test -n "$CC"; then |
| 3111 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 3112 |
echo "${ECHO_T}$CC" >&6 |
| 3113 |
else |
| 3114 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3115 |
echo "${ECHO_T}no" >&6 |
| 3116 |
fi |
| 3117 |
|
| 3118 |
fi |
| 3119 |
if test -z "$ac_cv_prog_CC"; then |
| 3120 |
ac_ct_CC=$CC |
| 3121 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3122 |
set dummy gcc; ac_word=$2 |
| 3123 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3124 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3125 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3126 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3127 |
else |
| 3128 |
if test -n "$ac_ct_CC"; then |
| 3129 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3130 |
else |
| 3131 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3132 |
for as_dir in $PATH |
| 3133 |
do |
| 3134 |
IFS=$as_save_IFS |
| 3135 |
test -z "$as_dir" && as_dir=. |
| 3136 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3137 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3138 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3139 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3140 |
break 2 |
| 3141 |
fi |
| 3142 |
done |
| 3143 |
done |
| 3144 |
|
| 3145 |
fi |
| 3146 |
fi |
| 3147 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3148 |
if test -n "$ac_ct_CC"; then |
| 3149 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3150 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3151 |
else |
| 3152 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3153 |
echo "${ECHO_T}no" >&6 |
| 3154 |
fi |
| 3155 |
|
| 3156 |
CC=$ac_ct_CC |
| 3157 |
else |
| 3158 |
CC="$ac_cv_prog_CC" |
| 3159 |
fi |
| 3160 |
|
| 3161 |
if test -z "$CC"; then |
| 3162 |
if test -n "$ac_tool_prefix"; then |
| 3163 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3164 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3165 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3166 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3167 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 3168 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3169 |
else |
| 3170 |
if test -n "$CC"; then |
| 3171 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3172 |
else |
| 3173 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3174 |
for as_dir in $PATH |
| 3175 |
do |
| 3176 |
IFS=$as_save_IFS |
| 3177 |
test -z "$as_dir" && as_dir=. |
| 3178 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3179 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3180 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3181 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3182 |
break 2 |
| 3183 |
fi |
| 3184 |
done |
| 3185 |
done |
| 3186 |
|
| 3187 |
fi |
| 3188 |
fi |
| 3189 |
CC=$ac_cv_prog_CC |
| 3190 |
if test -n "$CC"; then |
| 3191 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 3192 |
echo "${ECHO_T}$CC" >&6 |
| 3193 |
else |
| 3194 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3195 |
echo "${ECHO_T}no" >&6 |
| 3196 |
fi |
| 3197 |
|
| 3198 |
fi |
| 3199 |
if test -z "$ac_cv_prog_CC"; then |
| 3200 |
ac_ct_CC=$CC |
| 3201 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3202 |
set dummy cc; ac_word=$2 |
| 3203 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3204 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3205 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3206 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3207 |
else |
| 3208 |
if test -n "$ac_ct_CC"; then |
| 3209 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3210 |
else |
| 3211 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3212 |
for as_dir in $PATH |
| 3213 |
do |
| 3214 |
IFS=$as_save_IFS |
| 3215 |
test -z "$as_dir" && as_dir=. |
| 3216 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3217 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3218 |
ac_cv_prog_ac_ct_CC="cc" |
| 3219 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3220 |
break 2 |
| 3221 |
fi |
| 3222 |
done |
| 3223 |
done |
| 3224 |
|
| 3225 |
fi |
| 3226 |
fi |
| 3227 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3228 |
if test -n "$ac_ct_CC"; then |
| 3229 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3230 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3231 |
else |
| 3232 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3233 |
echo "${ECHO_T}no" >&6 |
| 3234 |
fi |
| 3235 |
|
| 3236 |
CC=$ac_ct_CC |
| 3237 |
else |
| 3238 |
CC="$ac_cv_prog_CC" |
| 3239 |
fi |
| 3240 |
|
| 3241 |
fi |
| 3242 |
if test -z "$CC"; then |
| 3243 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3244 |
set dummy cc; ac_word=$2 |
| 3245 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3246 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3247 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 3248 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3249 |
else |
| 3250 |
if test -n "$CC"; then |
| 3251 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3252 |
else |
| 3253 |
ac_prog_rejected=no |
| 3254 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3255 |
for as_dir in $PATH |
| 3256 |
do |
| 3257 |
IFS=$as_save_IFS |
| 3258 |
test -z "$as_dir" && as_dir=. |
| 3259 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3260 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3261 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3262 |
ac_prog_rejected=yes |
| 3263 |
continue |
| 3264 |
fi |
| 3265 |
ac_cv_prog_CC="cc" |
| 3266 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3267 |
break 2 |
| 3268 |
fi |
| 3269 |
done |
| 3270 |
done |
| 3271 |
|
| 3272 |
if test $ac_prog_rejected = yes; then |
| 3273 |
# We found a bogon in the path, so make sure we never use it. |
| 3274 |
set dummy $ac_cv_prog_CC |
| 3275 |
shift |
| 3276 |
if test $# != 0; then |
| 3277 |
# We chose a different compiler from the bogus one. |
| 3278 |
# However, it has the same basename, so the bogon will be chosen |
| 3279 |
# first if we set CC to just the basename; use the full file name. |
| 3280 |
shift |
| 3281 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3282 |
fi |
| 3283 |
fi |
| 3284 |
fi |
| 3285 |
fi |
| 3286 |
CC=$ac_cv_prog_CC |
| 3287 |
if test -n "$CC"; then |
| 3288 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 3289 |
echo "${ECHO_T}$CC" >&6 |
| 3290 |
else |
| 3291 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3292 |
echo "${ECHO_T}no" >&6 |
| 3293 |
fi |
| 3294 |
|
| 3295 |
fi |
| 3296 |
if test -z "$CC"; then |
| 3297 |
if test -n "$ac_tool_prefix"; then |
| 3298 |
for ac_prog in cl |
| 3299 |
do |
| 3300 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3301 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3302 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3303 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3304 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 3305 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3306 |
else |
| 3307 |
if test -n "$CC"; then |
| 3308 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3309 |
else |
| 3310 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3311 |
for as_dir in $PATH |
| 3312 |
do |
| 3313 |
IFS=$as_save_IFS |
| 3314 |
test -z "$as_dir" && as_dir=. |
| 3315 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3316 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3317 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3318 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3319 |
break 2 |
| 3320 |
fi |
| 3321 |
done |
| 3322 |
done |
| 3323 |
|
| 3324 |
fi |
| 3325 |
fi |
| 3326 |
CC=$ac_cv_prog_CC |
| 3327 |
if test -n "$CC"; then |
| 3328 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 3329 |
echo "${ECHO_T}$CC" >&6 |
| 3330 |
else |
| 3331 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3332 |
echo "${ECHO_T}no" >&6 |
| 3333 |
fi |
| 3334 |
|
| 3335 |
test -n "$CC" && break |
| 3336 |
done |
| 3337 |
fi |
| 3338 |
if test -z "$CC"; then |
| 3339 |
ac_ct_CC=$CC |
| 3340 |
for ac_prog in cl |
| 3341 |
do |
| 3342 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3343 |
set dummy $ac_prog; ac_word=$2 |
| 3344 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3345 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3346 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3347 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3348 |
else |
| 3349 |
if test -n "$ac_ct_CC"; then |
| 3350 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3351 |
else |
| 3352 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3353 |
for as_dir in $PATH |
| 3354 |
do |
| 3355 |
IFS=$as_save_IFS |
| 3356 |
test -z "$as_dir" && as_dir=. |
| 3357 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3358 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3359 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3360 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3361 |
break 2 |
| 3362 |
fi |
| 3363 |
done |
| 3364 |
done |
| 3365 |
|
| 3366 |
fi |
| 3367 |
fi |
| 3368 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3369 |
if test -n "$ac_ct_CC"; then |
| 3370 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3371 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3372 |
else |
| 3373 |
echo "$as_me:$LINENO: result: no" >&5 |
| 3374 |
echo "${ECHO_T}no" >&6 |
| 3375 |
fi |
| 3376 |
|
| 3377 |
test -n "$ac_ct_CC" && break |
| 3378 |
done |
| 3379 |
|
| 3380 |
CC=$ac_ct_CC |
| 3381 |
fi |
| 3382 |
|
| 3383 |
fi |
| 3384 |
|
| 3385 |
|
| 3386 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3387 |
See \`config.log' for more details." >&5 |
| 3388 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3389 |
See \`config.log' for more details." >&2;} |
| 3390 |
{ (exit 1); exit 1; }; } |
| 3391 |
|
| 3392 |
# Provide some information about the compiler. |
| 3393 |
echo "$as_me:$LINENO:" \ |
| 3394 |
"checking for C compiler version" >&5 |
| 3395 |
ac_compiler=`set X $ac_compile; echo $2` |
| 3396 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3397 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3398 |
ac_status=$? |
| 3399 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3400 |
(exit $ac_status); } |
| 3401 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3402 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3403 |
ac_status=$? |
| 3404 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3405 |
(exit $ac_status); } |
| 3406 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3407 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3408 |
ac_status=$? |
| 3409 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3410 |
(exit $ac_status); } |
| 3411 |
|
| 3412 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3413 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3414 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3415 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3416 |
else |
| 3417 |
cat >conftest.$ac_ext <<_ACEOF |
| 3418 |
/* confdefs.h. */ |
| 3419 |
_ACEOF |
| 3420 |
cat confdefs.h >>conftest.$ac_ext |
| 3421 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3422 |
/* end confdefs.h. */ |
| 3423 |
|
| 3424 |
int |
| 3425 |
main () |
| 3426 |
{ |
| 3427 |
#ifndef __GNUC__ |
| 3428 |
choke me |
| 3429 |
#endif |
| 3430 |
|
| 3431 |
; |
| 3432 |
return 0; |
| 3433 |
} |
| 3434 |
_ACEOF |
| 3435 |
rm -f conftest.$ac_objext |
| 3436 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3437 |
(eval $ac_compile) 2>conftest.er1 |
| 3438 |
ac_status=$? |
| 3439 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3440 |
rm -f conftest.er1 |
| 3441 |
cat conftest.err >&5 |
| 3442 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3443 |
(exit $ac_status); } && |
| 3444 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3445 |
|| test ! -s conftest.err' |
| 3446 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3447 |
(eval $ac_try) 2>&5 |
| 3448 |
ac_status=$? |
| 3449 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3450 |
(exit $ac_status); }; } && |
| 3451 |
{ ac_try='test -s conftest.$ac_objext' |
| 3452 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3453 |
(eval $ac_try) 2>&5 |
| 3454 |
ac_status=$? |
| 3455 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3456 |
(exit $ac_status); }; }; then |
| 3457 |
ac_compiler_gnu=yes |
| 3458 |
else |
| 3459 |
echo "$as_me: failed program was:" >&5 |
| 3460 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 |
|
| 3462 |
ac_compiler_gnu=no |
| 3463 |
fi |
| 3464 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3465 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3466 |
|
| 3467 |
fi |
| 3468 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3469 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3470 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3471 |
ac_test_CFLAGS=${CFLAGS+set} |
| 3472 |
ac_save_CFLAGS=$CFLAGS |
| 3473 |
CFLAGS="-g" |
| 3474 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3475 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3476 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3477 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3478 |
else |
| 3479 |
cat >conftest.$ac_ext <<_ACEOF |
| 3480 |
/* confdefs.h. */ |
| 3481 |
_ACEOF |
| 3482 |
cat confdefs.h >>conftest.$ac_ext |
| 3483 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3484 |
/* end confdefs.h. */ |
| 3485 |
|
| 3486 |
int |
| 3487 |
main () |
| 3488 |
{ |
| 3489 |
|
| 3490 |
; |
| 3491 |
return 0; |
| 3492 |
} |
| 3493 |
_ACEOF |
| 3494 |
rm -f conftest.$ac_objext |
| 3495 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3496 |
(eval $ac_compile) 2>conftest.er1 |
| 3497 |
ac_status=$? |
| 3498 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3499 |
rm -f conftest.er1 |
| 3500 |
cat conftest.err >&5 |
| 3501 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3502 |
(exit $ac_status); } && |
| 3503 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3504 |
|| test ! -s conftest.err' |
| 3505 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3506 |
(eval $ac_try) 2>&5 |
| 3507 |
ac_status=$? |
| 3508 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3509 |
(exit $ac_status); }; } && |
| 3510 |
{ ac_try='test -s conftest.$ac_objext' |
| 3511 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3512 |
(eval $ac_try) 2>&5 |
| 3513 |
ac_status=$? |
| 3514 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3515 |
(exit $ac_status); }; }; then |
| 3516 |
ac_cv_prog_cc_g=yes |
| 3517 |
else |
| 3518 |
echo "$as_me: failed program was:" >&5 |
| 3519 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3520 |
|
| 3521 |
ac_cv_prog_cc_g=no |
| 3522 |
fi |
| 3523 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3524 |
fi |
| 3525 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3526 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3527 |
if test "$ac_test_CFLAGS" = set; then |
| 3528 |
CFLAGS=$ac_save_CFLAGS |
| 3529 |
elif test $ac_cv_prog_cc_g = yes; then |
| 3530 |
if test "$GCC" = yes; then |
| 3531 |
CFLAGS="-g -O2" |
| 3532 |
else |
| 3533 |
CFLAGS="-g" |
| 3534 |
fi |
| 3535 |
else |
| 3536 |
if test "$GCC" = yes; then |
| 3537 |
CFLAGS="-O2" |
| 3538 |
else |
| 3539 |
CFLAGS= |
| 3540 |
fi |
| 3541 |
fi |
| 3542 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3543 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3544 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3545 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3546 |
else |
| 3547 |
ac_cv_prog_cc_stdc=no |
| 3548 |
ac_save_CC=$CC |
| 3549 |
cat >conftest.$ac_ext <<_ACEOF |
| 3550 |
/* confdefs.h. */ |
| 3551 |
_ACEOF |
| 3552 |
cat confdefs.h >>conftest.$ac_ext |
| 3553 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3554 |
/* end confdefs.h. */ |
| 3555 |
#include <stdarg.h> |
| 3556 |
#include <stdio.h> |
| 3557 |
#include <sys/types.h> |
| 3558 |
#include <sys/stat.h> |
| 3559 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3560 |
struct buf { int x; }; |
| 3561 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3562 |
static char *e (p, i) |
| 3563 |
char **p; |
| 3564 |
int i; |
| 3565 |
{ |
| 3566 |
return p[i]; |
| 3567 |
} |
| 3568 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 3569 |
{ |
| 3570 |
char *s; |
| 3571 |
va_list v; |
| 3572 |
va_start (v,p); |
| 3573 |
s = g (p, va_arg (v,int)); |
| 3574 |
va_end (v); |
| 3575 |
return s; |
| 3576 |
} |
| 3577 |
|
| 3578 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3579 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 3580 |
These don't provoke an error unfortunately, instead are silently treated |
| 3581 |
as 'x'. The following induces an error, until -std1 is added to get |
| 3582 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3583 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 3584 |
that's true only with -std1. */ |
| 3585 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3586 |
|
| 3587 |
int test (int i, double x); |
| 3588 |
struct s1 {int (*f) (int a);}; |
| 3589 |
struct s2 {int (*f) (double a);}; |
| 3590 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3591 |
int argc; |
| 3592 |
char **argv; |
| 3593 |
int |
| 3594 |
main () |
| 3595 |
{ |
| 3596 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3597 |
; |
| 3598 |
return 0; |
| 3599 |
} |
| 3600 |
_ACEOF |
| 3601 |
# Don't try gcc -ansi; that turns off useful extensions and |
| 3602 |
# breaks some systems' header files. |
| 3603 |
# AIX -qlanglvl=ansi |
| 3604 |
# Ultrix and OSF/1 -std1 |
| 3605 |
# HP-UX 10.20 and later -Ae |
| 3606 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3607 |
# SVR4 -Xc -D__EXTENSIONS__ |
| 3608 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3609 |
do |
| 3610 |
CC="$ac_save_CC $ac_arg" |
| 3611 |
rm -f conftest.$ac_objext |
| 3612 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3613 |
(eval $ac_compile) 2>conftest.er1 |
| 3614 |
ac_status=$? |
| 3615 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3616 |
rm -f conftest.er1 |
| 3617 |
cat conftest.err >&5 |
| 3618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3619 |
(exit $ac_status); } && |
| 3620 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3621 |
|| test ! -s conftest.err' |
| 3622 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3623 |
(eval $ac_try) 2>&5 |
| 3624 |
ac_status=$? |
| 3625 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3626 |
(exit $ac_status); }; } && |
| 3627 |
{ ac_try='test -s conftest.$ac_objext' |
| 3628 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3629 |
(eval $ac_try) 2>&5 |
| 3630 |
ac_status=$? |
| 3631 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3632 |
(exit $ac_status); }; }; then |
| 3633 |
ac_cv_prog_cc_stdc=$ac_arg |
| 3634 |
break |
| 3635 |
else |
| 3636 |
echo "$as_me: failed program was:" >&5 |
| 3637 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3638 |
|
| 3639 |
fi |
| 3640 |
rm -f conftest.err conftest.$ac_objext |
| 3641 |
done |
| 3642 |
rm -f conftest.$ac_ext conftest.$ac_objext |
| 3643 |
CC=$ac_save_CC |
| 3644 |
|
| 3645 |
fi |
| 3646 |
|
| 3647 |
case "x$ac_cv_prog_cc_stdc" in |
| 3648 |
x|xno) |
| 3649 |
echo "$as_me:$LINENO: result: none needed" >&5 |
| 3650 |
echo "${ECHO_T}none needed" >&6 ;; |
| 3651 |
*) |
| 3652 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3653 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3654 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3655 |
esac |
| 3656 |
|
| 3657 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| 3658 |
# in C++ we need to declare it. In case someone uses the same compiler |
| 3659 |
# for both compiling C and C++ we need to have the C++ compiler decide |
| 3660 |
# the declaration of exit, since it's the most demanding environment. |
| 3661 |
cat >conftest.$ac_ext <<_ACEOF |
| 3662 |
#ifndef __cplusplus |
| 3663 |
choke me |
| 3664 |
#endif |
| 3665 |
_ACEOF |
| 3666 |
rm -f conftest.$ac_objext |
| 3667 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3668 |
(eval $ac_compile) 2>conftest.er1 |
| 3669 |
ac_status=$? |
| 3670 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3671 |
rm -f conftest.er1 |
| 3672 |
cat conftest.err >&5 |
| 3673 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3674 |
(exit $ac_status); } && |
| 3675 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3676 |
|| test ! -s conftest.err' |
| 3677 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3678 |
(eval $ac_try) 2>&5 |
| 3679 |
ac_status=$? |
| 3680 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3681 |
(exit $ac_status); }; } && |
| 3682 |
{ ac_try='test -s conftest.$ac_objext' |
| 3683 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3684 |
(eval $ac_try) 2>&5 |
| 3685 |
ac_status=$? |
| 3686 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3687 |
(exit $ac_status); }; }; then |
| 3688 |
for ac_declaration in \ |
| 3689 |
'' \ |
| 3690 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3691 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 3692 |
'extern "C" void exit (int) throw ();' \ |
| 3693 |
'extern "C" void exit (int);' \ |
| 3694 |
'void exit (int);' |
| 3695 |
do |
| 3696 |
cat >conftest.$ac_ext <<_ACEOF |
| 3697 |
/* confdefs.h. */ |
| 3698 |
_ACEOF |
| 3699 |
cat confdefs.h >>conftest.$ac_ext |
| 3700 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3701 |
/* end confdefs.h. */ |
| 3702 |
$ac_declaration |
| 3703 |
#include <stdlib.h> |
| 3704 |
int |
| 3705 |
main () |
| 3706 |
{ |
| 3707 |
exit (42); |
| 3708 |
; |
| 3709 |
return 0; |
| 3710 |
} |
| 3711 |
_ACEOF |
| 3712 |
rm -f conftest.$ac_objext |
| 3713 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3714 |
(eval $ac_compile) 2>conftest.er1 |
| 3715 |
ac_status=$? |
| 3716 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3717 |
rm -f conftest.er1 |
| 3718 |
cat conftest.err >&5 |
| 3719 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3720 |
(exit $ac_status); } && |
| 3721 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3722 |
|| test ! -s conftest.err' |
| 3723 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3724 |
(eval $ac_try) 2>&5 |
| 3725 |
ac_status=$? |
| 3726 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3727 |
(exit $ac_status); }; } && |
| 3728 |
{ ac_try='test -s conftest.$ac_objext' |
| 3729 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3730 |
(eval $ac_try) 2>&5 |
| 3731 |
ac_status=$? |
| 3732 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3733 |
(exit $ac_status); }; }; then |
| 3734 |
: |
| 3735 |
else |
| 3736 |
echo "$as_me: failed program was:" >&5 |
| 3737 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3738 |
|
| 3739 |
continue |
| 3740 |
fi |
| 3741 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3742 |
cat >conftest.$ac_ext <<_ACEOF |
| 3743 |
/* confdefs.h. */ |
| 3744 |
_ACEOF |
| 3745 |
cat confdefs.h >>conftest.$ac_ext |
| 3746 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3747 |
/* end confdefs.h. */ |
| 3748 |
$ac_declaration |
| 3749 |
int |
| 3750 |
main () |
| 3751 |
{ |
| 3752 |
exit (42); |
| 3753 |
; |
| 3754 |
return 0; |
| 3755 |
} |
| 3756 |
_ACEOF |
| 3757 |
rm -f conftest.$ac_objext |
| 3758 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3759 |
(eval $ac_compile) 2>conftest.er1 |
| 3760 |
ac_status=$? |
| 3761 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3762 |
rm -f conftest.er1 |
| 3763 |
cat conftest.err >&5 |
| 3764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3765 |
(exit $ac_status); } && |
| 3766 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 3767 |
|| test ! -s conftest.err' |
| 3768 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3769 |
(eval $ac_try) 2>&5 |
| 3770 |
ac_status=$? |
| 3771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3772 |
(exit $ac_status); }; } && |
| 3773 |
{ ac_try='test -s conftest.$ac_objext' |
| 3774 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3775 |
(eval $ac_try) 2>&5 |
| 3776 |
ac_status=$? |
| 3777 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3778 |
(exit $ac_status); }; }; then |
| 3779 |
break |
| 3780 |
else |
| 3781 |
echo "$as_me: failed program was:" >&5 |
| 3782 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3783 |
|
| 3784 |
fi |
| 3785 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3786 |
done |
| 3787 |
rm -f conftest* |
| 3788 |
if test -n "$ac_declaration"; then |
| 3789 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 3790 |
echo $ac_declaration >>confdefs.h |
| 3791 |
echo '#endif' >>confdefs.h |
| 3792 |
fi |
| 3793 |
|
| 3794 |
else |
| 3795 |
echo "$as_me: failed program was:" >&5 |
| 3796 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3797 |
|
| 3798 |
fi |
| 3799 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3800 |
ac_ext=c |
| 3801 |
ac_cpp='$CPP $CPPFLAGS' |
| 3802 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3803 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3804 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3805 |
|
| 3806 |
|
| 3807 |
if test "$asc_ansi_ok" = no ; then |
| 3808 |
CC=$asc_orig_cc |
| 3809 |
{ { echo "$as_me:$LINENO: error: Cannot find an ANSI C compiler. ASCEND will not build |
| 3810 |
without an ANSI compiler. If you have an ANSI compiler which |
| 3811 |
configure is not finding, set the CC environment variable to |
| 3812 |
the full path fo the compiler and rerun configure." >&5 |
| 3813 |
echo "$as_me: error: Cannot find an ANSI C compiler. ASCEND will not build |
| 3814 |
without an ANSI compiler. If you have an ANSI compiler which |
| 3815 |
configure is not finding, set the CC environment variable to |
| 3816 |
the full path fo the compiler and rerun configure." >&2;} |
| 3817 |
{ (exit 1); exit 1; }; } |
| 3818 |
fi |
| 3819 |
|
| 3820 |
|
| 3821 |
#-------------------------------------------------------------------- |
| 3822 |
# Do other misc checks with CC and CFLAGS. |
| 3823 |
# |
| 3824 |
# Determine how to run the C preprocessor. |
| 3825 |
# |
| 3826 |
# If the user specifies --enable-optimization, remove `-g' |
| 3827 |
# from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If |
| 3828 |
# we are not building optimized, check for special libraries |
| 3829 |
# needed for building a debugging binary (currenly only |
| 3830 |
# /usr/lib/end.o under HPUX). |
| 3831 |
# |
| 3832 |
# Check if we're running on AIX; if so, add `-D_ALL_SOURCE' |
| 3833 |
# to CFLAGS. |
| 3834 |
# |
| 3835 |
# Check if we're running on HPUX; if so, add -D_HPUX_SOURCE' |
| 3836 |
# to CFLAGS unless the C preprocessor goes it for us. |
| 3837 |
#-------------------------------------------------------------------- |
| 3838 |
|
| 3839 |
ac_ext=c |
| 3840 |
ac_cpp='$CPP $CPPFLAGS' |
| 3841 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3842 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3843 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3844 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3845 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3846 |
# On Suns, sometimes $CPP names a directory. |
| 3847 |
if test -n "$CPP" && test -d "$CPP"; then |
| 3848 |
CPP= |
| 3849 |
fi |
| 3850 |
if test -z "$CPP"; then |
| 3851 |
if test "${ac_cv_prog_CPP+set}" = set; then |
| 3852 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3853 |
else |
| 3854 |
# Double quotes because CPP needs to be expanded |
| 3855 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3856 |
do |
| 3857 |
ac_preproc_ok=false |
| 3858 |
for ac_c_preproc_warn_flag in '' yes |
| 3859 |
do |
| 3860 |
# Use a header file that comes with gcc, so configuring glibc |
| 3861 |
# with a fresh cross-compiler works. |
| 3862 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3863 |
# <limits.h> exists even on freestanding compilers. |
| 3864 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3865 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3866 |
cat >conftest.$ac_ext <<_ACEOF |
| 3867 |
/* confdefs.h. */ |
| 3868 |
_ACEOF |
| 3869 |
cat confdefs.h >>conftest.$ac_ext |
| 3870 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3871 |
/* end confdefs.h. */ |
| 3872 |
#ifdef __STDC__ |
| 3873 |
# include <limits.h> |
| 3874 |
#else |
| 3875 |
# include <assert.h> |
| 3876 |
#endif |
| 3877 |
Syntax error |
| 3878 |
_ACEOF |
| 3879 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3880 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3881 |
ac_status=$? |
| 3882 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3883 |
rm -f conftest.er1 |
| 3884 |
cat conftest.err >&5 |
| 3885 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3886 |
(exit $ac_status); } >/dev/null; then |
| 3887 |
if test -s conftest.err; then |
| 3888 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3889 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3890 |
else |
| 3891 |
ac_cpp_err= |
| 3892 |
fi |
| 3893 |
else |
| 3894 |
ac_cpp_err=yes |
| 3895 |
fi |
| 3896 |
if test -z "$ac_cpp_err"; then |
| 3897 |
: |
| 3898 |
else |
| 3899 |
echo "$as_me: failed program was:" >&5 |
| 3900 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3901 |
|
| 3902 |
# Broken: fails on valid input. |
| 3903 |
continue |
| 3904 |
fi |
| 3905 |
rm -f conftest.err conftest.$ac_ext |
| 3906 |
|
| 3907 |
# OK, works on sane cases. Now check whether non-existent headers |
| 3908 |
# can be detected and how. |
| 3909 |
cat >conftest.$ac_ext <<_ACEOF |
| 3910 |
/* confdefs.h. */ |
| 3911 |
_ACEOF |
| 3912 |
cat confdefs.h >>conftest.$ac_ext |
| 3913 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3914 |
/* end confdefs.h. */ |
| 3915 |
#include <ac_nonexistent.h> |
| 3916 |
_ACEOF |
| 3917 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3918 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3919 |
ac_status=$? |
| 3920 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3921 |
rm -f conftest.er1 |
| 3922 |
cat conftest.err >&5 |
| 3923 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3924 |
(exit $ac_status); } >/dev/null; then |
| 3925 |
if test -s conftest.err; then |
| 3926 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3927 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3928 |
else |
| 3929 |
ac_cpp_err= |
| 3930 |
fi |
| 3931 |
else |
| 3932 |
ac_cpp_err=yes |
| 3933 |
fi |
| 3934 |
if test -z "$ac_cpp_err"; then |
| 3935 |
# Broken: success on invalid input. |
| 3936 |
continue |
| 3937 |
else |
| 3938 |
echo "$as_me: failed program was:" >&5 |
| 3939 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3940 |
|
| 3941 |
# Passes both tests. |
| 3942 |
ac_preproc_ok=: |
| 3943 |
break |
| 3944 |
fi |
| 3945 |
rm -f conftest.err conftest.$ac_ext |
| 3946 |
|
| 3947 |
done |
| 3948 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3949 |
rm -f conftest.err conftest.$ac_ext |
| 3950 |
if $ac_preproc_ok; then |
| 3951 |
break |
| 3952 |
fi |
| 3953 |
|
| 3954 |
done |
| 3955 |
ac_cv_prog_CPP=$CPP |
| 3956 |
|
| 3957 |
fi |
| 3958 |
CPP=$ac_cv_prog_CPP |
| 3959 |
else |
| 3960 |
ac_cv_prog_CPP=$CPP |
| 3961 |
fi |
| 3962 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3963 |
echo "${ECHO_T}$CPP" >&6 |
| 3964 |
ac_preproc_ok=false |
| 3965 |
for ac_c_preproc_warn_flag in '' yes |
| 3966 |
do |
| 3967 |
# Use a header file that comes with gcc, so configuring glibc |
| 3968 |
# with a fresh cross-compiler works. |
| 3969 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3970 |
# <limits.h> exists even on freestanding compilers. |
| 3971 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3972 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3973 |
cat >conftest.$ac_ext <<_ACEOF |
| 3974 |
/* confdefs.h. */ |
| 3975 |
_ACEOF |
| 3976 |
cat confdefs.h >>conftest.$ac_ext |
| 3977 |
cat >>conftest.$ac_ext <<_ACEOF |
| 3978 |
/* end confdefs.h. */ |
| 3979 |
#ifdef __STDC__ |
| 3980 |
# include <limits.h> |
| 3981 |
#else |
| 3982 |
# include <assert.h> |
| 3983 |
#endif |
| 3984 |
Syntax error |
| 3985 |
_ACEOF |
| 3986 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3987 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3988 |
ac_status=$? |
| 3989 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3990 |
rm -f conftest.er1 |
| 3991 |
cat conftest.err >&5 |
| 3992 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 |
(exit $ac_status); } >/dev/null; then |
| 3994 |
if test -s conftest.err; then |
| 3995 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3996 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3997 |
else |
| 3998 |
ac_cpp_err= |
| 3999 |
fi |
| 4000 |
else |
| 4001 |
ac_cpp_err=yes |
| 4002 |
fi |
| 4003 |
if test -z "$ac_cpp_err"; then |
| 4004 |
: |
| 4005 |
else |
| 4006 |
echo "$as_me: failed program was:" >&5 |
| 4007 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4008 |
|
| 4009 |
# Broken: fails on valid input. |
| 4010 |
continue |
| 4011 |
fi |
| 4012 |
rm -f conftest.err conftest.$ac_ext |
| 4013 |
|
| 4014 |
# OK, works on sane cases. Now check whether non-existent headers |
| 4015 |
# can be detected and how. |
| 4016 |
cat >conftest.$ac_ext <<_ACEOF |
| 4017 |
/* confdefs.h. */ |
| 4018 |
_ACEOF |
| 4019 |
cat confdefs.h >>conftest.$ac_ext |
| 4020 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4021 |
/* end confdefs.h. */ |
| 4022 |
#include <ac_nonexistent.h> |
| 4023 |
_ACEOF |
| 4024 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4025 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4026 |
ac_status=$? |
| 4027 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4028 |
rm -f conftest.er1 |
| 4029 |
cat conftest.err >&5 |
| 4030 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4031 |
(exit $ac_status); } >/dev/null; then |
| 4032 |
if test -s conftest.err; then |
| 4033 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4034 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4035 |
else |
| 4036 |
ac_cpp_err= |
| 4037 |
fi |
| 4038 |
else |
| 4039 |
ac_cpp_err=yes |
| 4040 |
fi |
| 4041 |
if test -z "$ac_cpp_err"; then |
| 4042 |
# Broken: success on invalid input. |
| 4043 |
continue |
| 4044 |
else |
| 4045 |
echo "$as_me: failed program was:" >&5 |
| 4046 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4047 |
|
| 4048 |
# Passes both tests. |
| 4049 |
ac_preproc_ok=: |
| 4050 |
break |
| 4051 |
fi |
| 4052 |
rm -f conftest.err conftest.$ac_ext |
| 4053 |
|
| 4054 |
done |
| 4055 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4056 |
rm -f conftest.err conftest.$ac_ext |
| 4057 |
if $ac_preproc_ok; then |
| 4058 |
: |
| 4059 |
else |
| 4060 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4061 |
See \`config.log' for more details." >&5 |
| 4062 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4063 |
See \`config.log' for more details." >&2;} |
| 4064 |
{ (exit 1); exit 1; }; } |
| 4065 |
fi |
| 4066 |
|
| 4067 |
ac_ext=c |
| 4068 |
ac_cpp='$CPP $CPPFLAGS' |
| 4069 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4070 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4071 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4072 |
|
| 4073 |
|
| 4074 |
# Check whether --enable-optimization or --disable-optimization was given. |
| 4075 |
if test "${enable_optimization+set}" = set; then |
| 4076 |
enableval="$enable_optimization" |
| 4077 |
asc_do_opt="$enableval" |
| 4078 |
else |
| 4079 |
asc_do_opt=no |
| 4080 |
fi; |
| 4081 |
if test "$asc_do_opt" = yes; then |
| 4082 |
CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'` |
| 4083 |
cat >>confdefs.h <<\_ACEOF |
| 4084 |
#define NDEBUG 1 |
| 4085 |
_ACEOF |
| 4086 |
|
| 4087 |
else |
| 4088 |
# Extract the first word of "end.o", so it can be a program name with args. |
| 4089 |
set dummy end.o; ac_word=$2 |
| 4090 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4091 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4092 |
if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then |
| 4093 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4094 |
else |
| 4095 |
case $DEBUG_LIBS in |
| 4096 |
[\\/]* | ?:[\\/]*) |
| 4097 |
ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path. |
| 4098 |
;; |
| 4099 |
*) |
| 4100 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4101 |
for as_dir in /usr/lib |
| 4102 |
do |
| 4103 |
IFS=$as_save_IFS |
| 4104 |
test -z "$as_dir" && as_dir=. |
| 4105 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4106 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4107 |
ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext" |
| 4108 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4109 |
break 2 |
| 4110 |
fi |
| 4111 |
done |
| 4112 |
done |
| 4113 |
|
| 4114 |
;; |
| 4115 |
esac |
| 4116 |
fi |
| 4117 |
DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS |
| 4118 |
|
| 4119 |
if test -n "$DEBUG_LIBS"; then |
| 4120 |
echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5 |
| 4121 |
echo "${ECHO_T}$DEBUG_LIBS" >&6 |
| 4122 |
else |
| 4123 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4124 |
echo "${ECHO_T}no" >&6 |
| 4125 |
fi |
| 4126 |
|
| 4127 |
fi |
| 4128 |
|
| 4129 |
echo "$as_me:$LINENO: checking for AIX" >&5 |
| 4130 |
echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 4131 |
|
| 4132 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4133 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4134 |
if test "${ac_cv_prog_egrep+set}" = set; then |
| 4135 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4136 |
else |
| 4137 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4138 |
then ac_cv_prog_egrep='grep -E' |
| 4139 |
else ac_cv_prog_egrep='egrep' |
| 4140 |
fi |
| 4141 |
fi |
| 4142 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4143 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4144 |
EGREP=$ac_cv_prog_egrep |
| 4145 |
|
| 4146 |
|
| 4147 |
cat >conftest.$ac_ext <<_ACEOF |
| 4148 |
/* confdefs.h. */ |
| 4149 |
_ACEOF |
| 4150 |
cat confdefs.h >>conftest.$ac_ext |
| 4151 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4152 |
/* end confdefs.h. */ |
| 4153 |
|
| 4154 |
#ifdef _AIX |
| 4155 |
yes |
| 4156 |
#endif |
| 4157 |
|
| 4158 |
_ACEOF |
| 4159 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4160 |
$EGREP "yes" >/dev/null 2>&1; then |
| 4161 |
asc_aix=yes ; cat >>confdefs.h <<\_ACEOF |
| 4162 |
#define _ALL_SOURCE 1 |
| 4163 |
_ACEOF |
| 4164 |
|
| 4165 |
else |
| 4166 |
asc_aix=no |
| 4167 |
fi |
| 4168 |
rm -f conftest* |
| 4169 |
|
| 4170 |
echo "$as_me:$LINENO: result: $asc_aix" >&5 |
| 4171 |
echo "${ECHO_T}$asc_aix" >&6 |
| 4172 |
|
| 4173 |
echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5 |
| 4174 |
echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6 |
| 4175 |
cat >conftest.$ac_ext <<_ACEOF |
| 4176 |
/* confdefs.h. */ |
| 4177 |
_ACEOF |
| 4178 |
cat confdefs.h >>conftest.$ac_ext |
| 4179 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4180 |
/* end confdefs.h. */ |
| 4181 |
|
| 4182 |
#ifdef __hpux |
| 4183 |
#ifndef _HPUX_SOURCE |
| 4184 |
yes |
| 4185 |
#endif |
| 4186 |
#endif |
| 4187 |
|
| 4188 |
_ACEOF |
| 4189 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4190 |
$EGREP "yes" >/dev/null 2>&1; then |
| 4191 |
asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF |
| 4192 |
#define _HPUX_SOURCE 1 |
| 4193 |
_ACEOF |
| 4194 |
|
| 4195 |
else |
| 4196 |
asc_hpux=no |
| 4197 |
fi |
| 4198 |
rm -f conftest* |
| 4199 |
|
| 4200 |
echo "$as_me:$LINENO: result: $asc_hpux" >&5 |
| 4201 |
echo "${ECHO_T}$asc_hpux" >&6 |
| 4202 |
|
| 4203 |
# Check the size of pointers; if cross compiling, assume 32 bit pointers |
| 4204 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4205 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4206 |
if test "${ac_cv_header_stdc+set}" = set; then |
| 4207 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4208 |
else |
| 4209 |
cat >conftest.$ac_ext <<_ACEOF |
| 4210 |
/* confdefs.h. */ |
| 4211 |
_ACEOF |
| 4212 |
cat confdefs.h >>conftest.$ac_ext |
| 4213 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4214 |
/* end confdefs.h. */ |
| 4215 |
#include <stdlib.h> |
| 4216 |
#include <stdarg.h> |
| 4217 |
#include <string.h> |
| 4218 |
#include <float.h> |
| 4219 |
|
| 4220 |
int |
| 4221 |
main () |
| 4222 |
{ |
| 4223 |
|
| 4224 |
; |
| 4225 |
return 0; |
| 4226 |
} |
| 4227 |
_ACEOF |
| 4228 |
rm -f conftest.$ac_objext |
| 4229 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4230 |
(eval $ac_compile) 2>conftest.er1 |
| 4231 |
ac_status=$? |
| 4232 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4233 |
rm -f conftest.er1 |
| 4234 |
cat conftest.err >&5 |
| 4235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 |
(exit $ac_status); } && |
| 4237 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4238 |
|| test ! -s conftest.err' |
| 4239 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4240 |
(eval $ac_try) 2>&5 |
| 4241 |
ac_status=$? |
| 4242 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 |
(exit $ac_status); }; } && |
| 4244 |
{ ac_try='test -s conftest.$ac_objext' |
| 4245 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4246 |
(eval $ac_try) 2>&5 |
| 4247 |
ac_status=$? |
| 4248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 |
(exit $ac_status); }; }; then |
| 4250 |
ac_cv_header_stdc=yes |
| 4251 |
else |
| 4252 |
echo "$as_me: failed program was:" >&5 |
| 4253 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4254 |
|
| 4255 |
ac_cv_header_stdc=no |
| 4256 |
fi |
| 4257 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4258 |
|
| 4259 |
if test $ac_cv_header_stdc = yes; then |
| 4260 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4261 |
cat >conftest.$ac_ext <<_ACEOF |
| 4262 |
/* confdefs.h. */ |
| 4263 |
_ACEOF |
| 4264 |
cat confdefs.h >>conftest.$ac_ext |
| 4265 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4266 |
/* end confdefs.h. */ |
| 4267 |
#include <string.h> |
| 4268 |
|
| 4269 |
_ACEOF |
| 4270 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4271 |
$EGREP "memchr" >/dev/null 2>&1; then |
| 4272 |
: |
| 4273 |
else |
| 4274 |
ac_cv_header_stdc=no |
| 4275 |
fi |
| 4276 |
rm -f conftest* |
| 4277 |
|
| 4278 |
fi |
| 4279 |
|
| 4280 |
if test $ac_cv_header_stdc = yes; then |
| 4281 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4282 |
cat >conftest.$ac_ext <<_ACEOF |
| 4283 |
/* confdefs.h. */ |
| 4284 |
_ACEOF |
| 4285 |
cat confdefs.h >>conftest.$ac_ext |
| 4286 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4287 |
/* end confdefs.h. */ |
| 4288 |
#include <stdlib.h> |
| 4289 |
|
| 4290 |
_ACEOF |
| 4291 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4292 |
$EGREP "free" >/dev/null 2>&1; then |
| 4293 |
: |
| 4294 |
else |
| 4295 |
ac_cv_header_stdc=no |
| 4296 |
fi |
| 4297 |
rm -f conftest* |
| 4298 |
|
| 4299 |
fi |
| 4300 |
|
| 4301 |
if test $ac_cv_header_stdc = yes; then |
| 4302 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4303 |
if test "$cross_compiling" = yes; then |
| 4304 |
: |
| 4305 |
else |
| 4306 |
cat >conftest.$ac_ext <<_ACEOF |
| 4307 |
/* confdefs.h. */ |
| 4308 |
_ACEOF |
| 4309 |
cat confdefs.h >>conftest.$ac_ext |
| 4310 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4311 |
/* end confdefs.h. */ |
| 4312 |
#include <ctype.h> |
| 4313 |
#if ((' ' & 0x0FF) == 0x020) |
| 4314 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4315 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4316 |
#else |
| 4317 |
# define ISLOWER(c) \ |
| 4318 |
(('a' <= (c) && (c) <= 'i') \ |
| 4319 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 4320 |
|| ('s' <= (c) && (c) <= 'z')) |
| 4321 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4322 |
#endif |
| 4323 |
|
| 4324 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4325 |
int |
| 4326 |
main () |
| 4327 |
{ |
| 4328 |
int i; |
| 4329 |
for (i = 0; i < 256; i++) |
| 4330 |
if (XOR (islower (i), ISLOWER (i)) |
| 4331 |
|| toupper (i) != TOUPPER (i)) |
| 4332 |
exit(2); |
| 4333 |
exit (0); |
| 4334 |
} |
| 4335 |
_ACEOF |
| 4336 |
rm -f conftest$ac_exeext |
| 4337 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4338 |
(eval $ac_link) 2>&5 |
| 4339 |
ac_status=$? |
| 4340 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4341 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4342 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4343 |
(eval $ac_try) 2>&5 |
| 4344 |
ac_status=$? |
| 4345 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4346 |
(exit $ac_status); }; }; then |
| 4347 |
: |
| 4348 |
else |
| 4349 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 4350 |
echo "$as_me: failed program was:" >&5 |
| 4351 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4352 |
|
| 4353 |
( exit $ac_status ) |
| 4354 |
ac_cv_header_stdc=no |
| 4355 |
fi |
| 4356 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4357 |
fi |
| 4358 |
fi |
| 4359 |
fi |
| 4360 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4361 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4362 |
if test $ac_cv_header_stdc = yes; then |
| 4363 |
|
| 4364 |
cat >>confdefs.h <<\_ACEOF |
| 4365 |
#define STDC_HEADERS 1 |
| 4366 |
_ACEOF |
| 4367 |
|
| 4368 |
fi |
| 4369 |
|
| 4370 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4371 |
|
| 4372 |
|
| 4373 |
|
| 4374 |
|
| 4375 |
|
| 4376 |
|
| 4377 |
|
| 4378 |
|
| 4379 |
|
| 4380 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4381 |
inttypes.h stdint.h unistd.h |
| 4382 |
do |
| 4383 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4384 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4385 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4386 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4387 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4388 |
else |
| 4389 |
cat >conftest.$ac_ext <<_ACEOF |
| 4390 |
/* confdefs.h. */ |
| 4391 |
_ACEOF |
| 4392 |
cat confdefs.h >>conftest.$ac_ext |
| 4393 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4394 |
/* end confdefs.h. */ |
| 4395 |
$ac_includes_default |
| 4396 |
|
| 4397 |
#include <$ac_header> |
| 4398 |
_ACEOF |
| 4399 |
rm -f conftest.$ac_objext |
| 4400 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4401 |
(eval $ac_compile) 2>conftest.er1 |
| 4402 |
ac_status=$? |
| 4403 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4404 |
rm -f conftest.er1 |
| 4405 |
cat conftest.err >&5 |
| 4406 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4407 |
(exit $ac_status); } && |
| 4408 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4409 |
|| test ! -s conftest.err' |
| 4410 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4411 |
(eval $ac_try) 2>&5 |
| 4412 |
ac_status=$? |
| 4413 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4414 |
(exit $ac_status); }; } && |
| 4415 |
{ ac_try='test -s conftest.$ac_objext' |
| 4416 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4417 |
(eval $ac_try) 2>&5 |
| 4418 |
ac_status=$? |
| 4419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 |
(exit $ac_status); }; }; then |
| 4421 |
eval "$as_ac_Header=yes" |
| 4422 |
else |
| 4423 |
echo "$as_me: failed program was:" >&5 |
| 4424 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4425 |
|
| 4426 |
eval "$as_ac_Header=no" |
| 4427 |
fi |
| 4428 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4429 |
fi |
| 4430 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4431 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4432 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4433 |
cat >>confdefs.h <<_ACEOF |
| 4434 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4435 |
_ACEOF |
| 4436 |
|
| 4437 |
fi |
| 4438 |
|
| 4439 |
done |
| 4440 |
|
| 4441 |
|
| 4442 |
echo "$as_me:$LINENO: checking for void *" >&5 |
| 4443 |
echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 4444 |
if test "${ac_cv_type_void_p+set}" = set; then |
| 4445 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4446 |
else |
| 4447 |
cat >conftest.$ac_ext <<_ACEOF |
| 4448 |
/* confdefs.h. */ |
| 4449 |
_ACEOF |
| 4450 |
cat confdefs.h >>conftest.$ac_ext |
| 4451 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4452 |
/* end confdefs.h. */ |
| 4453 |
$ac_includes_default |
| 4454 |
int |
| 4455 |
main () |
| 4456 |
{ |
| 4457 |
if ((void * *) 0) |
| 4458 |
return 0; |
| 4459 |
if (sizeof (void *)) |
| 4460 |
return 0; |
| 4461 |
; |
| 4462 |
return 0; |
| 4463 |
} |
| 4464 |
_ACEOF |
| 4465 |
rm -f conftest.$ac_objext |
| 4466 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4467 |
(eval $ac_compile) 2>conftest.er1 |
| 4468 |
ac_status=$? |
| 4469 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4470 |
rm -f conftest.er1 |
| 4471 |
cat conftest.err >&5 |
| 4472 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4473 |
(exit $ac_status); } && |
| 4474 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4475 |
|| test ! -s conftest.err' |
| 4476 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4477 |
(eval $ac_try) 2>&5 |
| 4478 |
ac_status=$? |
| 4479 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4480 |
(exit $ac_status); }; } && |
| 4481 |
{ ac_try='test -s conftest.$ac_objext' |
| 4482 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4483 |
(eval $ac_try) 2>&5 |
| 4484 |
ac_status=$? |
| 4485 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4486 |
(exit $ac_status); }; }; then |
| 4487 |
ac_cv_type_void_p=yes |
| 4488 |
else |
| 4489 |
echo "$as_me: failed program was:" >&5 |
| 4490 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4491 |
|
| 4492 |
ac_cv_type_void_p=no |
| 4493 |
fi |
| 4494 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4495 |
fi |
| 4496 |
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 4497 |
echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 4498 |
|
| 4499 |
echo "$as_me:$LINENO: checking size of void *" >&5 |
| 4500 |
echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 4501 |
if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 4502 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4503 |
else |
| 4504 |
if test "$ac_cv_type_void_p" = yes; then |
| 4505 |
# The cast to unsigned long works around a bug in the HP C Compiler |
| 4506 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4507 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4508 |
# This bug is HP SR number 8606223364. |
| 4509 |
if test "$cross_compiling" = yes; then |
| 4510 |
# Depending upon the size, compute the lo and hi bounds. |
| 4511 |
cat >conftest.$ac_ext <<_ACEOF |
| 4512 |
/* confdefs.h. */ |
| 4513 |
_ACEOF |
| 4514 |
cat confdefs.h >>conftest.$ac_ext |
| 4515 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4516 |
/* end confdefs.h. */ |
| 4517 |
$ac_includes_default |
| 4518 |
int |
| 4519 |
main () |
| 4520 |
{ |
| 4521 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 4522 |
test_array [0] = 0 |
| 4523 |
|
| 4524 |
; |
| 4525 |
return 0; |
| 4526 |
} |
| 4527 |
_ACEOF |
| 4528 |
rm -f conftest.$ac_objext |
| 4529 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4530 |
(eval $ac_compile) 2>conftest.er1 |
| 4531 |
ac_status=$? |
| 4532 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4533 |
rm -f conftest.er1 |
| 4534 |
cat conftest.err >&5 |
| 4535 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4536 |
(exit $ac_status); } && |
| 4537 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4538 |
|| test ! -s conftest.err' |
| 4539 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4540 |
(eval $ac_try) 2>&5 |
| 4541 |
ac_status=$? |
| 4542 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4543 |
(exit $ac_status); }; } && |
| 4544 |
{ ac_try='test -s conftest.$ac_objext' |
| 4545 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4546 |
(eval $ac_try) 2>&5 |
| 4547 |
ac_status=$? |
| 4548 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4549 |
(exit $ac_status); }; }; then |
| 4550 |
ac_lo=0 ac_mid=0 |
| 4551 |
while :; do |
| 4552 |
cat >conftest.$ac_ext <<_ACEOF |
| 4553 |
/* confdefs.h. */ |
| 4554 |
_ACEOF |
| 4555 |
cat confdefs.h >>conftest.$ac_ext |
| 4556 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4557 |
/* end confdefs.h. */ |
| 4558 |
$ac_includes_default |
| 4559 |
int |
| 4560 |
main () |
| 4561 |
{ |
| 4562 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 4563 |
test_array [0] = 0 |
| 4564 |
|
| 4565 |
; |
| 4566 |
return 0; |
| 4567 |
} |
| 4568 |
_ACEOF |
| 4569 |
rm -f conftest.$ac_objext |
| 4570 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4571 |
(eval $ac_compile) 2>conftest.er1 |
| 4572 |
ac_status=$? |
| 4573 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4574 |
rm -f conftest.er1 |
| 4575 |
cat conftest.err >&5 |
| 4576 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4577 |
(exit $ac_status); } && |
| 4578 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4579 |
|| test ! -s conftest.err' |
| 4580 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4581 |
(eval $ac_try) 2>&5 |
| 4582 |
ac_status=$? |
| 4583 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4584 |
(exit $ac_status); }; } && |
| 4585 |
{ ac_try='test -s conftest.$ac_objext' |
| 4586 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4587 |
(eval $ac_try) 2>&5 |
| 4588 |
ac_status=$? |
| 4589 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 |
(exit $ac_status); }; }; then |
| 4591 |
ac_hi=$ac_mid; break |
| 4592 |
else |
| 4593 |
echo "$as_me: failed program was:" >&5 |
| 4594 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4595 |
|
| 4596 |
ac_lo=`expr $ac_mid + 1` |
| 4597 |
if test $ac_lo -le $ac_mid; then |
| 4598 |
ac_lo= ac_hi= |
| 4599 |
break |
| 4600 |
fi |
| 4601 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4602 |
fi |
| 4603 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4604 |
done |
| 4605 |
else |
| 4606 |
echo "$as_me: failed program was:" >&5 |
| 4607 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4608 |
|
| 4609 |
cat >conftest.$ac_ext <<_ACEOF |
| 4610 |
/* confdefs.h. */ |
| 4611 |
_ACEOF |
| 4612 |
cat confdefs.h >>conftest.$ac_ext |
| 4613 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4614 |
/* end confdefs.h. */ |
| 4615 |
$ac_includes_default |
| 4616 |
int |
| 4617 |
main () |
| 4618 |
{ |
| 4619 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 4620 |
test_array [0] = 0 |
| 4621 |
|
| 4622 |
; |
| 4623 |
return 0; |
| 4624 |
} |
| 4625 |
_ACEOF |
| 4626 |
rm -f conftest.$ac_objext |
| 4627 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4628 |
(eval $ac_compile) 2>conftest.er1 |
| 4629 |
ac_status=$? |
| 4630 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4631 |
rm -f conftest.er1 |
| 4632 |
cat conftest.err >&5 |
| 4633 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4634 |
(exit $ac_status); } && |
| 4635 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4636 |
|| test ! -s conftest.err' |
| 4637 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4638 |
(eval $ac_try) 2>&5 |
| 4639 |
ac_status=$? |
| 4640 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4641 |
(exit $ac_status); }; } && |
| 4642 |
{ ac_try='test -s conftest.$ac_objext' |
| 4643 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4644 |
(eval $ac_try) 2>&5 |
| 4645 |
ac_status=$? |
| 4646 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4647 |
(exit $ac_status); }; }; then |
| 4648 |
ac_hi=-1 ac_mid=-1 |
| 4649 |
while :; do |
| 4650 |
cat >conftest.$ac_ext <<_ACEOF |
| 4651 |
/* confdefs.h. */ |
| 4652 |
_ACEOF |
| 4653 |
cat confdefs.h >>conftest.$ac_ext |
| 4654 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4655 |
/* end confdefs.h. */ |
| 4656 |
$ac_includes_default |
| 4657 |
int |
| 4658 |
main () |
| 4659 |
{ |
| 4660 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 4661 |
test_array [0] = 0 |
| 4662 |
|
| 4663 |
; |
| 4664 |
return 0; |
| 4665 |
} |
| 4666 |
_ACEOF |
| 4667 |
rm -f conftest.$ac_objext |
| 4668 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4669 |
(eval $ac_compile) 2>conftest.er1 |
| 4670 |
ac_status=$? |
| 4671 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4672 |
rm -f conftest.er1 |
| 4673 |
cat conftest.err >&5 |
| 4674 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4675 |
(exit $ac_status); } && |
| 4676 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4677 |
|| test ! -s conftest.err' |
| 4678 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4679 |
(eval $ac_try) 2>&5 |
| 4680 |
ac_status=$? |
| 4681 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4682 |
(exit $ac_status); }; } && |
| 4683 |
{ ac_try='test -s conftest.$ac_objext' |
| 4684 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4685 |
(eval $ac_try) 2>&5 |
| 4686 |
ac_status=$? |
| 4687 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4688 |
(exit $ac_status); }; }; then |
| 4689 |
ac_lo=$ac_mid; break |
| 4690 |
else |
| 4691 |
echo "$as_me: failed program was:" >&5 |
| 4692 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4693 |
|
| 4694 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4695 |
if test $ac_mid -le $ac_hi; then |
| 4696 |
ac_lo= ac_hi= |
| 4697 |
break |
| 4698 |
fi |
| 4699 |
ac_mid=`expr 2 '*' $ac_mid` |
| 4700 |
fi |
| 4701 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4702 |
done |
| 4703 |
else |
| 4704 |
echo "$as_me: failed program was:" >&5 |
| 4705 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4706 |
|
| 4707 |
ac_lo= ac_hi= |
| 4708 |
fi |
| 4709 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4710 |
fi |
| 4711 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4712 |
# Binary search between lo and hi bounds. |
| 4713 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 4714 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4715 |
cat >conftest.$ac_ext <<_ACEOF |
| 4716 |
/* confdefs.h. */ |
| 4717 |
_ACEOF |
| 4718 |
cat confdefs.h >>conftest.$ac_ext |
| 4719 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4720 |
/* end confdefs.h. */ |
| 4721 |
$ac_includes_default |
| 4722 |
int |
| 4723 |
main () |
| 4724 |
{ |
| 4725 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 4726 |
test_array [0] = 0 |
| 4727 |
|
| 4728 |
; |
| 4729 |
return 0; |
| 4730 |
} |
| 4731 |
_ACEOF |
| 4732 |
rm -f conftest.$ac_objext |
| 4733 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4734 |
(eval $ac_compile) 2>conftest.er1 |
| 4735 |
ac_status=$? |
| 4736 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 4737 |
rm -f conftest.er1 |
| 4738 |
cat conftest.err >&5 |
| 4739 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4740 |
(exit $ac_status); } && |
| 4741 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 4742 |
|| test ! -s conftest.err' |
| 4743 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4744 |
(eval $ac_try) 2>&5 |
| 4745 |
ac_status=$? |
| 4746 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4747 |
(exit $ac_status); }; } && |
| 4748 |
{ ac_try='test -s conftest.$ac_objext' |
| 4749 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4750 |
(eval $ac_try) 2>&5 |
| 4751 |
ac_status=$? |
| 4752 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4753 |
(exit $ac_status); }; }; then |
| 4754 |
ac_hi=$ac_mid |
| 4755 |
else |
| 4756 |
echo "$as_me: failed program was:" >&5 |
| 4757 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4758 |
|
| 4759 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4760 |
fi |
| 4761 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4762 |
done |
| 4763 |
case $ac_lo in |
| 4764 |
?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 4765 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 4766 |
See \`config.log' for more details." >&5 |
| 4767 |
echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 4768 |
See \`config.log' for more details." >&2;} |
| 4769 |
{ (exit 1); exit 1; }; } ;; |
| 4770 |
esac |
| 4771 |
else |
| 4772 |
if test "$cross_compiling" = yes; then |
| 4773 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 4774 |
See \`config.log' for more details." >&5 |
| 4775 |
echo "$as_me: error: cannot run test program while cross compiling |
| 4776 |
See \`config.log' for more details." >&2;} |
| 4777 |
{ (exit 1); exit 1; }; } |
| 4778 |
else |
| 4779 |
cat >conftest.$ac_ext <<_ACEOF |
| 4780 |
/* confdefs.h. */ |
| 4781 |
_ACEOF |
| 4782 |
cat confdefs.h >>conftest.$ac_ext |
| 4783 |
cat >>conftest.$ac_ext <<_ACEOF |
| 4784 |
/* end confdefs.h. */ |
| 4785 |
$ac_includes_default |
| 4786 |
long longval () { return (long) (sizeof (void *)); } |
| 4787 |
unsigned long ulongval () { return (long) (sizeof (void *)); } |
| 4788 |
#include <stdio.h> |
| 4789 |
#include <stdlib.h> |
| 4790 |
int |
| 4791 |
main () |
| 4792 |
{ |
| 4793 |
|
| 4794 |
FILE *f = fopen ("conftest.val", "w"); |
| 4795 |
if (! f) |
| 4796 |
exit (1); |
| 4797 |
if (((long) (sizeof (void *))) < 0) |
| 4798 |
{ |
| 4799 |
long i = longval (); |
| 4800 |
if (i != ((long) (sizeof (void *)))) |
| 4801 |
exit (1); |
| 4802 |
fprintf (f, "%ld\n", i); |
| 4803 |
} |
| 4804 |
else |
| 4805 |
{ |
| 4806 |
unsigned long i = ulongval (); |
| 4807 |
if (i != ((long) (sizeof (void *)))) |
| 4808 |
exit (1); |
| 4809 |
fprintf (f, "%lu\n", i); |
| 4810 |
} |
| 4811 |
exit (ferror (f) || fclose (f) != 0); |
| 4812 |
|
| 4813 |
; |
| 4814 |
return 0; |
| 4815 |
} |
| 4816 |
_ACEOF |
| 4817 |
rm -f conftest$ac_exeext |
| 4818 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4819 |
(eval $ac_link) 2>&5 |
| 4820 |
ac_status=$? |
| 4821 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4822 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4823 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4824 |
(eval $ac_try) 2>&5 |
| 4825 |
ac_status=$? |
| 4826 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4827 |
(exit $ac_status); }; }; then |
| 4828 |
ac_cv_sizeof_void_p=`cat conftest.val` |
| 4829 |
else |
| 4830 |
echo "$as_me: program exited with status $ac_status" >&5 |
| 4831 |
echo "$as_me: failed program was:" >&5 |
| 4832 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4833 |
|
| 4834 |
( exit $ac_status ) |
| 4835 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 4836 |
See \`config.log' for more details." >&5 |
| 4837 |
echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 4838 |
See \`config.log' for more details." >&2;} |
| 4839 |
{ (exit 1); exit 1; }; } |
| 4840 |
fi |
| 4841 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4842 |
fi |
| 4843 |
fi |
| 4844 |
rm -f conftest.val |
| 4845 |
else |
| 4846 |
ac_cv_sizeof_void_p=0 |
| 4847 |
fi |
| 4848 |
fi |
| 4849 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 4850 |
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 4851 |
cat >>confdefs.h <<_ACEOF |
| 4852 |
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 4853 |
_ACEOF |
| 4854 |
|
| 4855 |
|
| 4856 |
|
| 4857 |
|
| 4858 |
#-------------------------------------------------------------------- |
| 4859 |
# Set YACC. |
| 4860 |
# See if we can find `yacc' ourselves; if not, call the |
| 4861 |
# autoconf macro which looks for `bison' and then for `yacc' |
| 4862 |
#-------------------------------------------------------------------- |
| 4863 |
asc_found_yacc=0 |
| 4864 |
# Extract the first word of "yacc", so it can be a program name with args. |
| 4865 |
set dummy yacc; ac_word=$2 |
| 4866 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4867 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4868 |
if test "${ac_cv_prog_YACC+set}" = set; then |
| 4869 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4870 |
else |
| 4871 |
if test -n "$YACC"; then |
| 4872 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4873 |
else |
| 4874 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4875 |
for as_dir in $PATH |
| 4876 |
do |
| 4877 |
IFS=$as_save_IFS |
| 4878 |
test -z "$as_dir" && as_dir=. |
| 4879 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4880 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4881 |
ac_cv_prog_YACC="yacc" |
| 4882 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4883 |
break 2 |
| 4884 |
fi |
| 4885 |
done |
| 4886 |
done |
| 4887 |
|
| 4888 |
test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="asc_found_yacc=no" |
| 4889 |
fi |
| 4890 |
fi |
| 4891 |
YACC=$ac_cv_prog_YACC |
| 4892 |
if test -n "$YACC"; then |
| 4893 |
echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4894 |
echo "${ECHO_T}$YACC" >&6 |
| 4895 |
else |
| 4896 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4897 |
echo "${ECHO_T}no" >&6 |
| 4898 |
fi |
| 4899 |
|
| 4900 |
if test "$asc_found_yacc" = no ; then |
| 4901 |
for ac_prog in 'bison -y' byacc |
| 4902 |
do |
| 4903 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4904 |
set dummy $ac_prog; ac_word=$2 |
| 4905 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4906 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4907 |
if test "${ac_cv_prog_YACC+set}" = set; then |
| 4908 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4909 |
else |
| 4910 |
if test -n "$YACC"; then |
| 4911 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4912 |
else |
| 4913 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4914 |
for as_dir in $PATH |
| 4915 |
do |
| 4916 |
IFS=$as_save_IFS |
| 4917 |
test -z "$as_dir" && as_dir=. |
| 4918 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4919 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4920 |
ac_cv_prog_YACC="$ac_prog" |
| 4921 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4922 |
break 2 |
| 4923 |
fi |
| 4924 |
done |
| 4925 |
done |
| 4926 |
|
| 4927 |
fi |
| 4928 |
fi |
| 4929 |
YACC=$ac_cv_prog_YACC |
| 4930 |
if test -n "$YACC"; then |
| 4931 |
echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4932 |
echo "${ECHO_T}$YACC" >&6 |
| 4933 |
else |
| 4934 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4935 |
echo "${ECHO_T}no" >&6 |
| 4936 |
fi |
| 4937 |
|
| 4938 |
test -n "$YACC" && break |
| 4939 |
done |
| 4940 |
test -n "$YACC" || YACC="yacc" |
| 4941 |
|
| 4942 |
fi |
| 4943 |
|
| 4944 |
|
| 4945 |
#-------------------------------------------------------------------- |
| 4946 |
# Set LEX. |
| 4947 |
# ASCEND requires a `flex' which understands -P (allows you to |
| 4948 |
# specify a prefix other than `yy'). The -P flag was added at |
| 4949 |
# the same time a -V (version) flag was added (version 2.4.1), |
| 4950 |
# so if `flex' understands -V, it'll understand -P (checking |
| 4951 |
# for -P directly requires a flex input file). |
| 4952 |
# |
| 4953 |
# 1. If `LEX' is not set, look for `flex' and set `LEX' to |
| 4954 |
# `flex' if found. |
| 4955 |
# 2. If `flex' was found, see if it understands -V. If so, |
| 4956 |
# set `scanner_src' and `typer_src' to have `flex' generate |
| 4957 |
# the C files from the flex input files |
| 4958 |
# base/generic/compiler/scanner.l & tcltk98/interface/typelex.l |
| 4959 |
# We don't need to look for libfl.a since we define |
| 4960 |
# yywrap() ourselves. |
| 4961 |
# 3. If `flex' wasn't found or was found but isn't new enough: |
| 4962 |
# a. Print a warning message |
| 4963 |
# b. Set `scanner_src' and `typer_src' to use pre-generated |
| 4964 |
# C files for the flex files mentioned in (2). |
| 4965 |
# c. Set `LEX' to `lex' |
| 4966 |
# d. Search for the lex library `libl.a' and set LEXLIB to |
| 4967 |
# its location. |
| 4968 |
#-------------------------------------------------------------------- |
| 4969 |
# Extract the first word of "flex", so it can be a program name with args. |
| 4970 |
set dummy flex; ac_word=$2 |
| 4971 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4972 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4973 |
if test "${ac_cv_prog_LEX+set}" = set; then |
| 4974 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4975 |
else |
| 4976 |
if test -n "$LEX"; then |
| 4977 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4978 |
else |
| 4979 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4980 |
for as_dir in $PATH |
| 4981 |
do |
| 4982 |
IFS=$as_save_IFS |
| 4983 |
test -z "$as_dir" && as_dir=. |
| 4984 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4985 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4986 |
ac_cv_prog_LEX="flex" |
| 4987 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4988 |
break 2 |
| 4989 |
fi |
| 4990 |
done |
| 4991 |
done |
| 4992 |
|
| 4993 |
fi |
| 4994 |
fi |
| 4995 |
LEX=$ac_cv_prog_LEX |
| 4996 |
if test -n "$LEX"; then |
| 4997 |
echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4998 |
echo "${ECHO_T}$LEX" >&6 |
| 4999 |
else |
| 5000 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5001 |
echo "${ECHO_T}no" >&6 |
| 5002 |
fi |
| 5003 |
|
| 5004 |
|
| 5005 |
if test -n "$LEX" ; then |
| 5006 |
echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5 |
| 5007 |
echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6 |
| 5008 |
echo "$LEX -V" 1>&5 |
| 5009 |
if $LEX -V 1>&5 2>&5 ; then |
| 5010 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 5011 |
echo "${ECHO_T}yes" >&6 |
| 5012 |
scanner_src="scanner.c.from.flex" |
| 5013 |
typer_src="typelex.c.from.flex" |
| 5014 |
else |
| 5015 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5016 |
echo "${ECHO_T}no" >&6 |
| 5017 |
LEX='' |
| 5018 |
fi |
| 5019 |
fi |
| 5020 |
|
| 5021 |
if test -z "$LEX" ; then |
| 5022 |
{ echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater. |
| 5023 |
Using pregenerated C files for base/generic/compiler/scanner.l |
| 5024 |
and tcltk98/interface/typelex.l. If you have flex 2.4.1 |
| 5025 |
or newer, set the LEX environment variable to its location |
| 5026 |
and run configure again." >&5 |
| 5027 |
echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater. |
| 5028 |
Using pregenerated C files for base/generic/compiler/scanner.l |
| 5029 |
and tcltk98/interface/typelex.l. If you have flex 2.4.1 |
| 5030 |
or newer, set the LEX environment variable to its location |
| 5031 |
and run configure again." >&2;} |
| 5032 |
scanner_src="scanner.c.from.c" |
| 5033 |
typer_src="typelex.c.from.c" |
| 5034 |
|
| 5035 |
# let configure set LEX and LEXLIB even though we won't be using them |
| 5036 |
for ac_prog in flex lex |
| 5037 |
do |
| 5038 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5039 |
set dummy $ac_prog; ac_word=$2 |
| 5040 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5041 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5042 |
if test "${ac_cv_prog_LEX+set}" = set; then |
| 5043 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5044 |
else |
| 5045 |
if test -n "$LEX"; then |
| 5046 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5047 |
else |
| 5048 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5049 |
for as_dir in $PATH |
| 5050 |
do |
| 5051 |
IFS=$as_save_IFS |
| 5052 |
test -z "$as_dir" && as_dir=. |
| 5053 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5054 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5055 |
ac_cv_prog_LEX="$ac_prog" |
| 5056 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5057 |
break 2 |
| 5058 |
fi |
| 5059 |
done |
| 5060 |
done |
| 5061 |
|
| 5062 |
fi |
| 5063 |
fi |
| 5064 |
LEX=$ac_cv_prog_LEX |
| 5065 |
if test -n "$LEX"; then |
| 5066 |
echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5067 |
echo "${ECHO_T}$LEX" >&6 |
| 5068 |
else |
| 5069 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5070 |
echo "${ECHO_T}no" >&6 |
| 5071 |
fi |
| 5072 |
|
| 5073 |
test -n "$LEX" && break |
| 5074 |
done |
| 5075 |
test -n "$LEX" || LEX=":" |
| 5076 |
|
| 5077 |
if test -z "$LEXLIB" |
| 5078 |
then |
| 5079 |
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 5080 |
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 5081 |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 5082 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5083 |
else |
| 5084 |
ac_check_lib_save_LIBS=$LIBS |
| 5085 |
LIBS="-lfl $LIBS" |
| 5086 |
cat >conftest.$ac_ext <<_ACEOF |
| 5087 |
/* confdefs.h. */ |
| 5088 |
_ACEOF |
| 5089 |
cat confdefs.h >>conftest.$ac_ext |
| 5090 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5091 |
/* end confdefs.h. */ |
| 5092 |
|
| 5093 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5094 |
#ifdef __cplusplus |
| 5095 |
extern "C" |
| 5096 |
#endif |
| 5097 |
/* We use char because int might match the return type of a gcc2 |
| 5098 |
builtin and then its argument prototype would still apply. */ |
| 5099 |
char yywrap (); |
| 5100 |
int |
| 5101 |
main () |
| 5102 |
{ |
| 5103 |
yywrap (); |
| 5104 |
; |
| 5105 |
return 0; |
| 5106 |
} |
| 5107 |
_ACEOF |
| 5108 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5109 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5110 |
(eval $ac_link) 2>conftest.er1 |
| 5111 |
ac_status=$? |
| 5112 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5113 |
rm -f conftest.er1 |
| 5114 |
cat conftest.err >&5 |
| 5115 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5116 |
(exit $ac_status); } && |
| 5117 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5118 |
|| test ! -s conftest.err' |
| 5119 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5120 |
(eval $ac_try) 2>&5 |
| 5121 |
ac_status=$? |
| 5122 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5123 |
(exit $ac_status); }; } && |
| 5124 |
{ ac_try='test -s conftest$ac_exeext' |
| 5125 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5126 |
(eval $ac_try) 2>&5 |
| 5127 |
ac_status=$? |
| 5128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 |
(exit $ac_status); }; }; then |
| 5130 |
ac_cv_lib_fl_yywrap=yes |
| 5131 |
else |
| 5132 |
echo "$as_me: failed program was:" >&5 |
| 5133 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5134 |
|
| 5135 |
ac_cv_lib_fl_yywrap=no |
| 5136 |
fi |
| 5137 |
rm -f conftest.err conftest.$ac_objext \ |
| 5138 |
conftest$ac_exeext conftest.$ac_ext |
| 5139 |
LIBS=$ac_check_lib_save_LIBS |
| 5140 |
fi |
| 5141 |
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 5142 |
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 5143 |
if test $ac_cv_lib_fl_yywrap = yes; then |
| 5144 |
LEXLIB="-lfl" |
| 5145 |
else |
| 5146 |
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 5147 |
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 5148 |
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 5149 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5150 |
else |
| 5151 |
ac_check_lib_save_LIBS=$LIBS |
| 5152 |
LIBS="-ll $LIBS" |
| 5153 |
cat >conftest.$ac_ext <<_ACEOF |
| 5154 |
/* confdefs.h. */ |
| 5155 |
_ACEOF |
| 5156 |
cat confdefs.h >>conftest.$ac_ext |
| 5157 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5158 |
/* end confdefs.h. */ |
| 5159 |
|
| 5160 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5161 |
#ifdef __cplusplus |
| 5162 |
extern "C" |
| 5163 |
#endif |
| 5164 |
/* We use char because int might match the return type of a gcc2 |
| 5165 |
builtin and then its argument prototype would still apply. */ |
| 5166 |
char yywrap (); |
| 5167 |
int |
| 5168 |
main () |
| 5169 |
{ |
| 5170 |
yywrap (); |
| 5171 |
; |
| 5172 |
return 0; |
| 5173 |
} |
| 5174 |
_ACEOF |
| 5175 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5176 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5177 |
(eval $ac_link) 2>conftest.er1 |
| 5178 |
ac_status=$? |
| 5179 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5180 |
rm -f conftest.er1 |
| 5181 |
cat conftest.err >&5 |
| 5182 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5183 |
(exit $ac_status); } && |
| 5184 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5185 |
|| test ! -s conftest.err' |
| 5186 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5187 |
(eval $ac_try) 2>&5 |
| 5188 |
ac_status=$? |
| 5189 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5190 |
(exit $ac_status); }; } && |
| 5191 |
{ ac_try='test -s conftest$ac_exeext' |
| 5192 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5193 |
(eval $ac_try) 2>&5 |
| 5194 |
ac_status=$? |
| 5195 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5196 |
(exit $ac_status); }; }; then |
| 5197 |
ac_cv_lib_l_yywrap=yes |
| 5198 |
else |
| 5199 |
echo "$as_me: failed program was:" >&5 |
| 5200 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5201 |
|
| 5202 |
ac_cv_lib_l_yywrap=no |
| 5203 |
fi |
| 5204 |
rm -f conftest.err conftest.$ac_objext \ |
| 5205 |
conftest$ac_exeext conftest.$ac_ext |
| 5206 |
LIBS=$ac_check_lib_save_LIBS |
| 5207 |
fi |
| 5208 |
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 5209 |
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 5210 |
if test $ac_cv_lib_l_yywrap = yes; then |
| 5211 |
LEXLIB="-ll" |
| 5212 |
fi |
| 5213 |
|
| 5214 |
fi |
| 5215 |
|
| 5216 |
fi |
| 5217 |
|
| 5218 |
if test "x$LEX" != "x:"; then |
| 5219 |
echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5220 |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 5221 |
if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5222 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5223 |
else |
| 5224 |
# The minimal lex program is just a single line: %%. But some broken lexes |
| 5225 |
# (Solaris, I think it was) want two %% lines, so accommodate them. |
| 5226 |
cat >conftest.l <<_ACEOF |
| 5227 |
%% |
| 5228 |
%% |
| 5229 |
_ACEOF |
| 5230 |
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 5231 |
(eval $LEX conftest.l) 2>&5 |
| 5232 |
ac_status=$? |
| 5233 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5234 |
(exit $ac_status); } |
| 5235 |
if test -f lex.yy.c; then |
| 5236 |
ac_cv_prog_lex_root=lex.yy |
| 5237 |
elif test -f lexyy.c; then |
| 5238 |
ac_cv_prog_lex_root=lexyy |
| 5239 |
else |
| 5240 |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 5241 |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5242 |
{ (exit 1); exit 1; }; } |
| 5243 |
fi |
| 5244 |
fi |
| 5245 |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5246 |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 5247 |
rm -f conftest.l |
| 5248 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5249 |
|
| 5250 |
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5251 |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 5252 |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5253 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5254 |
else |
| 5255 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
| 5256 |
# default is implementation-dependent. Figure out which it is, since |
| 5257 |
# not all implementations provide the %pointer and %array declarations. |
| 5258 |
ac_cv_prog_lex_yytext_pointer=no |
| 5259 |
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 5260 |
ac_save_LIBS=$LIBS |
| 5261 |
LIBS="$LIBS $LEXLIB" |
| 5262 |
cat >conftest.$ac_ext <<_ACEOF |
| 5263 |
`cat $LEX_OUTPUT_ROOT.c` |
| 5264 |
_ACEOF |
| 5265 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5266 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5267 |
(eval $ac_link) 2>conftest.er1 |
| 5268 |
ac_status=$? |
| 5269 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5270 |
rm -f conftest.er1 |
| 5271 |
cat conftest.err >&5 |
| 5272 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 |
(exit $ac_status); } && |
| 5274 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5275 |
|| test ! -s conftest.err' |
| 5276 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5277 |
(eval $ac_try) 2>&5 |
| 5278 |
ac_status=$? |
| 5279 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5280 |
(exit $ac_status); }; } && |
| 5281 |
{ ac_try='test -s conftest$ac_exeext' |
| 5282 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5283 |
(eval $ac_try) 2>&5 |
| 5284 |
ac_status=$? |
| 5285 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5286 |
(exit $ac_status); }; }; then |
| 5287 |
ac_cv_prog_lex_yytext_pointer=yes |
| 5288 |
else |
| 5289 |
echo "$as_me: failed program was:" >&5 |
| 5290 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5291 |
|
| 5292 |
fi |
| 5293 |
rm -f conftest.err conftest.$ac_objext \ |
| 5294 |
conftest$ac_exeext conftest.$ac_ext |
| 5295 |
LIBS=$ac_save_LIBS |
| 5296 |
rm -f "${LEX_OUTPUT_ROOT}.c" |
| 5297 |
|
| 5298 |
fi |
| 5299 |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 5300 |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 5301 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 5302 |
|
| 5303 |
cat >>confdefs.h <<\_ACEOF |
| 5304 |
#define YYTEXT_POINTER 1 |
| 5305 |
_ACEOF |
| 5306 |
|
| 5307 |
fi |
| 5308 |
|
| 5309 |
fi |
| 5310 |
fi |
| 5311 |
|
| 5312 |
|
| 5313 |
#-------------------------------------------------------------------- |
| 5314 |
# Math libraries. |
| 5315 |
# On a few very rare systems, all of the libm.a stuff is |
| 5316 |
# already in libc.a. Set compiler flags accordingly. |
| 5317 |
# Also, Linux requires the "ieee" library for math to work |
| 5318 |
# right (and it must appear before "-lm"). |
| 5319 |
# |
| 5320 |
# When building on HPUX with GCC, GCC cannot find `copysign' |
| 5321 |
# because it lives in an odd place; see if we need to add |
| 5322 |
# this odd place to MATH_LIBS. |
| 5323 |
# |
| 5324 |
# See if erf(), the error function, exists; if so, define |
| 5325 |
# HAVE_ERF. |
| 5326 |
#-------------------------------------------------------------------- |
| 5327 |
echo "$as_me:$LINENO: checking for sin" >&5 |
| 5328 |
echo $ECHO_N "checking for sin... $ECHO_C" >&6 |
| 5329 |
if test "${ac_cv_func_sin+set}" = set; then |
| 5330 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5331 |
else |
| 5332 |
cat >conftest.$ac_ext <<_ACEOF |
| 5333 |
/* confdefs.h. */ |
| 5334 |
_ACEOF |
| 5335 |
cat confdefs.h >>conftest.$ac_ext |
| 5336 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5337 |
/* end confdefs.h. */ |
| 5338 |
/* Define sin to an innocuous variant, in case <limits.h> declares sin. |
| 5339 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5340 |
#define sin innocuous_sin |
| 5341 |
|
| 5342 |
/* System header to define __stub macros and hopefully few prototypes, |
| 5343 |
which can conflict with char sin (); below. |
| 5344 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5345 |
<limits.h> exists even on freestanding compilers. */ |
| 5346 |
|
| 5347 |
#ifdef __STDC__ |
| 5348 |
# include <limits.h> |
| 5349 |
#else |
| 5350 |
# include <assert.h> |
| 5351 |
#endif |
| 5352 |
|
| 5353 |
#undef sin |
| 5354 |
|
| 5355 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5356 |
#ifdef __cplusplus |
| 5357 |
extern "C" |
| 5358 |
{ |
| 5359 |
#endif |
| 5360 |
/* We use char because int might match the return type of a gcc2 |
| 5361 |
builtin and then its argument prototype would still apply. */ |
| 5362 |
char sin (); |
| 5363 |
/* The GNU C library defines this for functions which it implements |
| 5364 |
to always fail with ENOSYS. Some functions are actually named |
| 5365 |
something starting with __ and the normal name is an alias. */ |
| 5366 |
#if defined (__stub_sin) || defined (__stub___sin) |
| 5367 |
choke me |
| 5368 |
#else |
| 5369 |
char (*f) () = sin; |
| 5370 |
#endif |
| 5371 |
#ifdef __cplusplus |
| 5372 |
} |
| 5373 |
#endif |
| 5374 |
|
| 5375 |
int |
| 5376 |
main () |
| 5377 |
{ |
| 5378 |
return f != sin; |
| 5379 |
; |
| 5380 |
return 0; |
| 5381 |
} |
| 5382 |
_ACEOF |
| 5383 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5384 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5385 |
(eval $ac_link) 2>conftest.er1 |
| 5386 |
ac_status=$? |
| 5387 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5388 |
rm -f conftest.er1 |
| 5389 |
cat conftest.err >&5 |
| 5390 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5391 |
(exit $ac_status); } && |
| 5392 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5393 |
|| test ! -s conftest.err' |
| 5394 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5395 |
(eval $ac_try) 2>&5 |
| 5396 |
ac_status=$? |
| 5397 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5398 |
(exit $ac_status); }; } && |
| 5399 |
{ ac_try='test -s conftest$ac_exeext' |
| 5400 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5401 |
(eval $ac_try) 2>&5 |
| 5402 |
ac_status=$? |
| 5403 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5404 |
(exit $ac_status); }; }; then |
| 5405 |
ac_cv_func_sin=yes |
| 5406 |
else |
| 5407 |
echo "$as_me: failed program was:" >&5 |
| 5408 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5409 |
|
| 5410 |
ac_cv_func_sin=no |
| 5411 |
fi |
| 5412 |
rm -f conftest.err conftest.$ac_objext \ |
| 5413 |
conftest$ac_exeext conftest.$ac_ext |
| 5414 |
fi |
| 5415 |
echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 |
| 5416 |
echo "${ECHO_T}$ac_cv_func_sin" >&6 |
| 5417 |
if test $ac_cv_func_sin = yes; then |
| 5418 |
MATH_LIBS="" |
| 5419 |
else |
| 5420 |
MATH_LIBS="-lm" |
| 5421 |
fi |
| 5422 |
|
| 5423 |
|
| 5424 |
echo "$as_me:$LINENO: checking for printf in -lieee" >&5 |
| 5425 |
echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6 |
| 5426 |
if test "${ac_cv_lib_ieee_printf+set}" = set; then |
| 5427 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5428 |
else |
| 5429 |
ac_check_lib_save_LIBS=$LIBS |
| 5430 |
LIBS="-lieee $LIBS" |
| 5431 |
cat >conftest.$ac_ext <<_ACEOF |
| 5432 |
/* confdefs.h. */ |
| 5433 |
_ACEOF |
| 5434 |
cat confdefs.h >>conftest.$ac_ext |
| 5435 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5436 |
/* end confdefs.h. */ |
| 5437 |
|
| 5438 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5439 |
#ifdef __cplusplus |
| 5440 |
extern "C" |
| 5441 |
#endif |
| 5442 |
/* We use char because int might match the return type of a gcc2 |
| 5443 |
builtin and then its argument prototype would still apply. */ |
| 5444 |
char printf (); |
| 5445 |
int |
| 5446 |
main () |
| 5447 |
{ |
| 5448 |
printf (); |
| 5449 |
; |
| 5450 |
return 0; |
| 5451 |
} |
| 5452 |
_ACEOF |
| 5453 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5454 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5455 |
(eval $ac_link) 2>conftest.er1 |
| 5456 |
ac_status=$? |
| 5457 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5458 |
rm -f conftest.er1 |
| 5459 |
cat conftest.err >&5 |
| 5460 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5461 |
(exit $ac_status); } && |
| 5462 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5463 |
|| test ! -s conftest.err' |
| 5464 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5465 |
(eval $ac_try) 2>&5 |
| 5466 |
ac_status=$? |
| 5467 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5468 |
(exit $ac_status); }; } && |
| 5469 |
{ ac_try='test -s conftest$ac_exeext' |
| 5470 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5471 |
(eval $ac_try) 2>&5 |
| 5472 |
ac_status=$? |
| 5473 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5474 |
(exit $ac_status); }; }; then |
| 5475 |
ac_cv_lib_ieee_printf=yes |
| 5476 |
else |
| 5477 |
echo "$as_me: failed program was:" >&5 |
| 5478 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5479 |
|
| 5480 |
ac_cv_lib_ieee_printf=no |
| 5481 |
fi |
| 5482 |
rm -f conftest.err conftest.$ac_objext \ |
| 5483 |
conftest$ac_exeext conftest.$ac_ext |
| 5484 |
LIBS=$ac_check_lib_save_LIBS |
| 5485 |
fi |
| 5486 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5 |
| 5487 |
echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6 |
| 5488 |
if test $ac_cv_lib_ieee_printf = yes; then |
| 5489 |
MATH_LIBS="-lieee $MATH_LIBS" |
| 5490 |
fi |
| 5491 |
|
| 5492 |
|
| 5493 |
if test -n "$MATH_LIBS" ; then |
| 5494 |
|
| 5495 |
echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
| 5496 |
echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 |
| 5497 |
if test "${ac_cv_lib_m_copysign+set}" = set; then |
| 5498 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5499 |
else |
| 5500 |
ac_check_lib_save_LIBS=$LIBS |
| 5501 |
LIBS="-lm $MATH_LIBS $LIBS" |
| 5502 |
cat >conftest.$ac_ext <<_ACEOF |
| 5503 |
/* confdefs.h. */ |
| 5504 |
_ACEOF |
| 5505 |
cat confdefs.h >>conftest.$ac_ext |
| 5506 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5507 |
/* end confdefs.h. */ |
| 5508 |
|
| 5509 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5510 |
#ifdef __cplusplus |
| 5511 |
extern "C" |
| 5512 |
#endif |
| 5513 |
/* We use char because int might match the return type of a gcc2 |
| 5514 |
builtin and then its argument prototype would still apply. */ |
| 5515 |
char copysign (); |
| 5516 |
int |
| 5517 |
main () |
| 5518 |
{ |
| 5519 |
copysign (); |
| 5520 |
; |
| 5521 |
return 0; |
| 5522 |
} |
| 5523 |
_ACEOF |
| 5524 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5525 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5526 |
(eval $ac_link) 2>conftest.er1 |
| 5527 |
ac_status=$? |
| 5528 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5529 |
rm -f conftest.er1 |
| 5530 |
cat conftest.err >&5 |
| 5531 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5532 |
(exit $ac_status); } && |
| 5533 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5534 |
|| test ! -s conftest.err' |
| 5535 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5536 |
(eval $ac_try) 2>&5 |
| 5537 |
ac_status=$? |
| 5538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5539 |
(exit $ac_status); }; } && |
| 5540 |
{ ac_try='test -s conftest$ac_exeext' |
| 5541 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5542 |
(eval $ac_try) 2>&5 |
| 5543 |
ac_status=$? |
| 5544 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 |
(exit $ac_status); }; }; then |
| 5546 |
ac_cv_lib_m_copysign=yes |
| 5547 |
else |
| 5548 |
echo "$as_me: failed program was:" >&5 |
| 5549 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5550 |
|
| 5551 |
ac_cv_lib_m_copysign=no |
| 5552 |
fi |
| 5553 |
rm -f conftest.err conftest.$ac_objext \ |
| 5554 |
conftest$ac_exeext conftest.$ac_ext |
| 5555 |
LIBS=$ac_check_lib_save_LIBS |
| 5556 |
fi |
| 5557 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
| 5558 |
echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 |
| 5559 |
if test $ac_cv_lib_m_copysign = yes; then |
| 5560 |
cat >>confdefs.h <<_ACEOF |
| 5561 |
#define HAVE_LIBM 1 |
| 5562 |
_ACEOF |
| 5563 |
|
| 5564 |
LIBS="-lm $LIBS" |
| 5565 |
|
| 5566 |
else |
| 5567 |
echo "$as_me:$LINENO: checking for drem in -lm" >&5 |
| 5568 |
echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6 |
| 5569 |
if test "${ac_cv_lib_m_drem+set}" = set; then |
| 5570 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5571 |
else |
| 5572 |
ac_check_lib_save_LIBS=$LIBS |
| 5573 |
LIBS="-lm /lib/pa1.1/libM.a |
| 5574 |
$LIBS" |
| 5575 |
cat >conftest.$ac_ext <<_ACEOF |
| 5576 |
/* confdefs.h. */ |
| 5577 |
_ACEOF |
| 5578 |
cat confdefs.h >>conftest.$ac_ext |
| 5579 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5580 |
/* end confdefs.h. */ |
| 5581 |
|
| 5582 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5583 |
#ifdef __cplusplus |
| 5584 |
extern "C" |
| 5585 |
#endif |
| 5586 |
/* We use char because int might match the return type of a gcc2 |
| 5587 |
builtin and then its argument prototype would still apply. */ |
| 5588 |
char drem (); |
| 5589 |
int |
| 5590 |
main () |
| 5591 |
{ |
| 5592 |
drem (); |
| 5593 |
; |
| 5594 |
return 0; |
| 5595 |
} |
| 5596 |
_ACEOF |
| 5597 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5598 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5599 |
(eval $ac_link) 2>conftest.er1 |
| 5600 |
ac_status=$? |
| 5601 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5602 |
rm -f conftest.er1 |
| 5603 |
cat conftest.err >&5 |
| 5604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 |
(exit $ac_status); } && |
| 5606 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5607 |
|| test ! -s conftest.err' |
| 5608 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5609 |
(eval $ac_try) 2>&5 |
| 5610 |
ac_status=$? |
| 5611 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5612 |
(exit $ac_status); }; } && |
| 5613 |
{ ac_try='test -s conftest$ac_exeext' |
| 5614 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5615 |
(eval $ac_try) 2>&5 |
| 5616 |
ac_status=$? |
| 5617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 |
(exit $ac_status); }; }; then |
| 5619 |
ac_cv_lib_m_drem=yes |
| 5620 |
else |
| 5621 |
echo "$as_me: failed program was:" >&5 |
| 5622 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5623 |
|
| 5624 |
ac_cv_lib_m_drem=no |
| 5625 |
fi |
| 5626 |
rm -f conftest.err conftest.$ac_objext \ |
| 5627 |
conftest$ac_exeext conftest.$ac_ext |
| 5628 |
LIBS=$ac_check_lib_save_LIBS |
| 5629 |
fi |
| 5630 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5 |
| 5631 |
echo "${ECHO_T}$ac_cv_lib_m_drem" >&6 |
| 5632 |
if test $ac_cv_lib_m_drem = yes; then |
| 5633 |
MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a" |
| 5634 |
|
| 5635 |
fi |
| 5636 |
|
| 5637 |
fi |
| 5638 |
|
| 5639 |
fi |
| 5640 |
|
| 5641 |
# store the current list of libraries, add the math libraries to LIBS, |
| 5642 |
# check for erf(), then reset the value of LIBS. |
| 5643 |
asc_keep_LIBS="$LIBS" |
| 5644 |
LIBS="$LIBS $MATH_LIBS" |
| 5645 |
|
| 5646 |
for ac_func in erf |
| 5647 |
do |
| 5648 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5649 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5650 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5651 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5652 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5653 |
else |
| 5654 |
cat >conftest.$ac_ext <<_ACEOF |
| 5655 |
/* confdefs.h. */ |
| 5656 |
_ACEOF |
| 5657 |
cat confdefs.h >>conftest.$ac_ext |
| 5658 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5659 |
/* end confdefs.h. */ |
| 5660 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5661 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5662 |
#define $ac_func innocuous_$ac_func |
| 5663 |
|
| 5664 |
/* System header to define __stub macros and hopefully few prototypes, |
| 5665 |
which can conflict with char $ac_func (); below. |
| 5666 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5667 |
<limits.h> exists even on freestanding compilers. */ |
| 5668 |
|
| 5669 |
#ifdef __STDC__ |
| 5670 |
# include <limits.h> |
| 5671 |
#else |
| 5672 |
# include <assert.h> |
| 5673 |
#endif |
| 5674 |
|
| 5675 |
#undef $ac_func |
| 5676 |
|
| 5677 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5678 |
#ifdef __cplusplus |
| 5679 |
extern "C" |
| 5680 |
{ |
| 5681 |
#endif |
| 5682 |
/* We use char because int might match the return type of a gcc2 |
| 5683 |
builtin and then its argument prototype would still apply. */ |
| 5684 |
char $ac_func (); |
| 5685 |
/* The GNU C library defines this for functions which it implements |
| 5686 |
to always fail with ENOSYS. Some functions are actually named |
| 5687 |
something starting with __ and the normal name is an alias. */ |
| 5688 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5689 |
choke me |
| 5690 |
#else |
| 5691 |
char (*f) () = $ac_func; |
| 5692 |
#endif |
| 5693 |
#ifdef __cplusplus |
| 5694 |
} |
| 5695 |
#endif |
| 5696 |
|
| 5697 |
int |
| 5698 |
main () |
| 5699 |
{ |
| 5700 |
return f != $ac_func; |
| 5701 |
; |
| 5702 |
return 0; |
| 5703 |
} |
| 5704 |
_ACEOF |
| 5705 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5706 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5707 |
(eval $ac_link) 2>conftest.er1 |
| 5708 |
ac_status=$? |
| 5709 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5710 |
rm -f conftest.er1 |
| 5711 |
cat conftest.err >&5 |
| 5712 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5713 |
(exit $ac_status); } && |
| 5714 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5715 |
|| test ! -s conftest.err' |
| 5716 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5717 |
(eval $ac_try) 2>&5 |
| 5718 |
ac_status=$? |
| 5719 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 |
(exit $ac_status); }; } && |
| 5721 |
{ ac_try='test -s conftest$ac_exeext' |
| 5722 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5723 |
(eval $ac_try) 2>&5 |
| 5724 |
ac_status=$? |
| 5725 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 |
(exit $ac_status); }; }; then |
| 5727 |
eval "$as_ac_var=yes" |
| 5728 |
else |
| 5729 |
echo "$as_me: failed program was:" >&5 |
| 5730 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5731 |
|
| 5732 |
eval "$as_ac_var=no" |
| 5733 |
fi |
| 5734 |
rm -f conftest.err conftest.$ac_objext \ |
| 5735 |
conftest$ac_exeext conftest.$ac_ext |
| 5736 |
fi |
| 5737 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5738 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5739 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5740 |
cat >>confdefs.h <<_ACEOF |
| 5741 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5742 |
_ACEOF |
| 5743 |
|
| 5744 |
fi |
| 5745 |
done |
| 5746 |
|
| 5747 |
LIBS="$asc_keep_LIBS" |
| 5748 |
|
| 5749 |
|
| 5750 |
#-------------------------------------------------------------------- |
| 5751 |
# Check for X11. |
| 5752 |
# We'll use the simple autoconf builtin macro for finding |
| 5753 |
# X11 until we find a reason not to. |
| 5754 |
# |
| 5755 |
# On Solaris and IRIX, add the path to the X library to the |
| 5756 |
# run-time shared-library-search-path so the ASCEND binary |
| 5757 |
# can find the X library without the user having to set |
| 5758 |
# LD_LIBRARY_PATH |
| 5759 |
#-------------------------------------------------------------------- |
| 5760 |
echo "$as_me:$LINENO: checking for X" >&5 |
| 5761 |
echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5762 |
|
| 5763 |
|
| 5764 |
# Check whether --with-x or --without-x was given. |
| 5765 |
if test "${with_x+set}" = set; then |
| 5766 |
withval="$with_x" |
| 5767 |
|
| 5768 |
fi; |
| 5769 |
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5770 |
if test "x$with_x" = xno; then |
| 5771 |
# The user explicitly disabled X. |
| 5772 |
have_x=disabled |
| 5773 |
else |
| 5774 |
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5775 |
# Both variables are already set. |
| 5776 |
have_x=yes |
| 5777 |
else |
| 5778 |
if test "${ac_cv_have_x+set}" = set; then |
| 5779 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5780 |
else |
| 5781 |
# One or both of the vars are not set, and there is no cached value. |
| 5782 |
ac_x_includes=no ac_x_libraries=no |
| 5783 |
rm -fr conftest.dir |
| 5784 |
if mkdir conftest.dir; then |
| 5785 |
cd conftest.dir |
| 5786 |
# Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 5787 |
cat >Imakefile <<'_ACEOF' |
| 5788 |
acfindx: |
| 5789 |
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 5790 |
_ACEOF |
| 5791 |
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5792 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5793 |
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5794 |
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5795 |
for ac_extension in a so sl; do |
| 5796 |
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 5797 |
test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5798 |
ac_im_usrlibdir=$ac_im_libdir; break |
| 5799 |
fi |
| 5800 |
done |
| 5801 |
# Screen out bogus values from the imake configuration. They are |
| 5802 |
# bogus both because they are the default anyway, and because |
| 5803 |
# using them would break gcc on systems where it needs fixed includes. |
| 5804 |
case $ac_im_incroot in |
| 5805 |
/usr/include) ;; |
| 5806 |
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 5807 |
esac |
| 5808 |
case $ac_im_usrlibdir in |
| 5809 |
/usr/lib | /lib) ;; |
| 5810 |
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 5811 |
esac |
| 5812 |
fi |
| 5813 |
cd .. |
| 5814 |
rm -fr conftest.dir |
| 5815 |
fi |
| 5816 |
|
| 5817 |
# Standard set of common directories for X headers. |
| 5818 |
# Check X11 before X11Rn because it is often a symlink to the current release. |
| 5819 |
ac_x_header_dirs=' |
| 5820 |
/usr/X11/include |
| 5821 |
/usr/X11R6/include |
| 5822 |
/usr/X11R5/include |
| 5823 |
/usr/X11R4/include |
| 5824 |
|
| 5825 |
/usr/include/X11 |
| 5826 |
/usr/include/X11R6 |
| 5827 |
/usr/include/X11R5 |
| 5828 |
/usr/include/X11R4 |
| 5829 |
|
| 5830 |
/usr/local/X11/include |
| 5831 |
/usr/local/X11R6/include |
| 5832 |
/usr/local/X11R5/include |
| 5833 |
/usr/local/X11R4/include |
| 5834 |
|
| 5835 |
/usr/local/include/X11 |
| 5836 |
/usr/local/include/X11R6 |
| 5837 |
/usr/local/include/X11R5 |
| 5838 |
/usr/local/include/X11R4 |
| 5839 |
|
| 5840 |
/usr/X386/include |
| 5841 |
/usr/x386/include |
| 5842 |
/usr/XFree86/include/X11 |
| 5843 |
|
| 5844 |
/usr/include |
| 5845 |
/usr/local/include |
| 5846 |
/usr/unsupported/include |
| 5847 |
/usr/athena/include |
| 5848 |
/usr/local/x11r5/include |
| 5849 |
/usr/lpp/Xamples/include |
| 5850 |
|
| 5851 |
/usr/openwin/include |
| 5852 |
/usr/openwin/share/include' |
| 5853 |
|
| 5854 |
if test "$ac_x_includes" = no; then |
| 5855 |
# Guess where to find include files, by looking for Intrinsic.h. |
| 5856 |
# First, try using that file with no special directory specified. |
| 5857 |
cat >conftest.$ac_ext <<_ACEOF |
| 5858 |
/* confdefs.h. */ |
| 5859 |
_ACEOF |
| 5860 |
cat confdefs.h >>conftest.$ac_ext |
| 5861 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5862 |
/* end confdefs.h. */ |
| 5863 |
#include <X11/Intrinsic.h> |
| 5864 |
_ACEOF |
| 5865 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5866 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5867 |
ac_status=$? |
| 5868 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5869 |
rm -f conftest.er1 |
| 5870 |
cat conftest.err >&5 |
| 5871 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 |
(exit $ac_status); } >/dev/null; then |
| 5873 |
if test -s conftest.err; then |
| 5874 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 5875 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5876 |
else |
| 5877 |
ac_cpp_err= |
| 5878 |
fi |
| 5879 |
else |
| 5880 |
ac_cpp_err=yes |
| 5881 |
fi |
| 5882 |
if test -z "$ac_cpp_err"; then |
| 5883 |
# We can compile using X headers with no special include directory. |
| 5884 |
ac_x_includes= |
| 5885 |
else |
| 5886 |
echo "$as_me: failed program was:" >&5 |
| 5887 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5888 |
|
| 5889 |
for ac_dir in $ac_x_header_dirs; do |
| 5890 |
if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5891 |
ac_x_includes=$ac_dir |
| 5892 |
break |
| 5893 |
fi |
| 5894 |
done |
| 5895 |
fi |
| 5896 |
rm -f conftest.err conftest.$ac_ext |
| 5897 |
fi # $ac_x_includes = no |
| 5898 |
|
| 5899 |
if test "$ac_x_libraries" = no; then |
| 5900 |
# Check for the libraries. |
| 5901 |
# See if we find them without any special options. |
| 5902 |
# Don't add to $LIBS permanently. |
| 5903 |
ac_save_LIBS=$LIBS |
| 5904 |
LIBS="-lXt $LIBS" |
| 5905 |
cat >conftest.$ac_ext <<_ACEOF |
| 5906 |
/* confdefs.h. */ |
| 5907 |
_ACEOF |
| 5908 |
cat confdefs.h >>conftest.$ac_ext |
| 5909 |
cat >>conftest.$ac_ext <<_ACEOF |
| 5910 |
/* end confdefs.h. */ |
| 5911 |
#include <X11/Intrinsic.h> |
| 5912 |
int |
| 5913 |
main () |
| 5914 |
{ |
| 5915 |
XtMalloc (0) |
| 5916 |
; |
| 5917 |
return 0; |
| 5918 |
} |
| 5919 |
_ACEOF |
| 5920 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5921 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5922 |
(eval $ac_link) 2>conftest.er1 |
| 5923 |
ac_status=$? |
| 5924 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5925 |
rm -f conftest.er1 |
| 5926 |
cat conftest.err >&5 |
| 5927 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5928 |
(exit $ac_status); } && |
| 5929 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5930 |
|| test ! -s conftest.err' |
| 5931 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5932 |
(eval $ac_try) 2>&5 |
| 5933 |
ac_status=$? |
| 5934 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5935 |
(exit $ac_status); }; } && |
| 5936 |
{ ac_try='test -s conftest$ac_exeext' |
| 5937 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5938 |
(eval $ac_try) 2>&5 |
| 5939 |
ac_status=$? |
| 5940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 |
(exit $ac_status); }; }; then |
| 5942 |
LIBS=$ac_save_LIBS |
| 5943 |
# We can link X programs with no special library path. |
| 5944 |
ac_x_libraries= |
| 5945 |
else |
| 5946 |
echo "$as_me: failed program was:" >&5 |
| 5947 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5948 |
|
| 5949 |
LIBS=$ac_save_LIBS |
| 5950 |
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 5951 |
do |
| 5952 |
# Don't even attempt the hair of trying to link an X program! |
| 5953 |
for ac_extension in a so sl; do |
| 5954 |
if test -r $ac_dir/libXt.$ac_extension; then |
| 5955 |
ac_x_libraries=$ac_dir |
| 5956 |
break 2 |
| 5957 |
fi |
| 5958 |
done |
| 5959 |
done |
| 5960 |
fi |
| 5961 |
rm -f conftest.err conftest.$ac_objext \ |
| 5962 |
conftest$ac_exeext conftest.$ac_ext |
| 5963 |
fi # $ac_x_libraries = no |
| 5964 |
|
| 5965 |
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 5966 |
# Didn't find X anywhere. Cache the known absence of X. |
| 5967 |
ac_cv_have_x="have_x=no" |
| 5968 |
else |
| 5969 |
# Record where we found X for the cache. |
| 5970 |
ac_cv_have_x="have_x=yes \ |
| 5971 |
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 5972 |
fi |
| 5973 |
fi |
| 5974 |
|
| 5975 |
fi |
| 5976 |
eval "$ac_cv_have_x" |
| 5977 |
fi # $with_x != no |
| 5978 |
|
| 5979 |
if test "$have_x" != yes; then |
| 5980 |
echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5981 |
echo "${ECHO_T}$have_x" >&6 |
| 5982 |
no_x=yes |
| 5983 |
else |
| 5984 |
# If each of the values was on the command line, it overrides each guess. |
| 5985 |
test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5986 |
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5987 |
# Update the cache value to reflect the command line values. |
| 5988 |
ac_cv_have_x="have_x=yes \ |
| 5989 |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 5990 |
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5991 |
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 5992 |
fi |
| 5993 |
|
| 5994 |
if test -n "$x_includes"; then |
| 5995 |
X11_INCLUDES="-I$x_includes" |
| 5996 |
fi |
| 5997 |
if test -n "$x_libraries"; then |
| 5998 |
X11_LIBRARIES="-L$x_libraries" |
| 5999 |
case "$host" in |
| 6000 |
sparc-sun-solaris*) |
| 6001 |
X11_RUN_PATH="-R$x_libraries" |
| 6002 |
;; |
| 6003 |
mips-sgi-irix*) |
| 6004 |
X11_RUN_PATH="-rpath $x_libraries" |
| 6005 |
;; |
| 6006 |
*) |
| 6007 |
X11_RUN_PATH="" |
| 6008 |
;; |
| 6009 |
esac |
| 6010 |
fi |
| 6011 |
|
| 6012 |
|
| 6013 |
#-------------------------------------------------------------------- |
| 6014 |
# Check for the existence of various libraries. The order here |
| 6015 |
# is important, so that then end up in the right order in the |
| 6016 |
# command line generated by make. The -lsocket and -lnsl |
| 6017 |
# libraries require a couple of special tricks: |
| 6018 |
# 1. Use "connect" and "accept" to check for -lsocket, and |
| 6019 |
# "gethostbyname" to check for -lnsl. |
| 6020 |
# 2. Use each function name only once: can't redo a check |
| 6021 |
# because autoconf caches the results of the last check |
| 6022 |
# and won't redo it. |
| 6023 |
# 3. Use -lnsl and -lsocket only if they supply procedures that |
| 6024 |
# aren't already present in the normal libraries. This is |
| 6025 |
# because IRIX 5.2 has libraries, but they aren't needed and |
| 6026 |
# they're bogus: they goof up name resolution if used. |
| 6027 |
# 4. On some SVR4 systems, can't use -lsocket without -lnsl |
| 6028 |
# too. To get around this problem, check for both libraries |
| 6029 |
# together if -lsocket doesn't work by itself. |
| 6030 |
#-------------------------------------------------------------------- |
| 6031 |
|
| 6032 |
asc_checkBoth=0 |
| 6033 |
echo "$as_me:$LINENO: checking for connect" >&5 |
| 6034 |
echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 6035 |
if test "${ac_cv_func_connect+set}" = set; then |
| 6036 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6037 |
else |
| 6038 |
cat >conftest.$ac_ext <<_ACEOF |
| 6039 |
/* confdefs.h. */ |
| 6040 |
_ACEOF |
| 6041 |
cat confdefs.h >>conftest.$ac_ext |
| 6042 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6043 |
/* end confdefs.h. */ |
| 6044 |
/* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6045 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6046 |
#define connect innocuous_connect |
| 6047 |
|
| 6048 |
/* System header to define __stub macros and hopefully few prototypes, |
| 6049 |
which can conflict with char connect (); below. |
| 6050 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6051 |
<limits.h> exists even on freestanding compilers. */ |
| 6052 |
|
| 6053 |
#ifdef __STDC__ |
| 6054 |
# include <limits.h> |
| 6055 |
#else |
| 6056 |
# include <assert.h> |
| 6057 |
#endif |
| 6058 |
|
| 6059 |
#undef connect |
| 6060 |
|
| 6061 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6062 |
#ifdef __cplusplus |
| 6063 |
extern "C" |
| 6064 |
{ |
| 6065 |
#endif |
| 6066 |
/* We use char because int might match the return type of a gcc2 |
| 6067 |
builtin and then its argument prototype would still apply. */ |
| 6068 |
char connect (); |
| 6069 |
/* The GNU C library defines this for functions which it implements |
| 6070 |
to always fail with ENOSYS. Some functions are actually named |
| 6071 |
something starting with __ and the normal name is an alias. */ |
| 6072 |
#if defined (__stub_connect) || defined (__stub___connect) |
| 6073 |
choke me |
| 6074 |
#else |
| 6075 |
char (*f) () = connect; |
| 6076 |
#endif |
| 6077 |
#ifdef __cplusplus |
| 6078 |
} |
| 6079 |
#endif |
| 6080 |
|
| 6081 |
int |
| 6082 |
main () |
| 6083 |
{ |
| 6084 |
return f != connect; |
| 6085 |
; |
| 6086 |
return 0; |
| 6087 |
} |
| 6088 |
_ACEOF |
| 6089 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6090 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6091 |
(eval $ac_link) 2>conftest.er1 |
| 6092 |
ac_status=$? |
| 6093 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6094 |
rm -f conftest.er1 |
| 6095 |
cat conftest.err >&5 |
| 6096 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 |
(exit $ac_status); } && |
| 6098 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6099 |
|| test ! -s conftest.err' |
| 6100 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6101 |
(eval $ac_try) 2>&5 |
| 6102 |
ac_status=$? |
| 6103 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6104 |
(exit $ac_status); }; } && |
| 6105 |
{ ac_try='test -s conftest$ac_exeext' |
| 6106 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6107 |
(eval $ac_try) 2>&5 |
| 6108 |
ac_status=$? |
| 6109 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 |
(exit $ac_status); }; }; then |
| 6111 |
ac_cv_func_connect=yes |
| 6112 |
else |
| 6113 |
echo "$as_me: failed program was:" >&5 |
| 6114 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6115 |
|
| 6116 |
ac_cv_func_connect=no |
| 6117 |
fi |
| 6118 |
rm -f conftest.err conftest.$ac_objext \ |
| 6119 |
conftest$ac_exeext conftest.$ac_ext |
| 6120 |
fi |
| 6121 |
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6122 |
echo "${ECHO_T}$ac_cv_func_connect" >&6 |
| 6123 |
if test $ac_cv_func_connect = yes; then |
| 6124 |
asc_checkSocket=0 |
| 6125 |
else |
| 6126 |
asc_checkSocket=1 |
| 6127 |
fi |
| 6128 |
|
| 6129 |
if test "$asc_checkSocket" = 1; then |
| 6130 |
echo "$as_me:$LINENO: checking for printf in -lsocket" >&5 |
| 6131 |
echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6 |
| 6132 |
if test "${ac_cv_lib_socket_printf+set}" = set; then |
| 6133 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6134 |
else |
| 6135 |
ac_check_lib_save_LIBS=$LIBS |
| 6136 |
LIBS="-lsocket $LIBS" |
| 6137 |
cat >conftest.$ac_ext <<_ACEOF |
| 6138 |
/* confdefs.h. */ |
| 6139 |
_ACEOF |
| 6140 |
cat confdefs.h >>conftest.$ac_ext |
| 6141 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6142 |
/* end confdefs.h. */ |
| 6143 |
|
| 6144 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6145 |
#ifdef __cplusplus |
| 6146 |
extern "C" |
| 6147 |
#endif |
| 6148 |
/* We use char because int might match the return type of a gcc2 |
| 6149 |
builtin and then its argument prototype would still apply. */ |
| 6150 |
char printf (); |
| 6151 |
int |
| 6152 |
main () |
| 6153 |
{ |
| 6154 |
printf (); |
| 6155 |
; |
| 6156 |
return 0; |
| 6157 |
} |
| 6158 |
_ACEOF |
| 6159 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6160 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6161 |
(eval $ac_link) 2>conftest.er1 |
| 6162 |
ac_status=$? |
| 6163 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6164 |
rm -f conftest.er1 |
| 6165 |
cat conftest.err >&5 |
| 6166 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 |
(exit $ac_status); } && |
| 6168 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6169 |
|| test ! -s conftest.err' |
| 6170 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6171 |
(eval $ac_try) 2>&5 |
| 6172 |
ac_status=$? |
| 6173 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6174 |
(exit $ac_status); }; } && |
| 6175 |
{ ac_try='test -s conftest$ac_exeext' |
| 6176 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6177 |
(eval $ac_try) 2>&5 |
| 6178 |
ac_status=$? |
| 6179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 |
(exit $ac_status); }; }; then |
| 6181 |
ac_cv_lib_socket_printf=yes |
| 6182 |
else |
| 6183 |
echo "$as_me: failed program was:" >&5 |
| 6184 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6185 |
|
| 6186 |
ac_cv_lib_socket_printf=no |
| 6187 |
fi |
| 6188 |
rm -f conftest.err conftest.$ac_objext \ |
| 6189 |
conftest$ac_exeext conftest.$ac_ext |
| 6190 |
LIBS=$ac_check_lib_save_LIBS |
| 6191 |
fi |
| 6192 |
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5 |
| 6193 |
echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6 |
| 6194 |
if test $ac_cv_lib_socket_printf = yes; then |
| 6195 |
X11_EXTRA_LIBS="-lsocket" |
| 6196 |
else |
| 6197 |
asc_checkBoth=1 |
| 6198 |
fi |
| 6199 |
|
| 6200 |
fi |
| 6201 |
if test "$asc_checkBoth" = 1; then |
| 6202 |
asc_oldLibs=$LIBS |
| 6203 |
X11_EXTRA_LIBS="-lsocket -lnsl" |
| 6204 |
LIBS="$LIBS $X11_EXTRA_LIBS" |
| 6205 |
echo "$as_me:$LINENO: checking for accept" >&5 |
| 6206 |
echo $ECHO_N "checking for accept... $ECHO_C" >&6 |
| 6207 |
if test "${ac_cv_func_accept+set}" = set; then |
| 6208 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6209 |
else |
| 6210 |
cat >conftest.$ac_ext <<_ACEOF |
| 6211 |
/* confdefs.h. */ |
| 6212 |
_ACEOF |
| 6213 |
cat confdefs.h >>conftest.$ac_ext |
| 6214 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6215 |
/* end confdefs.h. */ |
| 6216 |
/* Define accept to an innocuous variant, in case <limits.h> declares accept. |
| 6217 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6218 |
#define accept innocuous_accept |
| 6219 |
|
| 6220 |
/* System header to define __stub macros and hopefully few prototypes, |
| 6221 |
which can conflict with char accept (); below. |
| 6222 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6223 |
<limits.h> exists even on freestanding compilers. */ |
| 6224 |
|
| 6225 |
#ifdef __STDC__ |
| 6226 |
# include <limits.h> |
| 6227 |
#else |
| 6228 |
# include <assert.h> |
| 6229 |
#endif |
| 6230 |
|
| 6231 |
#undef accept |
| 6232 |
|
| 6233 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6234 |
#ifdef __cplusplus |
| 6235 |
extern "C" |
| 6236 |
{ |
| 6237 |
#endif |
| 6238 |
/* We use char because int might match the return type of a gcc2 |
| 6239 |
builtin and then its argument prototype would still apply. */ |
| 6240 |
char accept (); |
| 6241 |
/* The GNU C library defines this for functions which it implements |
| 6242 |
to always fail with ENOSYS. Some functions are actually named |
| 6243 |
something starting with __ and the normal name is an alias. */ |
| 6244 |
#if defined (__stub_accept) || defined (__stub___accept) |
| 6245 |
choke me |
| 6246 |
#else |
| 6247 |
char (*f) () = accept; |
| 6248 |
#endif |
| 6249 |
#ifdef __cplusplus |
| 6250 |
} |
| 6251 |
#endif |
| 6252 |
|
| 6253 |
int |
| 6254 |
main () |
| 6255 |
{ |
| 6256 |
return f != accept; |
| 6257 |
; |
| 6258 |
return 0; |
| 6259 |
} |
| 6260 |
_ACEOF |
| 6261 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6262 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6263 |
(eval $ac_link) 2>conftest.er1 |
| 6264 |
ac_status=$? |
| 6265 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6266 |
rm -f conftest.er1 |
| 6267 |
cat conftest.err >&5 |
| 6268 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 |
(exit $ac_status); } && |
| 6270 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6271 |
|| test ! -s conftest.err' |
| 6272 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6273 |
(eval $ac_try) 2>&5 |
| 6274 |
ac_status=$? |
| 6275 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6276 |
(exit $ac_status); }; } && |
| 6277 |
{ ac_try='test -s conftest$ac_exeext' |
| 6278 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6279 |
(eval $ac_try) 2>&5 |
| 6280 |
ac_status=$? |
| 6281 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 |
(exit $ac_status); }; }; then |
| 6283 |
ac_cv_func_accept=yes |
| 6284 |
else |
| 6285 |
echo "$as_me: failed program was:" >&5 |
| 6286 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6287 |
|
| 6288 |
ac_cv_func_accept=no |
| 6289 |
fi |
| 6290 |
rm -f conftest.err conftest.$ac_objext \ |
| 6291 |
conftest$ac_exeext conftest.$ac_ext |
| 6292 |
fi |
| 6293 |
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 |
| 6294 |
echo "${ECHO_T}$ac_cv_func_accept" >&6 |
| 6295 |
if test $ac_cv_func_accept = yes; then |
| 6296 |
asc_checkNsl=0 |
| 6297 |
else |
| 6298 |
X11_EXTRA_LIBS="" |
| 6299 |
fi |
| 6300 |
|
| 6301 |
LIBS=$asc_oldLibs |
| 6302 |
fi |
| 6303 |
asc_oldLibs=$LIBS |
| 6304 |
LIBS="$LIBS $X11_EXTRA_LIBS" |
| 6305 |
echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6306 |
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 6307 |
if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 6308 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6309 |
else |
| 6310 |
cat >conftest.$ac_ext <<_ACEOF |
| 6311 |
/* confdefs.h. */ |
| 6312 |
_ACEOF |
| 6313 |
cat confdefs.h >>conftest.$ac_ext |
| 6314 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6315 |
/* end confdefs.h. */ |
| 6316 |
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6317 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6318 |
#define gethostbyname innocuous_gethostbyname |
| 6319 |
|
| 6320 |
/* System header to define __stub macros and hopefully few prototypes, |
| 6321 |
which can conflict with char gethostbyname (); below. |
| 6322 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6323 |
<limits.h> exists even on freestanding compilers. */ |
| 6324 |
|
| 6325 |
#ifdef __STDC__ |
| 6326 |
# include <limits.h> |
| 6327 |
#else |
| 6328 |
# include <assert.h> |
| 6329 |
#endif |
| 6330 |
|
| 6331 |
#undef gethostbyname |
| 6332 |
|
| 6333 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6334 |
#ifdef __cplusplus |
| 6335 |
extern "C" |
| 6336 |
{ |
| 6337 |
#endif |
| 6338 |
/* We use char because int might match the return type of a gcc2 |
| 6339 |
builtin and then its argument prototype would still apply. */ |
| 6340 |
char gethostbyname (); |
| 6341 |
/* The GNU C library defines this for functions which it implements |
| 6342 |
to always fail with ENOSYS. Some functions are actually named |
| 6343 |
something starting with __ and the normal name is an alias. */ |
| 6344 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 6345 |
choke me |
| 6346 |
#else |
| 6347 |
char (*f) () = gethostbyname; |
| 6348 |
#endif |
| 6349 |
#ifdef __cplusplus |
| 6350 |
} |
| 6351 |
#endif |
| 6352 |
|
| 6353 |
int |
| 6354 |
main () |
| 6355 |
{ |
| 6356 |
return f != gethostbyname; |
| 6357 |
; |
| 6358 |
return 0; |
| 6359 |
} |
| 6360 |
_ACEOF |
| 6361 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6362 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6363 |
(eval $ac_link) 2>conftest.er1 |
| 6364 |
ac_status=$? |
| 6365 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6366 |
rm -f conftest.er1 |
| 6367 |
cat conftest.err >&5 |
| 6368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6369 |
(exit $ac_status); } && |
| 6370 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6371 |
|| test ! -s conftest.err' |
| 6372 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6373 |
(eval $ac_try) 2>&5 |
| 6374 |
ac_status=$? |
| 6375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 |
(exit $ac_status); }; } && |
| 6377 |
{ ac_try='test -s conftest$ac_exeext' |
| 6378 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6379 |
(eval $ac_try) 2>&5 |
| 6380 |
ac_status=$? |
| 6381 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 |
(exit $ac_status); }; }; then |
| 6383 |
ac_cv_func_gethostbyname=yes |
| 6384 |
else |
| 6385 |
echo "$as_me: failed program was:" >&5 |
| 6386 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6387 |
|
| 6388 |
ac_cv_func_gethostbyname=no |
| 6389 |
fi |
| 6390 |
rm -f conftest.err conftest.$ac_objext \ |
| 6391 |
conftest$ac_exeext conftest.$ac_ext |
| 6392 |
fi |
| 6393 |
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6394 |
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
| 6395 |
if test $ac_cv_func_gethostbyname = yes; then |
| 6396 |
: |
| 6397 |
else |
| 6398 |
echo "$as_me:$LINENO: checking for printf in -lnsl" >&5 |
| 6399 |
echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6 |
| 6400 |
if test "${ac_cv_lib_nsl_printf+set}" = set; then |
| 6401 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6402 |
else |
| 6403 |
ac_check_lib_save_LIBS=$LIBS |
| 6404 |
LIBS="-lnsl $LIBS" |
| 6405 |
cat >conftest.$ac_ext <<_ACEOF |
| 6406 |
/* confdefs.h. */ |
| 6407 |
_ACEOF |
| 6408 |
cat confdefs.h >>conftest.$ac_ext |
| 6409 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6410 |
/* end confdefs.h. */ |
| 6411 |
|
| 6412 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6413 |
#ifdef __cplusplus |
| 6414 |
extern "C" |
| 6415 |
#endif |
| 6416 |
/* We use char because int might match the return type of a gcc2 |
| 6417 |
builtin and then its argument prototype would still apply. */ |
| 6418 |
char printf (); |
| 6419 |
int |
| 6420 |
main () |
| 6421 |
{ |
| 6422 |
printf (); |
| 6423 |
; |
| 6424 |
return 0; |
| 6425 |
} |
| 6426 |
_ACEOF |
| 6427 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6428 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6429 |
(eval $ac_link) 2>conftest.er1 |
| 6430 |
ac_status=$? |
| 6431 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6432 |
rm -f conftest.er1 |
| 6433 |
cat conftest.err >&5 |
| 6434 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 |
(exit $ac_status); } && |
| 6436 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6437 |
|| test ! -s conftest.err' |
| 6438 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6439 |
(eval $ac_try) 2>&5 |
| 6440 |
ac_status=$? |
| 6441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 |
(exit $ac_status); }; } && |
| 6443 |
{ ac_try='test -s conftest$ac_exeext' |
| 6444 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6445 |
(eval $ac_try) 2>&5 |
| 6446 |
ac_status=$? |
| 6447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 |
(exit $ac_status); }; }; then |
| 6449 |
ac_cv_lib_nsl_printf=yes |
| 6450 |
else |
| 6451 |
echo "$as_me: failed program was:" >&5 |
| 6452 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6453 |
|
| 6454 |
ac_cv_lib_nsl_printf=no |
| 6455 |
fi |
| 6456 |
rm -f conftest.err conftest.$ac_objext \ |
| 6457 |
conftest$ac_exeext conftest.$ac_ext |
| 6458 |
LIBS=$ac_check_lib_save_LIBS |
| 6459 |
fi |
| 6460 |
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5 |
| 6461 |
echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6 |
| 6462 |
if test $ac_cv_lib_nsl_printf = yes; then |
| 6463 |
X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl" |
| 6464 |
fi |
| 6465 |
|
| 6466 |
fi |
| 6467 |
|
| 6468 |
LIBS=$asc_oldLibs |
| 6469 |
|
| 6470 |
|
| 6471 |
#-------------------------------------------------------------------- |
| 6472 |
# The following comes directly from the configure.in file for |
| 6473 |
# Tcl8.0. |
| 6474 |
# |
| 6475 |
# The statements below define a collection of symbols related to |
| 6476 |
# dynamic loading and shared libraries: |
| 6477 |
# |
| 6478 |
# DL_OBJS - Name of the object file that implements dynamic |
| 6479 |
# loading for ASCEND on this system. |
| 6480 |
# DL_LIBS - Library file(s) to include in tclsh and other base |
| 6481 |
# applications in order for the "load" command to work. |
| 6482 |
# LD_FLAGS - Flags to pass to the compiler when linking object |
| 6483 |
# files into an executable application binary such |
| 6484 |
# as tclsh. |
| 6485 |
# LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib", |
| 6486 |
# that tell the run-time dynamic linker where to look |
| 6487 |
# for shared libraries such as libtcl.so. Depends on |
| 6488 |
# the variable LIB_RUNTIME_DIR in the Makefile. |
| 6489 |
# MAKE_LIB - Command to execute to build the ASCEND library; |
| 6490 |
# differs depending on whether or not ASCEND is being |
| 6491 |
# compiled as a shared library. |
| 6492 |
# SHLIB_CFLAGS - Flags to pass to cc when compiling the components |
| 6493 |
# of a shared library (may request position-independent |
| 6494 |
# code, among other things). |
| 6495 |
# SHLIB_LD - Base command to use for combining object files |
| 6496 |
# into a shared library. |
| 6497 |
# SHLIB_LD_LIBS - Dependent libraries for the linker to scan when |
| 6498 |
# creating shared libraries. This symbol typically |
| 6499 |
# goes at the end of the "ld" commands that build |
| 6500 |
# shared libraries. The value of the symbol is |
| 6501 |
# "${LIBS}" if all of the dependent libraries should |
| 6502 |
# be specified when creating a shared library. If |
| 6503 |
# dependent libraries should not be specified (as on |
| 6504 |
# SunOS 4.x, where they cause the link to fail, or in |
| 6505 |
# general if ASCEND and Tk aren't themselves shared |
| 6506 |
# libraries), then this symbol has an empty string |
| 6507 |
# as its value. |
| 6508 |
# SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable |
| 6509 |
# extensions. An empty string means we don't know how |
| 6510 |
# to use shared libraries on this platform. |
| 6511 |
# ASC_LIB_FILE - Name of the file that contains the ASCEND library, such |
| 6512 |
# as libtcl7.8.so or libtcl7.8.a. |
| 6513 |
# ASC_LIB_SUFFIX -Specifies everything that comes after the "libtcl" |
| 6514 |
# in the shared library name, using the $VERSION variable |
| 6515 |
# to put the version in the right place. This is used |
| 6516 |
# by platforms that need non-standard library names. |
| 6517 |
# Examples: ${VERSION}.so.1.1 on NetBSD, since it needs |
| 6518 |
# to have a version after the .so, and ${VERSION}.a |
| 6519 |
# on AIX, since the ASCEND shared library needs to have |
| 6520 |
# a .a extension whereas shared objects for loadable |
| 6521 |
# extensions have a .so extension. Defaults to |
| 6522 |
# ${VERSION}${SHLIB_SUFFIX}. |
| 6523 |
#-------------------------------------------------------------------- |
| 6524 |
|
| 6525 |
# Step 1: set the variable "system" to hold the name and version number |
| 6526 |
# for the system. This can usually be done via the "uname" command, but |
| 6527 |
# there are a few systems, like Next, where this doesn't work. |
| 6528 |
|
| 6529 |
# Changed this to use the "$host" variable from AC_CANONICAL_HOST |
| 6530 |
|
| 6531 |
# Step 2: check for existence of -ldl library. This is needed because |
| 6532 |
# Linux can use either -ldl or -ldld for dynamic loading. |
| 6533 |
|
| 6534 |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6535 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6536 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6537 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6538 |
else |
| 6539 |
ac_check_lib_save_LIBS=$LIBS |
| 6540 |
LIBS="-ldl $LIBS" |
| 6541 |
cat >conftest.$ac_ext <<_ACEOF |
| 6542 |
/* confdefs.h. */ |
| 6543 |
_ACEOF |
| 6544 |
cat confdefs.h >>conftest.$ac_ext |
| 6545 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6546 |
/* end confdefs.h. */ |
| 6547 |
|
| 6548 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6549 |
#ifdef __cplusplus |
| 6550 |
extern "C" |
| 6551 |
#endif |
| 6552 |
/* We use char because int might match the return type of a gcc2 |
| 6553 |
builtin and then its argument prototype would still apply. */ |
| 6554 |
char dlopen (); |
| 6555 |
int |
| 6556 |
main () |
| 6557 |
{ |
| 6558 |
dlopen (); |
| 6559 |
; |
| 6560 |
return 0; |
| 6561 |
} |
| 6562 |
_ACEOF |
| 6563 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6564 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6565 |
(eval $ac_link) 2>conftest.er1 |
| 6566 |
ac_status=$? |
| 6567 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6568 |
rm -f conftest.er1 |
| 6569 |
cat conftest.err >&5 |
| 6570 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6571 |
(exit $ac_status); } && |
| 6572 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6573 |
|| test ! -s conftest.err' |
| 6574 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6575 |
(eval $ac_try) 2>&5 |
| 6576 |
ac_status=$? |
| 6577 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 |
(exit $ac_status); }; } && |
| 6579 |
{ ac_try='test -s conftest$ac_exeext' |
| 6580 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6581 |
(eval $ac_try) 2>&5 |
| 6582 |
ac_status=$? |
| 6583 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 |
(exit $ac_status); }; }; then |
| 6585 |
ac_cv_lib_dl_dlopen=yes |
| 6586 |
else |
| 6587 |
echo "$as_me: failed program was:" >&5 |
| 6588 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 |
|
| 6590 |
ac_cv_lib_dl_dlopen=no |
| 6591 |
fi |
| 6592 |
rm -f conftest.err conftest.$ac_objext \ |
| 6593 |
conftest$ac_exeext conftest.$ac_ext |
| 6594 |
LIBS=$ac_check_lib_save_LIBS |
| 6595 |
fi |
| 6596 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6597 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6598 |
if test $ac_cv_lib_dl_dlopen = yes; then |
| 6599 |
have_dl=yes |
| 6600 |
else |
| 6601 |
have_dl=no |
| 6602 |
fi |
| 6603 |
|
| 6604 |
|
| 6605 |
# Step 3: set configuration options based on system name and version. |
| 6606 |
|
| 6607 |
ASC_SHARED_LIB_SUFFIX="" |
| 6608 |
ASC_UNSHARED_LIB_SUFFIX="" |
| 6609 |
ASC_LIB_VERSIONS_OK=ok |
| 6610 |
case $host in |
| 6611 |
*-aix*) |
| 6612 |
SHLIB_CFLAGS="" |
| 6613 |
SHLIB_LD="$fullpathsrcdir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512" |
| 6614 |
SHLIB_LD_LIBS='${LIBS}' |
| 6615 |
SHLIB_SUFFIX=".so" |
| 6616 |
DL_OBJS="" |
| 6617 |
DL_LIBS="-lld" |
| 6618 |
LD_FLAGS="" |
| 6619 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 6620 |
ASC_SHARED_LIB_SUFFIX='${VERSION}.a' |
| 6621 |
;; |
| 6622 |
*-bsdi*) |
| 6623 |
SHLIB_CFLAGS="" |
| 6624 |
SHLIB_LD="shlicc -r" |
| 6625 |
SHLIB_LD_LIBS='${LIBS}' |
| 6626 |
SHLIB_SUFFIX=".so" |
| 6627 |
DL_OBJS="" |
| 6628 |
DL_LIBS="-ldl" |
| 6629 |
LD_FLAGS="" |
| 6630 |
LD_SEARCH_FLAGS="" |
| 6631 |
;; |
| 6632 |
*-dgux*) |
| 6633 |
SHLIB_CFLAGS="-K PIC" |
| 6634 |
SHLIB_LD="cc -G" |
| 6635 |
SHLIB_LD_LIBS="" |
| 6636 |
SHLIB_SUFFIX=".so" |
| 6637 |
DL_OBJS="" |
| 6638 |
DL_LIBS="-ldl" |
| 6639 |
LD_FLAGS="" |
| 6640 |
LD_SEARCH_FLAGS="" |
| 6641 |
;; |
| 6642 |
*-hpux8*|*-hpux9*|*-hpux10*) |
| 6643 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6644 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6645 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6646 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6647 |
else |
| 6648 |
ac_check_lib_save_LIBS=$LIBS |
| 6649 |
LIBS="-ldld $LIBS" |
| 6650 |
cat >conftest.$ac_ext <<_ACEOF |
| 6651 |
/* confdefs.h. */ |
| 6652 |
_ACEOF |
| 6653 |
cat confdefs.h >>conftest.$ac_ext |
| 6654 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6655 |
/* end confdefs.h. */ |
| 6656 |
|
| 6657 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6658 |
#ifdef __cplusplus |
| 6659 |
extern "C" |
| 6660 |
#endif |
| 6661 |
/* We use char because int might match the return type of a gcc2 |
| 6662 |
builtin and then its argument prototype would still apply. */ |
| 6663 |
char shl_load (); |
| 6664 |
int |
| 6665 |
main () |
| 6666 |
{ |
| 6667 |
shl_load (); |
| 6668 |
; |
| 6669 |
return 0; |
| 6670 |
} |
| 6671 |
_ACEOF |
| 6672 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6673 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6674 |
(eval $ac_link) 2>conftest.er1 |
| 6675 |
ac_status=$? |
| 6676 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6677 |
rm -f conftest.er1 |
| 6678 |
cat conftest.err >&5 |
| 6679 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 |
(exit $ac_status); } && |
| 6681 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6682 |
|| test ! -s conftest.err' |
| 6683 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6684 |
(eval $ac_try) 2>&5 |
| 6685 |
ac_status=$? |
| 6686 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6687 |
(exit $ac_status); }; } && |
| 6688 |
{ ac_try='test -s conftest$ac_exeext' |
| 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_cv_lib_dld_shl_load=yes |
| 6695 |
else |
| 6696 |
echo "$as_me: failed program was:" >&5 |
| 6697 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6698 |
|
| 6699 |
ac_cv_lib_dld_shl_load=no |
| 6700 |
fi |
| 6701 |
rm -f conftest.err conftest.$ac_objext \ |
| 6702 |
conftest$ac_exeext conftest.$ac_ext |
| 6703 |
LIBS=$ac_check_lib_save_LIBS |
| 6704 |
fi |
| 6705 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6706 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6707 |
if test $ac_cv_lib_dld_shl_load = yes; then |
| 6708 |
tcl_ok=yes |
| 6709 |
else |
| 6710 |
tcl_ok=no |
| 6711 |
fi |
| 6712 |
|
| 6713 |
if test "$tcl_ok" = yes; then |
| 6714 |
SHLIB_CFLAGS="+z" |
| 6715 |
SHLIB_LD="ld -b" |
| 6716 |
SHLIB_LD_LIBS="" |
| 6717 |
SHLIB_SUFFIX=".sl" |
| 6718 |
DL_OBJS="" |
| 6719 |
DL_LIBS="-ldld" |
| 6720 |
LD_FLAGS="-Wl,-E" |
| 6721 |
LD_SEARCH_FLAGS='-Wl,+b,${LIB_RUNTIME_DIR}:.' |
| 6722 |
fi |
| 6723 |
;; |
| 6724 |
*-irix4*) |
| 6725 |
SHLIB_CFLAGS="-G 0" |
| 6726 |
SHLIB_SUFFIX=".a" |
| 6727 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
| 6728 |
SHLIB_LD_LIBS='${LIBS}' |
| 6729 |
DL_OBJS="" |
| 6730 |
DL_LIBS="" |
| 6731 |
LD_FLAGS="-Wl,-D,08000000" |
| 6732 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 6733 |
ASC_SHARED_LIB_SUFFIX='${VERSION}.a' |
| 6734 |
;; |
| 6735 |
*-irix5*|*-irix6.*) |
| 6736 |
SHLIB_CFLAGS="" |
| 6737 |
SHLIB_LD="ld -shared -rdata_shared" |
| 6738 |
SHLIB_LD_LIBS="" |
| 6739 |
SHLIB_SUFFIX=".so" |
| 6740 |
DL_OBJS="" |
| 6741 |
DL_LIBS="" |
| 6742 |
LD_FLAGS="" |
| 6743 |
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
| 6744 |
;; |
| 6745 |
*-linux*) |
| 6746 |
SHLIB_CFLAGS="-fPIC" |
| 6747 |
SHLIB_LD_LIBS="" |
| 6748 |
SHLIB_SUFFIX=".so" |
| 6749 |
if test "$have_dl" = yes; then |
| 6750 |
SHLIB_LD="${CC} -shared" |
| 6751 |
DL_OBJS="" |
| 6752 |
DL_LIBS="-ldl" |
| 6753 |
LD_FLAGS="-rdynamic" |
| 6754 |
LD_SEARCH_FLAGS="" |
| 6755 |
else |
| 6756 |
if test "${ac_cv_header_dld_h+set}" = set; then |
| 6757 |
echo "$as_me:$LINENO: checking for dld.h" >&5 |
| 6758 |
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6 |
| 6759 |
if test "${ac_cv_header_dld_h+set}" = set; then |
| 6760 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6761 |
fi |
| 6762 |
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 |
| 6763 |
echo "${ECHO_T}$ac_cv_header_dld_h" >&6 |
| 6764 |
else |
| 6765 |
# Is the header compilable? |
| 6766 |
echo "$as_me:$LINENO: checking dld.h usability" >&5 |
| 6767 |
echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6 |
| 6768 |
cat >conftest.$ac_ext <<_ACEOF |
| 6769 |
/* confdefs.h. */ |
| 6770 |
_ACEOF |
| 6771 |
cat confdefs.h >>conftest.$ac_ext |
| 6772 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6773 |
/* end confdefs.h. */ |
| 6774 |
$ac_includes_default |
| 6775 |
#include <dld.h> |
| 6776 |
_ACEOF |
| 6777 |
rm -f conftest.$ac_objext |
| 6778 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6779 |
(eval $ac_compile) 2>conftest.er1 |
| 6780 |
ac_status=$? |
| 6781 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6782 |
rm -f conftest.er1 |
| 6783 |
cat conftest.err >&5 |
| 6784 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6785 |
(exit $ac_status); } && |
| 6786 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6787 |
|| test ! -s conftest.err' |
| 6788 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6789 |
(eval $ac_try) 2>&5 |
| 6790 |
ac_status=$? |
| 6791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6792 |
(exit $ac_status); }; } && |
| 6793 |
{ ac_try='test -s conftest.$ac_objext' |
| 6794 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6795 |
(eval $ac_try) 2>&5 |
| 6796 |
ac_status=$? |
| 6797 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6798 |
(exit $ac_status); }; }; then |
| 6799 |
ac_header_compiler=yes |
| 6800 |
else |
| 6801 |
echo "$as_me: failed program was:" >&5 |
| 6802 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6803 |
|
| 6804 |
ac_header_compiler=no |
| 6805 |
fi |
| 6806 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6807 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6808 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6809 |
|
| 6810 |
# Is the header present? |
| 6811 |
echo "$as_me:$LINENO: checking dld.h presence" >&5 |
| 6812 |
echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6 |
| 6813 |
cat >conftest.$ac_ext <<_ACEOF |
| 6814 |
/* confdefs.h. */ |
| 6815 |
_ACEOF |
| 6816 |
cat confdefs.h >>conftest.$ac_ext |
| 6817 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6818 |
/* end confdefs.h. */ |
| 6819 |
#include <dld.h> |
| 6820 |
_ACEOF |
| 6821 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6822 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6823 |
ac_status=$? |
| 6824 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6825 |
rm -f conftest.er1 |
| 6826 |
cat conftest.err >&5 |
| 6827 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6828 |
(exit $ac_status); } >/dev/null; then |
| 6829 |
if test -s conftest.err; then |
| 6830 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6831 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6832 |
else |
| 6833 |
ac_cpp_err= |
| 6834 |
fi |
| 6835 |
else |
| 6836 |
ac_cpp_err=yes |
| 6837 |
fi |
| 6838 |
if test -z "$ac_cpp_err"; then |
| 6839 |
ac_header_preproc=yes |
| 6840 |
else |
| 6841 |
echo "$as_me: failed program was:" >&5 |
| 6842 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6843 |
|
| 6844 |
ac_header_preproc=no |
| 6845 |
fi |
| 6846 |
rm -f conftest.err conftest.$ac_ext |
| 6847 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6848 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6849 |
|
| 6850 |
# So? What about this header? |
| 6851 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6852 |
yes:no: ) |
| 6853 |
{ echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6854 |
echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6855 |
{ echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 |
| 6856 |
echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} |
| 6857 |
ac_header_preproc=yes |
| 6858 |
;; |
| 6859 |
no:yes:* ) |
| 6860 |
{ echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 |
| 6861 |
echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} |
| 6862 |
{ echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 |
| 6863 |
echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} |
| 6864 |
{ echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 |
| 6865 |
echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} |
| 6866 |
{ echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6867 |
echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6868 |
{ echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 |
| 6869 |
echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} |
| 6870 |
{ echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 |
| 6871 |
echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} |
| 6872 |
( |
| 6873 |
cat <<\_ASBOX |
| 6874 |
## ------------------------------------------ ## |
| 6875 |
## Report this to the AC_PACKAGE_NAME lists. ## |
| 6876 |
## ------------------------------------------ ## |
| 6877 |
_ASBOX |
| 6878 |
) | |
| 6879 |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6880 |
;; |
| 6881 |
esac |
| 6882 |
echo "$as_me:$LINENO: checking for dld.h" >&5 |
| 6883 |
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6 |
| 6884 |
if test "${ac_cv_header_dld_h+set}" = set; then |
| 6885 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6886 |
else |
| 6887 |
ac_cv_header_dld_h=$ac_header_preproc |
| 6888 |
fi |
| 6889 |
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 |
| 6890 |
echo "${ECHO_T}$ac_cv_header_dld_h" >&6 |
| 6891 |
|
| 6892 |
fi |
| 6893 |
if test $ac_cv_header_dld_h = yes; then |
| 6894 |
|
| 6895 |
SHLIB_LD="ld -shared" |
| 6896 |
DL_OBJS="" |
| 6897 |
DL_LIBS="-ldld" |
| 6898 |
LD_FLAGS="" |
| 6899 |
LD_SEARCH_FLAGS="" |
| 6900 |
fi |
| 6901 |
|
| 6902 |
|
| 6903 |
fi |
| 6904 |
;; |
| 6905 |
MP-RAS-02*) |
| 6906 |
SHLIB_CFLAGS="-K PIC" |
| 6907 |
SHLIB_LD="cc -G" |
| 6908 |
SHLIB_LD_LIBS="" |
| 6909 |
SHLIB_SUFFIX=".so" |
| 6910 |
DL_OBJS="" |
| 6911 |
DL_LIBS="-ldl" |
| 6912 |
LD_FLAGS="" |
| 6913 |
LD_SEARCH_FLAGS="" |
| 6914 |
;; |
| 6915 |
MP-RAS-*) |
| 6916 |
SHLIB_CFLAGS="-K PIC" |
| 6917 |
SHLIB_LD="cc -G" |
| 6918 |
SHLIB_LD_LIBS="" |
| 6919 |
SHLIB_SUFFIX=".so" |
| 6920 |
DL_OBJS="" |
| 6921 |
DL_LIBS="-ldl" |
| 6922 |
LD_FLAGS="-Wl,-Bexport" |
| 6923 |
LD_SEARCH_FLAGS="" |
| 6924 |
;; |
| 6925 |
*-netbsd*|*-freebsd*|*-openbsd*) |
| 6926 |
# Not available on all versions: check for include file. |
| 6927 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 6928 |
echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 6929 |
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 6930 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 6931 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6932 |
fi |
| 6933 |
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 6934 |
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 6935 |
else |
| 6936 |
# Is the header compilable? |
| 6937 |
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 6938 |
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 6939 |
cat >conftest.$ac_ext <<_ACEOF |
| 6940 |
/* confdefs.h. */ |
| 6941 |
_ACEOF |
| 6942 |
cat confdefs.h >>conftest.$ac_ext |
| 6943 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6944 |
/* end confdefs.h. */ |
| 6945 |
$ac_includes_default |
| 6946 |
#include <dlfcn.h> |
| 6947 |
_ACEOF |
| 6948 |
rm -f conftest.$ac_objext |
| 6949 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6950 |
(eval $ac_compile) 2>conftest.er1 |
| 6951 |
ac_status=$? |
| 6952 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6953 |
rm -f conftest.er1 |
| 6954 |
cat conftest.err >&5 |
| 6955 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6956 |
(exit $ac_status); } && |
| 6957 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6958 |
|| test ! -s conftest.err' |
| 6959 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6960 |
(eval $ac_try) 2>&5 |
| 6961 |
ac_status=$? |
| 6962 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6963 |
(exit $ac_status); }; } && |
| 6964 |
{ ac_try='test -s conftest.$ac_objext' |
| 6965 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6966 |
(eval $ac_try) 2>&5 |
| 6967 |
ac_status=$? |
| 6968 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6969 |
(exit $ac_status); }; }; then |
| 6970 |
ac_header_compiler=yes |
| 6971 |
else |
| 6972 |
echo "$as_me: failed program was:" >&5 |
| 6973 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6974 |
|
| 6975 |
ac_header_compiler=no |
| 6976 |
fi |
| 6977 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6978 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6979 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6980 |
|
| 6981 |
# Is the header present? |
| 6982 |
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 6983 |
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 6984 |
cat >conftest.$ac_ext <<_ACEOF |
| 6985 |
/* confdefs.h. */ |
| 6986 |
_ACEOF |
| 6987 |
cat confdefs.h >>conftest.$ac_ext |
| 6988 |
cat >>conftest.$ac_ext <<_ACEOF |
| 6989 |
/* end confdefs.h. */ |
| 6990 |
#include <dlfcn.h> |
| 6991 |
_ACEOF |
| 6992 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6993 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6994 |
ac_status=$? |
| 6995 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6996 |
rm -f conftest.er1 |
| 6997 |
cat conftest.err >&5 |
| 6998 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6999 |
(exit $ac_status); } >/dev/null; then |
| 7000 |
if test -s conftest.err; then |
| 7001 |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7002 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7003 |
else |
| 7004 |
ac_cpp_err= |
| 7005 |
fi |
| 7006 |
else |
| 7007 |
ac_cpp_err=yes |
| 7008 |
fi |
| 7009 |
if test -z "$ac_cpp_err"; then |
| 7010 |
ac_header_preproc=yes |
| 7011 |
else |
| 7012 |
echo "$as_me: failed program was:" >&5 |
| 7013 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7014 |
|
| 7015 |
ac_header_preproc=no |
| 7016 |
fi |
| 7017 |
rm -f conftest.err conftest.$ac_ext |
| 7018 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7019 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7020 |
|
| 7021 |
# So? What about this header? |
| 7022 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7023 |
yes:no: ) |
| 7024 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7025 |
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7026 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 7027 |
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 7028 |
ac_header_preproc=yes |
| 7029 |
;; |
| 7030 |
no:yes:* ) |
| 7031 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 7032 |
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 7033 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 7034 |
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 7035 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 7036 |
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 7037 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7038 |
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7039 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 7040 |
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 7041 |
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 7042 |
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 7043 |
( |
| 7044 |
cat <<\_ASBOX |
| 7045 |
## ------------------------------------------ ## |
| 7046 |
## Report this to the AC_PACKAGE_NAME lists. ## |
| 7047 |
## ------------------------------------------ ## |
| 7048 |
_ASBOX |
| 7049 |
) | |
| 7050 |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7051 |
;; |
| 7052 |
esac |
| 7053 |
echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 7054 |
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 7055 |
if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 7056 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7057 |
else |
| 7058 |
ac_cv_header_dlfcn_h=$ac_header_preproc |
| 7059 |
fi |
| 7060 |
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 7061 |
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 7062 |
|
| 7063 |
fi |
| 7064 |
if test $ac_cv_header_dlfcn_h = yes; then |
| 7065 |
|
| 7066 |
SHLIB_CFLAGS="-fpic" |
| 7067 |
SHLIB_LD="ld -Bshareable -x" |
| 7068 |
SHLIB_LD_LIBS="" |
| 7069 |
SHLIB_SUFFIX=".so" |
| 7070 |
DL_OBJS="" |
| 7071 |
DL_LIBS="" |
| 7072 |
LD_FLAGS="" |
| 7073 |
LD_SEARCH_FLAGS="" |
| 7074 |
ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0' |
| 7075 |
|
| 7076 |
else |
| 7077 |
|
| 7078 |
SHLIB_CFLAGS="" |
| 7079 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
| 7080 |
SHLIB_LD_LIBS='${LIBS}' |
| 7081 |
SHLIB_SUFFIX=".a" |
| 7082 |
DL_OBJS="" |
| 7083 |
DL_LIBS="" |
| 7084 |
LD_FLAGS="" |
| 7085 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 7086 |
ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a' |
| 7087 |
|
| 7088 |
fi |
| 7089 |
|
| 7090 |
|
| 7091 |
|
| 7092 |
# FreeBSD doesn't handle version numbers with dots. |
| 7093 |
|
| 7094 |
ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a' |
| 7095 |
ASC_LIB_VERSIONS_OK=nodots |
| 7096 |
;; |
| 7097 |
*-nextstep*) |
| 7098 |
SHLIB_CFLAGS="" |
| 7099 |
SHLIB_LD="cc -nostdlib -r" |
| 7100 |
SHLIB_LD_LIBS="" |
| 7101 |
SHLIB_SUFFIX=".so" |
| 7102 |
DL_OBJS="" |
| 7103 |
DL_LIBS="" |
| 7104 |
LD_FLAGS="" |
| 7105 |
LD_SEARCH_FLAGS="" |
| 7106 |
;; |
| 7107 |
alpha-dec-osf*) |
| 7108 |
# Digital OSF/1 |
| 7109 |
SHLIB_CFLAGS="" |
| 7110 |
SHLIB_LD='ld -shared -expect_unresolved "*"' |
| 7111 |
SHLIB_LD_LIBS="" |
| 7112 |
SHLIB_SUFFIX=".so" |
| 7113 |
DL_OBJS="" |
| 7114 |
DL_LIBS="" |
| 7115 |
LD_FLAGS="" |
| 7116 |
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
| 7117 |
;; |
| 7118 |
*-riscos*) |
| 7119 |
SHLIB_CFLAGS="-G 0" |
| 7120 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
| 7121 |
SHLIB_LD_LIBS='${LIBS}' |
| 7122 |
SHLIB_SUFFIX=".a" |
| 7123 |
DL_OBJS="" |
| 7124 |
DL_LIBS="" |
| 7125 |
LD_FLAGS="-Wl,-D,08000000" |
| 7126 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 7127 |
;; |
| 7128 |
SCO_SV-3.2*) |
| 7129 |
# Note, dlopen is available only on SCO 3.2.5 and greater. However, |
| 7130 |
# this test works, since "uname -s" was non-standard in 3.2.4 and |
| 7131 |
# below. |
| 7132 |
SHLIB_CFLAGS="-Kpic -belf" |
| 7133 |
SHLIB_LD="ld -G" |
| 7134 |
SHLIB_LD_LIBS="" |
| 7135 |
SHLIB_SUFFIX=".so" |
| 7136 |
DL_OBJS="" |
| 7137 |
DL_LIBS="" |
| 7138 |
LD_FLAGS="-belf -Wl,-Bexport" |
| 7139 |
LD_SEARCH_FLAGS="" |
| 7140 |
;; |
| 7141 |
*-sni-sysv*) |
| 7142 |
SHLIB_CFLAGS="-K PIC" |
| 7143 |
SHLIB_LD="cc -G" |
| 7144 |
SHLIB_LD_LIBS="" |
| 7145 |
SHLIB_SUFFIX=".so" |
| 7146 |
DL_OBJS="" |
| 7147 |
DL_LIBS="-ldl" |
| 7148 |
LD_FLAGS="" |
| 7149 |
LD_SEARCH_FLAGS="" |
| 7150 |
;; |
| 7151 |
*-sunos4*) |
| 7152 |
SHLIB_CFLAGS="-PIC" |
| 7153 |
SHLIB_LD="ld" |
| 7154 |
SHLIB_LD_LIBS="" |
| 7155 |
SHLIB_SUFFIX=".so" |
| 7156 |
DL_OBJS="" |
| 7157 |
DL_LIBS="-ldl" |
| 7158 |
LD_FLAGS="" |
| 7159 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 7160 |
|
| 7161 |
# SunOS can't handle version numbers with dots in them in library |
| 7162 |
# specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
| 7163 |
# requires an extra version number at the end of .so file names. |
| 7164 |
# So, the library has to have a name like libtcl75.so.1.0 |
| 7165 |
|
| 7166 |
ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0' |
| 7167 |
ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a' |
| 7168 |
ASC_LIB_VERSIONS_OK=nodots |
| 7169 |
;; |
| 7170 |
*-solaris*) |
| 7171 |
SHLIB_CFLAGS="-KPIC" |
| 7172 |
SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
| 7173 |
|
| 7174 |
# Note: need the LIBS below, otherwise Tk won't find ASCEND's |
| 7175 |
# symbols when dynamically loaded into tclsh. |
| 7176 |
|
| 7177 |
SHLIB_LD_LIBS='${LIBS}' |
| 7178 |
SHLIB_SUFFIX=".so" |
| 7179 |
DL_OBJS="" |
| 7180 |
DL_LIBS="-ldl" |
| 7181 |
LD_FLAGS="" |
| 7182 |
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
| 7183 |
;; |
| 7184 |
*-ultrix4*) |
| 7185 |
SHLIB_CFLAGS="-G 0" |
| 7186 |
SHLIB_SUFFIX=".a" |
| 7187 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
| 7188 |
SHLIB_LD_LIBS='${LIBS}' |
| 7189 |
DL_OBJS="" |
| 7190 |
DL_LIBS="" |
| 7191 |
LD_FLAGS="-Wl,-D,08000000" |
| 7192 |
LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 7193 |
;; |
| 7194 |
mips-dde-sysv*) |
| 7195 |
SHLIB_CFLAGS="-KPIC" |
| 7196 |
SHLIB_LD="cc -G" |
| 7197 |
SHLIB_LD_LIBS="" |
| 7198 |
SHLIB_SUFFIX=".so" |
| 7199 |
DL_OBJS="" |
| 7200 |
DL_LIBS="-ldl" |
| 7201 |
# Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
| 7202 |
# that don't grok the -Bexport option. Test that it does. |
| 7203 |
hold_ldflags=$LDFLAGS |
| 7204 |
echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 |
| 7205 |
echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 |
| 7206 |
LDFLAGS="${LDFLAGS} -Wl,-Bexport" |
| 7207 |
cat >conftest.$ac_ext <<_ACEOF |
| 7208 |
/* confdefs.h. */ |
| 7209 |
_ACEOF |
| 7210 |
cat confdefs.h >>conftest.$ac_ext |
| 7211 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7212 |
/* end confdefs.h. */ |
| 7213 |
|
| 7214 |
int |
| 7215 |
main () |
| 7216 |
{ |
| 7217 |
int i; |
| 7218 |
; |
| 7219 |
return 0; |
| 7220 |
} |
| 7221 |
_ACEOF |
| 7222 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7223 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7224 |
(eval $ac_link) 2>conftest.er1 |
| 7225 |
ac_status=$? |
| 7226 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7227 |
rm -f conftest.er1 |
| 7228 |
cat conftest.err >&5 |
| 7229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7230 |
(exit $ac_status); } && |
| 7231 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7232 |
|| test ! -s conftest.err' |
| 7233 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7234 |
(eval $ac_try) 2>&5 |
| 7235 |
ac_status=$? |
| 7236 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7237 |
(exit $ac_status); }; } && |
| 7238 |
{ ac_try='test -s conftest$ac_exeext' |
| 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 |
found=yes |
| 7245 |
else |
| 7246 |
echo "$as_me: failed program was:" >&5 |
| 7247 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7248 |
|
| 7249 |
found=no |
| 7250 |
fi |
| 7251 |
rm -f conftest.err conftest.$ac_objext \ |
| 7252 |
conftest$ac_exeext conftest.$ac_ext |
| 7253 |
LDFLAGS=$hold_ldflags |
| 7254 |
echo "$as_me:$LINENO: result: $found" >&5 |
| 7255 |
echo "${ECHO_T}$found" >&6 |
| 7256 |
if test "$found" = yes; then |
| 7257 |
LD_FLAGS="-Wl,-Bexport" |
| 7258 |
else |
| 7259 |
LD_FLAGS="" |
| 7260 |
fi |
| 7261 |
LD_SEARCH_FLAGS="" |
| 7262 |
;; |
| 7263 |
esac |
| 7264 |
|
| 7265 |
#-------------------------------------------------------------------- |
| 7266 |
# TCL / TK / TK-TABLE |
| 7267 |
# |
| 7268 |
# The user can specify the location of the Tcl and/or Tk |
| 7269 |
# libraries using the --with-tcl and --with-tk configure |
| 7270 |
# options. Print a warning if the user tries to say |
| 7271 |
# --without-tcl since ASCEND requires Tcl/Tk. |
| 7272 |
# |
| 7273 |
# If the user does not specify the location, we need to search |
| 7274 |
# for either shared or static versions of the Tcl and Tk |
| 7275 |
# libraries, and they must be for version 8.x of Tcl/Tk. |
| 7276 |
# |
| 7277 |
# Check for the static Tcl library in a list of reasonable |
| 7278 |
# locations. If we find it, verify that it is from Tcl 8.0 by |
| 7279 |
# looking for the symbol `TclCompileCatchCmd'. Remember, we |
| 7280 |
# need the math library and the dynamic loader library (-ldl or |
| 7281 |
# -ldld) to avoid undefined symbols when we test the version of |
| 7282 |
# the Tcl library. |
| 7283 |
# |
| 7284 |
# If we can't find a static Tcl8.0 library, try to find a |
| 7285 |
# dynamic one by calling AC_CHECK_LIB and looking for the |
| 7286 |
# function `TclCompileCatchCmd'. If we fail, print an error |
| 7287 |
# message and exit configure. |
| 7288 |
# |
| 7289 |
# Search for a version of tcl.h that contains `8.' in the |
| 7290 |
# TCL_MAJOR_VERSION macro; we look in a list of reasonable |
| 7291 |
# locations, then call AC_EGREP_HEADER to look for us. |
| 7292 |
# |
| 7293 |
# Repeat the process for the Tk library; the symbol we want is |
| 7294 |
# `Tk_NameOfFont'; remember we need the X library---and all the |
| 7295 |
# libraries it needs---as well as the Tcl library to avoid |
| 7296 |
# undefined symbols when we test the version of the Tk library. |
| 7297 |
# |
| 7298 |
# The user can use --with-tktable to specify a location for a |
| 7299 |
# static version of the Tk-Table library. If a value is |
| 7300 |
# specified, assume it is good and define the cpp macro |
| 7301 |
# STATIC_TABLE. |
| 7302 |
# |
| 7303 |
# If a value is not specified, look for libTktable.a; if we |
| 7304 |
# find it, assume it works and define the cpp macro |
| 7305 |
# STATIC_TABLE. If we don't find it, assume ASCEND will be |
| 7306 |
# able to dynamically load it at run time and tell the user |
| 7307 |
# about our assumption. |
| 7308 |
#-------------------------------------------------------------------- |
| 7309 |
# |
| 7310 |
# a list of directories to search for the Tcl/Tk libraries |
| 7311 |
asc_tcl_library_dirs=" |
| 7312 |
/usr/local/lib/ascend/lib |
| 7313 |
$prefix/lib:$exec_prefix/lib |
| 7314 |
$ascpwd/tcl8.0 |
| 7315 |
$ascpwd/tcl8.0/unix |
| 7316 |
$ascpwd/tk8.0 |
| 7317 |
$ascpwd/tk8.0/unix |
| 7318 |
$ascpwd/ascend4/lib |
| 7319 |
/lib |
| 7320 |
/usr/lib |
| 7321 |
/usr/local/lib |
| 7322 |
/usr/contributed/lib |
| 7323 |
/afs/cs/project/ascend/depot/@sys/lib |
| 7324 |
" |
| 7325 |
# a list of directories to search for the Tcl/Tk include files |
| 7326 |
asc_tcl_include_dirs=" |
| 7327 |
/usr/local/lib/ascend/include |
| 7328 |
$prefix/include |
| 7329 |
$fullpathsrcdir/tcl8.0 |
| 7330 |
$fullpathsrcdir/tcl8.0/generic |
| 7331 |
$fullpathsrcdir/tk8.0 |
| 7332 |
$fullpathsrcdir/tk8.0/generic |
| 7333 |
$fullpathsrcdir/ascend4/include |
| 7334 |
$ascpwd/ascend4/include |
| 7335 |
/usr/include |
| 7336 |
/usr/local/include |
| 7337 |
/usr/contributed/include |
| 7338 |
/afs/cs/project/ascend/depot/common/include |
| 7339 |
" |
| 7340 |
# a list of directories to search for the TkTable library |
| 7341 |
asc_tk_table_dirs=" |
| 7342 |
/usr/local/lib/ascend/lib/Tktable |
| 7343 |
$prefix/lib/Tktable |
| 7344 |
$exec_prefix/lib/Tktable |
| 7345 |
$ascpwd/tkTable1.80 |
| 7346 |
$ascpwd/ascend4/lib |
| 7347 |
$ascpwd/ascend4/lib/Tktable |
| 7348 |
/afs/cs/project/ascend/depot/@sys/lib/Tktable |
| 7349 |
" |
| 7350 |
# see if the user gave us the location of the Tcl8.0 |
| 7351 |
# library and/or header file |
| 7352 |
# |
| 7353 |
|
| 7354 |
# Check whether --with-tcl or --without-tcl was given. |
| 7355 |
if test "${with_tcl+set}" = set; then |
| 7356 |
withval="$with_tcl" |
| 7357 |
|
| 7358 |
else |
| 7359 |
with_tcl=yes |
| 7360 |
fi; |
| 7361 |
|
| 7362 |
case "$with_tcl" in |
| 7363 |
no) |
| 7364 |
# User specified --without-tcl; this makes no sense, |
| 7365 |
# print a warning and search for it ourselves |
| 7366 |
{ echo "$as_me:$LINENO: WARNING: Bad option '--without-tcl' |
| 7367 |
ASCEND must be compiled with Tcl8.0." >&5 |
| 7368 |
echo "$as_me: WARNING: Bad option '--without-tcl' |
| 7369 |
ASCEND must be compiled with Tcl8.0." >&2;} |
| 7370 |
with_tcllib=_searching |
| 7371 |
with_tclhdr=_searching |
| 7372 |
;; |
| 7373 |
yes|,|"") |
| 7374 |
# User didn't give the option or didn't give useful |
| 7375 |
# information, search for it ourselves |
| 7376 |
with_tcllib=_searching |
| 7377 |
with_tclhdr=_searching |
| 7378 |
;; |
| 7379 |
,*) |
| 7380 |
# Only the header was specified. |
| 7381 |
with_tcllib=_searching |
| 7382 |
TCL_HDR=`echo $with_tcl | sed 's/^,//'` |
| 7383 |
;; |
| 7384 |
*,?*) |
| 7385 |
# Both the library and the header were specified |
| 7386 |
TCL_LIB=`echo $with_tcl | sed 's/,.*$//'` |
| 7387 |
TCL_HDR=`echo $with_tcl | sed 's/^.*,//'` |
| 7388 |
;; |
| 7389 |
*) |
| 7390 |
# Only the library was specified |
| 7391 |
TCL_LIB=`echo $with_tcl | sed 's/,$//'` |
| 7392 |
with_tclhdr=_searching |
| 7393 |
;; |
| 7394 |
esac |
| 7395 |
|
| 7396 |
# try to find a static version of the Tcl8.0 library |
| 7397 |
# |
| 7398 |
if test "X$with_tcllib" = X_searching ; then |
| 7399 |
for ac_prog in libtcl8.0.a libtcl80.a libtcl8.3.a |
| 7400 |
do |
| 7401 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7402 |
set dummy $ac_prog; ac_word=$2 |
| 7403 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7404 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7405 |
if test "${ac_cv_path_TCL_LIB+set}" = set; then |
| 7406 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7407 |
else |
| 7408 |
case $TCL_LIB in |
| 7409 |
[\\/]* | ?:[\\/]*) |
| 7410 |
ac_cv_path_TCL_LIB="$TCL_LIB" # Let the user override the test with a path. |
| 7411 |
;; |
| 7412 |
*) |
| 7413 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7414 |
for as_dir in $asc_tcl_library_dirs |
| 7415 |
do |
| 7416 |
IFS=$as_save_IFS |
| 7417 |
test -z "$as_dir" && as_dir=. |
| 7418 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7419 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7420 |
ac_cv_path_TCL_LIB="$as_dir/$ac_word$ac_exec_ext" |
| 7421 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7422 |
break 2 |
| 7423 |
fi |
| 7424 |
done |
| 7425 |
done |
| 7426 |
|
| 7427 |
;; |
| 7428 |
esac |
| 7429 |
fi |
| 7430 |
TCL_LIB=$ac_cv_path_TCL_LIB |
| 7431 |
|
| 7432 |
if test -n "$TCL_LIB"; then |
| 7433 |
echo "$as_me:$LINENO: result: $TCL_LIB" >&5 |
| 7434 |
echo "${ECHO_T}$TCL_LIB" >&6 |
| 7435 |
else |
| 7436 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7437 |
echo "${ECHO_T}no" >&6 |
| 7438 |
fi |
| 7439 |
|
| 7440 |
test -n "$TCL_LIB" && break |
| 7441 |
done |
| 7442 |
|
| 7443 |
if test -z "$TCL_LIB" ; then |
| 7444 |
TCL_LIB=_searching |
| 7445 |
fi |
| 7446 |
else |
| 7447 |
echo "$as_me:$LINENO: result: checking for tcl library... $TCL_LIB" >&5 |
| 7448 |
echo "${ECHO_T}checking for tcl library... $TCL_LIB" >&6 |
| 7449 |
fi |
| 7450 |
|
| 7451 |
# verify the TCL_LIB |
| 7452 |
if test ! "X$TCL_LIB" = X_searching ; then |
| 7453 |
echo "$as_me:$LINENO: checking whether $TCL_LIB is for Tcl8.3" >&5 |
| 7454 |
echo $ECHO_N "checking whether $TCL_LIB is for Tcl8.3... $ECHO_C" >&6 |
| 7455 |
asc_libs_orig=$LIBS |
| 7456 |
LIBS="$TCL_LIB $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7457 |
cat >conftest.$ac_ext <<_ACEOF |
| 7458 |
/* confdefs.h. */ |
| 7459 |
_ACEOF |
| 7460 |
cat confdefs.h >>conftest.$ac_ext |
| 7461 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7462 |
/* end confdefs.h. */ |
| 7463 |
|
| 7464 |
int |
| 7465 |
main () |
| 7466 |
{ |
| 7467 |
TclCompileCatchCmd() |
| 7468 |
; |
| 7469 |
return 0; |
| 7470 |
} |
| 7471 |
_ACEOF |
| 7472 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7473 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7474 |
(eval $ac_link) 2>conftest.er1 |
| 7475 |
ac_status=$? |
| 7476 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7477 |
rm -f conftest.er1 |
| 7478 |
cat conftest.err >&5 |
| 7479 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7480 |
(exit $ac_status); } && |
| 7481 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7482 |
|| test ! -s conftest.err' |
| 7483 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7484 |
(eval $ac_try) 2>&5 |
| 7485 |
ac_status=$? |
| 7486 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 |
(exit $ac_status); }; } && |
| 7488 |
{ ac_try='test -s conftest$ac_exeext' |
| 7489 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7490 |
(eval $ac_try) 2>&5 |
| 7491 |
ac_status=$? |
| 7492 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7493 |
(exit $ac_status); }; }; then |
| 7494 |
: |
| 7495 |
else |
| 7496 |
echo "$as_me: failed program was:" >&5 |
| 7497 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7498 |
|
| 7499 |
TCL_LIB=_searching |
| 7500 |
fi |
| 7501 |
rm -f conftest.err conftest.$ac_objext \ |
| 7502 |
conftest$ac_exeext conftest.$ac_ext; |
| 7503 |
if test "X$TCL_LIB" = X_searching ; then |
| 7504 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7505 |
echo "${ECHO_T}no" >&6 |
| 7506 |
else |
| 7507 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7508 |
echo "${ECHO_T}yes" >&6 |
| 7509 |
fi |
| 7510 |
LIBS=$asc_libs_orig |
| 7511 |
fi |
| 7512 |
|
| 7513 |
# see if the default LPATH can find the Tcl8.0 library |
| 7514 |
# |
| 7515 |
if test "X$TCL_LIB" = X_searching ; then |
| 7516 |
echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl83" >&5 |
| 7517 |
echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl83... $ECHO_C" >&6 |
| 7518 |
if test "${ac_cv_lib_tcl83_TclCompileCatchCmd+set}" = set; then |
| 7519 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7520 |
else |
| 7521 |
ac_check_lib_save_LIBS=$LIBS |
| 7522 |
LIBS="-ltcl83 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7523 |
cat >conftest.$ac_ext <<_ACEOF |
| 7524 |
/* confdefs.h. */ |
| 7525 |
_ACEOF |
| 7526 |
cat confdefs.h >>conftest.$ac_ext |
| 7527 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7528 |
/* end confdefs.h. */ |
| 7529 |
|
| 7530 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7531 |
#ifdef __cplusplus |
| 7532 |
extern "C" |
| 7533 |
#endif |
| 7534 |
/* We use char because int might match the return type of a gcc2 |
| 7535 |
builtin and then its argument prototype would still apply. */ |
| 7536 |
char TclCompileCatchCmd (); |
| 7537 |
int |
| 7538 |
main () |
| 7539 |
{ |
| 7540 |
TclCompileCatchCmd (); |
| 7541 |
; |
| 7542 |
return 0; |
| 7543 |
} |
| 7544 |
_ACEOF |
| 7545 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7546 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7547 |
(eval $ac_link) 2>conftest.er1 |
| 7548 |
ac_status=$? |
| 7549 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7550 |
rm -f conftest.er1 |
| 7551 |
cat conftest.err >&5 |
| 7552 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7553 |
(exit $ac_status); } && |
| 7554 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7555 |
|| test ! -s conftest.err' |
| 7556 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7557 |
(eval $ac_try) 2>&5 |
| 7558 |
ac_status=$? |
| 7559 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7560 |
(exit $ac_status); }; } && |
| 7561 |
{ ac_try='test -s conftest$ac_exeext' |
| 7562 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7563 |
(eval $ac_try) 2>&5 |
| 7564 |
ac_status=$? |
| 7565 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7566 |
(exit $ac_status); }; }; then |
| 7567 |
ac_cv_lib_tcl83_TclCompileCatchCmd=yes |
| 7568 |
else |
| 7569 |
echo "$as_me: failed program was:" >&5 |
| 7570 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7571 |
|
| 7572 |
ac_cv_lib_tcl83_TclCompileCatchCmd=no |
| 7573 |
fi |
| 7574 |
rm -f conftest.err conftest.$ac_objext \ |
| 7575 |
conftest$ac_exeext conftest.$ac_ext |
| 7576 |
LIBS=$ac_check_lib_save_LIBS |
| 7577 |
fi |
| 7578 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl83_TclCompileCatchCmd" >&5 |
| 7579 |
echo "${ECHO_T}$ac_cv_lib_tcl83_TclCompileCatchCmd" >&6 |
| 7580 |
if test $ac_cv_lib_tcl83_TclCompileCatchCmd = yes; then |
| 7581 |
TCL_LIB="-ltcl83" |
| 7582 |
fi |
| 7583 |
|
| 7584 |
fi |
| 7585 |
if test "X$TCL_LIB" = X_searching ; then |
| 7586 |
echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.3" >&5 |
| 7587 |
echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.3... $ECHO_C" >&6 |
| 7588 |
if test "${ac_cv_lib_tcl8_3_TclCompileCatchCmd+set}" = set; then |
| 7589 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7590 |
else |
| 7591 |
ac_check_lib_save_LIBS=$LIBS |
| 7592 |
LIBS="-ltcl8.3 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7593 |
cat >conftest.$ac_ext <<_ACEOF |
| 7594 |
/* confdefs.h. */ |
| 7595 |
_ACEOF |
| 7596 |
cat confdefs.h >>conftest.$ac_ext |
| 7597 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7598 |
/* end confdefs.h. */ |
| 7599 |
|
| 7600 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7601 |
#ifdef __cplusplus |
| 7602 |
extern "C" |
| 7603 |
#endif |
| 7604 |
/* We use char because int might match the return type of a gcc2 |
| 7605 |
builtin and then its argument prototype would still apply. */ |
| 7606 |
char TclCompileCatchCmd (); |
| 7607 |
int |
| 7608 |
main () |
| 7609 |
{ |
| 7610 |
TclCompileCatchCmd (); |
| 7611 |
; |
| 7612 |
return 0; |
| 7613 |
} |
| 7614 |
_ACEOF |
| 7615 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7616 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7617 |
(eval $ac_link) 2>conftest.er1 |
| 7618 |
ac_status=$? |
| 7619 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7620 |
rm -f conftest.er1 |
| 7621 |
cat conftest.err >&5 |
| 7622 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7623 |
(exit $ac_status); } && |
| 7624 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7625 |
|| test ! -s conftest.err' |
| 7626 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7627 |
(eval $ac_try) 2>&5 |
| 7628 |
ac_status=$? |
| 7629 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7630 |
(exit $ac_status); }; } && |
| 7631 |
{ ac_try='test -s conftest$ac_exeext' |
| 7632 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7633 |
(eval $ac_try) 2>&5 |
| 7634 |
ac_status=$? |
| 7635 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7636 |
(exit $ac_status); }; }; then |
| 7637 |
ac_cv_lib_tcl8_3_TclCompileCatchCmd=yes |
| 7638 |
else |
| 7639 |
echo "$as_me: failed program was:" >&5 |
| 7640 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7641 |
|
| 7642 |
ac_cv_lib_tcl8_3_TclCompileCatchCmd=no |
| 7643 |
fi |
| 7644 |
rm -f conftest.err conftest.$ac_objext \ |
| 7645 |
conftest$ac_exeext conftest.$ac_ext |
| 7646 |
LIBS=$ac_check_lib_save_LIBS |
| 7647 |
fi |
| 7648 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&5 |
| 7649 |
echo "${ECHO_T}$ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&6 |
| 7650 |
if test $ac_cv_lib_tcl8_3_TclCompileCatchCmd = yes; then |
| 7651 |
TCL_LIB="-ltcl8.3" |
| 7652 |
fi |
| 7653 |
|
| 7654 |
fi |
| 7655 |
if test "X$TCL_LIB" = X_searching ; then |
| 7656 |
echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.0" >&5 |
| 7657 |
echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.0... $ECHO_C" >&6 |
| 7658 |
if test "${ac_cv_lib_tcl8_0_TclCompileCatchCmd+set}" = set; then |
| 7659 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7660 |
else |
| 7661 |
ac_check_lib_save_LIBS=$LIBS |
| 7662 |
LIBS="-ltcl8.0 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7663 |
cat >conftest.$ac_ext <<_ACEOF |
| 7664 |
/* confdefs.h. */ |
| 7665 |
_ACEOF |
| 7666 |
cat confdefs.h >>conftest.$ac_ext |
| 7667 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7668 |
/* end confdefs.h. */ |
| 7669 |
|
| 7670 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7671 |
#ifdef __cplusplus |
| 7672 |
extern "C" |
| 7673 |
#endif |
| 7674 |
/* We use char because int might match the return type of a gcc2 |
| 7675 |
builtin and then its argument prototype would still apply. */ |
| 7676 |
char TclCompileCatchCmd (); |
| 7677 |
int |
| 7678 |
main () |
| 7679 |
{ |
| 7680 |
TclCompileCatchCmd (); |
| 7681 |
; |
| 7682 |
return 0; |
| 7683 |
} |
| 7684 |
_ACEOF |
| 7685 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7686 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7687 |
(eval $ac_link) 2>conftest.er1 |
| 7688 |
ac_status=$? |
| 7689 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7690 |
rm -f conftest.er1 |
| 7691 |
cat conftest.err >&5 |
| 7692 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7693 |
(exit $ac_status); } && |
| 7694 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7695 |
|| test ! -s conftest.err' |
| 7696 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7697 |
(eval $ac_try) 2>&5 |
| 7698 |
ac_status=$? |
| 7699 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7700 |
(exit $ac_status); }; } && |
| 7701 |
{ ac_try='test -s conftest$ac_exeext' |
| 7702 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7703 |
(eval $ac_try) 2>&5 |
| 7704 |
ac_status=$? |
| 7705 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7706 |
(exit $ac_status); }; }; then |
| 7707 |
ac_cv_lib_tcl8_0_TclCompileCatchCmd=yes |
| 7708 |
else |
| 7709 |
echo "$as_me: failed program was:" >&5 |
| 7710 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7711 |
|
| 7712 |
ac_cv_lib_tcl8_0_TclCompileCatchCmd=no |
| 7713 |
fi |
| 7714 |
rm -f conftest.err conftest.$ac_objext \ |
| 7715 |
conftest$ac_exeext conftest.$ac_ext |
| 7716 |
LIBS=$ac_check_lib_save_LIBS |
| 7717 |
fi |
| 7718 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&5 |
| 7719 |
echo "${ECHO_T}$ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&6 |
| 7720 |
if test $ac_cv_lib_tcl8_0_TclCompileCatchCmd = yes; then |
| 7721 |
TCL_LIB="-ltcl8.0" |
| 7722 |
fi |
| 7723 |
|
| 7724 |
fi |
| 7725 |
if test "X$TCL_LIB" = X_searching ; then |
| 7726 |
echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl80" >&5 |
| 7727 |
echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl80... $ECHO_C" >&6 |
| 7728 |
if test "${ac_cv_lib_tcl80_TclCompileCatchCmd+set}" = set; then |
| 7729 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7730 |
else |
| 7731 |
ac_check_lib_save_LIBS=$LIBS |
| 7732 |
LIBS="-ltcl80 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7733 |
cat >conftest.$ac_ext <<_ACEOF |
| 7734 |
/* confdefs.h. */ |
| 7735 |
_ACEOF |
| 7736 |
cat confdefs.h >>conftest.$ac_ext |
| 7737 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7738 |
/* end confdefs.h. */ |
| 7739 |
|
| 7740 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7741 |
#ifdef __cplusplus |
| 7742 |
extern "C" |
| 7743 |
#endif |
| 7744 |
/* We use char because int might match the return type of a gcc2 |
| 7745 |
builtin and then its argument prototype would still apply. */ |
| 7746 |
char TclCompileCatchCmd (); |
| 7747 |
int |
| 7748 |
main () |
| 7749 |
{ |
| 7750 |
TclCompileCatchCmd (); |
| 7751 |
; |
| 7752 |
return 0; |
| 7753 |
} |
| 7754 |
_ACEOF |
| 7755 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7756 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7757 |
(eval $ac_link) 2>conftest.er1 |
| 7758 |
ac_status=$? |
| 7759 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7760 |
rm -f conftest.er1 |
| 7761 |
cat conftest.err >&5 |
| 7762 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 |
(exit $ac_status); } && |
| 7764 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7765 |
|| test ! -s conftest.err' |
| 7766 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7767 |
(eval $ac_try) 2>&5 |
| 7768 |
ac_status=$? |
| 7769 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7770 |
(exit $ac_status); }; } && |
| 7771 |
{ ac_try='test -s conftest$ac_exeext' |
| 7772 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7773 |
(eval $ac_try) 2>&5 |
| 7774 |
ac_status=$? |
| 7775 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7776 |
(exit $ac_status); }; }; then |
| 7777 |
ac_cv_lib_tcl80_TclCompileCatchCmd=yes |
| 7778 |
else |
| 7779 |
echo "$as_me: failed program was:" >&5 |
| 7780 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7781 |
|
| 7782 |
ac_cv_lib_tcl80_TclCompileCatchCmd=no |
| 7783 |
fi |
| 7784 |
rm -f conftest.err conftest.$ac_objext \ |
| 7785 |
conftest$ac_exeext conftest.$ac_ext |
| 7786 |
LIBS=$ac_check_lib_save_LIBS |
| 7787 |
fi |
| 7788 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl80_TclCompileCatchCmd" >&5 |
| 7789 |
echo "${ECHO_T}$ac_cv_lib_tcl80_TclCompileCatchCmd" >&6 |
| 7790 |
if test $ac_cv_lib_tcl80_TclCompileCatchCmd = yes; then |
| 7791 |
TCL_LIB="-ltcl80" |
| 7792 |
fi |
| 7793 |
|
| 7794 |
fi |
| 7795 |
if test "X$TCL_LIB" = X_searching ; then |
| 7796 |
echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl" >&5 |
| 7797 |
echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl... $ECHO_C" >&6 |
| 7798 |
if test "${ac_cv_lib_tcl_TclCompileCatchCmd+set}" = set; then |
| 7799 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7800 |
else |
| 7801 |
ac_check_lib_save_LIBS=$LIBS |
| 7802 |
LIBS="-ltcl $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 7803 |
cat >conftest.$ac_ext <<_ACEOF |
| 7804 |
/* confdefs.h. */ |
| 7805 |
_ACEOF |
| 7806 |
cat confdefs.h >>conftest.$ac_ext |
| 7807 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7808 |
/* end confdefs.h. */ |
| 7809 |
|
| 7810 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7811 |
#ifdef __cplusplus |
| 7812 |
extern "C" |
| 7813 |
#endif |
| 7814 |
/* We use char because int might match the return type of a gcc2 |
| 7815 |
builtin and then its argument prototype would still apply. */ |
| 7816 |
char TclCompileCatchCmd (); |
| 7817 |
int |
| 7818 |
main () |
| 7819 |
{ |
| 7820 |
TclCompileCatchCmd (); |
| 7821 |
; |
| 7822 |
return 0; |
| 7823 |
} |
| 7824 |
_ACEOF |
| 7825 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7826 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7827 |
(eval $ac_link) 2>conftest.er1 |
| 7828 |
ac_status=$? |
| 7829 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7830 |
rm -f conftest.er1 |
| 7831 |
cat conftest.err >&5 |
| 7832 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7833 |
(exit $ac_status); } && |
| 7834 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7835 |
|| test ! -s conftest.err' |
| 7836 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7837 |
(eval $ac_try) 2>&5 |
| 7838 |
ac_status=$? |
| 7839 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7840 |
(exit $ac_status); }; } && |
| 7841 |
{ ac_try='test -s conftest$ac_exeext' |
| 7842 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7843 |
(eval $ac_try) 2>&5 |
| 7844 |
ac_status=$? |
| 7845 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7846 |
(exit $ac_status); }; }; then |
| 7847 |
ac_cv_lib_tcl_TclCompileCatchCmd=yes |
| 7848 |
else |
| 7849 |
echo "$as_me: failed program was:" >&5 |
| 7850 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7851 |
|
| 7852 |
ac_cv_lib_tcl_TclCompileCatchCmd=no |
| 7853 |
fi |
| 7854 |
rm -f conftest.err conftest.$ac_objext \ |
| 7855 |
conftest$ac_exeext conftest.$ac_ext |
| 7856 |
LIBS=$ac_check_lib_save_LIBS |
| 7857 |
fi |
| 7858 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_TclCompileCatchCmd" >&5 |
| 7859 |
echo "${ECHO_T}$ac_cv_lib_tcl_TclCompileCatchCmd" >&6 |
| 7860 |
if test $ac_cv_lib_tcl_TclCompileCatchCmd = yes; then |
| 7861 |
TCL_LIB="-ltcl" |
| 7862 |
fi |
| 7863 |
|
| 7864 |
fi |
| 7865 |
|
| 7866 |
# give up searching for the Tcl8.0 library |
| 7867 |
# |
| 7868 |
if test "X$TCL_LIB" = X_searching ; then |
| 7869 |
{ { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl library. |
| 7870 |
You must build and install Tcl version 8.3 before you |
| 7871 |
can build ASCEND. If you have installed the correct version |
| 7872 |
of Tcl, run configure again with the argument: |
| 7873 |
--with-tcl=LIBRARY,HEADER |
| 7874 |
where LIBRARY and HEADER are the full paths to the Tcl8.3 |
| 7875 |
library file and header file, respectively." >&5 |
| 7876 |
echo "$as_me: error: Cannot find a compatiable Tcl library. |
| 7877 |
You must build and install Tcl version 8.3 before you |
| 7878 |
can build ASCEND. If you have installed the correct version |
| 7879 |
of Tcl, run configure again with the argument: |
| 7880 |
--with-tcl=LIBRARY,HEADER |
| 7881 |
where LIBRARY and HEADER are the full paths to the Tcl8.3 |
| 7882 |
library file and header file, respectively." >&2;} |
| 7883 |
{ (exit 1); exit 1; }; } |
| 7884 |
fi |
| 7885 |
|
| 7886 |
# see if the user gave us the location of the Tcl8.0 header file |
| 7887 |
# |
| 7888 |
if test ! "X$with_tclhdr" = X_searching ; then |
| 7889 |
if test ! -f "$TCL_HDR" ; then |
| 7890 |
{ echo "$as_me:$LINENO: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&5 |
| 7891 |
echo "$as_me: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&2;} |
| 7892 |
with_tclhdr=_searching |
| 7893 |
TCL_HDR='' |
| 7894 |
fi |
| 7895 |
fi |
| 7896 |
if test "X$with_tclhdr" = X_searching ; then |
| 7897 |
# Extract the first word of "tcl.h", so it can be a program name with args. |
| 7898 |
set dummy tcl.h; ac_word=$2 |
| 7899 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7900 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7901 |
if test "${ac_cv_path_TCL_HDR+set}" = set; then |
| 7902 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7903 |
else |
| 7904 |
case $TCL_HDR in |
| 7905 |
[\\/]* | ?:[\\/]*) |
| 7906 |
ac_cv_path_TCL_HDR="$TCL_HDR" # Let the user override the test with a path. |
| 7907 |
;; |
| 7908 |
*) |
| 7909 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7910 |
for as_dir in $asc_tcl_include_dirs |
| 7911 |
do |
| 7912 |
IFS=$as_save_IFS |
| 7913 |
test -z "$as_dir" && as_dir=. |
| 7914 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7915 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7916 |
ac_cv_path_TCL_HDR="$as_dir/$ac_word$ac_exec_ext" |
| 7917 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7918 |
break 2 |
| 7919 |
fi |
| 7920 |
done |
| 7921 |
done |
| 7922 |
|
| 7923 |
;; |
| 7924 |
esac |
| 7925 |
fi |
| 7926 |
TCL_HDR=$ac_cv_path_TCL_HDR |
| 7927 |
|
| 7928 |
if test -n "$TCL_HDR"; then |
| 7929 |
echo "$as_me:$LINENO: result: $TCL_HDR" >&5 |
| 7930 |
echo "${ECHO_T}$TCL_HDR" >&6 |
| 7931 |
else |
| 7932 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7933 |
echo "${ECHO_T}no" >&6 |
| 7934 |
fi |
| 7935 |
|
| 7936 |
if test -z "$TCL_HDR" ; then |
| 7937 |
cat >conftest.$ac_ext <<_ACEOF |
| 7938 |
/* confdefs.h. */ |
| 7939 |
_ACEOF |
| 7940 |
cat confdefs.h >>conftest.$ac_ext |
| 7941 |
cat >>conftest.$ac_ext <<_ACEOF |
| 7942 |
/* end confdefs.h. */ |
| 7943 |
#include <tcl.h> |
| 7944 |
|
| 7945 |
_ACEOF |
| 7946 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7947 |
$EGREP "TCL_MAJOR_VERSION.*8" >/dev/null 2>&1; then |
| 7948 |
TCL_HDR='tcl.h' |
| 7949 |
fi |
| 7950 |
rm -f conftest* |
| 7951 |
|
| 7952 |
fi |
| 7953 |
else |
| 7954 |
echo "$as_me:$LINENO: result: checking for tcl header... $TCL_HDR" >&5 |
| 7955 |
echo "${ECHO_T}checking for tcl header... $TCL_HDR" >&6 |
| 7956 |
fi |
| 7957 |
if test -f "$TCL_HDR" ; then |
| 7958 |
echo "$as_me:$LINENO: checking whether $TCL_HDR is for version 8" >&5 |
| 7959 |
echo $ECHO_N "checking whether $TCL_HDR is for version 8... $ECHO_C" >&6 |
| 7960 |
echo 'grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5' 1>&5 |
| 7961 |
grep_tcl_h=`grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5` |
| 7962 |
echo $grep_tcl_h 1>&5 |
| 7963 |
case "$grep_tcl_h" in |
| 7964 |
*8) |
| 7965 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7966 |
echo "${ECHO_T}yes" >&6 |
| 7967 |
;; |
| 7968 |
*) |
| 7969 |
echo "$as_me:$LINENO: result: no" >&5 |
| 7970 |
echo "${ECHO_T}no" >&6 |
| 7971 |
TCL_HDR= |
| 7972 |
;; |
| 7973 |
esac |
| 7974 |
fi |
| 7975 |
if test -z "$TCL_HDR" ; then |
| 7976 |
{ { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl header file. |
| 7977 |
You must build and install Tcl version 8.3 (but not yet 8.4) before you |
| 7978 |
can build ASCEND. If you have installed the correct version |
| 7979 |
of Tcl, run configure again with the argument: |
| 7980 |
--with-tcl=LIBRARY,HEADER |
| 7981 |
where LIBRARY and HEADER are the full paths to the Tcl8.3 |
| 7982 |
library file and header file, respectively." >&5 |
| 7983 |
echo "$as_me: error: Cannot find a compatiable Tcl header file. |
| 7984 |
You must build and install Tcl version 8.3 (but not yet 8.4) before you |
| 7985 |
can build ASCEND. If you have installed the correct version |
| 7986 |
of Tcl, run configure again with the argument: |
| 7987 |
--with-tcl=LIBRARY,HEADER |
| 7988 |
where LIBRARY and HEADER are the full paths to the Tcl8.3 |
| 7989 |
library file and header file, respectively." >&2;} |
| 7990 |
{ (exit 1); exit 1; }; } |
| 7991 |
fi |
| 7992 |
TCL_HDR=`echo $TCL_HDR | sed 's,tcl\.h$,,'` |
| 7993 |
if test -n "$TCL_HDR" ; then |
| 7994 |
TCL_HDR="-I$TCL_HDR" |
| 7995 |
fi |
| 7996 |
|
| 7997 |
|
| 7998 |
###### REPEAT FOR TK |
| 7999 |
# |
| 8000 |
# see if the user gave us the location of the Tk8.3 |
| 8001 |
# library and/or header file |
| 8002 |
# |
| 8003 |
|
| 8004 |
# Check whether --with-tk or --without-tk was given. |
| 8005 |
if test "${with_tk+set}" = set; then |
| 8006 |
withval="$with_tk" |
| 8007 |
|
| 8008 |
else |
| 8009 |
with_tk=yes |
| 8010 |
fi; |
| 8011 |
|
| 8012 |
case "$with_tk" in |
| 8013 |
no) |
| 8014 |
# User specified --without-tk; this makes no sense, |
| 8015 |
# print a warning and search for it ourselves |
| 8016 |
{ echo "$as_me:$LINENO: WARNING: Bad option '--without-tk' |
| 8017 |
ASCEND must be compiled with Tk8.0." >&5 |
| 8018 |
echo "$as_me: WARNING: Bad option '--without-tk' |
| 8019 |
ASCEND must be compiled with Tk8.0." >&2;} |
| 8020 |
with_tklib=_searching |
| 8021 |
with_tkhdr=_searching |
| 8022 |
;; |
| 8023 |
yes|,|"") |
| 8024 |
# User didn't give the option or didn't give useful |
| 8025 |
# information, search for it ourselves |
| 8026 |
with_tklib=_searching |
| 8027 |
with_tkhdr=_searching |
| 8028 |
;; |
| 8029 |
,*) |
| 8030 |
# Only the header was specified. |
| 8031 |
with_tklib=_searching |
| 8032 |
TK_HDR=`echo $with_tk | sed 's/^,//'` |
| 8033 |
;; |
| 8034 |
*,?*) |
| 8035 |
# Both the library and the header were specified |
| 8036 |
TK_LIB=`echo $with_tk | sed 's/,.*$//'` |
| 8037 |
TK_HDR=`echo $with_tk | sed 's/^.*,//'` |
| 8038 |
;; |
| 8039 |
*) |
| 8040 |
# Only the library was specified |
| 8041 |
TK_LIB=`echo $with_tk | sed 's/,$//'` |
| 8042 |
with_tkhdr=_searching |
| 8043 |
;; |
| 8044 |
esac |
| 8045 |
|
| 8046 |
# try to find a static version of the Tk8.0 library |
| 8047 |
# |
| 8048 |
if test "X$with_tklib" = X_searching ; then |
| 8049 |
for ac_prog in libtk8.0.a libtk80.a libtk.a libtk8.3.a |
| 8050 |
do |
| 8051 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8052 |
set dummy $ac_prog; ac_word=$2 |
| 8053 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8054 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8055 |
if test "${ac_cv_path_TK_LIB+set}" = set; then |
| 8056 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8057 |
else |
| 8058 |
case $TK_LIB in |
| 8059 |
[\\/]* | ?:[\\/]*) |
| 8060 |
ac_cv_path_TK_LIB="$TK_LIB" # Let the user override the test with a path. |
| 8061 |
;; |
| 8062 |
*) |
| 8063 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8064 |
for as_dir in $asc_tcl_library_dirs |
| 8065 |
do |
| 8066 |
IFS=$as_save_IFS |
| 8067 |
test -z "$as_dir" && as_dir=. |
| 8068 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8069 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8070 |
ac_cv_path_TK_LIB="$as_dir/$ac_word$ac_exec_ext" |
| 8071 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8072 |
break 2 |
| 8073 |
fi |
| 8074 |
done |
| 8075 |
done |
| 8076 |
|
| 8077 |
;; |
| 8078 |
esac |
| 8079 |
fi |
| 8080 |
TK_LIB=$ac_cv_path_TK_LIB |
| 8081 |
|
| 8082 |
if test -n "$TK_LIB"; then |
| 8083 |
echo "$as_me:$LINENO: result: $TK_LIB" >&5 |
| 8084 |
echo "${ECHO_T}$TK_LIB" >&6 |
| 8085 |
else |
| 8086 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8087 |
echo "${ECHO_T}no" >&6 |
| 8088 |
fi |
| 8089 |
|
| 8090 |
test -n "$TK_LIB" && break |
| 8091 |
done |
| 8092 |
|
| 8093 |
if test -z "TK_LIB" ; then |
| 8094 |
TK_LIB=_searching |
| 8095 |
fi |
| 8096 |
else |
| 8097 |
echo "$as_me:$LINENO: result: checking for tk library... $TK_LIB" >&5 |
| 8098 |
echo "${ECHO_T}checking for tk library... $TK_LIB" >&6 |
| 8099 |
fi |
| 8100 |
|
| 8101 |
# verify the TK_LIB |
| 8102 |
# |
| 8103 |
if test ! "X$TK_LIB" = X_searching ; then |
| 8104 |
echo "$as_me:$LINENO: checking whether $TK_LIB is for Tk8.0" >&5 |
| 8105 |
echo $ECHO_N "checking whether $TK_LIB is for Tk8.0... $ECHO_C" >&6 |
| 8106 |
asc_libs_orig=$LIBS |
| 8107 |
LIBS="$TK_LIB $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 8108 |
cat >conftest.$ac_ext <<_ACEOF |
| 8109 |
/* confdefs.h. */ |
| 8110 |
_ACEOF |
| 8111 |
cat confdefs.h >>conftest.$ac_ext |
| 8112 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8113 |
/* end confdefs.h. */ |
| 8114 |
|
| 8115 |
int |
| 8116 |
main () |
| 8117 |
{ |
| 8118 |
Tk_NameOfFont() |
| 8119 |
; |
| 8120 |
return 0; |
| 8121 |
} |
| 8122 |
_ACEOF |
| 8123 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8124 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8125 |
(eval $ac_link) 2>conftest.er1 |
| 8126 |
ac_status=$? |
| 8127 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8128 |
rm -f conftest.er1 |
| 8129 |
cat conftest.err >&5 |
| 8130 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8131 |
(exit $ac_status); } && |
| 8132 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8133 |
|| test ! -s conftest.err' |
| 8134 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8135 |
(eval $ac_try) 2>&5 |
| 8136 |
ac_status=$? |
| 8137 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 |
(exit $ac_status); }; } && |
| 8139 |
{ ac_try='test -s conftest$ac_exeext' |
| 8140 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8141 |
(eval $ac_try) 2>&5 |
| 8142 |
ac_status=$? |
| 8143 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8144 |
(exit $ac_status); }; }; then |
| 8145 |
: |
| 8146 |
else |
| 8147 |
echo "$as_me: failed program was:" >&5 |
| 8148 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8149 |
|
| 8150 |
TK_LIB=_searching |
| 8151 |
fi |
| 8152 |
rm -f conftest.err conftest.$ac_objext \ |
| 8153 |
conftest$ac_exeext conftest.$ac_ext; |
| 8154 |
if test "X$TK_LIB" = X_searching ; then |
| 8155 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8156 |
echo "${ECHO_T}no" >&6 |
| 8157 |
else |
| 8158 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 8159 |
echo "${ECHO_T}yes" >&6 |
| 8160 |
fi |
| 8161 |
LIBS=$asc_libs_orig |
| 8162 |
fi |
| 8163 |
|
| 8164 |
# see if the default LPATH can find the Tk8.0 library |
| 8165 |
# |
| 8166 |
if test "X$TK_LIB" = X_searching ; then |
| 8167 |
echo "$as_me:$LINENO: result: checking for a dynamically loaded Tk8.0 library" >&5 |
| 8168 |
echo "${ECHO_T}checking for a dynamically loaded Tk8.0 library" >&6 |
| 8169 |
echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk8.0" >&5 |
| 8170 |
echo $ECHO_N "checking for Tk_NameOfFont in -ltk8.0... $ECHO_C" >&6 |
| 8171 |
if test "${ac_cv_lib_tk8_0_Tk_NameOfFont+set}" = set; then |
| 8172 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8173 |
else |
| 8174 |
ac_check_lib_save_LIBS=$LIBS |
| 8175 |
LIBS="-ltk8.0 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 8176 |
cat >conftest.$ac_ext <<_ACEOF |
| 8177 |
/* confdefs.h. */ |
| 8178 |
_ACEOF |
| 8179 |
cat confdefs.h >>conftest.$ac_ext |
| 8180 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8181 |
/* end confdefs.h. */ |
| 8182 |
|
| 8183 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8184 |
#ifdef __cplusplus |
| 8185 |
extern "C" |
| 8186 |
#endif |
| 8187 |
/* We use char because int might match the return type of a gcc2 |
| 8188 |
builtin and then its argument prototype would still apply. */ |
| 8189 |
char Tk_NameOfFont (); |
| 8190 |
int |
| 8191 |
main () |
| 8192 |
{ |
| 8193 |
Tk_NameOfFont (); |
| 8194 |
; |
| 8195 |
return 0; |
| 8196 |
} |
| 8197 |
_ACEOF |
| 8198 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8199 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8200 |
(eval $ac_link) 2>conftest.er1 |
| 8201 |
ac_status=$? |
| 8202 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8203 |
rm -f conftest.er1 |
| 8204 |
cat conftest.err >&5 |
| 8205 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 |
(exit $ac_status); } && |
| 8207 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8208 |
|| test ! -s conftest.err' |
| 8209 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8210 |
(eval $ac_try) 2>&5 |
| 8211 |
ac_status=$? |
| 8212 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8213 |
(exit $ac_status); }; } && |
| 8214 |
{ ac_try='test -s conftest$ac_exeext' |
| 8215 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8216 |
(eval $ac_try) 2>&5 |
| 8217 |
ac_status=$? |
| 8218 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8219 |
(exit $ac_status); }; }; then |
| 8220 |
ac_cv_lib_tk8_0_Tk_NameOfFont=yes |
| 8221 |
else |
| 8222 |
echo "$as_me: failed program was:" >&5 |
| 8223 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8224 |
|
| 8225 |
ac_cv_lib_tk8_0_Tk_NameOfFont=no |
| 8226 |
fi |
| 8227 |
rm -f conftest.err conftest.$ac_objext \ |
| 8228 |
conftest$ac_exeext conftest.$ac_ext |
| 8229 |
LIBS=$ac_check_lib_save_LIBS |
| 8230 |
fi |
| 8231 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tk8_0_Tk_NameOfFont" >&5 |
| 8232 |
echo "${ECHO_T}$ac_cv_lib_tk8_0_Tk_NameOfFont" >&6 |
| 8233 |
if test $ac_cv_lib_tk8_0_Tk_NameOfFont = yes; then |
| 8234 |
TK_LIB="-ltk8.0" |
| 8235 |
fi |
| 8236 |
|
| 8237 |
fi |
| 8238 |
if test "X$TK_LIB" = X_searching ; then |
| 8239 |
echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk80" >&5 |
| 8240 |
echo $ECHO_N "checking for Tk_NameOfFont in -ltk80... $ECHO_C" >&6 |
| 8241 |
if test "${ac_cv_lib_tk80_Tk_NameOfFont+set}" = set; then |
| 8242 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8243 |
else |
| 8244 |
ac_check_lib_save_LIBS=$LIBS |
| 8245 |
LIBS="-ltk80 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 8246 |
cat >conftest.$ac_ext <<_ACEOF |
| 8247 |
/* confdefs.h. */ |
| 8248 |
_ACEOF |
| 8249 |
cat confdefs.h >>conftest.$ac_ext |
| 8250 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8251 |
/* end confdefs.h. */ |
| 8252 |
|
| 8253 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8254 |
#ifdef __cplusplus |
| 8255 |
extern "C" |
| 8256 |
#endif |
| 8257 |
/* We use char because int might match the return type of a gcc2 |
| 8258 |
builtin and then its argument prototype would still apply. */ |
| 8259 |
char Tk_NameOfFont (); |
| 8260 |
int |
| 8261 |
main () |
| 8262 |
{ |
| 8263 |
Tk_NameOfFont (); |
| 8264 |
; |
| 8265 |
return 0; |
| 8266 |
} |
| 8267 |
_ACEOF |
| 8268 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8269 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8270 |
(eval $ac_link) 2>conftest.er1 |
| 8271 |
ac_status=$? |
| 8272 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8273 |
rm -f conftest.er1 |
| 8274 |
cat conftest.err >&5 |
| 8275 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 |
(exit $ac_status); } && |
| 8277 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8278 |
|| test ! -s conftest.err' |
| 8279 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8280 |
(eval $ac_try) 2>&5 |
| 8281 |
ac_status=$? |
| 8282 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8283 |
(exit $ac_status); }; } && |
| 8284 |
{ ac_try='test -s conftest$ac_exeext' |
| 8285 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8286 |
(eval $ac_try) 2>&5 |
| 8287 |
ac_status=$? |
| 8288 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 |
(exit $ac_status); }; }; then |
| 8290 |
ac_cv_lib_tk80_Tk_NameOfFont=yes |
| 8291 |
else |
| 8292 |
echo "$as_me: failed program was:" >&5 |
| 8293 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8294 |
|
| 8295 |
ac_cv_lib_tk80_Tk_NameOfFont=no |
| 8296 |
fi |
| 8297 |
rm -f conftest.err conftest.$ac_objext \ |
| 8298 |
conftest$ac_exeext conftest.$ac_ext |
| 8299 |
LIBS=$ac_check_lib_save_LIBS |
| 8300 |
fi |
| 8301 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tk80_Tk_NameOfFont" >&5 |
| 8302 |
echo "${ECHO_T}$ac_cv_lib_tk80_Tk_NameOfFont" >&6 |
| 8303 |
if test $ac_cv_lib_tk80_Tk_NameOfFont = yes; then |
| 8304 |
TK_LIB="-ltk80" |
| 8305 |
fi |
| 8306 |
|
| 8307 |
fi |
| 8308 |
if test "X$TK_LIB" = X_searching ; then |
| 8309 |
echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk" >&5 |
| 8310 |
echo $ECHO_N "checking for Tk_NameOfFont in -ltk... $ECHO_C" >&6 |
| 8311 |
if test "${ac_cv_lib_tk_Tk_NameOfFont+set}" = set; then |
| 8312 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8313 |
else |
| 8314 |
ac_check_lib_save_LIBS=$LIBS |
| 8315 |
LIBS="-ltk $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS" |
| 8316 |
cat >conftest.$ac_ext <<_ACEOF |
| 8317 |
/* confdefs.h. */ |
| 8318 |
_ACEOF |
| 8319 |
cat confdefs.h >>conftest.$ac_ext |
| 8320 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8321 |
/* end confdefs.h. */ |
| 8322 |
|
| 8323 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8324 |
#ifdef __cplusplus |
| 8325 |
extern "C" |
| 8326 |
#endif |
| 8327 |
/* We use char because int might match the return type of a gcc2 |
| 8328 |
builtin and then its argument prototype would still apply. */ |
| 8329 |
char Tk_NameOfFont (); |
| 8330 |
int |
| 8331 |
main () |
| 8332 |
{ |
| 8333 |
Tk_NameOfFont (); |
| 8334 |
; |
| 8335 |
return 0; |
| 8336 |
} |
| 8337 |
_ACEOF |
| 8338 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8339 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8340 |
(eval $ac_link) 2>conftest.er1 |
| 8341 |
ac_status=$? |
| 8342 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8343 |
rm -f conftest.er1 |
| 8344 |
cat conftest.err >&5 |
| 8345 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8346 |
(exit $ac_status); } && |
| 8347 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8348 |
|| test ! -s conftest.err' |
| 8349 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8350 |
(eval $ac_try) 2>&5 |
| 8351 |
ac_status=$? |
| 8352 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8353 |
(exit $ac_status); }; } && |
| 8354 |
{ ac_try='test -s conftest$ac_exeext' |
| 8355 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8356 |
(eval $ac_try) 2>&5 |
| 8357 |
ac_status=$? |
| 8358 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8359 |
(exit $ac_status); }; }; then |
| 8360 |
ac_cv_lib_tk_Tk_NameOfFont=yes |
| 8361 |
else |
| 8362 |
echo "$as_me: failed program was:" >&5 |
| 8363 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8364 |
|
| 8365 |
ac_cv_lib_tk_Tk_NameOfFont=no |
| 8366 |
fi |
| 8367 |
rm -f conftest.err conftest.$ac_objext \ |
| 8368 |
conftest$ac_exeext conftest.$ac_ext |
| 8369 |
LIBS=$ac_check_lib_save_LIBS |
| 8370 |
fi |
| 8371 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tk_Tk_NameOfFont" >&5 |
| 8372 |
echo "${ECHO_T}$ac_cv_lib_tk_Tk_NameOfFont" >&6 |
| 8373 |
if test $ac_cv_lib_tk_Tk_NameOfFont = yes; then |
| 8374 |
TK_LIB="-ltk" |
| 8375 |
fi |
| 8376 |
|
| 8377 |
fi |
| 8378 |
|
| 8379 |
# give up searching for the Tk8.0 library |
| 8380 |
# |
| 8381 |
if test "X$TK_LIB" = X_searching ; then |
| 8382 |
{ { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk library. |
| 8383 |
You must build and install Tk version 8.0 or newer before you |
| 8384 |
can build ASCEND. If you have installed the correct version |
| 8385 |
of Tk, run configure again with the argument: |
| 8386 |
--with-tk=LIBRARY,HEADER |
| 8387 |
where LIBRARY and HEADER are the full paths to the Tk8.0 |
| 8388 |
library file and header file, respectively." >&5 |
| 8389 |
echo "$as_me: error: Cannot find a compatiable Tk library. |
| 8390 |
You must build and install Tk version 8.0 or newer before you |
| 8391 |
can build ASCEND. If you have installed the correct version |
| 8392 |
of Tk, run configure again with the argument: |
| 8393 |
--with-tk=LIBRARY,HEADER |
| 8394 |
where LIBRARY and HEADER are the full paths to the Tk8.0 |
| 8395 |
library file and header file, respectively." >&2;} |
| 8396 |
{ (exit 1); exit 1; }; } |
| 8397 |
fi |
| 8398 |
|
| 8399 |
# see if the user gave us the location of the Tk8.0 header file |
| 8400 |
# |
| 8401 |
if test ! "X$with_tkhdr" = X_searching ; then |
| 8402 |
if test ! -f "$TK_HDR" ; then |
| 8403 |
{ echo "$as_me:$LINENO: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&5 |
| 8404 |
echo "$as_me: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&2;} |
| 8405 |
with_tkhdr=_searching |
| 8406 |
TK_HDR='' |
| 8407 |
fi |
| 8408 |
fi |
| 8409 |
if test "X$with_tkhdr" = X_searching ; then |
| 8410 |
# Extract the first word of "tk.h", so it can be a program name with args. |
| 8411 |
set dummy tk.h; ac_word=$2 |
| 8412 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8413 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8414 |
if test "${ac_cv_path_TK_HDR+set}" = set; then |
| 8415 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8416 |
else |
| 8417 |
case $TK_HDR in |
| 8418 |
[\\/]* | ?:[\\/]*) |
| 8419 |
ac_cv_path_TK_HDR="$TK_HDR" # Let the user override the test with a path. |
| 8420 |
;; |
| 8421 |
*) |
| 8422 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8423 |
for as_dir in $asc_tcl_include_dirs |
| 8424 |
do |
| 8425 |
IFS=$as_save_IFS |
| 8426 |
test -z "$as_dir" && as_dir=. |
| 8427 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8428 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8429 |
ac_cv_path_TK_HDR="$as_dir/$ac_word$ac_exec_ext" |
| 8430 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8431 |
break 2 |
| 8432 |
fi |
| 8433 |
done |
| 8434 |
done |
| 8435 |
|
| 8436 |
;; |
| 8437 |
esac |
| 8438 |
fi |
| 8439 |
TK_HDR=$ac_cv_path_TK_HDR |
| 8440 |
|
| 8441 |
if test -n "$TK_HDR"; then |
| 8442 |
echo "$as_me:$LINENO: result: $TK_HDR" >&5 |
| 8443 |
echo "${ECHO_T}$TK_HDR" >&6 |
| 8444 |
else |
| 8445 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8446 |
echo "${ECHO_T}no" >&6 |
| 8447 |
fi |
| 8448 |
|
| 8449 |
if test -z "$TK_HDR" ; then |
| 8450 |
cat >conftest.$ac_ext <<_ACEOF |
| 8451 |
/* confdefs.h. */ |
| 8452 |
_ACEOF |
| 8453 |
cat confdefs.h >>conftest.$ac_ext |
| 8454 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8455 |
/* end confdefs.h. */ |
| 8456 |
#include <tk.h> |
| 8457 |
|
| 8458 |
_ACEOF |
| 8459 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8460 |
$EGREP "TK_MAJOR_VERSION.*8" >/dev/null 2>&1; then |
| 8461 |
TK_HDR='tk.h' |
| 8462 |
fi |
| 8463 |
rm -f conftest* |
| 8464 |
|
| 8465 |
fi |
| 8466 |
else |
| 8467 |
echo "$as_me:$LINENO: result: checking for tk header... $TK_HDR" >&5 |
| 8468 |
echo "${ECHO_T}checking for tk header... $TK_HDR" >&6 |
| 8469 |
fi |
| 8470 |
if test -f "$TK_HDR" ; then |
| 8471 |
echo "$as_me:$LINENO: checking whether $TK_HDR is for version 8" >&5 |
| 8472 |
echo $ECHO_N "checking whether $TK_HDR is for version 8... $ECHO_C" >&6 |
| 8473 |
echo 'grep TK_MAJOR_VERSION "$TK_HDR" 2>&5' 1>&5 |
| 8474 |
grep_tk_h=`grep TK_MAJOR_VERSION "$TK_HDR" 2>&5` |
| 8475 |
echo $grep_tk_h 1>&5 |
| 8476 |
case "$grep_tk_h" in |
| 8477 |
*8) |
| 8478 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 8479 |
echo "${ECHO_T}yes" >&6 |
| 8480 |
;; |
| 8481 |
*) |
| 8482 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8483 |
echo "${ECHO_T}no" >&6 |
| 8484 |
TK_HDR= |
| 8485 |
;; |
| 8486 |
esac |
| 8487 |
fi |
| 8488 |
if test -z "$TK_HDR" ; then |
| 8489 |
{ { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk header file. |
| 8490 |
You must build and install Tk version 8.0 or newer before you |
| 8491 |
can build ASCEND. If you have installed the correct version |
| 8492 |
of Tk, run configure again with the argument: |
| 8493 |
--with-tk=LIBRARY,HEADER |
| 8494 |
where LIBRARY and HEADER are the full paths to the Tk8.0 |
| 8495 |
library file and header file, respectively." >&5 |
| 8496 |
echo "$as_me: error: Cannot find a compatiable Tk header file. |
| 8497 |
You must build and install Tk version 8.0 or newer before you |
| 8498 |
can build ASCEND. If you have installed the correct version |
| 8499 |
of Tk, run configure again with the argument: |
| 8500 |
--with-tk=LIBRARY,HEADER |
| 8501 |
where LIBRARY and HEADER are the full paths to the Tk8.0 |
| 8502 |
library file and header file, respectively." >&2;} |
| 8503 |
{ (exit 1); exit 1; }; } |
| 8504 |
fi |
| 8505 |
TK_HDR=`echo $TK_HDR | sed 's,tk\.h$,,'` |
| 8506 |
if test -n "$TK_HDR" ; then |
| 8507 |
TK_HDR="-I$TK_HDR" |
| 8508 |
if test "X$TCL_HDR" = "X$TK_HDR" ; then |
| 8509 |
TK_HDR= |
| 8510 |
fi |
| 8511 |
fi |
| 8512 |
|
| 8513 |
|
| 8514 |
|
| 8515 |
# Check whether --with-tktable or --without-tktable was given. |
| 8516 |
if test "${with_tktable+set}" = set; then |
| 8517 |
withval="$with_tktable" |
| 8518 |
|
| 8519 |
fi; |
| 8520 |
case "$with_tktable" in |
| 8521 |
yes|no|"") |
| 8522 |
# search for the table |
| 8523 |
# Extract the first word of "libTktable.a", so it can be a program name with args. |
| 8524 |
set dummy libTktable.a; ac_word=$2 |
| 8525 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8526 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8527 |
if test "${ac_cv_path_TKTABLE_LIB+set}" = set; then |
| 8528 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8529 |
else |
| 8530 |
case $TKTABLE_LIB in |
| 8531 |
[\\/]* | ?:[\\/]*) |
| 8532 |
ac_cv_path_TKTABLE_LIB="$TKTABLE_LIB" # Let the user override the test with a path. |
| 8533 |
;; |
| 8534 |
*) |
| 8535 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8536 |
for as_dir in $asc_tk_table_dirs |
| 8537 |
do |
| 8538 |
IFS=$as_save_IFS |
| 8539 |
test -z "$as_dir" && as_dir=. |
| 8540 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8541 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8542 |
ac_cv_path_TKTABLE_LIB="$as_dir/$ac_word$ac_exec_ext" |
| 8543 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8544 |
break 2 |
| 8545 |
fi |
| 8546 |
done |
| 8547 |
done |
| 8548 |
|
| 8549 |
;; |
| 8550 |
esac |
| 8551 |
fi |
| 8552 |
TKTABLE_LIB=$ac_cv_path_TKTABLE_LIB |
| 8553 |
|
| 8554 |
if test -n "$TKTABLE_LIB"; then |
| 8555 |
echo "$as_me:$LINENO: result: $TKTABLE_LIB" >&5 |
| 8556 |
echo "${ECHO_T}$TKTABLE_LIB" >&6 |
| 8557 |
else |
| 8558 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8559 |
echo "${ECHO_T}no" >&6 |
| 8560 |
fi |
| 8561 |
|
| 8562 |
;; |
| 8563 |
*) |
| 8564 |
# use the user's value |
| 8565 |
TKTABLE_LIB="$with_tktable" |
| 8566 |
;; |
| 8567 |
esac |
| 8568 |
if test -n "$TKTABLE_LIB" ; then |
| 8569 |
HAVE_TKTABLE='-DSTATIC_TKTABLE' |
| 8570 |
else |
| 8571 |
echo "$as_me:$LINENO: result: Assuming Tktable will be dynamically linked into ASCEND" >&5 |
| 8572 |
echo "${ECHO_T}Assuming Tktable will be dynamically linked into ASCEND" >&6 |
| 8573 |
fi |
| 8574 |
|
| 8575 |
|
| 8576 |
# Check whether --with-wish or --without-wish was given. |
| 8577 |
if test "${with_wish+set}" = set; then |
| 8578 |
withval="$with_wish" |
| 8579 |
|
| 8580 |
else |
| 8581 |
with_wish=no |
| 8582 |
fi; |
| 8583 |
case "$with_wish" in |
| 8584 |
yes|no|"") |
| 8585 |
echo "$as_me:$LINENO: result: --with-wish not specified. |
| 8586 |
Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&5 |
| 8587 |
echo "${ECHO_T}--with-wish not specified. |
| 8588 |
Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&6 |
| 8589 |
;; |
| 8590 |
*) |
| 8591 |
echo "$as_me:$LINENO: checking wish for tcl_library,tk_library" >&5 |
| 8592 |
echo $ECHO_N "checking wish for tcl_library,tk_library... $ECHO_C" >&6 |
| 8593 |
|
| 8594 |
# asc_wishvar( tcl_library, $with_wish) |
| 8595 |
# generate the executable to extract a variable |
| 8596 |
# from the tickle shell |
| 8597 |
cat << EOF > wishvar.tmp.tcl |
| 8598 |
#! $with_wish |
| 8599 |
# this is a generated file and can be deleted any time. |
| 8600 |
if {\$argc != 1} { |
| 8601 |
puts stderr "\$argv0 needs variable name" |
| 8602 |
exit 1 |
| 8603 |
} |
| 8604 |
set var [lindex \$argv 0] |
| 8605 |
puts [set \$var] |
| 8606 |
exit 0 |
| 8607 |
EOF |
| 8608 |
|
| 8609 |
#call it |
| 8610 |
# usage wishvar varname shell-to-test-in |
| 8611 |
ASC_TK_LIBRARY=`$with_wish wishvar.tmp.tcl -- tk_library` |
| 8612 |
|
| 8613 |
|
| 8614 |
|
| 8615 |
# asc_wishvar( tcl_library, $with_wish) |
| 8616 |
# generate the executable to extract a variable |
| 8617 |
# from the tickle shell |
| 8618 |
cat << EOF > wishvar.tmp.tcl |
| 8619 |
#! $with_wish |
| 8620 |
# this is a generated file and can be deleted any time. |
| 8621 |
if {\$argc != 1} { |
| 8622 |
puts stderr "\$argv0 needs variable name" |
| 8623 |
exit 1 |
| 8624 |
} |
| 8625 |
set var [lindex \$argv 0] |
| 8626 |
puts [set \$var] |
| 8627 |
exit 0 |
| 8628 |
EOF |
| 8629 |
|
| 8630 |
#call it |
| 8631 |
# usage wishvar varname shell-to-test-in |
| 8632 |
ASC_TCL_LIBRARY=`$with_wish wishvar.tmp.tcl -- tcl_library` |
| 8633 |
|
| 8634 |
|
| 8635 |
echo "$as_me:$LINENO: result: $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&5 |
| 8636 |
echo "${ECHO_T} $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&6 |
| 8637 |
;; |
| 8638 |
esac |
| 8639 |
|
| 8640 |
|
| 8641 |
#-------------------------------------------------------------------- |
| 8642 |
# FORTRAN |
| 8643 |
# |
| 8644 |
# ASCEND uses the LSOD integrator and is capable of working |
| 8645 |
# with CONOPT and with MINOS. These libraries are written in |
| 8646 |
# Fortran; to use them, configure needs to find a Fortran |
| 8647 |
# compiler and the necessary Fortran libraries (e.g., |
| 8648 |
# libF77.a). LSOD, CONOPT, and MINOS also require the BLAS and |
| 8649 |
# LINPACK libraries to avoid undefined symbols at link time. |
| 8650 |
# |
| 8651 |
# The builder can specify the location of |
| 8652 |
# * the Fortran compiler and libraries using |
| 8653 |
# --with-fortran=<compiler>,<libraries> |
| 8654 |
# * the BLAS library using |
| 8655 |
# --with-blas=<blas-library> |
| 8656 |
# * the LINPACK library using |
| 8657 |
# --with-linpack=<linpack-library> |
| 8658 |
# * the LSOD library using |
| 8659 |
# --with-blas=<lsod-library> |
| 8660 |
# * the CONOPT library using |
| 8661 |
# --with-conopt=<conopt-library> |
| 8662 |
# * the MINOS library using |
| 8663 |
# --with-minos=<minos-library> <===currently disabled |
| 8664 |
# The builder can disable some parts of the fortran build using |
| 8665 |
# the --without-<package> configure option. |
| 8666 |
# |
| 8667 |
# If the user does not specify the locations of the compiler |
| 8668 |
# and the libraries and does not disable them, configure |
| 8669 |
# attempts to find them. |
| 8670 |
# |
| 8671 |
# Building with LSOD, CONOPT, and/or MINOS is further |
| 8672 |
# complicated by the dependencies between these libraries and |
| 8673 |
# the BLAS and LINPACK libraries. |
| 8674 |
# |
| 8675 |
# If we cannot find a Fortran compiler, we disable all Fortran |
| 8676 |
# code (LSOD, CONOPT, and MINOS). Otherwise, look for the |
| 8677 |
# Fortran libraries (e.g., libF77.a) based on the type of |
| 8678 |
# machine we are compiling on. |
| 8679 |
# |
| 8680 |
# If Fortran is enabled, we need to find a compiled BLAS |
| 8681 |
# library or source code. Check for the machine's libblas.a |
| 8682 |
# and ASCEND's libascblas.a; if those fail, check for the |
| 8683 |
# libascblas.a source code; if that fails, we disable all |
| 8684 |
# Fortran (LSOD, CONOPT, MINOS). |
| 8685 |
# |
| 8686 |
# If Fortran is enabled, we need to find a compiled LINPACK |
| 8687 |
# library or source code. Check for the machine's liblpak.a |
| 8688 |
# and ASCEND's libasclpak.a; if those fail, check for the |
| 8689 |
# libasclpak.a source code; if that fails, we disable all |
| 8690 |
# Fortran (LSOD, CONOPT, MINOS). |
| 8691 |
# |
| 8692 |
# If Fortran is enabled, we try to find a compiled LSOD library |
| 8693 |
# or source code. Check for a libinteg.a; if that fails, check |
| 8694 |
# for the libinteg.a source code; if that fails, we disable |
| 8695 |
# LSOD. If we find LSOD, define STATIC_LSOD. |
| 8696 |
# |
| 8697 |
# If Fortran is enabled, we try to find a compiled OPTSQP |
| 8698 |
# library or source code. Check for a librsqp.a; if that fails, |
| 8699 |
# check for the librsqp.a source code; if that fails, we disable |
| 8700 |
# OPTSQP. If we find RSQP, define STATIC_OPTSQP. |
| 8701 |
# |
| 8702 |
# If Fortran is enabled, we try to find a compiled CONOPT |
| 8703 |
# library. Check for a libconsub.a; if that fails, we disable |
| 8704 |
# CONOPT. If we find CONOPT, define STATIC_CONOPT; if not, |
| 8705 |
# tell the user where to find CONOPT using the contact |
| 8706 |
# information from the nonlinear programming FAQ: |
| 8707 |
# http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html |
| 8708 |
# |
| 8709 |
# If Fortran is enabled, we try to find a compiled MINOS |
| 8710 |
# library or source code. Check for a libminos54.a; if that |
| 8711 |
# fails, check for the libminos54.a source code; if that fails, |
| 8712 |
# we disable MINOS. If we find MINOS, define STATIC_MINOS; if |
| 8713 |
# not, tell the user where to find MINOS using the contact |
| 8714 |
# information from the nonlinear programming FAQ: |
| 8715 |
# http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html |
| 8716 |
#-------------------------------------------------------------------- |
| 8717 |
# |
| 8718 |
# the list of directories to search for the fortran compiler |
| 8719 |
asc_f77_prog_dirs="$PATH:/usr/lang:/opt/SUNWspro/bin" |
| 8720 |
# |
| 8721 |
# the list of directories to search for the required fortran libraries |
| 8722 |
asc_f77_support_dirs=" |
| 8723 |
/lib |
| 8724 |
/usr/lib |
| 8725 |
/usr/local/lib |
| 8726 |
/usr/contributed/lib |
| 8727 |
/usr/local/lib/ascend/lib |
| 8728 |
$ascpwd/blas |
| 8729 |
$ascpwd/linpack |
| 8730 |
$ascpwd/lsod |
| 8731 |
|
| 8732 |
##AWW There are folders two levels up from configure for these packages |
| 8733 |
$fullpathsrcdir/../../blas |
| 8734 |
$fullpathsrcdir/../../linpack |
| 8735 |
$fullpathsrcdir/../../lsod |
| 8736 |
|
| 8737 |
#AWW20041113: $ascpwd/conopt |
| 8738 |
#AWW20041113: $ascpwd/rsqp |
| 8739 |
#AWW20041113: $ascpwd/minos |
| 8740 |
#AWW20041113: $ascpwd/ascend4/archive |
| 8741 |
$ascpwd/archive |
| 8742 |
/afs/cs/project/ascend/depot/@sys/lib |
| 8743 |
/afs/cs/project/ascend/depot/build/obj/conopt |
| 8744 |
" |
| 8745 |
# |
| 8746 |
|
| 8747 |
# Check whether --with-fortran or --without-fortran was given. |
| 8748 |
if test "${with_fortran+set}" = set; then |
| 8749 |
withval="$with_fortran" |
| 8750 |
|
| 8751 |
else |
| 8752 |
with_fortran=yes |
| 8753 |
fi; |
| 8754 |
case "$with_fortran" in |
| 8755 |
no) |
| 8756 |
# The user disabled all fortran using |
| 8757 |
# the --without-fortran option. |
| 8758 |
F77= |
| 8759 |
F77LIBS= |
| 8760 |
with_f77=no |
| 8761 |
with_f77libs=no |
| 8762 |
;; |
| 8763 |
yes|,|"") |
| 8764 |
# The user didn't pass in the --with-fortran option |
| 8765 |
# or didn't give us any useful information. We do |
| 8766 |
# the search ourselves. |
| 8767 |
with_f77=_searching |
| 8768 |
with_f77libs=_searching |
| 8769 |
;; |
| 8770 |
,*) |
| 8771 |
# The user passed in the libraries, search for the |
| 8772 |
# compiler ourselves. |
| 8773 |
with_f77=_searching |
| 8774 |
F77LIBS=`echo $with_fortran | sed 's/^,//'` |
| 8775 |
echo "user gave F77LIBS=$F77LIBS" |
| 8776 |
;; |
| 8777 |
*,?*) |
| 8778 |
# The user passed in both the compiler and the |
| 8779 |
# libraries. |
| 8780 |
F77=`echo $with_fortran | sed s'/,.*$//'` |
| 8781 |
F77LIBS=`echo $with_fortran | sed 's/^.*,//'` |
| 8782 |
echo "user gave F77=$F77" |
| 8783 |
echo "user gave F77LIBS=$F77LIBS" |
| 8784 |
;; |
| 8785 |
*) |
| 8786 |
# The user passed in the compiler; search for the |
| 8787 |
# libraries ourselves. |
| 8788 |
F77=`echo $with_fortran | sed s'/,$//'` |
| 8789 |
with_f77libs=_searching |
| 8790 |
echo "user gave F77=$F77" |
| 8791 |
;; |
| 8792 |
esac |
| 8793 |
|
| 8794 |
if test "X$with_f77" = X_searching ; then |
| 8795 |
# Search for the fortran compiler; print a warning if we can't |
| 8796 |
# find it and disable all fortran. |
| 8797 |
for ac_prog in f77 xlf g77 |
| 8798 |
do |
| 8799 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8800 |
set dummy $ac_prog; ac_word=$2 |
| 8801 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8802 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8803 |
if test "${ac_cv_path_F77+set}" = set; then |
| 8804 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8805 |
else |
| 8806 |
case $F77 in |
| 8807 |
[\\/]* | ?:[\\/]*) |
| 8808 |
ac_cv_path_F77="$F77" # Let the user override the test with a path. |
| 8809 |
;; |
| 8810 |
*) |
| 8811 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8812 |
for as_dir in $asc_f77_prog_dirs |
| 8813 |
do |
| 8814 |
IFS=$as_save_IFS |
| 8815 |
test -z "$as_dir" && as_dir=. |
| 8816 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8817 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8818 |
ac_cv_path_F77="$as_dir/$ac_word$ac_exec_ext" |
| 8819 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8820 |
break 2 |
| 8821 |
fi |
| 8822 |
done |
| 8823 |
done |
| 8824 |
|
| 8825 |
;; |
| 8826 |
esac |
| 8827 |
fi |
| 8828 |
F77=$ac_cv_path_F77 |
| 8829 |
|
| 8830 |
if test -n "$F77"; then |
| 8831 |
echo "$as_me:$LINENO: result: $F77" >&5 |
| 8832 |
echo "${ECHO_T}$F77" >&6 |
| 8833 |
else |
| 8834 |
echo "$as_me:$LINENO: result: no" >&5 |
| 8835 |
echo "${ECHO_T}no" >&6 |
| 8836 |
fi |
| 8837 |
|
| 8838 |
test -n "$F77" && break |
| 8839 |
done |
| 8840 |
|
| 8841 |
if test -z "$F77" ; then |
| 8842 |
with_fortran=no |
| 8843 |
with_f77libs=no |
| 8844 |
{ echo "$as_me:$LINENO: WARNING: Cannot find your Fortran compiler. Building ASCEND |
| 8845 |
without integration, MINOS, and CONOPT support. To bulid ASCEND with |
| 8846 |
Fortran support, run configure with the option |
| 8847 |
--with-fortran=F77,F77LIBS |
| 8848 |
where F77 is the full path to your Fortran compiler and F77LIBS are |
| 8849 |
its related libraries" >&5 |
| 8850 |
echo "$as_me: WARNING: Cannot find your Fortran compiler. Building ASCEND |
| 8851 |
without integration, MINOS, and CONOPT support. To bulid ASCEND with |
| 8852 |
Fortran support, run configure with the option |
| 8853 |
--with-fortran=F77,F77LIBS |
| 8854 |
where F77 is the full path to your Fortran compiler and F77LIBS are |
| 8855 |
its related libraries" >&2;} |
| 8856 |
fi |
| 8857 |
fi |
| 8858 |
|
| 8859 |
if test "X$with_f77libs" = X_searching ; then |
| 8860 |
# We found a compiler, now search for the fortran libraries |
| 8861 |
# based on the system type. |
| 8862 |
echo "$as_me:$LINENO: result: checking for fortran libraries based on system type" >&5 |
| 8863 |
echo "${ECHO_T}checking for fortran libraries based on system type" >&6 |
| 8864 |
case "$host" in |
| 8865 |
alpha-dec-osf*) |
| 8866 |
echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5 |
| 8867 |
echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6 |
| 8868 |
if test "${ac_cv_lib_for_for_lle+set}" = set; then |
| 8869 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8870 |
else |
| 8871 |
ac_check_lib_save_LIBS=$LIBS |
| 8872 |
LIBS="-lfor $F77LIBS $LIBS" |
| 8873 |
cat >conftest.$ac_ext <<_ACEOF |
| 8874 |
/* confdefs.h. */ |
| 8875 |
_ACEOF |
| 8876 |
cat confdefs.h >>conftest.$ac_ext |
| 8877 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8878 |
/* end confdefs.h. */ |
| 8879 |
|
| 8880 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8881 |
#ifdef __cplusplus |
| 8882 |
extern "C" |
| 8883 |
#endif |
| 8884 |
/* We use char because int might match the return type of a gcc2 |
| 8885 |
builtin and then its argument prototype would still apply. */ |
| 8886 |
char for_lle (); |
| 8887 |
int |
| 8888 |
main () |
| 8889 |
{ |
| 8890 |
for_lle (); |
| 8891 |
; |
| 8892 |
return 0; |
| 8893 |
} |
| 8894 |
_ACEOF |
| 8895 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8896 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8897 |
(eval $ac_link) 2>conftest.er1 |
| 8898 |
ac_status=$? |
| 8899 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8900 |
rm -f conftest.er1 |
| 8901 |
cat conftest.err >&5 |
| 8902 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8903 |
(exit $ac_status); } && |
| 8904 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8905 |
|| test ! -s conftest.err' |
| 8906 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8907 |
(eval $ac_try) 2>&5 |
| 8908 |
ac_status=$? |
| 8909 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8910 |
(exit $ac_status); }; } && |
| 8911 |
{ ac_try='test -s conftest$ac_exeext' |
| 8912 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8913 |
(eval $ac_try) 2>&5 |
| 8914 |
ac_status=$? |
| 8915 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8916 |
(exit $ac_status); }; }; then |
| 8917 |
ac_cv_lib_for_for_lle=yes |
| 8918 |
else |
| 8919 |
echo "$as_me: failed program was:" >&5 |
| 8920 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 |
|
| 8922 |
ac_cv_lib_for_for_lle=no |
| 8923 |
fi |
| 8924 |
rm -f conftest.err conftest.$ac_objext \ |
| 8925 |
conftest$ac_exeext conftest.$ac_ext |
| 8926 |
LIBS=$ac_check_lib_save_LIBS |
| 8927 |
fi |
| 8928 |
echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5 |
| 8929 |
echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6 |
| 8930 |
if test $ac_cv_lib_for_for_lle = yes; then |
| 8931 |
F77LIBS="$F77LIBS -lfor" |
| 8932 |
fi |
| 8933 |
|
| 8934 |
echo "$as_me:$LINENO: checking for _OtsFill in -lots" >&5 |
| 8935 |
echo $ECHO_N "checking for _OtsFill in -lots... $ECHO_C" >&6 |
| 8936 |
if test "${ac_cv_lib_ots__OtsFill+set}" = set; then |
| 8937 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8938 |
else |
| 8939 |
ac_check_lib_save_LIBS=$LIBS |
| 8940 |
LIBS="-lots $F77LIBS $LIBS" |
| 8941 |
cat >conftest.$ac_ext <<_ACEOF |
| 8942 |
/* confdefs.h. */ |
| 8943 |
_ACEOF |
| 8944 |
cat confdefs.h >>conftest.$ac_ext |
| 8945 |
cat >>conftest.$ac_ext <<_ACEOF |
| 8946 |
/* end confdefs.h. */ |
| 8947 |
|
| 8948 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8949 |
#ifdef __cplusplus |
| 8950 |
extern "C" |
| 8951 |
#endif |
| 8952 |
/* We use char because int might match the return type of a gcc2 |
| 8953 |
builtin and then its argument prototype would still apply. */ |
| 8954 |
char _OtsFill (); |
| 8955 |
int |
| 8956 |
main () |
| 8957 |
{ |
| 8958 |
_OtsFill (); |
| 8959 |
; |
| 8960 |
return 0; |
| 8961 |
} |
| 8962 |
_ACEOF |
| 8963 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8964 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8965 |
(eval $ac_link) 2>conftest.er1 |
| 8966 |
ac_status=$? |
| 8967 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8968 |
rm -f conftest.er1 |
| 8969 |
cat conftest.err >&5 |
| 8970 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8971 |
(exit $ac_status); } && |
| 8972 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8973 |
|| test ! -s conftest.err' |
| 8974 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8975 |
(eval $ac_try) 2>&5 |
| 8976 |
ac_status=$? |
| 8977 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8978 |
(exit $ac_status); }; } && |
| 8979 |
{ ac_try='test -s conftest$ac_exeext' |
| 8980 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8981 |
(eval $ac_try) 2>&5 |
| 8982 |
ac_status=$? |
| 8983 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8984 |
(exit $ac_status); }; }; then |
| 8985 |
ac_cv_lib_ots__OtsFill=yes |
| 8986 |
else |
| 8987 |
echo "$as_me: failed program was:" >&5 |
| 8988 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8989 |
|
| 8990 |
ac_cv_lib_ots__OtsFill=no |
| 8991 |
fi |
| 8992 |
rm -f conftest.err conftest.$ac_objext \ |
| 8993 |
conftest$ac_exeext conftest.$ac_ext |
| 8994 |
LIBS=$ac_check_lib_save_LIBS |
| 8995 |
fi |
| 8996 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ots__OtsFill" >&5 |
| 8997 |
echo "${ECHO_T}$ac_cv_lib_ots__OtsFill" >&6 |
| 8998 |
if test $ac_cv_lib_ots__OtsFill = yes; then |
| 8999 |
F77LIBS="$F77LIBS -lots" |
| 9000 |
fi |
| 9001 |
|
| 9002 |
echo "$as_me:$LINENO: checking for etime_ in -lUfor" >&5 |
| 9003 |
echo $ECHO_N "checking for etime_ in -lUfor... $ECHO_C" >&6 |
| 9004 |
if test "${ac_cv_lib_Ufor_etime_+set}" = set; then |
| 9005 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9006 |
else |
| 9007 |
ac_check_lib_save_LIBS=$LIBS |
| 9008 |
LIBS="-lUfor $F77LIBS $LIBS" |
| 9009 |
cat >conftest.$ac_ext <<_ACEOF |
| 9010 |
/* confdefs.h. */ |
| 9011 |
_ACEOF |
| 9012 |
cat confdefs.h >>conftest.$ac_ext |
| 9013 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9014 |
/* end confdefs.h. */ |
| 9015 |
|
| 9016 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9017 |
#ifdef __cplusplus |
| 9018 |
extern "C" |
| 9019 |
#endif |
| 9020 |
/* We use char because int might match the return type of a gcc2 |
| 9021 |
builtin and then its argument prototype would still apply. */ |
| 9022 |
char etime_ (); |
| 9023 |
int |
| 9024 |
main () |
| 9025 |
{ |
| 9026 |
etime_ (); |
| 9027 |
; |
| 9028 |
return 0; |
| 9029 |
} |
| 9030 |
_ACEOF |
| 9031 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9032 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9033 |
(eval $ac_link) 2>conftest.er1 |
| 9034 |
ac_status=$? |
| 9035 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9036 |
rm -f conftest.er1 |
| 9037 |
cat conftest.err >&5 |
| 9038 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9039 |
(exit $ac_status); } && |
| 9040 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9041 |
|| test ! -s conftest.err' |
| 9042 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9043 |
(eval $ac_try) 2>&5 |
| 9044 |
ac_status=$? |
| 9045 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9046 |
(exit $ac_status); }; } && |
| 9047 |
{ ac_try='test -s conftest$ac_exeext' |
| 9048 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9049 |
(eval $ac_try) 2>&5 |
| 9050 |
ac_status=$? |
| 9051 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 |
(exit $ac_status); }; }; then |
| 9053 |
ac_cv_lib_Ufor_etime_=yes |
| 9054 |
else |
| 9055 |
echo "$as_me: failed program was:" >&5 |
| 9056 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9057 |
|
| 9058 |
ac_cv_lib_Ufor_etime_=no |
| 9059 |
fi |
| 9060 |
rm -f conftest.err conftest.$ac_objext \ |
| 9061 |
conftest$ac_exeext conftest.$ac_ext |
| 9062 |
LIBS=$ac_check_lib_save_LIBS |
| 9063 |
fi |
| 9064 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_etime_" >&5 |
| 9065 |
echo "${ECHO_T}$ac_cv_lib_Ufor_etime_" >&6 |
| 9066 |
if test $ac_cv_lib_Ufor_etime_ = yes; then |
| 9067 |
F77LIBS="$F77LIBS -lUfor" |
| 9068 |
fi |
| 9069 |
|
| 9070 |
;; |
| 9071 |
mips-dec-ultrix*) |
| 9072 |
echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5 |
| 9073 |
echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6 |
| 9074 |
if test "${ac_cv_lib_for_for_lle+set}" = set; then |
| 9075 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9076 |
else |
| 9077 |
ac_check_lib_save_LIBS=$LIBS |
| 9078 |
LIBS="-lfor $F77LIBS $LIBS" |
| 9079 |
cat >conftest.$ac_ext <<_ACEOF |
| 9080 |
/* confdefs.h. */ |
| 9081 |
_ACEOF |
| 9082 |
cat confdefs.h >>conftest.$ac_ext |
| 9083 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9084 |
/* end confdefs.h. */ |
| 9085 |
|
| 9086 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9087 |
#ifdef __cplusplus |
| 9088 |
extern "C" |
| 9089 |
#endif |
| 9090 |
/* We use char because int might match the return type of a gcc2 |
| 9091 |
builtin and then its argument prototype would still apply. */ |
| 9092 |
char for_lle (); |
| 9093 |
int |
| 9094 |
main () |
| 9095 |
{ |
| 9096 |
for_lle (); |
| 9097 |
; |
| 9098 |
return 0; |
| 9099 |
} |
| 9100 |
_ACEOF |
| 9101 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9102 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9103 |
(eval $ac_link) 2>conftest.er1 |
| 9104 |
ac_status=$? |
| 9105 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9106 |
rm -f conftest.er1 |
| 9107 |
cat conftest.err >&5 |
| 9108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9109 |
(exit $ac_status); } && |
| 9110 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9111 |
|| test ! -s conftest.err' |
| 9112 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9113 |
(eval $ac_try) 2>&5 |
| 9114 |
ac_status=$? |
| 9115 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9116 |
(exit $ac_status); }; } && |
| 9117 |
{ ac_try='test -s conftest$ac_exeext' |
| 9118 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9119 |
(eval $ac_try) 2>&5 |
| 9120 |
ac_status=$? |
| 9121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 |
(exit $ac_status); }; }; then |
| 9123 |
ac_cv_lib_for_for_lle=yes |
| 9124 |
else |
| 9125 |
echo "$as_me: failed program was:" >&5 |
| 9126 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9127 |
|
| 9128 |
ac_cv_lib_for_for_lle=no |
| 9129 |
fi |
| 9130 |
rm -f conftest.err conftest.$ac_objext \ |
| 9131 |
conftest$ac_exeext conftest.$ac_ext |
| 9132 |
LIBS=$ac_check_lib_save_LIBS |
| 9133 |
fi |
| 9134 |
echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5 |
| 9135 |
echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6 |
| 9136 |
if test $ac_cv_lib_for_for_lle = yes; then |
| 9137 |
F77LIBS="$F77LIBS -lfor" |
| 9138 |
fi |
| 9139 |
|
| 9140 |
;; |
| 9141 |
hppa1.1-hp-hpux*) |
| 9142 |
echo "$as_me:$LINENO: checking for FTN_QATAN in -lcl" >&5 |
| 9143 |
echo $ECHO_N "checking for FTN_QATAN in -lcl... $ECHO_C" >&6 |
| 9144 |
if test "${ac_cv_lib_cl_FTN_QATAN+set}" = set; then |
| 9145 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9146 |
else |
| 9147 |
ac_check_lib_save_LIBS=$LIBS |
| 9148 |
LIBS="-lcl $F77LIBS $LIBS" |
| 9149 |
cat >conftest.$ac_ext <<_ACEOF |
| 9150 |
/* confdefs.h. */ |
| 9151 |
_ACEOF |
| 9152 |
cat confdefs.h >>conftest.$ac_ext |
| 9153 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9154 |
/* end confdefs.h. */ |
| 9155 |
|
| 9156 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9157 |
#ifdef __cplusplus |
| 9158 |
extern "C" |
| 9159 |
#endif |
| 9160 |
/* We use char because int might match the return type of a gcc2 |
| 9161 |
builtin and then its argument prototype would still apply. */ |
| 9162 |
char FTN_QATAN (); |
| 9163 |
int |
| 9164 |
main () |
| 9165 |
{ |
| 9166 |
FTN_QATAN (); |
| 9167 |
; |
| 9168 |
return 0; |
| 9169 |
} |
| 9170 |
_ACEOF |
| 9171 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9172 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9173 |
(eval $ac_link) 2>conftest.er1 |
| 9174 |
ac_status=$? |
| 9175 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9176 |
rm -f conftest.er1 |
| 9177 |
cat conftest.err >&5 |
| 9178 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9179 |
(exit $ac_status); } && |
| 9180 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9181 |
|| test ! -s conftest.err' |
| 9182 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9183 |
(eval $ac_try) 2>&5 |
| 9184 |
ac_status=$? |
| 9185 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9186 |
(exit $ac_status); }; } && |
| 9187 |
{ ac_try='test -s conftest$ac_exeext' |
| 9188 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9189 |
(eval $ac_try) 2>&5 |
| 9190 |
ac_status=$? |
| 9191 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9192 |
(exit $ac_status); }; }; then |
| 9193 |
ac_cv_lib_cl_FTN_QATAN=yes |
| 9194 |
else |
| 9195 |
echo "$as_me: failed program was:" >&5 |
| 9196 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9197 |
|
| 9198 |
ac_cv_lib_cl_FTN_QATAN=no |
| 9199 |
fi |
| 9200 |
rm -f conftest.err conftest.$ac_objext \ |
| 9201 |
conftest$ac_exeext conftest.$ac_ext |
| 9202 |
LIBS=$ac_check_lib_save_LIBS |
| 9203 |
fi |
| 9204 |
echo "$as_me:$LINENO: result: $ac_cv_lib_cl_FTN_QATAN" >&5 |
| 9205 |
echo "${ECHO_T}$ac_cv_lib_cl_FTN_QATAN" >&6 |
| 9206 |
if test $ac_cv_lib_cl_FTN_QATAN = yes; then |
| 9207 |
F77LIBS="$F77LIBS -lcl" |
| 9208 |
fi |
| 9209 |
|
| 9210 |
;; |
| 9211 |
*-ibm-aix*) |
| 9212 |
# need to add -lc before -lxlf on AIX to |
| 9213 |
# avoid getting the wrong getenv |
| 9214 |
F77LIBS="-lc $F77LIBS" |
| 9215 |
echo "$as_me:$LINENO: checking for _xldabs in -lxlf" >&5 |
| 9216 |
echo $ECHO_N "checking for _xldabs in -lxlf... $ECHO_C" >&6 |
| 9217 |
if test "${ac_cv_lib_xlf__xldabs+set}" = set; then |
| 9218 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9219 |
else |
| 9220 |
ac_check_lib_save_LIBS=$LIBS |
| 9221 |
LIBS="-lxlf $F77LIBS $LIBS" |
| 9222 |
cat >conftest.$ac_ext <<_ACEOF |
| 9223 |
/* confdefs.h. */ |
| 9224 |
_ACEOF |
| 9225 |
cat confdefs.h >>conftest.$ac_ext |
| 9226 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9227 |
/* end confdefs.h. */ |
| 9228 |
|
| 9229 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9230 |
#ifdef __cplusplus |
| 9231 |
extern "C" |
| 9232 |
#endif |
| 9233 |
/* We use char because int might match the return type of a gcc2 |
| 9234 |
builtin and then its argument prototype would still apply. */ |
| 9235 |
char _xldabs (); |
| 9236 |
int |
| 9237 |
main () |
| 9238 |
{ |
| 9239 |
_xldabs (); |
| 9240 |
; |
| 9241 |
return 0; |
| 9242 |
} |
| 9243 |
_ACEOF |
| 9244 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9245 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9246 |
(eval $ac_link) 2>conftest.er1 |
| 9247 |
ac_status=$? |
| 9248 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9249 |
rm -f conftest.er1 |
| 9250 |
cat conftest.err >&5 |
| 9251 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9252 |
(exit $ac_status); } && |
| 9253 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9254 |
|| test ! -s conftest.err' |
| 9255 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9256 |
(eval $ac_try) 2>&5 |
| 9257 |
ac_status=$? |
| 9258 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9259 |
(exit $ac_status); }; } && |
| 9260 |
{ ac_try='test -s conftest$ac_exeext' |
| 9261 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9262 |
(eval $ac_try) 2>&5 |
| 9263 |
ac_status=$? |
| 9264 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9265 |
(exit $ac_status); }; }; then |
| 9266 |
ac_cv_lib_xlf__xldabs=yes |
| 9267 |
else |
| 9268 |
echo "$as_me: failed program was:" >&5 |
| 9269 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9270 |
|
| 9271 |
ac_cv_lib_xlf__xldabs=no |
| 9272 |
fi |
| 9273 |
rm -f conftest.err conftest.$ac_objext \ |
| 9274 |
conftest$ac_exeext conftest.$ac_ext |
| 9275 |
LIBS=$ac_check_lib_save_LIBS |
| 9276 |
fi |
| 9277 |
echo "$as_me:$LINENO: result: $ac_cv_lib_xlf__xldabs" >&5 |
| 9278 |
echo "${ECHO_T}$ac_cv_lib_xlf__xldabs" >&6 |
| 9279 |
if test $ac_cv_lib_xlf__xldabs = yes; then |
| 9280 |
F77LIBS="$F77LIBS -lxlf" |
| 9281 |
fi |
| 9282 |
|
| 9283 |
echo "$as_me:$LINENO: checking for srand_ in -lxlfutil" >&5 |
| 9284 |
echo $ECHO_N "checking for srand_ in -lxlfutil... $ECHO_C" >&6 |
| 9285 |
if test "${ac_cv_lib_xlfutil_srand_+set}" = set; then |
| 9286 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9287 |
else |
| 9288 |
ac_check_lib_save_LIBS=$LIBS |
| 9289 |
LIBS="-lxlfutil $F77LIBS $LIBS" |
| 9290 |
cat >conftest.$ac_ext <<_ACEOF |
| 9291 |
/* confdefs.h. */ |
| 9292 |
_ACEOF |
| 9293 |
cat confdefs.h >>conftest.$ac_ext |
| 9294 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9295 |
/* end confdefs.h. */ |
| 9296 |
|
| 9297 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9298 |
#ifdef __cplusplus |
| 9299 |
extern "C" |
| 9300 |
#endif |
| 9301 |
/* We use char because int might match the return type of a gcc2 |
| 9302 |
builtin and then its argument prototype would still apply. */ |
| 9303 |
char srand_ (); |
| 9304 |
int |
| 9305 |
main () |
| 9306 |
{ |
| 9307 |
srand_ (); |
| 9308 |
; |
| 9309 |
return 0; |
| 9310 |
} |
| 9311 |
_ACEOF |
| 9312 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9313 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9314 |
(eval $ac_link) 2>conftest.er1 |
| 9315 |
ac_status=$? |
| 9316 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9317 |
rm -f conftest.er1 |
| 9318 |
cat conftest.err >&5 |
| 9319 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9320 |
(exit $ac_status); } && |
| 9321 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9322 |
|| test ! -s conftest.err' |
| 9323 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9324 |
(eval $ac_try) 2>&5 |
| 9325 |
ac_status=$? |
| 9326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9327 |
(exit $ac_status); }; } && |
| 9328 |
{ ac_try='test -s conftest$ac_exeext' |
| 9329 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9330 |
(eval $ac_try) 2>&5 |
| 9331 |
ac_status=$? |
| 9332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9333 |
(exit $ac_status); }; }; then |
| 9334 |
ac_cv_lib_xlfutil_srand_=yes |
| 9335 |
else |
| 9336 |
echo "$as_me: failed program was:" >&5 |
| 9337 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9338 |
|
| 9339 |
ac_cv_lib_xlfutil_srand_=no |
| 9340 |
fi |
| 9341 |
rm -f conftest.err conftest.$ac_objext \ |
| 9342 |
conftest$ac_exeext conftest.$ac_ext |
| 9343 |
LIBS=$ac_check_lib_save_LIBS |
| 9344 |
fi |
| 9345 |
echo "$as_me:$LINENO: result: $ac_cv_lib_xlfutil_srand_" >&5 |
| 9346 |
echo "${ECHO_T}$ac_cv_lib_xlfutil_srand_" >&6 |
| 9347 |
if test $ac_cv_lib_xlfutil_srand_ = yes; then |
| 9348 |
F77LIBS="$F77LIBS -lxlfutil" |
| 9349 |
fi |
| 9350 |
|
| 9351 |
echo "$as_me:$LINENO: checking for printf in -lxlf90" >&5 |
| 9352 |
echo $ECHO_N "checking for printf in -lxlf90... $ECHO_C" >&6 |
| 9353 |
if test "${ac_cv_lib_xlf90_printf+set}" = set; then |
| 9354 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9355 |
else |
| 9356 |
ac_check_lib_save_LIBS=$LIBS |
| 9357 |
LIBS="-lxlf90 $F77LIBS $LIBS" |
| 9358 |
cat >conftest.$ac_ext <<_ACEOF |
| 9359 |
/* confdefs.h. */ |
| 9360 |
_ACEOF |
| 9361 |
cat confdefs.h >>conftest.$ac_ext |
| 9362 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9363 |
/* end confdefs.h. */ |
| 9364 |
|
| 9365 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9366 |
#ifdef __cplusplus |
| 9367 |
extern "C" |
| 9368 |
#endif |
| 9369 |
/* We use char because int might match the return type of a gcc2 |
| 9370 |
builtin and then its argument prototype would still apply. */ |
| 9371 |
char printf (); |
| 9372 |
int |
| 9373 |
main () |
| 9374 |
{ |
| 9375 |
printf (); |
| 9376 |
; |
| 9377 |
return 0; |
| 9378 |
} |
| 9379 |
_ACEOF |
| 9380 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9381 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9382 |
(eval $ac_link) 2>conftest.er1 |
| 9383 |
ac_status=$? |
| 9384 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9385 |
rm -f conftest.er1 |
| 9386 |
cat conftest.err >&5 |
| 9387 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9388 |
(exit $ac_status); } && |
| 9389 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9390 |
|| test ! -s conftest.err' |
| 9391 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9392 |
(eval $ac_try) 2>&5 |
| 9393 |
ac_status=$? |
| 9394 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9395 |
(exit $ac_status); }; } && |
| 9396 |
{ ac_try='test -s conftest$ac_exeext' |
| 9397 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9398 |
(eval $ac_try) 2>&5 |
| 9399 |
ac_status=$? |
| 9400 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 |
(exit $ac_status); }; }; then |
| 9402 |
ac_cv_lib_xlf90_printf=yes |
| 9403 |
else |
| 9404 |
echo "$as_me: failed program was:" >&5 |
| 9405 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9406 |
|
| 9407 |
ac_cv_lib_xlf90_printf=no |
| 9408 |
fi |
| 9409 |
rm -f conftest.err conftest.$ac_objext \ |
| 9410 |
conftest$ac_exeext conftest.$ac_ext |
| 9411 |
LIBS=$ac_check_lib_save_LIBS |
| 9412 |
fi |
| 9413 |
echo "$as_me:$LINENO: result: $ac_cv_lib_xlf90_printf" >&5 |
| 9414 |
echo "${ECHO_T}$ac_cv_lib_xlf90_printf" >&6 |
| 9415 |
if test $ac_cv_lib_xlf90_printf = yes; then |
| 9416 |
F77LIBS="$F77LIBS -lxlf90" |
| 9417 |
fi |
| 9418 |
|
| 9419 |
;; |
| 9420 |
*-linux-*) |
| 9421 |
echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5 |
| 9422 |
echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6 |
| 9423 |
if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then |
| 9424 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9425 |
else |
| 9426 |
ac_check_lib_save_LIBS=$LIBS |
| 9427 |
LIBS="-lf2c $F77LIBS $LIBS" |
| 9428 |
cat >conftest.$ac_ext <<_ACEOF |
| 9429 |
/* confdefs.h. */ |
| 9430 |
_ACEOF |
| 9431 |
cat confdefs.h >>conftest.$ac_ext |
| 9432 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9433 |
/* end confdefs.h. */ |
| 9434 |
|
| 9435 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9436 |
#ifdef __cplusplus |
| 9437 |
extern "C" |
| 9438 |
#endif |
| 9439 |
/* We use char because int might match the return type of a gcc2 |
| 9440 |
builtin and then its argument prototype would still apply. */ |
| 9441 |
char pow_dd (); |
| 9442 |
int |
| 9443 |
main () |
| 9444 |
{ |
| 9445 |
pow_dd (); |
| 9446 |
; |
| 9447 |
return 0; |
| 9448 |
} |
| 9449 |
_ACEOF |
| 9450 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9451 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9452 |
(eval $ac_link) 2>conftest.er1 |
| 9453 |
ac_status=$? |
| 9454 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9455 |
rm -f conftest.er1 |
| 9456 |
cat conftest.err >&5 |
| 9457 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 |
(exit $ac_status); } && |
| 9459 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9460 |
|| test ! -s conftest.err' |
| 9461 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9462 |
(eval $ac_try) 2>&5 |
| 9463 |
ac_status=$? |
| 9464 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 |
(exit $ac_status); }; } && |
| 9466 |
{ ac_try='test -s conftest$ac_exeext' |
| 9467 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9468 |
(eval $ac_try) 2>&5 |
| 9469 |
ac_status=$? |
| 9470 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9471 |
(exit $ac_status); }; }; then |
| 9472 |
ac_cv_lib_f2c_pow_dd=yes |
| 9473 |
else |
| 9474 |
echo "$as_me: failed program was:" >&5 |
| 9475 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9476 |
|
| 9477 |
ac_cv_lib_f2c_pow_dd=no |
| 9478 |
fi |
| 9479 |
rm -f conftest.err conftest.$ac_objext \ |
| 9480 |
conftest$ac_exeext conftest.$ac_ext |
| 9481 |
LIBS=$ac_check_lib_save_LIBS |
| 9482 |
fi |
| 9483 |
echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5 |
| 9484 |
echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6 |
| 9485 |
if test $ac_cv_lib_f2c_pow_dd = yes; then |
| 9486 |
F77LIBS="$F77LIBS -lf2c" |
| 9487 |
fi |
| 9488 |
|
| 9489 |
echo "$as_me:$LINENO: checking for pow_dd in -lg2c" >&5 |
| 9490 |
echo $ECHO_N "checking for pow_dd in -lg2c... $ECHO_C" >&6 |
| 9491 |
if test "${ac_cv_lib_g2c_pow_dd+set}" = set; then |
| 9492 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9493 |
else |
| 9494 |
ac_check_lib_save_LIBS=$LIBS |
| 9495 |
LIBS="-lg2c $F77LIBS $LIBS" |
| 9496 |
cat >conftest.$ac_ext <<_ACEOF |
| 9497 |
/* confdefs.h. */ |
| 9498 |
_ACEOF |
| 9499 |
cat confdefs.h >>conftest.$ac_ext |
| 9500 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9501 |
/* end confdefs.h. */ |
| 9502 |
|
| 9503 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9504 |
#ifdef __cplusplus |
| 9505 |
extern "C" |
| 9506 |
#endif |
| 9507 |
/* We use char because int might match the return type of a gcc2 |
| 9508 |
builtin and then its argument prototype would still apply. */ |
| 9509 |
char pow_dd (); |
| 9510 |
int |
| 9511 |
main () |
| 9512 |
{ |
| 9513 |
pow_dd (); |
| 9514 |
; |
| 9515 |
return 0; |
| 9516 |
} |
| 9517 |
_ACEOF |
| 9518 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9519 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9520 |
(eval $ac_link) 2>conftest.er1 |
| 9521 |
ac_status=$? |
| 9522 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9523 |
rm -f conftest.er1 |
| 9524 |
cat conftest.err >&5 |
| 9525 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9526 |
(exit $ac_status); } && |
| 9527 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9528 |
|| test ! -s conftest.err' |
| 9529 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9530 |
(eval $ac_try) 2>&5 |
| 9531 |
ac_status=$? |
| 9532 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 |
(exit $ac_status); }; } && |
| 9534 |
{ ac_try='test -s conftest$ac_exeext' |
| 9535 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9536 |
(eval $ac_try) 2>&5 |
| 9537 |
ac_status=$? |
| 9538 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9539 |
(exit $ac_status); }; }; then |
| 9540 |
ac_cv_lib_g2c_pow_dd=yes |
| 9541 |
else |
| 9542 |
echo "$as_me: failed program was:" >&5 |
| 9543 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9544 |
|
| 9545 |
ac_cv_lib_g2c_pow_dd=no |
| 9546 |
fi |
| 9547 |
rm -f conftest.err conftest.$ac_objext \ |
| 9548 |
conftest$ac_exeext conftest.$ac_ext |
| 9549 |
LIBS=$ac_check_lib_save_LIBS |
| 9550 |
fi |
| 9551 |
echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_pow_dd" >&5 |
| 9552 |
echo "${ECHO_T}$ac_cv_lib_g2c_pow_dd" >&6 |
| 9553 |
if test $ac_cv_lib_g2c_pow_dd = yes; then |
| 9554 |
F77LIBS="$F77LIBS -lg2c" |
| 9555 |
fi |
| 9556 |
|
| 9557 |
;; |
| 9558 |
sparc-sun-solaris*) |
| 9559 |
if test -n "$GCC" ; then |
| 9560 |
F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib" |
| 9561 |
fi |
| 9562 |
echo "$as_me:$LINENO: checking for d_sqrt_ in -lsunmath" >&5 |
| 9563 |
echo $ECHO_N "checking for d_sqrt_ in -lsunmath... $ECHO_C" >&6 |
| 9564 |
if test "${ac_cv_lib_sunmath_d_sqrt_+set}" = set; then |
| 9565 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9566 |
else |
| 9567 |
ac_check_lib_save_LIBS=$LIBS |
| 9568 |
LIBS="-lsunmath $LIBS" |
| 9569 |
cat >conftest.$ac_ext <<_ACEOF |
| 9570 |
/* confdefs.h. */ |
| 9571 |
_ACEOF |
| 9572 |
cat confdefs.h >>conftest.$ac_ext |
| 9573 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9574 |
/* end confdefs.h. */ |
| 9575 |
|
| 9576 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9577 |
#ifdef __cplusplus |
| 9578 |
extern "C" |
| 9579 |
#endif |
| 9580 |
/* We use char because int might match the return type of a gcc2 |
| 9581 |
builtin and then its argument prototype would still apply. */ |
| 9582 |
char d_sqrt_ (); |
| 9583 |
int |
| 9584 |
main () |
| 9585 |
{ |
| 9586 |
d_sqrt_ (); |
| 9587 |
; |
| 9588 |
return 0; |
| 9589 |
} |
| 9590 |
_ACEOF |
| 9591 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9592 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9593 |
(eval $ac_link) 2>conftest.er1 |
| 9594 |
ac_status=$? |
| 9595 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9596 |
rm -f conftest.er1 |
| 9597 |
cat conftest.err >&5 |
| 9598 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 |
(exit $ac_status); } && |
| 9600 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9601 |
|| test ! -s conftest.err' |
| 9602 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9603 |
(eval $ac_try) 2>&5 |
| 9604 |
ac_status=$? |
| 9605 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9606 |
(exit $ac_status); }; } && |
| 9607 |
{ ac_try='test -s conftest$ac_exeext' |
| 9608 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9609 |
(eval $ac_try) 2>&5 |
| 9610 |
ac_status=$? |
| 9611 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9612 |
(exit $ac_status); }; }; then |
| 9613 |
ac_cv_lib_sunmath_d_sqrt_=yes |
| 9614 |
else |
| 9615 |
echo "$as_me: failed program was:" >&5 |
| 9616 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9617 |
|
| 9618 |
ac_cv_lib_sunmath_d_sqrt_=no |
| 9619 |
fi |
| 9620 |
rm -f conftest.err conftest.$ac_objext \ |
| 9621 |
conftest$ac_exeext conftest.$ac_ext |
| 9622 |
LIBS=$ac_check_lib_save_LIBS |
| 9623 |
fi |
| 9624 |
echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_d_sqrt_" >&5 |
| 9625 |
echo "${ECHO_T}$ac_cv_lib_sunmath_d_sqrt_" >&6 |
| 9626 |
if test $ac_cv_lib_sunmath_d_sqrt_ = yes; then |
| 9627 |
MATH_LIBS="-lsunmath $MATH_LIBS" |
| 9628 |
fi |
| 9629 |
|
| 9630 |
echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
| 9631 |
echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6 |
| 9632 |
if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
| 9633 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9634 |
else |
| 9635 |
ac_check_lib_save_LIBS=$LIBS |
| 9636 |
LIBS="-lF77 $F77LIBS $MATH_LIBS $LIBS" |
| 9637 |
cat >conftest.$ac_ext <<_ACEOF |
| 9638 |
/* confdefs.h. */ |
| 9639 |
_ACEOF |
| 9640 |
cat confdefs.h >>conftest.$ac_ext |
| 9641 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9642 |
/* end confdefs.h. */ |
| 9643 |
|
| 9644 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9645 |
#ifdef __cplusplus |
| 9646 |
extern "C" |
| 9647 |
#endif |
| 9648 |
/* We use char because int might match the return type of a gcc2 |
| 9649 |
builtin and then its argument prototype would still apply. */ |
| 9650 |
char f77_init (); |
| 9651 |
int |
| 9652 |
main () |
| 9653 |
{ |
| 9654 |
f77_init (); |
| 9655 |
; |
| 9656 |
return 0; |
| 9657 |
} |
| 9658 |
_ACEOF |
| 9659 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9660 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9661 |
(eval $ac_link) 2>conftest.er1 |
| 9662 |
ac_status=$? |
| 9663 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9664 |
rm -f conftest.er1 |
| 9665 |
cat conftest.err >&5 |
| 9666 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9667 |
(exit $ac_status); } && |
| 9668 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9669 |
|| test ! -s conftest.err' |
| 9670 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9671 |
(eval $ac_try) 2>&5 |
| 9672 |
ac_status=$? |
| 9673 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9674 |
(exit $ac_status); }; } && |
| 9675 |
{ ac_try='test -s conftest$ac_exeext' |
| 9676 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9677 |
(eval $ac_try) 2>&5 |
| 9678 |
ac_status=$? |
| 9679 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9680 |
(exit $ac_status); }; }; then |
| 9681 |
ac_cv_lib_F77_f77_init=yes |
| 9682 |
else |
| 9683 |
echo "$as_me: failed program was:" >&5 |
| 9684 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9685 |
|
| 9686 |
ac_cv_lib_F77_f77_init=no |
| 9687 |
fi |
| 9688 |
rm -f conftest.err conftest.$ac_objext \ |
| 9689 |
conftest$ac_exeext conftest.$ac_ext |
| 9690 |
LIBS=$ac_check_lib_save_LIBS |
| 9691 |
fi |
| 9692 |
echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
| 9693 |
echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6 |
| 9694 |
if test $ac_cv_lib_F77_f77_init = yes; then |
| 9695 |
F77LIBS="$F77LIBS -lF77" |
| 9696 |
fi |
| 9697 |
|
| 9698 |
echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5 |
| 9699 |
echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6 |
| 9700 |
if test "${ac_cv_lib_M77_inmax_+set}" = set; then |
| 9701 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9702 |
else |
| 9703 |
ac_check_lib_save_LIBS=$LIBS |
| 9704 |
LIBS="-lM77 $F77LIBS $MATH_LIBS $LIBS" |
| 9705 |
cat >conftest.$ac_ext <<_ACEOF |
| 9706 |
/* confdefs.h. */ |
| 9707 |
_ACEOF |
| 9708 |
cat confdefs.h >>conftest.$ac_ext |
| 9709 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9710 |
/* end confdefs.h. */ |
| 9711 |
|
| 9712 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9713 |
#ifdef __cplusplus |
| 9714 |
extern "C" |
| 9715 |
#endif |
| 9716 |
/* We use char because int might match the return type of a gcc2 |
| 9717 |
builtin and then its argument prototype would still apply. */ |
| 9718 |
char inmax_ (); |
| 9719 |
int |
| 9720 |
main () |
| 9721 |
{ |
| 9722 |
inmax_ (); |
| 9723 |
; |
| 9724 |
return 0; |
| 9725 |
} |
| 9726 |
_ACEOF |
| 9727 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9728 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9729 |
(eval $ac_link) 2>conftest.er1 |
| 9730 |
ac_status=$? |
| 9731 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9732 |
rm -f conftest.er1 |
| 9733 |
cat conftest.err >&5 |
| 9734 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9735 |
(exit $ac_status); } && |
| 9736 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9737 |
|| test ! -s conftest.err' |
| 9738 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9739 |
(eval $ac_try) 2>&5 |
| 9740 |
ac_status=$? |
| 9741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9742 |
(exit $ac_status); }; } && |
| 9743 |
{ ac_try='test -s conftest$ac_exeext' |
| 9744 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9745 |
(eval $ac_try) 2>&5 |
| 9746 |
ac_status=$? |
| 9747 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 |
(exit $ac_status); }; }; then |
| 9749 |
ac_cv_lib_M77_inmax_=yes |
| 9750 |
else |
| 9751 |
echo "$as_me: failed program was:" >&5 |
| 9752 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9753 |
|
| 9754 |
ac_cv_lib_M77_inmax_=no |
| 9755 |
fi |
| 9756 |
rm -f conftest.err conftest.$ac_objext \ |
| 9757 |
conftest$ac_exeext conftest.$ac_ext |
| 9758 |
LIBS=$ac_check_lib_save_LIBS |
| 9759 |
fi |
| 9760 |
echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5 |
| 9761 |
echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6 |
| 9762 |
if test $ac_cv_lib_M77_inmax_ = yes; then |
| 9763 |
F77LIBS="$F77LIBS -lM77" |
| 9764 |
fi |
| 9765 |
|
| 9766 |
;; |
| 9767 |
sparc-sun-sunos4*) |
| 9768 |
if test -n "$GCC" ; then |
| 9769 |
F77LIBS="-L/usr/lang/lib" |
| 9770 |
fi |
| 9771 |
echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
| 9772 |
echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6 |
| 9773 |
if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
| 9774 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9775 |
else |
| 9776 |
ac_check_lib_save_LIBS=$LIBS |
| 9777 |
LIBS="-lF77 $F77LIBS $LIBS" |
| 9778 |
cat >conftest.$ac_ext <<_ACEOF |
| 9779 |
/* confdefs.h. */ |
| 9780 |
_ACEOF |
| 9781 |
cat confdefs.h >>conftest.$ac_ext |
| 9782 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9783 |
/* end confdefs.h. */ |
| 9784 |
|
| 9785 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9786 |
#ifdef __cplusplus |
| 9787 |
extern "C" |
| 9788 |
#endif |
| 9789 |
/* We use char because int might match the return type of a gcc2 |
| 9790 |
builtin and then its argument prototype would still apply. */ |
| 9791 |
char f77_init (); |
| 9792 |
int |
| 9793 |
main () |
| 9794 |
{ |
| 9795 |
f77_init (); |
| 9796 |
; |
| 9797 |
return 0; |
| 9798 |
} |
| 9799 |
_ACEOF |
| 9800 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9801 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9802 |
(eval $ac_link) 2>conftest.er1 |
| 9803 |
ac_status=$? |
| 9804 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9805 |
rm -f conftest.er1 |
| 9806 |
cat conftest.err >&5 |
| 9807 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 |
(exit $ac_status); } && |
| 9809 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9810 |
|| test ! -s conftest.err' |
| 9811 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9812 |
(eval $ac_try) 2>&5 |
| 9813 |
ac_status=$? |
| 9814 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9815 |
(exit $ac_status); }; } && |
| 9816 |
{ ac_try='test -s conftest$ac_exeext' |
| 9817 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9818 |
(eval $ac_try) 2>&5 |
| 9819 |
ac_status=$? |
| 9820 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 |
(exit $ac_status); }; }; then |
| 9822 |
ac_cv_lib_F77_f77_init=yes |
| 9823 |
else |
| 9824 |
echo "$as_me: failed program was:" >&5 |
| 9825 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9826 |
|
| 9827 |
ac_cv_lib_F77_f77_init=no |
| 9828 |
fi |
| 9829 |
rm -f conftest.err conftest.$ac_objext \ |
| 9830 |
conftest$ac_exeext conftest.$ac_ext |
| 9831 |
LIBS=$ac_check_lib_save_LIBS |
| 9832 |
fi |
| 9833 |
echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
| 9834 |
echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6 |
| 9835 |
if test $ac_cv_lib_F77_f77_init = yes; then |
| 9836 |
F77LIBS="$F77LIBS -lF77" |
| 9837 |
fi |
| 9838 |
|
| 9839 |
echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5 |
| 9840 |
echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6 |
| 9841 |
if test "${ac_cv_lib_M77_inmax_+set}" = set; then |
| 9842 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9843 |
else |
| 9844 |
ac_check_lib_save_LIBS=$LIBS |
| 9845 |
LIBS="-lM77 $F77LIBS $LIBS" |
| 9846 |
cat >conftest.$ac_ext <<_ACEOF |
| 9847 |
/* confdefs.h. */ |
| 9848 |
_ACEOF |
| 9849 |
cat confdefs.h >>conftest.$ac_ext |
| 9850 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9851 |
/* end confdefs.h. */ |
| 9852 |
|
| 9853 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9854 |
#ifdef __cplusplus |
| 9855 |
extern "C" |
| 9856 |
#endif |
| 9857 |
/* We use char because int might match the return type of a gcc2 |
| 9858 |
builtin and then its argument prototype would still apply. */ |
| 9859 |
char inmax_ (); |
| 9860 |
int |
| 9861 |
main () |
| 9862 |
{ |
| 9863 |
inmax_ (); |
| 9864 |
; |
| 9865 |
return 0; |
| 9866 |
} |
| 9867 |
_ACEOF |
| 9868 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9869 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9870 |
(eval $ac_link) 2>conftest.er1 |
| 9871 |
ac_status=$? |
| 9872 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9873 |
rm -f conftest.er1 |
| 9874 |
cat conftest.err >&5 |
| 9875 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9876 |
(exit $ac_status); } && |
| 9877 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9878 |
|| test ! -s conftest.err' |
| 9879 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9880 |
(eval $ac_try) 2>&5 |
| 9881 |
ac_status=$? |
| 9882 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9883 |
(exit $ac_status); }; } && |
| 9884 |
{ ac_try='test -s conftest$ac_exeext' |
| 9885 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9886 |
(eval $ac_try) 2>&5 |
| 9887 |
ac_status=$? |
| 9888 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 |
(exit $ac_status); }; }; then |
| 9890 |
ac_cv_lib_M77_inmax_=yes |
| 9891 |
else |
| 9892 |
echo "$as_me: failed program was:" >&5 |
| 9893 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9894 |
|
| 9895 |
ac_cv_lib_M77_inmax_=no |
| 9896 |
fi |
| 9897 |
rm -f conftest.err conftest.$ac_objext \ |
| 9898 |
conftest$ac_exeext conftest.$ac_ext |
| 9899 |
LIBS=$ac_check_lib_save_LIBS |
| 9900 |
fi |
| 9901 |
echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5 |
| 9902 |
echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6 |
| 9903 |
if test $ac_cv_lib_M77_inmax_ = yes; then |
| 9904 |
F77LIBS="$F77LIBS -lM77" |
| 9905 |
fi |
| 9906 |
|
| 9907 |
;; |
| 9908 |
mips-sgi-irix*) |
| 9909 |
echo "$as_me:$LINENO: checking for s_copy in -lF77" >&5 |
| 9910 |
echo $ECHO_N "checking for s_copy in -lF77... $ECHO_C" >&6 |
| 9911 |
if test "${ac_cv_lib_F77_s_copy+set}" = set; then |
| 9912 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9913 |
else |
| 9914 |
ac_check_lib_save_LIBS=$LIBS |
| 9915 |
LIBS="-lF77 $F77LIBS $LIBS" |
| 9916 |
cat >conftest.$ac_ext <<_ACEOF |
| 9917 |
/* confdefs.h. */ |
| 9918 |
_ACEOF |
| 9919 |
cat confdefs.h >>conftest.$ac_ext |
| 9920 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9921 |
/* end confdefs.h. */ |
| 9922 |
|
| 9923 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9924 |
#ifdef __cplusplus |
| 9925 |
extern "C" |
| 9926 |
#endif |
| 9927 |
/* We use char because int might match the return type of a gcc2 |
| 9928 |
builtin and then its argument prototype would still apply. */ |
| 9929 |
char s_copy (); |
| 9930 |
int |
| 9931 |
main () |
| 9932 |
{ |
| 9933 |
s_copy (); |
| 9934 |
; |
| 9935 |
return 0; |
| 9936 |
} |
| 9937 |
_ACEOF |
| 9938 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9939 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9940 |
(eval $ac_link) 2>conftest.er1 |
| 9941 |
ac_status=$? |
| 9942 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9943 |
rm -f conftest.er1 |
| 9944 |
cat conftest.err >&5 |
| 9945 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 |
(exit $ac_status); } && |
| 9947 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9948 |
|| test ! -s conftest.err' |
| 9949 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9950 |
(eval $ac_try) 2>&5 |
| 9951 |
ac_status=$? |
| 9952 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 |
(exit $ac_status); }; } && |
| 9954 |
{ ac_try='test -s conftest$ac_exeext' |
| 9955 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9956 |
(eval $ac_try) 2>&5 |
| 9957 |
ac_status=$? |
| 9958 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9959 |
(exit $ac_status); }; }; then |
| 9960 |
ac_cv_lib_F77_s_copy=yes |
| 9961 |
else |
| 9962 |
echo "$as_me: failed program was:" >&5 |
| 9963 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9964 |
|
| 9965 |
ac_cv_lib_F77_s_copy=no |
| 9966 |
fi |
| 9967 |
rm -f conftest.err conftest.$ac_objext \ |
| 9968 |
conftest$ac_exeext conftest.$ac_ext |
| 9969 |
LIBS=$ac_check_lib_save_LIBS |
| 9970 |
fi |
| 9971 |
echo "$as_me:$LINENO: result: $ac_cv_lib_F77_s_copy" >&5 |
| 9972 |
echo "${ECHO_T}$ac_cv_lib_F77_s_copy" >&6 |
| 9973 |
if test $ac_cv_lib_F77_s_copy = yes; then |
| 9974 |
F77LIBS="$F77LIBS -lF77" |
| 9975 |
fi |
| 9976 |
|
| 9977 |
echo "$as_me:$LINENO: checking for f_exit in -lI77" >&5 |
| 9978 |
echo $ECHO_N "checking for f_exit in -lI77... $ECHO_C" >&6 |
| 9979 |
if test "${ac_cv_lib_I77_f_exit+set}" = set; then |
| 9980 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9981 |
else |
| 9982 |
ac_check_lib_save_LIBS=$LIBS |
| 9983 |
LIBS="-lI77 $F77LIBS $LIBS" |
| 9984 |
cat >conftest.$ac_ext <<_ACEOF |
| 9985 |
/* confdefs.h. */ |
| 9986 |
_ACEOF |
| 9987 |
cat confdefs.h >>conftest.$ac_ext |
| 9988 |
cat >>conftest.$ac_ext <<_ACEOF |
| 9989 |
/* end confdefs.h. */ |
| 9990 |
|
| 9991 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9992 |
#ifdef __cplusplus |
| 9993 |
extern "C" |
| 9994 |
#endif |
| 9995 |
/* We use char because int might match the return type of a gcc2 |
| 9996 |
builtin and then its argument prototype would still apply. */ |
| 9997 |
char f_exit (); |
| 9998 |
int |
| 9999 |
main () |
| 10000 |
{ |
| 10001 |
f_exit (); |
| 10002 |
; |
| 10003 |
return 0; |
| 10004 |
} |
| 10005 |
_ACEOF |
| 10006 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10007 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10008 |
(eval $ac_link) 2>conftest.er1 |
| 10009 |
ac_status=$? |
| 10010 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10011 |
rm -f conftest.er1 |
| 10012 |
cat conftest.err >&5 |
| 10013 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10014 |
(exit $ac_status); } && |
| 10015 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10016 |
|| test ! -s conftest.err' |
| 10017 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10018 |
(eval $ac_try) 2>&5 |
| 10019 |
ac_status=$? |
| 10020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10021 |
(exit $ac_status); }; } && |
| 10022 |
{ ac_try='test -s conftest$ac_exeext' |
| 10023 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10024 |
(eval $ac_try) 2>&5 |
| 10025 |
ac_status=$? |
| 10026 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10027 |
(exit $ac_status); }; }; then |
| 10028 |
ac_cv_lib_I77_f_exit=yes |
| 10029 |
else |
| 10030 |
echo "$as_me: failed program was:" >&5 |
| 10031 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10032 |
|
| 10033 |
ac_cv_lib_I77_f_exit=no |
| 10034 |
fi |
| 10035 |
rm -f conftest.err conftest.$ac_objext \ |
| 10036 |
conftest$ac_exeext conftest.$ac_ext |
| 10037 |
LIBS=$ac_check_lib_save_LIBS |
| 10038 |
fi |
| 10039 |
echo "$as_me:$LINENO: result: $ac_cv_lib_I77_f_exit" >&5 |
| 10040 |
echo "${ECHO_T}$ac_cv_lib_I77_f_exit" >&6 |
| 10041 |
if test $ac_cv_lib_I77_f_exit = yes; then |
| 10042 |
F77LIBS="$F77LIBS -lI77" |
| 10043 |
fi |
| 10044 |
|
| 10045 |
echo "$as_me:$LINENO: checking for mkidxname in -lisam" >&5 |
| 10046 |
echo $ECHO_N "checking for mkidxname in -lisam... $ECHO_C" >&6 |
| 10047 |
if test "${ac_cv_lib_isam_mkidxname+set}" = set; then |
| 10048 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10049 |
else |
| 10050 |
ac_check_lib_save_LIBS=$LIBS |
| 10051 |
LIBS="-lisam $F77LIBS $LIBS" |
| 10052 |
cat >conftest.$ac_ext <<_ACEOF |
| 10053 |
/* confdefs.h. */ |
| 10054 |
_ACEOF |
| 10055 |
cat confdefs.h >>conftest.$ac_ext |
| 10056 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10057 |
/* end confdefs.h. */ |
| 10058 |
|
| 10059 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10060 |
#ifdef __cplusplus |
| 10061 |
extern "C" |
| 10062 |
#endif |
| 10063 |
/* We use char because int might match the return type of a gcc2 |
| 10064 |
builtin and then its argument prototype would still apply. */ |
| 10065 |
char mkidxname (); |
| 10066 |
int |
| 10067 |
main () |
| 10068 |
{ |
| 10069 |
mkidxname (); |
| 10070 |
; |
| 10071 |
return 0; |
| 10072 |
} |
| 10073 |
_ACEOF |
| 10074 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10075 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10076 |
(eval $ac_link) 2>conftest.er1 |
| 10077 |
ac_status=$? |
| 10078 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10079 |
rm -f conftest.er1 |
| 10080 |
cat conftest.err >&5 |
| 10081 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 |
(exit $ac_status); } && |
| 10083 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10084 |
|| test ! -s conftest.err' |
| 10085 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10086 |
(eval $ac_try) 2>&5 |
| 10087 |
ac_status=$? |
| 10088 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 |
(exit $ac_status); }; } && |
| 10090 |
{ ac_try='test -s conftest$ac_exeext' |
| 10091 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10092 |
(eval $ac_try) 2>&5 |
| 10093 |
ac_status=$? |
| 10094 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10095 |
(exit $ac_status); }; }; then |
| 10096 |
ac_cv_lib_isam_mkidxname=yes |
| 10097 |
else |
| 10098 |
echo "$as_me: failed program was:" >&5 |
| 10099 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10100 |
|
| 10101 |
ac_cv_lib_isam_mkidxname=no |
| 10102 |
fi |
| 10103 |
rm -f conftest.err conftest.$ac_objext \ |
| 10104 |
conftest$ac_exeext conftest.$ac_ext |
| 10105 |
LIBS=$ac_check_lib_save_LIBS |
| 10106 |
fi |
| 10107 |
echo "$as_me:$LINENO: result: $ac_cv_lib_isam_mkidxname" >&5 |
| 10108 |
echo "${ECHO_T}$ac_cv_lib_isam_mkidxname" >&6 |
| 10109 |
if test $ac_cv_lib_isam_mkidxname = yes; then |
| 10110 |
F77LIBS="$F77LIBS -lisam" |
| 10111 |
fi |
| 10112 |
|
| 10113 |
;; |
| 10114 |
*) |
| 10115 |
echo "$as_me:$LINENO: checking for printf in -lF77" >&5 |
| 10116 |
echo $ECHO_N "checking for printf in -lF77... $ECHO_C" >&6 |
| 10117 |
if test "${ac_cv_lib_F77_printf+set}" = set; then |
| 10118 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10119 |
else |
| 10120 |
ac_check_lib_save_LIBS=$LIBS |
| 10121 |
LIBS="-lF77 $F77LIBS $LIBS" |
| 10122 |
cat >conftest.$ac_ext <<_ACEOF |
| 10123 |
/* confdefs.h. */ |
| 10124 |
_ACEOF |
| 10125 |
cat confdefs.h >>conftest.$ac_ext |
| 10126 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10127 |
/* end confdefs.h. */ |
| 10128 |
|
| 10129 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10130 |
#ifdef __cplusplus |
| 10131 |
extern "C" |
| 10132 |
#endif |
| 10133 |
/* We use char because int might match the return type of a gcc2 |
| 10134 |
builtin and then its argument prototype would still apply. */ |
| 10135 |
char printf (); |
| 10136 |
int |
| 10137 |
main () |
| 10138 |
{ |
| 10139 |
printf (); |
| 10140 |
; |
| 10141 |
return 0; |
| 10142 |
} |
| 10143 |
_ACEOF |
| 10144 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10145 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10146 |
(eval $ac_link) 2>conftest.er1 |
| 10147 |
ac_status=$? |
| 10148 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10149 |
rm -f conftest.er1 |
| 10150 |
cat conftest.err >&5 |
| 10151 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10152 |
(exit $ac_status); } && |
| 10153 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10154 |
|| test ! -s conftest.err' |
| 10155 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10156 |
(eval $ac_try) 2>&5 |
| 10157 |
ac_status=$? |
| 10158 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10159 |
(exit $ac_status); }; } && |
| 10160 |
{ ac_try='test -s conftest$ac_exeext' |
| 10161 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10162 |
(eval $ac_try) 2>&5 |
| 10163 |
ac_status=$? |
| 10164 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10165 |
(exit $ac_status); }; }; then |
| 10166 |
ac_cv_lib_F77_printf=yes |
| 10167 |
else |
| 10168 |
echo "$as_me: failed program was:" >&5 |
| 10169 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10170 |
|
| 10171 |
ac_cv_lib_F77_printf=no |
| 10172 |
fi |
| 10173 |
rm -f conftest.err conftest.$ac_objext \ |
| 10174 |
conftest$ac_exeext conftest.$ac_ext |
| 10175 |
LIBS=$ac_check_lib_save_LIBS |
| 10176 |
fi |
| 10177 |
echo "$as_me:$LINENO: result: $ac_cv_lib_F77_printf" >&5 |
| 10178 |
echo "${ECHO_T}$ac_cv_lib_F77_printf" >&6 |
| 10179 |
if test $ac_cv_lib_F77_printf = yes; then |
| 10180 |
F77LIBS="$F77LIBS -lF77" |
| 10181 |
fi |
| 10182 |
|
| 10183 |
echo "$as_me:$LINENO: checking for printf in -lM77" >&5 |
| 10184 |
echo $ECHO_N "checking for printf in -lM77... $ECHO_C" >&6 |
| 10185 |
if test "${ac_cv_lib_M77_printf+set}" = set; then |
| 10186 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10187 |
else |
| 10188 |
ac_check_lib_save_LIBS=$LIBS |
| 10189 |
LIBS="-lM77 $F77LIBS $LIBS" |
| 10190 |
cat >conftest.$ac_ext <<_ACEOF |
| 10191 |
/* confdefs.h. */ |
| 10192 |
_ACEOF |
| 10193 |
cat confdefs.h >>conftest.$ac_ext |
| 10194 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10195 |
/* end confdefs.h. */ |
| 10196 |
|
| 10197 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10198 |
#ifdef __cplusplus |
| 10199 |
extern "C" |
| 10200 |
#endif |
| 10201 |
/* We use char because int might match the return type of a gcc2 |
| 10202 |
builtin and then its argument prototype would still apply. */ |
| 10203 |
char printf (); |
| 10204 |
int |
| 10205 |
main () |
| 10206 |
{ |
| 10207 |
printf (); |
| 10208 |
; |
| 10209 |
return 0; |
| 10210 |
} |
| 10211 |
_ACEOF |
| 10212 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10213 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10214 |
(eval $ac_link) 2>conftest.er1 |
| 10215 |
ac_status=$? |
| 10216 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10217 |
rm -f conftest.er1 |
| 10218 |
cat conftest.err >&5 |
| 10219 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10220 |
(exit $ac_status); } && |
| 10221 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10222 |
|| test ! -s conftest.err' |
| 10223 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10224 |
(eval $ac_try) 2>&5 |
| 10225 |
ac_status=$? |
| 10226 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10227 |
(exit $ac_status); }; } && |
| 10228 |
{ ac_try='test -s conftest$ac_exeext' |
| 10229 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10230 |
(eval $ac_try) 2>&5 |
| 10231 |
ac_status=$? |
| 10232 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10233 |
(exit $ac_status); }; }; then |
| 10234 |
ac_cv_lib_M77_printf=yes |
| 10235 |
else |
| 10236 |
echo "$as_me: failed program was:" >&5 |
| 10237 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10238 |
|
| 10239 |
ac_cv_lib_M77_printf=no |
| 10240 |
fi |
| 10241 |
rm -f conftest.err conftest.$ac_objext \ |
| 10242 |
conftest$ac_exeext conftest.$ac_ext |
| 10243 |
LIBS=$ac_check_lib_save_LIBS |
| 10244 |
fi |
| 10245 |
echo "$as_me:$LINENO: result: $ac_cv_lib_M77_printf" >&5 |
| 10246 |
echo "${ECHO_T}$ac_cv_lib_M77_printf" >&6 |
| 10247 |
if test $ac_cv_lib_M77_printf = yes; then |
| 10248 |
F77LIBS="$F77LIBS -lM77" |
| 10249 |
fi |
| 10250 |
|
| 10251 |
echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5 |
| 10252 |
echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6 |
| 10253 |
if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then |
| 10254 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10255 |
else |
| 10256 |
ac_check_lib_save_LIBS=$LIBS |
| 10257 |
LIBS="-lf2c $F77LIBS $LIBS" |
| 10258 |
cat >conftest.$ac_ext <<_ACEOF |
| 10259 |
/* confdefs.h. */ |
| 10260 |
_ACEOF |
| 10261 |
cat confdefs.h >>conftest.$ac_ext |
| 10262 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10263 |
/* end confdefs.h. */ |
| 10264 |
|
| 10265 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10266 |
#ifdef __cplusplus |
| 10267 |
extern "C" |
| 10268 |
#endif |
| 10269 |
/* We use char because int might match the return type of a gcc2 |
| 10270 |
builtin and then its argument prototype would still apply. */ |
| 10271 |
char pow_dd (); |
| 10272 |
int |
| 10273 |
main () |
| 10274 |
{ |
| 10275 |
pow_dd (); |
| 10276 |
; |
| 10277 |
return 0; |
| 10278 |
} |
| 10279 |
_ACEOF |
| 10280 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10281 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10282 |
(eval $ac_link) 2>conftest.er1 |
| 10283 |
ac_status=$? |
| 10284 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10285 |
rm -f conftest.er1 |
| 10286 |
cat conftest.err >&5 |
| 10287 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10288 |
(exit $ac_status); } && |
| 10289 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10290 |
|| test ! -s conftest.err' |
| 10291 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10292 |
(eval $ac_try) 2>&5 |
| 10293 |
ac_status=$? |
| 10294 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10295 |
(exit $ac_status); }; } && |
| 10296 |
{ ac_try='test -s conftest$ac_exeext' |
| 10297 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10298 |
(eval $ac_try) 2>&5 |
| 10299 |
ac_status=$? |
| 10300 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10301 |
(exit $ac_status); }; }; then |
| 10302 |
ac_cv_lib_f2c_pow_dd=yes |
| 10303 |
else |
| 10304 |
echo "$as_me: failed program was:" >&5 |
| 10305 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10306 |
|
| 10307 |
ac_cv_lib_f2c_pow_dd=no |
| 10308 |
fi |
| 10309 |
rm -f conftest.err conftest.$ac_objext \ |
| 10310 |
conftest$ac_exeext conftest.$ac_ext |
| 10311 |
LIBS=$ac_check_lib_save_LIBS |
| 10312 |
fi |
| 10313 |
echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5 |
| 10314 |
echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6 |
| 10315 |
if test $ac_cv_lib_f2c_pow_dd = yes; then |
| 10316 |
F77LIBS="$F77LIBS -lf2c" |
| 10317 |
fi |
| 10318 |
|
| 10319 |
echo "$as_me:$LINENO: checking for printf in -lf77" >&5 |
| 10320 |
echo $ECHO_N "checking for printf in -lf77... $ECHO_C" >&6 |
| 10321 |
if test "${ac_cv_lib_f77_printf+set}" = set; then |
| 10322 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10323 |
else |
| 10324 |
ac_check_lib_save_LIBS=$LIBS |
| 10325 |
LIBS="-lf77 $F77LIBS $LIBS" |
| 10326 |
cat >conftest.$ac_ext <<_ACEOF |
| 10327 |
/* confdefs.h. */ |
| 10328 |
_ACEOF |
| 10329 |
cat confdefs.h >>conftest.$ac_ext |
| 10330 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10331 |
/* end confdefs.h. */ |
| 10332 |
|
| 10333 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10334 |
#ifdef __cplusplus |
| 10335 |
extern "C" |
| 10336 |
#endif |
| 10337 |
/* We use char because int might match the return type of a gcc2 |
| 10338 |
builtin and then its argument prototype would still apply. */ |
| 10339 |
char printf (); |
| 10340 |
int |
| 10341 |
main () |
| 10342 |
{ |
| 10343 |
printf (); |
| 10344 |
; |
| 10345 |
return 0; |
| 10346 |
} |
| 10347 |
_ACEOF |
| 10348 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10349 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10350 |
(eval $ac_link) 2>conftest.er1 |
| 10351 |
ac_status=$? |
| 10352 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10353 |
rm -f conftest.er1 |
| 10354 |
cat conftest.err >&5 |
| 10355 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10356 |
(exit $ac_status); } && |
| 10357 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10358 |
|| test ! -s conftest.err' |
| 10359 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10360 |
(eval $ac_try) 2>&5 |
| 10361 |
ac_status=$? |
| 10362 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10363 |
(exit $ac_status); }; } && |
| 10364 |
{ ac_try='test -s conftest$ac_exeext' |
| 10365 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10366 |
(eval $ac_try) 2>&5 |
| 10367 |
ac_status=$? |
| 10368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10369 |
(exit $ac_status); }; }; then |
| 10370 |
ac_cv_lib_f77_printf=yes |
| 10371 |
else |
| 10372 |
echo "$as_me: failed program was:" >&5 |
| 10373 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10374 |
|
| 10375 |
ac_cv_lib_f77_printf=no |
| 10376 |
fi |
| 10377 |
rm -f conftest.err conftest.$ac_objext \ |
| 10378 |
conftest$ac_exeext conftest.$ac_ext |
| 10379 |
LIBS=$ac_check_lib_save_LIBS |
| 10380 |
fi |
| 10381 |
echo "$as_me:$LINENO: result: $ac_cv_lib_f77_printf" >&5 |
| 10382 |
echo "${ECHO_T}$ac_cv_lib_f77_printf" >&6 |
| 10383 |
if test $ac_cv_lib_f77_printf = yes; then |
| 10384 |
F77LIBS="$F77LIBS -lf77" |
| 10385 |
fi |
| 10386 |
|
| 10387 |
echo "$as_me:$LINENO: checking for printf in -lfor" >&5 |
| 10388 |
echo $ECHO_N "checking for printf in -lfor... $ECHO_C" >&6 |
| 10389 |
if test "${ac_cv_lib_for_printf+set}" = set; then |
| 10390 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10391 |
else |
| 10392 |
ac_check_lib_save_LIBS=$LIBS |
| 10393 |
LIBS="-lfor $F77LIBS $LIBS" |
| 10394 |
cat >conftest.$ac_ext <<_ACEOF |
| 10395 |
/* confdefs.h. */ |
| 10396 |
_ACEOF |
| 10397 |
cat confdefs.h >>conftest.$ac_ext |
| 10398 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10399 |
/* end confdefs.h. */ |
| 10400 |
|
| 10401 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10402 |
#ifdef __cplusplus |
| 10403 |
extern "C" |
| 10404 |
#endif |
| 10405 |
/* We use char because int might match the return type of a gcc2 |
| 10406 |
builtin and then its argument prototype would still apply. */ |
| 10407 |
char printf (); |
| 10408 |
int |
| 10409 |
main () |
| 10410 |
{ |
| 10411 |
printf (); |
| 10412 |
; |
| 10413 |
return 0; |
| 10414 |
} |
| 10415 |
_ACEOF |
| 10416 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10417 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10418 |
(eval $ac_link) 2>conftest.er1 |
| 10419 |
ac_status=$? |
| 10420 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10421 |
rm -f conftest.er1 |
| 10422 |
cat conftest.err >&5 |
| 10423 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 |
(exit $ac_status); } && |
| 10425 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10426 |
|| test ! -s conftest.err' |
| 10427 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10428 |
(eval $ac_try) 2>&5 |
| 10429 |
ac_status=$? |
| 10430 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10431 |
(exit $ac_status); }; } && |
| 10432 |
{ ac_try='test -s conftest$ac_exeext' |
| 10433 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10434 |
(eval $ac_try) 2>&5 |
| 10435 |
ac_status=$? |
| 10436 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10437 |
(exit $ac_status); }; }; then |
| 10438 |
ac_cv_lib_for_printf=yes |
| 10439 |
else |
| 10440 |
echo "$as_me: failed program was:" >&5 |
| 10441 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10442 |
|
| 10443 |
ac_cv_lib_for_printf=no |
| 10444 |
fi |
| 10445 |
rm -f conftest.err conftest.$ac_objext \ |
| 10446 |
conftest$ac_exeext conftest.$ac_ext |
| 10447 |
LIBS=$ac_check_lib_save_LIBS |
| 10448 |
fi |
| 10449 |
echo "$as_me:$LINENO: result: $ac_cv_lib_for_printf" >&5 |
| 10450 |
echo "${ECHO_T}$ac_cv_lib_for_printf" >&6 |
| 10451 |
if test $ac_cv_lib_for_printf = yes; then |
| 10452 |
F77LIBS="$F77LIBS -lfor" |
| 10453 |
fi |
| 10454 |
|
| 10455 |
echo "$as_me:$LINENO: checking for printf in -lots" >&5 |
| 10456 |
echo $ECHO_N "checking for printf in -lots... $ECHO_C" >&6 |
| 10457 |
if test "${ac_cv_lib_ots_printf+set}" = set; then |
| 10458 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10459 |
else |
| 10460 |
ac_check_lib_save_LIBS=$LIBS |
| 10461 |
LIBS="-lots $F77LIBS $LIBS" |
| 10462 |
cat >conftest.$ac_ext <<_ACEOF |
| 10463 |
/* confdefs.h. */ |
| 10464 |
_ACEOF |
| 10465 |
cat confdefs.h >>conftest.$ac_ext |
| 10466 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10467 |
/* end confdefs.h. */ |
| 10468 |
|
| 10469 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10470 |
#ifdef __cplusplus |
| 10471 |
extern "C" |
| 10472 |
#endif |
| 10473 |
/* We use char because int might match the return type of a gcc2 |
| 10474 |
builtin and then its argument prototype would still apply. */ |
| 10475 |
char printf (); |
| 10476 |
int |
| 10477 |
main () |
| 10478 |
{ |
| 10479 |
printf (); |
| 10480 |
; |
| 10481 |
return 0; |
| 10482 |
} |
| 10483 |
_ACEOF |
| 10484 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10485 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10486 |
(eval $ac_link) 2>conftest.er1 |
| 10487 |
ac_status=$? |
| 10488 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10489 |
rm -f conftest.er1 |
| 10490 |
cat conftest.err >&5 |
| 10491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 |
(exit $ac_status); } && |
| 10493 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10494 |
|| test ! -s conftest.err' |
| 10495 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10496 |
(eval $ac_try) 2>&5 |
| 10497 |
ac_status=$? |
| 10498 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10499 |
(exit $ac_status); }; } && |
| 10500 |
{ ac_try='test -s conftest$ac_exeext' |
| 10501 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10502 |
(eval $ac_try) 2>&5 |
| 10503 |
ac_status=$? |
| 10504 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 |
(exit $ac_status); }; }; then |
| 10506 |
ac_cv_lib_ots_printf=yes |
| 10507 |
else |
| 10508 |
echo "$as_me: failed program was:" >&5 |
| 10509 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10510 |
|
| 10511 |
ac_cv_lib_ots_printf=no |
| 10512 |
fi |
| 10513 |
rm -f conftest.err conftest.$ac_objext \ |
| 10514 |
conftest$ac_exeext conftest.$ac_ext |
| 10515 |
LIBS=$ac_check_lib_save_LIBS |
| 10516 |
fi |
| 10517 |
echo "$as_me:$LINENO: result: $ac_cv_lib_ots_printf" >&5 |
| 10518 |
echo "${ECHO_T}$ac_cv_lib_ots_printf" >&6 |
| 10519 |
if test $ac_cv_lib_ots_printf = yes; then |
| 10520 |
F77LIBS="$F77LIBS -lots" |
| 10521 |
fi |
| 10522 |
|
| 10523 |
echo "$as_me:$LINENO: checking for printf in -lUfor" >&5 |
| 10524 |
echo $ECHO_N "checking for printf in -lUfor... $ECHO_C" >&6 |
| 10525 |
if test "${ac_cv_lib_Ufor_printf+set}" = set; then |
| 10526 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10527 |
else |
| 10528 |
ac_check_lib_save_LIBS=$LIBS |
| 10529 |
LIBS="-lUfor $F77LIBS $LIBS" |
| 10530 |
cat >conftest.$ac_ext <<_ACEOF |
| 10531 |
/* confdefs.h. */ |
| 10532 |
_ACEOF |
| 10533 |
cat confdefs.h >>conftest.$ac_ext |
| 10534 |
cat >>conftest.$ac_ext <<_ACEOF |
| 10535 |
/* end confdefs.h. */ |
| 10536 |
|
| 10537 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10538 |
#ifdef __cplusplus |
| 10539 |
extern "C" |
| 10540 |
#endif |
| 10541 |
/* We use char because int might match the return type of a gcc2 |
| 10542 |
builtin and then its argument prototype would still apply. */ |
| 10543 |
char printf (); |
| 10544 |
int |
| 10545 |
main () |
| 10546 |
{ |
| 10547 |
printf (); |
| 10548 |
; |
| 10549 |
return 0; |
| 10550 |
} |
| 10551 |
_ACEOF |
| 10552 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10553 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10554 |
(eval $ac_link) 2>conftest.er1 |
| 10555 |
ac_status=$? |
| 10556 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10557 |
rm -f conftest.er1 |
| 10558 |
cat conftest.err >&5 |
| 10559 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10560 |
(exit $ac_status); } && |
| 10561 |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10562 |
|| test ! -s conftest.err' |
| 10563 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10564 |
(eval $ac_try) 2>&5 |
| 10565 |
ac_status=$? |
| 10566 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 |
(exit $ac_status); }; } && |
| 10568 |
{ ac_try='test -s conftest$ac_exeext' |
| 10569 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10570 |
(eval $ac_try) 2>&5 |
| 10571 |
ac_status=$? |
| 10572 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10573 |
(exit $ac_status); }; }; then |
| 10574 |
ac_cv_lib_Ufor_printf=yes |
| 10575 |
else |
| 10576 |
echo "$as_me: failed program was:" >&5 |
| 10577 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10578 |
|
| 10579 |
ac_cv_lib_Ufor_printf=no |
| 10580 |
fi |
| 10581 |
rm -f conftest.err conftest.$ac_objext \ |
| 10582 |
conftest$ac_exeext conftest.$ac_ext |
| 10583 |
LIBS=$ac_check_lib_save_LIBS |
| 10584 |
fi |
| 10585 |
echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_printf" >&5 |
| 10586 |
echo "${ECHO_T}$ac_cv_lib_Ufor_printf" >&6 |
| 10587 |
if test $ac_cv_lib_Ufor_printf = yes; then |
| 10588 |
F77LIBS="$F77LIBS -lUfor" |
| 10589 |
fi |
| 10590 |
|
| 10591 |
;; |
| 10592 |
esac |
| 10593 |
fi |
| 10594 |
|
| 10595 |
# asc_subdirs are the extra fortran subdirectories we have to visit |
| 10596 |
# to build the fortran libraries. Initialize it to empty here. |
| 10597 |
asc_subdirs='' |
| 10598 |
|
| 10599 |
# Initialize the blas variables |
| 10600 |
make_blaslib='' |
| 10601 |
|
| 10602 |
|
| 10603 |
# Check whether --with-blas or --without-blas was given. |
| 10604 |
if test "${with_blas+set}" = set; then |
| 10605 |
withval="$with_blas" |
| 10606 |
|
| 10607 |
else |
| 10608 |
with_blas=yes |
| 10609 |
fi; |
| 10610 |
case "$with_fortran$with_blas" in |
| 10611 |
no*) |
| 10612 |
# Fortran is disabled; ignore this option (if present) |
| 10613 |
BLASLIB= |
| 10614 |
;; |
| 10615 |
*no) |
| 10616 |
# It is an error if the user chooses to build without |
| 10617 |
# the BLAS library if Fortran is enabled. |
| 10618 |
{ { echo "$as_me:$LINENO: error: Bad option '--without-blas' |
| 10619 |
To support Fortran calls, ASCEND must be compiled with a blas library" >&5 |
| 10620 |
echo "$as_me: error: Bad option '--without-blas' |
| 10621 |
To support Fortran calls, ASCEND must be compiled with a blas library" >&2;} |
| 10622 |
{ (exit 1); exit 1; }; } |
| 10623 |
;; |
| 10624 |
*build) |
| 10625 |
# Fortran is enabled and the user specified --with-blas=build |
| 10626 |
# For a search for BLAS source code and tell the Makefile |
| 10627 |
# to build it; useful for testing configure. |
| 10628 |
#AWW20041206: blas_src_file="$srcdir/blas/dcopy.f" |
| 10629 |
blas_src_file="$srcdir/../../blas/dcopy.f" |
| 10630 |
echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5 |
| 10631 |
echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6 |
| 10632 |
if test -f $blas_src_file ; then |
| 10633 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10634 |
echo "${ECHO_T}yes" >&6 |
| 10635 |
#AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
| 10636 |
BLASLIB="$ascpwd/archive/libascblas.a" |
| 10637 |
make_blaslib='make-blaslib' |
| 10638 |
#AWW20041206: blaslib_makefile="blas/Makefile" |
| 10639 |
blaslib_makefile="blas/Makefile:../../blas/Makefile.in" |
| 10640 |
#AWW20041206: asc_subdirs="$asc_subdirs ../blas" |
| 10641 |
asc_subdirs="$asc_subdirs blas" |
| 10642 |
else |
| 10643 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10644 |
echo "${ECHO_T}no" >&6 |
| 10645 |
{ { echo "$as_me:$LINENO: error: User specified '--with-blas=build' but |
| 10646 |
configure cannot find the blas source file $blas_src_file" >&5 |
| 10647 |
echo "$as_me: error: User specified '--with-blas=build' but |
| 10648 |
configure cannot find the blas source file $blas_src_file" >&2;} |
| 10649 |
{ (exit 1); exit 1; }; } |
| 10650 |
fi |
| 10651 |
;; |
| 10652 |
*yes) |
| 10653 |
# Fortran in enabled and the user didn't give the --with-blas |
| 10654 |
# option or didn't give the library's location. |
| 10655 |
# Search for a compiled libblas.a or libascblas.a; if that |
| 10656 |
# fails, look for BLAS source code; if that also fails, |
| 10657 |
# disable all Fortran and print a warning. |
| 10658 |
for ac_prog in libblas.a libascblas.a |
| 10659 |
do |
| 10660 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10661 |
set dummy $ac_prog; ac_word=$2 |
| 10662 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10663 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10664 |
if test "${ac_cv_path_BLASLIB+set}" = set; then |
| 10665 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10666 |
else |
| 10667 |
case $BLASLIB in |
| 10668 |
[\\/]* | ?:[\\/]*) |
| 10669 |
ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path. |
| 10670 |
;; |
| 10671 |
*) |
| 10672 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10673 |
for as_dir in $asc_f77_support_dirs |
| 10674 |
do |
| 10675 |
IFS=$as_save_IFS |
| 10676 |
test -z "$as_dir" && as_dir=. |
| 10677 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10678 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10679 |
ac_cv_path_BLASLIB="$as_dir/$ac_word$ac_exec_ext" |
| 10680 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10681 |
break 2 |
| 10682 |
fi |
| 10683 |
done |
| 10684 |
done |
| 10685 |
|
| 10686 |
;; |
| 10687 |
esac |
| 10688 |
fi |
| 10689 |
BLASLIB=$ac_cv_path_BLASLIB |
| 10690 |
|
| 10691 |
if test -n "$BLASLIB"; then |
| 10692 |
echo "$as_me:$LINENO: result: $BLASLIB" >&5 |
| 10693 |
echo "${ECHO_T}$BLASLIB" >&6 |
| 10694 |
else |
| 10695 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10696 |
echo "${ECHO_T}no" >&6 |
| 10697 |
fi |
| 10698 |
|
| 10699 |
test -n "$BLASLIB" && break |
| 10700 |
done |
| 10701 |
|
| 10702 |
blas_src_file="$srcdir/../../blas/dcopy.f" |
| 10703 |
if test -z "$BLASLIB" -a -n "$blas_src_file" ; then |
| 10704 |
echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5 |
| 10705 |
echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6 |
| 10706 |
if test -f $blas_src_file ; then |
| 10707 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10708 |
echo "${ECHO_T}yes" >&6 |
| 10709 |
#AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
| 10710 |
BLASLIB="$ascpwd/archive/libascblas.a" |
| 10711 |
make_blaslib='make-blaslib' |
| 10712 |
#AWW20041206: blaslib_makefile="blas/Makefile" |
| 10713 |
blaslib_makefile="blas/Makefile:../../blas/Makefile.in" |
| 10714 |
#AWW20041206: asc_subdirs="$asc_subdirs ../blas" |
| 10715 |
asc_subdirs="$asc_subdirs blas" |
| 10716 |
else |
| 10717 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10718 |
echo "${ECHO_T}no" >&6 |
| 10719 |
fi |
| 10720 |
fi |
| 10721 |
if test -z "$BLASLIB" ; then |
| 10722 |
with_fortran=no |
| 10723 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libblas.a, libascblas.a, nor blas |
| 10724 |
source code. Building ASCEND without integration, MINOS, and CONOPT |
| 10725 |
support. To specify a specific location for the blas library, run |
| 10726 |
configure again with the argument: |
| 10727 |
--with-blas=BLASLIB |
| 10728 |
where BLASLIB is the full path to the blas library file." >&5 |
| 10729 |
echo "$as_me: WARNING: Cannot find libblas.a, libascblas.a, nor blas |
| 10730 |
source code. Building ASCEND without integration, MINOS, and CONOPT |
| 10731 |
support. To specify a specific location for the blas library, run |
| 10732 |
configure again with the argument: |
| 10733 |
--with-blas=BLASLIB |
| 10734 |
where BLASLIB is the full path to the blas library file." >&2;} |
| 10735 |
fi |
| 10736 |
;; |
| 10737 |
*) |
| 10738 |
# The user gave us --with-blas=BLASLIB, use that as the |
| 10739 |
# location of the BLAS library. |
| 10740 |
BLASLIB="$with_blas" |
| 10741 |
;; |
| 10742 |
esac |
| 10743 |
|
| 10744 |
|
| 10745 |
# Initialize the linpack variables |
| 10746 |
make_lpaklib='' |
| 10747 |
|
| 10748 |
|
| 10749 |
# Check whether --with-linpack or --without-linpack was given. |
| 10750 |
if test "${with_linpack+set}" = set; then |
| 10751 |
withval="$with_linpack" |
| 10752 |
|
| 10753 |
else |
| 10754 |
with_linpack=yes |
| 10755 |
fi; |
| 10756 |
case "$with_fortran$with_linpack" in |
| 10757 |
no*) |
| 10758 |
# Fortran is disabled; ignore this option (if present) |
| 10759 |
LPAKLIB= |
| 10760 |
;; |
| 10761 |
*no) |
| 10762 |
# It is an error if the user chooses to build without |
| 10763 |
# the LINPACK library if Fortran is enabled. |
| 10764 |
{ { echo "$as_me:$LINENO: error: Bad option '--without-linpack' |
| 10765 |
To support Fortran calls, ASCEND must be compiled with a |
| 10766 |
linpack library." >&5 |
| 10767 |
echo "$as_me: error: Bad option '--without-linpack' |
| 10768 |
To support Fortran calls, ASCEND must be compiled with a |
| 10769 |
linpack library." >&2;} |
| 10770 |
{ (exit 1); exit 1; }; } |
| 10771 |
;; |
| 10772 |
*build) |
| 10773 |
# Fortran is enabled and the user specified --with-linpack=build |
| 10774 |
# For a search for LINPACK source code and tell the Makefile |
| 10775 |
# to build it; useful for testing configure. |
| 10776 |
lpak_src_file="$srcdir/../../linpack/d1mach.f" |
| 10777 |
echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5 |
| 10778 |
echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6 |
| 10779 |
if test -f $lpak_src_file ; then |
| 10780 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10781 |
echo "${ECHO_T}yes" >&6 |
| 10782 |
#AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
| 10783 |
LPAKLIB="$ascpwd/archive/libasclpak.a" |
| 10784 |
make_lpaklib='make-lpaklib' |
| 10785 |
#AWW20041206: lpaklib_makefile="linpack/Makefile" |
| 10786 |
lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in" |
| 10787 |
#AWW20041206: asc_subdirs="$asc_subdirs ../linpack" |
| 10788 |
asc_subdirs="$asc_subdirs linpack" |
| 10789 |
else |
| 10790 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10791 |
echo "${ECHO_T}no" >&6 |
| 10792 |
{ { echo "$as_me:$LINENO: error: User specified '--with-linpack=build' but |
| 10793 |
configure cannot find the linpack source file $lpak_src_file" >&5 |
| 10794 |
echo "$as_me: error: User specified '--with-linpack=build' but |
| 10795 |
configure cannot find the linpack source file $lpak_src_file" >&2;} |
| 10796 |
{ (exit 1); exit 1; }; } |
| 10797 |
fi |
| 10798 |
;; |
| 10799 |
*yes) |
| 10800 |
# Fortran in enabled and the user didn't give the --with-linpack |
| 10801 |
# option or didn't give the library's location. |
| 10802 |
# Search for a compiled liblpak.a or libasclpak.a; if that |
| 10803 |
# fails, look for LINPACK source code; if that also fails, |
| 10804 |
# disable all Fortran and print a warning. |
| 10805 |
for ac_prog in liblpak.a libasclpak.a |
| 10806 |
do |
| 10807 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10808 |
set dummy $ac_prog; ac_word=$2 |
| 10809 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10810 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10811 |
if test "${ac_cv_path_LPAKLIB+set}" = set; then |
| 10812 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10813 |
else |
| 10814 |
case $LPAKLIB in |
| 10815 |
[\\/]* | ?:[\\/]*) |
| 10816 |
ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a path. |
| 10817 |
;; |
| 10818 |
*) |
| 10819 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10820 |
for as_dir in $asc_f77_support_dirs |
| 10821 |
do |
| 10822 |
IFS=$as_save_IFS |
| 10823 |
test -z "$as_dir" && as_dir=. |
| 10824 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10825 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10826 |
ac_cv_path_LPAKLIB="$as_dir/$ac_word$ac_exec_ext" |
| 10827 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10828 |
break 2 |
| 10829 |
fi |
| 10830 |
done |
| 10831 |
done |
| 10832 |
|
| 10833 |
;; |
| 10834 |
esac |
| 10835 |
fi |
| 10836 |
LPAKLIB=$ac_cv_path_LPAKLIB |
| 10837 |
|
| 10838 |
if test -n "$LPAKLIB"; then |
| 10839 |
echo "$as_me:$LINENO: result: $LPAKLIB" >&5 |
| 10840 |
echo "${ECHO_T}$LPAKLIB" >&6 |
| 10841 |
else |
| 10842 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10843 |
echo "${ECHO_T}no" >&6 |
| 10844 |
fi |
| 10845 |
|
| 10846 |
test -n "$LPAKLIB" && break |
| 10847 |
done |
| 10848 |
|
| 10849 |
lpak_src_file="$srcdir/../../linpack/d1mach.f" |
| 10850 |
if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then |
| 10851 |
echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5 |
| 10852 |
echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6 |
| 10853 |
if test -f $lpak_src_file ; then |
| 10854 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10855 |
echo "${ECHO_T}yes" >&6 |
| 10856 |
#AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
| 10857 |
LPAKLIB="$ascpwd/archive/libasclpak.a" |
| 10858 |
make_lpaklib='make-lpaklib' |
| 10859 |
#AWW20041206: lpaklib_makefile="linpack/Makefile" |
| 10860 |
lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in" |
| 10861 |
#AWW20041206: asc_subdirs="$asc_subdirs ../linpack" |
| 10862 |
asc_subdirs="$asc_subdirs linpack" |
| 10863 |
else |
| 10864 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10865 |
echo "${ECHO_T}no" >&6 |
| 10866 |
fi |
| 10867 |
fi |
| 10868 |
if test -z "$LPAKLIB" ; then |
| 10869 |
with_fortran=no |
| 10870 |
{ echo "$as_me:$LINENO: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack |
| 10871 |
source code. Building ASCEND without integration, MINOS, and CONOPT |
| 10872 |
support. To specify a specific location for the linpack library, run |
| 10873 |
configure again with the argument: |
| 10874 |
--with-linpack=LPAKLIB |
| 10875 |
where LPAKLIB is the full path to the linpack library file." >&5 |
| 10876 |
echo "$as_me: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack |
| 10877 |
source code. Building ASCEND without integration, MINOS, and CONOPT |
| 10878 |
support. To specify a specific location for the linpack library, run |
| 10879 |
configure again with the argument: |
| 10880 |
--with-linpack=LPAKLIB |
| 10881 |
where LPAKLIB is the full path to the linpack library file." >&2;} |
| 10882 |
fi |
| 10883 |
;; |
| 10884 |
*) |
| 10885 |
# The user gave us --with-linkpack=LINKPACKLIB, use that |
| 10886 |
# as the location of the LINKPACK library. |
| 10887 |
LPAKLIB="$with_linpack" |
| 10888 |
;; |
| 10889 |
esac |
| 10890 |
|
| 10891 |
|
| 10892 |
# Initialize the lsod variables |
| 10893 |
make_lsodlib='' |
| 10894 |
HAVE_LSOD='' |
| 10895 |
|
| 10896 |
|
| 10897 |
# Check whether --with-lsod or --without-lsod was given. |
| 10898 |
if test "${with_lsod+set}" = set; then |
| 10899 |
withval="$with_lsod" |
| 10900 |
|
| 10901 |
else |
| 10902 |
with_lsod=yes |
| 10903 |
fi; |
| 10904 |
case "$with_fortran$with_lsod" in |
| 10905 |
no*) |
| 10906 |
# Fortran is disabled; ignore this option (if present) |
| 10907 |
LSODLIB= |
| 10908 |
with_lsod=no |
| 10909 |
;; |
| 10910 |
*no) |
| 10911 |
# Fortran is enabled but the user specified --without-lsod |
| 10912 |
LSODLIB= |
| 10913 |
;; |
| 10914 |
*build) |
| 10915 |
# Fortran is enabled and the user specified --with-lsod=build |
| 10916 |
# For a search for LSOD source code and tell the Makefile |
| 10917 |
# to build it; useful for testing configure. |
| 10918 |
lsod_src_file="$srcdir/../../lsod/lsode.f" |
| 10919 |
echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5 |
| 10920 |
echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6 |
| 10921 |
if test -f $lsod_src_file ; then |
| 10922 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10923 |
echo "${ECHO_T}yes" >&6 |
| 10924 |
#AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
| 10925 |
LSODLIB="$ascpwd/archive/libinteg.a" |
| 10926 |
make_lsodlib='make-lsodlib' |
| 10927 |
#AWW20041206: lsodlib_makefile="lsod/Makefile" |
| 10928 |
lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in" |
| 10929 |
#AWW20041206: asc_subdirs="$asc_subdirs ../lsod" |
| 10930 |
asc_subdirs="$asc_subdirs lsod" |
| 10931 |
HAVE_LSOD='-DSTATIC_LSOD' |
| 10932 |
else |
| 10933 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10934 |
echo "${ECHO_T}no" >&6 |
| 10935 |
{ { echo "$as_me:$LINENO: error: User specified '--with-lsod=build' but |
| 10936 |
configure cannot find the lsod source file $lsod_src_file" >&5 |
| 10937 |
echo "$as_me: error: User specified '--with-lsod=build' but |
| 10938 |
configure cannot find the lsod source file $lsod_src_file" >&2;} |
| 10939 |
{ (exit 1); exit 1; }; } |
| 10940 |
fi |
| 10941 |
;; |
| 10942 |
*yes) |
| 10943 |
# Fortran in enabled and the user didn't give the --with-lsod |
| 10944 |
# option or didn't give the library's location. |
| 10945 |
# Search for a compiled libinteg.a; if that fails, look |
| 10946 |
# for LSOD source code; if that also fails, disable LSOD |
| 10947 |
# and print a warning. |
| 10948 |
for ac_prog in libinteg.a libasclsod.a |
| 10949 |
do |
| 10950 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10951 |
set dummy $ac_prog; ac_word=$2 |
| 10952 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10953 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10954 |
if test "${ac_cv_path_LSODLIB+set}" = set; then |
| 10955 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10956 |
else |
| 10957 |
case $LSODLIB in |
| 10958 |
[\\/]* | ?:[\\/]*) |
| 10959 |
ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a path. |
| 10960 |
;; |
| 10961 |
*) |
| 10962 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10963 |
for as_dir in $asc_f77_support_dirs |
| 10964 |
do |
| 10965 |
IFS=$as_save_IFS |
| 10966 |
test -z "$as_dir" && as_dir=. |
| 10967 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10968 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10969 |
ac_cv_path_LSODLIB="$as_dir/$ac_word$ac_exec_ext" |
| 10970 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10971 |
break 2 |
| 10972 |
fi |
| 10973 |
done |
| 10974 |
done |
| 10975 |
|
| 10976 |
;; |
| 10977 |
esac |
| 10978 |
fi |
| 10979 |
LSODLIB=$ac_cv_path_LSODLIB |
| 10980 |
|
| 10981 |
if test -n "$LSODLIB"; then |
| 10982 |
echo "$as_me:$LINENO: result: $LSODLIB" >&5 |
| 10983 |
echo "${ECHO_T}$LSODLIB" >&6 |
| 10984 |
else |
| 10985 |
echo "$as_me:$LINENO: result: no" >&5 |
| 10986 |
echo "${ECHO_T}no" >&6 |
| 10987 |
fi |
| 10988 |
|
| 10989 |
test -n "$LSODLIB" && break |
| 10990 |
done |
| 10991 |
|
| 10992 |
lsod_src_file="$srcdir/../../lsod/lsode.f" |
| 10993 |
if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then |
| 10994 |
echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5 |
| 10995 |
echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6 |
| 10996 |
if test -f $lsod_src_file ; then |
| 10997 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10998 |
echo "${ECHO_T}yes" >&6 |
| 10999 |
#AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
| 11000 |
LSODLIB="$ascpwd/archive/libinteg.a" |
| 11001 |
make_lsodlib='make-lsodlib' |
| 11002 |
#AWW20041206: lsodlib_makefile="lsod/Makefile" |
| 11003 |
lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in" |
| 11004 |
#AWW20041206: asc_subdirs="$asc_subdirs ../lsod" |
| 11005 |
asc_subdirs="$asc_subdirs lsod" |
| 11006 |
else |
| 11007 |
echo "$as_me:$LINENO: result: no" >&5 |
| 11008 |
echo "${ECHO_T}no" >&6 |
| 11009 |
fi |
| 11010 |
fi |
| 11011 |
if test -z "$LSODLIB" ; then |
| 11012 |
with_lsod=no |
| 11013 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libinteg.a nor the lsod |
| 11014 |
source code. Building ASCEND without integration |
| 11015 |
support. To specify a specific location for the lsod library, run |
| 11016 |
configure again with the argument: |
| 11017 |
--with-lsod=LSODLIB |
| 11018 |
where LSODLIB is the full path to the lsod integration library file." >&5 |
| 11019 |
echo "$as_me: WARNING: Cannot find libinteg.a nor the lsod |
| 11020 |
source code. Building ASCEND without integration |
| 11021 |
support. To specify a specific location for the lsod library, run |
| 11022 |
configure again with the argument: |
| 11023 |
--with-lsod=LSODLIB |
| 11024 |
where LSODLIB is the full path to the lsod integration library file." >&2;} |
| 11025 |
else |
| 11026 |
HAVE_LSOD='-DSTATIC_LSOD' |
| 11027 |
fi |
| 11028 |
;; |
| 11029 |
*) |
| 11030 |
# The user gave us --with-lsod=LSODLIB, use that as the |
| 11031 |
# location of the LSOD library and define -DSTATIC_LSOD. |
| 11032 |
LSODLIB="$with_lsod" |
| 11033 |
HAVE_LSOD='-DSTATIC_LSOD' |
| 11034 |
;; |
| 11035 |
esac |
| 11036 |
|
| 11037 |
|
| 11038 |
#-------------------------------------------------------------------- |
| 11039 |
# Other trees which may or may not be present. If present, |
| 11040 |
# generate the Makefiles in the tree unless the user passes in |
| 11041 |
# a --without-<package> argument. |
| 11042 |
# |
| 11043 |
# Valid <package> values are: TK, models, help |
| 11044 |
# |
| 11045 |
# We could have `configure' do this for us via |
| 11046 |
# AC_CONFIG_SUBDIRS, but `configure' scripts in the trees can |
| 11047 |
# only be one directory removed from this configure script. |
| 11048 |
# For example, it would be nice to have `models' under |
| 11049 |
# `ascend4', but `configure' doesn't like `ascend4/models' as |
| 11050 |
# an argument to AC_CONFIG_SUBDIRS. |
| 11051 |
# |
| 11052 |
# To get around this problem, we do things by hand. :-) |
| 11053 |
# |
| 11054 |
# If the user gives a --without-<package> argument, we have |
| 11055 |
# nothing to do for that package. |
| 11056 |
# |
| 11057 |
# Otherwise, |
| 11058 |
# * Set `subdir_file_exists' to a file that should exist in the |
| 11059 |
# subtree---this is how we know that the subtree is really |
| 11060 |
# there. |
| 11061 |
# * Set `subdir_locations' to the list of locations, relative |
| 11062 |
# to this configure script, where the subtree may live. |
| 11063 |
# * Set `subdir_output' to the list of makefiles to generate; |
| 11064 |
# the variable `subdir_root' in this list will be replaced |
| 11065 |
# with the correct value from `subdir_locations'. |
| 11066 |
# |
| 11067 |
# To see which (if any) of the values in `subdir_locations' is |
| 11068 |
# the correct one, we set `subdir_root' to each value in |
| 11069 |
# `subdir_locations' and check for the existence of |
| 11070 |
# $fullpathsrcdir/$subdir_root/$subdir_file_exists, where |
| 11071 |
# $fullpathsrcdir is the full path to the source directory. If |
| 11072 |
# that file exists, we |
| 11073 |
# * Set <package>_dir_root to ../$subdir_root. The "../" is |
| 11074 |
#AWW20041208:# needed since this value is used in the `ascend4' directory |
| 11075 |
# needed since this value is used in the `generic' directory |
| 11076 |
#AWW20041208:# and $subdir_root is relative to the parent of `ascend4'. |
| 11077 |
# and $subdir_root is relative to the parent of `generic'. |
| 11078 |
# * Substitute the value of $subdir_root into `subdir_output' |
| 11079 |
# and set the result to <package>_makefiles: the list of |
| 11080 |
# Makefiles for configure to generate. |
| 11081 |
# * Each package needs to be able to find its way back to |
| 11082 |
# ascend4/ConfigAscend; it needs to go back up the tree |
| 11083 |
# however many levels deep it is---i.e., `foo/bar/baz' should |
| 11084 |
# become `../../..' and this does it: sed 's,[^/][^/]*,..,g' |
| 11085 |
# but we need to quote the [] from m4, so we get this bizarre |
| 11086 |
# thing: sed 's,[[^/][^/]]*,..,g' Set <package>_topbuilddir |
| 11087 |
# to this result. |
| 11088 |
# * Exit the loop. |
| 11089 |
#-------------------------------------------------------------------- |
| 11090 |
|
| 11091 |
# Initialize variables |
| 11092 |
tkdir_root='' |
| 11093 |
tkdir_topbuilddir='' |
| 11094 |
|
| 11095 |
|
| 11096 |
# Check whether --with-tkdir or --without-tkdir was given. |
| 11097 |
if test "${with_tkdir+set}" = set; then |
| 11098 |
withval="$with_tkdir" |
| 11099 |
|
| 11100 |
else |
| 11101 |
with_tkdir=yes |
| 11102 |
fi; |
| 11103 |
if test ! "X$with_tkdir" = "Xno" ; then |
| 11104 |
subdir_file_exists='AscendRC' |
| 11105 |
#AWW20041117: FIXME next line |
| 11106 |
#AWW20041206: subdir_locations='ascend4/TK' |
| 11107 |
subdir_target="TK" |
| 11108 |
subdir_locations='../../tcltk98/TK' |
| 11109 |
subdir_output=' |
| 11110 |
$subdir_target/Makefile:$subdir_root/Makefile.in |
| 11111 |
$subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in |
| 11112 |
$subdir_target/bitmaps/Makefile:$subdir_root/bitmaps/Makefile.in |
| 11113 |
$subdir_target/templates/Makefile:$subdir_root/templates/Makefile.in |
| 11114 |
' |
| 11115 |
for subdir_root in $subdir_locations ; do |
| 11116 |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
| 11117 |
#AWW20041208: tkdir_root="../$subdir_root" |
| 11118 |
tkdir_root=$subdir_target |
| 11119 |
tkdir_makefiles=`eval echo $subdir_output` |
| 11120 |
tkdir_topbuilddir="$fullpathsrcdir/../../tcltk98/TK" |
| 11121 |
break |
| 11122 |
fi |
| 11123 |
done |
| 11124 |
fi |
| 11125 |
|
| 11126 |
# Initialize variables |
| 11127 |
models_dir_root='' |
| 11128 |
models_topbuilddir='' |
| 11129 |
|
| 11130 |
|
| 11131 |
# Check whether --with-models or --without-models was given. |
| 11132 |
if test "${with_models+set}" = set; then |
| 11133 |
withval="$with_models" |
| 11134 |
|
| 11135 |
else |
| 11136 |
with_models=yes |
| 11137 |
fi; |
| 11138 |
if test ! "X$with_models" = "Xno" ; then |
| 11139 |
subdir_file_exists='system.a4l' |
| 11140 |
#AWW20041117: FIXME next line |
| 11141 |
#AWW20041206: subdir_locations='models ascend4/models' |
| 11142 |
subdir_target="models" |
| 11143 |
subdir_locations='models ../../models' |
| 11144 |
subdir_output=' |
| 11145 |
$subdir_target/Makefile:$subdir_root/Makefile.in |
| 11146 |
$subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in |
| 11147 |
$subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in |
| 11148 |
$subdir_target/johnpye/Makefile:$subdir_root/johnpye/Makefile.in |
| 11149 |
' |
| 11150 |
## $subdir_root/examples/Makefile |
| 11151 |
## $subdir_root/examples/abbott/Makefile |
| 11152 |
## $subdir_root/examples/flexible_design/Makefile |
| 11153 |
## $subdir_root/libraries/Makefile |
| 11154 |
## $subdir_root/libraries/abbott/Makefile |
| 11155 |
## $subdir_root/pending/Makefile |
| 11156 |
## $subdir_root/pending/examples/Makefile |
| 11157 |
## $subdir_root/pending/libraries/Makefile |
| 11158 |
for subdir_root in $subdir_locations ; do |
| 11159 |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
| 11160 |
#AWW20041208: models_dir_root="../$subdir_root" |
| 11161 |
models_dir_root="$subdir_target" |
| 11162 |
models_makefiles=`eval echo $subdir_output` |
| 11163 |
models_topbuilddir="$fullpathsrcdir/../../models" |
| 11164 |
break |
| 11165 |
fi |
| 11166 |
done |
| 11167 |
fi |
| 11168 |
|
| 11169 |
|
| 11170 |
# Initialize variables |
| 11171 |
help_dir_root='' |
| 11172 |
help_topbuilddir='' |
| 11173 |
|
| 11174 |
|
| 11175 |
|
| 11176 |
#-------------------------------------------------------------------- |
| 11177 |
# The variables we substitute into the Makefile.in files |
| 11178 |
# and the command to actually generate the Makefiles |
| 11179 |
#-------------------------------------------------------------------- |
| 11180 |
|
| 11181 |
|
| 11182 |
|
| 11183 |
|
| 11184 |
|
| 11185 |
|
| 11186 |
|
| 11187 |
|
| 11188 |
|
| 11189 |
|
| 11190 |
|
| 11191 |
|
| 11192 |
|
| 11193 |
|
| 11194 |
|
| 11195 |
|
| 11196 |
|
| 11197 |
|
| 11198 |
|
| 11199 |
|
| 11200 |
|
| 11201 |
|
| 11202 |
|
| 11203 |
|
| 11204 |
|
| 11205 |
|
| 11206 |
|
| 11207 |
|
| 11208 |
|
| 11209 |
|
| 11210 |
|
| 11211 |
|
| 11212 |
|
| 11213 |
|
| 11214 |
|
| 11215 |
|
| 11216 |
|
| 11217 |
|
| 11218 |
|
| 11219 |
|
| 11220 |
|
| 11221 |
#AWW20041113: AC_SUBST(OPTSQPLIB) |
| 11222 |
#AWW20041113: AC_SUBST(make_rsqplib) |
| 11223 |
#AWW20041113: AC_SUBST(HAVE_OPTSQP) |
| 11224 |
#AWW20041113: dnl AC_SUBST(HARWELLLIB) |
| 11225 |
#AWW20041113: dnl AC_SUBST(make_harwelllib) |
| 11226 |
#AWW20041113: dnl AC_SUBST(HAVE_HARWELL) |
| 11227 |
#AWW20041113: AC_SUBST(MINOSLIB) |
| 11228 |
#AWW20041113: AC_SUBST(make_minoslib) |
| 11229 |
#AWW20041113: AC_SUBST(HAVE_MINOS) |
| 11230 |
#AWW20041113: AC_SUBST(CONOPTLIB) |
| 11231 |
#AWW20041113: AC_SUBST(make_conoptlib) |
| 11232 |
#AWW20041113: AC_SUBST(HAVE_CONOPT) |
| 11233 |
|
| 11234 |
|
| 11235 |
|
| 11236 |
|
| 11237 |
|
| 11238 |
|
| 11239 |
|
| 11240 |
#AWW20041129: In the following macro, replace the following |
| 11241 |
#AWW20041129: in the call. |
| 11242 |
#AWW20041129: |
| 11243 |
#AWW20041113: ascend4/ConfigAscend:ascend4/ConfigAscend.in |
| 11244 |
#AWW20041113: ascend4/Makefile |
| 11245 |
#AWW20041113: ascend4/bin/ascend4.sh |
| 11246 |
#AWW20041113: ascend4/Makefile.Rules:ascend4/Makefile.Rules.in |
| 11247 |
#AWW20041113: ascend4/archive/Makefile |
| 11248 |
#AWW20041113: ascend4/bin/Makefile |
| 11249 |
#AWW20041113: ascend4/compiler/Makefile |
| 11250 |
#AWW20041113: ascend4/general/Makefile |
| 11251 |
#AWW20041113: ascend4/interface/Makefile |
| 11252 |
#AWW20041113: ascend4/lib/Makefile |
| 11253 |
#AWW20041113: ascend4/packages/Makefile |
| 11254 |
#AWW20041113: ascend4/solver/Makefile |
| 11255 |
#AWW20041113: ascend4/utilities/Makefile |
| 11256 |
#AWW20041129: |
| 11257 |
#AWW20041129: and remove the following |
| 11258 |
#AWW20041129: |
| 11259 |
#AWW20041117: $rsqplib_makefile |
| 11260 |
#AWW20041117: $conoptlib_makefile |
| 11261 |
#AWW20041117: $minoslib_makefile |
| 11262 |
|
| 11263 |
#AWW20041216: Mark suggested using the following - except for last |
| 11264 |
#AWW20041216: except for last six items. Do they matter? |
| 11265 |
ac_config_files="$ac_config_files ConfigAscend:../../base/generic/ConfigAscend.in Makefile:../../base/generic/Makefile.in bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in Makefile.Rules:../../base/generic/Makefile.Rules.in archive/Makefile:../../base/generic/archive/Makefile.in bin/Makefile:../../base/generic/bin/Makefile.in compiler/Makefile:../../base/generic/compiler/Makefile.in general/Makefile:../../base/generic/general/Makefile.in interface/Makefile:../../tcltk98/generic/interface/Makefile.in lib/Makefile:../../base/generic/lib/Makefile.in packages/Makefile:../../base/generic/packages/Makefile.in solver/Makefile:../../base/generic/solver/Makefile.in utilities/Makefile:../../base/generic/utilities/Makefile.in ../../jam/Jamrules ../../tcltk98/generic/Jamrules_tcltk98 $tkdir_makefiles $models_makefiles $help_makefiles $blaslib_makefile $lpaklib_makefile $lsodlib_makefile" |
| 11266 |
|
| 11267 |
|
| 11268 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11269 |
# Let make expand exec_prefix. |
| 11270 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11271 |
|
| 11272 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11273 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11274 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 11275 |
# (actually we leave an empty line to preserve line numbers). |
| 11276 |
if test "x$srcdir" = x.; then |
| 11277 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11278 |
s/:*\$(srcdir):*/:/; |
| 11279 |
s/:*\${srcdir}:*/:/; |
| 11280 |
s/:*@srcdir@:*/:/; |
| 11281 |
s/^\([^=]*=[ ]*\):*/\1/; |
| 11282 |
s/:*$//; |
| 11283 |
s/^[^=]*=[ ]*$//; |
| 11284 |
}' |
| 11285 |
fi |
| 11286 |
|
| 11287 |
# Transform confdefs.h into DEFS. |
| 11288 |
# Protect against shell expansion while executing Makefile rules. |
| 11289 |
# Protect against Makefile macro expansion. |
| 11290 |
# |
| 11291 |
# If the first sed substitution is executed (which looks for macros that |
| 11292 |
# take arguments), then we branch to the quote section. Otherwise, |
| 11293 |
# look for a macro that doesn't take arguments. |
| 11294 |
cat >confdef2opt.sed <<\_ACEOF |
| 11295 |
t clear |
| 11296 |
: clear |
| 11297 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 11298 |
t quote |
| 11299 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 11300 |
t quote |
| 11301 |
d |
| 11302 |
: quote |
| 11303 |
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 11304 |
s,\[,\\&,g |
| 11305 |
s,\],\\&,g |
| 11306 |
s,\$,$$,g |
| 11307 |
p |
| 11308 |
_ACEOF |
| 11309 |
# We use echo to avoid assuming a particular line-breaking character. |
| 11310 |
# The extra dot is to prevent the shell from consuming trailing |
| 11311 |
# line-breaks from the sub-command output. A line-break within |
| 11312 |
# single-quotes doesn't work because, if this script is created in a |
| 11313 |
# platform that uses two characters for line-breaks (e.g., DOS), tr |
| 11314 |
# would break. |
| 11315 |
ac_LF_and_DOT=`echo; echo .` |
| 11316 |
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 11317 |
rm -f confdef2opt.sed |
| 11318 |
|
| 11319 |
|
| 11320 |
ac_libobjs= |
| 11321 |
ac_ltlibobjs= |
| 11322 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11323 |
# 1. Remove the extension, and $U if already installed. |
| 11324 |
ac_i=`echo "$ac_i" | |
| 11325 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11326 |
# 2. Add them. |
| 11327 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11328 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 11329 |
done |
| 11330 |
LIBOBJS=$ac_libobjs |
| 11331 |
|
| 11332 |
LTLIBOBJS=$ac_ltlibobjs |
| 11333 |
|
| 11334 |
|
| 11335 |
|
| 11336 |
: ${CONFIG_STATUS=./config.status} |
| 11337 |
ac_clean_files_save=$ac_clean_files |
| 11338 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 11339 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 11340 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11341 |
cat >$CONFIG_STATUS <<_ACEOF |
| 11342 |
#! $SHELL |
| 11343 |
# Generated by $as_me. |
| 11344 |
# Run this file to recreate the current configuration. |
| 11345 |
# Compiler output produced by configure, useful for debugging |
| 11346 |
# configure, is in config.log if it exists. |
| 11347 |
|
| 11348 |
debug=false |
| 11349 |
ac_cs_recheck=false |
| 11350 |
ac_cs_silent=false |
| 11351 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 11352 |
_ACEOF |
| 11353 |
|
| 11354 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11355 |
## --------------------- ## |
| 11356 |
## M4sh Initialization. ## |
| 11357 |
## --------------------- ## |
| 11358 |
|
| 11359 |
# Be Bourne compatible |
| 11360 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11361 |
emulate sh |
| 11362 |
NULLCMD=: |
| 11363 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11364 |
# is contrary to our usage. Disable this feature. |
| 11365 |
alias -g '${1+"$@"}'='"$@"' |
| 11366 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11367 |
set -o posix |
| 11368 |
fi |
| 11369 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 11370 |
|
| 11371 |
# Support unset when possible. |
| 11372 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11373 |
as_unset=unset |
| 11374 |
else |
| 11375 |
as_unset=false |
| 11376 |
fi |
| 11377 |
|
| 11378 |
|
| 11379 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 11380 |
$as_unset ENV MAIL MAILPATH |
| 11381 |
PS1='$ ' |
| 11382 |
PS2='> ' |
| 11383 |
PS4='+ ' |
| 11384 |
|
| 11385 |
# NLS nuisances. |
| 11386 |
for as_var in \ |
| 11387 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11388 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11389 |
LC_TELEPHONE LC_TIME |
| 11390 |
do |
| 11391 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11392 |
eval $as_var=C; export $as_var |
| 11393 |
else |
| 11394 |
$as_unset $as_var |
| 11395 |
fi |
| 11396 |
done |
| 11397 |
|
| 11398 |
# Required to use basename. |
| 11399 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11400 |
as_expr=expr |
| 11401 |
else |
| 11402 |
as_expr=false |
| 11403 |
fi |
| 11404 |
|
| 11405 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11406 |
as_basename=basename |
| 11407 |
else |
| 11408 |
as_basename=false |
| 11409 |
fi |
| 11410 |
|
| 11411 |
|
| 11412 |
# Name of the executable. |
| 11413 |
as_me=`$as_basename "$0" || |
| 11414 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11415 |
X"$0" : 'X\(//\)$' \| \ |
| 11416 |
X"$0" : 'X\(/\)$' \| \ |
| 11417 |
. : '\(.\)' 2>/dev/null || |
| 11418 |
echo X/"$0" | |
| 11419 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11420 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11421 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 11422 |
s/.*/./; q'` |
| 11423 |
|
| 11424 |
|
| 11425 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 11426 |
# Avoid depending upon Character Ranges. |
| 11427 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11428 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11429 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11430 |
as_cr_digits='0123456789' |
| 11431 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11432 |
|
| 11433 |
# The user is always right. |
| 11434 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 11435 |
echo "#! /bin/sh" >conf$$.sh |
| 11436 |
echo "exit 0" >>conf$$.sh |
| 11437 |
chmod +x conf$$.sh |
| 11438 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11439 |
PATH_SEPARATOR=';' |
| 11440 |
else |
| 11441 |
PATH_SEPARATOR=: |
| 11442 |
fi |
| 11443 |
rm -f conf$$.sh |
| 11444 |
fi |
| 11445 |
|
| 11446 |
|
| 11447 |
as_lineno_1=$LINENO |
| 11448 |
as_lineno_2=$LINENO |
| 11449 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11450 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11451 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11452 |
# Find who we are. Look in the path if we contain no path at all |
| 11453 |
# relative or not. |
| 11454 |
case $0 in |
| 11455 |
*[\\/]* ) as_myself=$0 ;; |
| 11456 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11457 |
for as_dir in $PATH |
| 11458 |
do |
| 11459 |
IFS=$as_save_IFS |
| 11460 |
test -z "$as_dir" && as_dir=. |
| 11461 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11462 |
done |
| 11463 |
|
| 11464 |
;; |
| 11465 |
esac |
| 11466 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11467 |
# in which case we are not to be found in the path. |
| 11468 |
if test "x$as_myself" = x; then |
| 11469 |
as_myself=$0 |
| 11470 |
fi |
| 11471 |
if test ! -f "$as_myself"; then |
| 11472 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11473 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11474 |
{ (exit 1); exit 1; }; } |
| 11475 |
fi |
| 11476 |
case $CONFIG_SHELL in |
| 11477 |
'') |
| 11478 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11479 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11480 |
do |
| 11481 |
IFS=$as_save_IFS |
| 11482 |
test -z "$as_dir" && as_dir=. |
| 11483 |
for as_base in sh bash ksh sh5; do |
| 11484 |
case $as_dir in |
| 11485 |
/*) |
| 11486 |
if ("$as_dir/$as_base" -c ' |
| 11487 |
as_lineno_1=$LINENO |
| 11488 |
as_lineno_2=$LINENO |
| 11489 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11490 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11491 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11492 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11493 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11494 |
CONFIG_SHELL=$as_dir/$as_base |
| 11495 |
export CONFIG_SHELL |
| 11496 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11497 |
fi;; |
| 11498 |
esac |
| 11499 |
done |
| 11500 |
done |
| 11501 |
;; |
| 11502 |
esac |
| 11503 |
|
| 11504 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11505 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 11506 |
# line-number line before each line; the second 'sed' does the real |
| 11507 |
# work. The second script uses 'N' to pair each line-number line |
| 11508 |
# with the numbered line, and appends trailing '-' during |
| 11509 |
# substitution so that $LINENO is not a special case at line end. |
| 11510 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 11511 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11512 |
sed '=' <$as_myself | |
| 11513 |
sed ' |
| 11514 |
N |
| 11515 |
s,$,-, |
| 11516 |
: loop |
| 11517 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 11518 |
t loop |
| 11519 |
s,-$,, |
| 11520 |
s,^['$as_cr_digits']*\n,, |
| 11521 |
' >$as_me.lineno && |
| 11522 |
chmod +x $as_me.lineno || |
| 11523 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11524 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 11525 |
{ (exit 1); exit 1; }; } |
| 11526 |
|
| 11527 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 11528 |
# (the dirname of $[0] is not the place where we might find the |
| 11529 |
# original and so on. Autoconf is especially sensible to this). |
| 11530 |
. ./$as_me.lineno |
| 11531 |
# Exit status is that of the last command. |
| 11532 |
exit |
| 11533 |
} |
| 11534 |
|
| 11535 |
|
| 11536 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11537 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 11538 |
' ECHO_T=' ' ;; |
| 11539 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11540 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 11541 |
esac |
| 11542 |
|
| 11543 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11544 |
as_expr=expr |
| 11545 |
else |
| 11546 |
as_expr=false |
| 11547 |
fi |
| 11548 |
|
| 11549 |
rm -f conf$$ conf$$.exe conf$$.file |
| 11550 |
echo >conf$$.file |
| 11551 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11552 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 11553 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11554 |
if test -f conf$$.exe; then |
| 11555 |
# Don't use ln at all; we don't have any links |
| 11556 |
as_ln_s='cp -p' |
| 11557 |
else |
| 11558 |
as_ln_s='ln -s' |
| 11559 |
fi |
| 11560 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11561 |
as_ln_s=ln |
| 11562 |
else |
| 11563 |
as_ln_s='cp -p' |
| 11564 |
fi |
| 11565 |
rm -f conf$$ conf$$.exe conf$$.file |
| 11566 |
|
| 11567 |
if mkdir -p . 2>/dev/null; then |
| 11568 |
as_mkdir_p=: |
| 11569 |
else |
| 11570 |
test -d ./-p && rmdir ./-p |
| 11571 |
as_mkdir_p=false |
| 11572 |
fi |
| 11573 |
|
| 11574 |
as_executable_p="test -f" |
| 11575 |
|
| 11576 |
# Sed expression to map a string onto a valid CPP name. |
| 11577 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11578 |
|
| 11579 |
# Sed expression to map a string onto a valid variable name. |
| 11580 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11581 |
|
| 11582 |
|
| 11583 |
# IFS |
| 11584 |
# We need space, tab and new line, in precisely that order. |
| 11585 |
as_nl=' |
| 11586 |
' |
| 11587 |
IFS=" $as_nl" |
| 11588 |
|
| 11589 |
# CDPATH. |
| 11590 |
$as_unset CDPATH |
| 11591 |
|
| 11592 |
exec 6>&1 |
| 11593 |
|
| 11594 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 11595 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 11596 |
# values after options handling. Logging --version etc. is OK. |
| 11597 |
exec 5>>config.log |
| 11598 |
{ |
| 11599 |
echo |
| 11600 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11601 |
## Running $as_me. ## |
| 11602 |
_ASBOX |
| 11603 |
} >&5 |
| 11604 |
cat >&5 <<_CSEOF |
| 11605 |
|
| 11606 |
This file was extended by $as_me, which was |
| 11607 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 11608 |
|
| 11609 |
CONFIG_FILES = $CONFIG_FILES |
| 11610 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 11611 |
CONFIG_LINKS = $CONFIG_LINKS |
| 11612 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11613 |
$ $0 $@ |
| 11614 |
|
| 11615 |
_CSEOF |
| 11616 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11617 |
echo >&5 |
| 11618 |
_ACEOF |
| 11619 |
|
| 11620 |
# Files that config.status was made for. |
| 11621 |
if test -n "$ac_config_files"; then |
| 11622 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11623 |
fi |
| 11624 |
|
| 11625 |
if test -n "$ac_config_headers"; then |
| 11626 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11627 |
fi |
| 11628 |
|
| 11629 |
if test -n "$ac_config_links"; then |
| 11630 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11631 |
fi |
| 11632 |
|
| 11633 |
if test -n "$ac_config_commands"; then |
| 11634 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11635 |
fi |
| 11636 |
|
| 11637 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11638 |
|
| 11639 |
ac_cs_usage="\ |
| 11640 |
\`$as_me' instantiates files from templates according to the |
| 11641 |
current configuration. |
| 11642 |
|
| 11643 |
Usage: $0 [OPTIONS] [FILE]... |
| 11644 |
|
| 11645 |
-h, --help print this help, then exit |
| 11646 |
-V, --version print version number, then exit |
| 11647 |
-q, --quiet do not print progress messages |
| 11648 |
-d, --debug don't remove temporary files |
| 11649 |
--recheck update $as_me by reconfiguring in the same conditions |
| 11650 |
--file=FILE[:TEMPLATE] |
| 11651 |
instantiate the configuration file FILE |
| 11652 |
|
| 11653 |
Configuration files: |
| 11654 |
$config_files |
| 11655 |
|
| 11656 |
Report bugs to <bug-autoconf@gnu.org>." |
| 11657 |
_ACEOF |
| 11658 |
|
| 11659 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11660 |
ac_cs_version="\\ |
| 11661 |
config.status |
| 11662 |
configured by $0, generated by GNU Autoconf 2.59, |
| 11663 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 11664 |
|
| 11665 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 11666 |
This config.status script is free software; the Free Software Foundation |
| 11667 |
gives unlimited permission to copy, distribute and modify it." |
| 11668 |
srcdir=$srcdir |
| 11669 |
INSTALL="$INSTALL" |
| 11670 |
_ACEOF |
| 11671 |
|
| 11672 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11673 |
# If no file are specified by the user, then we need to provide default |
| 11674 |
# value. By we need to know if files were specified by the user. |
| 11675 |
ac_need_defaults=: |
| 11676 |
while test $# != 0 |
| 11677 |
do |
| 11678 |
case $1 in |
| 11679 |
--*=*) |
| 11680 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11681 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 11682 |
ac_shift=: |
| 11683 |
;; |
| 11684 |
-*) |
| 11685 |
ac_option=$1 |
| 11686 |
ac_optarg=$2 |
| 11687 |
ac_shift=shift |
| 11688 |
;; |
| 11689 |
*) # This is not an option, so the user has probably given explicit |
| 11690 |
# arguments. |
| 11691 |
ac_option=$1 |
| 11692 |
ac_need_defaults=false;; |
| 11693 |
esac |
| 11694 |
|
| 11695 |
case $ac_option in |
| 11696 |
# Handling of the options. |
| 11697 |
_ACEOF |
| 11698 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11699 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11700 |
ac_cs_recheck=: ;; |
| 11701 |
--version | --vers* | -V ) |
| 11702 |
echo "$ac_cs_version"; exit 0 ;; |
| 11703 |
--he | --h) |
| 11704 |
# Conflict between --help and --header |
| 11705 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11706 |
Try \`$0 --help' for more information." >&5 |
| 11707 |
echo "$as_me: error: ambiguous option: $1 |
| 11708 |
Try \`$0 --help' for more information." >&2;} |
| 11709 |
{ (exit 1); exit 1; }; };; |
| 11710 |
--help | --hel | -h ) |
| 11711 |
echo "$ac_cs_usage"; exit 0 ;; |
| 11712 |
--debug | --d* | -d ) |
| 11713 |
debug=: ;; |
| 11714 |
--file | --fil | --fi | --f ) |
| 11715 |
$ac_shift |
| 11716 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 11717 |
ac_need_defaults=false;; |
| 11718 |
--header | --heade | --head | --hea ) |
| 11719 |
$ac_shift |
| 11720 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 11721 |
ac_need_defaults=false;; |
| 11722 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11723 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11724 |
ac_cs_silent=: ;; |
| 11725 |
|
| 11726 |
# This is an error. |
| 11727 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11728 |
Try \`$0 --help' for more information." >&5 |
| 11729 |
echo "$as_me: error: unrecognized option: $1 |
| 11730 |
Try \`$0 --help' for more information." >&2;} |
| 11731 |
{ (exit 1); exit 1; }; } ;; |
| 11732 |
|
| 11733 |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 11734 |
|
| 11735 |
esac |
| 11736 |
shift |
| 11737 |
done |
| 11738 |
|
| 11739 |
ac_configure_extra_args= |
| 11740 |
|
| 11741 |
if $ac_cs_silent; then |
| 11742 |
exec 6>/dev/null |
| 11743 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11744 |
fi |
| 11745 |
|
| 11746 |
_ACEOF |
| 11747 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11748 |
if \$ac_cs_recheck; then |
| 11749 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11750 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11751 |
fi |
| 11752 |
|
| 11753 |
_ACEOF |
| 11754 |
|
| 11755 |
|
| 11756 |
|
| 11757 |
|
| 11758 |
|
| 11759 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11760 |
for ac_config_target in $ac_config_targets |
| 11761 |
do |
| 11762 |
case "$ac_config_target" in |
| 11763 |
# Handling of arguments. |
| 11764 |
"ConfigAscend" ) CONFIG_FILES="$CONFIG_FILES ConfigAscend:../../base/generic/ConfigAscend.in" ;; |
| 11765 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../../base/generic/Makefile.in" ;; |
| 11766 |
"bin/ascend4.sh" ) CONFIG_FILES="$CONFIG_FILES bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in" ;; |
| 11767 |
"Makefile.Rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.Rules:../../base/generic/Makefile.Rules.in" ;; |
| 11768 |
"archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES archive/Makefile:../../base/generic/archive/Makefile.in" ;; |
| 11769 |
"bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile:../../base/generic/bin/Makefile.in" ;; |
| 11770 |
"compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES compiler/Makefile:../../base/generic/compiler/Makefile.in" ;; |
| 11771 |
"general/Makefile" ) CONFIG_FILES="$CONFIG_FILES general/Makefile:../../base/generic/general/Makefile.in" ;; |
| 11772 |
"interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile:../../tcltk98/generic/interface/Makefile.in" ;; |
| 11773 |
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile:../../base/generic/lib/Makefile.in" ;; |
| 11774 |
"packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile:../../base/generic/packages/Makefile.in" ;; |
| 11775 |
"solver/Makefile" ) CONFIG_FILES="$CONFIG_FILES solver/Makefile:../../base/generic/solver/Makefile.in" ;; |
| 11776 |
"utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES utilities/Makefile:../../base/generic/utilities/Makefile.in" ;; |
| 11777 |
"../../jam/Jamrules" ) CONFIG_FILES="$CONFIG_FILES ../../jam/Jamrules" ;; |
| 11778 |
"../../tcltk98/generic/Jamrules_tcltk98" ) CONFIG_FILES="$CONFIG_FILES ../../tcltk98/generic/Jamrules_tcltk98" ;; |
| 11779 |
"$tkdir_makefiles" ) CONFIG_FILES="$CONFIG_FILES $tkdir_makefiles" ;; |
| 11780 |
"$models_makefiles" ) CONFIG_FILES="$CONFIG_FILES $models_makefiles" ;; |
| 11781 |
"$help_makefiles" ) CONFIG_FILES="$CONFIG_FILES $help_makefiles" ;; |
| 11782 |
"$blaslib_makefile" ) CONFIG_FILES="$CONFIG_FILES $blaslib_makefile" ;; |
| 11783 |
"$lpaklib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lpaklib_makefile" ;; |
| 11784 |
"$lsodlib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lsodlib_makefile" ;; |
| 11785 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 11786 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11787 |
{ (exit 1); exit 1; }; };; |
| 11788 |
esac |
| 11789 |
done |
| 11790 |
|
| 11791 |
# If the user did not use the arguments to specify the items to instantiate, |
| 11792 |
# then the envvar interface is used. Set only those that are not. |
| 11793 |
# We use the long form for the default assignment because of an extremely |
| 11794 |
# bizarre bug on SunOS 4.1.3. |
| 11795 |
if $ac_need_defaults; then |
| 11796 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 11797 |
fi |
| 11798 |
|
| 11799 |
# Have a temporary directory for convenience. Make it in the build tree |
| 11800 |
# simply because there is no reason to put it here, and in addition, |
| 11801 |
# creating and moving files from /tmp can sometimes cause problems. |
| 11802 |
# Create a temporary directory, and hook for its removal unless debugging. |
| 11803 |
$debug || |
| 11804 |
{ |
| 11805 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 11806 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11807 |
} |
| 11808 |
|
| 11809 |
# Create a (secure) tmp directory for tmp files. |
| 11810 |
|
| 11811 |
{ |
| 11812 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 11813 |
test -n "$tmp" && test -d "$tmp" |
| 11814 |
} || |
| 11815 |
{ |
| 11816 |
tmp=./confstat$$-$RANDOM |
| 11817 |
(umask 077 && mkdir $tmp) |
| 11818 |
} || |
| 11819 |
{ |
| 11820 |
echo "$me: cannot create a temporary directory in ." >&2 |
| 11821 |
{ (exit 1); exit 1; } |
| 11822 |
} |
| 11823 |
|
| 11824 |
_ACEOF |
| 11825 |
|
| 11826 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11827 |
|
| 11828 |
# |
| 11829 |
# CONFIG_FILES section. |
| 11830 |
# |
| 11831 |
|
| 11832 |
# No need to generate the scripts if there are no CONFIG_FILES. |
| 11833 |
# This happens for instance when ./config.status config.h |
| 11834 |
if test -n "\$CONFIG_FILES"; then |
| 11835 |
# Protect against being on the right side of a sed subst in config.status. |
| 11836 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11837 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11838 |
s,@SHELL@,$SHELL,;t t |
| 11839 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11840 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11841 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11842 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11843 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11844 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11845 |
s,@exec_prefix@,$exec_prefix,;t t |
| 11846 |
s,@prefix@,$prefix,;t t |
| 11847 |
s,@program_transform_name@,$program_transform_name,;t t |
| 11848 |
s,@bindir@,$bindir,;t t |
| 11849 |
s,@sbindir@,$sbindir,;t t |
| 11850 |
s,@libexecdir@,$libexecdir,;t t |
| 11851 |
s,@datadir@,$datadir,;t t |
| 11852 |
s,@sysconfdir@,$sysconfdir,;t t |
| 11853 |
s,@sharedstatedir@,$sharedstatedir,;t t |
| 11854 |
s,@localstatedir@,$localstatedir,;t t |
| 11855 |
s,@libdir@,$libdir,;t t |
| 11856 |
s,@includedir@,$includedir,;t t |
| 11857 |
s,@oldincludedir@,$oldincludedir,;t t |
| 11858 |
s,@infodir@,$infodir,;t t |
| 11859 |
s,@mandir@,$mandir,;t t |
| 11860 |
s,@build_alias@,$build_alias,;t t |
| 11861 |
s,@host_alias@,$host_alias,;t t |
| 11862 |
s,@target_alias@,$target_alias,;t t |
| 11863 |
s,@DEFS@,$DEFS,;t t |
| 11864 |
s,@ECHO_C@,$ECHO_C,;t t |
| 11865 |
s,@ECHO_N@,$ECHO_N,;t t |
| 11866 |
s,@ECHO_T@,$ECHO_T,;t t |
| 11867 |
s,@LIBS@,$LIBS,;t t |
| 11868 |
s,@RANLIB@,$RANLIB,;t t |
| 11869 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 11870 |
s,@LN_S@,$LN_S,;t t |
| 11871 |
s,@SET_MAKE@,$SET_MAKE,;t t |
| 11872 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 11873 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 11874 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 11875 |
s,@build@,$build,;t t |
| 11876 |
s,@build_cpu@,$build_cpu,;t t |
| 11877 |
s,@build_vendor@,$build_vendor,;t t |
| 11878 |
s,@build_os@,$build_os,;t t |
| 11879 |
s,@host@,$host,;t t |
| 11880 |
s,@host_cpu@,$host_cpu,;t t |
| 11881 |
s,@host_vendor@,$host_vendor,;t t |
| 11882 |
s,@host_os@,$host_os,;t t |
| 11883 |
s,@CC@,$CC,;t t |
| 11884 |
s,@CFLAGS@,$CFLAGS,;t t |
| 11885 |
s,@LDFLAGS@,$LDFLAGS,;t t |
| 11886 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 11887 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 11888 |
s,@EXEEXT@,$EXEEXT,;t t |
| 11889 |
s,@OBJEXT@,$OBJEXT,;t t |
| 11890 |
s,@asc_cc1@,$asc_cc1,;t t |
| 11891 |
s,@asc_cc2@,$asc_cc2,;t t |
| 11892 |
s,@asc_cc3@,$asc_cc3,;t t |
| 11893 |
s,@CPP@,$CPP,;t t |
| 11894 |
s,@DEBUG_LIBS@,$DEBUG_LIBS,;t t |
| 11895 |
s,@EGREP@,$EGREP,;t t |
| 11896 |
s,@YACC@,$YACC,;t t |
| 11897 |
s,@LEX@,$LEX,;t t |
| 11898 |
s,@LEXLIB@,$LEXLIB,;t t |
| 11899 |
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 11900 |
s,@TCL_LIB@,$TCL_LIB,;t t |
| 11901 |
s,@TCL_HDR@,$TCL_HDR,;t t |
| 11902 |
s,@TK_LIB@,$TK_LIB,;t t |
| 11903 |
s,@TK_HDR@,$TK_HDR,;t t |
| 11904 |
s,@TKTABLE_LIB@,$TKTABLE_LIB,;t t |
| 11905 |
s,@F77@,$F77,;t t |
| 11906 |
s,@BLASLIB@,$BLASLIB,;t t |
| 11907 |
s,@LPAKLIB@,$LPAKLIB,;t t |
| 11908 |
s,@LSODLIB@,$LSODLIB,;t t |
| 11909 |
s,@ascpwd@,$ascpwd,;t t |
| 11910 |
s,@fullpathsrcdir@,$fullpathsrcdir,;t t |
| 11911 |
s,@asc_include@,$asc_include,;t t |
| 11912 |
s,@scanner_src@,$scanner_src,;t t |
| 11913 |
s,@typer_src@,$typer_src,;t t |
| 11914 |
s,@MATH_LIBS@,$MATH_LIBS,;t t |
| 11915 |
s,@X11_INCLUDES@,$X11_INCLUDES,;t t |
| 11916 |
s,@X11_LIBRARIES@,$X11_LIBRARIES,;t t |
| 11917 |
s,@X11_RUN_PATH@,$X11_RUN_PATH,;t t |
| 11918 |
s,@X11_EXTRA_LIBS@,$X11_EXTRA_LIBS,;t t |
| 11919 |
s,@DL_LIBS@,$DL_LIBS,;t t |
| 11920 |
s,@LD_FLAGS@,$LD_FLAGS,;t t |
| 11921 |
s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t |
| 11922 |
s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t |
| 11923 |
s,@SHLIB_LD@,$SHLIB_LD,;t t |
| 11924 |
s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t |
| 11925 |
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t |
| 11926 |
s,@ASC_LIB_SUFFIX@,$ASC_LIB_SUFFIX,;t t |
| 11927 |
s,@ASC_TK_LIBRARY@,$ASC_TK_LIBRARY,;t t |
| 11928 |
s,@ASC_TCL_LIBRARY@,$ASC_TCL_LIBRARY,;t t |
| 11929 |
s,@HAVE_TKTABLE@,$HAVE_TKTABLE,;t t |
| 11930 |
s,@asc_subdirs@,$asc_subdirs,;t t |
| 11931 |
s,@F77LIBS@,$F77LIBS,;t t |
| 11932 |
s,@make_blaslib@,$make_blaslib,;t t |
| 11933 |
s,@make_lpaklib@,$make_lpaklib,;t t |
| 11934 |
s,@make_lsodlib@,$make_lsodlib,;t t |
| 11935 |
s,@HAVE_LSOD@,$HAVE_LSOD,;t t |
| 11936 |
s,@tkdir_root@,$tkdir_root,;t t |
| 11937 |
s,@tkdir_topbuilddir@,$tkdir_topbuilddir,;t t |
| 11938 |
s,@models_dir_root@,$models_dir_root,;t t |
| 11939 |
s,@models_topbuilddir@,$models_topbuilddir,;t t |
| 11940 |
s,@help_dir_root@,$help_dir_root,;t t |
| 11941 |
s,@help_topbuilddir@,$help_topbuilddir,;t t |
| 11942 |
s,@LIBOBJS@,$LIBOBJS,;t t |
| 11943 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 11944 |
CEOF |
| 11945 |
|
| 11946 |
_ACEOF |
| 11947 |
|
| 11948 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11949 |
# Split the substitutions into bite-sized pieces for seds with |
| 11950 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 11951 |
ac_max_sed_lines=48 |
| 11952 |
ac_sed_frag=1 # Number of current file. |
| 11953 |
ac_beg=1 # First line for current file. |
| 11954 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 11955 |
ac_more_lines=: |
| 11956 |
ac_sed_cmds= |
| 11957 |
while $ac_more_lines; do |
| 11958 |
if test $ac_beg -gt 1; then |
| 11959 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11960 |
else |
| 11961 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11962 |
fi |
| 11963 |
if test ! -s $tmp/subs.frag; then |
| 11964 |
ac_more_lines=false |
| 11965 |
else |
| 11966 |
# The purpose of the label and of the branching condition is to |
| 11967 |
# speed up the sed processing (if there are no `@' at all, there |
| 11968 |
# is no need to browse any of the substitutions). |
| 11969 |
# These are the two extra sed commands mentioned above. |
| 11970 |
(echo ':t |
| 11971 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 11972 |
if test -z "$ac_sed_cmds"; then |
| 11973 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11974 |
else |
| 11975 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11976 |
fi |
| 11977 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| 11978 |
ac_beg=$ac_end |
| 11979 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 11980 |
fi |
| 11981 |
done |
| 11982 |
if test -z "$ac_sed_cmds"; then |
| 11983 |
ac_sed_cmds=cat |
| 11984 |
fi |
| 11985 |
fi # test -n "$CONFIG_FILES" |
| 11986 |
|
| 11987 |
_ACEOF |
| 11988 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11989 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 11990 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11991 |
case $ac_file in |
| 11992 |
- | *:- | *:-:* ) # input from stdin |
| 11993 |
cat >$tmp/stdin |
| 11994 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11995 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11996 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11997 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11998 |
* ) ac_file_in=$ac_file.in ;; |
| 11999 |
esac |
| 12000 |
|
| 12001 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 12002 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 12003 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12004 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12005 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 12006 |
X"$ac_file" : 'X\(/\)' \| \ |
| 12007 |
. : '\(.\)' 2>/dev/null || |
| 12008 |
echo X"$ac_file" | |
| 12009 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12010 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12011 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 12012 |
/^X\(\/\).*/{ s//\1/; q; } |
| 12013 |
s/.*/./; q'` |
| 12014 |
{ if $as_mkdir_p; then |
| 12015 |
mkdir -p "$ac_dir" |
| 12016 |
else |
| 12017 |
as_dir="$ac_dir" |
| 12018 |
as_dirs= |
| 12019 |
while test ! -d "$as_dir"; do |
| 12020 |
as_dirs="$as_dir $as_dirs" |
| 12021 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12022 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12023 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12024 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 12025 |
X"$as_dir" : 'X\(/\)' \| \ |
| 12026 |
. : '\(.\)' 2>/dev/null || |
| 12027 |
echo X"$as_dir" | |
| 12028 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12029 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12030 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 12031 |
/^X\(\/\).*/{ s//\1/; q; } |
| 12032 |
s/.*/./; q'` |
| 12033 |
done |
| 12034 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 12035 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12036 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12037 |
{ (exit 1); exit 1; }; }; } |
| 12038 |
|
| 12039 |
ac_builddir=. |
| 12040 |
|
| 12041 |
if test "$ac_dir" != .; then |
| 12042 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12043 |
# A "../" for each directory in $ac_dir_suffix. |
| 12044 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12045 |
else |
| 12046 |
ac_dir_suffix= ac_top_builddir= |
| 12047 |
fi |
| 12048 |
|
| 12049 |
case $srcdir in |
| 12050 |
.) # No --srcdir option. We are building in place. |
| 12051 |
ac_srcdir=. |
| 12052 |
if test -z "$ac_top_builddir"; then |
| 12053 |
ac_top_srcdir=. |
| 12054 |
else |
| 12055 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12056 |
fi ;; |
| 12057 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 12058 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 12059 |
ac_top_srcdir=$srcdir ;; |
| 12060 |
*) # Relative path. |
| 12061 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12062 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 12063 |
esac |
| 12064 |
|
| 12065 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 12066 |
# the directories may not exist. |
| 12067 |
case `pwd` in |
| 12068 |
.) ac_abs_builddir="$ac_dir";; |
| 12069 |
*) |
| 12070 |
case "$ac_dir" in |
| 12071 |
.) ac_abs_builddir=`pwd`;; |
| 12072 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12073 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12074 |
esac;; |
| 12075 |
esac |
| 12076 |
case $ac_abs_builddir in |
| 12077 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12078 |
*) |
| 12079 |
case ${ac_top_builddir}. in |
| 12080 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12081 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12082 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12083 |
esac;; |
| 12084 |
esac |
| 12085 |
case $ac_abs_builddir in |
| 12086 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 12087 |
*) |
| 12088 |
case $ac_srcdir in |
| 12089 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 12090 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12091 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12092 |
esac;; |
| 12093 |
esac |
| 12094 |
case $ac_abs_builddir in |
| 12095 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12096 |
*) |
| 12097 |
case $ac_top_srcdir in |
| 12098 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12099 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12100 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12101 |
esac;; |
| 12102 |
esac |
| 12103 |
|
| 12104 |
|
| 12105 |
case $INSTALL in |
| 12106 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 12107 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 12108 |
esac |
| 12109 |
|
| 12110 |
if test x"$ac_file" != x-; then |
| 12111 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12112 |
echo "$as_me: creating $ac_file" >&6;} |
| 12113 |
rm -f "$ac_file" |
| 12114 |
fi |
| 12115 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12116 |
# use $as_me), people would be surprised to read: |
| 12117 |
# /* config.h. Generated by config.status. */ |
| 12118 |
if test x"$ac_file" = x-; then |
| 12119 |
configure_input= |
| 12120 |
else |
| 12121 |
configure_input="$ac_file. " |
| 12122 |
fi |
| 12123 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 12124 |
sed 's,.*/,,'` by configure." |
| 12125 |
|
| 12126 |
# First look for the input files in the build tree, otherwise in the |
| 12127 |
# src tree. |
| 12128 |
ac_file_inputs=`IFS=: |
| 12129 |
for f in $ac_file_in; do |
| 12130 |
case $f in |
| 12131 |
-) echo $tmp/stdin ;; |
| 12132 |
[\\/$]*) |
| 12133 |
# Absolute (can't be DOS-style, as IFS=:) |
| 12134 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12135 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12136 |
{ (exit 1); exit 1; }; } |
| 12137 |
echo "$f";; |
| 12138 |
*) # Relative |
| 12139 |
if test -f "$f"; then |
| 12140 |
# Build tree |
| 12141 |
echo "$f" |
| 12142 |
elif test -f "$srcdir/$f"; then |
| 12143 |
# Source tree |
| 12144 |
echo "$srcdir/$f" |
| 12145 |
else |
| 12146 |
# /dev/null tree |
| 12147 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12148 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12149 |
{ (exit 1); exit 1; }; } |
| 12150 |
fi;; |
| 12151 |
esac |
| 12152 |
done` || { (exit 1); exit 1; } |
| 12153 |
_ACEOF |
| 12154 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 12155 |
sed "$ac_vpsub |
| 12156 |
$extrasub |
| 12157 |
_ACEOF |
| 12158 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 12159 |
:t |
| 12160 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12161 |
s,@configure_input@,$configure_input,;t t |
| 12162 |
s,@srcdir@,$ac_srcdir,;t t |
| 12163 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 12164 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| 12165 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 12166 |
s,@builddir@,$ac_builddir,;t t |
| 12167 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
| 12168 |
s,@top_builddir@,$ac_top_builddir,;t t |
| 12169 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 12170 |
s,@INSTALL@,$ac_INSTALL,;t t |
| 12171 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 12172 |
rm -f $tmp/stdin |
| 12173 |
if test x"$ac_file" != x-; then |
| 12174 |
mv $tmp/out $ac_file |
| 12175 |
else |
| 12176 |
cat $tmp/out |
| 12177 |
rm -f $tmp/out |
| 12178 |
fi |
| 12179 |
|
| 12180 |
done |
| 12181 |
_ACEOF |
| 12182 |
|
| 12183 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 12184 |
|
| 12185 |
{ (exit 0); exit 0; } |
| 12186 |
_ACEOF |
| 12187 |
chmod +x $CONFIG_STATUS |
| 12188 |
ac_clean_files=$ac_clean_files_save |
| 12189 |
|
| 12190 |
|
| 12191 |
# configure is writing to config.log, and then calls config.status. |
| 12192 |
# config.status does its own redirection, appending to config.log. |
| 12193 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 12194 |
# by configure, so config.status won't be able to write to it; its |
| 12195 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 12196 |
# effectively closing config.log, so it can be properly (re)opened and |
| 12197 |
# appended to by config.status. When coming back to configure, we |
| 12198 |
# need to make the FD available again. |
| 12199 |
if test "$no_create" != yes; then |
| 12200 |
ac_cs_success=: |
| 12201 |
ac_config_status_args= |
| 12202 |
test "$silent" = yes && |
| 12203 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 12204 |
exec 5>/dev/null |
| 12205 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12206 |
exec 5>>config.log |
| 12207 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12208 |
# would make configure fail if this is the last instruction. |
| 12209 |
$ac_cs_success || { (exit 1); exit 1; } |
| 12210 |
fi |
| 12211 |
|
| 12212 |
|
| 12213 |
#AC_OUTPUT( |
| 12214 |
# ../../base/generic/ConfigAscend:../../base/generic/ConfigAscend.in |
| 12215 |
# ../../base/generic/Makefile |
| 12216 |
# ../../base/generic/bin/ascend4.sh |
| 12217 |
# ../../base/generic/Makefile.Rules:../../base/generic/Makefile.Rules.in |
| 12218 |
# ../../base/generic/archive/Makefile |
| 12219 |
# ../../base/generic/bin/Makefile |
| 12220 |
# ../../base/generic/compiler/Makefile |
| 12221 |
# ../../base/generic/general/Makefile |
| 12222 |
# ../../tcltk98/generic/interface/Makefile |
| 12223 |
# ../../base/generic/lib/Makefile |
| 12224 |
# ../../base/generic/packages/Makefile |
| 12225 |
# ../../base/generic/solver/Makefile |
| 12226 |
# ../../base/generic/utilities/Makefile |
| 12227 |
# $tkdir_makefiles |
| 12228 |
# $models_makefiles |
| 12229 |
# $help_makefiles |
| 12230 |
# $blaslib_makefile |
| 12231 |
# $lpaklib_makefile |
| 12232 |
# $lsodlib_makefile |
| 12233 |
# ) |