[107] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[482] | 3 | # Generated by GNU Autoconf 2.59 for Duchamp 1.1.6. |
---|
[107] | 4 | # |
---|
[121] | 5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 6 | # |
---|
[349] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
[107] | 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
| 13 | |
---|
| 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
[349] | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[107] | 25 | |
---|
| 26 | # Support unset when possible. |
---|
[349] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
[107] | 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
| 39 | |
---|
| 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
[349] | 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
[107] | 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
| 52 | |
---|
| 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
| 59 | |
---|
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
| 198 | else |
---|
| 199 | as_expr=false |
---|
| 200 | fi |
---|
| 201 | |
---|
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
| 217 | fi |
---|
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 219 | |
---|
| 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
[349] | 223 | test -d ./-p && rmdir ./-p |
---|
[107] | 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
| 226 | |
---|
| 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='Duchamp' |
---|
| 271 | PACKAGE_TARNAME='duchamp' |
---|
[482] | 272 | PACKAGE_VERSION='1.1.6' |
---|
| 273 | PACKAGE_STRING='Duchamp 1.1.6' |
---|
[121] | 274 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
[107] | 275 | |
---|
[168] | 276 | ac_unique_file="src/duchamp.hh" |
---|
[347] | 277 | ac_default_prefix=/usr/local |
---|
[107] | 278 | # Factoring default headers for most tests. |
---|
| 279 | ac_includes_default="\ |
---|
| 280 | #include <stdio.h> |
---|
| 281 | #if HAVE_SYS_TYPES_H |
---|
| 282 | # include <sys/types.h> |
---|
| 283 | #endif |
---|
| 284 | #if HAVE_SYS_STAT_H |
---|
| 285 | # include <sys/stat.h> |
---|
| 286 | #endif |
---|
| 287 | #if STDC_HEADERS |
---|
| 288 | # include <stdlib.h> |
---|
| 289 | # include <stddef.h> |
---|
| 290 | #else |
---|
| 291 | # if HAVE_STDLIB_H |
---|
| 292 | # include <stdlib.h> |
---|
| 293 | # endif |
---|
| 294 | #endif |
---|
| 295 | #if HAVE_STRING_H |
---|
| 296 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 297 | # include <memory.h> |
---|
| 298 | # endif |
---|
| 299 | # include <string.h> |
---|
| 300 | #endif |
---|
| 301 | #if HAVE_STRINGS_H |
---|
| 302 | # include <strings.h> |
---|
| 303 | #endif |
---|
| 304 | #if HAVE_INTTYPES_H |
---|
| 305 | # include <inttypes.h> |
---|
| 306 | #else |
---|
| 307 | # if HAVE_STDINT_H |
---|
| 308 | # include <stdint.h> |
---|
| 309 | # endif |
---|
| 310 | #endif |
---|
| 311 | #if HAVE_UNISTD_H |
---|
| 312 | # include <unistd.h> |
---|
| 313 | #endif" |
---|
| 314 | |
---|
[384] | 315 | 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP F77 FFLAGS ac_ct_F77 LN_S INSTALL EGREP RANLIB ac_ct_RANLIB POW_LIB LIBOBJS LINKER PGPLOTINC PGPLOTLIB CFITSIOINC CFITSIOLIB WCSINC WCSLIB LTLIBOBJS' |
---|
[107] | 316 | ac_subst_files='' |
---|
| 317 | |
---|
| 318 | # Initialize some variables set by options. |
---|
| 319 | ac_init_help= |
---|
| 320 | ac_init_version=false |
---|
| 321 | # The variables have the same names as the options, with |
---|
| 322 | # dashes changed to underlines. |
---|
| 323 | cache_file=/dev/null |
---|
| 324 | exec_prefix=NONE |
---|
| 325 | no_create= |
---|
| 326 | no_recursion= |
---|
| 327 | prefix=NONE |
---|
| 328 | program_prefix=NONE |
---|
| 329 | program_suffix=NONE |
---|
| 330 | program_transform_name=s,x,x, |
---|
| 331 | silent= |
---|
| 332 | site= |
---|
| 333 | srcdir= |
---|
| 334 | verbose= |
---|
| 335 | x_includes=NONE |
---|
| 336 | x_libraries=NONE |
---|
| 337 | |
---|
| 338 | # Installation directory options. |
---|
| 339 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 340 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 341 | # by default will actually change. |
---|
| 342 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 343 | bindir='${exec_prefix}/bin' |
---|
| 344 | sbindir='${exec_prefix}/sbin' |
---|
| 345 | libexecdir='${exec_prefix}/libexec' |
---|
| 346 | datadir='${prefix}/share' |
---|
| 347 | sysconfdir='${prefix}/etc' |
---|
| 348 | sharedstatedir='${prefix}/com' |
---|
| 349 | localstatedir='${prefix}/var' |
---|
| 350 | libdir='${exec_prefix}/lib' |
---|
| 351 | includedir='${prefix}/include' |
---|
| 352 | oldincludedir='/usr/include' |
---|
| 353 | infodir='${prefix}/info' |
---|
| 354 | mandir='${prefix}/man' |
---|
| 355 | |
---|
| 356 | ac_prev= |
---|
| 357 | for ac_option |
---|
| 358 | do |
---|
| 359 | # If the previous option needs an argument, assign it. |
---|
| 360 | if test -n "$ac_prev"; then |
---|
| 361 | eval "$ac_prev=\$ac_option" |
---|
| 362 | ac_prev= |
---|
| 363 | continue |
---|
| 364 | fi |
---|
| 365 | |
---|
| 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 367 | |
---|
| 368 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 369 | |
---|
| 370 | case $ac_option in |
---|
| 371 | |
---|
| 372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 373 | ac_prev=bindir ;; |
---|
| 374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 375 | bindir=$ac_optarg ;; |
---|
| 376 | |
---|
| 377 | -build | --build | --buil | --bui | --bu) |
---|
| 378 | ac_prev=build_alias ;; |
---|
| 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 380 | build_alias=$ac_optarg ;; |
---|
| 381 | |
---|
| 382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 384 | ac_prev=cache_file ;; |
---|
| 385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 387 | cache_file=$ac_optarg ;; |
---|
| 388 | |
---|
| 389 | --config-cache | -C) |
---|
| 390 | cache_file=config.cache ;; |
---|
| 391 | |
---|
| 392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 393 | ac_prev=datadir ;; |
---|
| 394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 395 | | --da=*) |
---|
| 396 | datadir=$ac_optarg ;; |
---|
| 397 | |
---|
| 398 | -disable-* | --disable-*) |
---|
| 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 400 | # Reject names that are not valid shell variable names. |
---|
| 401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 403 | { (exit 1); exit 1; }; } |
---|
| 404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 405 | eval "enable_$ac_feature=no" ;; |
---|
| 406 | |
---|
| 407 | -enable-* | --enable-*) |
---|
| 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 409 | # Reject names that are not valid shell variable names. |
---|
| 410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 412 | { (exit 1); exit 1; }; } |
---|
| 413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 414 | case $ac_option in |
---|
| 415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 416 | *) ac_optarg=yes ;; |
---|
| 417 | esac |
---|
| 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 419 | |
---|
| 420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 422 | | --exec | --exe | --ex) |
---|
| 423 | ac_prev=exec_prefix ;; |
---|
| 424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 426 | | --exec=* | --exe=* | --ex=*) |
---|
| 427 | exec_prefix=$ac_optarg ;; |
---|
| 428 | |
---|
| 429 | -gas | --gas | --ga | --g) |
---|
| 430 | # Obsolete; use --with-gas. |
---|
| 431 | with_gas=yes ;; |
---|
| 432 | |
---|
| 433 | -help | --help | --hel | --he | -h) |
---|
| 434 | ac_init_help=long ;; |
---|
| 435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 436 | ac_init_help=recursive ;; |
---|
| 437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 438 | ac_init_help=short ;; |
---|
| 439 | |
---|
| 440 | -host | --host | --hos | --ho) |
---|
| 441 | ac_prev=host_alias ;; |
---|
| 442 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 443 | host_alias=$ac_optarg ;; |
---|
| 444 | |
---|
| 445 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 446 | | --includ | --inclu | --incl | --inc) |
---|
| 447 | ac_prev=includedir ;; |
---|
| 448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 449 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 450 | includedir=$ac_optarg ;; |
---|
| 451 | |
---|
| 452 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 453 | ac_prev=infodir ;; |
---|
| 454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 455 | infodir=$ac_optarg ;; |
---|
| 456 | |
---|
| 457 | -libdir | --libdir | --libdi | --libd) |
---|
| 458 | ac_prev=libdir ;; |
---|
| 459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 460 | libdir=$ac_optarg ;; |
---|
| 461 | |
---|
| 462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 463 | | --libexe | --libex | --libe) |
---|
| 464 | ac_prev=libexecdir ;; |
---|
| 465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 466 | | --libexe=* | --libex=* | --libe=*) |
---|
| 467 | libexecdir=$ac_optarg ;; |
---|
| 468 | |
---|
| 469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 470 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 471 | | --locals | --local | --loca | --loc | --lo) |
---|
| 472 | ac_prev=localstatedir ;; |
---|
| 473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 476 | localstatedir=$ac_optarg ;; |
---|
| 477 | |
---|
| 478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 479 | ac_prev=mandir ;; |
---|
| 480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 481 | mandir=$ac_optarg ;; |
---|
| 482 | |
---|
| 483 | -nfp | --nfp | --nf) |
---|
| 484 | # Obsolete; use --without-fp. |
---|
| 485 | with_fp=no ;; |
---|
| 486 | |
---|
| 487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 488 | | --no-cr | --no-c | -n) |
---|
| 489 | no_create=yes ;; |
---|
| 490 | |
---|
| 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 493 | no_recursion=yes ;; |
---|
| 494 | |
---|
| 495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 497 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 498 | ac_prev=oldincludedir ;; |
---|
| 499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 502 | oldincludedir=$ac_optarg ;; |
---|
| 503 | |
---|
| 504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 505 | ac_prev=prefix ;; |
---|
| 506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 507 | prefix=$ac_optarg ;; |
---|
| 508 | |
---|
| 509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 510 | | --program-pre | --program-pr | --program-p) |
---|
| 511 | ac_prev=program_prefix ;; |
---|
| 512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 514 | program_prefix=$ac_optarg ;; |
---|
| 515 | |
---|
| 516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 517 | | --program-suf | --program-su | --program-s) |
---|
| 518 | ac_prev=program_suffix ;; |
---|
| 519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 521 | program_suffix=$ac_optarg ;; |
---|
| 522 | |
---|
| 523 | -program-transform-name | --program-transform-name \ |
---|
| 524 | | --program-transform-nam | --program-transform-na \ |
---|
| 525 | | --program-transform-n | --program-transform- \ |
---|
| 526 | | --program-transform | --program-transfor \ |
---|
| 527 | | --program-transfo | --program-transf \ |
---|
| 528 | | --program-trans | --program-tran \ |
---|
| 529 | | --progr-tra | --program-tr | --program-t) |
---|
| 530 | ac_prev=program_transform_name ;; |
---|
| 531 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 532 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 533 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 534 | | --program-transform=* | --program-transfor=* \ |
---|
| 535 | | --program-transfo=* | --program-transf=* \ |
---|
| 536 | | --program-trans=* | --program-tran=* \ |
---|
| 537 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 538 | program_transform_name=$ac_optarg ;; |
---|
| 539 | |
---|
| 540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 541 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 542 | silent=yes ;; |
---|
| 543 | |
---|
| 544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 545 | ac_prev=sbindir ;; |
---|
| 546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 547 | | --sbi=* | --sb=*) |
---|
| 548 | sbindir=$ac_optarg ;; |
---|
| 549 | |
---|
| 550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 552 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 553 | | --sha | --sh) |
---|
| 554 | ac_prev=sharedstatedir ;; |
---|
| 555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 558 | | --sha=* | --sh=*) |
---|
| 559 | sharedstatedir=$ac_optarg ;; |
---|
| 560 | |
---|
| 561 | -site | --site | --sit) |
---|
| 562 | ac_prev=site ;; |
---|
| 563 | -site=* | --site=* | --sit=*) |
---|
| 564 | site=$ac_optarg ;; |
---|
| 565 | |
---|
| 566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 567 | ac_prev=srcdir ;; |
---|
| 568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 569 | srcdir=$ac_optarg ;; |
---|
| 570 | |
---|
| 571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 572 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 573 | ac_prev=sysconfdir ;; |
---|
| 574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 576 | sysconfdir=$ac_optarg ;; |
---|
| 577 | |
---|
| 578 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 579 | ac_prev=target_alias ;; |
---|
| 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 581 | target_alias=$ac_optarg ;; |
---|
| 582 | |
---|
| 583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 584 | verbose=yes ;; |
---|
| 585 | |
---|
| 586 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 587 | ac_init_version=: ;; |
---|
| 588 | |
---|
| 589 | -with-* | --with-*) |
---|
| 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 591 | # Reject names that are not valid shell variable names. |
---|
| 592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 594 | { (exit 1); exit 1; }; } |
---|
| 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 596 | case $ac_option in |
---|
| 597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 598 | *) ac_optarg=yes ;; |
---|
| 599 | esac |
---|
| 600 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 601 | |
---|
| 602 | -without-* | --without-*) |
---|
| 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 604 | # Reject names that are not valid shell variable names. |
---|
| 605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 607 | { (exit 1); exit 1; }; } |
---|
| 608 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 609 | eval "with_$ac_package=no" ;; |
---|
| 610 | |
---|
| 611 | --x) |
---|
| 612 | # Obsolete; use --with-x. |
---|
| 613 | with_x=yes ;; |
---|
| 614 | |
---|
| 615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 616 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 617 | ac_prev=x_includes ;; |
---|
| 618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 620 | x_includes=$ac_optarg ;; |
---|
| 621 | |
---|
| 622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 624 | ac_prev=x_libraries ;; |
---|
| 625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 627 | x_libraries=$ac_optarg ;; |
---|
| 628 | |
---|
| 629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 630 | Try \`$0 --help' for more information." >&2 |
---|
| 631 | { (exit 1); exit 1; }; } |
---|
| 632 | ;; |
---|
| 633 | |
---|
| 634 | *=*) |
---|
| 635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 636 | # Reject names that are not valid shell variable names. |
---|
| 637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 639 | { (exit 1); exit 1; }; } |
---|
| 640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 641 | eval "$ac_envvar='$ac_optarg'" |
---|
| 642 | export $ac_envvar ;; |
---|
| 643 | |
---|
| 644 | *) |
---|
| 645 | # FIXME: should be removed in autoconf 3.0. |
---|
| 646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 650 | ;; |
---|
| 651 | |
---|
| 652 | esac |
---|
| 653 | done |
---|
| 654 | |
---|
| 655 | if test -n "$ac_prev"; then |
---|
| 656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 657 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 658 | { (exit 1); exit 1; }; } |
---|
| 659 | fi |
---|
| 660 | |
---|
| 661 | # Be sure to have absolute paths. |
---|
| 662 | for ac_var in exec_prefix prefix |
---|
| 663 | do |
---|
| 664 | eval ac_val=$`echo $ac_var` |
---|
| 665 | case $ac_val in |
---|
| 666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 668 | { (exit 1); exit 1; }; };; |
---|
| 669 | esac |
---|
| 670 | done |
---|
| 671 | |
---|
| 672 | # Be sure to have absolute paths. |
---|
| 673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
[349] | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
[107] | 675 | do |
---|
| 676 | eval ac_val=$`echo $ac_var` |
---|
| 677 | case $ac_val in |
---|
| 678 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 680 | { (exit 1); exit 1; }; };; |
---|
| 681 | esac |
---|
| 682 | done |
---|
| 683 | |
---|
| 684 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 685 | # used to hold the argument of --host etc. |
---|
| 686 | # FIXME: To remove some day. |
---|
| 687 | build=$build_alias |
---|
| 688 | host=$host_alias |
---|
| 689 | target=$target_alias |
---|
| 690 | |
---|
| 691 | # FIXME: To remove some day. |
---|
| 692 | if test "x$host_alias" != x; then |
---|
| 693 | if test "x$build_alias" = x; then |
---|
| 694 | cross_compiling=maybe |
---|
| 695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 696 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 697 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 698 | cross_compiling=yes |
---|
| 699 | fi |
---|
| 700 | fi |
---|
| 701 | |
---|
| 702 | ac_tool_prefix= |
---|
| 703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 704 | |
---|
| 705 | test "$silent" = yes && exec 6>/dev/null |
---|
| 706 | |
---|
| 707 | |
---|
| 708 | # Find the source files, if location was not specified. |
---|
| 709 | if test -z "$srcdir"; then |
---|
| 710 | ac_srcdir_defaulted=yes |
---|
| 711 | # Try the directory containing this script, then its parent. |
---|
| 712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 714 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 715 | X"$0" : 'X\(//\)$' \| \ |
---|
| 716 | X"$0" : 'X\(/\)' \| \ |
---|
| 717 | . : '\(.\)' 2>/dev/null || |
---|
[107] | 718 | echo X"$0" | |
---|
| 719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 722 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 723 | s/.*/./; q'` |
---|
| 724 | srcdir=$ac_confdir |
---|
| 725 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 726 | srcdir=.. |
---|
| 727 | fi |
---|
| 728 | else |
---|
| 729 | ac_srcdir_defaulted=no |
---|
| 730 | fi |
---|
| 731 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 732 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 734 | { (exit 1); exit 1; }; } |
---|
| 735 | else |
---|
| 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 737 | { (exit 1); exit 1; }; } |
---|
| 738 | fi |
---|
| 739 | fi |
---|
| 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 742 | { (exit 1); exit 1; }; } |
---|
| 743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 744 | ac_env_build_alias_set=${build_alias+set} |
---|
| 745 | ac_env_build_alias_value=$build_alias |
---|
| 746 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 747 | ac_cv_env_build_alias_value=$build_alias |
---|
| 748 | ac_env_host_alias_set=${host_alias+set} |
---|
| 749 | ac_env_host_alias_value=$host_alias |
---|
| 750 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 751 | ac_cv_env_host_alias_value=$host_alias |
---|
| 752 | ac_env_target_alias_set=${target_alias+set} |
---|
| 753 | ac_env_target_alias_value=$target_alias |
---|
| 754 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 755 | ac_cv_env_target_alias_value=$target_alias |
---|
| 756 | ac_env_CXX_set=${CXX+set} |
---|
| 757 | ac_env_CXX_value=$CXX |
---|
| 758 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 759 | ac_cv_env_CXX_value=$CXX |
---|
| 760 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 761 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 762 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 763 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 764 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 765 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 767 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 769 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 772 | ac_env_CC_set=${CC+set} |
---|
| 773 | ac_env_CC_value=$CC |
---|
| 774 | ac_cv_env_CC_set=${CC+set} |
---|
| 775 | ac_cv_env_CC_value=$CC |
---|
| 776 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 777 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 778 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 779 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 780 | ac_env_CPP_set=${CPP+set} |
---|
| 781 | ac_env_CPP_value=$CPP |
---|
| 782 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 783 | ac_cv_env_CPP_value=$CPP |
---|
[351] | 784 | ac_env_F77_set=${F77+set} |
---|
| 785 | ac_env_F77_value=$F77 |
---|
| 786 | ac_cv_env_F77_set=${F77+set} |
---|
| 787 | ac_cv_env_F77_value=$F77 |
---|
| 788 | ac_env_FFLAGS_set=${FFLAGS+set} |
---|
| 789 | ac_env_FFLAGS_value=$FFLAGS |
---|
| 790 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
---|
| 791 | ac_cv_env_FFLAGS_value=$FFLAGS |
---|
[107] | 792 | |
---|
| 793 | # |
---|
| 794 | # Report the --help message. |
---|
| 795 | # |
---|
| 796 | if test "$ac_init_help" = "long"; then |
---|
| 797 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 798 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 799 | cat <<_ACEOF |
---|
[482] | 800 | \`configure' configures Duchamp 1.1.6 to adapt to many kinds of systems. |
---|
[107] | 801 | |
---|
| 802 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 803 | |
---|
| 804 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 805 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 806 | |
---|
| 807 | Defaults for the options are specified in brackets. |
---|
| 808 | |
---|
| 809 | Configuration: |
---|
| 810 | -h, --help display this help and exit |
---|
| 811 | --help=short display options specific to this package |
---|
| 812 | --help=recursive display the short help of all the included packages |
---|
| 813 | -V, --version display version information and exit |
---|
| 814 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 815 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 816 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 817 | -n, --no-create do not create output files |
---|
| 818 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 819 | |
---|
| 820 | _ACEOF |
---|
| 821 | |
---|
| 822 | cat <<_ACEOF |
---|
| 823 | Installation directories: |
---|
| 824 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
[349] | 825 | [$ac_default_prefix] |
---|
[107] | 826 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
[349] | 827 | [PREFIX] |
---|
[107] | 828 | |
---|
| 829 | By default, \`make install' will install all the files in |
---|
| 830 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 831 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 832 | for instance \`--prefix=\$HOME'. |
---|
| 833 | |
---|
| 834 | For better control, use the options below. |
---|
| 835 | |
---|
| 836 | Fine tuning of the installation directories: |
---|
| 837 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 838 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 839 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 840 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 841 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 842 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 843 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 844 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 845 | --includedir=DIR C header files [PREFIX/include] |
---|
| 846 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 847 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 848 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 849 | _ACEOF |
---|
| 850 | |
---|
| 851 | cat <<\_ACEOF |
---|
| 852 | |
---|
| 853 | X features: |
---|
| 854 | --x-includes=DIR X include files are in DIR |
---|
| 855 | --x-libraries=DIR X library files are in DIR |
---|
| 856 | _ACEOF |
---|
| 857 | fi |
---|
| 858 | |
---|
| 859 | if test -n "$ac_init_help"; then |
---|
| 860 | case $ac_init_help in |
---|
[482] | 861 | short | recursive ) echo "Configuration of Duchamp 1.1.6:";; |
---|
[107] | 862 | esac |
---|
| 863 | cat <<\_ACEOF |
---|
| 864 | |
---|
| 865 | Optional Packages: |
---|
| 866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[342] | 868 | |
---|
| 869 | --with-pgplot=no Compile without PGPLOT graphics capabilities. |
---|
| 870 | --without-pgplot Compile without PGPLOT graphics capabilities. |
---|
| 871 | --with-pgplot=<dir> Compile with PGPLOT graphics capabilities, using the |
---|
| 872 | directory <dir> to specify the PGPLOT library., |
---|
| 873 | |
---|
[107] | 874 | --with-x use the X Window System |
---|
[342] | 875 | --with-cfitsio=<dir> The CFITSIO library and include files are in |
---|
| 876 | directory <dir>. |
---|
| 877 | --with-wcslib=<dir> The WCSLIB library and include files are in |
---|
| 878 | directory <dir>. |
---|
[107] | 879 | |
---|
| 880 | Some influential environment variables: |
---|
| 881 | CXX C++ compiler command |
---|
| 882 | CXXFLAGS C++ compiler flags |
---|
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 884 | nonstandard directory <lib dir> |
---|
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 886 | headers in a nonstandard directory <include dir> |
---|
| 887 | CC C compiler command |
---|
| 888 | CFLAGS C compiler flags |
---|
| 889 | CPP C preprocessor |
---|
[351] | 890 | F77 Fortran 77 compiler command |
---|
| 891 | FFLAGS Fortran 77 compiler flags |
---|
[107] | 892 | |
---|
| 893 | Use these variables to override the choices made by `configure' or to help |
---|
| 894 | it to find libraries and programs with nonstandard names/locations. |
---|
| 895 | |
---|
[121] | 896 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 897 | _ACEOF |
---|
| 898 | fi |
---|
| 899 | |
---|
| 900 | if test "$ac_init_help" = "recursive"; then |
---|
| 901 | # If there are subdirs, report their specific --help. |
---|
| 902 | ac_popdir=`pwd` |
---|
| 903 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 904 | test -d $ac_dir || continue |
---|
| 905 | ac_builddir=. |
---|
| 906 | |
---|
| 907 | if test "$ac_dir" != .; then |
---|
| 908 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 909 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 910 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 911 | else |
---|
| 912 | ac_dir_suffix= ac_top_builddir= |
---|
| 913 | fi |
---|
| 914 | |
---|
| 915 | case $srcdir in |
---|
| 916 | .) # No --srcdir option. We are building in place. |
---|
| 917 | ac_srcdir=. |
---|
| 918 | if test -z "$ac_top_builddir"; then |
---|
| 919 | ac_top_srcdir=. |
---|
| 920 | else |
---|
| 921 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 922 | fi ;; |
---|
| 923 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 924 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 925 | ac_top_srcdir=$srcdir ;; |
---|
| 926 | *) # Relative path. |
---|
| 927 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 928 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 929 | esac |
---|
| 930 | |
---|
[349] | 931 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 932 | # the directories may not exist. |
---|
| 933 | case `pwd` in |
---|
| 934 | .) ac_abs_builddir="$ac_dir";; |
---|
| 935 | *) |
---|
| 936 | case "$ac_dir" in |
---|
| 937 | .) ac_abs_builddir=`pwd`;; |
---|
| 938 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 939 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 940 | esac;; |
---|
| 941 | esac |
---|
| 942 | case $ac_abs_builddir in |
---|
| 943 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 944 | *) |
---|
| 945 | case ${ac_top_builddir}. in |
---|
| 946 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 947 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 948 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 949 | esac;; |
---|
| 950 | esac |
---|
| 951 | case $ac_abs_builddir in |
---|
| 952 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 953 | *) |
---|
| 954 | case $ac_srcdir in |
---|
| 955 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 956 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 957 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 958 | esac;; |
---|
| 959 | esac |
---|
| 960 | case $ac_abs_builddir in |
---|
| 961 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 962 | *) |
---|
| 963 | case $ac_top_srcdir in |
---|
| 964 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 965 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 966 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 967 | esac;; |
---|
| 968 | esac |
---|
| 969 | |
---|
[107] | 970 | cd $ac_dir |
---|
| 971 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 972 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 973 | echo |
---|
| 974 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 975 | elif test -f $ac_srcdir/configure; then |
---|
| 976 | echo |
---|
| 977 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 978 | elif test -f $ac_srcdir/configure.ac || |
---|
[349] | 979 | test -f $ac_srcdir/configure.in; then |
---|
[107] | 980 | echo |
---|
| 981 | $ac_configure --help |
---|
| 982 | else |
---|
| 983 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 984 | fi |
---|
| 985 | cd $ac_popdir |
---|
| 986 | done |
---|
| 987 | fi |
---|
| 988 | |
---|
| 989 | test -n "$ac_init_help" && exit 0 |
---|
| 990 | if $ac_init_version; then |
---|
| 991 | cat <<\_ACEOF |
---|
[482] | 992 | Duchamp configure 1.1.6 |
---|
[349] | 993 | generated by GNU Autoconf 2.59 |
---|
[107] | 994 | |
---|
[349] | 995 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
[107] | 996 | This configure script is free software; the Free Software Foundation |
---|
| 997 | gives unlimited permission to copy, distribute and modify it. |
---|
| 998 | _ACEOF |
---|
| 999 | exit 0 |
---|
| 1000 | fi |
---|
| 1001 | exec 5>config.log |
---|
| 1002 | cat >&5 <<_ACEOF |
---|
| 1003 | This file contains any messages produced by compilers while |
---|
| 1004 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1005 | |
---|
[482] | 1006 | It was created by Duchamp $as_me 1.1.6, which was |
---|
[349] | 1007 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
[107] | 1008 | |
---|
| 1009 | $ $0 $@ |
---|
| 1010 | |
---|
| 1011 | _ACEOF |
---|
| 1012 | { |
---|
| 1013 | cat <<_ASUNAME |
---|
| 1014 | ## --------- ## |
---|
| 1015 | ## Platform. ## |
---|
| 1016 | ## --------- ## |
---|
| 1017 | |
---|
| 1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1023 | |
---|
| 1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1026 | |
---|
| 1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1034 | |
---|
| 1035 | _ASUNAME |
---|
| 1036 | |
---|
| 1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1038 | for as_dir in $PATH |
---|
| 1039 | do |
---|
| 1040 | IFS=$as_save_IFS |
---|
| 1041 | test -z "$as_dir" && as_dir=. |
---|
| 1042 | echo "PATH: $as_dir" |
---|
| 1043 | done |
---|
| 1044 | |
---|
| 1045 | } >&5 |
---|
| 1046 | |
---|
| 1047 | cat >&5 <<_ACEOF |
---|
| 1048 | |
---|
| 1049 | |
---|
| 1050 | ## ----------- ## |
---|
| 1051 | ## Core tests. ## |
---|
| 1052 | ## ----------- ## |
---|
| 1053 | |
---|
| 1054 | _ACEOF |
---|
| 1055 | |
---|
| 1056 | |
---|
| 1057 | # Keep a trace of the command line. |
---|
| 1058 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1059 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1060 | # Also quote any args containing shell meta-characters. |
---|
| 1061 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1062 | ac_configure_args= |
---|
| 1063 | ac_configure_args0= |
---|
| 1064 | ac_configure_args1= |
---|
| 1065 | ac_sep= |
---|
| 1066 | ac_must_keep_next=false |
---|
| 1067 | for ac_pass in 1 2 |
---|
| 1068 | do |
---|
| 1069 | for ac_arg |
---|
| 1070 | do |
---|
| 1071 | case $ac_arg in |
---|
| 1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1074 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1075 | continue ;; |
---|
| 1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1078 | esac |
---|
| 1079 | case $ac_pass in |
---|
| 1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1081 | 2) |
---|
| 1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1083 | if test $ac_must_keep_next = true; then |
---|
[349] | 1084 | ac_must_keep_next=false # Got value, back to normal. |
---|
[107] | 1085 | else |
---|
[349] | 1086 | case $ac_arg in |
---|
| 1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1090 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1091 | case "$ac_configure_args0 " in |
---|
| 1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1093 | esac |
---|
| 1094 | ;; |
---|
| 1095 | -* ) ac_must_keep_next=true ;; |
---|
| 1096 | esac |
---|
[107] | 1097 | fi |
---|
| 1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1099 | # Get rid of the leading space. |
---|
| 1100 | ac_sep=" " |
---|
| 1101 | ;; |
---|
| 1102 | esac |
---|
| 1103 | done |
---|
| 1104 | done |
---|
| 1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1107 | |
---|
| 1108 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1109 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1110 | # would cause problems or look ugly. |
---|
| 1111 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1112 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1113 | trap 'exit_status=$? |
---|
| 1114 | # Save into config.log some information that might help in debugging. |
---|
| 1115 | { |
---|
| 1116 | echo |
---|
| 1117 | |
---|
| 1118 | cat <<\_ASBOX |
---|
| 1119 | ## ---------------- ## |
---|
| 1120 | ## Cache variables. ## |
---|
| 1121 | ## ---------------- ## |
---|
| 1122 | _ASBOX |
---|
| 1123 | echo |
---|
| 1124 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1125 | { |
---|
| 1126 | (set) 2>&1 | |
---|
| 1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1128 | *ac_space=\ *) |
---|
| 1129 | sed -n \ |
---|
[349] | 1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
[107] | 1132 | ;; |
---|
| 1133 | *) |
---|
| 1134 | sed -n \ |
---|
[349] | 1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
[107] | 1136 | ;; |
---|
| 1137 | esac; |
---|
| 1138 | } |
---|
| 1139 | echo |
---|
| 1140 | |
---|
| 1141 | cat <<\_ASBOX |
---|
| 1142 | ## ----------------- ## |
---|
| 1143 | ## Output variables. ## |
---|
| 1144 | ## ----------------- ## |
---|
| 1145 | _ASBOX |
---|
| 1146 | echo |
---|
| 1147 | for ac_var in $ac_subst_vars |
---|
| 1148 | do |
---|
| 1149 | eval ac_val=$`echo $ac_var` |
---|
| 1150 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1151 | done | sort |
---|
| 1152 | echo |
---|
| 1153 | |
---|
| 1154 | if test -n "$ac_subst_files"; then |
---|
| 1155 | cat <<\_ASBOX |
---|
| 1156 | ## ------------- ## |
---|
| 1157 | ## Output files. ## |
---|
| 1158 | ## ------------- ## |
---|
| 1159 | _ASBOX |
---|
| 1160 | echo |
---|
| 1161 | for ac_var in $ac_subst_files |
---|
| 1162 | do |
---|
| 1163 | eval ac_val=$`echo $ac_var` |
---|
[349] | 1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
[107] | 1165 | done | sort |
---|
| 1166 | echo |
---|
| 1167 | fi |
---|
| 1168 | |
---|
| 1169 | if test -s confdefs.h; then |
---|
| 1170 | cat <<\_ASBOX |
---|
| 1171 | ## ----------- ## |
---|
| 1172 | ## confdefs.h. ## |
---|
| 1173 | ## ----------- ## |
---|
| 1174 | _ASBOX |
---|
| 1175 | echo |
---|
| 1176 | sed "/^$/d" confdefs.h | sort |
---|
| 1177 | echo |
---|
| 1178 | fi |
---|
| 1179 | test "$ac_signal" != 0 && |
---|
| 1180 | echo "$as_me: caught signal $ac_signal" |
---|
| 1181 | echo "$as_me: exit $exit_status" |
---|
| 1182 | } >&5 |
---|
[349] | 1183 | rm -f core *.core && |
---|
[107] | 1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1185 | exit $exit_status |
---|
| 1186 | ' 0 |
---|
| 1187 | for ac_signal in 1 2 13 15; do |
---|
| 1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1189 | done |
---|
| 1190 | ac_signal=0 |
---|
| 1191 | |
---|
| 1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1193 | rm -rf conftest* confdefs.h |
---|
| 1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1195 | echo >confdefs.h |
---|
| 1196 | |
---|
| 1197 | # Predefined preprocessor variables. |
---|
| 1198 | |
---|
| 1199 | cat >>confdefs.h <<_ACEOF |
---|
| 1200 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1201 | _ACEOF |
---|
| 1202 | |
---|
| 1203 | |
---|
| 1204 | cat >>confdefs.h <<_ACEOF |
---|
| 1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1206 | _ACEOF |
---|
| 1207 | |
---|
| 1208 | |
---|
| 1209 | cat >>confdefs.h <<_ACEOF |
---|
| 1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1211 | _ACEOF |
---|
| 1212 | |
---|
| 1213 | |
---|
| 1214 | cat >>confdefs.h <<_ACEOF |
---|
| 1215 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1216 | _ACEOF |
---|
| 1217 | |
---|
| 1218 | |
---|
| 1219 | cat >>confdefs.h <<_ACEOF |
---|
| 1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1221 | _ACEOF |
---|
| 1222 | |
---|
| 1223 | |
---|
| 1224 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1225 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1226 | if test -z "$CONFIG_SITE"; then |
---|
| 1227 | if test "x$prefix" != xNONE; then |
---|
| 1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1229 | else |
---|
| 1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1231 | fi |
---|
| 1232 | fi |
---|
| 1233 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1234 | if test -r "$ac_site_file"; then |
---|
| 1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1236 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1237 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1238 | . "$ac_site_file" |
---|
| 1239 | fi |
---|
| 1240 | done |
---|
| 1241 | |
---|
| 1242 | if test -r "$cache_file"; then |
---|
| 1243 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1244 | # files actually), so we avoid doing that. |
---|
| 1245 | if test -f "$cache_file"; then |
---|
| 1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1247 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1248 | case $cache_file in |
---|
| 1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1250 | *) . ./$cache_file;; |
---|
| 1251 | esac |
---|
| 1252 | fi |
---|
| 1253 | else |
---|
| 1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1255 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1256 | >$cache_file |
---|
| 1257 | fi |
---|
| 1258 | |
---|
| 1259 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1260 | # value. |
---|
| 1261 | ac_cache_corrupted=false |
---|
| 1262 | for ac_var in `(set) 2>&1 | |
---|
[349] | 1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
[107] | 1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1265 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1267 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1268 | case $ac_old_set,$ac_new_set in |
---|
| 1269 | set,) |
---|
| 1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1272 | ac_cache_corrupted=: ;; |
---|
| 1273 | ,set) |
---|
| 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1276 | ac_cache_corrupted=: ;; |
---|
| 1277 | ,);; |
---|
| 1278 | *) |
---|
| 1279 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
[349] | 1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
[107] | 1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
[349] | 1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
[107] | 1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
[349] | 1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
[107] | 1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
[349] | 1286 | ac_cache_corrupted=: |
---|
[107] | 1287 | fi;; |
---|
| 1288 | esac |
---|
| 1289 | # Pass precious variables to config.status. |
---|
| 1290 | if test "$ac_new_set" = set; then |
---|
| 1291 | case $ac_new_val in |
---|
| 1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1294 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1295 | esac |
---|
| 1296 | case " $ac_configure_args " in |
---|
| 1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1299 | esac |
---|
| 1300 | fi |
---|
| 1301 | done |
---|
| 1302 | if $ac_cache_corrupted; then |
---|
| 1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1307 | { (exit 1); exit 1; }; } |
---|
| 1308 | fi |
---|
| 1309 | |
---|
| 1310 | ac_ext=c |
---|
| 1311 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
[110] | 1343 | ac_config_headers="$ac_config_headers src/config.h" |
---|
[107] | 1344 | |
---|
| 1345 | |
---|
[342] | 1346 | |
---|
[107] | 1347 | # Checks for programs. |
---|
| 1348 | ac_ext=cc |
---|
| 1349 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1350 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1351 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1352 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1353 | if test -n "$ac_tool_prefix"; then |
---|
| 1354 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1355 | do |
---|
| 1356 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1357 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1358 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1360 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1362 | else |
---|
| 1363 | if test -n "$CXX"; then |
---|
| 1364 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1365 | else |
---|
| 1366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1367 | for as_dir in $PATH |
---|
| 1368 | do |
---|
| 1369 | IFS=$as_save_IFS |
---|
| 1370 | test -z "$as_dir" && as_dir=. |
---|
| 1371 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1373 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1375 | break 2 |
---|
| 1376 | fi |
---|
| 1377 | done |
---|
| 1378 | done |
---|
| 1379 | |
---|
| 1380 | fi |
---|
| 1381 | fi |
---|
| 1382 | CXX=$ac_cv_prog_CXX |
---|
| 1383 | if test -n "$CXX"; then |
---|
| 1384 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1385 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1386 | else |
---|
| 1387 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1388 | echo "${ECHO_T}no" >&6 |
---|
| 1389 | fi |
---|
| 1390 | |
---|
| 1391 | test -n "$CXX" && break |
---|
| 1392 | done |
---|
| 1393 | fi |
---|
| 1394 | if test -z "$CXX"; then |
---|
| 1395 | ac_ct_CXX=$CXX |
---|
| 1396 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1397 | do |
---|
| 1398 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1399 | set dummy $ac_prog; ac_word=$2 |
---|
| 1400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1402 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1404 | else |
---|
| 1405 | if test -n "$ac_ct_CXX"; then |
---|
| 1406 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1407 | else |
---|
| 1408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1409 | for as_dir in $PATH |
---|
| 1410 | do |
---|
| 1411 | IFS=$as_save_IFS |
---|
| 1412 | test -z "$as_dir" && as_dir=. |
---|
| 1413 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1415 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1417 | break 2 |
---|
| 1418 | fi |
---|
| 1419 | done |
---|
| 1420 | done |
---|
| 1421 | |
---|
| 1422 | fi |
---|
| 1423 | fi |
---|
| 1424 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1425 | if test -n "$ac_ct_CXX"; then |
---|
| 1426 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1427 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1428 | else |
---|
| 1429 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1430 | echo "${ECHO_T}no" >&6 |
---|
| 1431 | fi |
---|
| 1432 | |
---|
| 1433 | test -n "$ac_ct_CXX" && break |
---|
| 1434 | done |
---|
| 1435 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1436 | |
---|
| 1437 | CXX=$ac_ct_CXX |
---|
| 1438 | fi |
---|
| 1439 | |
---|
| 1440 | |
---|
| 1441 | # Provide some information about the compiler. |
---|
| 1442 | echo "$as_me:$LINENO:" \ |
---|
| 1443 | "checking for C++ compiler version" >&5 |
---|
| 1444 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1445 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1446 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1447 | ac_status=$? |
---|
| 1448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1449 | (exit $ac_status); } |
---|
| 1450 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1451 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1452 | ac_status=$? |
---|
| 1453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1454 | (exit $ac_status); } |
---|
| 1455 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1456 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1457 | ac_status=$? |
---|
| 1458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1459 | (exit $ac_status); } |
---|
| 1460 | |
---|
| 1461 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1462 | /* confdefs.h. */ |
---|
| 1463 | _ACEOF |
---|
| 1464 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1466 | /* end confdefs.h. */ |
---|
| 1467 | |
---|
| 1468 | int |
---|
| 1469 | main () |
---|
| 1470 | { |
---|
| 1471 | |
---|
| 1472 | ; |
---|
| 1473 | return 0; |
---|
| 1474 | } |
---|
| 1475 | _ACEOF |
---|
| 1476 | ac_clean_files_save=$ac_clean_files |
---|
| 1477 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1478 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1479 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1480 | # of exeext. |
---|
[349] | 1481 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1482 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
[107] | 1483 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1484 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1485 | (eval $ac_link_default) 2>&5 |
---|
| 1486 | ac_status=$? |
---|
| 1487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1488 | (exit $ac_status); }; then |
---|
| 1489 | # Find the output, starting from the most likely. This scheme is |
---|
| 1490 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1491 | # resort. |
---|
| 1492 | |
---|
| 1493 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1494 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1495 | ac_cv_exeext= |
---|
| 1496 | # b.out is created by i960 compilers. |
---|
| 1497 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1498 | do |
---|
| 1499 | test -f "$ac_file" || continue |
---|
| 1500 | case $ac_file in |
---|
| 1501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
[349] | 1502 | ;; |
---|
[107] | 1503 | conftest.$ac_ext ) |
---|
[349] | 1504 | # This is the source file. |
---|
| 1505 | ;; |
---|
[107] | 1506 | [ab].out ) |
---|
[349] | 1507 | # We found the default executable, but exeext='' is most |
---|
| 1508 | # certainly right. |
---|
| 1509 | break;; |
---|
[107] | 1510 | *.* ) |
---|
[349] | 1511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1512 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1513 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1514 | # maintain Libtool? --akim. |
---|
| 1515 | export ac_cv_exeext |
---|
| 1516 | break;; |
---|
[107] | 1517 | * ) |
---|
[349] | 1518 | break;; |
---|
[107] | 1519 | esac |
---|
| 1520 | done |
---|
| 1521 | else |
---|
| 1522 | echo "$as_me: failed program was:" >&5 |
---|
| 1523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1524 | |
---|
| 1525 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1526 | See \`config.log' for more details." >&5 |
---|
| 1527 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1528 | See \`config.log' for more details." >&2;} |
---|
| 1529 | { (exit 77); exit 77; }; } |
---|
| 1530 | fi |
---|
| 1531 | |
---|
| 1532 | ac_exeext=$ac_cv_exeext |
---|
| 1533 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1534 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1535 | |
---|
| 1536 | # Check the compiler produces executables we can run. If not, either |
---|
| 1537 | # the compiler is broken, or we cross compile. |
---|
| 1538 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1539 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1540 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1541 | # If not cross compiling, check that we can run a simple program. |
---|
| 1542 | if test "$cross_compiling" != yes; then |
---|
| 1543 | if { ac_try='./$ac_file' |
---|
| 1544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1545 | (eval $ac_try) 2>&5 |
---|
| 1546 | ac_status=$? |
---|
| 1547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1548 | (exit $ac_status); }; }; then |
---|
| 1549 | cross_compiling=no |
---|
| 1550 | else |
---|
| 1551 | if test "$cross_compiling" = maybe; then |
---|
| 1552 | cross_compiling=yes |
---|
| 1553 | else |
---|
| 1554 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1555 | If you meant to cross compile, use \`--host'. |
---|
| 1556 | See \`config.log' for more details." >&5 |
---|
| 1557 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1558 | If you meant to cross compile, use \`--host'. |
---|
| 1559 | See \`config.log' for more details." >&2;} |
---|
| 1560 | { (exit 1); exit 1; }; } |
---|
| 1561 | fi |
---|
| 1562 | fi |
---|
| 1563 | fi |
---|
| 1564 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1565 | echo "${ECHO_T}yes" >&6 |
---|
| 1566 | |
---|
| 1567 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1568 | ac_clean_files=$ac_clean_files_save |
---|
| 1569 | # Check the compiler produces executables we can run. If not, either |
---|
| 1570 | # the compiler is broken, or we cross compile. |
---|
| 1571 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1572 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1573 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1574 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1575 | |
---|
| 1576 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1577 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1579 | (eval $ac_link) 2>&5 |
---|
| 1580 | ac_status=$? |
---|
| 1581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1582 | (exit $ac_status); }; then |
---|
| 1583 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1584 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1585 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1586 | # `rm'. |
---|
| 1587 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1588 | test -f "$ac_file" || continue |
---|
| 1589 | case $ac_file in |
---|
| 1590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1591 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
[349] | 1592 | export ac_cv_exeext |
---|
| 1593 | break;; |
---|
[107] | 1594 | * ) break;; |
---|
| 1595 | esac |
---|
| 1596 | done |
---|
| 1597 | else |
---|
| 1598 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1599 | See \`config.log' for more details." >&5 |
---|
| 1600 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1601 | See \`config.log' for more details." >&2;} |
---|
| 1602 | { (exit 1); exit 1; }; } |
---|
| 1603 | fi |
---|
| 1604 | |
---|
| 1605 | rm -f conftest$ac_cv_exeext |
---|
| 1606 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 1607 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 1608 | |
---|
| 1609 | rm -f conftest.$ac_ext |
---|
| 1610 | EXEEXT=$ac_cv_exeext |
---|
| 1611 | ac_exeext=$EXEEXT |
---|
| 1612 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 1613 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 1614 | if test "${ac_cv_objext+set}" = set; then |
---|
| 1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1616 | else |
---|
| 1617 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1618 | /* confdefs.h. */ |
---|
| 1619 | _ACEOF |
---|
| 1620 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1621 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1622 | /* end confdefs.h. */ |
---|
| 1623 | |
---|
| 1624 | int |
---|
| 1625 | main () |
---|
| 1626 | { |
---|
| 1627 | |
---|
| 1628 | ; |
---|
| 1629 | return 0; |
---|
| 1630 | } |
---|
| 1631 | _ACEOF |
---|
| 1632 | rm -f conftest.o conftest.obj |
---|
| 1633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1634 | (eval $ac_compile) 2>&5 |
---|
| 1635 | ac_status=$? |
---|
| 1636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1637 | (exit $ac_status); }; then |
---|
| 1638 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 1639 | case $ac_file in |
---|
| 1640 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 1641 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 1642 | break;; |
---|
| 1643 | esac |
---|
| 1644 | done |
---|
| 1645 | else |
---|
| 1646 | echo "$as_me: failed program was:" >&5 |
---|
| 1647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1648 | |
---|
| 1649 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 1650 | See \`config.log' for more details." >&5 |
---|
| 1651 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 1652 | See \`config.log' for more details." >&2;} |
---|
| 1653 | { (exit 1); exit 1; }; } |
---|
| 1654 | fi |
---|
| 1655 | |
---|
| 1656 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 1657 | fi |
---|
| 1658 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 1659 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 1660 | OBJEXT=$ac_cv_objext |
---|
| 1661 | ac_objext=$OBJEXT |
---|
| 1662 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 1663 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 1664 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1666 | else |
---|
| 1667 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1668 | /* confdefs.h. */ |
---|
| 1669 | _ACEOF |
---|
| 1670 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1671 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1672 | /* end confdefs.h. */ |
---|
| 1673 | |
---|
| 1674 | int |
---|
| 1675 | main () |
---|
| 1676 | { |
---|
| 1677 | #ifndef __GNUC__ |
---|
| 1678 | choke me |
---|
| 1679 | #endif |
---|
| 1680 | |
---|
| 1681 | ; |
---|
| 1682 | return 0; |
---|
| 1683 | } |
---|
| 1684 | _ACEOF |
---|
| 1685 | rm -f conftest.$ac_objext |
---|
| 1686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 1687 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 1688 | ac_status=$? |
---|
[349] | 1689 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1690 | rm -f conftest.er1 |
---|
| 1691 | cat conftest.err >&5 |
---|
[107] | 1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1693 | (exit $ac_status); } && |
---|
[349] | 1694 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 1695 | || test ! -s conftest.err' |
---|
[107] | 1696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1697 | (eval $ac_try) 2>&5 |
---|
| 1698 | ac_status=$? |
---|
| 1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 1700 | (exit $ac_status); }; } && |
---|
| 1701 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1703 | (eval $ac_try) 2>&5 |
---|
| 1704 | ac_status=$? |
---|
| 1705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 1706 | (exit $ac_status); }; }; then |
---|
| 1707 | ac_compiler_gnu=yes |
---|
| 1708 | else |
---|
| 1709 | echo "$as_me: failed program was:" >&5 |
---|
| 1710 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1711 | |
---|
| 1712 | ac_compiler_gnu=no |
---|
| 1713 | fi |
---|
[349] | 1714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 1715 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 1716 | |
---|
| 1717 | fi |
---|
| 1718 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 1719 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 1720 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 1721 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 1722 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 1723 | CXXFLAGS="-g" |
---|
| 1724 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 1725 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 1726 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 1727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1728 | else |
---|
| 1729 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1730 | /* confdefs.h. */ |
---|
| 1731 | _ACEOF |
---|
| 1732 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1734 | /* end confdefs.h. */ |
---|
| 1735 | |
---|
| 1736 | int |
---|
| 1737 | main () |
---|
| 1738 | { |
---|
| 1739 | |
---|
| 1740 | ; |
---|
| 1741 | return 0; |
---|
| 1742 | } |
---|
| 1743 | _ACEOF |
---|
| 1744 | rm -f conftest.$ac_objext |
---|
| 1745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 1746 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 1747 | ac_status=$? |
---|
[349] | 1748 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1749 | rm -f conftest.er1 |
---|
| 1750 | cat conftest.err >&5 |
---|
[107] | 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1752 | (exit $ac_status); } && |
---|
[349] | 1753 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 1754 | || test ! -s conftest.err' |
---|
[107] | 1755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1756 | (eval $ac_try) 2>&5 |
---|
| 1757 | ac_status=$? |
---|
| 1758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 1759 | (exit $ac_status); }; } && |
---|
| 1760 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1762 | (eval $ac_try) 2>&5 |
---|
| 1763 | ac_status=$? |
---|
| 1764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 1765 | (exit $ac_status); }; }; then |
---|
| 1766 | ac_cv_prog_cxx_g=yes |
---|
| 1767 | else |
---|
| 1768 | echo "$as_me: failed program was:" >&5 |
---|
| 1769 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1770 | |
---|
| 1771 | ac_cv_prog_cxx_g=no |
---|
| 1772 | fi |
---|
[349] | 1773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 1774 | fi |
---|
| 1775 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 1776 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 1777 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1778 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 1779 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1780 | if test "$GXX" = yes; then |
---|
| 1781 | CXXFLAGS="-g -O2" |
---|
| 1782 | else |
---|
| 1783 | CXXFLAGS="-g" |
---|
| 1784 | fi |
---|
| 1785 | else |
---|
| 1786 | if test "$GXX" = yes; then |
---|
| 1787 | CXXFLAGS="-O2" |
---|
| 1788 | else |
---|
| 1789 | CXXFLAGS= |
---|
| 1790 | fi |
---|
| 1791 | fi |
---|
| 1792 | for ac_declaration in \ |
---|
[349] | 1793 | '' \ |
---|
[107] | 1794 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 1795 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 1796 | 'extern "C" void exit (int) throw ();' \ |
---|
| 1797 | 'extern "C" void exit (int);' \ |
---|
| 1798 | 'void exit (int);' |
---|
| 1799 | do |
---|
| 1800 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1801 | /* confdefs.h. */ |
---|
| 1802 | _ACEOF |
---|
| 1803 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1804 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1805 | /* end confdefs.h. */ |
---|
[349] | 1806 | $ac_declaration |
---|
[347] | 1807 | #include <stdlib.h> |
---|
[107] | 1808 | int |
---|
| 1809 | main () |
---|
| 1810 | { |
---|
| 1811 | exit (42); |
---|
| 1812 | ; |
---|
| 1813 | return 0; |
---|
| 1814 | } |
---|
| 1815 | _ACEOF |
---|
| 1816 | rm -f conftest.$ac_objext |
---|
| 1817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 1818 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 1819 | ac_status=$? |
---|
[349] | 1820 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1821 | rm -f conftest.er1 |
---|
| 1822 | cat conftest.err >&5 |
---|
[107] | 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1824 | (exit $ac_status); } && |
---|
[349] | 1825 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 1826 | || test ! -s conftest.err' |
---|
[107] | 1827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1828 | (eval $ac_try) 2>&5 |
---|
| 1829 | ac_status=$? |
---|
| 1830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 1831 | (exit $ac_status); }; } && |
---|
| 1832 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1834 | (eval $ac_try) 2>&5 |
---|
| 1835 | ac_status=$? |
---|
| 1836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 1837 | (exit $ac_status); }; }; then |
---|
| 1838 | : |
---|
| 1839 | else |
---|
| 1840 | echo "$as_me: failed program was:" >&5 |
---|
| 1841 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1842 | |
---|
| 1843 | continue |
---|
| 1844 | fi |
---|
[349] | 1845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 1846 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1847 | /* confdefs.h. */ |
---|
| 1848 | _ACEOF |
---|
| 1849 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1850 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1851 | /* end confdefs.h. */ |
---|
| 1852 | $ac_declaration |
---|
| 1853 | int |
---|
| 1854 | main () |
---|
| 1855 | { |
---|
| 1856 | exit (42); |
---|
| 1857 | ; |
---|
| 1858 | return 0; |
---|
| 1859 | } |
---|
| 1860 | _ACEOF |
---|
| 1861 | rm -f conftest.$ac_objext |
---|
| 1862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 1863 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 1864 | ac_status=$? |
---|
[349] | 1865 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1866 | rm -f conftest.er1 |
---|
| 1867 | cat conftest.err >&5 |
---|
[107] | 1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1869 | (exit $ac_status); } && |
---|
[349] | 1870 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 1871 | || test ! -s conftest.err' |
---|
[107] | 1872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1873 | (eval $ac_try) 2>&5 |
---|
| 1874 | ac_status=$? |
---|
| 1875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 1876 | (exit $ac_status); }; } && |
---|
| 1877 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1879 | (eval $ac_try) 2>&5 |
---|
| 1880 | ac_status=$? |
---|
| 1881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 1882 | (exit $ac_status); }; }; then |
---|
| 1883 | break |
---|
| 1884 | else |
---|
| 1885 | echo "$as_me: failed program was:" >&5 |
---|
| 1886 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1887 | |
---|
| 1888 | fi |
---|
[349] | 1889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 1890 | done |
---|
| 1891 | rm -f conftest* |
---|
| 1892 | if test -n "$ac_declaration"; then |
---|
| 1893 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 1894 | echo $ac_declaration >>confdefs.h |
---|
| 1895 | echo '#endif' >>confdefs.h |
---|
| 1896 | fi |
---|
| 1897 | |
---|
| 1898 | ac_ext=c |
---|
| 1899 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1903 | |
---|
| 1904 | ac_ext=c |
---|
| 1905 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1909 | if test -n "$ac_tool_prefix"; then |
---|
| 1910 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1911 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1914 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1916 | else |
---|
| 1917 | if test -n "$CC"; then |
---|
| 1918 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1919 | else |
---|
| 1920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1921 | for as_dir in $PATH |
---|
| 1922 | do |
---|
| 1923 | IFS=$as_save_IFS |
---|
| 1924 | test -z "$as_dir" && as_dir=. |
---|
| 1925 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1927 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1929 | break 2 |
---|
| 1930 | fi |
---|
| 1931 | done |
---|
| 1932 | done |
---|
| 1933 | |
---|
| 1934 | fi |
---|
| 1935 | fi |
---|
| 1936 | CC=$ac_cv_prog_CC |
---|
| 1937 | if test -n "$CC"; then |
---|
| 1938 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1939 | echo "${ECHO_T}$CC" >&6 |
---|
| 1940 | else |
---|
| 1941 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1942 | echo "${ECHO_T}no" >&6 |
---|
| 1943 | fi |
---|
| 1944 | |
---|
| 1945 | fi |
---|
| 1946 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1947 | ac_ct_CC=$CC |
---|
| 1948 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1949 | set dummy gcc; ac_word=$2 |
---|
| 1950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1952 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1954 | else |
---|
| 1955 | if test -n "$ac_ct_CC"; then |
---|
| 1956 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1957 | else |
---|
| 1958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1959 | for as_dir in $PATH |
---|
| 1960 | do |
---|
| 1961 | IFS=$as_save_IFS |
---|
| 1962 | test -z "$as_dir" && as_dir=. |
---|
| 1963 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1965 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1967 | break 2 |
---|
| 1968 | fi |
---|
| 1969 | done |
---|
| 1970 | done |
---|
| 1971 | |
---|
| 1972 | fi |
---|
| 1973 | fi |
---|
| 1974 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1975 | if test -n "$ac_ct_CC"; then |
---|
| 1976 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1977 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1978 | else |
---|
| 1979 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1980 | echo "${ECHO_T}no" >&6 |
---|
| 1981 | fi |
---|
| 1982 | |
---|
| 1983 | CC=$ac_ct_CC |
---|
| 1984 | else |
---|
| 1985 | CC="$ac_cv_prog_CC" |
---|
| 1986 | fi |
---|
| 1987 | |
---|
| 1988 | if test -z "$CC"; then |
---|
| 1989 | if test -n "$ac_tool_prefix"; then |
---|
| 1990 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 1991 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 1992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1994 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1996 | else |
---|
| 1997 | if test -n "$CC"; then |
---|
| 1998 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1999 | else |
---|
| 2000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2001 | for as_dir in $PATH |
---|
| 2002 | do |
---|
| 2003 | IFS=$as_save_IFS |
---|
| 2004 | test -z "$as_dir" && as_dir=. |
---|
| 2005 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2007 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2009 | break 2 |
---|
| 2010 | fi |
---|
| 2011 | done |
---|
| 2012 | done |
---|
| 2013 | |
---|
| 2014 | fi |
---|
| 2015 | fi |
---|
| 2016 | CC=$ac_cv_prog_CC |
---|
| 2017 | if test -n "$CC"; then |
---|
| 2018 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2019 | echo "${ECHO_T}$CC" >&6 |
---|
| 2020 | else |
---|
| 2021 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2022 | echo "${ECHO_T}no" >&6 |
---|
| 2023 | fi |
---|
| 2024 | |
---|
| 2025 | fi |
---|
| 2026 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2027 | ac_ct_CC=$CC |
---|
| 2028 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2029 | set dummy cc; ac_word=$2 |
---|
| 2030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2032 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2034 | else |
---|
| 2035 | if test -n "$ac_ct_CC"; then |
---|
| 2036 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2037 | else |
---|
| 2038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2039 | for as_dir in $PATH |
---|
| 2040 | do |
---|
| 2041 | IFS=$as_save_IFS |
---|
| 2042 | test -z "$as_dir" && as_dir=. |
---|
| 2043 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2045 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2047 | break 2 |
---|
| 2048 | fi |
---|
| 2049 | done |
---|
| 2050 | done |
---|
| 2051 | |
---|
| 2052 | fi |
---|
| 2053 | fi |
---|
| 2054 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2055 | if test -n "$ac_ct_CC"; then |
---|
| 2056 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2057 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2058 | else |
---|
| 2059 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2060 | echo "${ECHO_T}no" >&6 |
---|
| 2061 | fi |
---|
| 2062 | |
---|
| 2063 | CC=$ac_ct_CC |
---|
| 2064 | else |
---|
| 2065 | CC="$ac_cv_prog_CC" |
---|
| 2066 | fi |
---|
| 2067 | |
---|
| 2068 | fi |
---|
| 2069 | if test -z "$CC"; then |
---|
| 2070 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2071 | set dummy cc; ac_word=$2 |
---|
| 2072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2074 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2076 | else |
---|
| 2077 | if test -n "$CC"; then |
---|
| 2078 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2079 | else |
---|
| 2080 | ac_prog_rejected=no |
---|
| 2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2082 | for as_dir in $PATH |
---|
| 2083 | do |
---|
| 2084 | IFS=$as_save_IFS |
---|
| 2085 | test -z "$as_dir" && as_dir=. |
---|
| 2086 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2088 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2089 | ac_prog_rejected=yes |
---|
| 2090 | continue |
---|
| 2091 | fi |
---|
| 2092 | ac_cv_prog_CC="cc" |
---|
| 2093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2094 | break 2 |
---|
| 2095 | fi |
---|
| 2096 | done |
---|
| 2097 | done |
---|
| 2098 | |
---|
| 2099 | if test $ac_prog_rejected = yes; then |
---|
| 2100 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2101 | set dummy $ac_cv_prog_CC |
---|
| 2102 | shift |
---|
| 2103 | if test $# != 0; then |
---|
| 2104 | # We chose a different compiler from the bogus one. |
---|
| 2105 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2106 | # first if we set CC to just the basename; use the full file name. |
---|
| 2107 | shift |
---|
| 2108 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2109 | fi |
---|
| 2110 | fi |
---|
| 2111 | fi |
---|
| 2112 | fi |
---|
| 2113 | CC=$ac_cv_prog_CC |
---|
| 2114 | if test -n "$CC"; then |
---|
| 2115 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2116 | echo "${ECHO_T}$CC" >&6 |
---|
| 2117 | else |
---|
| 2118 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2119 | echo "${ECHO_T}no" >&6 |
---|
| 2120 | fi |
---|
| 2121 | |
---|
| 2122 | fi |
---|
| 2123 | if test -z "$CC"; then |
---|
| 2124 | if test -n "$ac_tool_prefix"; then |
---|
| 2125 | for ac_prog in cl |
---|
| 2126 | do |
---|
| 2127 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2128 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2131 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2133 | else |
---|
| 2134 | if test -n "$CC"; then |
---|
| 2135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2136 | else |
---|
| 2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2138 | for as_dir in $PATH |
---|
| 2139 | do |
---|
| 2140 | IFS=$as_save_IFS |
---|
| 2141 | test -z "$as_dir" && as_dir=. |
---|
| 2142 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2144 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2146 | break 2 |
---|
| 2147 | fi |
---|
| 2148 | done |
---|
| 2149 | done |
---|
| 2150 | |
---|
| 2151 | fi |
---|
| 2152 | fi |
---|
| 2153 | CC=$ac_cv_prog_CC |
---|
| 2154 | if test -n "$CC"; then |
---|
| 2155 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2156 | echo "${ECHO_T}$CC" >&6 |
---|
| 2157 | else |
---|
| 2158 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2159 | echo "${ECHO_T}no" >&6 |
---|
| 2160 | fi |
---|
| 2161 | |
---|
| 2162 | test -n "$CC" && break |
---|
| 2163 | done |
---|
| 2164 | fi |
---|
| 2165 | if test -z "$CC"; then |
---|
| 2166 | ac_ct_CC=$CC |
---|
| 2167 | for ac_prog in cl |
---|
| 2168 | do |
---|
| 2169 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2170 | set dummy $ac_prog; ac_word=$2 |
---|
| 2171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2173 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2175 | else |
---|
| 2176 | if test -n "$ac_ct_CC"; then |
---|
| 2177 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2178 | else |
---|
| 2179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2180 | for as_dir in $PATH |
---|
| 2181 | do |
---|
| 2182 | IFS=$as_save_IFS |
---|
| 2183 | test -z "$as_dir" && as_dir=. |
---|
| 2184 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2186 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2188 | break 2 |
---|
| 2189 | fi |
---|
| 2190 | done |
---|
| 2191 | done |
---|
| 2192 | |
---|
| 2193 | fi |
---|
| 2194 | fi |
---|
| 2195 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2196 | if test -n "$ac_ct_CC"; then |
---|
| 2197 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2198 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2199 | else |
---|
| 2200 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2201 | echo "${ECHO_T}no" >&6 |
---|
| 2202 | fi |
---|
| 2203 | |
---|
| 2204 | test -n "$ac_ct_CC" && break |
---|
| 2205 | done |
---|
| 2206 | |
---|
| 2207 | CC=$ac_ct_CC |
---|
| 2208 | fi |
---|
| 2209 | |
---|
| 2210 | fi |
---|
| 2211 | |
---|
| 2212 | |
---|
| 2213 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2214 | See \`config.log' for more details." >&5 |
---|
| 2215 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2216 | See \`config.log' for more details." >&2;} |
---|
| 2217 | { (exit 1); exit 1; }; } |
---|
| 2218 | |
---|
| 2219 | # Provide some information about the compiler. |
---|
| 2220 | echo "$as_me:$LINENO:" \ |
---|
| 2221 | "checking for C compiler version" >&5 |
---|
| 2222 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2223 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2224 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2225 | ac_status=$? |
---|
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2227 | (exit $ac_status); } |
---|
| 2228 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2229 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2230 | ac_status=$? |
---|
| 2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2232 | (exit $ac_status); } |
---|
| 2233 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2234 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2235 | ac_status=$? |
---|
| 2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2237 | (exit $ac_status); } |
---|
| 2238 | |
---|
| 2239 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2240 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2241 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2243 | else |
---|
| 2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2245 | /* confdefs.h. */ |
---|
| 2246 | _ACEOF |
---|
| 2247 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2249 | /* end confdefs.h. */ |
---|
| 2250 | |
---|
| 2251 | int |
---|
| 2252 | main () |
---|
| 2253 | { |
---|
| 2254 | #ifndef __GNUC__ |
---|
| 2255 | choke me |
---|
| 2256 | #endif |
---|
| 2257 | |
---|
| 2258 | ; |
---|
| 2259 | return 0; |
---|
| 2260 | } |
---|
| 2261 | _ACEOF |
---|
| 2262 | rm -f conftest.$ac_objext |
---|
| 2263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2264 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2265 | ac_status=$? |
---|
[349] | 2266 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2267 | rm -f conftest.er1 |
---|
| 2268 | cat conftest.err >&5 |
---|
[107] | 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2270 | (exit $ac_status); } && |
---|
[349] | 2271 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2272 | || test ! -s conftest.err' |
---|
[107] | 2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2274 | (eval $ac_try) 2>&5 |
---|
| 2275 | ac_status=$? |
---|
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2277 | (exit $ac_status); }; } && |
---|
| 2278 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2280 | (eval $ac_try) 2>&5 |
---|
| 2281 | ac_status=$? |
---|
| 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2283 | (exit $ac_status); }; }; then |
---|
| 2284 | ac_compiler_gnu=yes |
---|
| 2285 | else |
---|
| 2286 | echo "$as_me: failed program was:" >&5 |
---|
| 2287 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2288 | |
---|
| 2289 | ac_compiler_gnu=no |
---|
| 2290 | fi |
---|
[349] | 2291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2292 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2293 | |
---|
| 2294 | fi |
---|
| 2295 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2296 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2297 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2298 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2299 | ac_save_CFLAGS=$CFLAGS |
---|
| 2300 | CFLAGS="-g" |
---|
| 2301 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2302 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2303 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2305 | else |
---|
| 2306 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2307 | /* confdefs.h. */ |
---|
| 2308 | _ACEOF |
---|
| 2309 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2311 | /* end confdefs.h. */ |
---|
| 2312 | |
---|
| 2313 | int |
---|
| 2314 | main () |
---|
| 2315 | { |
---|
| 2316 | |
---|
| 2317 | ; |
---|
| 2318 | return 0; |
---|
| 2319 | } |
---|
| 2320 | _ACEOF |
---|
| 2321 | rm -f conftest.$ac_objext |
---|
| 2322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2323 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2324 | ac_status=$? |
---|
[349] | 2325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2326 | rm -f conftest.er1 |
---|
| 2327 | cat conftest.err >&5 |
---|
[107] | 2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2329 | (exit $ac_status); } && |
---|
[349] | 2330 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2331 | || test ! -s conftest.err' |
---|
[107] | 2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2333 | (eval $ac_try) 2>&5 |
---|
| 2334 | ac_status=$? |
---|
| 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2336 | (exit $ac_status); }; } && |
---|
| 2337 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2339 | (eval $ac_try) 2>&5 |
---|
| 2340 | ac_status=$? |
---|
| 2341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2342 | (exit $ac_status); }; }; then |
---|
| 2343 | ac_cv_prog_cc_g=yes |
---|
| 2344 | else |
---|
| 2345 | echo "$as_me: failed program was:" >&5 |
---|
| 2346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2347 | |
---|
| 2348 | ac_cv_prog_cc_g=no |
---|
| 2349 | fi |
---|
[349] | 2350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2351 | fi |
---|
| 2352 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2353 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2354 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2355 | CFLAGS=$ac_save_CFLAGS |
---|
| 2356 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2357 | if test "$GCC" = yes; then |
---|
| 2358 | CFLAGS="-g -O2" |
---|
| 2359 | else |
---|
| 2360 | CFLAGS="-g" |
---|
| 2361 | fi |
---|
| 2362 | else |
---|
| 2363 | if test "$GCC" = yes; then |
---|
| 2364 | CFLAGS="-O2" |
---|
| 2365 | else |
---|
| 2366 | CFLAGS= |
---|
| 2367 | fi |
---|
| 2368 | fi |
---|
| 2369 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2370 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2371 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2373 | else |
---|
| 2374 | ac_cv_prog_cc_stdc=no |
---|
| 2375 | ac_save_CC=$CC |
---|
| 2376 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2377 | /* confdefs.h. */ |
---|
| 2378 | _ACEOF |
---|
| 2379 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2380 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2381 | /* end confdefs.h. */ |
---|
| 2382 | #include <stdarg.h> |
---|
| 2383 | #include <stdio.h> |
---|
| 2384 | #include <sys/types.h> |
---|
| 2385 | #include <sys/stat.h> |
---|
| 2386 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2387 | struct buf { int x; }; |
---|
| 2388 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2389 | static char *e (p, i) |
---|
| 2390 | char **p; |
---|
| 2391 | int i; |
---|
| 2392 | { |
---|
| 2393 | return p[i]; |
---|
| 2394 | } |
---|
| 2395 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2396 | { |
---|
| 2397 | char *s; |
---|
| 2398 | va_list v; |
---|
| 2399 | va_start (v,p); |
---|
| 2400 | s = g (p, va_arg (v,int)); |
---|
| 2401 | va_end (v); |
---|
| 2402 | return s; |
---|
| 2403 | } |
---|
[349] | 2404 | |
---|
| 2405 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2406 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2407 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2408 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2409 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2410 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2411 | that's true only with -std1. */ |
---|
| 2412 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2413 | |
---|
[107] | 2414 | int test (int i, double x); |
---|
| 2415 | struct s1 {int (*f) (int a);}; |
---|
| 2416 | struct s2 {int (*f) (double a);}; |
---|
| 2417 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2418 | int argc; |
---|
| 2419 | char **argv; |
---|
| 2420 | int |
---|
| 2421 | main () |
---|
| 2422 | { |
---|
| 2423 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2424 | ; |
---|
| 2425 | return 0; |
---|
| 2426 | } |
---|
| 2427 | _ACEOF |
---|
| 2428 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2429 | # breaks some systems' header files. |
---|
| 2430 | # AIX -qlanglvl=ansi |
---|
| 2431 | # Ultrix and OSF/1 -std1 |
---|
| 2432 | # HP-UX 10.20 and later -Ae |
---|
| 2433 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2434 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2435 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2436 | do |
---|
| 2437 | CC="$ac_save_CC $ac_arg" |
---|
| 2438 | rm -f conftest.$ac_objext |
---|
| 2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2440 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2441 | ac_status=$? |
---|
[349] | 2442 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2443 | rm -f conftest.er1 |
---|
| 2444 | cat conftest.err >&5 |
---|
[107] | 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2446 | (exit $ac_status); } && |
---|
[349] | 2447 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2448 | || test ! -s conftest.err' |
---|
[107] | 2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2450 | (eval $ac_try) 2>&5 |
---|
| 2451 | ac_status=$? |
---|
| 2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2453 | (exit $ac_status); }; } && |
---|
| 2454 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2456 | (eval $ac_try) 2>&5 |
---|
| 2457 | ac_status=$? |
---|
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2459 | (exit $ac_status); }; }; then |
---|
| 2460 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 2461 | break |
---|
| 2462 | else |
---|
| 2463 | echo "$as_me: failed program was:" >&5 |
---|
| 2464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2465 | |
---|
| 2466 | fi |
---|
[349] | 2467 | rm -f conftest.err conftest.$ac_objext |
---|
[107] | 2468 | done |
---|
| 2469 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 2470 | CC=$ac_save_CC |
---|
| 2471 | |
---|
| 2472 | fi |
---|
| 2473 | |
---|
| 2474 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 2475 | x|xno) |
---|
| 2476 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2477 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 2478 | *) |
---|
| 2479 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 2480 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 2481 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 2482 | esac |
---|
| 2483 | |
---|
| 2484 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 2485 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 2486 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 2487 | # the declaration of exit, since it's the most demanding environment. |
---|
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2489 | #ifndef __cplusplus |
---|
| 2490 | choke me |
---|
| 2491 | #endif |
---|
| 2492 | _ACEOF |
---|
| 2493 | rm -f conftest.$ac_objext |
---|
| 2494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2495 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2496 | ac_status=$? |
---|
[349] | 2497 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2498 | rm -f conftest.er1 |
---|
| 2499 | cat conftest.err >&5 |
---|
[107] | 2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2501 | (exit $ac_status); } && |
---|
[349] | 2502 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2503 | || test ! -s conftest.err' |
---|
[107] | 2504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2505 | (eval $ac_try) 2>&5 |
---|
| 2506 | ac_status=$? |
---|
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2508 | (exit $ac_status); }; } && |
---|
| 2509 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2511 | (eval $ac_try) 2>&5 |
---|
| 2512 | ac_status=$? |
---|
| 2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2514 | (exit $ac_status); }; }; then |
---|
| 2515 | for ac_declaration in \ |
---|
[349] | 2516 | '' \ |
---|
[107] | 2517 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2518 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2519 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2520 | 'extern "C" void exit (int);' \ |
---|
| 2521 | 'void exit (int);' |
---|
| 2522 | do |
---|
| 2523 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2524 | /* confdefs.h. */ |
---|
| 2525 | _ACEOF |
---|
| 2526 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2527 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2528 | /* end confdefs.h. */ |
---|
[349] | 2529 | $ac_declaration |
---|
[347] | 2530 | #include <stdlib.h> |
---|
[107] | 2531 | int |
---|
| 2532 | main () |
---|
| 2533 | { |
---|
| 2534 | exit (42); |
---|
| 2535 | ; |
---|
| 2536 | return 0; |
---|
| 2537 | } |
---|
| 2538 | _ACEOF |
---|
| 2539 | rm -f conftest.$ac_objext |
---|
| 2540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2541 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2542 | ac_status=$? |
---|
[349] | 2543 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2544 | rm -f conftest.er1 |
---|
| 2545 | cat conftest.err >&5 |
---|
[107] | 2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2547 | (exit $ac_status); } && |
---|
[349] | 2548 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2549 | || test ! -s conftest.err' |
---|
[107] | 2550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2551 | (eval $ac_try) 2>&5 |
---|
| 2552 | ac_status=$? |
---|
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2554 | (exit $ac_status); }; } && |
---|
| 2555 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2557 | (eval $ac_try) 2>&5 |
---|
| 2558 | ac_status=$? |
---|
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2560 | (exit $ac_status); }; }; then |
---|
| 2561 | : |
---|
| 2562 | else |
---|
| 2563 | echo "$as_me: failed program was:" >&5 |
---|
| 2564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2565 | |
---|
| 2566 | continue |
---|
| 2567 | fi |
---|
[349] | 2568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2569 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2570 | /* confdefs.h. */ |
---|
| 2571 | _ACEOF |
---|
| 2572 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2574 | /* end confdefs.h. */ |
---|
| 2575 | $ac_declaration |
---|
| 2576 | int |
---|
| 2577 | main () |
---|
| 2578 | { |
---|
| 2579 | exit (42); |
---|
| 2580 | ; |
---|
| 2581 | return 0; |
---|
| 2582 | } |
---|
| 2583 | _ACEOF |
---|
| 2584 | rm -f conftest.$ac_objext |
---|
| 2585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 2586 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 2587 | ac_status=$? |
---|
[349] | 2588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2589 | rm -f conftest.er1 |
---|
| 2590 | cat conftest.err >&5 |
---|
[107] | 2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2592 | (exit $ac_status); } && |
---|
[349] | 2593 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2594 | || test ! -s conftest.err' |
---|
[107] | 2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2596 | (eval $ac_try) 2>&5 |
---|
| 2597 | ac_status=$? |
---|
| 2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 2599 | (exit $ac_status); }; } && |
---|
| 2600 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2602 | (eval $ac_try) 2>&5 |
---|
| 2603 | ac_status=$? |
---|
| 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 2605 | (exit $ac_status); }; }; then |
---|
| 2606 | break |
---|
| 2607 | else |
---|
| 2608 | echo "$as_me: failed program was:" >&5 |
---|
| 2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2610 | |
---|
| 2611 | fi |
---|
[349] | 2612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2613 | done |
---|
| 2614 | rm -f conftest* |
---|
| 2615 | if test -n "$ac_declaration"; then |
---|
| 2616 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2617 | echo $ac_declaration >>confdefs.h |
---|
| 2618 | echo '#endif' >>confdefs.h |
---|
| 2619 | fi |
---|
| 2620 | |
---|
| 2621 | else |
---|
| 2622 | echo "$as_me: failed program was:" >&5 |
---|
| 2623 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2624 | |
---|
| 2625 | fi |
---|
[349] | 2626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 2627 | ac_ext=c |
---|
| 2628 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2632 | |
---|
| 2633 | ac_ext=c |
---|
| 2634 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2638 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 2639 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 2640 | # On Suns, sometimes $CPP names a directory. |
---|
| 2641 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2642 | CPP= |
---|
| 2643 | fi |
---|
| 2644 | if test -z "$CPP"; then |
---|
| 2645 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 2646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2647 | else |
---|
| 2648 | # Double quotes because CPP needs to be expanded |
---|
| 2649 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 2650 | do |
---|
| 2651 | ac_preproc_ok=false |
---|
| 2652 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2653 | do |
---|
| 2654 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2655 | # with a fresh cross-compiler works. |
---|
| 2656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2657 | # <limits.h> exists even on freestanding compilers. |
---|
| 2658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2659 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2660 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2661 | /* confdefs.h. */ |
---|
| 2662 | _ACEOF |
---|
| 2663 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2665 | /* end confdefs.h. */ |
---|
| 2666 | #ifdef __STDC__ |
---|
| 2667 | # include <limits.h> |
---|
| 2668 | #else |
---|
| 2669 | # include <assert.h> |
---|
| 2670 | #endif |
---|
[349] | 2671 | Syntax error |
---|
[107] | 2672 | _ACEOF |
---|
| 2673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2675 | ac_status=$? |
---|
| 2676 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2677 | rm -f conftest.er1 |
---|
| 2678 | cat conftest.err >&5 |
---|
| 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2680 | (exit $ac_status); } >/dev/null; then |
---|
| 2681 | if test -s conftest.err; then |
---|
| 2682 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 2683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 2684 | else |
---|
| 2685 | ac_cpp_err= |
---|
| 2686 | fi |
---|
| 2687 | else |
---|
| 2688 | ac_cpp_err=yes |
---|
| 2689 | fi |
---|
| 2690 | if test -z "$ac_cpp_err"; then |
---|
| 2691 | : |
---|
| 2692 | else |
---|
| 2693 | echo "$as_me: failed program was:" >&5 |
---|
| 2694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2695 | |
---|
| 2696 | # Broken: fails on valid input. |
---|
| 2697 | continue |
---|
| 2698 | fi |
---|
| 2699 | rm -f conftest.err conftest.$ac_ext |
---|
| 2700 | |
---|
| 2701 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2702 | # can be detected and how. |
---|
| 2703 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2704 | /* confdefs.h. */ |
---|
| 2705 | _ACEOF |
---|
| 2706 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2708 | /* end confdefs.h. */ |
---|
| 2709 | #include <ac_nonexistent.h> |
---|
| 2710 | _ACEOF |
---|
| 2711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2713 | ac_status=$? |
---|
| 2714 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2715 | rm -f conftest.er1 |
---|
| 2716 | cat conftest.err >&5 |
---|
| 2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2718 | (exit $ac_status); } >/dev/null; then |
---|
| 2719 | if test -s conftest.err; then |
---|
| 2720 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 2721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 2722 | else |
---|
| 2723 | ac_cpp_err= |
---|
| 2724 | fi |
---|
| 2725 | else |
---|
| 2726 | ac_cpp_err=yes |
---|
| 2727 | fi |
---|
| 2728 | if test -z "$ac_cpp_err"; then |
---|
| 2729 | # Broken: success on invalid input. |
---|
| 2730 | continue |
---|
| 2731 | else |
---|
| 2732 | echo "$as_me: failed program was:" >&5 |
---|
| 2733 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2734 | |
---|
| 2735 | # Passes both tests. |
---|
| 2736 | ac_preproc_ok=: |
---|
| 2737 | break |
---|
| 2738 | fi |
---|
| 2739 | rm -f conftest.err conftest.$ac_ext |
---|
| 2740 | |
---|
| 2741 | done |
---|
| 2742 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2743 | rm -f conftest.err conftest.$ac_ext |
---|
| 2744 | if $ac_preproc_ok; then |
---|
| 2745 | break |
---|
| 2746 | fi |
---|
| 2747 | |
---|
| 2748 | done |
---|
| 2749 | ac_cv_prog_CPP=$CPP |
---|
| 2750 | |
---|
| 2751 | fi |
---|
| 2752 | CPP=$ac_cv_prog_CPP |
---|
| 2753 | else |
---|
| 2754 | ac_cv_prog_CPP=$CPP |
---|
| 2755 | fi |
---|
| 2756 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 2757 | echo "${ECHO_T}$CPP" >&6 |
---|
| 2758 | ac_preproc_ok=false |
---|
| 2759 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2760 | do |
---|
| 2761 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2762 | # with a fresh cross-compiler works. |
---|
| 2763 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2764 | # <limits.h> exists even on freestanding compilers. |
---|
| 2765 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2766 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2767 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2768 | /* confdefs.h. */ |
---|
| 2769 | _ACEOF |
---|
| 2770 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2771 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2772 | /* end confdefs.h. */ |
---|
| 2773 | #ifdef __STDC__ |
---|
| 2774 | # include <limits.h> |
---|
| 2775 | #else |
---|
| 2776 | # include <assert.h> |
---|
| 2777 | #endif |
---|
[349] | 2778 | Syntax error |
---|
[107] | 2779 | _ACEOF |
---|
| 2780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2782 | ac_status=$? |
---|
| 2783 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2784 | rm -f conftest.er1 |
---|
| 2785 | cat conftest.err >&5 |
---|
| 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2787 | (exit $ac_status); } >/dev/null; then |
---|
| 2788 | if test -s conftest.err; then |
---|
| 2789 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 2790 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 2791 | else |
---|
| 2792 | ac_cpp_err= |
---|
| 2793 | fi |
---|
| 2794 | else |
---|
| 2795 | ac_cpp_err=yes |
---|
| 2796 | fi |
---|
| 2797 | if test -z "$ac_cpp_err"; then |
---|
| 2798 | : |
---|
| 2799 | else |
---|
| 2800 | echo "$as_me: failed program was:" >&5 |
---|
| 2801 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2802 | |
---|
| 2803 | # Broken: fails on valid input. |
---|
| 2804 | continue |
---|
| 2805 | fi |
---|
| 2806 | rm -f conftest.err conftest.$ac_ext |
---|
| 2807 | |
---|
| 2808 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2809 | # can be detected and how. |
---|
| 2810 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2811 | /* confdefs.h. */ |
---|
| 2812 | _ACEOF |
---|
| 2813 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2815 | /* end confdefs.h. */ |
---|
| 2816 | #include <ac_nonexistent.h> |
---|
| 2817 | _ACEOF |
---|
| 2818 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2819 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2820 | ac_status=$? |
---|
| 2821 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2822 | rm -f conftest.er1 |
---|
| 2823 | cat conftest.err >&5 |
---|
| 2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2825 | (exit $ac_status); } >/dev/null; then |
---|
| 2826 | if test -s conftest.err; then |
---|
| 2827 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 2828 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 2829 | else |
---|
| 2830 | ac_cpp_err= |
---|
| 2831 | fi |
---|
| 2832 | else |
---|
| 2833 | ac_cpp_err=yes |
---|
| 2834 | fi |
---|
| 2835 | if test -z "$ac_cpp_err"; then |
---|
| 2836 | # Broken: success on invalid input. |
---|
| 2837 | continue |
---|
| 2838 | else |
---|
| 2839 | echo "$as_me: failed program was:" >&5 |
---|
| 2840 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2841 | |
---|
| 2842 | # Passes both tests. |
---|
| 2843 | ac_preproc_ok=: |
---|
| 2844 | break |
---|
| 2845 | fi |
---|
| 2846 | rm -f conftest.err conftest.$ac_ext |
---|
| 2847 | |
---|
| 2848 | done |
---|
| 2849 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2850 | rm -f conftest.err conftest.$ac_ext |
---|
| 2851 | if $ac_preproc_ok; then |
---|
| 2852 | : |
---|
| 2853 | else |
---|
| 2854 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2855 | See \`config.log' for more details." >&5 |
---|
| 2856 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2857 | See \`config.log' for more details." >&2;} |
---|
| 2858 | { (exit 1); exit 1; }; } |
---|
| 2859 | fi |
---|
| 2860 | |
---|
| 2861 | ac_ext=c |
---|
| 2862 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2866 | |
---|
[351] | 2867 | ac_ext=f |
---|
| 2868 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 2869 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2870 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 2871 | if test -n "$ac_tool_prefix"; then |
---|
| 2872 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
| 2873 | do |
---|
| 2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2878 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
| 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2880 | else |
---|
| 2881 | if test -n "$F77"; then |
---|
| 2882 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
| 2883 | else |
---|
| 2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2885 | for as_dir in $PATH |
---|
| 2886 | do |
---|
| 2887 | IFS=$as_save_IFS |
---|
| 2888 | test -z "$as_dir" && as_dir=. |
---|
| 2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2891 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
| 2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2893 | break 2 |
---|
| 2894 | fi |
---|
| 2895 | done |
---|
| 2896 | done |
---|
| 2897 | |
---|
| 2898 | fi |
---|
| 2899 | fi |
---|
| 2900 | F77=$ac_cv_prog_F77 |
---|
| 2901 | if test -n "$F77"; then |
---|
| 2902 | echo "$as_me:$LINENO: result: $F77" >&5 |
---|
| 2903 | echo "${ECHO_T}$F77" >&6 |
---|
| 2904 | else |
---|
| 2905 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2906 | echo "${ECHO_T}no" >&6 |
---|
| 2907 | fi |
---|
| 2908 | |
---|
| 2909 | test -n "$F77" && break |
---|
| 2910 | done |
---|
| 2911 | fi |
---|
| 2912 | if test -z "$F77"; then |
---|
| 2913 | ac_ct_F77=$F77 |
---|
| 2914 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
---|
| 2915 | do |
---|
| 2916 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2917 | set dummy $ac_prog; ac_word=$2 |
---|
| 2918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2920 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
| 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2922 | else |
---|
| 2923 | if test -n "$ac_ct_F77"; then |
---|
| 2924 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
| 2925 | else |
---|
| 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2927 | for as_dir in $PATH |
---|
| 2928 | do |
---|
| 2929 | IFS=$as_save_IFS |
---|
| 2930 | test -z "$as_dir" && as_dir=. |
---|
| 2931 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2933 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
| 2934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2935 | break 2 |
---|
| 2936 | fi |
---|
| 2937 | done |
---|
| 2938 | done |
---|
| 2939 | |
---|
| 2940 | fi |
---|
| 2941 | fi |
---|
| 2942 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
| 2943 | if test -n "$ac_ct_F77"; then |
---|
| 2944 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
| 2945 | echo "${ECHO_T}$ac_ct_F77" >&6 |
---|
| 2946 | else |
---|
| 2947 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2948 | echo "${ECHO_T}no" >&6 |
---|
| 2949 | fi |
---|
| 2950 | |
---|
| 2951 | test -n "$ac_ct_F77" && break |
---|
| 2952 | done |
---|
| 2953 | |
---|
| 2954 | F77=$ac_ct_F77 |
---|
| 2955 | fi |
---|
| 2956 | |
---|
| 2957 | |
---|
| 2958 | # Provide some information about the compiler. |
---|
| 2959 | echo "$as_me:2959:" \ |
---|
| 2960 | "checking for Fortran 77 compiler version" >&5 |
---|
| 2961 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2962 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2963 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2964 | ac_status=$? |
---|
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2966 | (exit $ac_status); } |
---|
| 2967 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2968 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2969 | ac_status=$? |
---|
| 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2971 | (exit $ac_status); } |
---|
| 2972 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2973 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2974 | ac_status=$? |
---|
| 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2976 | (exit $ac_status); } |
---|
| 2977 | rm -f a.out |
---|
| 2978 | |
---|
| 2979 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
| 2980 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
| 2981 | ac_save_ext=$ac_ext |
---|
| 2982 | ac_ext=F |
---|
| 2983 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
| 2984 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
---|
| 2985 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
| 2986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2987 | else |
---|
| 2988 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2989 | program main |
---|
| 2990 | #ifndef __GNUC__ |
---|
| 2991 | choke me |
---|
| 2992 | #endif |
---|
| 2993 | |
---|
| 2994 | end |
---|
| 2995 | _ACEOF |
---|
| 2996 | rm -f conftest.$ac_objext |
---|
| 2997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2998 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2999 | ac_status=$? |
---|
| 3000 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3001 | rm -f conftest.er1 |
---|
| 3002 | cat conftest.err >&5 |
---|
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3004 | (exit $ac_status); } && |
---|
| 3005 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
| 3006 | || test ! -s conftest.err' |
---|
| 3007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3008 | (eval $ac_try) 2>&5 |
---|
| 3009 | ac_status=$? |
---|
| 3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3011 | (exit $ac_status); }; } && |
---|
| 3012 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3014 | (eval $ac_try) 2>&5 |
---|
| 3015 | ac_status=$? |
---|
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3017 | (exit $ac_status); }; }; then |
---|
| 3018 | ac_compiler_gnu=yes |
---|
| 3019 | else |
---|
| 3020 | echo "$as_me: failed program was:" >&5 |
---|
| 3021 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3022 | |
---|
| 3023 | ac_compiler_gnu=no |
---|
| 3024 | fi |
---|
| 3025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3026 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
| 3027 | |
---|
| 3028 | fi |
---|
| 3029 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
| 3030 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
---|
| 3031 | ac_ext=$ac_save_ext |
---|
| 3032 | ac_test_FFLAGS=${FFLAGS+set} |
---|
| 3033 | ac_save_FFLAGS=$FFLAGS |
---|
| 3034 | FFLAGS= |
---|
| 3035 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
| 3036 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
---|
| 3037 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
| 3038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3039 | else |
---|
| 3040 | FFLAGS=-g |
---|
| 3041 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3042 | program main |
---|
| 3043 | |
---|
| 3044 | end |
---|
| 3045 | _ACEOF |
---|
| 3046 | rm -f conftest.$ac_objext |
---|
| 3047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3048 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3049 | ac_status=$? |
---|
| 3050 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3051 | rm -f conftest.er1 |
---|
| 3052 | cat conftest.err >&5 |
---|
| 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3054 | (exit $ac_status); } && |
---|
| 3055 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
| 3056 | || test ! -s conftest.err' |
---|
| 3057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3058 | (eval $ac_try) 2>&5 |
---|
| 3059 | ac_status=$? |
---|
| 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3061 | (exit $ac_status); }; } && |
---|
| 3062 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3064 | (eval $ac_try) 2>&5 |
---|
| 3065 | ac_status=$? |
---|
| 3066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3067 | (exit $ac_status); }; }; then |
---|
| 3068 | ac_cv_prog_f77_g=yes |
---|
| 3069 | else |
---|
| 3070 | echo "$as_me: failed program was:" >&5 |
---|
| 3071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3072 | |
---|
| 3073 | ac_cv_prog_f77_g=no |
---|
| 3074 | fi |
---|
| 3075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3076 | |
---|
| 3077 | fi |
---|
| 3078 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
| 3079 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
---|
| 3080 | if test "$ac_test_FFLAGS" = set; then |
---|
| 3081 | FFLAGS=$ac_save_FFLAGS |
---|
| 3082 | elif test $ac_cv_prog_f77_g = yes; then |
---|
| 3083 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3084 | FFLAGS="-g -O2" |
---|
| 3085 | else |
---|
| 3086 | FFLAGS="-g" |
---|
| 3087 | fi |
---|
| 3088 | else |
---|
| 3089 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
| 3090 | FFLAGS="-O2" |
---|
| 3091 | else |
---|
| 3092 | FFLAGS= |
---|
| 3093 | fi |
---|
| 3094 | fi |
---|
| 3095 | |
---|
| 3096 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 3097 | ac_ext=c |
---|
| 3098 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3102 | |
---|
[342] | 3103 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
| 3104 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
| 3105 | LN_S=$as_ln_s |
---|
| 3106 | if test "$LN_S" = "ln -s"; then |
---|
| 3107 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3108 | echo "${ECHO_T}yes" >&6 |
---|
| 3109 | else |
---|
| 3110 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
| 3111 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
| 3112 | fi |
---|
[107] | 3113 | |
---|
[342] | 3114 | for ac_prog in install |
---|
| 3115 | do |
---|
| 3116 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3117 | set dummy $ac_prog; ac_word=$2 |
---|
| 3118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3120 | if test "${ac_cv_prog_INSTALL+set}" = set; then |
---|
| 3121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3122 | else |
---|
| 3123 | if test -n "$INSTALL"; then |
---|
| 3124 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
---|
| 3125 | else |
---|
| 3126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3127 | for as_dir in $PATH |
---|
| 3128 | do |
---|
| 3129 | IFS=$as_save_IFS |
---|
| 3130 | test -z "$as_dir" && as_dir=. |
---|
| 3131 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3133 | ac_cv_prog_INSTALL="$ac_prog" |
---|
| 3134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3135 | break 2 |
---|
| 3136 | fi |
---|
| 3137 | done |
---|
| 3138 | done |
---|
| 3139 | |
---|
| 3140 | fi |
---|
| 3141 | fi |
---|
| 3142 | INSTALL=$ac_cv_prog_INSTALL |
---|
| 3143 | if test -n "$INSTALL"; then |
---|
| 3144 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 3145 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 3146 | else |
---|
| 3147 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3148 | echo "${ECHO_T}no" >&6 |
---|
| 3149 | fi |
---|
| 3150 | |
---|
| 3151 | test -n "$INSTALL" && break |
---|
| 3152 | done |
---|
| 3153 | |
---|
| 3154 | |
---|
[347] | 3155 | # Check for maths library -- will add -lm to $LIBS |
---|
[107] | 3156 | |
---|
| 3157 | |
---|
| 3158 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
---|
| 3159 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 |
---|
| 3160 | if test "${ac_cv_lib_m_log+set}" = set; then |
---|
| 3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3162 | else |
---|
| 3163 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3164 | LIBS="-lm $LIBS" |
---|
| 3165 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3166 | /* confdefs.h. */ |
---|
| 3167 | _ACEOF |
---|
| 3168 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3169 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3170 | /* end confdefs.h. */ |
---|
| 3171 | |
---|
| 3172 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3173 | #ifdef __cplusplus |
---|
| 3174 | extern "C" |
---|
| 3175 | #endif |
---|
| 3176 | /* We use char because int might match the return type of a gcc2 |
---|
| 3177 | builtin and then its argument prototype would still apply. */ |
---|
| 3178 | char log (); |
---|
| 3179 | int |
---|
| 3180 | main () |
---|
| 3181 | { |
---|
| 3182 | log (); |
---|
| 3183 | ; |
---|
| 3184 | return 0; |
---|
| 3185 | } |
---|
| 3186 | _ACEOF |
---|
| 3187 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 3189 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 3190 | ac_status=$? |
---|
[349] | 3191 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3192 | rm -f conftest.er1 |
---|
| 3193 | cat conftest.err >&5 |
---|
[107] | 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3195 | (exit $ac_status); } && |
---|
[349] | 3196 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3197 | || test ! -s conftest.err' |
---|
[107] | 3198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3199 | (eval $ac_try) 2>&5 |
---|
| 3200 | ac_status=$? |
---|
| 3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3202 | (exit $ac_status); }; } && |
---|
| 3203 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3205 | (eval $ac_try) 2>&5 |
---|
| 3206 | ac_status=$? |
---|
| 3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3208 | (exit $ac_status); }; }; then |
---|
| 3209 | ac_cv_lib_m_log=yes |
---|
| 3210 | else |
---|
| 3211 | echo "$as_me: failed program was:" >&5 |
---|
| 3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3213 | |
---|
| 3214 | ac_cv_lib_m_log=no |
---|
| 3215 | fi |
---|
[349] | 3216 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3217 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 3218 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3219 | fi |
---|
| 3220 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
---|
| 3221 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 |
---|
| 3222 | if test $ac_cv_lib_m_log = yes; then |
---|
| 3223 | cat >>confdefs.h <<_ACEOF |
---|
| 3224 | #define HAVE_LIBM 1 |
---|
| 3225 | _ACEOF |
---|
| 3226 | |
---|
| 3227 | LIBS="-lm $LIBS" |
---|
| 3228 | |
---|
| 3229 | fi |
---|
| 3230 | |
---|
| 3231 | |
---|
| 3232 | # Checks for header files. |
---|
| 3233 | |
---|
| 3234 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3235 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3236 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3238 | else |
---|
| 3239 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3240 | then ac_cv_prog_egrep='grep -E' |
---|
| 3241 | else ac_cv_prog_egrep='egrep' |
---|
| 3242 | fi |
---|
| 3243 | fi |
---|
| 3244 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3245 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3246 | EGREP=$ac_cv_prog_egrep |
---|
| 3247 | |
---|
| 3248 | |
---|
| 3249 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3250 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3251 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3253 | else |
---|
| 3254 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3255 | /* confdefs.h. */ |
---|
| 3256 | _ACEOF |
---|
| 3257 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3258 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3259 | /* end confdefs.h. */ |
---|
| 3260 | #include <stdlib.h> |
---|
| 3261 | #include <stdarg.h> |
---|
| 3262 | #include <string.h> |
---|
| 3263 | #include <float.h> |
---|
| 3264 | |
---|
| 3265 | int |
---|
| 3266 | main () |
---|
| 3267 | { |
---|
| 3268 | |
---|
| 3269 | ; |
---|
| 3270 | return 0; |
---|
| 3271 | } |
---|
| 3272 | _ACEOF |
---|
| 3273 | rm -f conftest.$ac_objext |
---|
| 3274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3275 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3276 | ac_status=$? |
---|
[349] | 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3278 | rm -f conftest.er1 |
---|
| 3279 | cat conftest.err >&5 |
---|
[107] | 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3281 | (exit $ac_status); } && |
---|
[349] | 3282 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3283 | || test ! -s conftest.err' |
---|
[107] | 3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3285 | (eval $ac_try) 2>&5 |
---|
| 3286 | ac_status=$? |
---|
| 3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3288 | (exit $ac_status); }; } && |
---|
| 3289 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3291 | (eval $ac_try) 2>&5 |
---|
| 3292 | ac_status=$? |
---|
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3294 | (exit $ac_status); }; }; then |
---|
| 3295 | ac_cv_header_stdc=yes |
---|
| 3296 | else |
---|
| 3297 | echo "$as_me: failed program was:" >&5 |
---|
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3299 | |
---|
| 3300 | ac_cv_header_stdc=no |
---|
| 3301 | fi |
---|
[349] | 3302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3303 | |
---|
| 3304 | if test $ac_cv_header_stdc = yes; then |
---|
| 3305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3306 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3307 | /* confdefs.h. */ |
---|
| 3308 | _ACEOF |
---|
| 3309 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3311 | /* end confdefs.h. */ |
---|
| 3312 | #include <string.h> |
---|
| 3313 | |
---|
| 3314 | _ACEOF |
---|
| 3315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3316 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3317 | : |
---|
| 3318 | else |
---|
| 3319 | ac_cv_header_stdc=no |
---|
| 3320 | fi |
---|
| 3321 | rm -f conftest* |
---|
| 3322 | |
---|
| 3323 | fi |
---|
| 3324 | |
---|
| 3325 | if test $ac_cv_header_stdc = yes; then |
---|
| 3326 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3327 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3328 | /* confdefs.h. */ |
---|
| 3329 | _ACEOF |
---|
| 3330 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3331 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3332 | /* end confdefs.h. */ |
---|
| 3333 | #include <stdlib.h> |
---|
| 3334 | |
---|
| 3335 | _ACEOF |
---|
| 3336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3337 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3338 | : |
---|
| 3339 | else |
---|
| 3340 | ac_cv_header_stdc=no |
---|
| 3341 | fi |
---|
| 3342 | rm -f conftest* |
---|
| 3343 | |
---|
| 3344 | fi |
---|
| 3345 | |
---|
| 3346 | if test $ac_cv_header_stdc = yes; then |
---|
| 3347 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3348 | if test "$cross_compiling" = yes; then |
---|
| 3349 | : |
---|
| 3350 | else |
---|
| 3351 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3352 | /* confdefs.h. */ |
---|
| 3353 | _ACEOF |
---|
| 3354 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3356 | /* end confdefs.h. */ |
---|
| 3357 | #include <ctype.h> |
---|
| 3358 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3359 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3360 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3361 | #else |
---|
| 3362 | # define ISLOWER(c) \ |
---|
[349] | 3363 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3364 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3365 | || ('s' <= (c) && (c) <= 'z')) |
---|
[107] | 3366 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3367 | #endif |
---|
| 3368 | |
---|
| 3369 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3370 | int |
---|
| 3371 | main () |
---|
| 3372 | { |
---|
| 3373 | int i; |
---|
| 3374 | for (i = 0; i < 256; i++) |
---|
| 3375 | if (XOR (islower (i), ISLOWER (i)) |
---|
[349] | 3376 | || toupper (i) != TOUPPER (i)) |
---|
[107] | 3377 | exit(2); |
---|
| 3378 | exit (0); |
---|
| 3379 | } |
---|
| 3380 | _ACEOF |
---|
| 3381 | rm -f conftest$ac_exeext |
---|
| 3382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3383 | (eval $ac_link) 2>&5 |
---|
| 3384 | ac_status=$? |
---|
| 3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3388 | (eval $ac_try) 2>&5 |
---|
| 3389 | ac_status=$? |
---|
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3391 | (exit $ac_status); }; }; then |
---|
| 3392 | : |
---|
| 3393 | else |
---|
| 3394 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3395 | echo "$as_me: failed program was:" >&5 |
---|
| 3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3397 | |
---|
| 3398 | ( exit $ac_status ) |
---|
| 3399 | ac_cv_header_stdc=no |
---|
| 3400 | fi |
---|
[349] | 3401 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3402 | fi |
---|
| 3403 | fi |
---|
| 3404 | fi |
---|
| 3405 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3406 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3407 | if test $ac_cv_header_stdc = yes; then |
---|
| 3408 | |
---|
| 3409 | cat >>confdefs.h <<\_ACEOF |
---|
| 3410 | #define STDC_HEADERS 1 |
---|
| 3411 | _ACEOF |
---|
| 3412 | |
---|
| 3413 | fi |
---|
| 3414 | |
---|
| 3415 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3416 | |
---|
| 3417 | |
---|
| 3418 | |
---|
| 3419 | |
---|
| 3420 | |
---|
| 3421 | |
---|
| 3422 | |
---|
| 3423 | |
---|
| 3424 | |
---|
| 3425 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
[349] | 3426 | inttypes.h stdint.h unistd.h |
---|
[107] | 3427 | do |
---|
| 3428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3433 | else |
---|
| 3434 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3435 | /* confdefs.h. */ |
---|
| 3436 | _ACEOF |
---|
| 3437 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3438 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3439 | /* end confdefs.h. */ |
---|
| 3440 | $ac_includes_default |
---|
| 3441 | |
---|
| 3442 | #include <$ac_header> |
---|
| 3443 | _ACEOF |
---|
| 3444 | rm -f conftest.$ac_objext |
---|
| 3445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3446 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3447 | ac_status=$? |
---|
[349] | 3448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3449 | rm -f conftest.er1 |
---|
| 3450 | cat conftest.err >&5 |
---|
[107] | 3451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3452 | (exit $ac_status); } && |
---|
[349] | 3453 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3454 | || test ! -s conftest.err' |
---|
[107] | 3455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3456 | (eval $ac_try) 2>&5 |
---|
| 3457 | ac_status=$? |
---|
| 3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3459 | (exit $ac_status); }; } && |
---|
| 3460 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3462 | (eval $ac_try) 2>&5 |
---|
| 3463 | ac_status=$? |
---|
| 3464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3465 | (exit $ac_status); }; }; then |
---|
| 3466 | eval "$as_ac_Header=yes" |
---|
| 3467 | else |
---|
| 3468 | echo "$as_me: failed program was:" >&5 |
---|
| 3469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3470 | |
---|
| 3471 | eval "$as_ac_Header=no" |
---|
| 3472 | fi |
---|
[349] | 3473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3474 | fi |
---|
| 3475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3478 | cat >>confdefs.h <<_ACEOF |
---|
| 3479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3480 | _ACEOF |
---|
| 3481 | |
---|
| 3482 | fi |
---|
| 3483 | |
---|
| 3484 | done |
---|
| 3485 | |
---|
| 3486 | |
---|
| 3487 | |
---|
| 3488 | |
---|
| 3489 | |
---|
| 3490 | |
---|
| 3491 | |
---|
[215] | 3492 | |
---|
| 3493 | |
---|
| 3494 | |
---|
| 3495 | |
---|
| 3496 | |
---|
| 3497 | |
---|
| 3498 | for ac_header in unistd.h time.h math.h iostream fstream sstream iomanip vector string algorithm functional |
---|
[107] | 3499 | do |
---|
| 3500 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3502 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3506 | fi |
---|
| 3507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3508 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3509 | else |
---|
| 3510 | # Is the header compilable? |
---|
| 3511 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3512 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3513 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3514 | /* confdefs.h. */ |
---|
| 3515 | _ACEOF |
---|
| 3516 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3517 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3518 | /* end confdefs.h. */ |
---|
| 3519 | $ac_includes_default |
---|
| 3520 | #include <$ac_header> |
---|
| 3521 | _ACEOF |
---|
| 3522 | rm -f conftest.$ac_objext |
---|
| 3523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3524 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3525 | ac_status=$? |
---|
[349] | 3526 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3527 | rm -f conftest.er1 |
---|
| 3528 | cat conftest.err >&5 |
---|
[107] | 3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3530 | (exit $ac_status); } && |
---|
[349] | 3531 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3532 | || test ! -s conftest.err' |
---|
[107] | 3533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3534 | (eval $ac_try) 2>&5 |
---|
| 3535 | ac_status=$? |
---|
| 3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3537 | (exit $ac_status); }; } && |
---|
| 3538 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3540 | (eval $ac_try) 2>&5 |
---|
| 3541 | ac_status=$? |
---|
| 3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3543 | (exit $ac_status); }; }; then |
---|
| 3544 | ac_header_compiler=yes |
---|
| 3545 | else |
---|
| 3546 | echo "$as_me: failed program was:" >&5 |
---|
| 3547 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3548 | |
---|
| 3549 | ac_header_compiler=no |
---|
| 3550 | fi |
---|
[349] | 3551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3552 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3553 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3554 | |
---|
| 3555 | # Is the header present? |
---|
| 3556 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3557 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3558 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3559 | /* confdefs.h. */ |
---|
| 3560 | _ACEOF |
---|
| 3561 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3562 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3563 | /* end confdefs.h. */ |
---|
| 3564 | #include <$ac_header> |
---|
| 3565 | _ACEOF |
---|
| 3566 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3567 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3568 | ac_status=$? |
---|
| 3569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3570 | rm -f conftest.er1 |
---|
| 3571 | cat conftest.err >&5 |
---|
| 3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3573 | (exit $ac_status); } >/dev/null; then |
---|
| 3574 | if test -s conftest.err; then |
---|
| 3575 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 3576 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 3577 | else |
---|
| 3578 | ac_cpp_err= |
---|
| 3579 | fi |
---|
| 3580 | else |
---|
| 3581 | ac_cpp_err=yes |
---|
| 3582 | fi |
---|
| 3583 | if test -z "$ac_cpp_err"; then |
---|
| 3584 | ac_header_preproc=yes |
---|
| 3585 | else |
---|
| 3586 | echo "$as_me: failed program was:" >&5 |
---|
| 3587 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3588 | |
---|
| 3589 | ac_header_preproc=no |
---|
| 3590 | fi |
---|
| 3591 | rm -f conftest.err conftest.$ac_ext |
---|
| 3592 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3593 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3594 | |
---|
| 3595 | # So? What about this header? |
---|
[349] | 3596 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 3597 | yes:no: ) |
---|
[107] | 3598 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3599 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[349] | 3600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 3601 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 3602 | ac_header_preproc=yes |
---|
[107] | 3603 | ;; |
---|
[349] | 3604 | no:yes:* ) |
---|
[107] | 3605 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3606 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[349] | 3607 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3608 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3609 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 3610 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 3611 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 3612 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
[107] | 3613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3614 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
[349] | 3615 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 3616 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
[107] | 3617 | ( |
---|
| 3618 | cat <<\_ASBOX |
---|
[349] | 3619 | ## --------------------------------------- ## |
---|
| 3620 | ## Report this to Matthew.Whiting@csiro.au ## |
---|
| 3621 | ## --------------------------------------- ## |
---|
[107] | 3622 | _ASBOX |
---|
| 3623 | ) | |
---|
| 3624 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3625 | ;; |
---|
| 3626 | esac |
---|
| 3627 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3631 | else |
---|
[349] | 3632 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
[107] | 3633 | fi |
---|
| 3634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3636 | |
---|
| 3637 | fi |
---|
| 3638 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3639 | cat >>confdefs.h <<_ACEOF |
---|
| 3640 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3641 | _ACEOF |
---|
| 3642 | |
---|
| 3643 | fi |
---|
| 3644 | |
---|
| 3645 | done |
---|
| 3646 | |
---|
[168] | 3647 | if test "x$ac_cv_header_stdc" = xno; then |
---|
| 3648 | { { echo "$as_me:$LINENO: error: |
---|
| 3649 | ------------------------------------------------------------------- |
---|
| 3650 | An ANSI standard C library is required to build Duchamp. |
---|
| 3651 | One of the ANSI C header files it requires is missing or unusable. |
---|
[107] | 3652 | |
---|
[168] | 3653 | ERROR: Duchamp configuration failure. |
---|
| 3654 | -------------------------------------------------------------------" >&5 |
---|
| 3655 | echo "$as_me: error: |
---|
| 3656 | ------------------------------------------------------------------- |
---|
| 3657 | An ANSI standard C library is required to build Duchamp. |
---|
| 3658 | One of the ANSI C header files it requires is missing or unusable. |
---|
| 3659 | |
---|
| 3660 | ERROR: Duchamp configuration failure. |
---|
| 3661 | -------------------------------------------------------------------" >&2;} |
---|
| 3662 | { (exit 1); exit 1; }; } |
---|
| 3663 | fi |
---|
| 3664 | |
---|
[107] | 3665 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 3666 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 3667 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 3668 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 3669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3670 | else |
---|
| 3671 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3672 | /* confdefs.h. */ |
---|
| 3673 | _ACEOF |
---|
| 3674 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3676 | /* end confdefs.h. */ |
---|
| 3677 | |
---|
| 3678 | #include <stdbool.h> |
---|
| 3679 | #ifndef bool |
---|
| 3680 | # error bool is not defined |
---|
| 3681 | #endif |
---|
| 3682 | #ifndef false |
---|
| 3683 | # error false is not defined |
---|
| 3684 | #endif |
---|
| 3685 | #if false |
---|
| 3686 | # error false is not 0 |
---|
| 3687 | #endif |
---|
| 3688 | #ifndef true |
---|
| 3689 | # error true is not defined |
---|
| 3690 | #endif |
---|
| 3691 | #if true != 1 |
---|
| 3692 | # error true is not 1 |
---|
| 3693 | #endif |
---|
| 3694 | #ifndef __bool_true_false_are_defined |
---|
| 3695 | # error __bool_true_false_are_defined is not defined |
---|
| 3696 | #endif |
---|
| 3697 | |
---|
[349] | 3698 | struct s { _Bool s: 1; _Bool t; } s; |
---|
[107] | 3699 | |
---|
[349] | 3700 | char a[true == 1 ? 1 : -1]; |
---|
| 3701 | char b[false == 0 ? 1 : -1]; |
---|
| 3702 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 3703 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 3704 | bool e = &s; |
---|
| 3705 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 3706 | char g[true]; |
---|
| 3707 | char h[sizeof (_Bool)]; |
---|
| 3708 | char i[sizeof s.t]; |
---|
[107] | 3709 | |
---|
| 3710 | int |
---|
| 3711 | main () |
---|
| 3712 | { |
---|
| 3713 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 3714 | ; |
---|
| 3715 | return 0; |
---|
| 3716 | } |
---|
| 3717 | _ACEOF |
---|
| 3718 | rm -f conftest.$ac_objext |
---|
| 3719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3720 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3721 | ac_status=$? |
---|
[349] | 3722 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3723 | rm -f conftest.er1 |
---|
| 3724 | cat conftest.err >&5 |
---|
[107] | 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3726 | (exit $ac_status); } && |
---|
[349] | 3727 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3728 | || test ! -s conftest.err' |
---|
[107] | 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 |
---|
[349] | 3733 | (exit $ac_status); }; } && |
---|
| 3734 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3736 | (eval $ac_try) 2>&5 |
---|
| 3737 | ac_status=$? |
---|
| 3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3739 | (exit $ac_status); }; }; then |
---|
| 3740 | ac_cv_header_stdbool_h=yes |
---|
| 3741 | else |
---|
| 3742 | echo "$as_me: failed program was:" >&5 |
---|
| 3743 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3744 | |
---|
| 3745 | ac_cv_header_stdbool_h=no |
---|
| 3746 | fi |
---|
[349] | 3747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3748 | fi |
---|
| 3749 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 3750 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 3751 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 3752 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 3753 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 3754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3755 | else |
---|
| 3756 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3757 | /* confdefs.h. */ |
---|
| 3758 | _ACEOF |
---|
| 3759 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3760 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3761 | /* end confdefs.h. */ |
---|
| 3762 | $ac_includes_default |
---|
| 3763 | int |
---|
| 3764 | main () |
---|
| 3765 | { |
---|
| 3766 | if ((_Bool *) 0) |
---|
| 3767 | return 0; |
---|
| 3768 | if (sizeof (_Bool)) |
---|
| 3769 | return 0; |
---|
| 3770 | ; |
---|
| 3771 | return 0; |
---|
| 3772 | } |
---|
| 3773 | _ACEOF |
---|
| 3774 | rm -f conftest.$ac_objext |
---|
| 3775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3776 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3777 | ac_status=$? |
---|
[349] | 3778 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3779 | rm -f conftest.er1 |
---|
| 3780 | cat conftest.err >&5 |
---|
[107] | 3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3782 | (exit $ac_status); } && |
---|
[349] | 3783 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3784 | || test ! -s conftest.err' |
---|
[107] | 3785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3786 | (eval $ac_try) 2>&5 |
---|
| 3787 | ac_status=$? |
---|
| 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3789 | (exit $ac_status); }; } && |
---|
| 3790 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3792 | (eval $ac_try) 2>&5 |
---|
| 3793 | ac_status=$? |
---|
| 3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3795 | (exit $ac_status); }; }; then |
---|
| 3796 | ac_cv_type__Bool=yes |
---|
| 3797 | else |
---|
| 3798 | echo "$as_me: failed program was:" >&5 |
---|
| 3799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3800 | |
---|
| 3801 | ac_cv_type__Bool=no |
---|
| 3802 | fi |
---|
[349] | 3803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3804 | fi |
---|
| 3805 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 3806 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 3807 | if test $ac_cv_type__Bool = yes; then |
---|
| 3808 | |
---|
| 3809 | cat >>confdefs.h <<_ACEOF |
---|
| 3810 | #define HAVE__BOOL 1 |
---|
| 3811 | _ACEOF |
---|
| 3812 | |
---|
| 3813 | |
---|
| 3814 | fi |
---|
| 3815 | |
---|
| 3816 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 3817 | |
---|
| 3818 | cat >>confdefs.h <<\_ACEOF |
---|
| 3819 | #define HAVE_STDBOOL_H 1 |
---|
| 3820 | _ACEOF |
---|
| 3821 | |
---|
| 3822 | fi |
---|
| 3823 | |
---|
| 3824 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
| 3825 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
| 3826 | if test "${ac_cv_c_const+set}" = set; then |
---|
| 3827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3828 | else |
---|
| 3829 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3830 | /* confdefs.h. */ |
---|
| 3831 | _ACEOF |
---|
| 3832 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3833 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3834 | /* end confdefs.h. */ |
---|
| 3835 | |
---|
| 3836 | int |
---|
| 3837 | main () |
---|
| 3838 | { |
---|
| 3839 | /* FIXME: Include the comments suggested by Paul. */ |
---|
| 3840 | #ifndef __cplusplus |
---|
| 3841 | /* Ultrix mips cc rejects this. */ |
---|
| 3842 | typedef int charset[2]; |
---|
| 3843 | const charset x; |
---|
| 3844 | /* SunOS 4.1.1 cc rejects this. */ |
---|
| 3845 | char const *const *ccp; |
---|
| 3846 | char **p; |
---|
| 3847 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 3848 | struct point {int x, y;}; |
---|
| 3849 | static struct point const zero = {0,0}; |
---|
| 3850 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 3851 | It does not let you subtract one const X* pointer from another in |
---|
| 3852 | an arm of an if-expression whose if-part is not a constant |
---|
| 3853 | expression */ |
---|
| 3854 | const char *g = "string"; |
---|
| 3855 | ccp = &g + (g ? g-g : 0); |
---|
| 3856 | /* HPUX 7.0 cc rejects these. */ |
---|
| 3857 | ++ccp; |
---|
| 3858 | p = (char**) ccp; |
---|
| 3859 | ccp = (char const *const *) p; |
---|
| 3860 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 3861 | char *t; |
---|
| 3862 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 3863 | |
---|
| 3864 | *t++ = 0; |
---|
| 3865 | } |
---|
| 3866 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 3867 | int x[] = {25, 17}; |
---|
| 3868 | const int *foo = &x[0]; |
---|
| 3869 | ++foo; |
---|
| 3870 | } |
---|
| 3871 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 3872 | typedef const int *iptr; |
---|
| 3873 | iptr p = 0; |
---|
| 3874 | ++p; |
---|
| 3875 | } |
---|
| 3876 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 3877 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 3878 | struct s { int j; const int *ap[3]; }; |
---|
| 3879 | struct s *b; b->j = 5; |
---|
| 3880 | } |
---|
| 3881 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 3882 | const int foo = 10; |
---|
| 3883 | } |
---|
| 3884 | #endif |
---|
| 3885 | |
---|
| 3886 | ; |
---|
| 3887 | return 0; |
---|
| 3888 | } |
---|
| 3889 | _ACEOF |
---|
| 3890 | rm -f conftest.$ac_objext |
---|
| 3891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3892 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3893 | ac_status=$? |
---|
[349] | 3894 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3895 | rm -f conftest.er1 |
---|
| 3896 | cat conftest.err >&5 |
---|
[107] | 3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3898 | (exit $ac_status); } && |
---|
[349] | 3899 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3900 | || test ! -s conftest.err' |
---|
[107] | 3901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3902 | (eval $ac_try) 2>&5 |
---|
| 3903 | ac_status=$? |
---|
| 3904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3905 | (exit $ac_status); }; } && |
---|
| 3906 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3908 | (eval $ac_try) 2>&5 |
---|
| 3909 | ac_status=$? |
---|
| 3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3911 | (exit $ac_status); }; }; then |
---|
| 3912 | ac_cv_c_const=yes |
---|
| 3913 | else |
---|
| 3914 | echo "$as_me: failed program was:" >&5 |
---|
| 3915 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3916 | |
---|
| 3917 | ac_cv_c_const=no |
---|
| 3918 | fi |
---|
[349] | 3919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3920 | fi |
---|
| 3921 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
| 3922 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
| 3923 | if test $ac_cv_c_const = no; then |
---|
| 3924 | |
---|
| 3925 | cat >>confdefs.h <<\_ACEOF |
---|
| 3926 | #define const |
---|
| 3927 | _ACEOF |
---|
| 3928 | |
---|
| 3929 | fi |
---|
| 3930 | |
---|
| 3931 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
| 3932 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
| 3933 | if test "${ac_cv_c_inline+set}" = set; then |
---|
| 3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3935 | else |
---|
| 3936 | ac_cv_c_inline=no |
---|
| 3937 | for ac_kw in inline __inline__ __inline; do |
---|
| 3938 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3939 | /* confdefs.h. */ |
---|
| 3940 | _ACEOF |
---|
| 3941 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3942 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3943 | /* end confdefs.h. */ |
---|
| 3944 | #ifndef __cplusplus |
---|
| 3945 | typedef int foo_t; |
---|
| 3946 | static $ac_kw foo_t static_foo () {return 0; } |
---|
| 3947 | $ac_kw foo_t foo () {return 0; } |
---|
| 3948 | #endif |
---|
| 3949 | |
---|
| 3950 | _ACEOF |
---|
| 3951 | rm -f conftest.$ac_objext |
---|
| 3952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[349] | 3953 | (eval $ac_compile) 2>conftest.er1 |
---|
[107] | 3954 | ac_status=$? |
---|
[349] | 3955 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3956 | rm -f conftest.er1 |
---|
| 3957 | cat conftest.err >&5 |
---|
[107] | 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3959 | (exit $ac_status); } && |
---|
[349] | 3960 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3961 | || test ! -s conftest.err' |
---|
[107] | 3962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3963 | (eval $ac_try) 2>&5 |
---|
| 3964 | ac_status=$? |
---|
| 3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 3966 | (exit $ac_status); }; } && |
---|
| 3967 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3969 | (eval $ac_try) 2>&5 |
---|
| 3970 | ac_status=$? |
---|
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 3972 | (exit $ac_status); }; }; then |
---|
| 3973 | ac_cv_c_inline=$ac_kw; break |
---|
| 3974 | else |
---|
| 3975 | echo "$as_me: failed program was:" >&5 |
---|
| 3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3977 | |
---|
| 3978 | fi |
---|
[349] | 3979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 3980 | done |
---|
| 3981 | |
---|
| 3982 | fi |
---|
| 3983 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
| 3984 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
[349] | 3985 | |
---|
| 3986 | |
---|
[107] | 3987 | case $ac_cv_c_inline in |
---|
| 3988 | inline | yes) ;; |
---|
[349] | 3989 | *) |
---|
| 3990 | case $ac_cv_c_inline in |
---|
| 3991 | no) ac_val=;; |
---|
| 3992 | *) ac_val=$ac_cv_c_inline;; |
---|
| 3993 | esac |
---|
| 3994 | cat >>confdefs.h <<_ACEOF |
---|
| 3995 | #ifndef __cplusplus |
---|
| 3996 | #define inline $ac_val |
---|
| 3997 | #endif |
---|
[107] | 3998 | _ACEOF |
---|
[349] | 3999 | ;; |
---|
[107] | 4000 | esac |
---|
| 4001 | |
---|
| 4002 | |
---|
[168] | 4003 | # Utilities. |
---|
| 4004 | if test -n "$ac_tool_prefix"; then |
---|
| 4005 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 4006 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 4007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4009 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4011 | else |
---|
| 4012 | if test -n "$RANLIB"; then |
---|
| 4013 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 4014 | else |
---|
| 4015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4016 | for as_dir in $PATH |
---|
| 4017 | do |
---|
| 4018 | IFS=$as_save_IFS |
---|
| 4019 | test -z "$as_dir" && as_dir=. |
---|
| 4020 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4022 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 4023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4024 | break 2 |
---|
| 4025 | fi |
---|
| 4026 | done |
---|
| 4027 | done |
---|
| 4028 | |
---|
| 4029 | fi |
---|
| 4030 | fi |
---|
| 4031 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 4032 | if test -n "$RANLIB"; then |
---|
| 4033 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 4034 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 4035 | else |
---|
| 4036 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4037 | echo "${ECHO_T}no" >&6 |
---|
| 4038 | fi |
---|
| 4039 | |
---|
| 4040 | fi |
---|
| 4041 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 4042 | ac_ct_RANLIB=$RANLIB |
---|
| 4043 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 4044 | set dummy ranlib; ac_word=$2 |
---|
| 4045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4047 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4049 | else |
---|
| 4050 | if test -n "$ac_ct_RANLIB"; then |
---|
| 4051 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 4052 | else |
---|
| 4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4054 | for as_dir in $PATH |
---|
| 4055 | do |
---|
| 4056 | IFS=$as_save_IFS |
---|
| 4057 | test -z "$as_dir" && as_dir=. |
---|
| 4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4060 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 4061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4062 | break 2 |
---|
| 4063 | fi |
---|
| 4064 | done |
---|
| 4065 | done |
---|
| 4066 | |
---|
| 4067 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 4068 | fi |
---|
| 4069 | fi |
---|
| 4070 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 4071 | if test -n "$ac_ct_RANLIB"; then |
---|
| 4072 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 4073 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 4074 | else |
---|
| 4075 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4076 | echo "${ECHO_T}no" >&6 |
---|
| 4077 | fi |
---|
| 4078 | |
---|
| 4079 | RANLIB=$ac_ct_RANLIB |
---|
| 4080 | else |
---|
| 4081 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 4082 | fi |
---|
| 4083 | |
---|
| 4084 | |
---|
[107] | 4085 | # Checks for library functions. |
---|
| 4086 | echo "$as_me:$LINENO: checking for working strtod" >&5 |
---|
| 4087 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
---|
| 4088 | if test "${ac_cv_func_strtod+set}" = set; then |
---|
| 4089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4090 | else |
---|
| 4091 | if test "$cross_compiling" = yes; then |
---|
| 4092 | ac_cv_func_strtod=no |
---|
| 4093 | else |
---|
| 4094 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4095 | /* confdefs.h. */ |
---|
| 4096 | _ACEOF |
---|
| 4097 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4098 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4099 | /* end confdefs.h. */ |
---|
| 4100 | |
---|
| 4101 | double strtod (); |
---|
| 4102 | int |
---|
| 4103 | main() |
---|
| 4104 | { |
---|
| 4105 | { |
---|
| 4106 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
| 4107 | char *string = " +69"; |
---|
| 4108 | char *term; |
---|
| 4109 | double value; |
---|
| 4110 | value = strtod (string, &term); |
---|
| 4111 | if (value != 69 || term != (string + 4)) |
---|
| 4112 | exit (1); |
---|
| 4113 | } |
---|
| 4114 | |
---|
| 4115 | { |
---|
| 4116 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
| 4117 | terminating character under some conditions. */ |
---|
| 4118 | char *string = "NaN"; |
---|
| 4119 | char *term; |
---|
| 4120 | strtod (string, &term); |
---|
| 4121 | if (term != string && *(term - 1) == 0) |
---|
| 4122 | exit (1); |
---|
| 4123 | } |
---|
| 4124 | exit (0); |
---|
| 4125 | } |
---|
| 4126 | |
---|
| 4127 | _ACEOF |
---|
| 4128 | rm -f conftest$ac_exeext |
---|
| 4129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4130 | (eval $ac_link) 2>&5 |
---|
| 4131 | ac_status=$? |
---|
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4135 | (eval $ac_try) 2>&5 |
---|
| 4136 | ac_status=$? |
---|
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4138 | (exit $ac_status); }; }; then |
---|
| 4139 | ac_cv_func_strtod=yes |
---|
| 4140 | else |
---|
| 4141 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4142 | echo "$as_me: failed program was:" >&5 |
---|
| 4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4144 | |
---|
| 4145 | ( exit $ac_status ) |
---|
| 4146 | ac_cv_func_strtod=no |
---|
| 4147 | fi |
---|
[349] | 4148 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[107] | 4149 | fi |
---|
| 4150 | fi |
---|
| 4151 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
---|
| 4152 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
---|
| 4153 | if test $ac_cv_func_strtod = no; then |
---|
[349] | 4154 | case $LIBOBJS in |
---|
| 4155 | "strtod.$ac_objext" | \ |
---|
| 4156 | *" strtod.$ac_objext" | \ |
---|
| 4157 | "strtod.$ac_objext "* | \ |
---|
| 4158 | *" strtod.$ac_objext "* ) ;; |
---|
| 4159 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; |
---|
| 4160 | esac |
---|
| 4161 | |
---|
[107] | 4162 | echo "$as_me:$LINENO: checking for pow" >&5 |
---|
| 4163 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
---|
| 4164 | if test "${ac_cv_func_pow+set}" = set; then |
---|
| 4165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4166 | else |
---|
| 4167 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4168 | /* confdefs.h. */ |
---|
| 4169 | _ACEOF |
---|
| 4170 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4171 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4172 | /* end confdefs.h. */ |
---|
[349] | 4173 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
---|
| 4174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 4175 | #define pow innocuous_pow |
---|
| 4176 | |
---|
[107] | 4177 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 4178 | which can conflict with char pow (); below. |
---|
| 4179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4180 | <limits.h> exists even on freestanding compilers. */ |
---|
[349] | 4181 | |
---|
[107] | 4182 | #ifdef __STDC__ |
---|
| 4183 | # include <limits.h> |
---|
| 4184 | #else |
---|
| 4185 | # include <assert.h> |
---|
| 4186 | #endif |
---|
[349] | 4187 | |
---|
| 4188 | #undef pow |
---|
| 4189 | |
---|
[107] | 4190 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4191 | #ifdef __cplusplus |
---|
| 4192 | extern "C" |
---|
| 4193 | { |
---|
| 4194 | #endif |
---|
| 4195 | /* We use char because int might match the return type of a gcc2 |
---|
| 4196 | builtin and then its argument prototype would still apply. */ |
---|
| 4197 | char pow (); |
---|
| 4198 | /* The GNU C library defines this for functions which it implements |
---|
| 4199 | to always fail with ENOSYS. Some functions are actually named |
---|
| 4200 | something starting with __ and the normal name is an alias. */ |
---|
| 4201 | #if defined (__stub_pow) || defined (__stub___pow) |
---|
| 4202 | choke me |
---|
| 4203 | #else |
---|
| 4204 | char (*f) () = pow; |
---|
| 4205 | #endif |
---|
| 4206 | #ifdef __cplusplus |
---|
| 4207 | } |
---|
| 4208 | #endif |
---|
| 4209 | |
---|
| 4210 | int |
---|
| 4211 | main () |
---|
| 4212 | { |
---|
| 4213 | return f != pow; |
---|
| 4214 | ; |
---|
| 4215 | return 0; |
---|
| 4216 | } |
---|
| 4217 | _ACEOF |
---|
| 4218 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4220 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4221 | ac_status=$? |
---|
[349] | 4222 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4223 | rm -f conftest.er1 |
---|
| 4224 | cat conftest.err >&5 |
---|
[107] | 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4226 | (exit $ac_status); } && |
---|
[349] | 4227 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4228 | || test ! -s conftest.err' |
---|
[107] | 4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4230 | (eval $ac_try) 2>&5 |
---|
| 4231 | ac_status=$? |
---|
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4233 | (exit $ac_status); }; } && |
---|
| 4234 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4236 | (eval $ac_try) 2>&5 |
---|
| 4237 | ac_status=$? |
---|
| 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4239 | (exit $ac_status); }; }; then |
---|
| 4240 | ac_cv_func_pow=yes |
---|
| 4241 | else |
---|
| 4242 | echo "$as_me: failed program was:" >&5 |
---|
| 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4244 | |
---|
| 4245 | ac_cv_func_pow=no |
---|
| 4246 | fi |
---|
[349] | 4247 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4248 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4249 | fi |
---|
| 4250 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
---|
| 4251 | echo "${ECHO_T}$ac_cv_func_pow" >&6 |
---|
| 4252 | |
---|
| 4253 | if test $ac_cv_func_pow = no; then |
---|
| 4254 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
| 4255 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
---|
| 4256 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
| 4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4258 | else |
---|
| 4259 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4260 | LIBS="-lm $LIBS" |
---|
| 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 | |
---|
| 4268 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4269 | #ifdef __cplusplus |
---|
| 4270 | extern "C" |
---|
| 4271 | #endif |
---|
| 4272 | /* We use char because int might match the return type of a gcc2 |
---|
| 4273 | builtin and then its argument prototype would still apply. */ |
---|
| 4274 | char pow (); |
---|
| 4275 | int |
---|
| 4276 | main () |
---|
| 4277 | { |
---|
| 4278 | pow (); |
---|
| 4279 | ; |
---|
| 4280 | return 0; |
---|
| 4281 | } |
---|
| 4282 | _ACEOF |
---|
| 4283 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4285 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4286 | ac_status=$? |
---|
[349] | 4287 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4288 | rm -f conftest.er1 |
---|
| 4289 | cat conftest.err >&5 |
---|
[107] | 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4291 | (exit $ac_status); } && |
---|
[349] | 4292 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4293 | || test ! -s conftest.err' |
---|
[107] | 4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4295 | (eval $ac_try) 2>&5 |
---|
| 4296 | ac_status=$? |
---|
| 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4298 | (exit $ac_status); }; } && |
---|
| 4299 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4301 | (eval $ac_try) 2>&5 |
---|
| 4302 | ac_status=$? |
---|
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4304 | (exit $ac_status); }; }; then |
---|
| 4305 | ac_cv_lib_m_pow=yes |
---|
| 4306 | else |
---|
| 4307 | echo "$as_me: failed program was:" >&5 |
---|
| 4308 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4309 | |
---|
| 4310 | ac_cv_lib_m_pow=no |
---|
| 4311 | fi |
---|
[349] | 4312 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4313 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4314 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4315 | fi |
---|
| 4316 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
| 4317 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
---|
| 4318 | if test $ac_cv_lib_m_pow = yes; then |
---|
| 4319 | POW_LIB=-lm |
---|
| 4320 | else |
---|
| 4321 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
---|
| 4322 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
| 4323 | fi |
---|
| 4324 | |
---|
| 4325 | fi |
---|
| 4326 | |
---|
| 4327 | fi |
---|
| 4328 | |
---|
| 4329 | |
---|
| 4330 | |
---|
| 4331 | |
---|
| 4332 | |
---|
| 4333 | |
---|
| 4334 | |
---|
| 4335 | |
---|
| 4336 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
| 4337 | do |
---|
| 4338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 4339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 4340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 4341 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4343 | else |
---|
| 4344 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4345 | /* confdefs.h. */ |
---|
| 4346 | _ACEOF |
---|
| 4347 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4348 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4349 | /* end confdefs.h. */ |
---|
[349] | 4350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 4351 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 4352 | #define $ac_func innocuous_$ac_func |
---|
| 4353 | |
---|
[107] | 4354 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 4355 | which can conflict with char $ac_func (); below. |
---|
| 4356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4357 | <limits.h> exists even on freestanding compilers. */ |
---|
[349] | 4358 | |
---|
[107] | 4359 | #ifdef __STDC__ |
---|
| 4360 | # include <limits.h> |
---|
| 4361 | #else |
---|
| 4362 | # include <assert.h> |
---|
| 4363 | #endif |
---|
[349] | 4364 | |
---|
| 4365 | #undef $ac_func |
---|
| 4366 | |
---|
[107] | 4367 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4368 | #ifdef __cplusplus |
---|
| 4369 | extern "C" |
---|
| 4370 | { |
---|
| 4371 | #endif |
---|
| 4372 | /* We use char because int might match the return type of a gcc2 |
---|
| 4373 | builtin and then its argument prototype would still apply. */ |
---|
| 4374 | char $ac_func (); |
---|
| 4375 | /* The GNU C library defines this for functions which it implements |
---|
| 4376 | to always fail with ENOSYS. Some functions are actually named |
---|
| 4377 | something starting with __ and the normal name is an alias. */ |
---|
| 4378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 4379 | choke me |
---|
| 4380 | #else |
---|
| 4381 | char (*f) () = $ac_func; |
---|
| 4382 | #endif |
---|
| 4383 | #ifdef __cplusplus |
---|
| 4384 | } |
---|
| 4385 | #endif |
---|
| 4386 | |
---|
| 4387 | int |
---|
| 4388 | main () |
---|
| 4389 | { |
---|
| 4390 | return f != $ac_func; |
---|
| 4391 | ; |
---|
| 4392 | return 0; |
---|
| 4393 | } |
---|
| 4394 | _ACEOF |
---|
| 4395 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4397 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4398 | ac_status=$? |
---|
[349] | 4399 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4400 | rm -f conftest.er1 |
---|
| 4401 | cat conftest.err >&5 |
---|
[107] | 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4403 | (exit $ac_status); } && |
---|
[349] | 4404 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4405 | || test ! -s conftest.err' |
---|
[107] | 4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4407 | (eval $ac_try) 2>&5 |
---|
| 4408 | ac_status=$? |
---|
| 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4410 | (exit $ac_status); }; } && |
---|
| 4411 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4413 | (eval $ac_try) 2>&5 |
---|
| 4414 | ac_status=$? |
---|
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4416 | (exit $ac_status); }; }; then |
---|
| 4417 | eval "$as_ac_var=yes" |
---|
| 4418 | else |
---|
| 4419 | echo "$as_me: failed program was:" >&5 |
---|
| 4420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4421 | |
---|
| 4422 | eval "$as_ac_var=no" |
---|
| 4423 | fi |
---|
[349] | 4424 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4425 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4426 | fi |
---|
| 4427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 4428 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 4429 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 4430 | cat >>confdefs.h <<_ACEOF |
---|
| 4431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 4432 | _ACEOF |
---|
| 4433 | |
---|
| 4434 | fi |
---|
| 4435 | done |
---|
| 4436 | |
---|
| 4437 | |
---|
| 4438 | # Extra places to look for third-party include files and libraries. |
---|
| 4439 | INCDIRS="$INCDIRS \ |
---|
| 4440 | /usr/include \ |
---|
| 4441 | /usr/local/include \ |
---|
| 4442 | /usr/local/pgplot \ |
---|
| 4443 | /usr/local/cfitsio \ |
---|
| 4444 | /usr/local/wcslib \ |
---|
| 4445 | /local/pgplot \ |
---|
[110] | 4446 | /local/cfitsio \ |
---|
| 4447 | /opt/local/include" |
---|
[107] | 4448 | |
---|
| 4449 | LIBDIRS="$LIBDIRS \ |
---|
| 4450 | /usr/lib \ |
---|
| 4451 | /usr/local/lib \ |
---|
| 4452 | /usr/local/pgplot \ |
---|
| 4453 | /usr/local/cfitsio \ |
---|
| 4454 | /usr/local/wcslib \ |
---|
| 4455 | /local/lib \ |
---|
| 4456 | /local/pgplot \ |
---|
| 4457 | /local/cfitsio \ |
---|
[110] | 4458 | /opt/SUNWspro/lib \ |
---|
| 4459 | /opt/local/lib" |
---|
[107] | 4460 | |
---|
| 4461 | { echo "$as_me:$LINENO: LIBDIRS" >&5 |
---|
| 4462 | echo "$as_me: LIBDIRS" >&6;} |
---|
| 4463 | |
---|
| 4464 | for LIBDIR in $LIBDIRS ; do |
---|
| 4465 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 4466 | echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
| 4467 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6 |
---|
| 4468 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4470 | else |
---|
| 4471 | test "$cross_compiling" = yes && |
---|
| 4472 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4473 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4474 | { (exit 1); exit 1; }; } |
---|
| 4475 | if test -r "$LIBDIR"; then |
---|
| 4476 | eval "$as_ac_File=yes" |
---|
| 4477 | else |
---|
| 4478 | eval "$as_ac_File=no" |
---|
| 4479 | fi |
---|
| 4480 | fi |
---|
| 4481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4482 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4483 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4484 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 4485 | else |
---|
| 4486 | continue |
---|
| 4487 | fi |
---|
| 4488 | |
---|
| 4489 | done |
---|
| 4490 | |
---|
| 4491 | ########################################################################## |
---|
| 4492 | # Search for PGPLOT |
---|
[342] | 4493 | # use --with-cfitsio=directory to specify a particular PGPLOT directory. |
---|
| 4494 | # or --without-pgplot or --with-pgplot=no to do without it |
---|
| 4495 | # else do the normal searching for libraries. |
---|
[107] | 4496 | |
---|
[342] | 4497 | { echo "$as_me:$LINENO: -- PGPLOT -- " >&5 |
---|
| 4498 | echo "$as_me: -- PGPLOT -- " >&6;} |
---|
| 4499 | |
---|
| 4500 | # Check whether --with-pgplot or --without-pgplot was given. |
---|
| 4501 | if test "${with_pgplot+set}" = set; then |
---|
| 4502 | withval="$with_pgplot" |
---|
| 4503 | |
---|
| 4504 | if test "x$withval" != xno; then |
---|
| 4505 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
| 4506 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
| 4507 | PGPLOTINCDIRS=$withval |
---|
| 4508 | PGPLOTLIBDIRS=$withval |
---|
| 4509 | LDFLAGS="$LDFLAGS -L$withval" |
---|
| 4510 | fi |
---|
| 4511 | |
---|
| 4512 | else |
---|
| 4513 | |
---|
| 4514 | PGPLOTINCDIRS=$INCDIRS |
---|
| 4515 | PGPLOTLIBDIRS=$LIBDIRS |
---|
| 4516 | |
---|
| 4517 | fi; |
---|
| 4518 | |
---|
| 4519 | if test "x$PGPLOTLIBDIRS" = x; then |
---|
| 4520 | #the argument to --with-pgplot was no, so we don't look for it. |
---|
| 4521 | { echo "$as_me:$LINENO: Not enabling PGPLOT use." >&5 |
---|
| 4522 | echo "$as_me: Not enabling PGPLOT use." >&6;} |
---|
[402] | 4523 | #This is the command to do the linking stage of the compilation |
---|
| 4524 | #If no pgplot, we can just link with g++ (or equivalent) |
---|
[384] | 4525 | LINKER=$CXX |
---|
| 4526 | # AC_CHECK_LIB([stdc++], [main], [PGPLOTLIB="-lstdc++"]) |
---|
| 4527 | # if test "x$F77" = xgfortran; then |
---|
| 4528 | # PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 4529 | # fi |
---|
[342] | 4530 | else |
---|
| 4531 | |
---|
[347] | 4532 | #Set up the PGPLOT-related libraries and includes. |
---|
| 4533 | |
---|
[342] | 4534 | for INCDIR in $PGPLOTINCDIRS ; do |
---|
| 4535 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
[107] | 4536 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 4537 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
| 4538 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4540 | else |
---|
| 4541 | test "$cross_compiling" = yes && |
---|
| 4542 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4543 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4544 | { (exit 1); exit 1; }; } |
---|
| 4545 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4546 | eval "$as_ac_File=yes" |
---|
| 4547 | else |
---|
| 4548 | eval "$as_ac_File=no" |
---|
| 4549 | fi |
---|
| 4550 | fi |
---|
| 4551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4552 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4553 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4554 | PGPLOTINC=-I$INCDIR; break |
---|
| 4555 | fi |
---|
| 4556 | |
---|
[342] | 4557 | INCDIR=$INCDIR/pgplot |
---|
| 4558 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
[107] | 4559 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 4560 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
| 4561 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4563 | else |
---|
| 4564 | test "$cross_compiling" = yes && |
---|
| 4565 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4566 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4567 | { (exit 1); exit 1; }; } |
---|
| 4568 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4569 | eval "$as_ac_File=yes" |
---|
| 4570 | else |
---|
| 4571 | eval "$as_ac_File=no" |
---|
| 4572 | fi |
---|
| 4573 | fi |
---|
| 4574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4575 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4576 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4577 | PGPLOTINC=-I$INCDIR; break |
---|
| 4578 | fi |
---|
| 4579 | |
---|
[342] | 4580 | done |
---|
[107] | 4581 | |
---|
[342] | 4582 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
| 4583 | echo "$as_me:$LINENO: checking for cosd in -lsunmath" >&5 |
---|
[107] | 4584 | echo $ECHO_N "checking for cosd in -lsunmath... $ECHO_C" >&6 |
---|
| 4585 | if test "${ac_cv_lib_sunmath_cosd+set}" = set; then |
---|
| 4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4587 | else |
---|
| 4588 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4589 | LIBS="-lsunmath $EXTRAPGLIB $LIBS $LIBS" |
---|
[107] | 4590 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4591 | /* confdefs.h. */ |
---|
| 4592 | _ACEOF |
---|
| 4593 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4594 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4595 | /* end confdefs.h. */ |
---|
| 4596 | |
---|
| 4597 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4598 | #ifdef __cplusplus |
---|
| 4599 | extern "C" |
---|
| 4600 | #endif |
---|
| 4601 | /* We use char because int might match the return type of a gcc2 |
---|
| 4602 | builtin and then its argument prototype would still apply. */ |
---|
| 4603 | char cosd (); |
---|
| 4604 | int |
---|
| 4605 | main () |
---|
| 4606 | { |
---|
| 4607 | cosd (); |
---|
| 4608 | ; |
---|
| 4609 | return 0; |
---|
| 4610 | } |
---|
| 4611 | _ACEOF |
---|
| 4612 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4614 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4615 | ac_status=$? |
---|
[349] | 4616 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4617 | rm -f conftest.er1 |
---|
| 4618 | cat conftest.err >&5 |
---|
[107] | 4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4620 | (exit $ac_status); } && |
---|
[349] | 4621 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4622 | || test ! -s conftest.err' |
---|
[107] | 4623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4624 | (eval $ac_try) 2>&5 |
---|
| 4625 | ac_status=$? |
---|
| 4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4627 | (exit $ac_status); }; } && |
---|
| 4628 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4630 | (eval $ac_try) 2>&5 |
---|
| 4631 | ac_status=$? |
---|
| 4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4633 | (exit $ac_status); }; }; then |
---|
| 4634 | ac_cv_lib_sunmath_cosd=yes |
---|
| 4635 | else |
---|
| 4636 | echo "$as_me: failed program was:" >&5 |
---|
| 4637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4638 | |
---|
| 4639 | ac_cv_lib_sunmath_cosd=no |
---|
| 4640 | fi |
---|
[349] | 4641 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4642 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4643 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4644 | fi |
---|
| 4645 | echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
| 4646 | echo "${ECHO_T}$ac_cv_lib_sunmath_cosd" >&6 |
---|
| 4647 | if test $ac_cv_lib_sunmath_cosd = yes; then |
---|
[351] | 4648 | EXTRAPGLIB="-lsunmath $EXTRAPGLIB" |
---|
[107] | 4649 | fi |
---|
| 4650 | |
---|
[342] | 4651 | echo "$as_me:$LINENO: checking for iand_ in -lM77" >&5 |
---|
[107] | 4652 | echo $ECHO_N "checking for iand_ in -lM77... $ECHO_C" >&6 |
---|
| 4653 | if test "${ac_cv_lib_M77_iand_+set}" = set; then |
---|
| 4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4655 | else |
---|
| 4656 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4657 | LIBS="-lM77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[107] | 4658 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4659 | /* confdefs.h. */ |
---|
| 4660 | _ACEOF |
---|
| 4661 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4663 | /* end confdefs.h. */ |
---|
| 4664 | |
---|
| 4665 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4666 | #ifdef __cplusplus |
---|
| 4667 | extern "C" |
---|
| 4668 | #endif |
---|
| 4669 | /* We use char because int might match the return type of a gcc2 |
---|
| 4670 | builtin and then its argument prototype would still apply. */ |
---|
| 4671 | char iand_ (); |
---|
| 4672 | int |
---|
| 4673 | main () |
---|
| 4674 | { |
---|
| 4675 | iand_ (); |
---|
| 4676 | ; |
---|
| 4677 | return 0; |
---|
| 4678 | } |
---|
| 4679 | _ACEOF |
---|
| 4680 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4682 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4683 | ac_status=$? |
---|
[349] | 4684 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4685 | rm -f conftest.er1 |
---|
| 4686 | cat conftest.err >&5 |
---|
[107] | 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4688 | (exit $ac_status); } && |
---|
[349] | 4689 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4690 | || test ! -s conftest.err' |
---|
[107] | 4691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4692 | (eval $ac_try) 2>&5 |
---|
| 4693 | ac_status=$? |
---|
| 4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4695 | (exit $ac_status); }; } && |
---|
| 4696 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4698 | (eval $ac_try) 2>&5 |
---|
| 4699 | ac_status=$? |
---|
| 4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4701 | (exit $ac_status); }; }; then |
---|
| 4702 | ac_cv_lib_M77_iand_=yes |
---|
| 4703 | else |
---|
| 4704 | echo "$as_me: failed program was:" >&5 |
---|
| 4705 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4706 | |
---|
| 4707 | ac_cv_lib_M77_iand_=no |
---|
| 4708 | fi |
---|
[349] | 4709 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4710 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4711 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4712 | fi |
---|
| 4713 | echo "$as_me:$LINENO: result: $ac_cv_lib_M77_iand_" >&5 |
---|
| 4714 | echo "${ECHO_T}$ac_cv_lib_M77_iand_" >&6 |
---|
| 4715 | if test $ac_cv_lib_M77_iand_ = yes; then |
---|
[351] | 4716 | EXTRAPGLIB="-lM77 $EXTRAPGLIB" |
---|
[107] | 4717 | fi |
---|
| 4718 | |
---|
[342] | 4719 | echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
---|
[107] | 4720 | echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6 |
---|
| 4721 | if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
---|
| 4722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4723 | else |
---|
| 4724 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 4725 | LIBS="-lF77 $EXTRAPGLIB $LIBS $LIBS" |
---|
[107] | 4726 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4727 | /* confdefs.h. */ |
---|
| 4728 | _ACEOF |
---|
| 4729 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4730 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4731 | /* end confdefs.h. */ |
---|
| 4732 | |
---|
| 4733 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4734 | #ifdef __cplusplus |
---|
| 4735 | extern "C" |
---|
| 4736 | #endif |
---|
| 4737 | /* We use char because int might match the return type of a gcc2 |
---|
| 4738 | builtin and then its argument prototype would still apply. */ |
---|
| 4739 | char f77_init (); |
---|
| 4740 | int |
---|
| 4741 | main () |
---|
| 4742 | { |
---|
| 4743 | f77_init (); |
---|
| 4744 | ; |
---|
| 4745 | return 0; |
---|
| 4746 | } |
---|
| 4747 | _ACEOF |
---|
| 4748 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4750 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4751 | ac_status=$? |
---|
[349] | 4752 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4753 | rm -f conftest.er1 |
---|
| 4754 | cat conftest.err >&5 |
---|
[107] | 4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4756 | (exit $ac_status); } && |
---|
[349] | 4757 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4758 | || test ! -s conftest.err' |
---|
[107] | 4759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4760 | (eval $ac_try) 2>&5 |
---|
| 4761 | ac_status=$? |
---|
| 4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4763 | (exit $ac_status); }; } && |
---|
| 4764 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4766 | (eval $ac_try) 2>&5 |
---|
| 4767 | ac_status=$? |
---|
| 4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4769 | (exit $ac_status); }; }; then |
---|
| 4770 | ac_cv_lib_F77_f77_init=yes |
---|
| 4771 | else |
---|
| 4772 | echo "$as_me: failed program was:" >&5 |
---|
| 4773 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4774 | |
---|
| 4775 | ac_cv_lib_F77_f77_init=no |
---|
| 4776 | fi |
---|
[349] | 4777 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4778 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4779 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4780 | fi |
---|
| 4781 | echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
| 4782 | echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6 |
---|
| 4783 | if test $ac_cv_lib_F77_f77_init = yes; then |
---|
[351] | 4784 | EXTRAPGLIB="-lF77 $EXTRAPGLIB" |
---|
[107] | 4785 | fi |
---|
| 4786 | |
---|
| 4787 | |
---|
[342] | 4788 | # Search for X11 includes and libraries. |
---|
| 4789 | echo "$as_me:$LINENO: checking for X" >&5 |
---|
[107] | 4790 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
---|
| 4791 | |
---|
| 4792 | |
---|
| 4793 | # Check whether --with-x or --without-x was given. |
---|
| 4794 | if test "${with_x+set}" = set; then |
---|
| 4795 | withval="$with_x" |
---|
| 4796 | |
---|
| 4797 | fi; |
---|
| 4798 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
| 4799 | if test "x$with_x" = xno; then |
---|
| 4800 | # The user explicitly disabled X. |
---|
| 4801 | have_x=disabled |
---|
| 4802 | else |
---|
| 4803 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
| 4804 | # Both variables are already set. |
---|
| 4805 | have_x=yes |
---|
| 4806 | else |
---|
| 4807 | if test "${ac_cv_have_x+set}" = set; then |
---|
| 4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4809 | else |
---|
| 4810 | # One or both of the vars are not set, and there is no cached value. |
---|
| 4811 | ac_x_includes=no ac_x_libraries=no |
---|
| 4812 | rm -fr conftest.dir |
---|
| 4813 | if mkdir conftest.dir; then |
---|
| 4814 | cd conftest.dir |
---|
| 4815 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
| 4816 | cat >Imakefile <<'_ACEOF' |
---|
| 4817 | acfindx: |
---|
| 4818 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
| 4819 | _ACEOF |
---|
| 4820 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
| 4821 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 4822 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
| 4823 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
| 4824 | for ac_extension in a so sl; do |
---|
| 4825 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
[349] | 4826 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
| 4827 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
[107] | 4828 | fi |
---|
| 4829 | done |
---|
| 4830 | # Screen out bogus values from the imake configuration. They are |
---|
| 4831 | # bogus both because they are the default anyway, and because |
---|
| 4832 | # using them would break gcc on systems where it needs fixed includes. |
---|
| 4833 | case $ac_im_incroot in |
---|
| 4834 | /usr/include) ;; |
---|
| 4835 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
| 4836 | esac |
---|
| 4837 | case $ac_im_usrlibdir in |
---|
| 4838 | /usr/lib | /lib) ;; |
---|
| 4839 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
| 4840 | esac |
---|
| 4841 | fi |
---|
| 4842 | cd .. |
---|
| 4843 | rm -fr conftest.dir |
---|
| 4844 | fi |
---|
| 4845 | |
---|
| 4846 | # Standard set of common directories for X headers. |
---|
| 4847 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
| 4848 | ac_x_header_dirs=' |
---|
| 4849 | /usr/X11/include |
---|
| 4850 | /usr/X11R6/include |
---|
| 4851 | /usr/X11R5/include |
---|
| 4852 | /usr/X11R4/include |
---|
| 4853 | |
---|
| 4854 | /usr/include/X11 |
---|
| 4855 | /usr/include/X11R6 |
---|
| 4856 | /usr/include/X11R5 |
---|
| 4857 | /usr/include/X11R4 |
---|
| 4858 | |
---|
| 4859 | /usr/local/X11/include |
---|
| 4860 | /usr/local/X11R6/include |
---|
| 4861 | /usr/local/X11R5/include |
---|
| 4862 | /usr/local/X11R4/include |
---|
| 4863 | |
---|
| 4864 | /usr/local/include/X11 |
---|
| 4865 | /usr/local/include/X11R6 |
---|
| 4866 | /usr/local/include/X11R5 |
---|
| 4867 | /usr/local/include/X11R4 |
---|
| 4868 | |
---|
| 4869 | /usr/X386/include |
---|
| 4870 | /usr/x386/include |
---|
| 4871 | /usr/XFree86/include/X11 |
---|
| 4872 | |
---|
| 4873 | /usr/include |
---|
| 4874 | /usr/local/include |
---|
| 4875 | /usr/unsupported/include |
---|
| 4876 | /usr/athena/include |
---|
| 4877 | /usr/local/x11r5/include |
---|
| 4878 | /usr/lpp/Xamples/include |
---|
| 4879 | |
---|
| 4880 | /usr/openwin/include |
---|
| 4881 | /usr/openwin/share/include' |
---|
| 4882 | |
---|
| 4883 | if test "$ac_x_includes" = no; then |
---|
| 4884 | # Guess where to find include files, by looking for Intrinsic.h. |
---|
| 4885 | # First, try using that file with no special directory specified. |
---|
| 4886 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4887 | /* confdefs.h. */ |
---|
| 4888 | _ACEOF |
---|
| 4889 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4890 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4891 | /* end confdefs.h. */ |
---|
| 4892 | #include <X11/Intrinsic.h> |
---|
| 4893 | _ACEOF |
---|
| 4894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4896 | ac_status=$? |
---|
| 4897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4898 | rm -f conftest.er1 |
---|
| 4899 | cat conftest.err >&5 |
---|
| 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4901 | (exit $ac_status); } >/dev/null; then |
---|
| 4902 | if test -s conftest.err; then |
---|
| 4903 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
[349] | 4904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[107] | 4905 | else |
---|
| 4906 | ac_cpp_err= |
---|
| 4907 | fi |
---|
| 4908 | else |
---|
| 4909 | ac_cpp_err=yes |
---|
| 4910 | fi |
---|
| 4911 | if test -z "$ac_cpp_err"; then |
---|
| 4912 | # We can compile using X headers with no special include directory. |
---|
| 4913 | ac_x_includes= |
---|
| 4914 | else |
---|
| 4915 | echo "$as_me: failed program was:" >&5 |
---|
| 4916 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4917 | |
---|
| 4918 | for ac_dir in $ac_x_header_dirs; do |
---|
| 4919 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
---|
| 4920 | ac_x_includes=$ac_dir |
---|
| 4921 | break |
---|
| 4922 | fi |
---|
| 4923 | done |
---|
| 4924 | fi |
---|
| 4925 | rm -f conftest.err conftest.$ac_ext |
---|
| 4926 | fi # $ac_x_includes = no |
---|
| 4927 | |
---|
| 4928 | if test "$ac_x_libraries" = no; then |
---|
| 4929 | # Check for the libraries. |
---|
| 4930 | # See if we find them without any special options. |
---|
| 4931 | # Don't add to $LIBS permanently. |
---|
| 4932 | ac_save_LIBS=$LIBS |
---|
| 4933 | LIBS="-lXt $LIBS" |
---|
| 4934 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4935 | /* confdefs.h. */ |
---|
| 4936 | _ACEOF |
---|
| 4937 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4938 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4939 | /* end confdefs.h. */ |
---|
| 4940 | #include <X11/Intrinsic.h> |
---|
| 4941 | int |
---|
| 4942 | main () |
---|
| 4943 | { |
---|
| 4944 | XtMalloc (0) |
---|
| 4945 | ; |
---|
| 4946 | return 0; |
---|
| 4947 | } |
---|
| 4948 | _ACEOF |
---|
| 4949 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 4951 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 4952 | ac_status=$? |
---|
[349] | 4953 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4954 | rm -f conftest.er1 |
---|
| 4955 | cat conftest.err >&5 |
---|
[107] | 4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4957 | (exit $ac_status); } && |
---|
[349] | 4958 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4959 | || test ! -s conftest.err' |
---|
[107] | 4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4961 | (eval $ac_try) 2>&5 |
---|
| 4962 | ac_status=$? |
---|
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 4964 | (exit $ac_status); }; } && |
---|
| 4965 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4967 | (eval $ac_try) 2>&5 |
---|
| 4968 | ac_status=$? |
---|
| 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 4970 | (exit $ac_status); }; }; then |
---|
| 4971 | LIBS=$ac_save_LIBS |
---|
| 4972 | # We can link X programs with no special library path. |
---|
| 4973 | ac_x_libraries= |
---|
| 4974 | else |
---|
| 4975 | echo "$as_me: failed program was:" >&5 |
---|
| 4976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4977 | |
---|
| 4978 | LIBS=$ac_save_LIBS |
---|
| 4979 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
| 4980 | do |
---|
| 4981 | # Don't even attempt the hair of trying to link an X program! |
---|
| 4982 | for ac_extension in a so sl; do |
---|
| 4983 | if test -r $ac_dir/libXt.$ac_extension; then |
---|
| 4984 | ac_x_libraries=$ac_dir |
---|
| 4985 | break 2 |
---|
| 4986 | fi |
---|
| 4987 | done |
---|
| 4988 | done |
---|
| 4989 | fi |
---|
[349] | 4990 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4991 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 4992 | fi # $ac_x_libraries = no |
---|
| 4993 | |
---|
| 4994 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
---|
| 4995 | # Didn't find X anywhere. Cache the known absence of X. |
---|
| 4996 | ac_cv_have_x="have_x=no" |
---|
| 4997 | else |
---|
| 4998 | # Record where we found X for the cache. |
---|
| 4999 | ac_cv_have_x="have_x=yes \ |
---|
[349] | 5000 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
[107] | 5001 | fi |
---|
| 5002 | fi |
---|
| 5003 | |
---|
| 5004 | fi |
---|
| 5005 | eval "$ac_cv_have_x" |
---|
| 5006 | fi # $with_x != no |
---|
| 5007 | |
---|
| 5008 | if test "$have_x" != yes; then |
---|
| 5009 | echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
| 5010 | echo "${ECHO_T}$have_x" >&6 |
---|
| 5011 | no_x=yes |
---|
| 5012 | else |
---|
| 5013 | # If each of the values was on the command line, it overrides each guess. |
---|
| 5014 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
| 5015 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
| 5016 | # Update the cache value to reflect the command line values. |
---|
| 5017 | ac_cv_have_x="have_x=yes \ |
---|
| 5018 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
| 5019 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
| 5020 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
---|
| 5021 | fi |
---|
| 5022 | |
---|
[342] | 5023 | if test "x$ac_x_libraries" != x; then |
---|
| 5024 | LDFLAGS="$LDFLAGS -L$ac_x_libraries" |
---|
[351] | 5025 | EXTRAPGLIB="-L$ac_x_libraries -lX11 $EXTRAPGLIB" |
---|
[342] | 5026 | fi |
---|
[107] | 5027 | |
---|
[351] | 5028 | # # Add pgplot libraries, if they exist to the lib path |
---|
| 5029 | # for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
| 5030 | # AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break]) |
---|
| 5031 | # done |
---|
| 5032 | |
---|
[342] | 5033 | # It is possible that other libraries may be required depending on what |
---|
| 5034 | # graphics drivers were installed with PGPLOT. |
---|
| 5035 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
---|
[107] | 5036 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 |
---|
| 5037 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
---|
| 5038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5039 | else |
---|
| 5040 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5041 | LIBS="-lz $EXTRAPGLIB $LIBS $LIBS" |
---|
[107] | 5042 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5043 | /* confdefs.h. */ |
---|
| 5044 | _ACEOF |
---|
| 5045 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5046 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5047 | /* end confdefs.h. */ |
---|
| 5048 | |
---|
| 5049 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5050 | #ifdef __cplusplus |
---|
| 5051 | extern "C" |
---|
| 5052 | #endif |
---|
| 5053 | /* We use char because int might match the return type of a gcc2 |
---|
| 5054 | builtin and then its argument prototype would still apply. */ |
---|
| 5055 | char deflate (); |
---|
| 5056 | int |
---|
| 5057 | main () |
---|
| 5058 | { |
---|
| 5059 | deflate (); |
---|
| 5060 | ; |
---|
| 5061 | return 0; |
---|
| 5062 | } |
---|
| 5063 | _ACEOF |
---|
| 5064 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5066 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5067 | ac_status=$? |
---|
[349] | 5068 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5069 | rm -f conftest.er1 |
---|
| 5070 | cat conftest.err >&5 |
---|
[107] | 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5072 | (exit $ac_status); } && |
---|
[349] | 5073 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5074 | || test ! -s conftest.err' |
---|
[107] | 5075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5076 | (eval $ac_try) 2>&5 |
---|
| 5077 | ac_status=$? |
---|
| 5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5079 | (exit $ac_status); }; } && |
---|
| 5080 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5082 | (eval $ac_try) 2>&5 |
---|
| 5083 | ac_status=$? |
---|
| 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5085 | (exit $ac_status); }; }; then |
---|
| 5086 | ac_cv_lib_z_deflate=yes |
---|
| 5087 | else |
---|
| 5088 | echo "$as_me: failed program was:" >&5 |
---|
| 5089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5090 | |
---|
| 5091 | ac_cv_lib_z_deflate=no |
---|
| 5092 | fi |
---|
[349] | 5093 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5094 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5095 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5096 | fi |
---|
| 5097 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
---|
| 5098 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 |
---|
| 5099 | if test $ac_cv_lib_z_deflate = yes; then |
---|
[351] | 5100 | EXTRAPGLIB="$EXTRAPGLIB -lz" |
---|
[107] | 5101 | fi |
---|
| 5102 | |
---|
[342] | 5103 | echo "$as_me:$LINENO: checking for png_error in -lpng" >&5 |
---|
[107] | 5104 | echo $ECHO_N "checking for png_error in -lpng... $ECHO_C" >&6 |
---|
| 5105 | if test "${ac_cv_lib_png_png_error+set}" = set; then |
---|
| 5106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5107 | else |
---|
| 5108 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5109 | LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS" |
---|
[107] | 5110 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5111 | /* confdefs.h. */ |
---|
| 5112 | _ACEOF |
---|
| 5113 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5114 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5115 | /* end confdefs.h. */ |
---|
| 5116 | |
---|
| 5117 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5118 | #ifdef __cplusplus |
---|
| 5119 | extern "C" |
---|
| 5120 | #endif |
---|
| 5121 | /* We use char because int might match the return type of a gcc2 |
---|
| 5122 | builtin and then its argument prototype would still apply. */ |
---|
| 5123 | char png_error (); |
---|
| 5124 | int |
---|
| 5125 | main () |
---|
| 5126 | { |
---|
| 5127 | png_error (); |
---|
| 5128 | ; |
---|
| 5129 | return 0; |
---|
| 5130 | } |
---|
| 5131 | _ACEOF |
---|
| 5132 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5134 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5135 | ac_status=$? |
---|
[349] | 5136 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5137 | rm -f conftest.er1 |
---|
| 5138 | cat conftest.err >&5 |
---|
[107] | 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5140 | (exit $ac_status); } && |
---|
[349] | 5141 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5142 | || test ! -s conftest.err' |
---|
[107] | 5143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5144 | (eval $ac_try) 2>&5 |
---|
| 5145 | ac_status=$? |
---|
| 5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5147 | (exit $ac_status); }; } && |
---|
| 5148 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5150 | (eval $ac_try) 2>&5 |
---|
| 5151 | ac_status=$? |
---|
| 5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5153 | (exit $ac_status); }; }; then |
---|
| 5154 | ac_cv_lib_png_png_error=yes |
---|
| 5155 | else |
---|
| 5156 | echo "$as_me: failed program was:" >&5 |
---|
| 5157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5158 | |
---|
| 5159 | ac_cv_lib_png_png_error=no |
---|
| 5160 | fi |
---|
[349] | 5161 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5162 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5163 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5164 | fi |
---|
| 5165 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_error" >&5 |
---|
| 5166 | echo "${ECHO_T}$ac_cv_lib_png_png_error" >&6 |
---|
| 5167 | if test $ac_cv_lib_png_png_error = yes; then |
---|
[351] | 5168 | EXTRAPGLIB="$EXTRAPGLIB -lpng" |
---|
[107] | 5169 | fi |
---|
| 5170 | |
---|
[351] | 5171 | |
---|
| 5172 | ac_ext=f |
---|
| 5173 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
| 5174 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5175 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
| 5176 | |
---|
| 5177 | |
---|
| 5178 | echo "$as_me:$LINENO: checking for pgopen in -lpgplot" >&5 |
---|
| 5179 | echo $ECHO_N "checking for pgopen in -lpgplot... $ECHO_C" >&6 |
---|
| 5180 | if test "${ac_cv_lib_pgplot_pgopen+set}" = set; then |
---|
[107] | 5181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5182 | else |
---|
| 5183 | ac_check_lib_save_LIBS=$LIBS |
---|
[352] | 5184 | LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[107] | 5185 | cat >conftest.$ac_ext <<_ACEOF |
---|
[351] | 5186 | program main |
---|
| 5187 | call pgopen |
---|
| 5188 | end |
---|
[107] | 5189 | _ACEOF |
---|
| 5190 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5192 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5193 | ac_status=$? |
---|
[349] | 5194 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5195 | rm -f conftest.er1 |
---|
| 5196 | cat conftest.err >&5 |
---|
[107] | 5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5198 | (exit $ac_status); } && |
---|
[351] | 5199 | { ac_try='test -z "$ac_f77_werror_flag" |
---|
[349] | 5200 | || test ! -s conftest.err' |
---|
[107] | 5201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5202 | (eval $ac_try) 2>&5 |
---|
| 5203 | ac_status=$? |
---|
| 5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5205 | (exit $ac_status); }; } && |
---|
| 5206 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5208 | (eval $ac_try) 2>&5 |
---|
| 5209 | ac_status=$? |
---|
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5211 | (exit $ac_status); }; }; then |
---|
[351] | 5212 | ac_cv_lib_pgplot_pgopen=yes |
---|
[107] | 5213 | else |
---|
| 5214 | echo "$as_me: failed program was:" >&5 |
---|
| 5215 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5216 | |
---|
[351] | 5217 | ac_cv_lib_pgplot_pgopen=no |
---|
[107] | 5218 | fi |
---|
[349] | 5219 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5220 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5221 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5222 | fi |
---|
[351] | 5223 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgplot_pgopen" >&5 |
---|
| 5224 | echo "${ECHO_T}$ac_cv_lib_pgplot_pgopen" >&6 |
---|
| 5225 | if test $ac_cv_lib_pgplot_pgopen = yes; then |
---|
| 5226 | PGPLOTLIB="-lpgplot" |
---|
[107] | 5227 | fi |
---|
| 5228 | |
---|
[351] | 5229 | ac_ext=c |
---|
| 5230 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 5231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 5232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 5233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 5234 | |
---|
[352] | 5235 | # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS |
---|
| 5236 | |
---|
| 5237 | echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5 |
---|
| 5238 | echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6 |
---|
| 5239 | if test "${ac_cv_lib_g2c_gerror_+set}" = set; then |
---|
| 5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5241 | else |
---|
| 5242 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5243 | LIBS="-lg2c $LIBS" |
---|
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5245 | /* confdefs.h. */ |
---|
| 5246 | _ACEOF |
---|
| 5247 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5249 | /* end confdefs.h. */ |
---|
| 5250 | |
---|
| 5251 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5252 | #ifdef __cplusplus |
---|
| 5253 | extern "C" |
---|
| 5254 | #endif |
---|
| 5255 | /* We use char because int might match the return type of a gcc2 |
---|
| 5256 | builtin and then its argument prototype would still apply. */ |
---|
| 5257 | char gerror_ (); |
---|
| 5258 | int |
---|
| 5259 | main () |
---|
| 5260 | { |
---|
| 5261 | gerror_ (); |
---|
| 5262 | ; |
---|
| 5263 | return 0; |
---|
| 5264 | } |
---|
| 5265 | _ACEOF |
---|
| 5266 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5268 | (eval $ac_link) 2>conftest.er1 |
---|
| 5269 | ac_status=$? |
---|
| 5270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5271 | rm -f conftest.er1 |
---|
| 5272 | cat conftest.err >&5 |
---|
| 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5274 | (exit $ac_status); } && |
---|
| 5275 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5276 | || test ! -s conftest.err' |
---|
| 5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5278 | (eval $ac_try) 2>&5 |
---|
| 5279 | ac_status=$? |
---|
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5281 | (exit $ac_status); }; } && |
---|
| 5282 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5284 | (eval $ac_try) 2>&5 |
---|
| 5285 | ac_status=$? |
---|
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5287 | (exit $ac_status); }; }; then |
---|
| 5288 | ac_cv_lib_g2c_gerror_=yes |
---|
| 5289 | else |
---|
| 5290 | echo "$as_me: failed program was:" >&5 |
---|
| 5291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5292 | |
---|
| 5293 | ac_cv_lib_g2c_gerror_=no |
---|
| 5294 | fi |
---|
| 5295 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5296 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5297 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5298 | fi |
---|
| 5299 | echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
| 5300 | echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6 |
---|
| 5301 | if test $ac_cv_lib_g2c_gerror_ = yes; then |
---|
| 5302 | cat >>confdefs.h <<_ACEOF |
---|
| 5303 | #define HAVE_LIBG2C 1 |
---|
| 5304 | _ACEOF |
---|
| 5305 | |
---|
| 5306 | LIBS="-lg2c $LIBS" |
---|
| 5307 | |
---|
| 5308 | fi |
---|
| 5309 | |
---|
| 5310 | |
---|
| 5311 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5 |
---|
| 5312 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6 |
---|
| 5313 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then |
---|
| 5314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5315 | else |
---|
| 5316 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5317 | LIBS="-lstdc++ $LIBS" |
---|
| 5318 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5319 | /* confdefs.h. */ |
---|
| 5320 | _ACEOF |
---|
| 5321 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5322 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5323 | /* end confdefs.h. */ |
---|
| 5324 | |
---|
| 5325 | |
---|
| 5326 | int |
---|
| 5327 | main () |
---|
| 5328 | { |
---|
| 5329 | main (); |
---|
| 5330 | ; |
---|
| 5331 | return 0; |
---|
| 5332 | } |
---|
| 5333 | _ACEOF |
---|
| 5334 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5336 | (eval $ac_link) 2>conftest.er1 |
---|
| 5337 | ac_status=$? |
---|
| 5338 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5339 | rm -f conftest.er1 |
---|
| 5340 | cat conftest.err >&5 |
---|
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5342 | (exit $ac_status); } && |
---|
| 5343 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5344 | || test ! -s conftest.err' |
---|
| 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5346 | (eval $ac_try) 2>&5 |
---|
| 5347 | ac_status=$? |
---|
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5349 | (exit $ac_status); }; } && |
---|
| 5350 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5352 | (eval $ac_try) 2>&5 |
---|
| 5353 | ac_status=$? |
---|
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5355 | (exit $ac_status); }; }; then |
---|
| 5356 | ac_cv_lib_stdcpp_main=yes |
---|
| 5357 | else |
---|
| 5358 | echo "$as_me: failed program was:" >&5 |
---|
| 5359 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5360 | |
---|
| 5361 | ac_cv_lib_stdcpp_main=no |
---|
| 5362 | fi |
---|
| 5363 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5364 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5365 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5366 | fi |
---|
| 5367 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5 |
---|
| 5368 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6 |
---|
| 5369 | if test $ac_cv_lib_stdcpp_main = yes; then |
---|
| 5370 | cat >>confdefs.h <<_ACEOF |
---|
| 5371 | #define HAVE_LIBSTDC__ 1 |
---|
| 5372 | _ACEOF |
---|
| 5373 | |
---|
| 5374 | LIBS="-lstdc++ $LIBS" |
---|
| 5375 | |
---|
| 5376 | fi |
---|
| 5377 | |
---|
[351] | 5378 | if test "x$F77" = xgfortran; then |
---|
| 5379 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
| 5380 | { echo "$as_me:$LINENO: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5 |
---|
| 5381 | echo "$as_me: Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;} |
---|
| 5382 | else |
---|
| 5383 | echo "$as_me:$LINENO: checking for cpgopen in -lcpgplot" >&5 |
---|
[107] | 5384 | echo $ECHO_N "checking for cpgopen in -lcpgplot... $ECHO_C" >&6 |
---|
| 5385 | if test "${ac_cv_lib_cpgplot_cpgopen+set}" = set; then |
---|
| 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5387 | else |
---|
| 5388 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 5389 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS" |
---|
[107] | 5390 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5391 | /* confdefs.h. */ |
---|
| 5392 | _ACEOF |
---|
| 5393 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5394 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5395 | /* end confdefs.h. */ |
---|
| 5396 | |
---|
| 5397 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5398 | #ifdef __cplusplus |
---|
| 5399 | extern "C" |
---|
| 5400 | #endif |
---|
| 5401 | /* We use char because int might match the return type of a gcc2 |
---|
| 5402 | builtin and then its argument prototype would still apply. */ |
---|
| 5403 | char cpgopen (); |
---|
| 5404 | int |
---|
| 5405 | main () |
---|
| 5406 | { |
---|
| 5407 | cpgopen (); |
---|
| 5408 | ; |
---|
| 5409 | return 0; |
---|
| 5410 | } |
---|
| 5411 | _ACEOF |
---|
| 5412 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5414 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5415 | ac_status=$? |
---|
[349] | 5416 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5417 | rm -f conftest.er1 |
---|
| 5418 | cat conftest.err >&5 |
---|
[107] | 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5420 | (exit $ac_status); } && |
---|
[349] | 5421 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5422 | || test ! -s conftest.err' |
---|
[107] | 5423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5424 | (eval $ac_try) 2>&5 |
---|
| 5425 | ac_status=$? |
---|
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5427 | (exit $ac_status); }; } && |
---|
| 5428 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5430 | (eval $ac_try) 2>&5 |
---|
| 5431 | ac_status=$? |
---|
| 5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5433 | (exit $ac_status); }; }; then |
---|
| 5434 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
| 5435 | else |
---|
| 5436 | echo "$as_me: failed program was:" >&5 |
---|
| 5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5438 | |
---|
| 5439 | ac_cv_lib_cpgplot_cpgopen=no |
---|
| 5440 | fi |
---|
[349] | 5441 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5442 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5443 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5444 | fi |
---|
| 5445 | echo "$as_me:$LINENO: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
| 5446 | echo "${ECHO_T}$ac_cv_lib_cpgplot_cpgopen" >&6 |
---|
| 5447 | if test $ac_cv_lib_cpgplot_cpgopen = yes; then |
---|
| 5448 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
| 5449 | fi |
---|
| 5450 | |
---|
[351] | 5451 | fi |
---|
[107] | 5452 | |
---|
[342] | 5453 | # If PGPLOT is not present, we give a warning message but still continue. |
---|
| 5454 | # The compilation is able to work without the PGPLOT-dependent files. |
---|
| 5455 | if test "x$PGPLOTLIB" = x; then |
---|
| 5456 | { echo "$as_me:$LINENO: |
---|
| 5457 | ------------------------------------------------------- |
---|
| 5458 | WARNING! PGPLOT could not be found. |
---|
| 5459 | Compiling Duchamp without graphics capabilities. |
---|
| 5460 | -------------------------------------------------------" >&5 |
---|
[315] | 5461 | echo "$as_me: |
---|
[342] | 5462 | ------------------------------------------------------- |
---|
| 5463 | WARNING! PGPLOT could not be found. |
---|
| 5464 | Compiling Duchamp without graphics capabilities. |
---|
| 5465 | -------------------------------------------------------" >&6;} |
---|
[402] | 5466 | #We have no pgplot, so we just link with g++ (or equivalent) |
---|
| 5467 | LINKER=$CXX |
---|
[342] | 5468 | else |
---|
[402] | 5469 | #We are using pgplot, so link with the fortran compiler. |
---|
| 5470 | LINKER=$F77 |
---|
[351] | 5471 | PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS" |
---|
[342] | 5472 | { echo "$as_me:$LINENO: PGPLOT appears to be available." >&5 |
---|
[107] | 5473 | echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
| 5474 | |
---|
| 5475 | cat >>confdefs.h <<\_ACEOF |
---|
| 5476 | #define HAVE_PGPLOT 1 |
---|
| 5477 | _ACEOF |
---|
| 5478 | |
---|
[342] | 5479 | for LIBDIR in $PGPLOTLIBDIRS ; do |
---|
[351] | 5480 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh` |
---|
[342] | 5481 | echo "$as_me:$LINENO: checking for $LIBDIR/libcpgplot.a" >&5 |
---|
| 5482 | echo $ECHO_N "checking for $LIBDIR/libcpgplot.a... $ECHO_C" >&6 |
---|
| 5483 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5485 | else |
---|
| 5486 | test "$cross_compiling" = yes && |
---|
| 5487 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5488 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5489 | { (exit 1); exit 1; }; } |
---|
| 5490 | if test -r "$LIBDIR/libcpgplot.a"; then |
---|
| 5491 | eval "$as_ac_File=yes" |
---|
| 5492 | else |
---|
| 5493 | eval "$as_ac_File=no" |
---|
[107] | 5494 | fi |
---|
[342] | 5495 | fi |
---|
| 5496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5497 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5498 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5499 | PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break |
---|
| 5500 | fi |
---|
[107] | 5501 | |
---|
[342] | 5502 | done |
---|
[351] | 5503 | if test "x$F77" = xgfortran; then |
---|
| 5504 | PGPLOTLIB="$PGPLOTLIB -bind_at_load" |
---|
| 5505 | fi |
---|
[342] | 5506 | fi |
---|
[107] | 5507 | |
---|
[342] | 5508 | fi |
---|
[107] | 5509 | |
---|
[342] | 5510 | |
---|
| 5511 | |
---|
[384] | 5512 | |
---|
[107] | 5513 | ########################################################################## |
---|
| 5514 | |
---|
| 5515 | ########################################################################## |
---|
| 5516 | # Search for CFITSIO. |
---|
[342] | 5517 | # use --with-cfitsio=directory to specify a particular CFITSIO directory. |
---|
| 5518 | # else do the normal searching for libraries. |
---|
| 5519 | |
---|
| 5520 | { echo "$as_me:$LINENO: -- CFITSIO -- " >&5 |
---|
| 5521 | echo "$as_me: -- CFITSIO -- " >&6;} |
---|
| 5522 | |
---|
| 5523 | # Check whether --with-cfitsio or --without-cfitsio was given. |
---|
| 5524 | if test "${with_cfitsio+set}" = set; then |
---|
| 5525 | withval="$with_cfitsio" |
---|
| 5526 | #if we specify a directory... |
---|
| 5527 | if test "x$withval" = xno; then |
---|
| 5528 | { echo "$as_me:$LINENO: |
---|
| 5529 | The CFITSIO library is required. |
---|
| 5530 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5 |
---|
| 5531 | echo "$as_me: |
---|
| 5532 | The CFITSIO library is required. |
---|
| 5533 | Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;} |
---|
| 5534 | CFITSIOINCDIRS=$INCDIRS |
---|
| 5535 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 5536 | else |
---|
| 5537 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
| 5538 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
| 5539 | CFITSIOINCDIRS="$withval \ |
---|
| 5540 | $withval/include" |
---|
| 5541 | CFITSIOLIBDIRS="$withval \ |
---|
| 5542 | $withval/lib" |
---|
[351] | 5543 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
| 5544 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 5545 | echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
| 5546 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6 |
---|
[107] | 5547 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5549 | else |
---|
| 5550 | test "$cross_compiling" = yes && |
---|
| 5551 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5552 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5553 | { (exit 1); exit 1; }; } |
---|
[351] | 5554 | if test -r "$LIBDIR"; then |
---|
[107] | 5555 | eval "$as_ac_File=yes" |
---|
| 5556 | else |
---|
| 5557 | eval "$as_ac_File=no" |
---|
| 5558 | fi |
---|
| 5559 | fi |
---|
| 5560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5561 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5562 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[351] | 5563 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 5564 | else |
---|
| 5565 | continue |
---|
[107] | 5566 | fi |
---|
| 5567 | |
---|
[351] | 5568 | done |
---|
| 5569 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
| 5570 | as_ac_File=`echo "ac_cv_file_$INCDIR" | $as_tr_sh` |
---|
| 5571 | echo "$as_me:$LINENO: checking for $INCDIR" >&5 |
---|
| 5572 | echo $ECHO_N "checking for $INCDIR... $ECHO_C" >&6 |
---|
[107] | 5573 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5575 | else |
---|
| 5576 | test "$cross_compiling" = yes && |
---|
| 5577 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5578 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5579 | { (exit 1); exit 1; }; } |
---|
[351] | 5580 | if test -r "$INCDIR"; then |
---|
[107] | 5581 | eval "$as_ac_File=yes" |
---|
| 5582 | else |
---|
| 5583 | eval "$as_ac_File=no" |
---|
| 5584 | fi |
---|
| 5585 | fi |
---|
| 5586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5587 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5588 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[351] | 5589 | CPPFLAGS="$CPPFLAGS -I$INCDIR" |
---|
| 5590 | else |
---|
| 5591 | continue |
---|
[107] | 5592 | fi |
---|
| 5593 | |
---|
[351] | 5594 | done |
---|
| 5595 | fi |
---|
[107] | 5596 | |
---|
[351] | 5597 | else |
---|
| 5598 | # if directory not specified, go searching. |
---|
| 5599 | CFITSIOINCDIRS=$INCDIRS |
---|
| 5600 | CFITSIOLIBDIRS=$LIBDIRS |
---|
| 5601 | |
---|
| 5602 | fi; |
---|
| 5603 | |
---|
| 5604 | for INCDIR in $CFITSIOINCDIRS ; do |
---|
| 5605 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 5606 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
| 5607 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
[349] | 5608 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5610 | else |
---|
| 5611 | test "$cross_compiling" = yes && |
---|
| 5612 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5613 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5614 | { (exit 1); exit 1; }; } |
---|
[351] | 5615 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 5616 | eval "$as_ac_File=yes" |
---|
| 5617 | else |
---|
| 5618 | eval "$as_ac_File=no" |
---|
| 5619 | fi |
---|
| 5620 | fi |
---|
| 5621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5622 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5623 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[351] | 5624 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 5625 | fi |
---|
| 5626 | |
---|
[351] | 5627 | INCDIR=$INCDIR/cfitsio |
---|
| 5628 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 5629 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
| 5630 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
[349] | 5631 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5633 | else |
---|
| 5634 | test "$cross_compiling" = yes && |
---|
| 5635 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5636 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5637 | { (exit 1); exit 1; }; } |
---|
[351] | 5638 | if test -r "$INCDIR/fitsio.h"; then |
---|
[349] | 5639 | eval "$as_ac_File=yes" |
---|
| 5640 | else |
---|
| 5641 | eval "$as_ac_File=no" |
---|
| 5642 | fi |
---|
| 5643 | fi |
---|
| 5644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5645 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5646 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[351] | 5647 | CFITSIOINC=-I$INCDIR; break |
---|
[349] | 5648 | fi |
---|
| 5649 | |
---|
| 5650 | done |
---|
| 5651 | |
---|
[107] | 5652 | echo "$as_me:$LINENO: checking for recv in -lsocket" >&5 |
---|
| 5653 | echo $ECHO_N "checking for recv in -lsocket... $ECHO_C" >&6 |
---|
| 5654 | if test "${ac_cv_lib_socket_recv+set}" = set; then |
---|
| 5655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5656 | else |
---|
| 5657 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5658 | LIBS="-lsocket $LIBS $LIBS" |
---|
| 5659 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5660 | /* confdefs.h. */ |
---|
| 5661 | _ACEOF |
---|
| 5662 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5664 | /* end confdefs.h. */ |
---|
| 5665 | |
---|
| 5666 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5667 | #ifdef __cplusplus |
---|
| 5668 | extern "C" |
---|
| 5669 | #endif |
---|
| 5670 | /* We use char because int might match the return type of a gcc2 |
---|
| 5671 | builtin and then its argument prototype would still apply. */ |
---|
| 5672 | char recv (); |
---|
| 5673 | int |
---|
| 5674 | main () |
---|
| 5675 | { |
---|
| 5676 | recv (); |
---|
| 5677 | ; |
---|
| 5678 | return 0; |
---|
| 5679 | } |
---|
| 5680 | _ACEOF |
---|
| 5681 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5683 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5684 | ac_status=$? |
---|
[349] | 5685 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5686 | rm -f conftest.er1 |
---|
| 5687 | cat conftest.err >&5 |
---|
[107] | 5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5689 | (exit $ac_status); } && |
---|
[349] | 5690 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5691 | || test ! -s conftest.err' |
---|
[107] | 5692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5693 | (eval $ac_try) 2>&5 |
---|
| 5694 | ac_status=$? |
---|
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5696 | (exit $ac_status); }; } && |
---|
| 5697 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5699 | (eval $ac_try) 2>&5 |
---|
| 5700 | ac_status=$? |
---|
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5702 | (exit $ac_status); }; }; then |
---|
| 5703 | ac_cv_lib_socket_recv=yes |
---|
| 5704 | else |
---|
| 5705 | echo "$as_me: failed program was:" >&5 |
---|
| 5706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5707 | |
---|
| 5708 | ac_cv_lib_socket_recv=no |
---|
| 5709 | fi |
---|
[349] | 5710 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5711 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5712 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5713 | fi |
---|
| 5714 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_recv" >&5 |
---|
| 5715 | echo "${ECHO_T}$ac_cv_lib_socket_recv" >&6 |
---|
| 5716 | if test $ac_cv_lib_socket_recv = yes; then |
---|
[351] | 5717 | CFITSIOLIB="$CFITSIOLIB -lsocket" |
---|
[107] | 5718 | fi |
---|
| 5719 | |
---|
| 5720 | echo "$as_me:$LINENO: checking for ffopen in -lcfitsio" >&5 |
---|
| 5721 | echo $ECHO_N "checking for ffopen in -lcfitsio... $ECHO_C" >&6 |
---|
| 5722 | if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then |
---|
| 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5724 | else |
---|
| 5725 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5726 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
| 5727 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5728 | /* confdefs.h. */ |
---|
| 5729 | _ACEOF |
---|
| 5730 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5731 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5732 | /* end confdefs.h. */ |
---|
| 5733 | |
---|
| 5734 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5735 | #ifdef __cplusplus |
---|
| 5736 | extern "C" |
---|
| 5737 | #endif |
---|
| 5738 | /* We use char because int might match the return type of a gcc2 |
---|
| 5739 | builtin and then its argument prototype would still apply. */ |
---|
| 5740 | char ffopen (); |
---|
| 5741 | int |
---|
| 5742 | main () |
---|
| 5743 | { |
---|
| 5744 | ffopen (); |
---|
| 5745 | ; |
---|
| 5746 | return 0; |
---|
| 5747 | } |
---|
| 5748 | _ACEOF |
---|
| 5749 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 5751 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 5752 | ac_status=$? |
---|
[349] | 5753 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5754 | rm -f conftest.er1 |
---|
| 5755 | cat conftest.err >&5 |
---|
[107] | 5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5757 | (exit $ac_status); } && |
---|
[349] | 5758 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5759 | || test ! -s conftest.err' |
---|
[107] | 5760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5761 | (eval $ac_try) 2>&5 |
---|
| 5762 | ac_status=$? |
---|
| 5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 5764 | (exit $ac_status); }; } && |
---|
| 5765 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5767 | (eval $ac_try) 2>&5 |
---|
| 5768 | ac_status=$? |
---|
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 5770 | (exit $ac_status); }; }; then |
---|
| 5771 | ac_cv_lib_cfitsio_ffopen=yes |
---|
| 5772 | else |
---|
| 5773 | echo "$as_me: failed program was:" >&5 |
---|
| 5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5775 | |
---|
| 5776 | ac_cv_lib_cfitsio_ffopen=no |
---|
| 5777 | fi |
---|
[349] | 5778 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5779 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 5780 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5781 | fi |
---|
| 5782 | echo "$as_me:$LINENO: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
| 5783 | echo "${ECHO_T}$ac_cv_lib_cfitsio_ffopen" >&6 |
---|
| 5784 | if test $ac_cv_lib_cfitsio_ffopen = yes; then |
---|
[351] | 5785 | CFITSIOLIB="$CFITSIOLIB -lcfitsio" |
---|
[107] | 5786 | fi |
---|
| 5787 | |
---|
| 5788 | |
---|
[328] | 5789 | # CFITSIO is essential for Duchamp, so exit with error message if it |
---|
| 5790 | # is not present. |
---|
[107] | 5791 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
| 5792 | { { echo "$as_me:$LINENO: error: |
---|
| 5793 | ------------------------------------------------------- |
---|
| 5794 | Could not find the CFITSIO library. |
---|
| 5795 | |
---|
| 5796 | ERROR: Duchamp configuration failure. |
---|
| 5797 | -------------------------------------------------------" >&5 |
---|
| 5798 | echo "$as_me: error: |
---|
| 5799 | ------------------------------------------------------- |
---|
| 5800 | Could not find the CFITSIO library. |
---|
| 5801 | |
---|
| 5802 | ERROR: Duchamp configuration failure. |
---|
| 5803 | -------------------------------------------------------" >&2;} |
---|
| 5804 | { (exit 1); exit 1; }; } |
---|
| 5805 | else |
---|
| 5806 | { echo "$as_me:$LINENO: CFITSIO appears to be available." >&5 |
---|
| 5807 | echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
| 5808 | |
---|
| 5809 | cat >>confdefs.h <<\_ACEOF |
---|
| 5810 | #define HAVE_CFITSIO 1 |
---|
| 5811 | _ACEOF |
---|
| 5812 | |
---|
[351] | 5813 | for LIBDIR in $CFITSIOLIBDIRS ; do |
---|
| 5814 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 5815 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 5816 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
| 5817 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5819 | else |
---|
| 5820 | test "$cross_compiling" = yes && |
---|
| 5821 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5822 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5823 | { (exit 1); exit 1; }; } |
---|
| 5824 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 5825 | eval "$as_ac_File=yes" |
---|
| 5826 | else |
---|
| 5827 | eval "$as_ac_File=no" |
---|
[107] | 5828 | fi |
---|
[351] | 5829 | fi |
---|
| 5830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5831 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5832 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5833 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 5834 | fi |
---|
[107] | 5835 | |
---|
[351] | 5836 | LIBDIR=$LIBDIR/cfitsio |
---|
| 5837 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 5838 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 5839 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
| 5840 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5842 | else |
---|
| 5843 | test "$cross_compiling" = yes && |
---|
| 5844 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5845 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5846 | { (exit 1); exit 1; }; } |
---|
| 5847 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 5848 | eval "$as_ac_File=yes" |
---|
| 5849 | else |
---|
| 5850 | eval "$as_ac_File=no" |
---|
| 5851 | fi |
---|
| 5852 | fi |
---|
| 5853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5854 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5855 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5856 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 5857 | fi |
---|
[107] | 5858 | |
---|
[351] | 5859 | done |
---|
[107] | 5860 | |
---|
[351] | 5861 | fi |
---|
| 5862 | |
---|
| 5863 | |
---|
| 5864 | |
---|
[107] | 5865 | ########################################################################## |
---|
| 5866 | |
---|
| 5867 | ########################################################################## |
---|
| 5868 | # Search for WCSLIB. |
---|
[351] | 5869 | # use --with-wcslib=directory to specify a particular WCSLIB directory. |
---|
[342] | 5870 | # else do the normal searching for libraries. |
---|
| 5871 | |
---|
| 5872 | { echo "$as_me:$LINENO: -- WCSLIB -- " >&5 |
---|
| 5873 | echo "$as_me: -- WCSLIB -- " >&6;} |
---|
[402] | 5874 | WCSINCDIR="" |
---|
[342] | 5875 | |
---|
| 5876 | # Check whether --with-wcslib or --without-wcslib was given. |
---|
| 5877 | if test "${with_wcslib+set}" = set; then |
---|
| 5878 | withval="$with_wcslib" |
---|
| 5879 | #if we specify a directory... |
---|
| 5880 | if test "x$withval" = xno; then |
---|
| 5881 | { echo "$as_me:$LINENO: |
---|
| 5882 | The WCSLIB library is required. |
---|
| 5883 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&5 |
---|
| 5884 | echo "$as_me: |
---|
| 5885 | The WCSLIB library is required. |
---|
| 5886 | Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;} |
---|
[351] | 5887 | WCSINCDIRS=$INCDIRS |
---|
| 5888 | WCSLIBDIRS=$LIBDIRS |
---|
[342] | 5889 | else |
---|
| 5890 | { echo "$as_me:$LINENO: Using directory \"$withval\"" >&5 |
---|
| 5891 | echo "$as_me: Using directory \"$withval\"" >&6;} |
---|
| 5892 | WCSINCDIRS="$withval \ |
---|
| 5893 | $withval/include" |
---|
| 5894 | WCSLIBDIRS="$withval \ |
---|
| 5895 | $withval/lib" |
---|
[351] | 5896 | for LIBDIR in $WCSLIBDIRS ; do |
---|
| 5897 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 5898 | echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
| 5899 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6 |
---|
[107] | 5900 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5902 | else |
---|
| 5903 | test "$cross_compiling" = yes && |
---|
| 5904 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5905 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5906 | { (exit 1); exit 1; }; } |
---|
[351] | 5907 | if test -r "$LIBDIR"; then |
---|
[107] | 5908 | eval "$as_ac_File=yes" |
---|
| 5909 | else |
---|
| 5910 | eval "$as_ac_File=no" |
---|
| 5911 | fi |
---|
| 5912 | fi |
---|
| 5913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5914 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5915 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[351] | 5916 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 5917 | else |
---|
| 5918 | continue |
---|
[107] | 5919 | fi |
---|
| 5920 | |
---|
[351] | 5921 | done |
---|
| 5922 | for INCDIR in $WCSINCDIRS ; do |
---|
[402] | 5923 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh` |
---|
| 5924 | echo "$as_me:$LINENO: checking for $INCDIR/wcslib" >&5 |
---|
| 5925 | echo $ECHO_N "checking for $INCDIR/wcslib... $ECHO_C" >&6 |
---|
[107] | 5926 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5928 | else |
---|
| 5929 | test "$cross_compiling" = yes && |
---|
| 5930 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5931 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5932 | { (exit 1); exit 1; }; } |
---|
[402] | 5933 | if test -r "$INCDIR/wcslib"; then |
---|
[107] | 5934 | eval "$as_ac_File=yes" |
---|
| 5935 | else |
---|
| 5936 | eval "$as_ac_File=no" |
---|
| 5937 | fi |
---|
| 5938 | fi |
---|
| 5939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5940 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5941 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[402] | 5942 | CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break |
---|
[351] | 5943 | else |
---|
| 5944 | continue |
---|
[107] | 5945 | fi |
---|
| 5946 | |
---|
[351] | 5947 | done |
---|
[107] | 5948 | fi |
---|
| 5949 | |
---|
[351] | 5950 | else |
---|
| 5951 | # if directory not specified, go searching. |
---|
| 5952 | WCSINCDIRS=$INCDIRS |
---|
| 5953 | WCSLIBDIRS=$LIBDIRS |
---|
| 5954 | |
---|
| 5955 | fi; |
---|
| 5956 | |
---|
| 5957 | |
---|
[402] | 5958 | if test "x$WCSINCDIR" = x; then |
---|
| 5959 | for INCBASE in $WCSINCDIRS ; do |
---|
| 5960 | as_ac_File=`echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh` |
---|
| 5961 | echo "$as_me:$LINENO: checking for $INCBASE/wcslib/wcs.h" >&5 |
---|
| 5962 | echo $ECHO_N "checking for $INCBASE/wcslib/wcs.h... $ECHO_C" >&6 |
---|
[107] | 5963 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5965 | else |
---|
| 5966 | test "$cross_compiling" = yes && |
---|
| 5967 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5968 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5969 | { (exit 1); exit 1; }; } |
---|
[402] | 5970 | if test -r "$INCBASE/wcslib/wcs.h"; then |
---|
[107] | 5971 | eval "$as_ac_File=yes" |
---|
| 5972 | else |
---|
| 5973 | eval "$as_ac_File=no" |
---|
| 5974 | fi |
---|
| 5975 | fi |
---|
| 5976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5977 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5978 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[492] | 5979 | WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break |
---|
[349] | 5980 | fi |
---|
[402] | 5981 | |
---|
| 5982 | done |
---|
[351] | 5983 | else |
---|
[402] | 5984 | as_ac_File=`echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh` |
---|
| 5985 | echo "$as_me:$LINENO: checking for $WCSINCDIR/wcslib/wcs.h" >&5 |
---|
| 5986 | echo $ECHO_N "checking for $WCSINCDIR/wcslib/wcs.h... $ECHO_C" >&6 |
---|
[349] | 5987 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5989 | else |
---|
| 5990 | test "$cross_compiling" = yes && |
---|
| 5991 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5992 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5993 | { (exit 1); exit 1; }; } |
---|
[402] | 5994 | if test -r "$WCSINCDIR/wcslib/wcs.h"; then |
---|
[349] | 5995 | eval "$as_ac_File=yes" |
---|
| 5996 | else |
---|
| 5997 | eval "$as_ac_File=no" |
---|
| 5998 | fi |
---|
| 5999 | fi |
---|
| 6000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 6001 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 6002 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
[492] | 6003 | WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC" |
---|
[349] | 6004 | fi |
---|
| 6005 | |
---|
| 6006 | fi |
---|
| 6007 | |
---|
| 6008 | |
---|
[351] | 6009 | # Look for libwcs.a, and libpgsbox.a |
---|
| 6010 | echo "$as_me:$LINENO: checking for wcss2p in -lwcs" >&5 |
---|
| 6011 | echo $ECHO_N "checking for wcss2p in -lwcs... $ECHO_C" >&6 |
---|
| 6012 | if test "${ac_cv_lib_wcs_wcss2p+set}" = set; then |
---|
[107] | 6013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6014 | else |
---|
| 6015 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6016 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[107] | 6017 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6018 | /* confdefs.h. */ |
---|
| 6019 | _ACEOF |
---|
| 6020 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6021 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6022 | /* end confdefs.h. */ |
---|
| 6023 | |
---|
| 6024 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6025 | #ifdef __cplusplus |
---|
| 6026 | extern "C" |
---|
| 6027 | #endif |
---|
| 6028 | /* We use char because int might match the return type of a gcc2 |
---|
| 6029 | builtin and then its argument prototype would still apply. */ |
---|
[351] | 6030 | char wcss2p (); |
---|
[107] | 6031 | int |
---|
| 6032 | main () |
---|
| 6033 | { |
---|
[351] | 6034 | wcss2p (); |
---|
[107] | 6035 | ; |
---|
| 6036 | return 0; |
---|
| 6037 | } |
---|
| 6038 | _ACEOF |
---|
| 6039 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 6041 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 6042 | ac_status=$? |
---|
[349] | 6043 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6044 | rm -f conftest.er1 |
---|
| 6045 | cat conftest.err >&5 |
---|
[107] | 6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6047 | (exit $ac_status); } && |
---|
[349] | 6048 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6049 | || test ! -s conftest.err' |
---|
[107] | 6050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6051 | (eval $ac_try) 2>&5 |
---|
| 6052 | ac_status=$? |
---|
| 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 6054 | (exit $ac_status); }; } && |
---|
| 6055 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6057 | (eval $ac_try) 2>&5 |
---|
| 6058 | ac_status=$? |
---|
| 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 6060 | (exit $ac_status); }; }; then |
---|
[351] | 6061 | ac_cv_lib_wcs_wcss2p=yes |
---|
[107] | 6062 | else |
---|
| 6063 | echo "$as_me: failed program was:" >&5 |
---|
| 6064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6065 | |
---|
[351] | 6066 | ac_cv_lib_wcs_wcss2p=no |
---|
[107] | 6067 | fi |
---|
[349] | 6068 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6069 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6070 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6071 | fi |
---|
[351] | 6072 | echo "$as_me:$LINENO: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
| 6073 | echo "${ECHO_T}$ac_cv_lib_wcs_wcss2p" >&6 |
---|
| 6074 | if test $ac_cv_lib_wcs_wcss2p = yes; then |
---|
| 6075 | WCSLIB="$WCSLIB -lwcs" |
---|
[107] | 6076 | fi |
---|
| 6077 | |
---|
[351] | 6078 | if test "x$F77" = xgfortran; then |
---|
| 6079 | WCSLIB="$WCSLIB -lpgsbox" |
---|
| 6080 | { echo "$as_me:$LINENO: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5 |
---|
| 6081 | echo "$as_me: Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;} |
---|
| 6082 | else |
---|
| 6083 | echo "$as_me:$LINENO: checking for cpgsbox in -lpgsbox" >&5 |
---|
| 6084 | echo $ECHO_N "checking for cpgsbox in -lpgsbox... $ECHO_C" >&6 |
---|
| 6085 | if test "${ac_cv_lib_pgsbox_cpgsbox+set}" = set; then |
---|
[107] | 6086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6087 | else |
---|
| 6088 | ac_check_lib_save_LIBS=$LIBS |
---|
[351] | 6089 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
[107] | 6090 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6091 | /* confdefs.h. */ |
---|
| 6092 | _ACEOF |
---|
| 6093 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6095 | /* end confdefs.h. */ |
---|
| 6096 | |
---|
| 6097 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6098 | #ifdef __cplusplus |
---|
| 6099 | extern "C" |
---|
| 6100 | #endif |
---|
| 6101 | /* We use char because int might match the return type of a gcc2 |
---|
| 6102 | builtin and then its argument prototype would still apply. */ |
---|
[351] | 6103 | char cpgsbox (); |
---|
[107] | 6104 | int |
---|
| 6105 | main () |
---|
| 6106 | { |
---|
[351] | 6107 | cpgsbox (); |
---|
[107] | 6108 | ; |
---|
| 6109 | return 0; |
---|
| 6110 | } |
---|
| 6111 | _ACEOF |
---|
| 6112 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[349] | 6114 | (eval $ac_link) 2>conftest.er1 |
---|
[107] | 6115 | ac_status=$? |
---|
[349] | 6116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6117 | rm -f conftest.er1 |
---|
| 6118 | cat conftest.err >&5 |
---|
[107] | 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6120 | (exit $ac_status); } && |
---|
[349] | 6121 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6122 | || test ! -s conftest.err' |
---|
[107] | 6123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6124 | (eval $ac_try) 2>&5 |
---|
| 6125 | ac_status=$? |
---|
| 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[349] | 6127 | (exit $ac_status); }; } && |
---|
| 6128 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6130 | (eval $ac_try) 2>&5 |
---|
| 6131 | ac_status=$? |
---|
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[107] | 6133 | (exit $ac_status); }; }; then |
---|
[351] | 6134 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
[107] | 6135 | else |
---|
| 6136 | echo "$as_me: failed program was:" >&5 |
---|
| 6137 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6138 | |
---|
[351] | 6139 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
[107] | 6140 | fi |
---|
[349] | 6141 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6142 | conftest$ac_exeext conftest.$ac_ext |
---|
[107] | 6143 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6144 | fi |
---|
[351] | 6145 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
| 6146 | echo "${ECHO_T}$ac_cv_lib_pgsbox_cpgsbox" >&6 |
---|
| 6147 | if test $ac_cv_lib_pgsbox_cpgsbox = yes; then |
---|
| 6148 | WCSLIB="$WCSLIB -lpgsbox" |
---|
[107] | 6149 | fi |
---|
| 6150 | |
---|
[351] | 6151 | fi |
---|
[107] | 6152 | |
---|
[328] | 6153 | # WCSLIB is essential for Duchamp, so exit with error message if it |
---|
| 6154 | # is not present. Need at least libwcs to be available -- libpgsbox will |
---|
| 6155 | # depend on PGPLOT being available, but is not critical. |
---|
[107] | 6156 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
| 6157 | { { echo "$as_me:$LINENO: error: |
---|
| 6158 | ------------------------------------------------------- |
---|
| 6159 | Could not find the WCSLIB library. |
---|
| 6160 | |
---|
| 6161 | ERROR: Duchamp configuration failure. |
---|
| 6162 | -------------------------------------------------------" >&5 |
---|
| 6163 | echo "$as_me: error: |
---|
| 6164 | ------------------------------------------------------- |
---|
| 6165 | Could not find the WCSLIB library. |
---|
| 6166 | |
---|
| 6167 | ERROR: Duchamp configuration failure. |
---|
| 6168 | -------------------------------------------------------" >&2;} |
---|
| 6169 | { (exit 1); exit 1; }; } |
---|
| 6170 | else |
---|
| 6171 | { echo "$as_me:$LINENO: WCSLIB appears to be available." >&5 |
---|
| 6172 | echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
| 6173 | |
---|
| 6174 | cat >>confdefs.h <<\_ACEOF |
---|
| 6175 | #define HAVE_WCSLIB 1 |
---|
| 6176 | _ACEOF |
---|
| 6177 | |
---|
[351] | 6178 | # Now add the -L statements to start of WCSLIB. |
---|
| 6179 | # Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and |
---|
| 6180 | # then in other directories, keeping the appropriate order of -L calls. |
---|
| 6181 | |
---|
[402] | 6182 | DIRLIST=". \ |
---|
| 6183 | wcs \ |
---|
| 6184 | wcslib" |
---|
| 6185 | |
---|
[351] | 6186 | for LIBBASE in $WCSLIBDIRS ; do |
---|
| 6187 | for DIR in $DIRLIST; do |
---|
| 6188 | if test "x$DIR" = x.; then |
---|
| 6189 | LIBDIR=$LIBBASE |
---|
| 6190 | else |
---|
| 6191 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6192 | fi |
---|
| 6193 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
| 6194 | echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
| 6195 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6 |
---|
| 6196 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 6197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6198 | else |
---|
| 6199 | test "$cross_compiling" = yes && |
---|
| 6200 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 6201 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 6202 | { (exit 1); exit 1; }; } |
---|
| 6203 | if test -r "$LIBDIR/libwcs.a"; then |
---|
| 6204 | eval "$as_ac_File=yes" |
---|
| 6205 | else |
---|
| 6206 | eval "$as_ac_File=no" |
---|
[107] | 6207 | fi |
---|
[351] | 6208 | fi |
---|
| 6209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 6210 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 6211 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 6212 | WCSLIBFRONT="-L$LIBDIR"; |
---|
| 6213 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
| 6214 | echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
| 6215 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6 |
---|
| 6216 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 6217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6218 | else |
---|
| 6219 | test "$cross_compiling" = yes && |
---|
| 6220 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 6221 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 6222 | { (exit 1); exit 1; }; } |
---|
| 6223 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
| 6224 | eval "$as_ac_File=yes" |
---|
| 6225 | else |
---|
| 6226 | eval "$as_ac_File=no" |
---|
| 6227 | fi |
---|
| 6228 | fi |
---|
| 6229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 6230 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 6231 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 6232 | : |
---|
| 6233 | else |
---|
[107] | 6234 | |
---|
[351] | 6235 | for LIBBASE2 in $WCSLIBDIRS ; do |
---|
| 6236 | for DIR2 in $DIRLIST; do |
---|
| 6237 | if test "x$DIR" = x.; then |
---|
| 6238 | LIBDIR=$LIBBASE |
---|
| 6239 | else |
---|
| 6240 | LIBDIR="$LIBBASE/$DIR" |
---|
| 6241 | fi |
---|
| 6242 | as_ac_File=`echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh` |
---|
| 6243 | echo "$as_me:$LINENO: checking for $LIBDIR2/libpgsbox.a" >&5 |
---|
| 6244 | echo $ECHO_N "checking for $LIBDIR2/libpgsbox.a... $ECHO_C" >&6 |
---|
| 6245 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 6246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6247 | else |
---|
| 6248 | test "$cross_compiling" = yes && |
---|
| 6249 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 6250 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 6251 | { (exit 1); exit 1; }; } |
---|
| 6252 | if test -r "$LIBDIR2/libpgsbox.a"; then |
---|
| 6253 | eval "$as_ac_File=yes" |
---|
| 6254 | else |
---|
| 6255 | eval "$as_ac_File=no" |
---|
| 6256 | fi |
---|
| 6257 | fi |
---|
| 6258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 6259 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 6260 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 6261 | WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break |
---|
| 6262 | fi |
---|
[107] | 6263 | |
---|
[351] | 6264 | done |
---|
| 6265 | done |
---|
| 6266 | fi |
---|
[107] | 6267 | |
---|
[351] | 6268 | break |
---|
| 6269 | fi |
---|
| 6270 | |
---|
| 6271 | done |
---|
| 6272 | done |
---|
| 6273 | WCSLIB="$WCSLIBFRONT $WCSLIB" |
---|
| 6274 | fi |
---|
| 6275 | |
---|
| 6276 | |
---|
| 6277 | |
---|
[107] | 6278 | ########################################################################## |
---|
| 6279 | |
---|
| 6280 | |
---|
| 6281 | |
---|
| 6282 | ac_config_files="$ac_config_files Makefile" |
---|
| 6283 | |
---|
| 6284 | cat >confcache <<\_ACEOF |
---|
| 6285 | # This file is a shell script that caches the results of configure |
---|
| 6286 | # tests run on this system so they can be shared between configure |
---|
| 6287 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6288 | # It is not useful on other systems. If it contains results you don't |
---|
| 6289 | # want to keep, you may remove or edit it. |
---|
| 6290 | # |
---|
| 6291 | # config.status only pays attention to the cache file if you give it |
---|
| 6292 | # the --recheck option to rerun configure. |
---|
| 6293 | # |
---|
| 6294 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6295 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6296 | # following values. |
---|
| 6297 | |
---|
| 6298 | _ACEOF |
---|
| 6299 | |
---|
| 6300 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6301 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6302 | # So, don't put newlines in cache variables' values. |
---|
| 6303 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6304 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6305 | { |
---|
| 6306 | (set) 2>&1 | |
---|
| 6307 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6308 | *ac_space=\ *) |
---|
| 6309 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6310 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6311 | sed -n \ |
---|
[349] | 6312 | "s/'/'\\\\''/g; |
---|
| 6313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
[107] | 6314 | ;; |
---|
| 6315 | *) |
---|
| 6316 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6317 | sed -n \ |
---|
[349] | 6318 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
[107] | 6319 | ;; |
---|
| 6320 | esac; |
---|
| 6321 | } | |
---|
| 6322 | sed ' |
---|
| 6323 | t clear |
---|
| 6324 | : clear |
---|
| 6325 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6326 | t end |
---|
| 6327 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6328 | : end' >>confcache |
---|
| 6329 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6330 | if test -w $cache_file; then |
---|
| 6331 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6332 | cat confcache >$cache_file |
---|
| 6333 | else |
---|
| 6334 | echo "not updating unwritable cache $cache_file" |
---|
| 6335 | fi |
---|
| 6336 | fi |
---|
| 6337 | rm -f confcache |
---|
| 6338 | |
---|
| 6339 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6340 | # Let make expand exec_prefix. |
---|
| 6341 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6342 | |
---|
| 6343 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6344 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6345 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6346 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6347 | if test "x$srcdir" = x.; then |
---|
[349] | 6348 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
[107] | 6349 | s/:*\$(srcdir):*/:/; |
---|
| 6350 | s/:*\${srcdir}:*/:/; |
---|
| 6351 | s/:*@srcdir@:*/:/; |
---|
[349] | 6352 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
[107] | 6353 | s/:*$//; |
---|
[349] | 6354 | s/^[^=]*=[ ]*$//; |
---|
[107] | 6355 | }' |
---|
| 6356 | fi |
---|
| 6357 | |
---|
| 6358 | DEFS=-DHAVE_CONFIG_H |
---|
| 6359 | |
---|
| 6360 | ac_libobjs= |
---|
| 6361 | ac_ltlibobjs= |
---|
| 6362 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6363 | # 1. Remove the extension, and $U if already installed. |
---|
| 6364 | ac_i=`echo "$ac_i" | |
---|
[349] | 6365 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
[107] | 6366 | # 2. Add them. |
---|
| 6367 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6368 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6369 | done |
---|
| 6370 | LIBOBJS=$ac_libobjs |
---|
| 6371 | |
---|
| 6372 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6373 | |
---|
| 6374 | |
---|
| 6375 | |
---|
| 6376 | : ${CONFIG_STATUS=./config.status} |
---|
| 6377 | ac_clean_files_save=$ac_clean_files |
---|
| 6378 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6379 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6380 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6381 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6382 | #! $SHELL |
---|
| 6383 | # Generated by $as_me. |
---|
| 6384 | # Run this file to recreate the current configuration. |
---|
| 6385 | # Compiler output produced by configure, useful for debugging |
---|
| 6386 | # configure, is in config.log if it exists. |
---|
| 6387 | |
---|
| 6388 | debug=false |
---|
| 6389 | ac_cs_recheck=false |
---|
| 6390 | ac_cs_silent=false |
---|
| 6391 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6392 | _ACEOF |
---|
| 6393 | |
---|
| 6394 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6395 | ## --------------------- ## |
---|
| 6396 | ## M4sh Initialization. ## |
---|
| 6397 | ## --------------------- ## |
---|
| 6398 | |
---|
| 6399 | # Be Bourne compatible |
---|
| 6400 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6401 | emulate sh |
---|
| 6402 | NULLCMD=: |
---|
| 6403 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6404 | # is contrary to our usage. Disable this feature. |
---|
| 6405 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6406 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6407 | set -o posix |
---|
| 6408 | fi |
---|
[349] | 6409 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[107] | 6410 | |
---|
| 6411 | # Support unset when possible. |
---|
[349] | 6412 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
[107] | 6413 | as_unset=unset |
---|
| 6414 | else |
---|
| 6415 | as_unset=false |
---|
| 6416 | fi |
---|
| 6417 | |
---|
| 6418 | |
---|
| 6419 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6420 | $as_unset ENV MAIL MAILPATH |
---|
| 6421 | PS1='$ ' |
---|
| 6422 | PS2='> ' |
---|
| 6423 | PS4='+ ' |
---|
| 6424 | |
---|
| 6425 | # NLS nuisances. |
---|
| 6426 | for as_var in \ |
---|
| 6427 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6428 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6429 | LC_TELEPHONE LC_TIME |
---|
| 6430 | do |
---|
[349] | 6431 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
[107] | 6432 | eval $as_var=C; export $as_var |
---|
| 6433 | else |
---|
| 6434 | $as_unset $as_var |
---|
| 6435 | fi |
---|
| 6436 | done |
---|
| 6437 | |
---|
| 6438 | # Required to use basename. |
---|
| 6439 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6440 | as_expr=expr |
---|
| 6441 | else |
---|
| 6442 | as_expr=false |
---|
| 6443 | fi |
---|
| 6444 | |
---|
| 6445 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6446 | as_basename=basename |
---|
| 6447 | else |
---|
| 6448 | as_basename=false |
---|
| 6449 | fi |
---|
| 6450 | |
---|
| 6451 | |
---|
| 6452 | # Name of the executable. |
---|
| 6453 | as_me=`$as_basename "$0" || |
---|
| 6454 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6455 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6456 | X"$0" : 'X\(/\)$' \| \ |
---|
| 6457 | . : '\(.\)' 2>/dev/null || |
---|
| 6458 | echo X/"$0" | |
---|
| 6459 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 6460 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 6461 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 6462 | s/.*/./; q'` |
---|
| 6463 | |
---|
| 6464 | |
---|
| 6465 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 6466 | # Avoid depending upon Character Ranges. |
---|
| 6467 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6468 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6469 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6470 | as_cr_digits='0123456789' |
---|
| 6471 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6472 | |
---|
| 6473 | # The user is always right. |
---|
| 6474 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6475 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6476 | echo "exit 0" >>conf$$.sh |
---|
| 6477 | chmod +x conf$$.sh |
---|
| 6478 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6479 | PATH_SEPARATOR=';' |
---|
| 6480 | else |
---|
| 6481 | PATH_SEPARATOR=: |
---|
| 6482 | fi |
---|
| 6483 | rm -f conf$$.sh |
---|
| 6484 | fi |
---|
| 6485 | |
---|
| 6486 | |
---|
| 6487 | as_lineno_1=$LINENO |
---|
| 6488 | as_lineno_2=$LINENO |
---|
| 6489 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6490 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6491 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6492 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6493 | # relative or not. |
---|
| 6494 | case $0 in |
---|
| 6495 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6496 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6497 | for as_dir in $PATH |
---|
| 6498 | do |
---|
| 6499 | IFS=$as_save_IFS |
---|
| 6500 | test -z "$as_dir" && as_dir=. |
---|
| 6501 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6502 | done |
---|
| 6503 | |
---|
| 6504 | ;; |
---|
| 6505 | esac |
---|
| 6506 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6507 | # in which case we are not to be found in the path. |
---|
| 6508 | if test "x$as_myself" = x; then |
---|
| 6509 | as_myself=$0 |
---|
| 6510 | fi |
---|
| 6511 | if test ! -f "$as_myself"; then |
---|
| 6512 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6513 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6514 | { (exit 1); exit 1; }; } |
---|
| 6515 | fi |
---|
| 6516 | case $CONFIG_SHELL in |
---|
| 6517 | '') |
---|
| 6518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6519 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6520 | do |
---|
| 6521 | IFS=$as_save_IFS |
---|
| 6522 | test -z "$as_dir" && as_dir=. |
---|
| 6523 | for as_base in sh bash ksh sh5; do |
---|
| 6524 | case $as_dir in |
---|
| 6525 | /*) |
---|
| 6526 | if ("$as_dir/$as_base" -c ' |
---|
| 6527 | as_lineno_1=$LINENO |
---|
| 6528 | as_lineno_2=$LINENO |
---|
| 6529 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6530 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6531 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6532 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6533 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6534 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6535 | export CONFIG_SHELL |
---|
| 6536 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6537 | fi;; |
---|
| 6538 | esac |
---|
| 6539 | done |
---|
| 6540 | done |
---|
| 6541 | ;; |
---|
| 6542 | esac |
---|
| 6543 | |
---|
| 6544 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6545 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6546 | # line-number line before each line; the second 'sed' does the real |
---|
| 6547 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6548 | # with the numbered line, and appends trailing '-' during |
---|
| 6549 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6550 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6551 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6552 | sed '=' <$as_myself | |
---|
| 6553 | sed ' |
---|
| 6554 | N |
---|
| 6555 | s,$,-, |
---|
| 6556 | : loop |
---|
| 6557 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6558 | t loop |
---|
| 6559 | s,-$,, |
---|
| 6560 | s,^['$as_cr_digits']*\n,, |
---|
| 6561 | ' >$as_me.lineno && |
---|
| 6562 | chmod +x $as_me.lineno || |
---|
| 6563 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6564 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6565 | { (exit 1); exit 1; }; } |
---|
| 6566 | |
---|
| 6567 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6568 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6569 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6570 | . ./$as_me.lineno |
---|
| 6571 | # Exit status is that of the last command. |
---|
| 6572 | exit |
---|
| 6573 | } |
---|
| 6574 | |
---|
| 6575 | |
---|
| 6576 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6577 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6578 | ' ECHO_T=' ' ;; |
---|
| 6579 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6580 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6581 | esac |
---|
| 6582 | |
---|
| 6583 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6584 | as_expr=expr |
---|
| 6585 | else |
---|
| 6586 | as_expr=false |
---|
| 6587 | fi |
---|
| 6588 | |
---|
| 6589 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6590 | echo >conf$$.file |
---|
| 6591 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6592 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6593 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6594 | if test -f conf$$.exe; then |
---|
| 6595 | # Don't use ln at all; we don't have any links |
---|
| 6596 | as_ln_s='cp -p' |
---|
| 6597 | else |
---|
| 6598 | as_ln_s='ln -s' |
---|
| 6599 | fi |
---|
| 6600 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6601 | as_ln_s=ln |
---|
| 6602 | else |
---|
| 6603 | as_ln_s='cp -p' |
---|
| 6604 | fi |
---|
| 6605 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6606 | |
---|
| 6607 | if mkdir -p . 2>/dev/null; then |
---|
| 6608 | as_mkdir_p=: |
---|
| 6609 | else |
---|
[349] | 6610 | test -d ./-p && rmdir ./-p |
---|
[107] | 6611 | as_mkdir_p=false |
---|
| 6612 | fi |
---|
| 6613 | |
---|
| 6614 | as_executable_p="test -f" |
---|
| 6615 | |
---|
| 6616 | # Sed expression to map a string onto a valid CPP name. |
---|
[349] | 6617 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 6618 | |
---|
| 6619 | # Sed expression to map a string onto a valid variable name. |
---|
[349] | 6620 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
[107] | 6621 | |
---|
| 6622 | |
---|
| 6623 | # IFS |
---|
| 6624 | # We need space, tab and new line, in precisely that order. |
---|
| 6625 | as_nl=' |
---|
| 6626 | ' |
---|
| 6627 | IFS=" $as_nl" |
---|
| 6628 | |
---|
| 6629 | # CDPATH. |
---|
| 6630 | $as_unset CDPATH |
---|
| 6631 | |
---|
| 6632 | exec 6>&1 |
---|
| 6633 | |
---|
| 6634 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6635 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6636 | # values after options handling. Logging --version etc. is OK. |
---|
| 6637 | exec 5>>config.log |
---|
| 6638 | { |
---|
| 6639 | echo |
---|
| 6640 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6641 | ## Running $as_me. ## |
---|
| 6642 | _ASBOX |
---|
| 6643 | } >&5 |
---|
| 6644 | cat >&5 <<_CSEOF |
---|
| 6645 | |
---|
[482] | 6646 | This file was extended by Duchamp $as_me 1.1.6, which was |
---|
[349] | 6647 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
[107] | 6648 | |
---|
| 6649 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6650 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6651 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6652 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6653 | $ $0 $@ |
---|
| 6654 | |
---|
| 6655 | _CSEOF |
---|
| 6656 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6657 | echo >&5 |
---|
| 6658 | _ACEOF |
---|
| 6659 | |
---|
| 6660 | # Files that config.status was made for. |
---|
| 6661 | if test -n "$ac_config_files"; then |
---|
| 6662 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6663 | fi |
---|
| 6664 | |
---|
| 6665 | if test -n "$ac_config_headers"; then |
---|
| 6666 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6667 | fi |
---|
| 6668 | |
---|
| 6669 | if test -n "$ac_config_links"; then |
---|
| 6670 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6671 | fi |
---|
| 6672 | |
---|
| 6673 | if test -n "$ac_config_commands"; then |
---|
| 6674 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6675 | fi |
---|
| 6676 | |
---|
| 6677 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6678 | |
---|
| 6679 | ac_cs_usage="\ |
---|
| 6680 | \`$as_me' instantiates files from templates according to the |
---|
| 6681 | current configuration. |
---|
| 6682 | |
---|
| 6683 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6684 | |
---|
| 6685 | -h, --help print this help, then exit |
---|
| 6686 | -V, --version print version number, then exit |
---|
| 6687 | -q, --quiet do not print progress messages |
---|
| 6688 | -d, --debug don't remove temporary files |
---|
| 6689 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6690 | --file=FILE[:TEMPLATE] |
---|
[349] | 6691 | instantiate the configuration file FILE |
---|
[107] | 6692 | --header=FILE[:TEMPLATE] |
---|
[349] | 6693 | instantiate the configuration header FILE |
---|
[107] | 6694 | |
---|
| 6695 | Configuration files: |
---|
| 6696 | $config_files |
---|
| 6697 | |
---|
| 6698 | Configuration headers: |
---|
| 6699 | $config_headers |
---|
| 6700 | |
---|
| 6701 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6702 | _ACEOF |
---|
| 6703 | |
---|
| 6704 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6705 | ac_cs_version="\\ |
---|
[482] | 6706 | Duchamp config.status 1.1.6 |
---|
[349] | 6707 | configured by $0, generated by GNU Autoconf 2.59, |
---|
[107] | 6708 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6709 | |
---|
[349] | 6710 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
[107] | 6711 | This config.status script is free software; the Free Software Foundation |
---|
| 6712 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6713 | srcdir=$srcdir |
---|
| 6714 | _ACEOF |
---|
| 6715 | |
---|
| 6716 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6717 | # If no file are specified by the user, then we need to provide default |
---|
| 6718 | # value. By we need to know if files were specified by the user. |
---|
| 6719 | ac_need_defaults=: |
---|
| 6720 | while test $# != 0 |
---|
| 6721 | do |
---|
| 6722 | case $1 in |
---|
| 6723 | --*=*) |
---|
| 6724 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6725 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6726 | ac_shift=: |
---|
| 6727 | ;; |
---|
| 6728 | -*) |
---|
| 6729 | ac_option=$1 |
---|
| 6730 | ac_optarg=$2 |
---|
| 6731 | ac_shift=shift |
---|
| 6732 | ;; |
---|
| 6733 | *) # This is not an option, so the user has probably given explicit |
---|
| 6734 | # arguments. |
---|
| 6735 | ac_option=$1 |
---|
| 6736 | ac_need_defaults=false;; |
---|
| 6737 | esac |
---|
| 6738 | |
---|
| 6739 | case $ac_option in |
---|
| 6740 | # Handling of the options. |
---|
| 6741 | _ACEOF |
---|
| 6742 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6743 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6744 | ac_cs_recheck=: ;; |
---|
| 6745 | --version | --vers* | -V ) |
---|
| 6746 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6747 | --he | --h) |
---|
| 6748 | # Conflict between --help and --header |
---|
| 6749 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6750 | Try \`$0 --help' for more information." >&5 |
---|
| 6751 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6752 | Try \`$0 --help' for more information." >&2;} |
---|
| 6753 | { (exit 1); exit 1; }; };; |
---|
| 6754 | --help | --hel | -h ) |
---|
| 6755 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6756 | --debug | --d* | -d ) |
---|
| 6757 | debug=: ;; |
---|
| 6758 | --file | --fil | --fi | --f ) |
---|
| 6759 | $ac_shift |
---|
| 6760 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6761 | ac_need_defaults=false;; |
---|
| 6762 | --header | --heade | --head | --hea ) |
---|
| 6763 | $ac_shift |
---|
| 6764 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6765 | ac_need_defaults=false;; |
---|
| 6766 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6767 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6768 | ac_cs_silent=: ;; |
---|
| 6769 | |
---|
| 6770 | # This is an error. |
---|
| 6771 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6772 | Try \`$0 --help' for more information." >&5 |
---|
| 6773 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6774 | Try \`$0 --help' for more information." >&2;} |
---|
| 6775 | { (exit 1); exit 1; }; } ;; |
---|
| 6776 | |
---|
| 6777 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6778 | |
---|
| 6779 | esac |
---|
| 6780 | shift |
---|
| 6781 | done |
---|
| 6782 | |
---|
| 6783 | ac_configure_extra_args= |
---|
| 6784 | |
---|
| 6785 | if $ac_cs_silent; then |
---|
| 6786 | exec 6>/dev/null |
---|
| 6787 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6788 | fi |
---|
| 6789 | |
---|
| 6790 | _ACEOF |
---|
| 6791 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6792 | if \$ac_cs_recheck; then |
---|
| 6793 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6794 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6795 | fi |
---|
| 6796 | |
---|
| 6797 | _ACEOF |
---|
| 6798 | |
---|
| 6799 | |
---|
| 6800 | |
---|
| 6801 | |
---|
| 6802 | |
---|
| 6803 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6804 | for ac_config_target in $ac_config_targets |
---|
| 6805 | do |
---|
| 6806 | case "$ac_config_target" in |
---|
| 6807 | # Handling of arguments. |
---|
| 6808 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[110] | 6809 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
[107] | 6810 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6811 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6812 | { (exit 1); exit 1; }; };; |
---|
| 6813 | esac |
---|
| 6814 | done |
---|
| 6815 | |
---|
| 6816 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6817 | # then the envvar interface is used. Set only those that are not. |
---|
| 6818 | # We use the long form for the default assignment because of an extremely |
---|
| 6819 | # bizarre bug on SunOS 4.1.3. |
---|
| 6820 | if $ac_need_defaults; then |
---|
| 6821 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6822 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 6823 | fi |
---|
| 6824 | |
---|
| 6825 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6826 | # simply because there is no reason to put it here, and in addition, |
---|
| 6827 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6828 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6829 | $debug || |
---|
| 6830 | { |
---|
| 6831 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6832 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6833 | } |
---|
| 6834 | |
---|
| 6835 | # Create a (secure) tmp directory for tmp files. |
---|
| 6836 | |
---|
| 6837 | { |
---|
| 6838 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6839 | test -n "$tmp" && test -d "$tmp" |
---|
| 6840 | } || |
---|
| 6841 | { |
---|
| 6842 | tmp=./confstat$$-$RANDOM |
---|
| 6843 | (umask 077 && mkdir $tmp) |
---|
| 6844 | } || |
---|
| 6845 | { |
---|
| 6846 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6847 | { (exit 1); exit 1; } |
---|
| 6848 | } |
---|
| 6849 | |
---|
| 6850 | _ACEOF |
---|
| 6851 | |
---|
| 6852 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6853 | |
---|
| 6854 | # |
---|
| 6855 | # CONFIG_FILES section. |
---|
| 6856 | # |
---|
| 6857 | |
---|
| 6858 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6859 | # This happens for instance when ./config.status config.h |
---|
| 6860 | if test -n "\$CONFIG_FILES"; then |
---|
| 6861 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 6862 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 6863 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 6864 | s,@SHELL@,$SHELL,;t t |
---|
| 6865 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 6866 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 6867 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 6868 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 6869 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 6870 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 6871 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 6872 | s,@prefix@,$prefix,;t t |
---|
| 6873 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 6874 | s,@bindir@,$bindir,;t t |
---|
| 6875 | s,@sbindir@,$sbindir,;t t |
---|
| 6876 | s,@libexecdir@,$libexecdir,;t t |
---|
| 6877 | s,@datadir@,$datadir,;t t |
---|
| 6878 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 6879 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 6880 | s,@localstatedir@,$localstatedir,;t t |
---|
| 6881 | s,@libdir@,$libdir,;t t |
---|
| 6882 | s,@includedir@,$includedir,;t t |
---|
| 6883 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 6884 | s,@infodir@,$infodir,;t t |
---|
| 6885 | s,@mandir@,$mandir,;t t |
---|
| 6886 | s,@build_alias@,$build_alias,;t t |
---|
| 6887 | s,@host_alias@,$host_alias,;t t |
---|
| 6888 | s,@target_alias@,$target_alias,;t t |
---|
| 6889 | s,@DEFS@,$DEFS,;t t |
---|
| 6890 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 6891 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 6892 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 6893 | s,@LIBS@,$LIBS,;t t |
---|
| 6894 | s,@CXX@,$CXX,;t t |
---|
| 6895 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 6896 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 6897 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 6898 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 6899 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 6900 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 6901 | s,@CC@,$CC,;t t |
---|
| 6902 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 6903 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 6904 | s,@CPP@,$CPP,;t t |
---|
[351] | 6905 | s,@F77@,$F77,;t t |
---|
| 6906 | s,@FFLAGS@,$FFLAGS,;t t |
---|
| 6907 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
---|
[342] | 6908 | s,@LN_S@,$LN_S,;t t |
---|
| 6909 | s,@INSTALL@,$INSTALL,;t t |
---|
[107] | 6910 | s,@EGREP@,$EGREP,;t t |
---|
[168] | 6911 | s,@RANLIB@,$RANLIB,;t t |
---|
| 6912 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
[107] | 6913 | s,@POW_LIB@,$POW_LIB,;t t |
---|
| 6914 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
[384] | 6915 | s,@LINKER@,$LINKER,;t t |
---|
[107] | 6916 | s,@PGPLOTINC@,$PGPLOTINC,;t t |
---|
| 6917 | s,@PGPLOTLIB@,$PGPLOTLIB,;t t |
---|
| 6918 | s,@CFITSIOINC@,$CFITSIOINC,;t t |
---|
| 6919 | s,@CFITSIOLIB@,$CFITSIOLIB,;t t |
---|
| 6920 | s,@WCSINC@,$WCSINC,;t t |
---|
| 6921 | s,@WCSLIB@,$WCSLIB,;t t |
---|
| 6922 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 6923 | CEOF |
---|
| 6924 | |
---|
| 6925 | _ACEOF |
---|
| 6926 | |
---|
| 6927 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6928 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 6929 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 6930 | ac_max_sed_lines=48 |
---|
| 6931 | ac_sed_frag=1 # Number of current file. |
---|
| 6932 | ac_beg=1 # First line for current file. |
---|
| 6933 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 6934 | ac_more_lines=: |
---|
| 6935 | ac_sed_cmds= |
---|
| 6936 | while $ac_more_lines; do |
---|
| 6937 | if test $ac_beg -gt 1; then |
---|
| 6938 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6939 | else |
---|
| 6940 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6941 | fi |
---|
| 6942 | if test ! -s $tmp/subs.frag; then |
---|
| 6943 | ac_more_lines=false |
---|
| 6944 | else |
---|
| 6945 | # The purpose of the label and of the branching condition is to |
---|
| 6946 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 6947 | # is no need to browse any of the substitutions). |
---|
| 6948 | # These are the two extra sed commands mentioned above. |
---|
| 6949 | (echo ':t |
---|
| 6950 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 6951 | if test -z "$ac_sed_cmds"; then |
---|
[349] | 6952 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
[107] | 6953 | else |
---|
[349] | 6954 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
[107] | 6955 | fi |
---|
| 6956 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 6957 | ac_beg=$ac_end |
---|
| 6958 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 6959 | fi |
---|
| 6960 | done |
---|
| 6961 | if test -z "$ac_sed_cmds"; then |
---|
| 6962 | ac_sed_cmds=cat |
---|
| 6963 | fi |
---|
| 6964 | fi # test -n "$CONFIG_FILES" |
---|
| 6965 | |
---|
| 6966 | _ACEOF |
---|
| 6967 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6968 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 6969 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6970 | case $ac_file in |
---|
| 6971 | - | *:- | *:-:* ) # input from stdin |
---|
[349] | 6972 | cat >$tmp/stdin |
---|
| 6973 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6974 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[107] | 6975 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
[349] | 6976 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[107] | 6977 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6978 | esac |
---|
| 6979 | |
---|
| 6980 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 6981 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6982 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 6983 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6984 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6985 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6986 | . : '\(.\)' 2>/dev/null || |
---|
[107] | 6987 | echo X"$ac_file" | |
---|
| 6988 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6989 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6990 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6991 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6992 | s/.*/./; q'` |
---|
| 6993 | { if $as_mkdir_p; then |
---|
| 6994 | mkdir -p "$ac_dir" |
---|
| 6995 | else |
---|
| 6996 | as_dir="$ac_dir" |
---|
| 6997 | as_dirs= |
---|
| 6998 | while test ! -d "$as_dir"; do |
---|
| 6999 | as_dirs="$as_dir $as_dirs" |
---|
| 7000 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7001 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 7002 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7003 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7004 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7005 | . : '\(.\)' 2>/dev/null || |
---|
[107] | 7006 | echo X"$as_dir" | |
---|
| 7007 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7008 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7009 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7010 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7011 | s/.*/./; q'` |
---|
| 7012 | done |
---|
| 7013 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7014 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7015 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7016 | { (exit 1); exit 1; }; }; } |
---|
| 7017 | |
---|
| 7018 | ac_builddir=. |
---|
| 7019 | |
---|
| 7020 | if test "$ac_dir" != .; then |
---|
| 7021 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7022 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7023 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7024 | else |
---|
| 7025 | ac_dir_suffix= ac_top_builddir= |
---|
| 7026 | fi |
---|
| 7027 | |
---|
| 7028 | case $srcdir in |
---|
| 7029 | .) # No --srcdir option. We are building in place. |
---|
| 7030 | ac_srcdir=. |
---|
| 7031 | if test -z "$ac_top_builddir"; then |
---|
| 7032 | ac_top_srcdir=. |
---|
| 7033 | else |
---|
| 7034 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7035 | fi ;; |
---|
| 7036 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7037 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7038 | ac_top_srcdir=$srcdir ;; |
---|
| 7039 | *) # Relative path. |
---|
| 7040 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7041 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7042 | esac |
---|
| 7043 | |
---|
[349] | 7044 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7045 | # the directories may not exist. |
---|
| 7046 | case `pwd` in |
---|
| 7047 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7048 | *) |
---|
| 7049 | case "$ac_dir" in |
---|
| 7050 | .) ac_abs_builddir=`pwd`;; |
---|
| 7051 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7052 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7053 | esac;; |
---|
| 7054 | esac |
---|
| 7055 | case $ac_abs_builddir in |
---|
| 7056 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7057 | *) |
---|
| 7058 | case ${ac_top_builddir}. in |
---|
| 7059 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7060 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7061 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7062 | esac;; |
---|
| 7063 | esac |
---|
| 7064 | case $ac_abs_builddir in |
---|
| 7065 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7066 | *) |
---|
| 7067 | case $ac_srcdir in |
---|
| 7068 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7069 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7070 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7071 | esac;; |
---|
| 7072 | esac |
---|
| 7073 | case $ac_abs_builddir in |
---|
| 7074 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7075 | *) |
---|
| 7076 | case $ac_top_srcdir in |
---|
| 7077 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7078 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7079 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7080 | esac;; |
---|
| 7081 | esac |
---|
[107] | 7082 | |
---|
| 7083 | |
---|
[349] | 7084 | |
---|
[107] | 7085 | if test x"$ac_file" != x-; then |
---|
| 7086 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7087 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7088 | rm -f "$ac_file" |
---|
| 7089 | fi |
---|
| 7090 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7091 | # use $as_me), people would be surprised to read: |
---|
| 7092 | # /* config.h. Generated by config.status. */ |
---|
| 7093 | if test x"$ac_file" = x-; then |
---|
| 7094 | configure_input= |
---|
| 7095 | else |
---|
| 7096 | configure_input="$ac_file. " |
---|
| 7097 | fi |
---|
| 7098 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
[349] | 7099 | sed 's,.*/,,'` by configure." |
---|
[107] | 7100 | |
---|
| 7101 | # First look for the input files in the build tree, otherwise in the |
---|
| 7102 | # src tree. |
---|
| 7103 | ac_file_inputs=`IFS=: |
---|
| 7104 | for f in $ac_file_in; do |
---|
| 7105 | case $f in |
---|
| 7106 | -) echo $tmp/stdin ;; |
---|
| 7107 | [\\/$]*) |
---|
[349] | 7108 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7109 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[107] | 7110 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7111 | { (exit 1); exit 1; }; } |
---|
[349] | 7112 | echo "$f";; |
---|
[107] | 7113 | *) # Relative |
---|
[349] | 7114 | if test -f "$f"; then |
---|
| 7115 | # Build tree |
---|
| 7116 | echo "$f" |
---|
| 7117 | elif test -f "$srcdir/$f"; then |
---|
| 7118 | # Source tree |
---|
| 7119 | echo "$srcdir/$f" |
---|
| 7120 | else |
---|
| 7121 | # /dev/null tree |
---|
| 7122 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[107] | 7123 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7124 | { (exit 1); exit 1; }; } |
---|
[349] | 7125 | fi;; |
---|
[107] | 7126 | esac |
---|
| 7127 | done` || { (exit 1); exit 1; } |
---|
| 7128 | _ACEOF |
---|
| 7129 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7130 | sed "$ac_vpsub |
---|
| 7131 | $extrasub |
---|
| 7132 | _ACEOF |
---|
| 7133 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7134 | :t |
---|
| 7135 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 7136 | s,@configure_input@,$configure_input,;t t |
---|
| 7137 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 7138 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 7139 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 7140 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 7141 | s,@builddir@,$ac_builddir,;t t |
---|
| 7142 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 7143 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 7144 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 7145 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 7146 | rm -f $tmp/stdin |
---|
| 7147 | if test x"$ac_file" != x-; then |
---|
| 7148 | mv $tmp/out $ac_file |
---|
| 7149 | else |
---|
| 7150 | cat $tmp/out |
---|
| 7151 | rm -f $tmp/out |
---|
| 7152 | fi |
---|
| 7153 | |
---|
| 7154 | done |
---|
| 7155 | _ACEOF |
---|
| 7156 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7157 | |
---|
| 7158 | # |
---|
| 7159 | # CONFIG_HEADER section. |
---|
| 7160 | # |
---|
| 7161 | |
---|
| 7162 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 7163 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 7164 | # |
---|
| 7165 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
[349] | 7166 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 7167 | ac_dB='[ ].*$,\1#\2' |
---|
[107] | 7168 | ac_dC=' ' |
---|
| 7169 | ac_dD=',;t' |
---|
| 7170 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
[349] | 7171 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
[107] | 7172 | ac_uB='$,\1#\2define\3' |
---|
| 7173 | ac_uC=' ' |
---|
| 7174 | ac_uD=',;t' |
---|
| 7175 | |
---|
| 7176 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 7177 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7178 | case $ac_file in |
---|
| 7179 | - | *:- | *:-:* ) # input from stdin |
---|
[349] | 7180 | cat >$tmp/stdin |
---|
| 7181 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7182 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[107] | 7183 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
[349] | 7184 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[107] | 7185 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7186 | esac |
---|
| 7187 | |
---|
| 7188 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7189 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7190 | |
---|
| 7191 | # First look for the input files in the build tree, otherwise in the |
---|
| 7192 | # src tree. |
---|
| 7193 | ac_file_inputs=`IFS=: |
---|
| 7194 | for f in $ac_file_in; do |
---|
| 7195 | case $f in |
---|
| 7196 | -) echo $tmp/stdin ;; |
---|
| 7197 | [\\/$]*) |
---|
[349] | 7198 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7199 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[107] | 7200 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7201 | { (exit 1); exit 1; }; } |
---|
[349] | 7202 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 7203 | echo "$f";; |
---|
[107] | 7204 | *) # Relative |
---|
[349] | 7205 | if test -f "$f"; then |
---|
| 7206 | # Build tree |
---|
| 7207 | echo "$f" |
---|
| 7208 | elif test -f "$srcdir/$f"; then |
---|
| 7209 | # Source tree |
---|
| 7210 | echo "$srcdir/$f" |
---|
| 7211 | else |
---|
| 7212 | # /dev/null tree |
---|
| 7213 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[107] | 7214 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7215 | { (exit 1); exit 1; }; } |
---|
[349] | 7216 | fi;; |
---|
[107] | 7217 | esac |
---|
| 7218 | done` || { (exit 1); exit 1; } |
---|
| 7219 | # Remove the trailing spaces. |
---|
[349] | 7220 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
[107] | 7221 | |
---|
| 7222 | _ACEOF |
---|
| 7223 | |
---|
| 7224 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 7225 | # `conftest.undefs', that substitutes the proper values into |
---|
| 7226 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 7227 | # templates, and the second `#undef' templates. |
---|
| 7228 | # And first: Protect against being on the right side of a sed subst in |
---|
| 7229 | # config.status. Protect against being in an unquoted here document |
---|
| 7230 | # in config.status. |
---|
| 7231 | rm -f conftest.defines conftest.undefs |
---|
| 7232 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 7233 | # Putting comments in sed scripts is not portable. |
---|
| 7234 | # |
---|
| 7235 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 7236 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 7237 | # See the Autoconf documentation for `clear'. |
---|
| 7238 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 7239 | s/[\\&,]/\\&/g |
---|
| 7240 | s,[\\$`],\\&,g |
---|
| 7241 | t clear |
---|
| 7242 | : clear |
---|
[349] | 7243 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
[107] | 7244 | t end |
---|
[349] | 7245 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
[107] | 7246 | : end |
---|
| 7247 | _ACEOF |
---|
| 7248 | # If some macros were called several times there might be several times |
---|
| 7249 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 7250 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 7251 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 7252 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 7253 | rm -f confdef2sed.sed |
---|
| 7254 | |
---|
| 7255 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 7256 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7257 | # on some systems where configure will not decide to define it. |
---|
| 7258 | cat >>conftest.undefs <<\_ACEOF |
---|
[349] | 7259 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
[107] | 7260 | _ACEOF |
---|
| 7261 | |
---|
| 7262 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 7263 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7264 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
[349] | 7265 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
[107] | 7266 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 7267 | echo ' :' >>$CONFIG_STATUS |
---|
| 7268 | rm -f conftest.tail |
---|
| 7269 | while grep . conftest.defines >/dev/null |
---|
| 7270 | do |
---|
| 7271 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 7272 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7273 | # Speed up: don't consider the non `#define' lines. |
---|
[349] | 7274 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
[107] | 7275 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7276 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7277 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7278 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 7279 | echo 'CEOF |
---|
| 7280 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 7281 | rm -f $tmp/in |
---|
| 7282 | mv $tmp/out $tmp/in |
---|
| 7283 | ' >>$CONFIG_STATUS |
---|
| 7284 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 7285 | rm -f conftest.defines |
---|
| 7286 | mv conftest.tail conftest.defines |
---|
| 7287 | done |
---|
| 7288 | rm -f conftest.defines |
---|
| 7289 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 7290 | echo >>$CONFIG_STATUS |
---|
| 7291 | |
---|
| 7292 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 7293 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7294 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 7295 | rm -f conftest.tail |
---|
| 7296 | while grep . conftest.undefs >/dev/null |
---|
| 7297 | do |
---|
| 7298 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 7299 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7300 | # Speed up: don't consider the non `#undef' |
---|
[349] | 7301 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
[107] | 7302 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7303 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7304 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7305 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 7306 | echo 'CEOF |
---|
| 7307 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 7308 | rm -f $tmp/in |
---|
| 7309 | mv $tmp/out $tmp/in |
---|
| 7310 | ' >>$CONFIG_STATUS |
---|
| 7311 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 7312 | rm -f conftest.undefs |
---|
| 7313 | mv conftest.tail conftest.undefs |
---|
| 7314 | done |
---|
| 7315 | rm -f conftest.undefs |
---|
| 7316 | |
---|
| 7317 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7318 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7319 | # use $as_me), people would be surprised to read: |
---|
| 7320 | # /* config.h. Generated by config.status. */ |
---|
| 7321 | if test x"$ac_file" = x-; then |
---|
| 7322 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 7323 | else |
---|
| 7324 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 7325 | fi |
---|
| 7326 | cat $tmp/in >>$tmp/config.h |
---|
| 7327 | rm -f $tmp/in |
---|
| 7328 | if test x"$ac_file" != x-; then |
---|
| 7329 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 7330 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 7331 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 7332 | else |
---|
| 7333 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7334 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 7335 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7336 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7337 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7338 | . : '\(.\)' 2>/dev/null || |
---|
[107] | 7339 | echo X"$ac_file" | |
---|
| 7340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7341 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7342 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7343 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7344 | s/.*/./; q'` |
---|
| 7345 | { if $as_mkdir_p; then |
---|
| 7346 | mkdir -p "$ac_dir" |
---|
| 7347 | else |
---|
| 7348 | as_dir="$ac_dir" |
---|
| 7349 | as_dirs= |
---|
| 7350 | while test ! -d "$as_dir"; do |
---|
| 7351 | as_dirs="$as_dir $as_dirs" |
---|
| 7352 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7353 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[349] | 7354 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7355 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7356 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7357 | . : '\(.\)' 2>/dev/null || |
---|
[107] | 7358 | echo X"$as_dir" | |
---|
| 7359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7360 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7361 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7362 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7363 | s/.*/./; q'` |
---|
| 7364 | done |
---|
| 7365 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7366 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7367 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7368 | { (exit 1); exit 1; }; }; } |
---|
| 7369 | |
---|
| 7370 | rm -f $ac_file |
---|
| 7371 | mv $tmp/config.h $ac_file |
---|
| 7372 | fi |
---|
| 7373 | else |
---|
| 7374 | cat $tmp/config.h |
---|
| 7375 | rm -f $tmp/config.h |
---|
| 7376 | fi |
---|
| 7377 | done |
---|
| 7378 | _ACEOF |
---|
| 7379 | |
---|
| 7380 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7381 | |
---|
| 7382 | { (exit 0); exit 0; } |
---|
| 7383 | _ACEOF |
---|
| 7384 | chmod +x $CONFIG_STATUS |
---|
| 7385 | ac_clean_files=$ac_clean_files_save |
---|
| 7386 | |
---|
| 7387 | |
---|
| 7388 | # configure is writing to config.log, and then calls config.status. |
---|
| 7389 | # config.status does its own redirection, appending to config.log. |
---|
| 7390 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7391 | # by configure, so config.status won't be able to write to it; its |
---|
| 7392 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7393 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7394 | # appended to by config.status. When coming back to configure, we |
---|
| 7395 | # need to make the FD available again. |
---|
| 7396 | if test "$no_create" != yes; then |
---|
| 7397 | ac_cs_success=: |
---|
| 7398 | ac_config_status_args= |
---|
| 7399 | test "$silent" = yes && |
---|
| 7400 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7401 | exec 5>/dev/null |
---|
| 7402 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7403 | exec 5>>config.log |
---|
| 7404 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7405 | # would make configure fail if this is the last instruction. |
---|
| 7406 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7407 | fi |
---|
| 7408 | |
---|