Changeset 2328 in Sophya for trunk/ArchTOIPipe/configure
- Timestamp:
- Feb 24, 2003, 10:18:01 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/configure
r1957 r2328 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.12 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3 # Generated by Autoconf 2.52. 6 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 7 7 # This configure script is free software; the Free Software Foundation 8 8 # gives unlimited permission to copy, distribute and modify it. 9 9 10 # Defaults: 11 ac_help= 10 # Avoid depending upon Character Ranges. 11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14 as_cr_digits='0123456789' 15 as_cr_alnum=$as_cr_Letters$as_cr_digits 16 17 # Sed expression to map a string onto a valid variable name. 18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19 20 # Sed expression to map a string onto a valid CPP name. 21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22 23 # Be Bourne compatible 24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 25 emulate sh 26 NULLCMD=: 27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 28 set -o posix 29 fi 30 31 # Name of the executable. 32 as_me=`echo "$0" |sed 's,.*[\\/],,'` 33 34 if expr a : '\(a\)' >/dev/null 2>&1; then 35 as_expr=expr 36 else 37 as_expr=false 38 fi 39 40 rm -f conf$$ conf$$.exe conf$$.file 41 echo >conf$$.file 42 if ln -s conf$$.file conf$$ 2>/dev/null; then 43 # We could just check for DJGPP; but this test a) works b) is more generic 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 45 if test -f conf$$.exe; then 46 # Don't use ln at all; we don't have any links 47 as_ln_s='cp -p' 48 else 49 as_ln_s='ln -s' 50 fi 51 elif ln conf$$.file conf$$ 2>/dev/null; then 52 as_ln_s=ln 53 else 54 as_ln_s='cp -p' 55 fi 56 rm -f conf$$ conf$$.exe conf$$.file 57 58 as_executable_p="test -f" 59 60 # Support unset when possible. 61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 62 as_unset=unset 63 else 64 as_unset=false 65 fi 66 67 # NLS nuisances. 68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 76 77 # IFS 78 # We need space, tab and new line, in precisely that order. 79 as_nl=' 80 ' 81 IFS=" $as_nl" 82 83 # CDPATH. 84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 85 86 # Name of the host. 87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 88 # so uname gets run too. 89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 90 91 exec 6>&1 92 93 # 94 # Initializations. 95 # 12 96 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --with-sophya Compile and link with SOPHYA" 97 cross_compiling=no 98 subdirs= 99 MFLAGS= MAKEFLAGS= 100 SHELL=${CONFIG_SHELL-/bin/sh} 101 102 # Maximum number of lines to put in a shell here document. 103 # This variable seems obsolete. It should probably be removed, and 104 # only ac_max_sed_lines should be used. 105 : ${ac_max_here_lines=38} 106 107 ac_unique_file="Kernel/toi.cc" 108 # Factoring default headers for most tests. 109 ac_includes_default="\ 110 #include <stdio.h> 111 #if HAVE_SYS_TYPES_H 112 # include <sys/types.h> 113 #endif 114 #if HAVE_SYS_STAT_H 115 # include <sys/stat.h> 116 #endif 117 #if STDC_HEADERS 118 # include <stdlib.h> 119 # include <stddef.h> 120 #else 121 # if HAVE_STDLIB_H 122 # include <stdlib.h> 123 # endif 124 #endif 125 #if HAVE_STRING_H 126 # if !STDC_HEADERS && HAVE_MEMORY_H 127 # include <memory.h> 128 # endif 129 # include <string.h> 130 #endif 131 #if HAVE_STRINGS_H 132 # include <strings.h> 133 #endif 134 #if HAVE_INTTYPES_H 135 # include <inttypes.h> 136 #else 137 # if HAVE_STDINT_H 138 # include <stdint.h> 139 # endif 140 #endif 141 #if HAVE_UNISTD_H 142 # include <unistd.h> 143 #endif" 16 144 17 145 # Initialize some variables set by options. 146 ac_init_help= 147 ac_init_version=false 18 148 # The variables have the same names as the options, with 19 149 # dashes changed to underlines. 20 build=NONE 21 cache_file=./config.cache 150 cache_file=/dev/null 22 151 exec_prefix=NONE 23 host=NONE24 152 no_create= 25 nonopt=NONE26 153 no_recursion= 27 154 prefix=NONE … … 32 159 site= 33 160 srcdir= 34 target=NONE35 161 verbose= 36 162 x_includes=NONE 37 163 x_libraries=NONE 164 165 # Installation directory options. 166 # These are left unexpanded so users can "make install exec_prefix=/foo" 167 # and all the variables that are supposed to be based on exec_prefix 168 # by default will actually change. 169 # Use braces instead of parens because sh, perl, etc. also accept them. 38 170 bindir='${exec_prefix}/bin' 39 171 sbindir='${exec_prefix}/sbin' … … 49 181 mandir='${prefix}/man' 50 182 51 # Initialize some other variables. 52 subdirs= 53 MFLAGS= MAKEFLAGS= 54 # Maximum number of lines to put in a shell here document. 55 ac_max_here_lines=12 183 # Identity of this package. 184 PACKAGE_NAME= 185 PACKAGE_TARNAME= 186 PACKAGE_VERSION= 187 PACKAGE_STRING= 188 PACKAGE_BUGREPORT= 56 189 57 190 ac_prev= 58 191 for ac_option 59 192 do 60 61 193 # If the previous option needs an argument, assign it. 62 194 if test -n "$ac_prev"; then … … 66 198 fi 67 199 68 case "$ac_option" in 69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 70 *) ac_optarg= ;; 71 esac 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 72 201 73 202 # Accept the important Cygnus configure options, so we can diagnose typos. 74 203 75 case "$ac_option"in204 case $ac_option in 76 205 77 206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 78 207 ac_prev=bindir ;; 79 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 80 bindir= "$ac_optarg";;209 bindir=$ac_optarg ;; 81 210 82 211 -build | --build | --buil | --bui | --bu) 83 ac_prev=build ;;212 ac_prev=build_alias ;; 84 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 85 build ="$ac_optarg";;214 build_alias=$ac_optarg ;; 86 215 87 216 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 90 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 91 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 92 cache_file="$ac_optarg" ;; 221 cache_file=$ac_optarg ;; 222 223 --config-cache | -C) 224 cache_file=config.cache ;; 93 225 94 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 96 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 97 229 | --da=*) 98 datadir= "$ac_optarg";;230 datadir=$ac_optarg ;; 99 231 100 232 -disable-* | --disable-*) 101 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 102 234 # Reject names that are not valid shell variable names. 103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then104 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }105 fi106 ac_feature=`echo $ac_feature | sed 's/-/_/g'`107 eval "enable_$ {ac_feature}=no" ;;235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 237 { (exit 1); exit 1; }; } 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 239 eval "enable_$ac_feature=no" ;; 108 240 109 241 -enable-* | --enable-*) 110 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 111 243 # Reject names that are not valid shell variable names. 112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then113 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }114 fi115 ac_feature=`echo $ac_feature | sed 's/-/_/g'`116 case "$ac_option"in117 *=*) ;;244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 246 { (exit 1); exit 1; }; } 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 248 case $ac_option in 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 118 250 *) ac_optarg=yes ;; 119 251 esac 120 eval "enable_$ {ac_feature}='$ac_optarg'" ;;252 eval "enable_$ac_feature='$ac_optarg'" ;; 121 253 122 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 127 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 128 260 | --exec=* | --exe=* | --ex=*) 129 exec_prefix= "$ac_optarg";;261 exec_prefix=$ac_optarg ;; 130 262 131 263 -gas | --gas | --ga | --g) … … 133 265 with_gas=yes ;; 134 266 135 -help | --help | --hel | --he) 136 # Omit some internal or obsolete options to make the list less imposing. 137 # This message is too long to be a string in the A/UX 3.1 sh. 138 cat << EOF 139 Usage: configure [options] [host] 140 Options: [defaults in brackets after descriptions] 141 Configuration: 142 --cache-file=FILE cache test results in FILE 143 --help print this message 144 --no-create do not create output files 145 --quiet, --silent do not print \`checking...' messages 146 --version print the version of autoconf that created configure 147 Directory and file names: 148 --prefix=PREFIX install architecture-independent files in PREFIX 149 [$ac_default_prefix] 150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 151 [same as prefix] 152 --bindir=DIR user executables in DIR [EPREFIX/bin] 153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 155 --datadir=DIR read-only architecture-independent data in DIR 156 [PREFIX/share] 157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 158 --sharedstatedir=DIR modifiable architecture-independent data in DIR 159 [PREFIX/com] 160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 161 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 162 --includedir=DIR C header files in DIR [PREFIX/include] 163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 164 --infodir=DIR info documentation in DIR [PREFIX/info] 165 --mandir=DIR man documentation in DIR [PREFIX/man] 166 --srcdir=DIR find the sources in DIR [configure dir or ..] 167 --program-prefix=PREFIX prepend PREFIX to installed program names 168 --program-suffix=SUFFIX append SUFFIX to installed program names 169 --program-transform-name=PROGRAM 170 run sed PROGRAM on installed program names 171 EOF 172 cat << EOF 173 Host type: 174 --build=BUILD configure for building on BUILD [BUILD=HOST] 175 --host=HOST configure for HOST [guessed] 176 --target=TARGET configure for TARGET [TARGET=HOST] 177 Features and packages: 178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 182 --x-includes=DIR X include files are in DIR 183 --x-libraries=DIR X library files are in DIR 184 EOF 185 if test -n "$ac_help"; then 186 echo "--enable and --with options recognized:$ac_help" 187 fi 188 exit 0 ;; 267 -help | --help | --hel | --he | -h) 268 ac_init_help=long ;; 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 270 ac_init_help=recursive ;; 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 272 ac_init_help=short ;; 189 273 190 274 -host | --host | --hos | --ho) 191 ac_prev=host ;;275 ac_prev=host_alias ;; 192 276 -host=* | --host=* | --hos=* | --ho=*) 193 host ="$ac_optarg";;277 host_alias=$ac_optarg ;; 194 278 195 279 -includedir | --includedir | --includedi | --included | --include \ … … 198 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 199 283 | --includ=* | --inclu=* | --incl=* | --inc=*) 200 includedir= "$ac_optarg";;284 includedir=$ac_optarg ;; 201 285 202 286 -infodir | --infodir | --infodi | --infod | --info | --inf) 203 287 ac_prev=infodir ;; 204 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 205 infodir= "$ac_optarg";;289 infodir=$ac_optarg ;; 206 290 207 291 -libdir | --libdir | --libdi | --libd) 208 292 ac_prev=libdir ;; 209 293 -libdir=* | --libdir=* | --libdi=* | --libd=*) 210 libdir= "$ac_optarg";;294 libdir=$ac_optarg ;; 211 295 212 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 215 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 216 300 | --libexe=* | --libex=* | --libe=*) 217 libexecdir= "$ac_optarg";;301 libexecdir=$ac_optarg ;; 218 302 219 303 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 224 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 225 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 226 localstatedir= "$ac_optarg";;310 localstatedir=$ac_optarg ;; 227 311 228 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 229 313 ac_prev=mandir ;; 230 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 231 mandir= "$ac_optarg";;315 mandir=$ac_optarg ;; 232 316 233 317 -nfp | --nfp | --nf) … … 250 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 251 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 252 oldincludedir= "$ac_optarg";;336 oldincludedir=$ac_optarg ;; 253 337 254 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 255 339 ac_prev=prefix ;; 256 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 257 prefix= "$ac_optarg";;341 prefix=$ac_optarg ;; 258 342 259 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 262 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 263 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 264 program_prefix= "$ac_optarg";;348 program_prefix=$ac_optarg ;; 265 349 266 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 269 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 270 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 271 program_suffix= "$ac_optarg";;355 program_suffix=$ac_optarg ;; 272 356 273 357 -program-transform-name | --program-transform-name \ … … 286 370 | --program-trans=* | --program-tran=* \ 287 371 | --progr-tra=* | --program-tr=* | --program-t=*) 288 program_transform_name= "$ac_optarg";;372 program_transform_name=$ac_optarg ;; 289 373 290 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 296 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 297 381 | --sbi=* | --sb=*) 298 sbindir= "$ac_optarg";;382 sbindir=$ac_optarg ;; 299 383 300 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 307 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 308 392 | --sha=* | --sh=*) 309 sharedstatedir= "$ac_optarg";;393 sharedstatedir=$ac_optarg ;; 310 394 311 395 -site | --site | --sit) 312 396 ac_prev=site ;; 313 397 -site=* | --site=* | --sit=*) 314 site= "$ac_optarg";;398 site=$ac_optarg ;; 315 399 316 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 317 401 ac_prev=srcdir ;; 318 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 319 srcdir= "$ac_optarg";;403 srcdir=$ac_optarg ;; 320 404 321 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 324 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 325 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 326 sysconfdir= "$ac_optarg";;410 sysconfdir=$ac_optarg ;; 327 411 328 412 -target | --target | --targe | --targ | --tar | --ta | --t) 329 ac_prev=target ;;413 ac_prev=target_alias ;; 330 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 331 target ="$ac_optarg";;415 target_alias=$ac_optarg ;; 332 416 333 417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 334 418 verbose=yes ;; 335 419 336 -version | --version | --versio | --versi | --vers) 337 echo "configure generated by autoconf version 2.12" 338 exit 0 ;; 420 -version | --version | --versio | --versi | --vers | -V) 421 ac_init_version=: ;; 339 422 340 423 -with-* | --with-*) 341 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 342 425 # Reject names that are not valid shell variable names. 343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then344 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }345 fi426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 427 { echo "$as_me: error: invalid package name: $ac_package" >&2 428 { (exit 1); exit 1; }; } 346 429 ac_package=`echo $ac_package| sed 's/-/_/g'` 347 case "$ac_option"in348 *=*) ;;430 case $ac_option in 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 349 432 *) ac_optarg=yes ;; 350 433 esac 351 eval "with_$ {ac_package}='$ac_optarg'" ;;434 eval "with_$ac_package='$ac_optarg'" ;; 352 435 353 436 -without-* | --without-*) 354 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 355 438 # Reject names that are not valid shell variable names. 356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then357 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }358 fi359 ac_package=`echo $ac_package | sed 's/-/_/g'`360 eval "with_$ {ac_package}=no" ;;439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 440 { echo "$as_me: error: invalid package name: $ac_package" >&2 441 { (exit 1); exit 1; }; } 442 ac_package=`echo $ac_package | sed 's/-/_/g'` 443 eval "with_$ac_package=no" ;; 361 444 362 445 --x) … … 369 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 370 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 371 x_includes= "$ac_optarg";;454 x_includes=$ac_optarg ;; 372 455 373 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 376 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 377 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 378 x_libraries="$ac_optarg" ;; 379 380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 461 x_libraries=$ac_optarg ;; 462 463 -*) { echo "$as_me: error: unrecognized option: $ac_option 464 Try \`$0 --help' for more information." >&2 465 { (exit 1); exit 1; }; } 381 466 ;; 382 467 468 *=*) 469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 470 # Reject names that are not valid shell variable names. 471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 473 { (exit 1); exit 1; }; } 474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 475 eval "$ac_envvar='$ac_optarg'" 476 export $ac_envvar ;; 477 383 478 *) 384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 385 echo "configure: warning: $ac_option: invalid host type" 1>&2 386 fi 387 if test "x$nonopt" != xNONE; then 388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 389 fi 390 nonopt="$ac_option" 479 # FIXME: should be removed in autoconf 3.0. 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 391 484 ;; 392 485 … … 395 488 396 489 if test -n "$ac_prev"; then 397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 398 fi 399 400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 401 402 # File descriptor usage: 403 # 0 standard input 404 # 1 file creation 405 # 2 errors and warnings 406 # 3 some systems may open it to /dev/tty 407 # 4 used on the Kubota Titan 408 # 6 checking for... messages and results 409 # 5 compiler messages saved in config.log 410 if test "$silent" = yes; then 411 exec 6>/dev/null 412 else 413 exec 6>&1 414 fi 415 exec 5>./config.log 416 417 echo "\ 418 This file contains any messages produced by compilers while 419 running configure, to aid debugging if configure makes a mistake. 420 " 1>&5 421 422 # Strip out --no-create and --no-recursion so they do not pile up. 423 # Also quote any args containing shell metacharacters. 424 ac_configure_args= 425 for ac_arg 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 491 { echo "$as_me: error: missing argument to $ac_option" >&2 492 { (exit 1); exit 1; }; } 493 fi 494 495 # Be sure to have absolute paths. 496 for ac_var in exec_prefix prefix 426 497 do 427 case "$ac_arg" in 428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 429 | --no-cr | --no-c) ;; 430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 433 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 434 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 498 eval ac_val=$`echo $ac_var` 499 case $ac_val in 500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 502 { (exit 1); exit 1; }; };; 435 503 esac 436 504 done 437 505 438 # NLS nuisances. 439 # Only set these to C if already set. These must not be set unconditionally 440 # because not all systems understand e.g. LANG=C (notably SCO). 441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 442 # Non-C LC_CTYPE values break the ctype check. 443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 447 448 # confdefs.h avoids OS command line length limits that DEFS can exceed. 449 rm -rf conftest* confdefs.h 450 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 451 echo > confdefs.h 452 453 # A filename unique to this package, relative to the directory that 454 # configure is in, which we can look for to find out if srcdir is correct. 455 ac_unique_file=Kernel/toi.cc 506 # Be sure to have absolute paths. 507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 508 localstatedir libdir includedir oldincludedir infodir mandir 509 do 510 eval ac_val=$`echo $ac_var` 511 case $ac_val in 512 [\\/$]* | ?:[\\/]* ) ;; 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 514 { (exit 1); exit 1; }; };; 515 esac 516 done 517 518 # There might be people who depend on the old broken behavior: `$host' 519 # used to hold the argument of --host etc. 520 build=$build_alias 521 host=$host_alias 522 target=$target_alias 523 524 # FIXME: should be removed in autoconf 3.0. 525 if test "x$host_alias" != x; then 526 if test "x$build_alias" = x; then 527 cross_compiling=maybe 528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 529 If a cross compiler is detected then cross compile mode will be used." >&2 530 elif test "x$build_alias" != "x$host_alias"; then 531 cross_compiling=yes 532 fi 533 fi 534 535 ac_tool_prefix= 536 test -n "$host_alias" && ac_tool_prefix=$host_alias- 537 538 test "$silent" = yes && exec 6>/dev/null 456 539 457 540 # Find the source files, if location was not specified. … … 460 543 # Try the directory containing this script, then its parent. 461 544 ac_prog=$0 462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 463 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 464 547 srcdir=$ac_confdir … … 471 554 if test ! -r $srcdir/$ac_unique_file; then 472 555 if test "$ac_srcdir_defaulted" = yes; then 473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 557 { (exit 1); exit 1; }; } 474 558 else 475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 560 { (exit 1); exit 1; }; } 476 561 fi 477 562 fi 478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 479 563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 564 ac_env_build_alias_set=${build_alias+set} 565 ac_env_build_alias_value=$build_alias 566 ac_cv_env_build_alias_set=${build_alias+set} 567 ac_cv_env_build_alias_value=$build_alias 568 ac_env_host_alias_set=${host_alias+set} 569 ac_env_host_alias_value=$host_alias 570 ac_cv_env_host_alias_set=${host_alias+set} 571 ac_cv_env_host_alias_value=$host_alias 572 ac_env_target_alias_set=${target_alias+set} 573 ac_env_target_alias_value=$target_alias 574 ac_cv_env_target_alias_set=${target_alias+set} 575 ac_cv_env_target_alias_value=$target_alias 576 ac_env_CC_set=${CC+set} 577 ac_env_CC_value=$CC 578 ac_cv_env_CC_set=${CC+set} 579 ac_cv_env_CC_value=$CC 580 ac_env_CFLAGS_set=${CFLAGS+set} 581 ac_env_CFLAGS_value=$CFLAGS 582 ac_cv_env_CFLAGS_set=${CFLAGS+set} 583 ac_cv_env_CFLAGS_value=$CFLAGS 584 ac_env_LDFLAGS_set=${LDFLAGS+set} 585 ac_env_LDFLAGS_value=$LDFLAGS 586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 587 ac_cv_env_LDFLAGS_value=$LDFLAGS 588 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 589 ac_env_CPPFLAGS_value=$CPPFLAGS 590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 592 ac_env_CXX_set=${CXX+set} 593 ac_env_CXX_value=$CXX 594 ac_cv_env_CXX_set=${CXX+set} 595 ac_cv_env_CXX_value=$CXX 596 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 597 ac_env_CXXFLAGS_value=$CXXFLAGS 598 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 599 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 600 ac_env_CPP_set=${CPP+set} 601 ac_env_CPP_value=$CPP 602 ac_cv_env_CPP_set=${CPP+set} 603 ac_cv_env_CPP_value=$CPP 604 605 # 606 # Report the --help message. 607 # 608 if test "$ac_init_help" = "long"; then 609 # Omit some internal or obsolete options to make the list less imposing. 610 # This message is too long to be a string in the A/UX 3.1 sh. 611 cat <<EOF 612 \`configure' configures this package to adapt to many kinds of systems. 613 614 Usage: $0 [OPTION]... [VAR=VALUE]... 615 616 To assign environment variables (e.g., CC, CFLAGS...), specify them as 617 VAR=VALUE. See below for descriptions of some of the useful variables. 618 619 Defaults for the options are specified in brackets. 620 621 Configuration: 622 -h, --help display this help and exit 623 --help=short display options specific to this package 624 --help=recursive display the short help of all the included packages 625 -V, --version display version information and exit 626 -q, --quiet, --silent do not print \`checking...' messages 627 --cache-file=FILE cache test results in FILE [disabled] 628 -C, --config-cache alias for \`--cache-file=config.cache' 629 -n, --no-create do not create output files 630 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 631 632 EOF 633 634 cat <<EOF 635 Installation directories: 636 --prefix=PREFIX install architecture-independent files in PREFIX 637 [$ac_default_prefix] 638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 639 [PREFIX] 640 641 By default, \`make install' will install all the files in 642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 643 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 644 for instance \`--prefix=\$HOME'. 645 646 For better control, use the options below. 647 648 Fine tuning of the installation directories: 649 --bindir=DIR user executables [EPREFIX/bin] 650 --sbindir=DIR system admin executables [EPREFIX/sbin] 651 --libexecdir=DIR program executables [EPREFIX/libexec] 652 --datadir=DIR read-only architecture-independent data [PREFIX/share] 653 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 654 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 655 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 656 --libdir=DIR object code libraries [EPREFIX/lib] 657 --includedir=DIR C header files [PREFIX/include] 658 --oldincludedir=DIR C header files for non-gcc [/usr/include] 659 --infodir=DIR info documentation [PREFIX/info] 660 --mandir=DIR man documentation [PREFIX/man] 661 EOF 662 663 cat <<\EOF 664 EOF 665 fi 666 667 if test -n "$ac_init_help"; then 668 669 cat <<\EOF 670 671 Optional Packages: 672 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 673 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 674 --with-sophya Compile and link with SOPHYA 675 --with-piolib Compile with PIOLib 676 677 Some influential environment variables: 678 CC C compiler command 679 CFLAGS C compiler flags 680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 681 nonstandard directory <lib dir> 682 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 683 headers in a nonstandard directory <include dir> 684 CXX C++ compiler command 685 CXXFLAGS C++ compiler flags 686 CPP C preprocessor 687 688 Use these variables to override the choices made by `configure' or to help 689 it to find libraries and programs with nonstandard names/locations. 690 691 EOF 692 fi 693 694 if test "$ac_init_help" = "recursive"; then 695 # If there are subdirs, report their specific --help. 696 ac_popdir=`pwd` 697 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 698 cd $ac_subdir 699 # A "../" for each directory in /$ac_subdir. 700 ac_dots=`echo $ac_subdir | 701 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 702 703 case $srcdir in 704 .) # No --srcdir option. We are building in place. 705 ac_sub_srcdir=$srcdir ;; 706 [\\/]* | ?:[\\/]* ) # Absolute path. 707 ac_sub_srcdir=$srcdir/$ac_subdir ;; 708 *) # Relative path. 709 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 710 esac 711 712 # Check for guested configure; otherwise get Cygnus style configure. 713 if test -f $ac_sub_srcdir/configure.gnu; then 714 echo 715 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 716 elif test -f $ac_sub_srcdir/configure; then 717 echo 718 $SHELL $ac_sub_srcdir/configure --help=recursive 719 elif test -f $ac_sub_srcdir/configure.ac || 720 test -f $ac_sub_srcdir/configure.in; then 721 echo 722 $ac_configure --help 723 else 724 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 725 fi 726 cd $ac_popdir 727 done 728 fi 729 730 test -n "$ac_init_help" && exit 0 731 if $ac_init_version; then 732 cat <<\EOF 733 734 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 735 Free Software Foundation, Inc. 736 This configure script is free software; the Free Software Foundation 737 gives unlimited permission to copy, distribute and modify it. 738 EOF 739 exit 0 740 fi 741 exec 5>config.log 742 cat >&5 <<EOF 743 This file contains any messages produced by compilers while 744 running configure, to aid debugging if configure makes a mistake. 745 746 It was created by $as_me, which was 747 generated by GNU Autoconf 2.52. Invocation command line was 748 749 $ $0 $@ 750 751 EOF 752 { 753 cat <<_ASUNAME 754 ## ---------- ## 755 ## Platform. ## 756 ## ---------- ## 757 758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 759 uname -m = `(uname -m) 2>/dev/null || echo unknown` 760 uname -r = `(uname -r) 2>/dev/null || echo unknown` 761 uname -s = `(uname -s) 2>/dev/null || echo unknown` 762 uname -v = `(uname -v) 2>/dev/null || echo unknown` 763 764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 766 767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 770 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 774 775 PATH = $PATH 776 777 _ASUNAME 778 } >&5 779 780 cat >&5 <<EOF 781 ## ------------ ## 782 ## Core tests. ## 783 ## ------------ ## 784 785 EOF 786 787 # Keep a trace of the command line. 788 # Strip out --no-create and --no-recursion so they do not pile up. 789 # Also quote any args containing shell meta-characters. 790 ac_configure_args= 791 ac_sep= 792 for ac_arg 793 do 794 case $ac_arg in 795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 796 | --no-cr | --no-c) ;; 797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 801 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 802 ac_sep=" " ;; 803 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 804 ac_sep=" " ;; 805 esac 806 # Get rid of the leading space. 807 done 808 809 # When interrupted or exit'd, cleanup temporary files, and complete 810 # config.log. We remove comments because anyway the quotes in there 811 # would cause problems or look ugly. 812 trap 'exit_status=$? 813 # Save into config.log some information that might help in debugging. 814 echo >&5 815 echo "## ----------------- ##" >&5 816 echo "## Cache variables. ##" >&5 817 echo "## ----------------- ##" >&5 818 echo >&5 819 # The following way of writing the cache mishandles newlines in values, 820 { 821 (set) 2>&1 | 822 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 823 *ac_space=\ *) 824 sed -n \ 825 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 827 ;; 828 *) 829 sed -n \ 830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 831 ;; 832 esac; 833 } >&5 834 sed "/^$/d" confdefs.h >conftest.log 835 if test -s conftest.log; then 836 echo >&5 837 echo "## ------------ ##" >&5 838 echo "## confdefs.h. ##" >&5 839 echo "## ------------ ##" >&5 840 echo >&5 841 cat conftest.log >&5 842 fi 843 (echo; echo) >&5 844 test "$ac_signal" != 0 && 845 echo "$as_me: caught signal $ac_signal" >&5 846 echo "$as_me: exit $exit_status" >&5 847 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 848 exit $exit_status 849 ' 0 850 for ac_signal in 1 2 13 15; do 851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 852 done 853 ac_signal=0 854 855 # confdefs.h avoids OS command line length limits that DEFS can exceed. 856 rm -rf conftest* confdefs.h 857 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 858 echo >confdefs.h 859 860 # Let the site file select an alternate cache file if it wants to. 480 861 # Prefer explicitly selected file to automatically selected ones. 481 862 if test -z "$CONFIG_SITE"; then … … 488 869 for ac_site_file in $CONFIG_SITE; do 489 870 if test -r "$ac_site_file"; then 490 echo "loading site script $ac_site_file" 871 { echo "$as_me:871: loading site script $ac_site_file" >&5 872 echo "$as_me: loading site script $ac_site_file" >&6;} 873 cat "$ac_site_file" >&5 491 874 . "$ac_site_file" 492 875 fi … … 494 877 495 878 if test -r "$cache_file"; then 496 echo "loading cache $cache_file" 497 . $cache_file 498 else 499 echo "creating cache $cache_file" 500 > $cache_file 879 # Some versions of bash will fail to source /dev/null (special 880 # files actually), so we avoid doing that. 881 if test -f "$cache_file"; then 882 { echo "$as_me:882: loading cache $cache_file" >&5 883 echo "$as_me: loading cache $cache_file" >&6;} 884 case $cache_file in 885 [\\/]* | ?:[\\/]* ) . $cache_file;; 886 *) . ./$cache_file;; 887 esac 888 fi 889 else 890 { echo "$as_me:890: creating cache $cache_file" >&5 891 echo "$as_me: creating cache $cache_file" >&6;} 892 >$cache_file 893 fi 894 895 # Check that the precious variables saved in the cache have kept the same 896 # value. 897 ac_cache_corrupted=false 898 for ac_var in `(set) 2>&1 | 899 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 900 eval ac_old_set=\$ac_cv_env_${ac_var}_set 901 eval ac_new_set=\$ac_env_${ac_var}_set 902 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 903 eval ac_new_val="\$ac_env_${ac_var}_value" 904 case $ac_old_set,$ac_new_set in 905 set,) 906 { echo "$as_me:906: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 907 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 908 ac_cache_corrupted=: ;; 909 ,set) 910 { echo "$as_me:910: error: \`$ac_var' was not set in the previous run" >&5 911 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 912 ac_cache_corrupted=: ;; 913 ,);; 914 *) 915 if test "x$ac_old_val" != "x$ac_new_val"; then 916 { echo "$as_me:916: error: \`$ac_var' has changed since the previous run:" >&5 917 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 918 { echo "$as_me:918: former value: $ac_old_val" >&5 919 echo "$as_me: former value: $ac_old_val" >&2;} 920 { echo "$as_me:920: current value: $ac_new_val" >&5 921 echo "$as_me: current value: $ac_new_val" >&2;} 922 ac_cache_corrupted=: 923 fi;; 924 esac 925 # Pass precious variables to config.status. It doesn't matter if 926 # we pass some twice (in addition to the command line arguments). 927 if test "$ac_new_set" = set; then 928 case $ac_new_val in 929 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 930 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 931 ac_configure_args="$ac_configure_args '$ac_arg'" 932 ;; 933 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 934 ;; 935 esac 936 fi 937 done 938 if $ac_cache_corrupted; then 939 { echo "$as_me:939: error: changes in the environment can compromise the build" >&5 940 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 941 { { echo "$as_me:941: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 942 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 943 { (exit 1); exit 1; }; } 501 944 fi 502 945 503 946 ac_ext=c 504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.505 947 ac_cpp='$CPP $CPPFLAGS' 506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 508 cross_compiling=$ac_cv_prog_cc_cross 509 510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 513 ac_n= ac_c=' 514 ' ac_t=' ' 515 else 516 ac_n=-n ac_c= ac_t= 517 fi 518 else 519 ac_n= ac_c='\c' ac_t= 520 fi 521 522 523 948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 950 ac_compiler_gnu=$ac_cv_c_compiler_gnu 951 952 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 953 *c*,-n*) ECHO_N= ECHO_C=' 954 ' ECHO_T=' ' ;; 955 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 956 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 957 esac 958 echo "#! $SHELL" >conftest.sh 959 echo "exit 0" >>conftest.sh 960 chmod +x conftest.sh 961 if { (echo "$as_me:961: PATH=\".;.\"; conftest.sh") >&5 962 (PATH=".;."; conftest.sh) 2>&5 963 ac_status=$? 964 echo "$as_me:964: \$? = $ac_status" >&5 965 (exit $ac_status); }; then 966 ac_path_separator=';' 967 else 968 ac_path_separator=: 969 fi 970 PATH_SEPARATOR="$ac_path_separator" 971 rm -f conftest.sh 972 973 ac_config_headers="$ac_config_headers conf.h" 524 974 525 975 # Check whether --with-sophya or --without-sophya was given. … … 529 979 else 530 980 use_sophya=0 531 fi 532 533 534 981 fi; 982 983 # Check whether --with-piolib or --without-piolib was given. 984 if test "${with_piolib+set}" = set; then 985 withval="$with_piolib" 986 use_piolib=1 987 else 988 use_piolib=0 989 fi; 535 990 536 991 if test `uname` = OSF1 -a -z "$CXX"; then … … 554 1009 fi 555 1010 556 # Extract the first word of "gcc", so it can be a program name with args. 557 set dummy gcc; ac_word=$2 558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 559 echo "configure:560: checking for $ac_word" >&5 560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 561 echo $ac_n "(cached) $ac_c" 1>&6 1011 ac_ext=c 1012 ac_cpp='$CPP $CPPFLAGS' 1013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1016 if test -n "$ac_tool_prefix"; then 1017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1018 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1019 echo "$as_me:1019: checking for $ac_word" >&5 1020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1021 if test "${ac_cv_prog_CC+set}" = set; then 1022 echo $ECHO_N "(cached) $ECHO_C" >&6 562 1023 else 563 1024 if test -n "$CC"; then 564 1025 ac_cv_prog_CC="$CC" # Let the user override the test. 565 1026 else 566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 567 for ac_dir in $PATH; do 568 test -z "$ac_dir" && ac_dir=. 569 if test -f $ac_dir/$ac_word; then 570 ac_cv_prog_CC="gcc" 571 break 572 fi 573 done 574 IFS="$ac_save_ifs" 575 fi 576 fi 577 CC="$ac_cv_prog_CC" 1027 ac_save_IFS=$IFS; IFS=$ac_path_separator 1028 ac_dummy="$PATH" 1029 for ac_dir in $ac_dummy; do 1030 IFS=$ac_save_IFS 1031 test -z "$ac_dir" && ac_dir=. 1032 $as_executable_p "$ac_dir/$ac_word" || continue 1033 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1034 echo "$as_me:1034: found $ac_dir/$ac_word" >&5 1035 break 1036 done 1037 1038 fi 1039 fi 1040 CC=$ac_cv_prog_CC 578 1041 if test -n "$CC"; then 579 echo "$ac_t""$CC" 1>&6 580 else 581 echo "$ac_t""no" 1>&6 582 fi 583 1042 echo "$as_me:1042: result: $CC" >&5 1043 echo "${ECHO_T}$CC" >&6 1044 else 1045 echo "$as_me:1045: result: no" >&5 1046 echo "${ECHO_T}no" >&6 1047 fi 1048 1049 fi 1050 if test -z "$ac_cv_prog_CC"; then 1051 ac_ct_CC=$CC 1052 # Extract the first word of "gcc", so it can be a program name with args. 1053 set dummy gcc; ac_word=$2 1054 echo "$as_me:1054: checking for $ac_word" >&5 1055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1057 echo $ECHO_N "(cached) $ECHO_C" >&6 1058 else 1059 if test -n "$ac_ct_CC"; then 1060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1061 else 1062 ac_save_IFS=$IFS; IFS=$ac_path_separator 1063 ac_dummy="$PATH" 1064 for ac_dir in $ac_dummy; do 1065 IFS=$ac_save_IFS 1066 test -z "$ac_dir" && ac_dir=. 1067 $as_executable_p "$ac_dir/$ac_word" || continue 1068 ac_cv_prog_ac_ct_CC="gcc" 1069 echo "$as_me:1069: found $ac_dir/$ac_word" >&5 1070 break 1071 done 1072 1073 fi 1074 fi 1075 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1076 if test -n "$ac_ct_CC"; then 1077 echo "$as_me:1077: result: $ac_ct_CC" >&5 1078 echo "${ECHO_T}$ac_ct_CC" >&6 1079 else 1080 echo "$as_me:1080: result: no" >&5 1081 echo "${ECHO_T}no" >&6 1082 fi 1083 1084 CC=$ac_ct_CC 1085 else 1086 CC="$ac_cv_prog_CC" 1087 fi 1088 1089 if test -z "$CC"; then 1090 if test -n "$ac_tool_prefix"; then 1091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1092 set dummy ${ac_tool_prefix}cc; ac_word=$2 1093 echo "$as_me:1093: checking for $ac_word" >&5 1094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1095 if test "${ac_cv_prog_CC+set}" = set; then 1096 echo $ECHO_N "(cached) $ECHO_C" >&6 1097 else 1098 if test -n "$CC"; then 1099 ac_cv_prog_CC="$CC" # Let the user override the test. 1100 else 1101 ac_save_IFS=$IFS; IFS=$ac_path_separator 1102 ac_dummy="$PATH" 1103 for ac_dir in $ac_dummy; do 1104 IFS=$ac_save_IFS 1105 test -z "$ac_dir" && ac_dir=. 1106 $as_executable_p "$ac_dir/$ac_word" || continue 1107 ac_cv_prog_CC="${ac_tool_prefix}cc" 1108 echo "$as_me:1108: found $ac_dir/$ac_word" >&5 1109 break 1110 done 1111 1112 fi 1113 fi 1114 CC=$ac_cv_prog_CC 1115 if test -n "$CC"; then 1116 echo "$as_me:1116: result: $CC" >&5 1117 echo "${ECHO_T}$CC" >&6 1118 else 1119 echo "$as_me:1119: result: no" >&5 1120 echo "${ECHO_T}no" >&6 1121 fi 1122 1123 fi 1124 if test -z "$ac_cv_prog_CC"; then 1125 ac_ct_CC=$CC 1126 # Extract the first word of "cc", so it can be a program name with args. 1127 set dummy cc; ac_word=$2 1128 echo "$as_me:1128: checking for $ac_word" >&5 1129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1131 echo $ECHO_N "(cached) $ECHO_C" >&6 1132 else 1133 if test -n "$ac_ct_CC"; then 1134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1135 else 1136 ac_save_IFS=$IFS; IFS=$ac_path_separator 1137 ac_dummy="$PATH" 1138 for ac_dir in $ac_dummy; do 1139 IFS=$ac_save_IFS 1140 test -z "$ac_dir" && ac_dir=. 1141 $as_executable_p "$ac_dir/$ac_word" || continue 1142 ac_cv_prog_ac_ct_CC="cc" 1143 echo "$as_me:1143: found $ac_dir/$ac_word" >&5 1144 break 1145 done 1146 1147 fi 1148 fi 1149 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1150 if test -n "$ac_ct_CC"; then 1151 echo "$as_me:1151: result: $ac_ct_CC" >&5 1152 echo "${ECHO_T}$ac_ct_CC" >&6 1153 else 1154 echo "$as_me:1154: result: no" >&5 1155 echo "${ECHO_T}no" >&6 1156 fi 1157 1158 CC=$ac_ct_CC 1159 else 1160 CC="$ac_cv_prog_CC" 1161 fi 1162 1163 fi 584 1164 if test -z "$CC"; then 585 1165 # Extract the first word of "cc", so it can be a program name with args. 586 1166 set dummy cc; ac_word=$2 587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6588 echo "configure:589: checking for $ac_word" >&5589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then590 echo $ ac_n "(cached) $ac_c" 1>&61167 echo "$as_me:1167: checking for $ac_word" >&5 1168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1169 if test "${ac_cv_prog_CC+set}" = set; then 1170 echo $ECHO_N "(cached) $ECHO_C" >&6 591 1171 else 592 1172 if test -n "$CC"; then 593 1173 ac_cv_prog_CC="$CC" # Let the user override the test. 594 1174 else 595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"596 1175 ac_prog_rejected=no 597 for ac_dir in $PATH; do 598 test -z "$ac_dir" && ac_dir=. 599 if test -f $ac_dir/$ac_word; then 600 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 601 ac_prog_rejected=yes 602 continue 603 fi 604 ac_cv_prog_CC="cc" 605 break 606 fi 607 done 608 IFS="$ac_save_ifs" 1176 ac_save_IFS=$IFS; IFS=$ac_path_separator 1177 ac_dummy="$PATH" 1178 for ac_dir in $ac_dummy; do 1179 IFS=$ac_save_IFS 1180 test -z "$ac_dir" && ac_dir=. 1181 $as_executable_p "$ac_dir/$ac_word" || continue 1182 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1183 ac_prog_rejected=yes 1184 continue 1185 fi 1186 ac_cv_prog_CC="cc" 1187 echo "$as_me:1187: found $ac_dir/$ac_word" >&5 1188 break 1189 done 1190 609 1191 if test $ac_prog_rejected = yes; then 610 1192 # We found a bogon in the path, so make sure we never use it. 611 1193 set dummy $ac_cv_prog_CC 612 1194 shift 613 if test $# -gt0; then1195 if test $# != 0; then 614 1196 # We chose a different compiler from the bogus one. 615 1197 # However, it has the same basename, so the bogon will be chosen 616 1198 # first if we set CC to just the basename; use the full file name. 617 1199 shift 618 set dummy "$ac_dir/$ac_word" "$@"1200 set dummy "$ac_dir/$ac_word" ${1+"$@"} 619 1201 shift 620 1202 ac_cv_prog_CC="$@" … … 623 1205 fi 624 1206 fi 625 CC= "$ac_cv_prog_CC"1207 CC=$ac_cv_prog_CC 626 1208 if test -n "$CC"; then 627 echo "$ac_t""$CC" 1>&6 628 else 629 echo "$ac_t""no" 1>&6 630 fi 631 632 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 633 fi 634 635 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 636 echo "configure:637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 637 638 ac_ext=c 639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 640 ac_cpp='$CPP $CPPFLAGS' 641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 642 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 643 cross_compiling=$ac_cv_prog_cc_cross 644 645 cat > conftest.$ac_ext <<EOF 646 #line 647 "configure" 647 #include "confdefs.h" 648 main(){return(0);} 649 EOF 650 if { (eval echo configure:651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 651 ac_cv_prog_cc_works=yes 652 # If we can't run a trivial program, we are probably using a cross compiler. 653 if (./conftest; exit) 2>/dev/null; then 654 ac_cv_prog_cc_cross=no 1209 echo "$as_me:1209: result: $CC" >&5 1210 echo "${ECHO_T}$CC" >&6 1211 else 1212 echo "$as_me:1212: result: no" >&5 1213 echo "${ECHO_T}no" >&6 1214 fi 1215 1216 fi 1217 if test -z "$CC"; then 1218 if test -n "$ac_tool_prefix"; then 1219 for ac_prog in cl 1220 do 1221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1223 echo "$as_me:1223: checking for $ac_word" >&5 1224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1225 if test "${ac_cv_prog_CC+set}" = set; then 1226 echo $ECHO_N "(cached) $ECHO_C" >&6 1227 else 1228 if test -n "$CC"; then 1229 ac_cv_prog_CC="$CC" # Let the user override the test. 1230 else 1231 ac_save_IFS=$IFS; IFS=$ac_path_separator 1232 ac_dummy="$PATH" 1233 for ac_dir in $ac_dummy; do 1234 IFS=$ac_save_IFS 1235 test -z "$ac_dir" && ac_dir=. 1236 $as_executable_p "$ac_dir/$ac_word" || continue 1237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1238 echo "$as_me:1238: found $ac_dir/$ac_word" >&5 1239 break 1240 done 1241 1242 fi 1243 fi 1244 CC=$ac_cv_prog_CC 1245 if test -n "$CC"; then 1246 echo "$as_me:1246: result: $CC" >&5 1247 echo "${ECHO_T}$CC" >&6 1248 else 1249 echo "$as_me:1249: result: no" >&5 1250 echo "${ECHO_T}no" >&6 1251 fi 1252 1253 test -n "$CC" && break 1254 done 1255 fi 1256 if test -z "$CC"; then 1257 ac_ct_CC=$CC 1258 for ac_prog in cl 1259 do 1260 # Extract the first word of "$ac_prog", so it can be a program name with args. 1261 set dummy $ac_prog; ac_word=$2 1262 echo "$as_me:1262: checking for $ac_word" >&5 1263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1265 echo $ECHO_N "(cached) $ECHO_C" >&6 1266 else 1267 if test -n "$ac_ct_CC"; then 1268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1269 else 1270 ac_save_IFS=$IFS; IFS=$ac_path_separator 1271 ac_dummy="$PATH" 1272 for ac_dir in $ac_dummy; do 1273 IFS=$ac_save_IFS 1274 test -z "$ac_dir" && ac_dir=. 1275 $as_executable_p "$ac_dir/$ac_word" || continue 1276 ac_cv_prog_ac_ct_CC="$ac_prog" 1277 echo "$as_me:1277: found $ac_dir/$ac_word" >&5 1278 break 1279 done 1280 1281 fi 1282 fi 1283 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1284 if test -n "$ac_ct_CC"; then 1285 echo "$as_me:1285: result: $ac_ct_CC" >&5 1286 echo "${ECHO_T}$ac_ct_CC" >&6 1287 else 1288 echo "$as_me:1288: result: no" >&5 1289 echo "${ECHO_T}no" >&6 1290 fi 1291 1292 test -n "$ac_ct_CC" && break 1293 done 1294 1295 CC=$ac_ct_CC 1296 fi 1297 1298 fi 1299 1300 test -z "$CC" && { { echo "$as_me:1300: error: no acceptable cc found in \$PATH" >&5 1301 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1302 { (exit 1); exit 1; }; } 1303 1304 # Provide some information about the compiler. 1305 echo "$as_me:1305:" \ 1306 "checking for C compiler version" >&5 1307 ac_compiler=`set X $ac_compile; echo $2` 1308 { (eval echo "$as_me:1308: \"$ac_compiler --version </dev/null >&5\"") >&5 1309 (eval $ac_compiler --version </dev/null >&5) 2>&5 1310 ac_status=$? 1311 echo "$as_me:1311: \$? = $ac_status" >&5 1312 (exit $ac_status); } 1313 { (eval echo "$as_me:1313: \"$ac_compiler -v </dev/null >&5\"") >&5 1314 (eval $ac_compiler -v </dev/null >&5) 2>&5 1315 ac_status=$? 1316 echo "$as_me:1316: \$? = $ac_status" >&5 1317 (exit $ac_status); } 1318 { (eval echo "$as_me:1318: \"$ac_compiler -V </dev/null >&5\"") >&5 1319 (eval $ac_compiler -V </dev/null >&5) 2>&5 1320 ac_status=$? 1321 echo "$as_me:1321: \$? = $ac_status" >&5 1322 (exit $ac_status); } 1323 1324 cat >conftest.$ac_ext <<_ACEOF 1325 #line 1325 "configure" 1326 #include "confdefs.h" 1327 1328 int 1329 main () 1330 { 1331 1332 ; 1333 return 0; 1334 } 1335 _ACEOF 1336 ac_clean_files_save=$ac_clean_files 1337 ac_clean_files="$ac_clean_files a.out a.exe" 1338 # Try to create an executable without -o first, disregard a.out. 1339 # It will help us diagnose broken compilers, and finding out an intuition 1340 # of exeext. 1341 echo "$as_me:1341: checking for C compiler default output" >&5 1342 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1343 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1344 if { (eval echo "$as_me:1344: \"$ac_link_default\"") >&5 1345 (eval $ac_link_default) 2>&5 1346 ac_status=$? 1347 echo "$as_me:1347: \$? = $ac_status" >&5 1348 (exit $ac_status); }; then 1349 # Find the output, starting from the most likely. This scheme is 1350 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1351 # resort. 1352 for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1353 ls a.out conftest 2>/dev/null; 1354 ls a.* conftest.* 2>/dev/null`; do 1355 case $ac_file in 1356 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1357 a.out ) # We found the default executable, but exeext='' is most 1358 # certainly right. 1359 break;; 1360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1361 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1362 export ac_cv_exeext 1363 break;; 1364 * ) break;; 1365 esac 1366 done 1367 else 1368 echo "$as_me: failed program was:" >&5 1369 cat conftest.$ac_ext >&5 1370 { { echo "$as_me:1370: error: C compiler cannot create executables" >&5 1371 echo "$as_me: error: C compiler cannot create executables" >&2;} 1372 { (exit 77); exit 77; }; } 1373 fi 1374 1375 ac_exeext=$ac_cv_exeext 1376 echo "$as_me:1376: result: $ac_file" >&5 1377 echo "${ECHO_T}$ac_file" >&6 1378 1379 # Check the compiler produces executables we can run. If not, either 1380 # the compiler is broken, or we cross compile. 1381 echo "$as_me:1381: checking whether the C compiler works" >&5 1382 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1383 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1384 # If not cross compiling, check that we can run a simple program. 1385 if test "$cross_compiling" != yes; then 1386 if { ac_try='./$ac_file' 1387 { (eval echo "$as_me:1387: \"$ac_try\"") >&5 1388 (eval $ac_try) 2>&5 1389 ac_status=$? 1390 echo "$as_me:1390: \$? = $ac_status" >&5 1391 (exit $ac_status); }; }; then 1392 cross_compiling=no 655 1393 else 656 ac_cv_prog_cc_cross=yes 1394 if test "$cross_compiling" = maybe; then 1395 cross_compiling=yes 1396 else 1397 { { echo "$as_me:1397: error: cannot run C compiled programs. 1398 If you meant to cross compile, use \`--host'." >&5 1399 echo "$as_me: error: cannot run C compiled programs. 1400 If you meant to cross compile, use \`--host'." >&2;} 1401 { (exit 1); exit 1; }; } 1402 fi 657 1403 fi 658 else 659 echo "configure: failed program was:" >&5 660 cat conftest.$ac_ext >&5 661 ac_cv_prog_cc_works=no 662 fi 663 rm -fr conftest* 664 665 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 666 if test $ac_cv_prog_cc_works = no; then 667 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 668 fi 669 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 670 echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 671 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 672 cross_compiling=$ac_cv_prog_cc_cross 673 674 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 675 echo "configure:676: checking whether we are using GNU C" >&5 676 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 677 echo $ac_n "(cached) $ac_c" 1>&6 678 else 679 cat > conftest.c <<EOF 680 #ifdef __GNUC__ 681 yes; 1404 fi 1405 echo "$as_me:1405: result: yes" >&5 1406 echo "${ECHO_T}yes" >&6 1407 1408 rm -f a.out a.exe conftest$ac_cv_exeext 1409 ac_clean_files=$ac_clean_files_save 1410 # Check the compiler produces executables we can run. If not, either 1411 # the compiler is broken, or we cross compile. 1412 echo "$as_me:1412: checking whether we are cross compiling" >&5 1413 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1414 echo "$as_me:1414: result: $cross_compiling" >&5 1415 echo "${ECHO_T}$cross_compiling" >&6 1416 1417 echo "$as_me:1417: checking for executable suffix" >&5 1418 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1419 if { (eval echo "$as_me:1419: \"$ac_link\"") >&5 1420 (eval $ac_link) 2>&5 1421 ac_status=$? 1422 echo "$as_me:1422: \$? = $ac_status" >&5 1423 (exit $ac_status); }; then 1424 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1425 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1426 # work properly (i.e., refer to `conftest.exe'), while it won't with 1427 # `rm'. 1428 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1429 case $ac_file in 1430 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1432 export ac_cv_exeext 1433 break;; 1434 * ) break;; 1435 esac 1436 done 1437 else 1438 { { echo "$as_me:1438: error: cannot compute EXEEXT: cannot compile and link" >&5 1439 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1440 { (exit 1); exit 1; }; } 1441 fi 1442 1443 rm -f conftest$ac_cv_exeext 1444 echo "$as_me:1444: result: $ac_cv_exeext" >&5 1445 echo "${ECHO_T}$ac_cv_exeext" >&6 1446 1447 rm -f conftest.$ac_ext 1448 EXEEXT=$ac_cv_exeext 1449 ac_exeext=$EXEEXT 1450 echo "$as_me:1450: checking for object suffix" >&5 1451 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1452 if test "${ac_cv_objext+set}" = set; then 1453 echo $ECHO_N "(cached) $ECHO_C" >&6 1454 else 1455 cat >conftest.$ac_ext <<_ACEOF 1456 #line 1456 "configure" 1457 #include "confdefs.h" 1458 1459 int 1460 main () 1461 { 1462 1463 ; 1464 return 0; 1465 } 1466 _ACEOF 1467 rm -f conftest.o conftest.obj 1468 if { (eval echo "$as_me:1468: \"$ac_compile\"") >&5 1469 (eval $ac_compile) 2>&5 1470 ac_status=$? 1471 echo "$as_me:1471: \$? = $ac_status" >&5 1472 (exit $ac_status); }; then 1473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1474 case $ac_file in 1475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1477 break;; 1478 esac 1479 done 1480 else 1481 echo "$as_me: failed program was:" >&5 1482 cat conftest.$ac_ext >&5 1483 { { echo "$as_me:1483: error: cannot compute OBJEXT: cannot compile" >&5 1484 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1485 { (exit 1); exit 1; }; } 1486 fi 1487 1488 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1489 fi 1490 echo "$as_me:1490: result: $ac_cv_objext" >&5 1491 echo "${ECHO_T}$ac_cv_objext" >&6 1492 OBJEXT=$ac_cv_objext 1493 ac_objext=$OBJEXT 1494 echo "$as_me:1494: checking whether we are using the GNU C compiler" >&5 1495 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1496 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1497 echo $ECHO_N "(cached) $ECHO_C" >&6 1498 else 1499 cat >conftest.$ac_ext <<_ACEOF 1500 #line 1500 "configure" 1501 #include "confdefs.h" 1502 1503 int 1504 main () 1505 { 1506 #ifndef __GNUC__ 1507 choke me 682 1508 #endif 683 EOF 684 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 685 ac_cv_prog_gcc=yes 686 else 687 ac_cv_prog_gcc=no 688 fi 689 fi 690 691 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 692 693 if test $ac_cv_prog_gcc = yes; then 694 GCC=yes 695 ac_test_CFLAGS="${CFLAGS+set}" 696 ac_save_CFLAGS="$CFLAGS" 697 CFLAGS= 698 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 699 echo "configure:700: checking whether ${CC-cc} accepts -g" >&5 700 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 701 echo $ac_n "(cached) $ac_c" 1>&6 702 else 703 echo 'void f(){}' > conftest.c 704 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1509 1510 ; 1511 return 0; 1512 } 1513 _ACEOF 1514 rm -f conftest.$ac_objext 1515 if { (eval echo "$as_me:1515: \"$ac_compile\"") >&5 1516 (eval $ac_compile) 2>&5 1517 ac_status=$? 1518 echo "$as_me:1518: \$? = $ac_status" >&5 1519 (exit $ac_status); } && 1520 { ac_try='test -s conftest.$ac_objext' 1521 { (eval echo "$as_me:1521: \"$ac_try\"") >&5 1522 (eval $ac_try) 2>&5 1523 ac_status=$? 1524 echo "$as_me:1524: \$? = $ac_status" >&5 1525 (exit $ac_status); }; }; then 1526 ac_compiler_gnu=yes 1527 else 1528 echo "$as_me: failed program was:" >&5 1529 cat conftest.$ac_ext >&5 1530 ac_compiler_gnu=no 1531 fi 1532 rm -f conftest.$ac_objext conftest.$ac_ext 1533 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1534 1535 fi 1536 echo "$as_me:1536: result: $ac_cv_c_compiler_gnu" >&5 1537 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1538 GCC=`test $ac_compiler_gnu = yes && echo yes` 1539 ac_test_CFLAGS=${CFLAGS+set} 1540 ac_save_CFLAGS=$CFLAGS 1541 CFLAGS="-g" 1542 echo "$as_me:1542: checking whether $CC accepts -g" >&5 1543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1544 if test "${ac_cv_prog_cc_g+set}" = set; then 1545 echo $ECHO_N "(cached) $ECHO_C" >&6 1546 else 1547 cat >conftest.$ac_ext <<_ACEOF 1548 #line 1548 "configure" 1549 #include "confdefs.h" 1550 1551 int 1552 main () 1553 { 1554 1555 ; 1556 return 0; 1557 } 1558 _ACEOF 1559 rm -f conftest.$ac_objext 1560 if { (eval echo "$as_me:1560: \"$ac_compile\"") >&5 1561 (eval $ac_compile) 2>&5 1562 ac_status=$? 1563 echo "$as_me:1563: \$? = $ac_status" >&5 1564 (exit $ac_status); } && 1565 { ac_try='test -s conftest.$ac_objext' 1566 { (eval echo "$as_me:1566: \"$ac_try\"") >&5 1567 (eval $ac_try) 2>&5 1568 ac_status=$? 1569 echo "$as_me:1569: \$? = $ac_status" >&5 1570 (exit $ac_status); }; }; then 705 1571 ac_cv_prog_cc_g=yes 706 1572 else 707 ac_cv_prog_cc_g=no 708 fi 709 rm -f conftest* 710 711 fi 712 713 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 714 if test "$ac_test_CFLAGS" = set; then 715 CFLAGS="$ac_save_CFLAGS" 716 elif test $ac_cv_prog_cc_g = yes; then 1573 echo "$as_me: failed program was:" >&5 1574 cat conftest.$ac_ext >&5 1575 ac_cv_prog_cc_g=no 1576 fi 1577 rm -f conftest.$ac_objext conftest.$ac_ext 1578 fi 1579 echo "$as_me:1579: result: $ac_cv_prog_cc_g" >&5 1580 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1581 if test "$ac_test_CFLAGS" = set; then 1582 CFLAGS=$ac_save_CFLAGS 1583 elif test $ac_cv_prog_cc_g = yes; then 1584 if test "$GCC" = yes; then 717 1585 CFLAGS="-g -O2" 718 1586 else 1587 CFLAGS="-g" 1588 fi 1589 else 1590 if test "$GCC" = yes; then 719 1591 CFLAGS="-O2" 1592 else 1593 CFLAGS= 720 1594 fi 721 else 722 GCC= 723 test "${CFLAGS+set}" = set || CFLAGS="-g" 724 fi 725 726 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 1595 fi 1596 # Some people use a C++ compiler to compile C. Since we use `exit', 1597 # in C++ we need to declare it. In case someone uses the same compiler 1598 # for both compiling C and C++ we need to have the C++ compiler decide 1599 # the declaration of exit, since it's the most demanding environment. 1600 cat >conftest.$ac_ext <<_ACEOF 1601 #ifndef __cplusplus 1602 choke me 1603 #endif 1604 _ACEOF 1605 rm -f conftest.$ac_objext 1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5 1607 (eval $ac_compile) 2>&5 1608 ac_status=$? 1609 echo "$as_me:1609: \$? = $ac_status" >&5 1610 (exit $ac_status); } && 1611 { ac_try='test -s conftest.$ac_objext' 1612 { (eval echo "$as_me:1612: \"$ac_try\"") >&5 1613 (eval $ac_try) 2>&5 1614 ac_status=$? 1615 echo "$as_me:1615: \$? = $ac_status" >&5 1616 (exit $ac_status); }; }; then 1617 for ac_declaration in \ 1618 ''\ 1619 '#include <stdlib.h>' \ 1620 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1621 'extern "C" void std::exit (int); using std::exit;' \ 1622 'extern "C" void exit (int) throw ();' \ 1623 'extern "C" void exit (int);' \ 1624 'void exit (int);' 727 1625 do 728 # Extract the first word of "$ac_prog", so it can be a program name with args. 729 set dummy $ac_prog; ac_word=$2 730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 731 echo "configure:732: checking for $ac_word" >&5 732 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 733 echo $ac_n "(cached) $ac_c" 1>&6 1626 cat >conftest.$ac_ext <<_ACEOF 1627 #line 1627 "configure" 1628 #include "confdefs.h" 1629 #include <stdlib.h> 1630 $ac_declaration 1631 int 1632 main () 1633 { 1634 exit (42); 1635 ; 1636 return 0; 1637 } 1638 _ACEOF 1639 rm -f conftest.$ac_objext 1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5 1641 (eval $ac_compile) 2>&5 1642 ac_status=$? 1643 echo "$as_me:1643: \$? = $ac_status" >&5 1644 (exit $ac_status); } && 1645 { ac_try='test -s conftest.$ac_objext' 1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5 1647 (eval $ac_try) 2>&5 1648 ac_status=$? 1649 echo "$as_me:1649: \$? = $ac_status" >&5 1650 (exit $ac_status); }; }; then 1651 : 1652 else 1653 echo "$as_me: failed program was:" >&5 1654 cat conftest.$ac_ext >&5 1655 continue 1656 fi 1657 rm -f conftest.$ac_objext conftest.$ac_ext 1658 cat >conftest.$ac_ext <<_ACEOF 1659 #line 1659 "configure" 1660 #include "confdefs.h" 1661 $ac_declaration 1662 int 1663 main () 1664 { 1665 exit (42); 1666 ; 1667 return 0; 1668 } 1669 _ACEOF 1670 rm -f conftest.$ac_objext 1671 if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5 1672 (eval $ac_compile) 2>&5 1673 ac_status=$? 1674 echo "$as_me:1674: \$? = $ac_status" >&5 1675 (exit $ac_status); } && 1676 { ac_try='test -s conftest.$ac_objext' 1677 { (eval echo "$as_me:1677: \"$ac_try\"") >&5 1678 (eval $ac_try) 2>&5 1679 ac_status=$? 1680 echo "$as_me:1680: \$? = $ac_status" >&5 1681 (exit $ac_status); }; }; then 1682 break 1683 else 1684 echo "$as_me: failed program was:" >&5 1685 cat conftest.$ac_ext >&5 1686 fi 1687 rm -f conftest.$ac_objext conftest.$ac_ext 1688 done 1689 rm -f conftest* 1690 if test -n "$ac_declaration"; then 1691 echo '#ifdef __cplusplus' >>confdefs.h 1692 echo $ac_declaration >>confdefs.h 1693 echo '#endif' >>confdefs.h 1694 fi 1695 1696 else 1697 echo "$as_me: failed program was:" >&5 1698 cat conftest.$ac_ext >&5 1699 fi 1700 rm -f conftest.$ac_objext conftest.$ac_ext 1701 ac_ext=c 1702 ac_cpp='$CPP $CPPFLAGS' 1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1706 1707 ac_ext=cc 1708 ac_cpp='$CXXCPP $CPPFLAGS' 1709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1712 if test -n "$ac_tool_prefix"; then 1713 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1714 do 1715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1717 echo "$as_me:1717: checking for $ac_word" >&5 1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1719 if test "${ac_cv_prog_CXX+set}" = set; then 1720 echo $ECHO_N "(cached) $ECHO_C" >&6 734 1721 else 735 1722 if test -n "$CXX"; then 736 1723 ac_cv_prog_CXX="$CXX" # Let the user override the test. 737 1724 else 738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 739 for ac_dir in $PATH; do 740 test -z "$ac_dir" && ac_dir=. 741 if test -f $ac_dir/$ac_word; then 742 ac_cv_prog_CXX="$ac_prog" 743 break 744 fi 1725 ac_save_IFS=$IFS; IFS=$ac_path_separator 1726 ac_dummy="$PATH" 1727 for ac_dir in $ac_dummy; do 1728 IFS=$ac_save_IFS 1729 test -z "$ac_dir" && ac_dir=. 1730 $as_executable_p "$ac_dir/$ac_word" || continue 1731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1732 echo "$as_me:1732: found $ac_dir/$ac_word" >&5 1733 break 1734 done 1735 1736 fi 1737 fi 1738 CXX=$ac_cv_prog_CXX 1739 if test -n "$CXX"; then 1740 echo "$as_me:1740: result: $CXX" >&5 1741 echo "${ECHO_T}$CXX" >&6 1742 else 1743 echo "$as_me:1743: result: no" >&5 1744 echo "${ECHO_T}no" >&6 1745 fi 1746 1747 test -n "$CXX" && break 745 1748 done 746 IFS="$ac_save_ifs" 747 fi 748 fi 749 CXX="$ac_cv_prog_CXX" 750 if test -n "$CXX"; then 751 echo "$ac_t""$CXX" 1>&6 752 else 753 echo "$ac_t""no" 1>&6 754 fi 755 756 test -n "$CXX" && break 1749 fi 1750 if test -z "$CXX"; then 1751 ac_ct_CXX=$CXX 1752 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1753 do 1754 # Extract the first word of "$ac_prog", so it can be a program name with args. 1755 set dummy $ac_prog; ac_word=$2 1756 echo "$as_me:1756: checking for $ac_word" >&5 1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1758 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1759 echo $ECHO_N "(cached) $ECHO_C" >&6 1760 else 1761 if test -n "$ac_ct_CXX"; then 1762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1763 else 1764 ac_save_IFS=$IFS; IFS=$ac_path_separator 1765 ac_dummy="$PATH" 1766 for ac_dir in $ac_dummy; do 1767 IFS=$ac_save_IFS 1768 test -z "$ac_dir" && ac_dir=. 1769 $as_executable_p "$ac_dir/$ac_word" || continue 1770 ac_cv_prog_ac_ct_CXX="$ac_prog" 1771 echo "$as_me:1771: found $ac_dir/$ac_word" >&5 1772 break 757 1773 done 758 test -n "$CXX" || CXX="gcc" 759 760 761 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 762 echo "configure:763: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 763 764 ac_ext=C 765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 766 ac_cpp='$CXXCPP $CPPFLAGS' 767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 768 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 769 cross_compiling=$ac_cv_prog_cxx_cross 770 771 cat > conftest.$ac_ext <<EOF 772 #line 773 "configure" 773 #include "confdefs.h" 774 main(){return(0);} 775 EOF 776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 777 ac_cv_prog_cxx_works=yes 778 # If we can't run a trivial program, we are probably using a cross compiler. 779 if (./conftest; exit) 2>/dev/null; then 780 ac_cv_prog_cxx_cross=no 781 else 782 ac_cv_prog_cxx_cross=yes 783 fi 784 else 785 echo "configure: failed program was:" >&5 786 cat conftest.$ac_ext >&5 787 ac_cv_prog_cxx_works=no 788 fi 789 rm -fr conftest* 790 ac_ext=c 791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 792 ac_cpp='$CPP $CPPFLAGS' 793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 794 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 795 cross_compiling=$ac_cv_prog_cc_cross 796 797 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 798 if test $ac_cv_prog_cxx_works = no; then 799 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 800 fi 801 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 802 echo "configure:803: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 803 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 804 cross_compiling=$ac_cv_prog_cxx_cross 805 806 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 807 echo "configure:808: checking whether we are using GNU C++" >&5 808 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 809 echo $ac_n "(cached) $ac_c" 1>&6 810 else 811 cat > conftest.C <<EOF 812 #ifdef __GNUC__ 813 yes; 1774 1775 fi 1776 fi 1777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1778 if test -n "$ac_ct_CXX"; then 1779 echo "$as_me:1779: result: $ac_ct_CXX" >&5 1780 echo "${ECHO_T}$ac_ct_CXX" >&6 1781 else 1782 echo "$as_me:1782: result: no" >&5 1783 echo "${ECHO_T}no" >&6 1784 fi 1785 1786 test -n "$ac_ct_CXX" && break 1787 done 1788 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1789 1790 CXX=$ac_ct_CXX 1791 fi 1792 1793 # Provide some information about the compiler. 1794 echo "$as_me:1794:" \ 1795 "checking for C++ compiler version" >&5 1796 ac_compiler=`set X $ac_compile; echo $2` 1797 { (eval echo "$as_me:1797: \"$ac_compiler --version </dev/null >&5\"") >&5 1798 (eval $ac_compiler --version </dev/null >&5) 2>&5 1799 ac_status=$? 1800 echo "$as_me:1800: \$? = $ac_status" >&5 1801 (exit $ac_status); } 1802 { (eval echo "$as_me:1802: \"$ac_compiler -v </dev/null >&5\"") >&5 1803 (eval $ac_compiler -v </dev/null >&5) 2>&5 1804 ac_status=$? 1805 echo "$as_me:1805: \$? = $ac_status" >&5 1806 (exit $ac_status); } 1807 { (eval echo "$as_me:1807: \"$ac_compiler -V </dev/null >&5\"") >&5 1808 (eval $ac_compiler -V </dev/null >&5) 2>&5 1809 ac_status=$? 1810 echo "$as_me:1810: \$? = $ac_status" >&5 1811 (exit $ac_status); } 1812 1813 echo "$as_me:1813: checking whether we are using the GNU C++ compiler" >&5 1814 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817 else 1818 cat >conftest.$ac_ext <<_ACEOF 1819 #line 1819 "configure" 1820 #include "confdefs.h" 1821 1822 int 1823 main () 1824 { 1825 #ifndef __GNUC__ 1826 choke me 814 1827 #endif 815 EOF 816 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 817 ac_cv_prog_gxx=yes 818 else 819 ac_cv_prog_gxx=no 820 fi 821 fi 822 823 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 824 825 if test $ac_cv_prog_gxx = yes; then 826 GXX=yes 827 ac_test_CXXFLAGS="${CXXFLAGS+set}" 828 ac_save_CXXFLAGS="$CXXFLAGS" 829 CXXFLAGS= 830 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 831 echo "configure:832: checking whether ${CXX-g++} accepts -g" >&5 832 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 833 echo $ac_n "(cached) $ac_c" 1>&6 834 else 835 echo 'void f(){}' > conftest.cc 836 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1828 1829 ; 1830 return 0; 1831 } 1832 _ACEOF 1833 rm -f conftest.$ac_objext 1834 if { (eval echo "$as_me:1834: \"$ac_compile\"") >&5 1835 (eval $ac_compile) 2>&5 1836 ac_status=$? 1837 echo "$as_me:1837: \$? = $ac_status" >&5 1838 (exit $ac_status); } && 1839 { ac_try='test -s conftest.$ac_objext' 1840 { (eval echo "$as_me:1840: \"$ac_try\"") >&5 1841 (eval $ac_try) 2>&5 1842 ac_status=$? 1843 echo "$as_me:1843: \$? = $ac_status" >&5 1844 (exit $ac_status); }; }; then 1845 ac_compiler_gnu=yes 1846 else 1847 echo "$as_me: failed program was:" >&5 1848 cat conftest.$ac_ext >&5 1849 ac_compiler_gnu=no 1850 fi 1851 rm -f conftest.$ac_objext conftest.$ac_ext 1852 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1853 1854 fi 1855 echo "$as_me:1855: result: $ac_cv_cxx_compiler_gnu" >&5 1856 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1857 GXX=`test $ac_compiler_gnu = yes && echo yes` 1858 ac_test_CXXFLAGS=${CXXFLAGS+set} 1859 ac_save_CXXFLAGS=$CXXFLAGS 1860 CXXFLAGS="-g" 1861 echo "$as_me:1861: checking whether $CXX accepts -g" >&5 1862 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1863 if test "${ac_cv_prog_cxx_g+set}" = set; then 1864 echo $ECHO_N "(cached) $ECHO_C" >&6 1865 else 1866 cat >conftest.$ac_ext <<_ACEOF 1867 #line 1867 "configure" 1868 #include "confdefs.h" 1869 1870 int 1871 main () 1872 { 1873 1874 ; 1875 return 0; 1876 } 1877 _ACEOF 1878 rm -f conftest.$ac_objext 1879 if { (eval echo "$as_me:1879: \"$ac_compile\"") >&5 1880 (eval $ac_compile) 2>&5 1881 ac_status=$? 1882 echo "$as_me:1882: \$? = $ac_status" >&5 1883 (exit $ac_status); } && 1884 { ac_try='test -s conftest.$ac_objext' 1885 { (eval echo "$as_me:1885: \"$ac_try\"") >&5 1886 (eval $ac_try) 2>&5 1887 ac_status=$? 1888 echo "$as_me:1888: \$? = $ac_status" >&5 1889 (exit $ac_status); }; }; then 837 1890 ac_cv_prog_cxx_g=yes 838 1891 else 839 ac_cv_prog_cxx_g=no 840 fi 841 rm -f conftest* 842 843 fi 844 845 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 846 if test "$ac_test_CXXFLAGS" = set; then 847 CXXFLAGS="$ac_save_CXXFLAGS" 848 elif test $ac_cv_prog_cxx_g = yes; then 1892 echo "$as_me: failed program was:" >&5 1893 cat conftest.$ac_ext >&5 1894 ac_cv_prog_cxx_g=no 1895 fi 1896 rm -f conftest.$ac_objext conftest.$ac_ext 1897 fi 1898 echo "$as_me:1898: result: $ac_cv_prog_cxx_g" >&5 1899 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1900 if test "$ac_test_CXXFLAGS" = set; then 1901 CXXFLAGS=$ac_save_CXXFLAGS 1902 elif test $ac_cv_prog_cxx_g = yes; then 1903 if test "$GXX" = yes; then 849 1904 CXXFLAGS="-g -O2" 850 1905 else 1906 CXXFLAGS="-g" 1907 fi 1908 else 1909 if test "$GXX" = yes; then 851 1910 CXXFLAGS="-O2" 1911 else 1912 CXXFLAGS= 852 1913 fi 853 else 854 GXX= 855 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" 856 fi 1914 fi 1915 for ac_declaration in \ 1916 ''\ 1917 '#include <stdlib.h>' \ 1918 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1919 'extern "C" void std::exit (int); using std::exit;' \ 1920 'extern "C" void exit (int) throw ();' \ 1921 'extern "C" void exit (int);' \ 1922 'void exit (int);' 1923 do 1924 cat >conftest.$ac_ext <<_ACEOF 1925 #line 1925 "configure" 1926 #include "confdefs.h" 1927 #include <stdlib.h> 1928 $ac_declaration 1929 int 1930 main () 1931 { 1932 exit (42); 1933 ; 1934 return 0; 1935 } 1936 _ACEOF 1937 rm -f conftest.$ac_objext 1938 if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5 1939 (eval $ac_compile) 2>&5 1940 ac_status=$? 1941 echo "$as_me:1941: \$? = $ac_status" >&5 1942 (exit $ac_status); } && 1943 { ac_try='test -s conftest.$ac_objext' 1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5 1945 (eval $ac_try) 2>&5 1946 ac_status=$? 1947 echo "$as_me:1947: \$? = $ac_status" >&5 1948 (exit $ac_status); }; }; then 1949 : 1950 else 1951 echo "$as_me: failed program was:" >&5 1952 cat conftest.$ac_ext >&5 1953 continue 1954 fi 1955 rm -f conftest.$ac_objext conftest.$ac_ext 1956 cat >conftest.$ac_ext <<_ACEOF 1957 #line 1957 "configure" 1958 #include "confdefs.h" 1959 $ac_declaration 1960 int 1961 main () 1962 { 1963 exit (42); 1964 ; 1965 return 0; 1966 } 1967 _ACEOF 1968 rm -f conftest.$ac_objext 1969 if { (eval echo "$as_me:1969: \"$ac_compile\"") >&5 1970 (eval $ac_compile) 2>&5 1971 ac_status=$? 1972 echo "$as_me:1972: \$? = $ac_status" >&5 1973 (exit $ac_status); } && 1974 { ac_try='test -s conftest.$ac_objext' 1975 { (eval echo "$as_me:1975: \"$ac_try\"") >&5 1976 (eval $ac_try) 2>&5 1977 ac_status=$? 1978 echo "$as_me:1978: \$? = $ac_status" >&5 1979 (exit $ac_status); }; }; then 1980 break 1981 else 1982 echo "$as_me: failed program was:" >&5 1983 cat conftest.$ac_ext >&5 1984 fi 1985 rm -f conftest.$ac_objext conftest.$ac_ext 1986 done 1987 rm -f conftest* 1988 if test -n "$ac_declaration"; then 1989 echo '#ifdef __cplusplus' >>confdefs.h 1990 echo $ac_declaration >>confdefs.h 1991 echo '#endif' >>confdefs.h 1992 fi 1993 1994 ac_ext=c 1995 ac_cpp='$CPP $CPPFLAGS' 1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu 857 1999 858 2000 if test `uname` = "Darwin"; then … … 860 2002 ARFLAGS="-static -o" 861 2003 RANLIB=":" 862 863 864 2004 865 2005 else 866 2006 ARFLAGS="-cr" 867 2007 868 2008 if test -x /usr/bin/ar; then 869 2009 # Extract the first word of "ar", so it can be a program name with args. 870 2010 set dummy ar; ac_word=$2 871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6872 echo "configure:873: checking for $ac_word" >&5873 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then874 echo $ ac_n "(cached) $ac_c" 1>&6875 else 876 case "$AR"in877 /*)2011 echo "$as_me:2011: checking for $ac_word" >&5 2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2013 if test "${ac_cv_path_AR+set}" = set; then 2014 echo $ECHO_N "(cached) $ECHO_C" >&6 2015 else 2016 case $AR in 2017 [\\/]* | ?:[\\/]*) 878 2018 ac_cv_path_AR="$AR" # Let the user override the test with a path. 879 2019 ;; 880 2020 *) 881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 882 for ac_dir in /usr/bin:$PATH$ac_dummy; do 883 test -z "$ac_dir" && ac_dir=. 884 if test -f $ac_dir/$ac_word; then 885 ac_cv_path_AR="$ac_dir/$ac_word" 886 break 887 fi 888 done 889 IFS="$ac_save_ifs" 2021 ac_save_IFS=$IFS; IFS=$ac_path_separator 2022 ac_dummy="/usr/bin:$PATH" 2023 for ac_dir in $ac_dummy; do 2024 IFS=$ac_save_IFS 2025 test -z "$ac_dir" && ac_dir=. 2026 if $as_executable_p "$ac_dir/$ac_word"; then 2027 ac_cv_path_AR="$ac_dir/$ac_word" 2028 echo "$as_me:2028: found $ac_dir/$ac_word" >&5 2029 break 2030 fi 2031 done 2032 890 2033 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar" 891 2034 ;; 892 2035 esac 893 2036 fi 894 AR="$ac_cv_path_AR" 2037 AR=$ac_cv_path_AR 2038 895 2039 if test -n "$AR"; then 896 echo "$ac_t""$AR" 1>&6 897 else 898 echo "$ac_t""no" 1>&6 899 fi 900 2040 echo "$as_me:2040: result: $AR" >&5 2041 echo "${ECHO_T}$AR" >&6 2042 else 2043 echo "$as_me:2043: result: no" >&5 2044 echo "${ECHO_T}no" >&6 2045 fi 2046 901 2047 else 902 2048 # Extract the first word of "ar", so it can be a program name with args. 903 2049 set dummy ar; ac_word=$2 904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6905 echo "configure:906: checking for $ac_word" >&5906 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then907 echo $ ac_n "(cached) $ac_c" 1>&62050 echo "$as_me:2050: checking for $ac_word" >&5 2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2052 if test "${ac_cv_prog_AR+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 908 2054 else 909 2055 if test -n "$AR"; then 910 2056 ac_cv_prog_AR="$AR" # Let the user override the test. 911 2057 else 912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 913 for ac_dir in $PATH; do 914 test -z "$ac_dir" && ac_dir=. 915 if test -f $ac_dir/$ac_word; then 916 ac_cv_prog_AR="" 917 break 918 fi 919 done 920 IFS="$ac_save_ifs" 921 fi 922 fi 923 AR="$ac_cv_prog_AR" 2058 ac_save_IFS=$IFS; IFS=$ac_path_separator 2059 ac_dummy="$PATH" 2060 for ac_dir in $ac_dummy; do 2061 IFS=$ac_save_IFS 2062 test -z "$ac_dir" && ac_dir=. 2063 $as_executable_p "$ac_dir/$ac_word" || continue 2064 ac_cv_prog_AR="" 2065 echo "$as_me:2065: found $ac_dir/$ac_word" >&5 2066 break 2067 done 2068 2069 fi 2070 fi 2071 AR=$ac_cv_prog_AR 924 2072 if test -n "$AR"; then 925 echo "$ac_t""$AR" 1>&6 926 else 927 echo "$ac_t""no" 1>&6 2073 echo "$as_me:2073: result: $AR" >&5 2074 echo "${ECHO_T}$AR" >&6 2075 else 2076 echo "$as_me:2076: result: no" >&5 2077 echo "${ECHO_T}no" >&6 928 2078 fi 929 2079 … … 932 2082 # Extract the first word of "ranlib", so it can be a program name with args. 933 2083 set dummy ranlib; ac_word=$2 934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6935 echo "configure:936: checking for $ac_word" >&5936 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then937 echo $ ac_n "(cached) $ac_c" 1>&6938 else 939 case "$RANLIB"in940 /*)2084 echo "$as_me:2084: checking for $ac_word" >&5 2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2086 if test "${ac_cv_path_RANLIB+set}" = set; then 2087 echo $ECHO_N "(cached) $ECHO_C" >&6 2088 else 2089 case $RANLIB in 2090 [\\/]* | ?:[\\/]*) 941 2091 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. 942 2092 ;; 943 2093 *) 944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 945 for ac_dir in /usr/bin:$PATH$ac_dummy; do 946 test -z "$ac_dir" && ac_dir=. 947 if test -f $ac_dir/$ac_word; then 948 ac_cv_path_RANLIB="$ac_dir/$ac_word" 949 break 950 fi 951 done 952 IFS="$ac_save_ifs" 2094 ac_save_IFS=$IFS; IFS=$ac_path_separator 2095 ac_dummy="/usr/bin:$PATH" 2096 for ac_dir in $ac_dummy; do 2097 IFS=$ac_save_IFS 2098 test -z "$ac_dir" && ac_dir=. 2099 if $as_executable_p "$ac_dir/$ac_word"; then 2100 ac_cv_path_RANLIB="$ac_dir/$ac_word" 2101 echo "$as_me:2101: found $ac_dir/$ac_word" >&5 2102 break 2103 fi 2104 done 2105 953 2106 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib" 954 2107 ;; 955 2108 esac 956 2109 fi 957 RANLIB="$ac_cv_path_RANLIB" 2110 RANLIB=$ac_cv_path_RANLIB 2111 958 2112 if test -n "$RANLIB"; then 959 echo "$ac_t""$RANLIB" 1>&6 960 else 961 echo "$ac_t""no" 1>&6 962 fi 963 2113 echo "$as_me:2113: result: $RANLIB" >&5 2114 echo "${ECHO_T}$RANLIB" >&6 2115 else 2116 echo "$as_me:2116: result: no" >&5 2117 echo "${ECHO_T}no" >&6 2118 fi 2119 964 2120 else 965 # Extract the first word of "ranlib", so it can be a program name with args. 966 set dummy ranlib; ac_word=$2 967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 968 echo "configure:969: checking for $ac_word" >&5 969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 970 echo $ac_n "(cached) $ac_c" 1>&6 2121 if test -n "$ac_tool_prefix"; then 2122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2124 echo "$as_me:2124: checking for $ac_word" >&5 2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2126 if test "${ac_cv_prog_RANLIB+set}" = set; then 2127 echo $ECHO_N "(cached) $ECHO_C" >&6 971 2128 else 972 2129 if test -n "$RANLIB"; then 973 2130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 974 2131 else 975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 976 for ac_dir in $PATH; do 977 test -z "$ac_dir" && ac_dir=. 978 if test -f $ac_dir/$ac_word; then 979 ac_cv_prog_RANLIB="ranlib" 980 break 981 fi 982 done 983 IFS="$ac_save_ifs" 984 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 985 fi 986 fi 987 RANLIB="$ac_cv_prog_RANLIB" 2132 ac_save_IFS=$IFS; IFS=$ac_path_separator 2133 ac_dummy="$PATH" 2134 for ac_dir in $ac_dummy; do 2135 IFS=$ac_save_IFS 2136 test -z "$ac_dir" && ac_dir=. 2137 $as_executable_p "$ac_dir/$ac_word" || continue 2138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2139 echo "$as_me:2139: found $ac_dir/$ac_word" >&5 2140 break 2141 done 2142 2143 fi 2144 fi 2145 RANLIB=$ac_cv_prog_RANLIB 988 2146 if test -n "$RANLIB"; then 989 echo "$ac_t""$RANLIB" 1>&6 990 else 991 echo "$ac_t""no" 1>&6 2147 echo "$as_me:2147: result: $RANLIB" >&5 2148 echo "${ECHO_T}$RANLIB" >&6 2149 else 2150 echo "$as_me:2150: result: no" >&5 2151 echo "${ECHO_T}no" >&6 2152 fi 2153 2154 fi 2155 if test -z "$ac_cv_prog_RANLIB"; then 2156 ac_ct_RANLIB=$RANLIB 2157 # Extract the first word of "ranlib", so it can be a program name with args. 2158 set dummy ranlib; ac_word=$2 2159 echo "$as_me:2159: checking for $ac_word" >&5 2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2162 echo $ECHO_N "(cached) $ECHO_C" >&6 2163 else 2164 if test -n "$ac_ct_RANLIB"; then 2165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2166 else 2167 ac_save_IFS=$IFS; IFS=$ac_path_separator 2168 ac_dummy="$PATH" 2169 for ac_dir in $ac_dummy; do 2170 IFS=$ac_save_IFS 2171 test -z "$ac_dir" && ac_dir=. 2172 $as_executable_p "$ac_dir/$ac_word" || continue 2173 ac_cv_prog_ac_ct_RANLIB="ranlib" 2174 echo "$as_me:2174: found $ac_dir/$ac_word" >&5 2175 break 2176 done 2177 2178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2179 fi 2180 fi 2181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2182 if test -n "$ac_ct_RANLIB"; then 2183 echo "$as_me:2183: result: $ac_ct_RANLIB" >&5 2184 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2185 else 2186 echo "$as_me:2186: result: no" >&5 2187 echo "${ECHO_T}no" >&6 2188 fi 2189 2190 RANLIB=$ac_ct_RANLIB 2191 else 2192 RANLIB="$ac_cv_prog_RANLIB" 992 2193 fi 993 2194 … … 1005 2206 ac_install_sh="$ac_aux_dir/install.sh -c" 1006 2207 break 2208 elif test -f $ac_dir/shtool; then 2209 ac_aux_dir=$ac_dir 2210 ac_install_sh="$ac_aux_dir/shtool install -c" 2211 break 1007 2212 fi 1008 2213 done 1009 2214 if test -z "$ac_aux_dir"; then 1010 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1011 fi 1012 ac_config_guess=$ac_aux_dir/config.guess 1013 ac_config_sub=$ac_aux_dir/config.sub 1014 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2215 { { echo "$as_me:2215: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2216 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2217 { (exit 1); exit 1; }; } 2218 fi 2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2221 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1015 2222 1016 2223 # Find a good install program. We prefer a C program (faster), … … 1021 2228 # IRIX /sbin/install 1022 2229 # AIX /bin/install 2230 # AmigaOS /C/install, which installs bootblocks on floppy discs 2231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1023 2232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1024 2233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1025 2234 # ./install, which can be erroneously created by make from ./install.sh. 1026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61027 echo "configure:1028: checking for a BSD compatible install" >&52235 echo "$as_me:2235: checking for a BSD compatible install" >&5 2236 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1028 2237 if test -z "$INSTALL"; then 1029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then1030 echo $ ac_n "(cached) $ac_c" 1>&61031 else 1032 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"2238 if test "${ac_cv_path_install+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240 else 2241 ac_save_IFS=$IFS; IFS=$ac_path_separator 1033 2242 for ac_dir in $PATH; do 2243 IFS=$ac_save_IFS 1034 2244 # Account for people who put trailing slashes in PATH elements. 1035 case "$ac_dir/" in 1036 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2245 case $ac_dir/ in 2246 / | ./ | .// | /cC/* \ 2247 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2248 | /usr/ucb/* ) ;; 1037 2249 *) 1038 2250 # OSF1 and SCO ODT 3.0 have their own names for install. 1039 for ac_prog in ginstall installbsd scoinst install; do 1040 if test -f $ac_dir/$ac_prog; then 2251 # Don't use installbsd from OSF since it installs stuff as root 2252 # by default. 2253 for ac_prog in ginstall scoinst install; do 2254 if $as_executable_p "$ac_dir/$ac_prog"; then 1041 2255 if test $ac_prog = install && 1042 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then2256 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1043 2257 # AIX install. It has an incompatible calling convention. 1044 # OSF/1 installbsd also uses dspmsg, but is usable. 2258 : 2259 elif test $ac_prog = install && 2260 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2261 # program-specific install script used by HP pwplus--don't use. 1045 2262 : 1046 2263 else … … 1053 2270 esac 1054 2271 done 1055 IFS="$ac_save_IFS"1056 2272 1057 2273 fi 1058 2274 if test "${ac_cv_path_install+set}" = set; then 1059 INSTALL= "$ac_cv_path_install"2275 INSTALL=$ac_cv_path_install 1060 2276 else 1061 2277 # As a last resort, use the slow shell script. We don't cache a … … 1063 2279 # break other packages using the cache if that directory is 1064 2280 # removed, or if the path is relative. 1065 INSTALL= "$ac_install_sh"2281 INSTALL=$ac_install_sh 1066 2282 fi 1067 2283 fi 1068 echo "$ac_t""$INSTALL" 1>&6 2284 echo "$as_me:2284: result: $INSTALL" >&5 2285 echo "${ECHO_T}$INSTALL" >&6 1069 2286 1070 2287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1072 2289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1073 2290 2291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2292 1074 2293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1075 1076 2294 1077 2295 if test $GCC = "yes"; then … … 1081 2299 fi 1082 2300 1083 1084 echo $ac_n "checking size of short""... $ac_c" 1>&6 1085 echo "configure:1086: checking size of short" >&5 1086 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1087 echo $ac_n "(cached) $ac_c" 1>&6 1088 else 2301 ac_ext=c 2302 ac_cpp='$CPP $CPPFLAGS' 2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2306 echo "$as_me:2306: checking how to run the C preprocessor" >&5 2307 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2308 # On Suns, sometimes $CPP names a directory. 2309 if test -n "$CPP" && test -d "$CPP"; then 2310 CPP= 2311 fi 2312 if test -z "$CPP"; then 2313 if test "${ac_cv_prog_CPP+set}" = set; then 2314 echo $ECHO_N "(cached) $ECHO_C" >&6 2315 else 2316 # Double quotes because CPP needs to be expanded 2317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2318 do 2319 ac_preproc_ok=false 2320 for ac_c_preproc_warn_flag in '' yes 2321 do 2322 # Use a header file that comes with gcc, so configuring glibc 2323 # with a fresh cross-compiler works. 2324 # On the NeXT, cc -E runs the code through the compiler's parser, 2325 # not just through cpp. "Syntax error" is here to catch this case. 2326 cat >conftest.$ac_ext <<_ACEOF 2327 #line 2327 "configure" 2328 #include "confdefs.h" 2329 #include <assert.h> 2330 Syntax error 2331 _ACEOF 2332 if { (eval echo "$as_me:2332: \"$ac_cpp conftest.$ac_ext\"") >&5 2333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2334 ac_status=$? 2335 egrep -v '^ *\+' conftest.er1 >conftest.err 2336 rm -f conftest.er1 2337 cat conftest.err >&5 2338 echo "$as_me:2338: \$? = $ac_status" >&5 2339 (exit $ac_status); } >/dev/null; then 2340 if test -s conftest.err; then 2341 ac_cpp_err=$ac_c_preproc_warn_flag 2342 else 2343 ac_cpp_err= 2344 fi 2345 else 2346 ac_cpp_err=yes 2347 fi 2348 if test -z "$ac_cpp_err"; then 2349 : 2350 else 2351 echo "$as_me: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 2353 # Broken: fails on valid input. 2354 continue 2355 fi 2356 rm -f conftest.err conftest.$ac_ext 2357 2358 # OK, works on sane cases. Now check whether non-existent headers 2359 # can be detected and how. 2360 cat >conftest.$ac_ext <<_ACEOF 2361 #line 2361 "configure" 2362 #include "confdefs.h" 2363 #include <ac_nonexistent.h> 2364 _ACEOF 2365 if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5 2366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2367 ac_status=$? 2368 egrep -v '^ *\+' conftest.er1 >conftest.err 2369 rm -f conftest.er1 2370 cat conftest.err >&5 2371 echo "$as_me:2371: \$? = $ac_status" >&5 2372 (exit $ac_status); } >/dev/null; then 2373 if test -s conftest.err; then 2374 ac_cpp_err=$ac_c_preproc_warn_flag 2375 else 2376 ac_cpp_err= 2377 fi 2378 else 2379 ac_cpp_err=yes 2380 fi 2381 if test -z "$ac_cpp_err"; then 2382 # Broken: success on invalid input. 2383 continue 2384 else 2385 echo "$as_me: failed program was:" >&5 2386 cat conftest.$ac_ext >&5 2387 # Passes both tests. 2388 ac_preproc_ok=: 2389 break 2390 fi 2391 rm -f conftest.err conftest.$ac_ext 2392 2393 done 2394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2395 rm -f conftest.err conftest.$ac_ext 2396 if $ac_preproc_ok; then 2397 break 2398 fi 2399 2400 done 2401 ac_cv_prog_CPP=$CPP 2402 2403 fi 2404 CPP=$ac_cv_prog_CPP 2405 else 2406 ac_cv_prog_CPP=$CPP 2407 fi 2408 echo "$as_me:2408: result: $CPP" >&5 2409 echo "${ECHO_T}$CPP" >&6 2410 ac_preproc_ok=false 2411 for ac_c_preproc_warn_flag in '' yes 2412 do 2413 # Use a header file that comes with gcc, so configuring glibc 2414 # with a fresh cross-compiler works. 2415 # On the NeXT, cc -E runs the code through the compiler's parser, 2416 # not just through cpp. "Syntax error" is here to catch this case. 2417 cat >conftest.$ac_ext <<_ACEOF 2418 #line 2418 "configure" 2419 #include "confdefs.h" 2420 #include <assert.h> 2421 Syntax error 2422 _ACEOF 2423 if { (eval echo "$as_me:2423: \"$ac_cpp conftest.$ac_ext\"") >&5 2424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2425 ac_status=$? 2426 egrep -v '^ *\+' conftest.er1 >conftest.err 2427 rm -f conftest.er1 2428 cat conftest.err >&5 2429 echo "$as_me:2429: \$? = $ac_status" >&5 2430 (exit $ac_status); } >/dev/null; then 2431 if test -s conftest.err; then 2432 ac_cpp_err=$ac_c_preproc_warn_flag 2433 else 2434 ac_cpp_err= 2435 fi 2436 else 2437 ac_cpp_err=yes 2438 fi 2439 if test -z "$ac_cpp_err"; then 2440 : 2441 else 2442 echo "$as_me: failed program was:" >&5 2443 cat conftest.$ac_ext >&5 2444 # Broken: fails on valid input. 2445 continue 2446 fi 2447 rm -f conftest.err conftest.$ac_ext 2448 2449 # OK, works on sane cases. Now check whether non-existent headers 2450 # can be detected and how. 2451 cat >conftest.$ac_ext <<_ACEOF 2452 #line 2452 "configure" 2453 #include "confdefs.h" 2454 #include <ac_nonexistent.h> 2455 _ACEOF 2456 if { (eval echo "$as_me:2456: \"$ac_cpp conftest.$ac_ext\"") >&5 2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2458 ac_status=$? 2459 egrep -v '^ *\+' conftest.er1 >conftest.err 2460 rm -f conftest.er1 2461 cat conftest.err >&5 2462 echo "$as_me:2462: \$? = $ac_status" >&5 2463 (exit $ac_status); } >/dev/null; then 2464 if test -s conftest.err; then 2465 ac_cpp_err=$ac_c_preproc_warn_flag 2466 else 2467 ac_cpp_err= 2468 fi 2469 else 2470 ac_cpp_err=yes 2471 fi 2472 if test -z "$ac_cpp_err"; then 2473 # Broken: success on invalid input. 2474 continue 2475 else 2476 echo "$as_me: failed program was:" >&5 2477 cat conftest.$ac_ext >&5 2478 # Passes both tests. 2479 ac_preproc_ok=: 2480 break 2481 fi 2482 rm -f conftest.err conftest.$ac_ext 2483 2484 done 2485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2486 rm -f conftest.err conftest.$ac_ext 2487 if $ac_preproc_ok; then 2488 : 2489 else 2490 { { echo "$as_me:2490: error: C preprocessor \"$CPP\" fails sanity check" >&5 2491 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2492 { (exit 1); exit 1; }; } 2493 fi 2494 2495 ac_ext=c 2496 ac_cpp='$CPP $CPPFLAGS' 2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2500 2501 echo "$as_me:2501: checking for ANSI C header files" >&5 2502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2503 if test "${ac_cv_header_stdc+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505 else 2506 cat >conftest.$ac_ext <<_ACEOF 2507 #line 2507 "configure" 2508 #include "confdefs.h" 2509 #include <stdlib.h> 2510 #include <stdarg.h> 2511 #include <string.h> 2512 #include <float.h> 2513 2514 _ACEOF 2515 if { (eval echo "$as_me:2515: \"$ac_cpp conftest.$ac_ext\"") >&5 2516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2517 ac_status=$? 2518 egrep -v '^ *\+' conftest.er1 >conftest.err 2519 rm -f conftest.er1 2520 cat conftest.err >&5 2521 echo "$as_me:2521: \$? = $ac_status" >&5 2522 (exit $ac_status); } >/dev/null; then 2523 if test -s conftest.err; then 2524 ac_cpp_err=$ac_c_preproc_warn_flag 2525 else 2526 ac_cpp_err= 2527 fi 2528 else 2529 ac_cpp_err=yes 2530 fi 2531 if test -z "$ac_cpp_err"; then 2532 ac_cv_header_stdc=yes 2533 else 2534 echo "$as_me: failed program was:" >&5 2535 cat conftest.$ac_ext >&5 2536 ac_cv_header_stdc=no 2537 fi 2538 rm -f conftest.err conftest.$ac_ext 2539 2540 if test $ac_cv_header_stdc = yes; then 2541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2542 cat >conftest.$ac_ext <<_ACEOF 2543 #line 2543 "configure" 2544 #include "confdefs.h" 2545 #include <string.h> 2546 2547 _ACEOF 2548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2549 egrep "memchr" >/dev/null 2>&1; then 2550 : 2551 else 2552 ac_cv_header_stdc=no 2553 fi 2554 rm -f conftest* 2555 2556 fi 2557 2558 if test $ac_cv_header_stdc = yes; then 2559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2560 cat >conftest.$ac_ext <<_ACEOF 2561 #line 2561 "configure" 2562 #include "confdefs.h" 2563 #include <stdlib.h> 2564 2565 _ACEOF 2566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2567 egrep "free" >/dev/null 2>&1; then 2568 : 2569 else 2570 ac_cv_header_stdc=no 2571 fi 2572 rm -f conftest* 2573 2574 fi 2575 2576 if test $ac_cv_header_stdc = yes; then 2577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1089 2578 if test "$cross_compiling" = yes; then 1090 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1091 else 1092 cat > conftest.$ac_ext <<EOF 1093 #line 1094 "configure" 1094 #include "confdefs.h" 1095 #include <stdio.h> 1096 main() 1097 { 1098 FILE *f=fopen("conftestval", "w"); 1099 if (!f) exit(1); 1100 fprintf(f, "%d\n", sizeof(short)); 1101 exit(0); 1102 } 2579 : 2580 else 2581 cat >conftest.$ac_ext <<_ACEOF 2582 #line 2582 "configure" 2583 #include "confdefs.h" 2584 #include <ctype.h> 2585 #if ((' ' & 0x0FF) == 0x020) 2586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2588 #else 2589 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2590 || ('j' <= (c) && (c) <= 'r') \ 2591 || ('s' <= (c) && (c) <= 'z')) 2592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2593 #endif 2594 2595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2596 int 2597 main () 2598 { 2599 int i; 2600 for (i = 0; i < 256; i++) 2601 if (XOR (islower (i), ISLOWER (i)) 2602 || toupper (i) != TOUPPER (i)) 2603 exit(2); 2604 exit (0); 2605 } 2606 _ACEOF 2607 rm -f conftest$ac_exeext 2608 if { (eval echo "$as_me:2608: \"$ac_link\"") >&5 2609 (eval $ac_link) 2>&5 2610 ac_status=$? 2611 echo "$as_me:2611: \$? = $ac_status" >&5 2612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2613 { (eval echo "$as_me:2613: \"$ac_try\"") >&5 2614 (eval $ac_try) 2>&5 2615 ac_status=$? 2616 echo "$as_me:2616: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 : 2619 else 2620 echo "$as_me: program exited with status $ac_status" >&5 2621 echo "$as_me: failed program was:" >&5 2622 cat conftest.$ac_ext >&5 2623 ac_cv_header_stdc=no 2624 fi 2625 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2626 fi 2627 fi 2628 fi 2629 echo "$as_me:2629: result: $ac_cv_header_stdc" >&5 2630 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2631 if test $ac_cv_header_stdc = yes; then 2632 2633 cat >>confdefs.h <<\EOF 2634 #define STDC_HEADERS 1 1103 2635 EOF 1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1105 then 1106 ac_cv_sizeof_short=`cat conftestval` 1107 else 1108 echo "configure: failed program was:" >&5 1109 cat conftest.$ac_ext >&5 1110 rm -fr conftest* 2636 2637 fi 2638 2639 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 2640 2641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2642 inttypes.h stdint.h unistd.h 2643 do 2644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2645 echo "$as_me:2645: checking for $ac_header" >&5 2646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2647 if eval "test \"\${$as_ac_Header+set}\" = set"; then 2648 echo $ECHO_N "(cached) $ECHO_C" >&6 2649 else 2650 cat >conftest.$ac_ext <<_ACEOF 2651 #line 2651 "configure" 2652 #include "confdefs.h" 2653 $ac_includes_default 2654 #include <$ac_header> 2655 _ACEOF 2656 rm -f conftest.$ac_objext 2657 if { (eval echo "$as_me:2657: \"$ac_compile\"") >&5 2658 (eval $ac_compile) 2>&5 2659 ac_status=$? 2660 echo "$as_me:2660: \$? = $ac_status" >&5 2661 (exit $ac_status); } && 2662 { ac_try='test -s conftest.$ac_objext' 2663 { (eval echo "$as_me:2663: \"$ac_try\"") >&5 2664 (eval $ac_try) 2>&5 2665 ac_status=$? 2666 echo "$as_me:2666: \$? = $ac_status" >&5 2667 (exit $ac_status); }; }; then 2668 eval "$as_ac_Header=yes" 2669 else 2670 echo "$as_me: failed program was:" >&5 2671 cat conftest.$ac_ext >&5 2672 eval "$as_ac_Header=no" 2673 fi 2674 rm -f conftest.$ac_objext conftest.$ac_ext 2675 fi 2676 echo "$as_me:2676: result: `eval echo '${'$as_ac_Header'}'`" >&5 2677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2678 if test `eval echo '${'$as_ac_Header'}'` = yes; then 2679 cat >>confdefs.h <<EOF 2680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2681 EOF 2682 2683 fi 2684 done 2685 2686 echo "$as_me:2686: checking for short" >&5 2687 echo $ECHO_N "checking for short... $ECHO_C" >&6 2688 if test "${ac_cv_type_short+set}" = set; then 2689 echo $ECHO_N "(cached) $ECHO_C" >&6 2690 else 2691 cat >conftest.$ac_ext <<_ACEOF 2692 #line 2692 "configure" 2693 #include "confdefs.h" 2694 $ac_includes_default 2695 int 2696 main () 2697 { 2698 if ((short *) 0) 2699 return 0; 2700 if (sizeof (short)) 2701 return 0; 2702 ; 2703 return 0; 2704 } 2705 _ACEOF 2706 rm -f conftest.$ac_objext 2707 if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5 2708 (eval $ac_compile) 2>&5 2709 ac_status=$? 2710 echo "$as_me:2710: \$? = $ac_status" >&5 2711 (exit $ac_status); } && 2712 { ac_try='test -s conftest.$ac_objext' 2713 { (eval echo "$as_me:2713: \"$ac_try\"") >&5 2714 (eval $ac_try) 2>&5 2715 ac_status=$? 2716 echo "$as_me:2716: \$? = $ac_status" >&5 2717 (exit $ac_status); }; }; then 2718 ac_cv_type_short=yes 2719 else 2720 echo "$as_me: failed program was:" >&5 2721 cat conftest.$ac_ext >&5 2722 ac_cv_type_short=no 2723 fi 2724 rm -f conftest.$ac_objext conftest.$ac_ext 2725 fi 2726 echo "$as_me:2726: result: $ac_cv_type_short" >&5 2727 echo "${ECHO_T}$ac_cv_type_short" >&6 2728 2729 echo "$as_me:2729: checking size of short" >&5 2730 echo $ECHO_N "checking size of short... $ECHO_C" >&6 2731 if test "${ac_cv_sizeof_short+set}" = set; then 2732 echo $ECHO_N "(cached) $ECHO_C" >&6 2733 else 2734 if test "$ac_cv_type_short" = yes; then 2735 if test "$cross_compiling" = yes; then 2736 # Depending upon the size, compute the lo and hi bounds. 2737 cat >conftest.$ac_ext <<_ACEOF 2738 #line 2738 "configure" 2739 #include "confdefs.h" 2740 $ac_includes_default 2741 int 2742 main () 2743 { 2744 int _array_ [1 - 2 * !((sizeof (short)) >= 0)] 2745 ; 2746 return 0; 2747 } 2748 _ACEOF 2749 rm -f conftest.$ac_objext 2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5 2751 (eval $ac_compile) 2>&5 2752 ac_status=$? 2753 echo "$as_me:2753: \$? = $ac_status" >&5 2754 (exit $ac_status); } && 2755 { ac_try='test -s conftest.$ac_objext' 2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5 2757 (eval $ac_try) 2>&5 2758 ac_status=$? 2759 echo "$as_me:2759: \$? = $ac_status" >&5 2760 (exit $ac_status); }; }; then 2761 ac_lo=0 ac_mid=0 2762 while :; do 2763 cat >conftest.$ac_ext <<_ACEOF 2764 #line 2764 "configure" 2765 #include "confdefs.h" 2766 $ac_includes_default 2767 int 2768 main () 2769 { 2770 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] 2771 ; 2772 return 0; 2773 } 2774 _ACEOF 2775 rm -f conftest.$ac_objext 2776 if { (eval echo "$as_me:2776: \"$ac_compile\"") >&5 2777 (eval $ac_compile) 2>&5 2778 ac_status=$? 2779 echo "$as_me:2779: \$? = $ac_status" >&5 2780 (exit $ac_status); } && 2781 { ac_try='test -s conftest.$ac_objext' 2782 { (eval echo "$as_me:2782: \"$ac_try\"") >&5 2783 (eval $ac_try) 2>&5 2784 ac_status=$? 2785 echo "$as_me:2785: \$? = $ac_status" >&5 2786 (exit $ac_status); }; }; then 2787 ac_hi=$ac_mid; break 2788 else 2789 echo "$as_me: failed program was:" >&5 2790 cat conftest.$ac_ext >&5 2791 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 2792 fi 2793 rm -f conftest.$ac_objext conftest.$ac_ext 2794 done 2795 else 2796 echo "$as_me: failed program was:" >&5 2797 cat conftest.$ac_ext >&5 2798 ac_hi=-1 ac_mid=-1 2799 while :; do 2800 cat >conftest.$ac_ext <<_ACEOF 2801 #line 2801 "configure" 2802 #include "confdefs.h" 2803 $ac_includes_default 2804 int 2805 main () 2806 { 2807 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)] 2808 ; 2809 return 0; 2810 } 2811 _ACEOF 2812 rm -f conftest.$ac_objext 2813 if { (eval echo "$as_me:2813: \"$ac_compile\"") >&5 2814 (eval $ac_compile) 2>&5 2815 ac_status=$? 2816 echo "$as_me:2816: \$? = $ac_status" >&5 2817 (exit $ac_status); } && 2818 { ac_try='test -s conftest.$ac_objext' 2819 { (eval echo "$as_me:2819: \"$ac_try\"") >&5 2820 (eval $ac_try) 2>&5 2821 ac_status=$? 2822 echo "$as_me:2822: \$? = $ac_status" >&5 2823 (exit $ac_status); }; }; then 2824 ac_lo=$ac_mid; break 2825 else 2826 echo "$as_me: failed program was:" >&5 2827 cat conftest.$ac_ext >&5 2828 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 2829 fi 2830 rm -f conftest.$ac_objext conftest.$ac_ext 2831 done 2832 fi 2833 rm -f conftest.$ac_objext conftest.$ac_ext 2834 # Binary search between lo and hi bounds. 2835 while test "x$ac_lo" != "x$ac_hi"; do 2836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 2837 cat >conftest.$ac_ext <<_ACEOF 2838 #line 2838 "configure" 2839 #include "confdefs.h" 2840 $ac_includes_default 2841 int 2842 main () 2843 { 2844 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)] 2845 ; 2846 return 0; 2847 } 2848 _ACEOF 2849 rm -f conftest.$ac_objext 2850 if { (eval echo "$as_me:2850: \"$ac_compile\"") >&5 2851 (eval $ac_compile) 2>&5 2852 ac_status=$? 2853 echo "$as_me:2853: \$? = $ac_status" >&5 2854 (exit $ac_status); } && 2855 { ac_try='test -s conftest.$ac_objext' 2856 { (eval echo "$as_me:2856: \"$ac_try\"") >&5 2857 (eval $ac_try) 2>&5 2858 ac_status=$? 2859 echo "$as_me:2859: \$? = $ac_status" >&5 2860 (exit $ac_status); }; }; then 2861 ac_hi=$ac_mid 2862 else 2863 echo "$as_me: failed program was:" >&5 2864 cat conftest.$ac_ext >&5 2865 ac_lo=`expr $ac_mid + 1` 2866 fi 2867 rm -f conftest.$ac_objext conftest.$ac_ext 2868 done 2869 ac_cv_sizeof_short=$ac_lo 2870 else 2871 if test "$cross_compiling" = yes; then 2872 { { echo "$as_me:2872: error: cannot run test program while cross compiling" >&5 2873 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 2874 { (exit 1); exit 1; }; } 2875 else 2876 cat >conftest.$ac_ext <<_ACEOF 2877 #line 2877 "configure" 2878 #include "confdefs.h" 2879 $ac_includes_default 2880 int 2881 main () 2882 { 2883 FILE *f = fopen ("conftest.val", "w"); 2884 if (!f) 2885 exit (1); 2886 fprintf (f, "%d", (sizeof (short))); 2887 fclose (f); 2888 ; 2889 return 0; 2890 } 2891 _ACEOF 2892 rm -f conftest$ac_exeext 2893 if { (eval echo "$as_me:2893: \"$ac_link\"") >&5 2894 (eval $ac_link) 2>&5 2895 ac_status=$? 2896 echo "$as_me:2896: \$? = $ac_status" >&5 2897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2898 { (eval echo "$as_me:2898: \"$ac_try\"") >&5 2899 (eval $ac_try) 2>&5 2900 ac_status=$? 2901 echo "$as_me:2901: \$? = $ac_status" >&5 2902 (exit $ac_status); }; }; then 2903 ac_cv_sizeof_short=`cat conftest.val` 2904 else 2905 echo "$as_me: program exited with status $ac_status" >&5 2906 echo "$as_me: failed program was:" >&5 2907 cat conftest.$ac_ext >&5 2908 fi 2909 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2910 fi 2911 fi 2912 rm -f conftest.val 2913 else 1111 2914 ac_cv_sizeof_short=0 1112 2915 fi 1113 rm -fr conftest* 1114 fi 1115 1116 fi 1117 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 1118 cat >> confdefs.h <<EOF 2916 fi 2917 echo "$as_me:2917: result: $ac_cv_sizeof_short" >&5 2918 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 2919 cat >>confdefs.h <<EOF 1119 2920 #define SIZEOF_SHORT $ac_cv_sizeof_short 1120 2921 EOF 1121 2922 1122 1123 echo $ac_n "checking size of int""... $ac_c" 1>&6 1124 echo "configure:1125: checking size of int" >&5 1125 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 1126 echo $ac_n "(cached) $ac_c" 1>&6 1127 else 2923 echo "$as_me:2923: checking for int" >&5 2924 echo $ECHO_N "checking for int... $ECHO_C" >&6 2925 if test "${ac_cv_type_int+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927 else 2928 cat >conftest.$ac_ext <<_ACEOF 2929 #line 2929 "configure" 2930 #include "confdefs.h" 2931 $ac_includes_default 2932 int 2933 main () 2934 { 2935 if ((int *) 0) 2936 return 0; 2937 if (sizeof (int)) 2938 return 0; 2939 ; 2940 return 0; 2941 } 2942 _ACEOF 2943 rm -f conftest.$ac_objext 2944 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5 2945 (eval $ac_compile) 2>&5 2946 ac_status=$? 2947 echo "$as_me:2947: \$? = $ac_status" >&5 2948 (exit $ac_status); } && 2949 { ac_try='test -s conftest.$ac_objext' 2950 { (eval echo "$as_me:2950: \"$ac_try\"") >&5 2951 (eval $ac_try) 2>&5 2952 ac_status=$? 2953 echo "$as_me:2953: \$? = $ac_status" >&5 2954 (exit $ac_status); }; }; then 2955 ac_cv_type_int=yes 2956 else 2957 echo "$as_me: failed program was:" >&5 2958 cat conftest.$ac_ext >&5 2959 ac_cv_type_int=no 2960 fi 2961 rm -f conftest.$ac_objext conftest.$ac_ext 2962 fi 2963 echo "$as_me:2963: result: $ac_cv_type_int" >&5 2964 echo "${ECHO_T}$ac_cv_type_int" >&6 2965 2966 echo "$as_me:2966: checking size of int" >&5 2967 echo $ECHO_N "checking size of int... $ECHO_C" >&6 2968 if test "${ac_cv_sizeof_int+set}" = set; then 2969 echo $ECHO_N "(cached) $ECHO_C" >&6 2970 else 2971 if test "$ac_cv_type_int" = yes; then 1128 2972 if test "$cross_compiling" = yes; then 1129 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1130 else 1131 cat > conftest.$ac_ext <<EOF 1132 #line 1133 "configure" 1133 #include "confdefs.h" 1134 #include <stdio.h> 1135 main() 1136 { 1137 FILE *f=fopen("conftestval", "w"); 1138 if (!f) exit(1); 1139 fprintf(f, "%d\n", sizeof(int)); 1140 exit(0); 1141 } 1142 EOF 1143 if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1144 then 1145 ac_cv_sizeof_int=`cat conftestval` 1146 else 1147 echo "configure: failed program was:" >&5 1148 cat conftest.$ac_ext >&5 1149 rm -fr conftest* 2973 # Depending upon the size, compute the lo and hi bounds. 2974 cat >conftest.$ac_ext <<_ACEOF 2975 #line 2975 "configure" 2976 #include "confdefs.h" 2977 $ac_includes_default 2978 int 2979 main () 2980 { 2981 int _array_ [1 - 2 * !((sizeof (int)) >= 0)] 2982 ; 2983 return 0; 2984 } 2985 _ACEOF 2986 rm -f conftest.$ac_objext 2987 if { (eval echo "$as_me:2987: \"$ac_compile\"") >&5 2988 (eval $ac_compile) 2>&5 2989 ac_status=$? 2990 echo "$as_me:2990: \$? = $ac_status" >&5 2991 (exit $ac_status); } && 2992 { ac_try='test -s conftest.$ac_objext' 2993 { (eval echo "$as_me:2993: \"$ac_try\"") >&5 2994 (eval $ac_try) 2>&5 2995 ac_status=$? 2996 echo "$as_me:2996: \$? = $ac_status" >&5 2997 (exit $ac_status); }; }; then 2998 ac_lo=0 ac_mid=0 2999 while :; do 3000 cat >conftest.$ac_ext <<_ACEOF 3001 #line 3001 "configure" 3002 #include "confdefs.h" 3003 $ac_includes_default 3004 int 3005 main () 3006 { 3007 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 3008 ; 3009 return 0; 3010 } 3011 _ACEOF 3012 rm -f conftest.$ac_objext 3013 if { (eval echo "$as_me:3013: \"$ac_compile\"") >&5 3014 (eval $ac_compile) 2>&5 3015 ac_status=$? 3016 echo "$as_me:3016: \$? = $ac_status" >&5 3017 (exit $ac_status); } && 3018 { ac_try='test -s conftest.$ac_objext' 3019 { (eval echo "$as_me:3019: \"$ac_try\"") >&5 3020 (eval $ac_try) 2>&5 3021 ac_status=$? 3022 echo "$as_me:3022: \$? = $ac_status" >&5 3023 (exit $ac_status); }; }; then 3024 ac_hi=$ac_mid; break 3025 else 3026 echo "$as_me: failed program was:" >&5 3027 cat conftest.$ac_ext >&5 3028 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 3029 fi 3030 rm -f conftest.$ac_objext conftest.$ac_ext 3031 done 3032 else 3033 echo "$as_me: failed program was:" >&5 3034 cat conftest.$ac_ext >&5 3035 ac_hi=-1 ac_mid=-1 3036 while :; do 3037 cat >conftest.$ac_ext <<_ACEOF 3038 #line 3038 "configure" 3039 #include "confdefs.h" 3040 $ac_includes_default 3041 int 3042 main () 3043 { 3044 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] 3045 ; 3046 return 0; 3047 } 3048 _ACEOF 3049 rm -f conftest.$ac_objext 3050 if { (eval echo "$as_me:3050: \"$ac_compile\"") >&5 3051 (eval $ac_compile) 2>&5 3052 ac_status=$? 3053 echo "$as_me:3053: \$? = $ac_status" >&5 3054 (exit $ac_status); } && 3055 { ac_try='test -s conftest.$ac_objext' 3056 { (eval echo "$as_me:3056: \"$ac_try\"") >&5 3057 (eval $ac_try) 2>&5 3058 ac_status=$? 3059 echo "$as_me:3059: \$? = $ac_status" >&5 3060 (exit $ac_status); }; }; then 3061 ac_lo=$ac_mid; break 3062 else 3063 echo "$as_me: failed program was:" >&5 3064 cat conftest.$ac_ext >&5 3065 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 3066 fi 3067 rm -f conftest.$ac_objext conftest.$ac_ext 3068 done 3069 fi 3070 rm -f conftest.$ac_objext conftest.$ac_ext 3071 # Binary search between lo and hi bounds. 3072 while test "x$ac_lo" != "x$ac_hi"; do 3073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3074 cat >conftest.$ac_ext <<_ACEOF 3075 #line 3075 "configure" 3076 #include "confdefs.h" 3077 $ac_includes_default 3078 int 3079 main () 3080 { 3081 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 3082 ; 3083 return 0; 3084 } 3085 _ACEOF 3086 rm -f conftest.$ac_objext 3087 if { (eval echo "$as_me:3087: \"$ac_compile\"") >&5 3088 (eval $ac_compile) 2>&5 3089 ac_status=$? 3090 echo "$as_me:3090: \$? = $ac_status" >&5 3091 (exit $ac_status); } && 3092 { ac_try='test -s conftest.$ac_objext' 3093 { (eval echo "$as_me:3093: \"$ac_try\"") >&5 3094 (eval $ac_try) 2>&5 3095 ac_status=$? 3096 echo "$as_me:3096: \$? = $ac_status" >&5 3097 (exit $ac_status); }; }; then 3098 ac_hi=$ac_mid 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 cat conftest.$ac_ext >&5 3102 ac_lo=`expr $ac_mid + 1` 3103 fi 3104 rm -f conftest.$ac_objext conftest.$ac_ext 3105 done 3106 ac_cv_sizeof_int=$ac_lo 3107 else 3108 if test "$cross_compiling" = yes; then 3109 { { echo "$as_me:3109: error: cannot run test program while cross compiling" >&5 3110 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 3111 { (exit 1); exit 1; }; } 3112 else 3113 cat >conftest.$ac_ext <<_ACEOF 3114 #line 3114 "configure" 3115 #include "confdefs.h" 3116 $ac_includes_default 3117 int 3118 main () 3119 { 3120 FILE *f = fopen ("conftest.val", "w"); 3121 if (!f) 3122 exit (1); 3123 fprintf (f, "%d", (sizeof (int))); 3124 fclose (f); 3125 ; 3126 return 0; 3127 } 3128 _ACEOF 3129 rm -f conftest$ac_exeext 3130 if { (eval echo "$as_me:3130: \"$ac_link\"") >&5 3131 (eval $ac_link) 2>&5 3132 ac_status=$? 3133 echo "$as_me:3133: \$? = $ac_status" >&5 3134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3135 { (eval echo "$as_me:3135: \"$ac_try\"") >&5 3136 (eval $ac_try) 2>&5 3137 ac_status=$? 3138 echo "$as_me:3138: \$? = $ac_status" >&5 3139 (exit $ac_status); }; }; then 3140 ac_cv_sizeof_int=`cat conftest.val` 3141 else 3142 echo "$as_me: program exited with status $ac_status" >&5 3143 echo "$as_me: failed program was:" >&5 3144 cat conftest.$ac_ext >&5 3145 fi 3146 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3147 fi 3148 fi 3149 rm -f conftest.val 3150 else 1150 3151 ac_cv_sizeof_int=0 1151 3152 fi 1152 rm -fr conftest* 1153 fi 1154 1155 fi 1156 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 1157 cat >> confdefs.h <<EOF 3153 fi 3154 echo "$as_me:3154: result: $ac_cv_sizeof_int" >&5 3155 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 3156 cat >>confdefs.h <<EOF 1158 3157 #define SIZEOF_INT $ac_cv_sizeof_int 1159 3158 EOF 1160 3159 1161 1162 echo $ac_n "checking size of long""... $ac_c" 1>&6 1163 echo "configure:1164: checking size of long" >&5 1164 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1165 echo $ac_n "(cached) $ac_c" 1>&6 1166 else 3160 echo "$as_me:3160: checking for long" >&5 3161 echo $ECHO_N "checking for long... $ECHO_C" >&6 3162 if test "${ac_cv_type_long+set}" = set; then 3163 echo $ECHO_N "(cached) $ECHO_C" >&6 3164 else 3165 cat >conftest.$ac_ext <<_ACEOF 3166 #line 3166 "configure" 3167 #include "confdefs.h" 3168 $ac_includes_default 3169 int 3170 main () 3171 { 3172 if ((long *) 0) 3173 return 0; 3174 if (sizeof (long)) 3175 return 0; 3176 ; 3177 return 0; 3178 } 3179 _ACEOF 3180 rm -f conftest.$ac_objext 3181 if { (eval echo "$as_me:3181: \"$ac_compile\"") >&5 3182 (eval $ac_compile) 2>&5 3183 ac_status=$? 3184 echo "$as_me:3184: \$? = $ac_status" >&5 3185 (exit $ac_status); } && 3186 { ac_try='test -s conftest.$ac_objext' 3187 { (eval echo "$as_me:3187: \"$ac_try\"") >&5 3188 (eval $ac_try) 2>&5 3189 ac_status=$? 3190 echo "$as_me:3190: \$? = $ac_status" >&5 3191 (exit $ac_status); }; }; then 3192 ac_cv_type_long=yes 3193 else 3194 echo "$as_me: failed program was:" >&5 3195 cat conftest.$ac_ext >&5 3196 ac_cv_type_long=no 3197 fi 3198 rm -f conftest.$ac_objext conftest.$ac_ext 3199 fi 3200 echo "$as_me:3200: result: $ac_cv_type_long" >&5 3201 echo "${ECHO_T}$ac_cv_type_long" >&6 3202 3203 echo "$as_me:3203: checking size of long" >&5 3204 echo $ECHO_N "checking size of long... $ECHO_C" >&6 3205 if test "${ac_cv_sizeof_long+set}" = set; then 3206 echo $ECHO_N "(cached) $ECHO_C" >&6 3207 else 3208 if test "$ac_cv_type_long" = yes; then 1167 3209 if test "$cross_compiling" = yes; then 1168 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1169 else 1170 cat > conftest.$ac_ext <<EOF 1171 #line 1172 "configure" 1172 #include "confdefs.h" 1173 #include <stdio.h> 1174 main() 1175 { 1176 FILE *f=fopen("conftestval", "w"); 1177 if (!f) exit(1); 1178 fprintf(f, "%d\n", sizeof(long)); 1179 exit(0); 1180 } 1181 EOF 1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1183 then 1184 ac_cv_sizeof_long=`cat conftestval` 1185 else 1186 echo "configure: failed program was:" >&5 1187 cat conftest.$ac_ext >&5 1188 rm -fr conftest* 3210 # Depending upon the size, compute the lo and hi bounds. 3211 cat >conftest.$ac_ext <<_ACEOF 3212 #line 3212 "configure" 3213 #include "confdefs.h" 3214 $ac_includes_default 3215 int 3216 main () 3217 { 3218 int _array_ [1 - 2 * !((sizeof (long)) >= 0)] 3219 ; 3220 return 0; 3221 } 3222 _ACEOF 3223 rm -f conftest.$ac_objext 3224 if { (eval echo "$as_me:3224: \"$ac_compile\"") >&5 3225 (eval $ac_compile) 2>&5 3226 ac_status=$? 3227 echo "$as_me:3227: \$? = $ac_status" >&5 3228 (exit $ac_status); } && 3229 { ac_try='test -s conftest.$ac_objext' 3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5 3231 (eval $ac_try) 2>&5 3232 ac_status=$? 3233 echo "$as_me:3233: \$? = $ac_status" >&5 3234 (exit $ac_status); }; }; then 3235 ac_lo=0 ac_mid=0 3236 while :; do 3237 cat >conftest.$ac_ext <<_ACEOF 3238 #line 3238 "configure" 3239 #include "confdefs.h" 3240 $ac_includes_default 3241 int 3242 main () 3243 { 3244 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 3245 ; 3246 return 0; 3247 } 3248 _ACEOF 3249 rm -f conftest.$ac_objext 3250 if { (eval echo "$as_me:3250: \"$ac_compile\"") >&5 3251 (eval $ac_compile) 2>&5 3252 ac_status=$? 3253 echo "$as_me:3253: \$? = $ac_status" >&5 3254 (exit $ac_status); } && 3255 { ac_try='test -s conftest.$ac_objext' 3256 { (eval echo "$as_me:3256: \"$ac_try\"") >&5 3257 (eval $ac_try) 2>&5 3258 ac_status=$? 3259 echo "$as_me:3259: \$? = $ac_status" >&5 3260 (exit $ac_status); }; }; then 3261 ac_hi=$ac_mid; break 3262 else 3263 echo "$as_me: failed program was:" >&5 3264 cat conftest.$ac_ext >&5 3265 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 3266 fi 3267 rm -f conftest.$ac_objext conftest.$ac_ext 3268 done 3269 else 3270 echo "$as_me: failed program was:" >&5 3271 cat conftest.$ac_ext >&5 3272 ac_hi=-1 ac_mid=-1 3273 while :; do 3274 cat >conftest.$ac_ext <<_ACEOF 3275 #line 3275 "configure" 3276 #include "confdefs.h" 3277 $ac_includes_default 3278 int 3279 main () 3280 { 3281 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)] 3282 ; 3283 return 0; 3284 } 3285 _ACEOF 3286 rm -f conftest.$ac_objext 3287 if { (eval echo "$as_me:3287: \"$ac_compile\"") >&5 3288 (eval $ac_compile) 2>&5 3289 ac_status=$? 3290 echo "$as_me:3290: \$? = $ac_status" >&5 3291 (exit $ac_status); } && 3292 { ac_try='test -s conftest.$ac_objext' 3293 { (eval echo "$as_me:3293: \"$ac_try\"") >&5 3294 (eval $ac_try) 2>&5 3295 ac_status=$? 3296 echo "$as_me:3296: \$? = $ac_status" >&5 3297 (exit $ac_status); }; }; then 3298 ac_lo=$ac_mid; break 3299 else 3300 echo "$as_me: failed program was:" >&5 3301 cat conftest.$ac_ext >&5 3302 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 3303 fi 3304 rm -f conftest.$ac_objext conftest.$ac_ext 3305 done 3306 fi 3307 rm -f conftest.$ac_objext conftest.$ac_ext 3308 # Binary search between lo and hi bounds. 3309 while test "x$ac_lo" != "x$ac_hi"; do 3310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3311 cat >conftest.$ac_ext <<_ACEOF 3312 #line 3312 "configure" 3313 #include "confdefs.h" 3314 $ac_includes_default 3315 int 3316 main () 3317 { 3318 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 3319 ; 3320 return 0; 3321 } 3322 _ACEOF 3323 rm -f conftest.$ac_objext 3324 if { (eval echo "$as_me:3324: \"$ac_compile\"") >&5 3325 (eval $ac_compile) 2>&5 3326 ac_status=$? 3327 echo "$as_me:3327: \$? = $ac_status" >&5 3328 (exit $ac_status); } && 3329 { ac_try='test -s conftest.$ac_objext' 3330 { (eval echo "$as_me:3330: \"$ac_try\"") >&5 3331 (eval $ac_try) 2>&5 3332 ac_status=$? 3333 echo "$as_me:3333: \$? = $ac_status" >&5 3334 (exit $ac_status); }; }; then 3335 ac_hi=$ac_mid 3336 else 3337 echo "$as_me: failed program was:" >&5 3338 cat conftest.$ac_ext >&5 3339 ac_lo=`expr $ac_mid + 1` 3340 fi 3341 rm -f conftest.$ac_objext conftest.$ac_ext 3342 done 3343 ac_cv_sizeof_long=$ac_lo 3344 else 3345 if test "$cross_compiling" = yes; then 3346 { { echo "$as_me:3346: error: cannot run test program while cross compiling" >&5 3347 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 3348 { (exit 1); exit 1; }; } 3349 else 3350 cat >conftest.$ac_ext <<_ACEOF 3351 #line 3351 "configure" 3352 #include "confdefs.h" 3353 $ac_includes_default 3354 int 3355 main () 3356 { 3357 FILE *f = fopen ("conftest.val", "w"); 3358 if (!f) 3359 exit (1); 3360 fprintf (f, "%d", (sizeof (long))); 3361 fclose (f); 3362 ; 3363 return 0; 3364 } 3365 _ACEOF 3366 rm -f conftest$ac_exeext 3367 if { (eval echo "$as_me:3367: \"$ac_link\"") >&5 3368 (eval $ac_link) 2>&5 3369 ac_status=$? 3370 echo "$as_me:3370: \$? = $ac_status" >&5 3371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3372 { (eval echo "$as_me:3372: \"$ac_try\"") >&5 3373 (eval $ac_try) 2>&5 3374 ac_status=$? 3375 echo "$as_me:3375: \$? = $ac_status" >&5 3376 (exit $ac_status); }; }; then 3377 ac_cv_sizeof_long=`cat conftest.val` 3378 else 3379 echo "$as_me: program exited with status $ac_status" >&5 3380 echo "$as_me: failed program was:" >&5 3381 cat conftest.$ac_ext >&5 3382 fi 3383 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3384 fi 3385 fi 3386 rm -f conftest.val 3387 else 1189 3388 ac_cv_sizeof_long=0 1190 3389 fi 1191 rm -fr conftest* 1192 fi 1193 1194 fi 1195 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 1196 cat >> confdefs.h <<EOF 3390 fi 3391 echo "$as_me:3391: result: $ac_cv_sizeof_long" >&5 3392 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 3393 cat >>confdefs.h <<EOF 1197 3394 #define SIZEOF_LONG $ac_cv_sizeof_long 1198 3395 EOF 1199 3396 1200 1201 echo $ac_n "checking size of long long""... $ac_c" 1>&6 1202 echo "configure:1203: checking size of long long" >&5 1203 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 1204 echo $ac_n "(cached) $ac_c" 1>&6 1205 else 3397 echo "$as_me:3397: checking for long long" >&5 3398 echo $ECHO_N "checking for long long... $ECHO_C" >&6 3399 if test "${ac_cv_type_long_long+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401 else 3402 cat >conftest.$ac_ext <<_ACEOF 3403 #line 3403 "configure" 3404 #include "confdefs.h" 3405 $ac_includes_default 3406 int 3407 main () 3408 { 3409 if ((long long *) 0) 3410 return 0; 3411 if (sizeof (long long)) 3412 return 0; 3413 ; 3414 return 0; 3415 } 3416 _ACEOF 3417 rm -f conftest.$ac_objext 3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5 3419 (eval $ac_compile) 2>&5 3420 ac_status=$? 3421 echo "$as_me:3421: \$? = $ac_status" >&5 3422 (exit $ac_status); } && 3423 { ac_try='test -s conftest.$ac_objext' 3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5 3425 (eval $ac_try) 2>&5 3426 ac_status=$? 3427 echo "$as_me:3427: \$? = $ac_status" >&5 3428 (exit $ac_status); }; }; then 3429 ac_cv_type_long_long=yes 3430 else 3431 echo "$as_me: failed program was:" >&5 3432 cat conftest.$ac_ext >&5 3433 ac_cv_type_long_long=no 3434 fi 3435 rm -f conftest.$ac_objext conftest.$ac_ext 3436 fi 3437 echo "$as_me:3437: result: $ac_cv_type_long_long" >&5 3438 echo "${ECHO_T}$ac_cv_type_long_long" >&6 3439 3440 echo "$as_me:3440: checking size of long long" >&5 3441 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 3442 if test "${ac_cv_sizeof_long_long+set}" = set; then 3443 echo $ECHO_N "(cached) $ECHO_C" >&6 3444 else 3445 if test "$ac_cv_type_long_long" = yes; then 1206 3446 if test "$cross_compiling" = yes; then 1207 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1208 else 1209 cat > conftest.$ac_ext <<EOF 1210 #line 1211 "configure" 1211 #include "confdefs.h" 1212 #include <stdio.h> 1213 main() 1214 { 1215 FILE *f=fopen("conftestval", "w"); 1216 if (!f) exit(1); 1217 fprintf(f, "%d\n", sizeof(long long)); 1218 exit(0); 1219 } 1220 EOF 1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1222 then 1223 ac_cv_sizeof_long_long=`cat conftestval` 1224 else 1225 echo "configure: failed program was:" >&5 1226 cat conftest.$ac_ext >&5 1227 rm -fr conftest* 3447 # Depending upon the size, compute the lo and hi bounds. 3448 cat >conftest.$ac_ext <<_ACEOF 3449 #line 3449 "configure" 3450 #include "confdefs.h" 3451 $ac_includes_default 3452 int 3453 main () 3454 { 3455 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)] 3456 ; 3457 return 0; 3458 } 3459 _ACEOF 3460 rm -f conftest.$ac_objext 3461 if { (eval echo "$as_me:3461: \"$ac_compile\"") >&5 3462 (eval $ac_compile) 2>&5 3463 ac_status=$? 3464 echo "$as_me:3464: \$? = $ac_status" >&5 3465 (exit $ac_status); } && 3466 { ac_try='test -s conftest.$ac_objext' 3467 { (eval echo "$as_me:3467: \"$ac_try\"") >&5 3468 (eval $ac_try) 2>&5 3469 ac_status=$? 3470 echo "$as_me:3470: \$? = $ac_status" >&5 3471 (exit $ac_status); }; }; then 3472 ac_lo=0 ac_mid=0 3473 while :; do 3474 cat >conftest.$ac_ext <<_ACEOF 3475 #line 3475 "configure" 3476 #include "confdefs.h" 3477 $ac_includes_default 3478 int 3479 main () 3480 { 3481 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] 3482 ; 3483 return 0; 3484 } 3485 _ACEOF 3486 rm -f conftest.$ac_objext 3487 if { (eval echo "$as_me:3487: \"$ac_compile\"") >&5 3488 (eval $ac_compile) 2>&5 3489 ac_status=$? 3490 echo "$as_me:3490: \$? = $ac_status" >&5 3491 (exit $ac_status); } && 3492 { ac_try='test -s conftest.$ac_objext' 3493 { (eval echo "$as_me:3493: \"$ac_try\"") >&5 3494 (eval $ac_try) 2>&5 3495 ac_status=$? 3496 echo "$as_me:3496: \$? = $ac_status" >&5 3497 (exit $ac_status); }; }; then 3498 ac_hi=$ac_mid; break 3499 else 3500 echo "$as_me: failed program was:" >&5 3501 cat conftest.$ac_ext >&5 3502 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 3503 fi 3504 rm -f conftest.$ac_objext conftest.$ac_ext 3505 done 3506 else 3507 echo "$as_me: failed program was:" >&5 3508 cat conftest.$ac_ext >&5 3509 ac_hi=-1 ac_mid=-1 3510 while :; do 3511 cat >conftest.$ac_ext <<_ACEOF 3512 #line 3512 "configure" 3513 #include "confdefs.h" 3514 $ac_includes_default 3515 int 3516 main () 3517 { 3518 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)] 3519 ; 3520 return 0; 3521 } 3522 _ACEOF 3523 rm -f conftest.$ac_objext 3524 if { (eval echo "$as_me:3524: \"$ac_compile\"") >&5 3525 (eval $ac_compile) 2>&5 3526 ac_status=$? 3527 echo "$as_me:3527: \$? = $ac_status" >&5 3528 (exit $ac_status); } && 3529 { ac_try='test -s conftest.$ac_objext' 3530 { (eval echo "$as_me:3530: \"$ac_try\"") >&5 3531 (eval $ac_try) 2>&5 3532 ac_status=$? 3533 echo "$as_me:3533: \$? = $ac_status" >&5 3534 (exit $ac_status); }; }; then 3535 ac_lo=$ac_mid; break 3536 else 3537 echo "$as_me: failed program was:" >&5 3538 cat conftest.$ac_ext >&5 3539 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 3540 fi 3541 rm -f conftest.$ac_objext conftest.$ac_ext 3542 done 3543 fi 3544 rm -f conftest.$ac_objext conftest.$ac_ext 3545 # Binary search between lo and hi bounds. 3546 while test "x$ac_lo" != "x$ac_hi"; do 3547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3548 cat >conftest.$ac_ext <<_ACEOF 3549 #line 3549 "configure" 3550 #include "confdefs.h" 3551 $ac_includes_default 3552 int 3553 main () 3554 { 3555 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)] 3556 ; 3557 return 0; 3558 } 3559 _ACEOF 3560 rm -f conftest.$ac_objext 3561 if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5 3562 (eval $ac_compile) 2>&5 3563 ac_status=$? 3564 echo "$as_me:3564: \$? = $ac_status" >&5 3565 (exit $ac_status); } && 3566 { ac_try='test -s conftest.$ac_objext' 3567 { (eval echo "$as_me:3567: \"$ac_try\"") >&5 3568 (eval $ac_try) 2>&5 3569 ac_status=$? 3570 echo "$as_me:3570: \$? = $ac_status" >&5 3571 (exit $ac_status); }; }; then 3572 ac_hi=$ac_mid 3573 else 3574 echo "$as_me: failed program was:" >&5 3575 cat conftest.$ac_ext >&5 3576 ac_lo=`expr $ac_mid + 1` 3577 fi 3578 rm -f conftest.$ac_objext conftest.$ac_ext 3579 done 3580 ac_cv_sizeof_long_long=$ac_lo 3581 else 3582 if test "$cross_compiling" = yes; then 3583 { { echo "$as_me:3583: error: cannot run test program while cross compiling" >&5 3584 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 3585 { (exit 1); exit 1; }; } 3586 else 3587 cat >conftest.$ac_ext <<_ACEOF 3588 #line 3588 "configure" 3589 #include "confdefs.h" 3590 $ac_includes_default 3591 int 3592 main () 3593 { 3594 FILE *f = fopen ("conftest.val", "w"); 3595 if (!f) 3596 exit (1); 3597 fprintf (f, "%d", (sizeof (long long))); 3598 fclose (f); 3599 ; 3600 return 0; 3601 } 3602 _ACEOF 3603 rm -f conftest$ac_exeext 3604 if { (eval echo "$as_me:3604: \"$ac_link\"") >&5 3605 (eval $ac_link) 2>&5 3606 ac_status=$? 3607 echo "$as_me:3607: \$? = $ac_status" >&5 3608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3609 { (eval echo "$as_me:3609: \"$ac_try\"") >&5 3610 (eval $ac_try) 2>&5 3611 ac_status=$? 3612 echo "$as_me:3612: \$? = $ac_status" >&5 3613 (exit $ac_status); }; }; then 3614 ac_cv_sizeof_long_long=`cat conftest.val` 3615 else 3616 echo "$as_me: program exited with status $ac_status" >&5 3617 echo "$as_me: failed program was:" >&5 3618 cat conftest.$ac_ext >&5 3619 fi 3620 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3621 fi 3622 fi 3623 rm -f conftest.val 3624 else 1228 3625 ac_cv_sizeof_long_long=0 1229 3626 fi 1230 rm -fr conftest* 1231 fi 1232 1233 fi 1234 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 1235 cat >> confdefs.h <<EOF 3627 fi 3628 echo "$as_me:3628: result: $ac_cv_sizeof_long_long" >&5 3629 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 3630 cat >>confdefs.h <<EOF 1236 3631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 1237 3632 EOF 1238 3633 1239 1240 echo $ac_n "checking size of float""... $ac_c" 1>&6 1241 echo "configure:1242: checking size of float" >&5 1242 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then 1243 echo $ac_n "(cached) $ac_c" 1>&6 1244 else 3634 echo "$as_me:3634: checking for float" >&5 3635 echo $ECHO_N "checking for float... $ECHO_C" >&6 3636 if test "${ac_cv_type_float+set}" = set; then 3637 echo $ECHO_N "(cached) $ECHO_C" >&6 3638 else 3639 cat >conftest.$ac_ext <<_ACEOF 3640 #line 3640 "configure" 3641 #include "confdefs.h" 3642 $ac_includes_default 3643 int 3644 main () 3645 { 3646 if ((float *) 0) 3647 return 0; 3648 if (sizeof (float)) 3649 return 0; 3650 ; 3651 return 0; 3652 } 3653 _ACEOF 3654 rm -f conftest.$ac_objext 3655 if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5 3656 (eval $ac_compile) 2>&5 3657 ac_status=$? 3658 echo "$as_me:3658: \$? = $ac_status" >&5 3659 (exit $ac_status); } && 3660 { ac_try='test -s conftest.$ac_objext' 3661 { (eval echo "$as_me:3661: \"$ac_try\"") >&5 3662 (eval $ac_try) 2>&5 3663 ac_status=$? 3664 echo "$as_me:3664: \$? = $ac_status" >&5 3665 (exit $ac_status); }; }; then 3666 ac_cv_type_float=yes 3667 else 3668 echo "$as_me: failed program was:" >&5 3669 cat conftest.$ac_ext >&5 3670 ac_cv_type_float=no 3671 fi 3672 rm -f conftest.$ac_objext conftest.$ac_ext 3673 fi 3674 echo "$as_me:3674: result: $ac_cv_type_float" >&5 3675 echo "${ECHO_T}$ac_cv_type_float" >&6 3676 3677 echo "$as_me:3677: checking size of float" >&5 3678 echo $ECHO_N "checking size of float... $ECHO_C" >&6 3679 if test "${ac_cv_sizeof_float+set}" = set; then 3680 echo $ECHO_N "(cached) $ECHO_C" >&6 3681 else 3682 if test "$ac_cv_type_float" = yes; then 1245 3683 if test "$cross_compiling" = yes; then 1246 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1247 else 1248 cat > conftest.$ac_ext <<EOF 1249 #line 1250 "configure" 1250 #include "confdefs.h" 1251 #include <stdio.h> 1252 main() 1253 { 1254 FILE *f=fopen("conftestval", "w"); 1255 if (!f) exit(1); 1256 fprintf(f, "%d\n", sizeof(float)); 1257 exit(0); 1258 } 1259 EOF 1260 if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1261 then 1262 ac_cv_sizeof_float=`cat conftestval` 1263 else 1264 echo "configure: failed program was:" >&5 1265 cat conftest.$ac_ext >&5 1266 rm -fr conftest* 3684 # Depending upon the size, compute the lo and hi bounds. 3685 cat >conftest.$ac_ext <<_ACEOF 3686 #line 3686 "configure" 3687 #include "confdefs.h" 3688 $ac_includes_default 3689 int 3690 main () 3691 { 3692 int _array_ [1 - 2 * !((sizeof (float)) >= 0)] 3693 ; 3694 return 0; 3695 } 3696 _ACEOF 3697 rm -f conftest.$ac_objext 3698 if { (eval echo "$as_me:3698: \"$ac_compile\"") >&5 3699 (eval $ac_compile) 2>&5 3700 ac_status=$? 3701 echo "$as_me:3701: \$? = $ac_status" >&5 3702 (exit $ac_status); } && 3703 { ac_try='test -s conftest.$ac_objext' 3704 { (eval echo "$as_me:3704: \"$ac_try\"") >&5 3705 (eval $ac_try) 2>&5 3706 ac_status=$? 3707 echo "$as_me:3707: \$? = $ac_status" >&5 3708 (exit $ac_status); }; }; then 3709 ac_lo=0 ac_mid=0 3710 while :; do 3711 cat >conftest.$ac_ext <<_ACEOF 3712 #line 3712 "configure" 3713 #include "confdefs.h" 3714 $ac_includes_default 3715 int 3716 main () 3717 { 3718 int _array_ [1 - 2 * !((sizeof (float)) <= $ac_mid)] 3719 ; 3720 return 0; 3721 } 3722 _ACEOF 3723 rm -f conftest.$ac_objext 3724 if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5 3725 (eval $ac_compile) 2>&5 3726 ac_status=$? 3727 echo "$as_me:3727: \$? = $ac_status" >&5 3728 (exit $ac_status); } && 3729 { ac_try='test -s conftest.$ac_objext' 3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5 3731 (eval $ac_try) 2>&5 3732 ac_status=$? 3733 echo "$as_me:3733: \$? = $ac_status" >&5 3734 (exit $ac_status); }; }; then 3735 ac_hi=$ac_mid; break 3736 else 3737 echo "$as_me: failed program was:" >&5 3738 cat conftest.$ac_ext >&5 3739 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 3740 fi 3741 rm -f conftest.$ac_objext conftest.$ac_ext 3742 done 3743 else 3744 echo "$as_me: failed program was:" >&5 3745 cat conftest.$ac_ext >&5 3746 ac_hi=-1 ac_mid=-1 3747 while :; do 3748 cat >conftest.$ac_ext <<_ACEOF 3749 #line 3749 "configure" 3750 #include "confdefs.h" 3751 $ac_includes_default 3752 int 3753 main () 3754 { 3755 int _array_ [1 - 2 * !((sizeof (float)) >= $ac_mid)] 3756 ; 3757 return 0; 3758 } 3759 _ACEOF 3760 rm -f conftest.$ac_objext 3761 if { (eval echo "$as_me:3761: \"$ac_compile\"") >&5 3762 (eval $ac_compile) 2>&5 3763 ac_status=$? 3764 echo "$as_me:3764: \$? = $ac_status" >&5 3765 (exit $ac_status); } && 3766 { ac_try='test -s conftest.$ac_objext' 3767 { (eval echo "$as_me:3767: \"$ac_try\"") >&5 3768 (eval $ac_try) 2>&5 3769 ac_status=$? 3770 echo "$as_me:3770: \$? = $ac_status" >&5 3771 (exit $ac_status); }; }; then 3772 ac_lo=$ac_mid; break 3773 else 3774 echo "$as_me: failed program was:" >&5 3775 cat conftest.$ac_ext >&5 3776 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 3777 fi 3778 rm -f conftest.$ac_objext conftest.$ac_ext 3779 done 3780 fi 3781 rm -f conftest.$ac_objext conftest.$ac_ext 3782 # Binary search between lo and hi bounds. 3783 while test "x$ac_lo" != "x$ac_hi"; do 3784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 3785 cat >conftest.$ac_ext <<_ACEOF 3786 #line 3786 "configure" 3787 #include "confdefs.h" 3788 $ac_includes_default 3789 int 3790 main () 3791 { 3792 int _array_ [1 - 2 * !((sizeof (float)) <= $ac_mid)] 3793 ; 3794 return 0; 3795 } 3796 _ACEOF 3797 rm -f conftest.$ac_objext 3798 if { (eval echo "$as_me:3798: \"$ac_compile\"") >&5 3799 (eval $ac_compile) 2>&5 3800 ac_status=$? 3801 echo "$as_me:3801: \$? = $ac_status" >&5 3802 (exit $ac_status); } && 3803 { ac_try='test -s conftest.$ac_objext' 3804 { (eval echo "$as_me:3804: \"$ac_try\"") >&5 3805 (eval $ac_try) 2>&5 3806 ac_status=$? 3807 echo "$as_me:3807: \$? = $ac_status" >&5 3808 (exit $ac_status); }; }; then 3809 ac_hi=$ac_mid 3810 else 3811 echo "$as_me: failed program was:" >&5 3812 cat conftest.$ac_ext >&5 3813 ac_lo=`expr $ac_mid + 1` 3814 fi 3815 rm -f conftest.$ac_objext conftest.$ac_ext 3816 done 3817 ac_cv_sizeof_float=$ac_lo 3818 else 3819 if test "$cross_compiling" = yes; then 3820 { { echo "$as_me:3820: error: cannot run test program while cross compiling" >&5 3821 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 3822 { (exit 1); exit 1; }; } 3823 else 3824 cat >conftest.$ac_ext <<_ACEOF 3825 #line 3825 "configure" 3826 #include "confdefs.h" 3827 $ac_includes_default 3828 int 3829 main () 3830 { 3831 FILE *f = fopen ("conftest.val", "w"); 3832 if (!f) 3833 exit (1); 3834 fprintf (f, "%d", (sizeof (float))); 3835 fclose (f); 3836 ; 3837 return 0; 3838 } 3839 _ACEOF 3840 rm -f conftest$ac_exeext 3841 if { (eval echo "$as_me:3841: \"$ac_link\"") >&5 3842 (eval $ac_link) 2>&5 3843 ac_status=$? 3844 echo "$as_me:3844: \$? = $ac_status" >&5 3845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3846 { (eval echo "$as_me:3846: \"$ac_try\"") >&5 3847 (eval $ac_try) 2>&5 3848 ac_status=$? 3849 echo "$as_me:3849: \$? = $ac_status" >&5 3850 (exit $ac_status); }; }; then 3851 ac_cv_sizeof_float=`cat conftest.val` 3852 else 3853 echo "$as_me: program exited with status $ac_status" >&5 3854 echo "$as_me: failed program was:" >&5 3855 cat conftest.$ac_ext >&5 3856 fi 3857 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3858 fi 3859 fi 3860 rm -f conftest.val 3861 else 1267 3862 ac_cv_sizeof_float=0 1268 3863 fi 1269 rm -fr conftest* 1270 fi 1271 1272 fi 1273 echo "$ac_t""$ac_cv_sizeof_float" 1>&6 1274 cat >> confdefs.h <<EOF 3864 fi 3865 echo "$as_me:3865: result: $ac_cv_sizeof_float" >&5 3866 echo "${ECHO_T}$ac_cv_sizeof_float" >&6 3867 cat >>confdefs.h <<EOF 1275 3868 #define SIZEOF_FLOAT $ac_cv_sizeof_float 1276 3869 EOF 1277 3870 1278 1279 echo $ac_n "checking size of double""... $ac_c" 1>&6 1280 echo "configure:1281: checking size of double" >&5 1281 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1282 echo $ac_n "(cached) $ac_c" 1>&6 1283 else 3871 echo "$as_me:3871: checking for double" >&5 3872 echo $ECHO_N "checking for double... $ECHO_C" >&6 3873 if test "${ac_cv_type_double+set}" = set; then 3874 echo $ECHO_N "(cached) $ECHO_C" >&6 3875 else 3876 cat >conftest.$ac_ext <<_ACEOF 3877 #line 3877 "configure" 3878 #include "confdefs.h" 3879 $ac_includes_default 3880 int 3881 main () 3882 { 3883 if ((double *) 0) 3884 return 0; 3885 if (sizeof (double)) 3886 return 0; 3887 ; 3888 return 0; 3889 } 3890 _ACEOF 3891 rm -f conftest.$ac_objext 3892 if { (eval echo "$as_me:3892: \"$ac_compile\"") >&5 3893 (eval $ac_compile) 2>&5 3894 ac_status=$? 3895 echo "$as_me:3895: \$? = $ac_status" >&5 3896 (exit $ac_status); } && 3897 { ac_try='test -s conftest.$ac_objext' 3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5 3899 (eval $ac_try) 2>&5 3900 ac_status=$? 3901 echo "$as_me:3901: \$? = $ac_status" >&5 3902 (exit $ac_status); }; }; then 3903 ac_cv_type_double=yes 3904 else 3905 echo "$as_me: failed program was:" >&5 3906 cat conftest.$ac_ext >&5 3907 ac_cv_type_double=no 3908 fi 3909 rm -f conftest.$ac_objext conftest.$ac_ext 3910 fi 3911 echo "$as_me:3911: result: $ac_cv_type_double" >&5 3912 echo "${ECHO_T}$ac_cv_type_double" >&6 3913 3914 echo "$as_me:3914: checking size of double" >&5 3915 echo $ECHO_N "checking size of double... $ECHO_C" >&6 3916 if test "${ac_cv_sizeof_double+set}" = set; then 3917 echo $ECHO_N "(cached) $ECHO_C" >&6 3918 else 3919 if test "$ac_cv_type_double" = yes; then 1284 3920 if test "$cross_compiling" = yes; then 1285 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1286 else 1287 cat > conftest.$ac_ext <<EOF 1288 #line 1289 "configure" 1289 #include "confdefs.h" 1290 #include <stdio.h> 1291 main() 1292 { 1293 FILE *f=fopen("conftestval", "w"); 1294 if (!f) exit(1); 1295 fprintf(f, "%d\n", sizeof(double)); 1296 exit(0); 1297 } 1298 EOF 1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1300 then 1301 ac_cv_sizeof_double=`cat conftestval` 1302 else 1303 echo "configure: failed program was:" >&5 1304 cat conftest.$ac_ext >&5 1305 rm -fr conftest* 3921 # Depending upon the size, compute the lo and hi bounds. 3922 cat >conftest.$ac_ext <<_ACEOF 3923 #line 3923 "configure" 3924 #include "confdefs.h" 3925 $ac_includes_default 3926 int 3927 main () 3928 { 3929 int _array_ [1 - 2 * !((sizeof (double)) >= 0)] 3930 ; 3931 return 0; 3932 } 3933 _ACEOF 3934 rm -f conftest.$ac_objext 3935 if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5 3936 (eval $ac_compile) 2>&5 3937 ac_status=$? 3938 echo "$as_me:3938: \$? = $ac_status" >&5 3939 (exit $ac_status); } && 3940 { ac_try='test -s conftest.$ac_objext' 3941 { (eval echo "$as_me:3941: \"$ac_try\"") >&5 3942 (eval $ac_try) 2>&5 3943 ac_status=$? 3944 echo "$as_me:3944: \$? = $ac_status" >&5 3945 (exit $ac_status); }; }; then 3946 ac_lo=0 ac_mid=0 3947 while :; do 3948 cat >conftest.$ac_ext <<_ACEOF 3949 #line 3949 "configure" 3950 #include "confdefs.h" 3951 $ac_includes_default 3952 int 3953 main () 3954 { 3955 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)] 3956 ; 3957 return 0; 3958 } 3959 _ACEOF 3960 rm -f conftest.$ac_objext 3961 if { (eval echo "$as_me:3961: \"$ac_compile\"") >&5 3962 (eval $ac_compile) 2>&5 3963 ac_status=$? 3964 echo "$as_me:3964: \$? = $ac_status" >&5 3965 (exit $ac_status); } && 3966 { ac_try='test -s conftest.$ac_objext' 3967 { (eval echo "$as_me:3967: \"$ac_try\"") >&5 3968 (eval $ac_try) 2>&5 3969 ac_status=$? 3970 echo "$as_me:3970: \$? = $ac_status" >&5 3971 (exit $ac_status); }; }; then 3972 ac_hi=$ac_mid; break 3973 else 3974 echo "$as_me: failed program was:" >&5 3975 cat conftest.$ac_ext >&5 3976 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 3977 fi 3978 rm -f conftest.$ac_objext conftest.$ac_ext 3979 done 3980 else 3981 echo "$as_me: failed program was:" >&5 3982 cat conftest.$ac_ext >&5 3983 ac_hi=-1 ac_mid=-1 3984 while :; do 3985 cat >conftest.$ac_ext <<_ACEOF 3986 #line 3986 "configure" 3987 #include "confdefs.h" 3988 $ac_includes_default 3989 int 3990 main () 3991 { 3992 int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)] 3993 ; 3994 return 0; 3995 } 3996 _ACEOF 3997 rm -f conftest.$ac_objext 3998 if { (eval echo "$as_me:3998: \"$ac_compile\"") >&5 3999 (eval $ac_compile) 2>&5 4000 ac_status=$? 4001 echo "$as_me:4001: \$? = $ac_status" >&5 4002 (exit $ac_status); } && 4003 { ac_try='test -s conftest.$ac_objext' 4004 { (eval echo "$as_me:4004: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:4007: \$? = $ac_status" >&5 4008 (exit $ac_status); }; }; then 4009 ac_lo=$ac_mid; break 4010 else 4011 echo "$as_me: failed program was:" >&5 4012 cat conftest.$ac_ext >&5 4013 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 4014 fi 4015 rm -f conftest.$ac_objext conftest.$ac_ext 4016 done 4017 fi 4018 rm -f conftest.$ac_objext conftest.$ac_ext 4019 # Binary search between lo and hi bounds. 4020 while test "x$ac_lo" != "x$ac_hi"; do 4021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4022 cat >conftest.$ac_ext <<_ACEOF 4023 #line 4023 "configure" 4024 #include "confdefs.h" 4025 $ac_includes_default 4026 int 4027 main () 4028 { 4029 int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)] 4030 ; 4031 return 0; 4032 } 4033 _ACEOF 4034 rm -f conftest.$ac_objext 4035 if { (eval echo "$as_me:4035: \"$ac_compile\"") >&5 4036 (eval $ac_compile) 2>&5 4037 ac_status=$? 4038 echo "$as_me:4038: \$? = $ac_status" >&5 4039 (exit $ac_status); } && 4040 { ac_try='test -s conftest.$ac_objext' 4041 { (eval echo "$as_me:4041: \"$ac_try\"") >&5 4042 (eval $ac_try) 2>&5 4043 ac_status=$? 4044 echo "$as_me:4044: \$? = $ac_status" >&5 4045 (exit $ac_status); }; }; then 4046 ac_hi=$ac_mid 4047 else 4048 echo "$as_me: failed program was:" >&5 4049 cat conftest.$ac_ext >&5 4050 ac_lo=`expr $ac_mid + 1` 4051 fi 4052 rm -f conftest.$ac_objext conftest.$ac_ext 4053 done 4054 ac_cv_sizeof_double=$ac_lo 4055 else 4056 if test "$cross_compiling" = yes; then 4057 { { echo "$as_me:4057: error: cannot run test program while cross compiling" >&5 4058 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4059 { (exit 1); exit 1; }; } 4060 else 4061 cat >conftest.$ac_ext <<_ACEOF 4062 #line 4062 "configure" 4063 #include "confdefs.h" 4064 $ac_includes_default 4065 int 4066 main () 4067 { 4068 FILE *f = fopen ("conftest.val", "w"); 4069 if (!f) 4070 exit (1); 4071 fprintf (f, "%d", (sizeof (double))); 4072 fclose (f); 4073 ; 4074 return 0; 4075 } 4076 _ACEOF 4077 rm -f conftest$ac_exeext 4078 if { (eval echo "$as_me:4078: \"$ac_link\"") >&5 4079 (eval $ac_link) 2>&5 4080 ac_status=$? 4081 echo "$as_me:4081: \$? = $ac_status" >&5 4082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4083 { (eval echo "$as_me:4083: \"$ac_try\"") >&5 4084 (eval $ac_try) 2>&5 4085 ac_status=$? 4086 echo "$as_me:4086: \$? = $ac_status" >&5 4087 (exit $ac_status); }; }; then 4088 ac_cv_sizeof_double=`cat conftest.val` 4089 else 4090 echo "$as_me: program exited with status $ac_status" >&5 4091 echo "$as_me: failed program was:" >&5 4092 cat conftest.$ac_ext >&5 4093 fi 4094 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4095 fi 4096 fi 4097 rm -f conftest.val 4098 else 1306 4099 ac_cv_sizeof_double=0 1307 4100 fi 1308 rm -fr conftest* 1309 fi 1310 1311 fi 1312 echo "$ac_t""$ac_cv_sizeof_double" 1>&6 1313 cat >> confdefs.h <<EOF 4101 fi 4102 echo "$as_me:4102: result: $ac_cv_sizeof_double" >&5 4103 echo "${ECHO_T}$ac_cv_sizeof_double" >&6 4104 cat >>confdefs.h <<EOF 1314 4105 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 1315 4106 EOF 1316 4107 1317 1318 echo $ac_n "checking size of long double""... $ac_c" 1>&6 1319 echo "configure:1320: checking size of long double" >&5 1320 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then 1321 echo $ac_n "(cached) $ac_c" 1>&6 1322 else 4108 echo "$as_me:4108: checking for long double" >&5 4109 echo $ECHO_N "checking for long double... $ECHO_C" >&6 4110 if test "${ac_cv_type_long_double+set}" = set; then 4111 echo $ECHO_N "(cached) $ECHO_C" >&6 4112 else 4113 cat >conftest.$ac_ext <<_ACEOF 4114 #line 4114 "configure" 4115 #include "confdefs.h" 4116 $ac_includes_default 4117 int 4118 main () 4119 { 4120 if ((long double *) 0) 4121 return 0; 4122 if (sizeof (long double)) 4123 return 0; 4124 ; 4125 return 0; 4126 } 4127 _ACEOF 4128 rm -f conftest.$ac_objext 4129 if { (eval echo "$as_me:4129: \"$ac_compile\"") >&5 4130 (eval $ac_compile) 2>&5 4131 ac_status=$? 4132 echo "$as_me:4132: \$? = $ac_status" >&5 4133 (exit $ac_status); } && 4134 { ac_try='test -s conftest.$ac_objext' 4135 { (eval echo "$as_me:4135: \"$ac_try\"") >&5 4136 (eval $ac_try) 2>&5 4137 ac_status=$? 4138 echo "$as_me:4138: \$? = $ac_status" >&5 4139 (exit $ac_status); }; }; then 4140 ac_cv_type_long_double=yes 4141 else 4142 echo "$as_me: failed program was:" >&5 4143 cat conftest.$ac_ext >&5 4144 ac_cv_type_long_double=no 4145 fi 4146 rm -f conftest.$ac_objext conftest.$ac_ext 4147 fi 4148 echo "$as_me:4148: result: $ac_cv_type_long_double" >&5 4149 echo "${ECHO_T}$ac_cv_type_long_double" >&6 4150 4151 echo "$as_me:4151: checking size of long double" >&5 4152 echo $ECHO_N "checking size of long double... $ECHO_C" >&6 4153 if test "${ac_cv_sizeof_long_double+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155 else 4156 if test "$ac_cv_type_long_double" = yes; then 1323 4157 if test "$cross_compiling" = yes; then 1324 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1325 else 1326 cat > conftest.$ac_ext <<EOF 1327 #line 1328 "configure" 1328 #include "confdefs.h" 1329 #include <stdio.h> 1330 main() 1331 { 1332 FILE *f=fopen("conftestval", "w"); 1333 if (!f) exit(1); 1334 fprintf(f, "%d\n", sizeof(long double)); 1335 exit(0); 1336 } 1337 EOF 1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1339 then 1340 ac_cv_sizeof_long_double=`cat conftestval` 1341 else 1342 echo "configure: failed program was:" >&5 1343 cat conftest.$ac_ext >&5 1344 rm -fr conftest* 4158 # Depending upon the size, compute the lo and hi bounds. 4159 cat >conftest.$ac_ext <<_ACEOF 4160 #line 4160 "configure" 4161 #include "confdefs.h" 4162 $ac_includes_default 4163 int 4164 main () 4165 { 4166 int _array_ [1 - 2 * !((sizeof (long double)) >= 0)] 4167 ; 4168 return 0; 4169 } 4170 _ACEOF 4171 rm -f conftest.$ac_objext 4172 if { (eval echo "$as_me:4172: \"$ac_compile\"") >&5 4173 (eval $ac_compile) 2>&5 4174 ac_status=$? 4175 echo "$as_me:4175: \$? = $ac_status" >&5 4176 (exit $ac_status); } && 4177 { ac_try='test -s conftest.$ac_objext' 4178 { (eval echo "$as_me:4178: \"$ac_try\"") >&5 4179 (eval $ac_try) 2>&5 4180 ac_status=$? 4181 echo "$as_me:4181: \$? = $ac_status" >&5 4182 (exit $ac_status); }; }; then 4183 ac_lo=0 ac_mid=0 4184 while :; do 4185 cat >conftest.$ac_ext <<_ACEOF 4186 #line 4186 "configure" 4187 #include "confdefs.h" 4188 $ac_includes_default 4189 int 4190 main () 4191 { 4192 int _array_ [1 - 2 * !((sizeof (long double)) <= $ac_mid)] 4193 ; 4194 return 0; 4195 } 4196 _ACEOF 4197 rm -f conftest.$ac_objext 4198 if { (eval echo "$as_me:4198: \"$ac_compile\"") >&5 4199 (eval $ac_compile) 2>&5 4200 ac_status=$? 4201 echo "$as_me:4201: \$? = $ac_status" >&5 4202 (exit $ac_status); } && 4203 { ac_try='test -s conftest.$ac_objext' 4204 { (eval echo "$as_me:4204: \"$ac_try\"") >&5 4205 (eval $ac_try) 2>&5 4206 ac_status=$? 4207 echo "$as_me:4207: \$? = $ac_status" >&5 4208 (exit $ac_status); }; }; then 4209 ac_hi=$ac_mid; break 4210 else 4211 echo "$as_me: failed program was:" >&5 4212 cat conftest.$ac_ext >&5 4213 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 4214 fi 4215 rm -f conftest.$ac_objext conftest.$ac_ext 4216 done 4217 else 4218 echo "$as_me: failed program was:" >&5 4219 cat conftest.$ac_ext >&5 4220 ac_hi=-1 ac_mid=-1 4221 while :; do 4222 cat >conftest.$ac_ext <<_ACEOF 4223 #line 4223 "configure" 4224 #include "confdefs.h" 4225 $ac_includes_default 4226 int 4227 main () 4228 { 4229 int _array_ [1 - 2 * !((sizeof (long double)) >= $ac_mid)] 4230 ; 4231 return 0; 4232 } 4233 _ACEOF 4234 rm -f conftest.$ac_objext 4235 if { (eval echo "$as_me:4235: \"$ac_compile\"") >&5 4236 (eval $ac_compile) 2>&5 4237 ac_status=$? 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit $ac_status); } && 4240 { ac_try='test -s conftest.$ac_objext' 4241 { (eval echo "$as_me:4241: \"$ac_try\"") >&5 4242 (eval $ac_try) 2>&5 4243 ac_status=$? 4244 echo "$as_me:4244: \$? = $ac_status" >&5 4245 (exit $ac_status); }; }; then 4246 ac_lo=$ac_mid; break 4247 else 4248 echo "$as_me: failed program was:" >&5 4249 cat conftest.$ac_ext >&5 4250 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 4251 fi 4252 rm -f conftest.$ac_objext conftest.$ac_ext 4253 done 4254 fi 4255 rm -f conftest.$ac_objext conftest.$ac_ext 4256 # Binary search between lo and hi bounds. 4257 while test "x$ac_lo" != "x$ac_hi"; do 4258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4259 cat >conftest.$ac_ext <<_ACEOF 4260 #line 4260 "configure" 4261 #include "confdefs.h" 4262 $ac_includes_default 4263 int 4264 main () 4265 { 4266 int _array_ [1 - 2 * !((sizeof (long double)) <= $ac_mid)] 4267 ; 4268 return 0; 4269 } 4270 _ACEOF 4271 rm -f conftest.$ac_objext 4272 if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5 4273 (eval $ac_compile) 2>&5 4274 ac_status=$? 4275 echo "$as_me:4275: \$? = $ac_status" >&5 4276 (exit $ac_status); } && 4277 { ac_try='test -s conftest.$ac_objext' 4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5 4279 (eval $ac_try) 2>&5 4280 ac_status=$? 4281 echo "$as_me:4281: \$? = $ac_status" >&5 4282 (exit $ac_status); }; }; then 4283 ac_hi=$ac_mid 4284 else 4285 echo "$as_me: failed program was:" >&5 4286 cat conftest.$ac_ext >&5 4287 ac_lo=`expr $ac_mid + 1` 4288 fi 4289 rm -f conftest.$ac_objext conftest.$ac_ext 4290 done 4291 ac_cv_sizeof_long_double=$ac_lo 4292 else 4293 if test "$cross_compiling" = yes; then 4294 { { echo "$as_me:4294: error: cannot run test program while cross compiling" >&5 4295 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4296 { (exit 1); exit 1; }; } 4297 else 4298 cat >conftest.$ac_ext <<_ACEOF 4299 #line 4299 "configure" 4300 #include "confdefs.h" 4301 $ac_includes_default 4302 int 4303 main () 4304 { 4305 FILE *f = fopen ("conftest.val", "w"); 4306 if (!f) 4307 exit (1); 4308 fprintf (f, "%d", (sizeof (long double))); 4309 fclose (f); 4310 ; 4311 return 0; 4312 } 4313 _ACEOF 4314 rm -f conftest$ac_exeext 4315 if { (eval echo "$as_me:4315: \"$ac_link\"") >&5 4316 (eval $ac_link) 2>&5 4317 ac_status=$? 4318 echo "$as_me:4318: \$? = $ac_status" >&5 4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4320 { (eval echo "$as_me:4320: \"$ac_try\"") >&5 4321 (eval $ac_try) 2>&5 4322 ac_status=$? 4323 echo "$as_me:4323: \$? = $ac_status" >&5 4324 (exit $ac_status); }; }; then 4325 ac_cv_sizeof_long_double=`cat conftest.val` 4326 else 4327 echo "$as_me: program exited with status $ac_status" >&5 4328 echo "$as_me: failed program was:" >&5 4329 cat conftest.$ac_ext >&5 4330 fi 4331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4332 fi 4333 fi 4334 rm -f conftest.val 4335 else 1345 4336 ac_cv_sizeof_long_double=0 1346 4337 fi 1347 rm -fr conftest* 1348 fi 1349 1350 fi 1351 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 1352 cat >> confdefs.h <<EOF 4338 fi 4339 echo "$as_me:4339: result: $ac_cv_sizeof_long_double" >&5 4340 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6 4341 cat >>confdefs.h <<EOF 1353 4342 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 1354 4343 EOF 1355 4344 1356 1357 1358 1359 echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6 1360 echo "configure:1361: checking "for cfitsio lib"" >&5 4345 echo "$as_me:4345: checking \"for cfitsio lib\"" >&5 4346 echo $ECHO_N "checking \"for cfitsio lib\"... $ECHO_C" >&6 1361 4347 MACHDIR=`uname`-$CXX 1362 4348 if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then … … 1378 4364 elif test -f /usr/local/lib/libcfitsio.a; then 1379 4365 cfitslibdir="" 1380 else 1381 { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; } 1382 fi 1383 echo "$ac_t""$cfitslibdir" 1>&6 1384 1385 1386 echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6 1387 echo "configure:1388: checking "for cfitsio includes"" >&5 4366 else 4367 { { echo "$as_me:4367: error: \"Cannot find cfitsio library\"" >&5 4368 echo "$as_me: error: \"Cannot find cfitsio library\"" >&2;} 4369 { (exit 1); exit 1; }; } 4370 fi 4371 echo "$as_me:4371: result: $cfitslibdir" >&5 4372 echo "${ECHO_T}$cfitslibdir" >&6 4373 4374 echo "$as_me:4374: checking \"for cfitsio includes\"" >&5 4375 echo $ECHO_N "checking \"for cfitsio includes\"... $ECHO_C" >&6 1388 4376 if test -f $CFITSIODIR/fitsio.h; then 1389 4377 cfitsincdir='-I$(CFITSIODIR)' … … 1393 4381 cfitsincdir="" 1394 4382 else 1395 { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; } 1396 fi 1397 echo "$ac_t""$cfitsincdir" 1>&6 1398 1399 1400 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 1401 echo "configure:1402: checking for sin in -lm" >&5 1402 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 1403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1404 echo $ac_n "(cached) $ac_c" 1>&6 1405 else 1406 ac_save_LIBS="$LIBS" 4383 { { echo "$as_me:4383: error: \"Cannot find cfitsio include fitsio.h\"" >&5 4384 echo "$as_me: error: \"Cannot find cfitsio include fitsio.h\"" >&2;} 4385 { (exit 1); exit 1; }; } 4386 fi 4387 echo "$as_me:4387: result: $cfitsincdir" >&5 4388 echo "${ECHO_T}$cfitsincdir" >&6 4389 4390 echo "$as_me:4390: checking for sin in -lm" >&5 4391 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 4392 if test "${ac_cv_lib_m_sin+set}" = set; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394 else 4395 ac_check_lib_save_LIBS=$LIBS 1407 4396 LIBS="-lm $LIBS" 1408 cat > conftest.$ac_ext <<EOF 1409 #line 1410 "configure" 1410 #include "confdefs.h" 4397 cat >conftest.$ac_ext <<_ACEOF 4398 #line 4398 "configure" 4399 #include "confdefs.h" 4400 1411 4401 /* Override any gcc2 internal prototype to avoid an error. */ 4402 #ifdef __cplusplus 4403 extern "C" 4404 #endif 1412 4405 /* We use char because int might match the return type of a gcc2 1413 builtin and then its argument prototype would still apply. */ 1414 char sin(); 1415 1416 int main() { 1417 sin() 1418 ; return 0; } 4406 builtin and then its argument prototype would still apply. */ 4407 char sin (); 4408 int 4409 main () 4410 { 4411 sin (); 4412 ; 4413 return 0; 4414 } 4415 _ACEOF 4416 rm -f conftest.$ac_objext conftest$ac_exeext 4417 if { (eval echo "$as_me:4417: \"$ac_link\"") >&5 4418 (eval $ac_link) 2>&5 4419 ac_status=$? 4420 echo "$as_me:4420: \$? = $ac_status" >&5 4421 (exit $ac_status); } && 4422 { ac_try='test -s conftest$ac_exeext' 4423 { (eval echo "$as_me:4423: \"$ac_try\"") >&5 4424 (eval $ac_try) 2>&5 4425 ac_status=$? 4426 echo "$as_me:4426: \$? = $ac_status" >&5 4427 (exit $ac_status); }; }; then 4428 ac_cv_lib_m_sin=yes 4429 else 4430 echo "$as_me: failed program was:" >&5 4431 cat conftest.$ac_ext >&5 4432 ac_cv_lib_m_sin=no 4433 fi 4434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4435 LIBS=$ac_check_lib_save_LIBS 4436 fi 4437 echo "$as_me:4437: result: $ac_cv_lib_m_sin" >&5 4438 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 4439 if test $ac_cv_lib_m_sin = yes; then 4440 cat >>confdefs.h <<EOF 4441 #define HAVE_LIBM 1 1419 4442 EOF 1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1421 rm -rf conftest* 1422 eval "ac_cv_lib_$ac_lib_var=yes" 1423 else 1424 echo "configure: failed program was:" >&5 1425 cat conftest.$ac_ext >&5 1426 rm -rf conftest* 1427 eval "ac_cv_lib_$ac_lib_var=no" 1428 fi 1429 rm -f conftest* 1430 LIBS="$ac_save_LIBS" 1431 1432 fi 1433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1434 echo "$ac_t""yes" 1>&6 1435 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1437 cat >> confdefs.h <<EOF 1438 #define $ac_tr_lib 1 4443 4444 LIBS="-lm $LIBS" 4445 4446 fi 4447 4448 echo "$as_me:4448: checking for pthread_create in -lpthread" >&5 4449 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 4450 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 4451 echo $ECHO_N "(cached) $ECHO_C" >&6 4452 else 4453 ac_check_lib_save_LIBS=$LIBS 4454 LIBS="-lpthread $LIBS" 4455 cat >conftest.$ac_ext <<_ACEOF 4456 #line 4456 "configure" 4457 #include "confdefs.h" 4458 4459 /* Override any gcc2 internal prototype to avoid an error. */ 4460 #ifdef __cplusplus 4461 extern "C" 4462 #endif 4463 /* We use char because int might match the return type of a gcc2 4464 builtin and then its argument prototype would still apply. */ 4465 char pthread_create (); 4466 int 4467 main () 4468 { 4469 pthread_create (); 4470 ; 4471 return 0; 4472 } 4473 _ACEOF 4474 rm -f conftest.$ac_objext conftest$ac_exeext 4475 if { (eval echo "$as_me:4475: \"$ac_link\"") >&5 4476 (eval $ac_link) 2>&5 4477 ac_status=$? 4478 echo "$as_me:4478: \$? = $ac_status" >&5 4479 (exit $ac_status); } && 4480 { ac_try='test -s conftest$ac_exeext' 4481 { (eval echo "$as_me:4481: \"$ac_try\"") >&5 4482 (eval $ac_try) 2>&5 4483 ac_status=$? 4484 echo "$as_me:4484: \$? = $ac_status" >&5 4485 (exit $ac_status); }; }; then 4486 ac_cv_lib_pthread_pthread_create=yes 4487 else 4488 echo "$as_me: failed program was:" >&5 4489 cat conftest.$ac_ext >&5 4490 ac_cv_lib_pthread_pthread_create=no 4491 fi 4492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4493 LIBS=$ac_check_lib_save_LIBS 4494 fi 4495 echo "$as_me:4495: result: $ac_cv_lib_pthread_pthread_create" >&5 4496 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 4497 if test $ac_cv_lib_pthread_pthread_create = yes; then 4498 cat >>confdefs.h <<EOF 4499 #define HAVE_LIBPTHREAD 1 1439 4500 EOF 1440 4501 1441 LIBS="-lm $LIBS" 1442 1443 else 1444 echo "$ac_t""no" 1>&6 1445 fi 1446 1447 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 1448 echo "configure:1449: checking for pthread_create in -lpthread" >&5 1449 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 1450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1451 echo $ac_n "(cached) $ac_c" 1>&6 1452 else 1453 ac_save_LIBS="$LIBS" 1454 LIBS="-lpthread $LIBS" 1455 cat > conftest.$ac_ext <<EOF 1456 #line 1457 "configure" 1457 #include "confdefs.h" 4502 LIBS="-lpthread $LIBS" 4503 4504 fi 4505 4506 echo "$as_me:4506: checking for scopy_ in -lblas" >&5 4507 echo $ECHO_N "checking for scopy_ in -lblas... $ECHO_C" >&6 4508 if test "${ac_cv_lib_blas_scopy_+set}" = set; then 4509 echo $ECHO_N "(cached) $ECHO_C" >&6 4510 else 4511 ac_check_lib_save_LIBS=$LIBS 4512 LIBS="-lblas $LIBS" 4513 cat >conftest.$ac_ext <<_ACEOF 4514 #line 4514 "configure" 4515 #include "confdefs.h" 4516 1458 4517 /* Override any gcc2 internal prototype to avoid an error. */ 4518 #ifdef __cplusplus 4519 extern "C" 4520 #endif 1459 4521 /* We use char because int might match the return type of a gcc2 1460 builtin and then its argument prototype would still apply. */ 1461 char pthread_create(); 1462 1463 int main() { 1464 pthread_create() 1465 ; return 0; } 4522 builtin and then its argument prototype would still apply. */ 4523 char scopy_ (); 4524 int 4525 main () 4526 { 4527 scopy_ (); 4528 ; 4529 return 0; 4530 } 4531 _ACEOF 4532 rm -f conftest.$ac_objext conftest$ac_exeext 4533 if { (eval echo "$as_me:4533: \"$ac_link\"") >&5 4534 (eval $ac_link) 2>&5 4535 ac_status=$? 4536 echo "$as_me:4536: \$? = $ac_status" >&5 4537 (exit $ac_status); } && 4538 { ac_try='test -s conftest$ac_exeext' 4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5 4540 (eval $ac_try) 2>&5 4541 ac_status=$? 4542 echo "$as_me:4542: \$? = $ac_status" >&5 4543 (exit $ac_status); }; }; then 4544 ac_cv_lib_blas_scopy_=yes 4545 else 4546 echo "$as_me: failed program was:" >&5 4547 cat conftest.$ac_ext >&5 4548 ac_cv_lib_blas_scopy_=no 4549 fi 4550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4551 LIBS=$ac_check_lib_save_LIBS 4552 fi 4553 echo "$as_me:4553: result: $ac_cv_lib_blas_scopy_" >&5 4554 echo "${ECHO_T}$ac_cv_lib_blas_scopy_" >&6 4555 if test $ac_cv_lib_blas_scopy_ = yes; then 4556 cat >>confdefs.h <<EOF 4557 #define HAVE_LIBBLAS 1 1466 4558 EOF 1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1468 rm -rf conftest* 1469 eval "ac_cv_lib_$ac_lib_var=yes" 1470 else 1471 echo "configure: failed program was:" >&5 1472 cat conftest.$ac_ext >&5 1473 rm -rf conftest* 1474 eval "ac_cv_lib_$ac_lib_var=no" 1475 fi 1476 rm -f conftest* 1477 LIBS="$ac_save_LIBS" 1478 1479 fi 1480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1481 echo "$ac_t""yes" 1>&6 1482 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1484 cat >> confdefs.h <<EOF 1485 #define $ac_tr_lib 1 4559 4560 LIBS="-lblas $LIBS" 4561 4562 fi 4563 4564 echo "$as_me:4564: checking for s_copy in -lg2c" >&5 4565 echo $ECHO_N "checking for s_copy in -lg2c... $ECHO_C" >&6 4566 if test "${ac_cv_lib_g2c_s_copy+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568 else 4569 ac_check_lib_save_LIBS=$LIBS 4570 LIBS="-lg2c $LIBS" 4571 cat >conftest.$ac_ext <<_ACEOF 4572 #line 4572 "configure" 4573 #include "confdefs.h" 4574 4575 /* Override any gcc2 internal prototype to avoid an error. */ 4576 #ifdef __cplusplus 4577 extern "C" 4578 #endif 4579 /* We use char because int might match the return type of a gcc2 4580 builtin and then its argument prototype would still apply. */ 4581 char s_copy (); 4582 int 4583 main () 4584 { 4585 s_copy (); 4586 ; 4587 return 0; 4588 } 4589 _ACEOF 4590 rm -f conftest.$ac_objext conftest$ac_exeext 4591 if { (eval echo "$as_me:4591: \"$ac_link\"") >&5 4592 (eval $ac_link) 2>&5 4593 ac_status=$? 4594 echo "$as_me:4594: \$? = $ac_status" >&5 4595 (exit $ac_status); } && 4596 { ac_try='test -s conftest$ac_exeext' 4597 { (eval echo "$as_me:4597: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:4600: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 ac_cv_lib_g2c_s_copy=yes 4603 else 4604 echo "$as_me: failed program was:" >&5 4605 cat conftest.$ac_ext >&5 4606 ac_cv_lib_g2c_s_copy=no 4607 fi 4608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4609 LIBS=$ac_check_lib_save_LIBS 4610 fi 4611 echo "$as_me:4611: result: $ac_cv_lib_g2c_s_copy" >&5 4612 echo "${ECHO_T}$ac_cv_lib_g2c_s_copy" >&6 4613 if test $ac_cv_lib_g2c_s_copy = yes; then 4614 cat >>confdefs.h <<EOF 4615 #define HAVE_LIBG2C 1 1486 4616 EOF 1487 4617 1488 LIBS="-lpthread $LIBS"1489 1490 else1491 echo "$ac_t""no" 1>&61492 fi1493 1494 echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&61495 echo "configure:1496: checking for scopy_ in -lblas" >&51496 ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`1497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1498 echo $ac_n "(cached) $ac_c" 1>&61499 else1500 ac_save_LIBS="$LIBS"1501 LIBS="-lblas $LIBS"1502 cat > conftest.$ac_ext <<EOF1503 #line 1504 "configure"1504 #include "confdefs.h"1505 /* Override any gcc2 internal prototype to avoid an error. */1506 /* We use char because int might match the return type of a gcc21507 builtin and then its argument prototype would still apply. */1508 char scopy_();1509 1510 int main() {1511 scopy_()1512 ; return 0; }1513 EOF1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1515 rm -rf conftest*1516 eval "ac_cv_lib_$ac_lib_var=yes"1517 else1518 echo "configure: failed program was:" >&51519 cat conftest.$ac_ext >&51520 rm -rf conftest*1521 eval "ac_cv_lib_$ac_lib_var=no"1522 fi1523 rm -f conftest*1524 LIBS="$ac_save_LIBS"1525 1526 fi1527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1528 echo "$ac_t""yes" 1>&61529 ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \1530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1531 cat >> confdefs.h <<EOF1532 #define $ac_tr_lib 11533 EOF1534 1535 LIBS="-lblas $LIBS"1536 1537 else1538 echo "$ac_t""no" 1>&61539 fi1540 1541 echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&61542 echo "configure:1543: checking for s_copy in -lg2c" >&51543 ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1545 echo $ac_n "(cached) $ac_c" 1>&61546 else1547 ac_save_LIBS="$LIBS"1548 LIBS="-lg2c $LIBS"1549 cat > conftest.$ac_ext <<EOF1550 #line 1551 "configure"1551 #include "confdefs.h"1552 /* Override any gcc2 internal prototype to avoid an error. */1553 /* We use char because int might match the return type of a gcc21554 builtin and then its argument prototype would still apply. */1555 char s_copy();1556 1557 int main() {1558 s_copy()1559 ; return 0; }1560 EOF1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1562 rm -rf conftest*1563 eval "ac_cv_lib_$ac_lib_var=yes"1564 else1565 echo "configure: failed program was:" >&51566 cat conftest.$ac_ext >&51567 rm -rf conftest*1568 eval "ac_cv_lib_$ac_lib_var=no"1569 fi1570 rm -f conftest*1571 LIBS="$ac_save_LIBS"1572 1573 fi1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1575 echo "$ac_t""yes" 1>&61576 ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \1577 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1578 cat >> confdefs.h <<EOF1579 #define $ac_tr_lib 11580 EOF1581 1582 4618 LIBS="-lg2c $LIBS" 1583 4619 1584 else 1585 echo "$ac_t""no" 1>&6 1586 fi 1587 1588 1589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1590 echo "configure:1591: checking how to run the C preprocessor" >&5 1591 # On Suns, sometimes $CPP names a directory. 1592 if test -n "$CPP" && test -d "$CPP"; then 1593 CPP= 1594 fi 1595 if test -z "$CPP"; then 1596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1597 echo $ac_n "(cached) $ac_c" 1>&6 1598 else 1599 # This must be in double quotes, not single quotes, because CPP may get 1600 # substituted into the Makefile and "${CC-cc}" will confuse make. 1601 CPP="${CC-cc} -E" 1602 # On the NeXT, cc -E runs the code through the compiler's parser, 1603 # not just through cpp. 1604 cat > conftest.$ac_ext <<EOF 1605 #line 1606 "configure" 1606 #include "confdefs.h" 1607 #include <assert.h> 1608 Syntax Error 1609 EOF 1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1612 ac_err=`grep -v '^ *+' conftest.out` 1613 if test -z "$ac_err"; then 1614 : 1615 else 1616 echo "$ac_err" >&5 1617 echo "configure: failed program was:" >&5 1618 cat conftest.$ac_ext >&5 1619 rm -rf conftest* 1620 CPP="${CC-cc} -E -traditional-cpp" 1621 cat > conftest.$ac_ext <<EOF 1622 #line 1623 "configure" 1623 #include "confdefs.h" 1624 #include <assert.h> 1625 Syntax Error 1626 EOF 1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1629 ac_err=`grep -v '^ *+' conftest.out` 1630 if test -z "$ac_err"; then 1631 : 1632 else 1633 echo "$ac_err" >&5 1634 echo "configure: failed program was:" >&5 1635 cat conftest.$ac_ext >&5 1636 rm -rf conftest* 1637 CPP=/lib/cpp 1638 fi 1639 rm -f conftest* 1640 fi 1641 rm -f conftest* 1642 ac_cv_prog_CPP="$CPP" 1643 fi 1644 CPP="$ac_cv_prog_CPP" 1645 else 1646 ac_cv_prog_CPP="$CPP" 1647 fi 1648 echo "$ac_t""$CPP" 1>&6 1649 1650 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1651 echo "configure:1652: checking for ANSI C header files" >&5 1652 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1653 echo $ac_n "(cached) $ac_c" 1>&6 1654 else 1655 cat > conftest.$ac_ext <<EOF 1656 #line 1657 "configure" 4620 fi 4621 4622 if test $use_piolib = 1; then 4623 echo "$as_me:4623: checking \"for PIOLib\"" >&5 4624 echo $ECHO_N "checking \"for PIOLib\"... $ECHO_C" >&6 4625 if test -f /usr/local/lib/libpiolib.a; then 4626 piolibdir="" 4627 pioincdir="" 4628 elif test -f $PIOLIBDIR/libpiolib.a; then 4629 piolibdir=$PIOLIBDIR 4630 pioincdir='-I$(PIOINCDIR)' 4631 else 4632 { { echo "$as_me:4632: error: \"Cannot find PIO library\"" >&5 4633 echo "$as_me: error: \"Cannot find PIO library\"" >&2;} 4634 { (exit 1); exit 1; }; } 4635 fi 4636 echo "$as_me:4636: result: \"ok\"" >&5 4637 echo "${ECHO_T}\"ok\"" >&6 4638 4639 fi 4640 4641 echo "$as_me:4641: checking for ANSI C header files" >&5 4642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4643 if test "${ac_cv_header_stdc+set}" = set; then 4644 echo $ECHO_N "(cached) $ECHO_C" >&6 4645 else 4646 cat >conftest.$ac_ext <<_ACEOF 4647 #line 4647 "configure" 1657 4648 #include "confdefs.h" 1658 4649 #include <stdlib.h> … … 1660 4651 #include <string.h> 1661 4652 #include <float.h> 1662 EOF 1663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1664 { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1665 ac_err=`grep -v '^ *+' conftest.out` 1666 if test -z "$ac_err"; then 1667 rm -rf conftest* 4653 4654 _ACEOF 4655 if { (eval echo "$as_me:4655: \"$ac_cpp conftest.$ac_ext\"") >&5 4656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4657 ac_status=$? 4658 egrep -v '^ *\+' conftest.er1 >conftest.err 4659 rm -f conftest.er1 4660 cat conftest.err >&5 4661 echo "$as_me:4661: \$? = $ac_status" >&5 4662 (exit $ac_status); } >/dev/null; then 4663 if test -s conftest.err; then 4664 ac_cpp_err=$ac_c_preproc_warn_flag 4665 else 4666 ac_cpp_err= 4667 fi 4668 else 4669 ac_cpp_err=yes 4670 fi 4671 if test -z "$ac_cpp_err"; then 1668 4672 ac_cv_header_stdc=yes 1669 4673 else 1670 echo "$ac_err" >&5 1671 echo "configure: failed program was:" >&5 4674 echo "$as_me: failed program was:" >&5 1672 4675 cat conftest.$ac_ext >&5 1673 rm -rf conftest*1674 4676 ac_cv_header_stdc=no 1675 4677 fi 1676 rm -f conftest *4678 rm -f conftest.err conftest.$ac_ext 1677 4679 1678 4680 if test $ac_cv_header_stdc = yes; then 1679 4681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1680 cat > conftest.$ac_ext <<EOF1681 #line 1682"configure"4682 cat >conftest.$ac_ext <<_ACEOF 4683 #line 4683 "configure" 1682 4684 #include "confdefs.h" 1683 4685 #include <string.h> 1684 EOF 4686 4687 _ACEOF 1685 4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1686 4689 egrep "memchr" >/dev/null 2>&1; then 1687 4690 : 1688 4691 else 1689 rm -rf conftest*1690 4692 ac_cv_header_stdc=no 1691 4693 fi … … 1696 4698 if test $ac_cv_header_stdc = yes; then 1697 4699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1698 cat > conftest.$ac_ext <<EOF1699 #line 1700"configure"4700 cat >conftest.$ac_ext <<_ACEOF 4701 #line 4701 "configure" 1700 4702 #include "confdefs.h" 1701 4703 #include <stdlib.h> 1702 EOF 4704 4705 _ACEOF 1703 4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1704 4707 egrep "free" >/dev/null 2>&1; then 1705 4708 : 1706 4709 else 1707 rm -rf conftest*1708 4710 ac_cv_header_stdc=no 1709 4711 fi … … 1714 4716 if test $ac_cv_header_stdc = yes; then 1715 4717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1716 if test "$cross_compiling" = yes; then4718 if test "$cross_compiling" = yes; then 1717 4719 : 1718 4720 else 1719 cat > conftest.$ac_ext <<EOF1720 #line 1721"configure"4721 cat >conftest.$ac_ext <<_ACEOF 4722 #line 4722 "configure" 1721 4723 #include "confdefs.h" 1722 4724 #include <ctype.h> 1723 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1724 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4725 #if ((' ' & 0x0FF) == 0x020) 4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4728 #else 4729 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4730 || ('j' <= (c) && (c) <= 'r') \ 4731 || ('s' <= (c) && (c) <= 'z')) 4732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4733 #endif 4734 1725 4735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1726 int main () { int i; for (i = 0; i < 256; i++) 1727 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1728 exit (0); } 1729 1730 EOF 1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1732 then 4736 int 4737 main () 4738 { 4739 int i; 4740 for (i = 0; i < 256; i++) 4741 if (XOR (islower (i), ISLOWER (i)) 4742 || toupper (i) != TOUPPER (i)) 4743 exit(2); 4744 exit (0); 4745 } 4746 _ACEOF 4747 rm -f conftest$ac_exeext 4748 if { (eval echo "$as_me:4748: \"$ac_link\"") >&5 4749 (eval $ac_link) 2>&5 4750 ac_status=$? 4751 echo "$as_me:4751: \$? = $ac_status" >&5 4752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4753 { (eval echo "$as_me:4753: \"$ac_try\"") >&5 4754 (eval $ac_try) 2>&5 4755 ac_status=$? 4756 echo "$as_me:4756: \$? = $ac_status" >&5 4757 (exit $ac_status); }; }; then 1733 4758 : 1734 4759 else 1735 echo "configure: failed program was:" >&5 1736 cat conftest.$ac_ext >&5 1737 rm -fr conftest* 1738 ac_cv_header_stdc=no 1739 fi 1740 rm -fr conftest* 1741 fi 1742 1743 fi 1744 fi 1745 1746 echo "$ac_t""$ac_cv_header_stdc" 1>&6 4760 echo "$as_me: program exited with status $ac_status" >&5 4761 echo "$as_me: failed program was:" >&5 4762 cat conftest.$ac_ext >&5 4763 ac_cv_header_stdc=no 4764 fi 4765 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4766 fi 4767 fi 4768 fi 4769 echo "$as_me:4769: result: $ac_cv_header_stdc" >&5 4770 echo "${ECHO_T}$ac_cv_header_stdc" >&6 1747 4771 if test $ac_cv_header_stdc = yes; then 1748 cat >> confdefs.h <<\EOF 4772 4773 cat >>confdefs.h <<\EOF 1749 4774 #define STDC_HEADERS 1 1750 4775 EOF … … 1752 4777 fi 1753 4778 1754 for ac_h dr in values.h stdint.h4779 for ac_header in values.h stdint.h 1755 4780 do 1756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1758 echo "configure:1759: checking for $ac_hdr" >&5 1759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1760 echo $ac_n "(cached) $ac_c" 1>&6 1761 else 1762 cat > conftest.$ac_ext <<EOF 1763 #line 1764 "configure" 1764 #include "confdefs.h" 1765 #include <$ac_hdr> 4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4782 echo "$as_me:4782: checking for $ac_header" >&5 4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786 else 4787 cat >conftest.$ac_ext <<_ACEOF 4788 #line 4788 "configure" 4789 #include "confdefs.h" 4790 #include <$ac_header> 4791 _ACEOF 4792 if { (eval echo "$as_me:4792: \"$ac_cpp conftest.$ac_ext\"") >&5 4793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4794 ac_status=$? 4795 egrep -v '^ *\+' conftest.er1 >conftest.err 4796 rm -f conftest.er1 4797 cat conftest.err >&5 4798 echo "$as_me:4798: \$? = $ac_status" >&5 4799 (exit $ac_status); } >/dev/null; then 4800 if test -s conftest.err; then 4801 ac_cpp_err=$ac_c_preproc_warn_flag 4802 else 4803 ac_cpp_err= 4804 fi 4805 else 4806 ac_cpp_err=yes 4807 fi 4808 if test -z "$ac_cpp_err"; then 4809 eval "$as_ac_Header=yes" 4810 else 4811 echo "$as_me: failed program was:" >&5 4812 cat conftest.$ac_ext >&5 4813 eval "$as_ac_Header=no" 4814 fi 4815 rm -f conftest.err conftest.$ac_ext 4816 fi 4817 echo "$as_me:4817: result: `eval echo '${'$as_ac_Header'}'`" >&5 4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4820 cat >>confdefs.h <<EOF 4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 1766 4822 EOF 1767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1768 { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1769 ac_err=`grep -v '^ *+' conftest.out` 1770 if test -z "$ac_err"; then 1771 rm -rf conftest* 1772 eval "ac_cv_header_$ac_safe=yes" 1773 else 1774 echo "$ac_err" >&5 1775 echo "configure: failed program was:" >&5 1776 cat conftest.$ac_ext >&5 1777 rm -rf conftest* 1778 eval "ac_cv_header_$ac_safe=no" 1779 fi 1780 rm -f conftest* 1781 fi 1782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1783 echo "$ac_t""yes" 1>&6 1784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1785 cat >> confdefs.h <<EOF 1786 #define $ac_tr_hdr 1 1787 EOF 1788 1789 else 1790 echo "$ac_t""no" 1>&6 4823 1791 4824 fi 1792 4825 done 1793 4826 1794 1795 outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile Makefile.h" 4827 outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile" 1796 4828 if [ $use_sophya = 1 ]; then 1797 4829 outfiles="$outfiles ProcWSophya/Makefile" 1798 4830 fi 1799 4831 1800 trap '' 1 2 15 1801 cat > confcache <<\EOF4832 ac_config_files="$ac_config_files $outfiles" 4833 cat >confcache <<\_ACEOF 1802 4834 # This file is a shell script that caches the results of configure 1803 4835 # tests run on this system so they can be shared between configure 1804 # scripts and configure runs. It is not useful on other systems. 1805 # If it contains results you don't want to keep, you may remove or edit it. 4836 # scripts and configure runs, see configure's option --config-cache. 4837 # It is not useful on other systems. If it contains results you don't 4838 # want to keep, you may remove or edit it. 1806 4839 # 1807 # By default, configure uses ./config.cache as the cache file, 1808 # creating it if it does not exist already. You can give configure 1809 # the --cache-file=FILE option to use a different cache file; that is 1810 # what configure does when it calls configure scripts in 1811 # subdirectories, so they share the cache. 1812 # Giving --cache-file=/dev/null disables caching, for debugging configure. 1813 # config.status only pays attention to the cache file if you give it the 1814 # --recheck option to rerun configure. 4840 # config.status only pays attention to the cache file if you give it 4841 # the --recheck option to rerun configure. 1815 4842 # 1816 EOF 4843 # `ac_cv_env_foo' variables (set or unset) will be overriden when 4844 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4845 # following values. 4846 4847 _ACEOF 4848 1817 4849 # The following way of writing the cache mishandles newlines in values, 1818 4850 # but we know of no workaround that is simple, portable, and efficient. … … 1820 4852 # Ultrix sh set writes to stderr and can't be redirected directly, 1821 4853 # and sets the high bit in the cache file unless we assign to the vars. 1822 (set) 2>&1 | 1823 case `(ac_space=' '; set) 2>&1` in 1824 *ac_space=\ *) 1825 # `set' does not quote correctly, so add quotes (double-quote substitution 1826 # turns \\\\ into \\, and sed turns \\ into \). 1827 sed -n \ 1828 -e "s/'/'\\\\''/g" \ 1829 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1830 ;; 1831 *) 1832 # `set' quotes correctly as required by POSIX, so do not add quotes. 1833 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1834 ;; 1835 esac >> confcache 1836 if cmp -s $cache_file confcache; then 1837 : 1838 else 4854 { 4855 (set) 2>&1 | 4856 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4857 *ac_space=\ *) 4858 # `set' does not quote correctly, so add quotes (double-quote 4859 # substitution turns \\\\ into \\, and sed turns \\ into \). 4860 sed -n \ 4861 "s/'/'\\\\''/g; 4862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4863 ;; 4864 *) 4865 # `set' quotes correctly as required by POSIX, so do not add quotes. 4866 sed -n \ 4867 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4868 ;; 4869 esac; 4870 } | 4871 sed ' 4872 t clear 4873 : clear 4874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4875 t end 4876 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4877 : end' >>confcache 4878 if cmp -s $cache_file confcache; then :; else 1839 4879 if test -w $cache_file; then 1840 echo "updating cache $cache_file"1841 cat confcache > 4880 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4881 cat confcache >$cache_file 1842 4882 else 1843 4883 echo "not updating unwritable cache $cache_file" … … 1846 4886 rm -f confcache 1847 4887 1848 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 151849 1850 4888 test "x$prefix" = xNONE && prefix=$ac_default_prefix 1851 4889 # Let make expand exec_prefix. 1852 4890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1853 4891 1854 # Any assignment to VPATH causes Sun make to only execute 1855 # the first set of double-colon rules, so remove it if not needed. 1856 # If there is a colon in the path, we need to keep it. 4892 # VPATH may cause trouble with some makes, so we remove $(srcdir), 4893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4894 # trailing colons and then remove the whole line if VPATH becomes empty 4895 # (actually we leave an empty line to preserve line numbers). 1857 4896 if test "x$srcdir" = x.; then 1858 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1859 fi 1860 1861 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4897 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4898 s/:*\$(srcdir):*/:/; 4899 s/:*\${srcdir}:*/:/; 4900 s/:*@srcdir@:*/:/; 4901 s/^\([^=]*=[ ]*\):*/\1/; 4902 s/:*$//; 4903 s/^[^=]*=[ ]*$//; 4904 }' 4905 fi 1862 4906 1863 4907 DEFS=-DHAVE_CONFIG_H 1864 4908 1865 # Without the "./", some shells look in PATH for config.status.1866 4909 : ${CONFIG_STATUS=./config.status} 1867 1868 echo creating $CONFIG_STATUS 1869 rm -f $CONFIG_STATUS 1870 cat > $CONFIG_STATUS <<EOF 1871 #! /bin/sh 4910 ac_clean_files_save=$ac_clean_files 4911 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4912 { echo "$as_me:4912: creating $CONFIG_STATUS" >&5 4913 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4914 cat >$CONFIG_STATUS <<_ACEOF 4915 #! $SHELL 1872 4916 # Generated automatically by configure. 1873 4917 # Run this file to recreate the current configuration. 1874 # This directory was configured as follows,1875 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:1876 #1877 # $0 $ac_configure_args1878 #1879 4918 # Compiler output produced by configure, useful for debugging 1880 # configure, is in ./config.log if it exists. 1881 1882 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1883 for ac_option 4919 # configure, is in config.log if it exists. 4920 4921 debug=false 4922 SHELL=\${CONFIG_SHELL-$SHELL} 4923 ac_cs_invocation="\$0 \$@" 4924 4925 _ACEOF 4926 4927 cat >>$CONFIG_STATUS <<\_ACEOF 4928 # Be Bourne compatible 4929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4930 emulate sh 4931 NULLCMD=: 4932 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4933 set -o posix 4934 fi 4935 4936 # Name of the executable. 4937 as_me=`echo "$0" |sed 's,.*[\\/],,'` 4938 4939 if expr a : '\(a\)' >/dev/null 2>&1; then 4940 as_expr=expr 4941 else 4942 as_expr=false 4943 fi 4944 4945 rm -f conf$$ conf$$.exe conf$$.file 4946 echo >conf$$.file 4947 if ln -s conf$$.file conf$$ 2>/dev/null; then 4948 # We could just check for DJGPP; but this test a) works b) is more generic 4949 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4950 if test -f conf$$.exe; then 4951 # Don't use ln at all; we don't have any links 4952 as_ln_s='cp -p' 4953 else 4954 as_ln_s='ln -s' 4955 fi 4956 elif ln conf$$.file conf$$ 2>/dev/null; then 4957 as_ln_s=ln 4958 else 4959 as_ln_s='cp -p' 4960 fi 4961 rm -f conf$$ conf$$.exe conf$$.file 4962 4963 as_executable_p="test -f" 4964 4965 # Support unset when possible. 4966 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4967 as_unset=unset 4968 else 4969 as_unset=false 4970 fi 4971 4972 # NLS nuisances. 4973 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4974 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4975 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4976 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4977 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4978 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4979 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4980 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 4981 4982 # IFS 4983 # We need space, tab and new line, in precisely that order. 4984 as_nl=' 4985 ' 4986 IFS=" $as_nl" 4987 4988 # CDPATH. 4989 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 4990 4991 exec 6>&1 4992 4993 _ACEOF 4994 4995 # Files that config.status was made for. 4996 if test -n "$ac_config_files"; then 4997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4998 fi 4999 5000 if test -n "$ac_config_headers"; then 5001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5002 fi 5003 5004 if test -n "$ac_config_links"; then 5005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5006 fi 5007 5008 if test -n "$ac_config_commands"; then 5009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5010 fi 5011 5012 cat >>$CONFIG_STATUS <<\EOF 5013 5014 ac_cs_usage="\ 5015 \`$as_me' instantiates files from templates according to the 5016 current configuration. 5017 5018 Usage: $0 [OPTIONS] [FILE]... 5019 5020 -h, --help print this help, then exit 5021 -V, --version print version number, then exit 5022 -d, --debug don't remove temporary files 5023 --recheck update $as_me by reconfiguring in the same conditions 5024 --file=FILE[:TEMPLATE] 5025 instantiate the configuration file FILE 5026 --header=FILE[:TEMPLATE] 5027 instantiate the configuration header FILE 5028 5029 Configuration files: 5030 $config_files 5031 5032 Configuration headers: 5033 $config_headers 5034 5035 Report bugs to <bug-autoconf@gnu.org>." 5036 EOF 5037 5038 cat >>$CONFIG_STATUS <<EOF 5039 ac_cs_version="\\ 5040 config.status 5041 configured by $0, generated by GNU Autoconf 2.52, 5042 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5043 5044 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5045 Free Software Foundation, Inc. 5046 This config.status script is free software; the Free Software Foundation 5047 gives unlimited permission to copy, distribute and modify it." 5048 srcdir=$srcdir 5049 INSTALL="$INSTALL" 5050 EOF 5051 5052 cat >>$CONFIG_STATUS <<\EOF 5053 # If no file are specified by the user, then we need to provide default 5054 # value. By we need to know if files were specified by the user. 5055 ac_need_defaults=: 5056 while test $# != 0 1884 5057 do 1885 case "\$ac_option" in 5058 case $1 in 5059 --*=*) 5060 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5061 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5062 shift 5063 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5064 shift 5065 ;; 5066 -*);; 5067 *) # This is not an option, so the user has probably given explicit 5068 # arguments. 5069 ac_need_defaults=false;; 5070 esac 5071 5072 case $1 in 5073 # Handling of the options. 5074 EOF 5075 cat >>$CONFIG_STATUS <<EOF 1886 5076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1887 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1888 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1889 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1890 echo "$CONFIG_STATUS generated by autoconf version 2.12" 1891 exit 0 ;; 1892 -help | --help | --hel | --he | --h) 1893 echo "\$ac_cs_usage"; exit 0 ;; 1894 *) echo "\$ac_cs_usage"; exit 1 ;; 5077 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5078 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5079 EOF 5080 cat >>$CONFIG_STATUS <<\EOF 5081 --version | --vers* | -V ) 5082 echo "$ac_cs_version"; exit 0 ;; 5083 --he | --h) 5084 # Conflict between --help and --header 5085 { { echo "$as_me:5085: error: ambiguous option: $1 5086 Try \`$0 --help' for more information." >&5 5087 echo "$as_me: error: ambiguous option: $1 5088 Try \`$0 --help' for more information." >&2;} 5089 { (exit 1); exit 1; }; };; 5090 --help | --hel | -h ) 5091 echo "$ac_cs_usage"; exit 0 ;; 5092 --debug | --d* | -d ) 5093 debug=: ;; 5094 --file | --fil | --fi | --f ) 5095 shift 5096 CONFIG_FILES="$CONFIG_FILES $1" 5097 ac_need_defaults=false;; 5098 --header | --heade | --head | --hea ) 5099 shift 5100 CONFIG_HEADERS="$CONFIG_HEADERS $1" 5101 ac_need_defaults=false;; 5102 5103 # This is an error. 5104 -*) { { echo "$as_me:5104: error: unrecognized option: $1 5105 Try \`$0 --help' for more information." >&5 5106 echo "$as_me: error: unrecognized option: $1 5107 Try \`$0 --help' for more information." >&2;} 5108 { (exit 1); exit 1; }; } ;; 5109 5110 *) ac_config_targets="$ac_config_targets $1" ;; 5111 5112 esac 5113 shift 5114 done 5115 5116 exec 5>>config.log 5117 cat >&5 << _ACEOF 5118 5119 ## ----------------------- ## 5120 ## Running config.status. ## 5121 ## ----------------------- ## 5122 5123 This file was extended by $as_me 2.52, executed with 5124 CONFIG_FILES = $CONFIG_FILES 5125 CONFIG_HEADERS = $CONFIG_HEADERS 5126 CONFIG_LINKS = $CONFIG_LINKS 5127 CONFIG_COMMANDS = $CONFIG_COMMANDS 5128 > $ac_cs_invocation 5129 on `(hostname || uname -n) 2>/dev/null | sed 1q` 5130 5131 _ACEOF 5132 EOF 5133 5134 cat >>$CONFIG_STATUS <<\EOF 5135 for ac_config_target in $ac_config_targets 5136 do 5137 case "$ac_config_target" in 5138 # Handling of arguments. 5139 "$outfiles" ) CONFIG_FILES="$CONFIG_FILES $outfiles" ;; 5140 "conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;; 5141 *) { { echo "$as_me:5141: error: invalid argument: $ac_config_target" >&5 5142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5143 { (exit 1); exit 1; }; };; 1895 5144 esac 1896 5145 done 1897 5146 1898 ac_given_srcdir=$srcdir 1899 ac_given_INSTALL="$INSTALL" 1900 1901 trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 5147 # If the user did not use the arguments to specify the items to instantiate, 5148 # then the envvar interface is used. Set only those that are not. 5149 # We use the long form for the default assignment because of an extremely 5150 # bizarre bug on SunOS 4.1.3. 5151 if $ac_need_defaults; then 5152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5153 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5154 fi 5155 5156 # Create a temporary directory, and hook for its removal unless debugging. 5157 $debug || 5158 { 5159 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5160 trap '{ (exit 1); exit 1; }' 1 2 13 15 5161 } 5162 5163 # Create a (secure) tmp directory for tmp files. 5164 : ${TMPDIR=/tmp} 5165 { 5166 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5167 test -n "$tmp" && test -d "$tmp" 5168 } || 5169 { 5170 tmp=$TMPDIR/cs$$-$RANDOM 5171 (umask 077 && mkdir $tmp) 5172 } || 5173 { 5174 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5175 { (exit 1); exit 1; } 5176 } 5177 1902 5178 EOF 1903 cat >> $CONFIG_STATUS <<EOF 1904 1905 # Protect against being on the right side of a sed subst in config.status. 1906 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1907 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1908 $ac_vpsub 1909 $extrasub 1910 s%@CFLAGS@%$CFLAGS%g 1911 s%@CPPFLAGS@%$CPPFLAGS%g 1912 s%@CXXFLAGS@%$CXXFLAGS%g 1913 s%@DEFS@%$DEFS%g 1914 s%@LDFLAGS@%$LDFLAGS%g 1915 s%@LIBS@%$LIBS%g 1916 s%@exec_prefix@%$exec_prefix%g 1917 s%@prefix@%$prefix%g 1918 s%@program_transform_name@%$program_transform_name%g 1919 s%@bindir@%$bindir%g 1920 s%@sbindir@%$sbindir%g 1921 s%@libexecdir@%$libexecdir%g 1922 s%@datadir@%$datadir%g 1923 s%@sysconfdir@%$sysconfdir%g 1924 s%@sharedstatedir@%$sharedstatedir%g 1925 s%@localstatedir@%$localstatedir%g 1926 s%@libdir@%$libdir%g 1927 s%@includedir@%$includedir%g 1928 s%@oldincludedir@%$oldincludedir%g 1929 s%@infodir@%$infodir%g 1930 s%@mandir@%$mandir%g 1931 s%@use_sophya@%$use_sophya%g 1932 s%@CC@%$CC%g 1933 s%@CXX@%$CXX%g 1934 s%@AR@%$AR%g 1935 s%@ARFLAGS@%$ARFLAGS%g 1936 s%@RANLIB@%$RANLIB%g 1937 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1938 s%@INSTALL_DATA@%$INSTALL_DATA%g 1939 s%@gcc@%$gcc%g 1940 s%@cfitslibdir@%$cfitslibdir%g 1941 s%@cfitsincdir@%$cfitsincdir%g 1942 s%@CPP@%$CPP%g 1943 5179 5180 cat >>$CONFIG_STATUS <<EOF 5181 5182 # 5183 # CONFIG_FILES section. 5184 # 5185 5186 # No need to generate the scripts if there are no CONFIG_FILES. 5187 # This happens for instance when ./config.status config.h 5188 if test -n "\$CONFIG_FILES"; then 5189 # Protect against being on the right side of a sed subst in config.status. 5190 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5191 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5192 s,@SHELL@,$SHELL,;t t 5193 s,@exec_prefix@,$exec_prefix,;t t 5194 s,@prefix@,$prefix,;t t 5195 s,@program_transform_name@,$program_transform_name,;t t 5196 s,@bindir@,$bindir,;t t 5197 s,@sbindir@,$sbindir,;t t 5198 s,@libexecdir@,$libexecdir,;t t 5199 s,@datadir@,$datadir,;t t 5200 s,@sysconfdir@,$sysconfdir,;t t 5201 s,@sharedstatedir@,$sharedstatedir,;t t 5202 s,@localstatedir@,$localstatedir,;t t 5203 s,@libdir@,$libdir,;t t 5204 s,@includedir@,$includedir,;t t 5205 s,@oldincludedir@,$oldincludedir,;t t 5206 s,@infodir@,$infodir,;t t 5207 s,@mandir@,$mandir,;t t 5208 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5209 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5210 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5211 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5212 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5213 s,@build_alias@,$build_alias,;t t 5214 s,@host_alias@,$host_alias,;t t 5215 s,@target_alias@,$target_alias,;t t 5216 s,@ECHO_C@,$ECHO_C,;t t 5217 s,@ECHO_N@,$ECHO_N,;t t 5218 s,@ECHO_T@,$ECHO_T,;t t 5219 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5220 s,@DEFS@,$DEFS,;t t 5221 s,@LIBS@,$LIBS,;t t 5222 s,@use_sophya@,$use_sophya,;t t 5223 s,@use_piolib@,$use_piolib,;t t 5224 s,@CC@,$CC,;t t 5225 s,@CFLAGS@,$CFLAGS,;t t 5226 s,@LDFLAGS@,$LDFLAGS,;t t 5227 s,@CPPFLAGS@,$CPPFLAGS,;t t 5228 s,@ac_ct_CC@,$ac_ct_CC,;t t 5229 s,@EXEEXT@,$EXEEXT,;t t 5230 s,@OBJEXT@,$OBJEXT,;t t 5231 s,@CXX@,$CXX,;t t 5232 s,@CXXFLAGS@,$CXXFLAGS,;t t 5233 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 5234 s,@AR@,$AR,;t t 5235 s,@ARFLAGS@,$ARFLAGS,;t t 5236 s,@RANLIB@,$RANLIB,;t t 5237 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5238 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5239 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5240 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5241 s,@gcc@,$gcc,;t t 5242 s,@CPP@,$CPP,;t t 5243 s,@cfitslibdir@,$cfitslibdir,;t t 5244 s,@cfitsincdir@,$cfitsincdir,;t t 5245 s,@piolibdir@,$piolibdir,;t t 5246 s,@pioincdir@,$pioincdir,;t t 1944 5247 CEOF 5248 1945 5249 EOF 1946 5250 1947 cat >> $CONFIG_STATUS <<\EOF 1948 1949 # Split the substitutions into bite-sized pieces for seds with 1950 # small command number limits, like on Digital OSF/1 and HP-UX. 1951 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1952 ac_file=1 # Number of current file. 1953 ac_beg=1 # First line for current file. 1954 ac_end=$ac_max_sed_cmds # Line after last line for current file. 1955 ac_more_lines=: 1956 ac_sed_cmds="" 1957 while $ac_more_lines; do 1958 if test $ac_beg -gt 1; then 1959 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1960 else 1961 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5251 cat >>$CONFIG_STATUS <<\EOF 5252 # Split the substitutions into bite-sized pieces for seds with 5253 # small command number limits, like on Digital OSF/1 and HP-UX. 5254 ac_max_sed_lines=48 5255 ac_sed_frag=1 # Number of current file. 5256 ac_beg=1 # First line for current file. 5257 ac_end=$ac_max_sed_lines # Line after last line for current file. 5258 ac_more_lines=: 5259 ac_sed_cmds= 5260 while $ac_more_lines; do 5261 if test $ac_beg -gt 1; then 5262 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5263 else 5264 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5265 fi 5266 if test ! -s $tmp/subs.frag; then 5267 ac_more_lines=false 5268 else 5269 # The purpose of the label and of the branching condition is to 5270 # speed up the sed processing (if there are no `@' at all, there 5271 # is no need to browse any of the substitutions). 5272 # These are the two extra sed commands mentioned above. 5273 (echo ':t 5274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5275 if test -z "$ac_sed_cmds"; then 5276 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5277 else 5278 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5279 fi 5280 ac_sed_frag=`expr $ac_sed_frag + 1` 5281 ac_beg=$ac_end 5282 ac_end=`expr $ac_end + $ac_max_sed_lines` 5283 fi 5284 done 5285 if test -z "$ac_sed_cmds"; then 5286 ac_sed_cmds=cat 1962 5287 fi 1963 if test ! -s conftest.s$ac_file; then 1964 ac_more_lines=false 1965 rm -f conftest.s$ac_file 1966 else 1967 if test -z "$ac_sed_cmds"; then 1968 ac_sed_cmds="sed -f conftest.s$ac_file" 1969 else 1970 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1971 fi 1972 ac_file=`expr $ac_file + 1` 1973 ac_beg=$ac_end 1974 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1975 fi 1976 done 1977 if test -z "$ac_sed_cmds"; then 1978 ac_sed_cmds=cat 1979 fi 5288 fi # test -n "$CONFIG_FILES" 5289 1980 5290 EOF 1981 1982 cat >> $CONFIG_STATUS <<EOF 1983 1984 CONFIG_FILES=\${CONFIG_FILES-"$outfiles"} 1985 EOF 1986 cat >> $CONFIG_STATUS <<\EOF 1987 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5291 cat >>$CONFIG_STATUS <<\EOF 5292 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 1988 5293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1989 case "$ac_file" in 1990 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1991 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1992 *) ac_file_in="${ac_file}.in" ;; 5294 case $ac_file in 5295 - | *:- | *:-:* ) # input from stdin 5296 cat >$tmp/stdin 5297 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5298 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5299 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5301 * ) ac_file_in=$ac_file.in ;; 1993 5302 esac 1994 5303 1995 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1996 1997 # Remove last slash and all that follows it. Not all systems have dirname. 1998 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5304 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5305 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5306 X"$ac_file" : 'X\(//\)[^/]' \| \ 5307 X"$ac_file" : 'X\(//\)$' \| \ 5308 X"$ac_file" : 'X\(/\)' \| \ 5309 . : '\(.\)' 2>/dev/null || 5310 echo X"$ac_file" | 5311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5312 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5313 /^X\(\/\/\)$/{ s//\1/; q; } 5314 /^X\(\/\).*/{ s//\1/; q; } 5315 s/.*/./; q'` 1999 5316 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2000 # The file is in a subdirectory. 2001 test ! -d "$ac_dir" && mkdir "$ac_dir" 2002 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5317 { case "$ac_dir" in 5318 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5319 *) as_incr_dir=.;; 5320 esac 5321 as_dummy="$ac_dir" 5322 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5323 case $as_mkdir_dir in 5324 # Skip DOS drivespec 5325 ?:) as_incr_dir=$as_mkdir_dir ;; 5326 *) 5327 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5328 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5329 ;; 5330 esac 5331 done; } 5332 5333 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 2003 5334 # A "../" for each directory in $ac_dir_suffix. 2004 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`5335 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 2005 5336 else 2006 5337 ac_dir_suffix= ac_dots= 2007 5338 fi 2008 5339 2009 case "$ac_given_srcdir" in 2010 .) srcdir=. 2011 if test -z "$ac_dots"; then top_srcdir=. 2012 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2013 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5340 case $srcdir in 5341 .) ac_srcdir=. 5342 if test -z "$ac_dots"; then 5343 ac_top_srcdir=. 5344 else 5345 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5346 fi ;; 5347 [\\/]* | ?:[\\/]* ) 5348 ac_srcdir=$srcdir$ac_dir_suffix; 5349 ac_top_srcdir=$srcdir ;; 2014 5350 *) # Relative path. 2015 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"2016 top_srcdir="$ac_dots$ac_given_srcdir";;5351 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5352 ac_top_srcdir=$ac_dots$srcdir ;; 2017 5353 esac 2018 5354 2019 case "$ac_given_INSTALL"in2020 [ /$]*) INSTALL="$ac_given_INSTALL";;2021 *) INSTALL="$ac_dots$ac_given_INSTALL";;5355 case $INSTALL in 5356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5357 *) ac_INSTALL=$ac_dots$INSTALL ;; 2022 5358 esac 2023 5359 2024 echo creating "$ac_file" 2025 rm -f "$ac_file" 2026 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2027 case "$ac_file" in 2028 *Makefile*) ac_comsub="1i\\ 2029 # $configure_input" ;; 2030 *) ac_comsub= ;; 2031 esac 2032 2033 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2034 sed -e "$ac_comsub 2035 s%@configure_input@%$configure_input%g 2036 s%@srcdir@%$srcdir%g 2037 s%@top_srcdir@%$top_srcdir%g 2038 s%@INSTALL@%$INSTALL%g 2039 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2040 fi; done 2041 rm -f conftest.s* 5360 if test x"$ac_file" != x-; then 5361 { echo "$as_me:5361: creating $ac_file" >&5 5362 echo "$as_me: creating $ac_file" >&6;} 5363 rm -f "$ac_file" 5364 fi 5365 # Let's still pretend it is `configure' which instantiates (i.e., don't 5366 # use $as_me), people would be surprised to read: 5367 # /* config.h. Generated automatically by config.status. */ 5368 configure_input="Generated automatically from `echo $ac_file_in | 5369 sed 's,.*/,,'` by configure." 5370 5371 # First look for the input files in the build tree, otherwise in the 5372 # src tree. 5373 ac_file_inputs=`IFS=: 5374 for f in $ac_file_in; do 5375 case $f in 5376 -) echo $tmp/stdin ;; 5377 [\\/$]*) 5378 # Absolute (can't be DOS-style, as IFS=:) 5379 test -f "$f" || { { echo "$as_me:5379: error: cannot find input file: $f" >&5 5380 echo "$as_me: error: cannot find input file: $f" >&2;} 5381 { (exit 1); exit 1; }; } 5382 echo $f;; 5383 *) # Relative 5384 if test -f "$f"; then 5385 # Build tree 5386 echo $f 5387 elif test -f "$srcdir/$f"; then 5388 # Source tree 5389 echo $srcdir/$f 5390 else 5391 # /dev/null tree 5392 { { echo "$as_me:5392: error: cannot find input file: $f" >&5 5393 echo "$as_me: error: cannot find input file: $f" >&2;} 5394 { (exit 1); exit 1; }; } 5395 fi;; 5396 esac 5397 done` || { (exit 1); exit 1; } 5398 EOF 5399 cat >>$CONFIG_STATUS <<EOF 5400 sed "$ac_vpsub 5401 $extrasub 5402 EOF 5403 cat >>$CONFIG_STATUS <<\EOF 5404 :t 5405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5406 s,@configure_input@,$configure_input,;t t 5407 s,@srcdir@,$ac_srcdir,;t t 5408 s,@top_srcdir@,$ac_top_srcdir,;t t 5409 s,@INSTALL@,$ac_INSTALL,;t t 5410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5411 rm -f $tmp/stdin 5412 if test x"$ac_file" != x-; then 5413 mv $tmp/out $ac_file 5414 else 5415 cat $tmp/out 5416 rm -f $tmp/out 5417 fi 5418 5419 done 5420 EOF 5421 cat >>$CONFIG_STATUS <<\EOF 5422 5423 # 5424 # CONFIG_HEADER section. 5425 # 2042 5426 2043 5427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 2045 5429 # 2046 5430 # ac_d sets the value in "#define NAME VALUE" lines. 2047 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][ ]*\)'2048 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'2049 ac_dC=' \3'2050 ac_dD=' %g'2051 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".2052 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'2053 ac_uB=' \([ ]\)%\1#\2define\3'5431 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5432 ac_dB='[ ].*$,\1#\2' 5433 ac_dC=' ' 5434 ac_dD=',;t' 5435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5436 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5437 ac_uB='$,\1#\2define\3' 2054 5438 ac_uC=' ' 2055 ac_uD='\4%g' 2056 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2057 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2058 ac_eB='$%\1#\2define\3' 2059 ac_eC=' ' 2060 ac_eD='%g' 2061 2062 if test "${CONFIG_HEADERS+set}" != set; then 5439 ac_uD=',;t' 5440 5441 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5443 case $ac_file in 5444 - | *:- | *:-:* ) # input from stdin 5445 cat >$tmp/stdin 5446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5450 * ) ac_file_in=$ac_file.in ;; 5451 esac 5452 5453 test x"$ac_file" != x- && { echo "$as_me:5453: creating $ac_file" >&5 5454 echo "$as_me: creating $ac_file" >&6;} 5455 5456 # First look for the input files in the build tree, otherwise in the 5457 # src tree. 5458 ac_file_inputs=`IFS=: 5459 for f in $ac_file_in; do 5460 case $f in 5461 -) echo $tmp/stdin ;; 5462 [\\/$]*) 5463 # Absolute (can't be DOS-style, as IFS=:) 5464 test -f "$f" || { { echo "$as_me:5464: error: cannot find input file: $f" >&5 5465 echo "$as_me: error: cannot find input file: $f" >&2;} 5466 { (exit 1); exit 1; }; } 5467 echo $f;; 5468 *) # Relative 5469 if test -f "$f"; then 5470 # Build tree 5471 echo $f 5472 elif test -f "$srcdir/$f"; then 5473 # Source tree 5474 echo $srcdir/$f 5475 else 5476 # /dev/null tree 5477 { { echo "$as_me:5477: error: cannot find input file: $f" >&5 5478 echo "$as_me: error: cannot find input file: $f" >&2;} 5479 { (exit 1); exit 1; }; } 5480 fi;; 5481 esac 5482 done` || { (exit 1); exit 1; } 5483 # Remove the trailing spaces. 5484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5485 2063 5486 EOF 2064 cat >> $CONFIG_STATUS <<EOF 2065 CONFIG_HEADERS="conf.h" 5487 5488 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5489 # `conftest.undefs', that substitutes the proper values into 5490 # config.h.in to produce config.h. The first handles `#define' 5491 # templates, and the second `#undef' templates. 5492 # And first: Protect against being on the right side of a sed subst in 5493 # config.status. Protect against being in an unquoted here document 5494 # in config.status. 5495 rm -f conftest.defines conftest.undefs 5496 # Using a here document instead of a string reduces the quoting nightmare. 5497 # Putting comments in sed scripts is not portable. 5498 # 5499 # `end' is used to avoid that the second main sed command (meant for 5500 # 0-ary CPP macros) applies to n-ary macro definitions. 5501 # See the Autoconf documentation for `clear'. 5502 cat >confdef2sed.sed <<\EOF 5503 s/[\\&,]/\\&/g 5504 s,[\\$`],\\&,g 5505 t clear 5506 : clear 5507 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5508 t end 5509 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5510 : end 2066 5511 EOF 2067 cat >> $CONFIG_STATUS <<\EOF 2068 fi 2069 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2071 case "$ac_file" in 2072 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2073 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2074 *) ac_file_in="${ac_file}.in" ;; 2075 esac 2076 2077 echo creating $ac_file 2078 2079 rm -f conftest.frag conftest.in conftest.out 2080 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2081 cat $ac_file_inputs > conftest.in 2082 2083 EOF 2084 2085 # Transform confdefs.h into a sed script conftest.vals that substitutes 2086 # the proper values into config.h.in to produce config.h. And first: 2087 # Protect against being on the right side of a sed subst in config.status. 2088 # Protect against being in an unquoted here document in config.status. 2089 rm -f conftest.vals 2090 cat > conftest.hdr <<\EOF 2091 s/[\\&%]/\\&/g 2092 s%[\\$`]%\\&%g 2093 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2094 s%ac_d%ac_u%gp 2095 s%ac_u%ac_e%gp 2096 EOF 2097 sed -n -f conftest.hdr confdefs.h > conftest.vals 2098 rm -f conftest.hdr 5512 # If some macros were called several times there might be several times 5513 # the same #defines, which is useless. Nevertheless, we may not want to 5514 # sort them, since we want the *last* AC-DEFINE to be honored. 5515 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5516 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5517 rm -f confdef2sed.sed 2099 5518 2100 5519 # This sed command replaces #undef with comments. This is necessary, for 2101 5520 # example, in the case of _POSIX_SOURCE, which is predefined and required 2102 5521 # on some systems where configure will not decide to define it. 2103 cat >> conftest.vals <<\EOF2104 s %^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%5522 cat >>conftest.undefs <<\EOF 5523 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 2105 5524 EOF 2106 5525 2107 # Break up conftest.vals because some shells have a limit on 2108 # the size of here documents, and old seds have small limits too. 2109 5526 # Break up conftest.defines because some shells have a limit on the size 5527 # of here documents, and old seds have small limits too (100 cmds). 5528 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5529 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5530 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5531 echo ' :' >>$CONFIG_STATUS 2110 5532 rm -f conftest.tail 2111 while :5533 while grep . conftest.defines >/dev/null 2112 5534 do 2113 ac_lines=`grep -c . conftest.vals` 2114 # grep -c gives empty output for an empty file on some AIX systems. 2115 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2116 # Write a limited-size here document to conftest.frag. 2117 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2118 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5535 # Write a limited-size here document to $tmp/defines.sed. 5536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5537 # Speed up: don't consider the non `#define' lines. 5538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5539 # Work around the forget-to-reset-the-flag bug. 5540 echo 't clr' >>$CONFIG_STATUS 5541 echo ': clr' >>$CONFIG_STATUS 5542 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 2119 5543 echo 'CEOF 2120 sed -f conftest.frag conftest.in > conftest.out2121 rm -f conftest.in2122 mv conftest.out conftest.in2123 ' >> 2124 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail2125 rm -f conftest. vals2126 mv conftest.tail conftest. vals5544 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5545 rm -f $tmp/in 5546 mv $tmp/out $tmp/in 5547 ' >>$CONFIG_STATUS 5548 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5549 rm -f conftest.defines 5550 mv conftest.tail conftest.defines 2127 5551 done 2128 rm -f conftest.vals 2129 2130 cat >> $CONFIG_STATUS <<\EOF 2131 rm -f conftest.frag conftest.h 2132 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2133 cat conftest.in >> conftest.h 2134 rm -f conftest.in 2135 if cmp -s $ac_file conftest.h 2>/dev/null; then 2136 echo "$ac_file is unchanged" 2137 rm -f conftest.h 5552 rm -f conftest.defines 5553 echo ' fi # egrep' >>$CONFIG_STATUS 5554 echo >>$CONFIG_STATUS 5555 5556 # Break up conftest.undefs because some shells have a limit on the size 5557 # of here documents, and old seds have small limits too (100 cmds). 5558 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5559 rm -f conftest.tail 5560 while grep . conftest.undefs >/dev/null 5561 do 5562 # Write a limited-size here document to $tmp/undefs.sed. 5563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5564 # Speed up: don't consider the non `#undef' 5565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5566 # Work around the forget-to-reset-the-flag bug. 5567 echo 't clr' >>$CONFIG_STATUS 5568 echo ': clr' >>$CONFIG_STATUS 5569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5570 echo 'CEOF 5571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5572 rm -f $tmp/in 5573 mv $tmp/out $tmp/in 5574 ' >>$CONFIG_STATUS 5575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5576 rm -f conftest.undefs 5577 mv conftest.tail conftest.undefs 5578 done 5579 rm -f conftest.undefs 5580 5581 cat >>$CONFIG_STATUS <<\EOF 5582 # Let's still pretend it is `configure' which instantiates (i.e., don't 5583 # use $as_me), people would be surprised to read: 5584 # /* config.h. Generated automatically by config.status. */ 5585 if test x"$ac_file" = x-; then 5586 echo "/* Generated automatically by configure. */" >$tmp/config.h 2138 5587 else 2139 # Remove last slash and all that follows it. Not all systems have dirname. 2140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5588 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5589 fi 5590 cat $tmp/in >>$tmp/config.h 5591 rm -f $tmp/in 5592 if test x"$ac_file" != x-; then 5593 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5594 { echo "$as_me:5594: $ac_file is unchanged" >&5 5595 echo "$as_me: $ac_file is unchanged" >&6;} 5596 else 5597 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5598 X"$ac_file" : 'X\(//\)[^/]' \| \ 5599 X"$ac_file" : 'X\(//\)$' \| \ 5600 X"$ac_file" : 'X\(/\)' \| \ 5601 . : '\(.\)' 2>/dev/null || 5602 echo X"$ac_file" | 5603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5604 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5605 /^X\(\/\/\)$/{ s//\1/; q; } 5606 /^X\(\/\).*/{ s//\1/; q; } 5607 s/.*/./; q'` 2141 5608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2142 # The file is in a subdirectory. 2143 test ! -d "$ac_dir" && mkdir "$ac_dir" 5609 { case "$ac_dir" in 5610 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5611 *) as_incr_dir=.;; 5612 esac 5613 as_dummy="$ac_dir" 5614 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5615 case $as_mkdir_dir in 5616 # Skip DOS drivespec 5617 ?:) as_incr_dir=$as_mkdir_dir ;; 5618 *) 5619 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5620 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5621 ;; 5622 esac 5623 done; } 5624 5625 fi 5626 rm -f $ac_file 5627 mv $tmp/config.h $ac_file 2144 5628 fi 2145 rm -f $ac_file 2146 mv conftest.h $ac_file 5629 else 5630 cat $tmp/config.h 5631 rm -f $tmp/config.h 2147 5632 fi 2148 fi; done 2149 5633 done 2150 5634 EOF 2151 cat >> $CONFIG_STATUS <<EOF 2152 2153 EOF 2154 cat >> $CONFIG_STATUS <<\EOF 2155 2156 exit 0 5635 5636 cat >>$CONFIG_STATUS <<\EOF 5637 5638 { (exit 0); exit 0; } 2157 5639 EOF 2158 5640 chmod +x $CONFIG_STATUS 2159 rm -fr confdefs* $ac_clean_files 2160 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2161 2162 5641 ac_clean_files=$ac_clean_files_save 5642 5643 # configure is writing to config.log, and then calls config.status. 5644 # config.status does its own redirection, appending to config.log. 5645 # Unfortunately, on DOS this fails, as config.log is still kept open 5646 # by configure, so config.status won't be able to write to it; its 5647 # output is simply discarded. So we exec the FD to /dev/null, 5648 # effectively closing config.log, so it can be properly (re)opened and 5649 # appended to by config.status. When coming back to configure, we 5650 # need to make the FD available again. 5651 if test "$no_create" != yes; then 5652 ac_cs_success=: 5653 exec 5>/dev/null 5654 $SHELL $CONFIG_STATUS || ac_cs_success=false 5655 exec 5>>config.log 5656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5657 # would make configure fail if this is the last instruction. 5658 $ac_cs_success || { (exit 1); exit 1; } 5659 fi 5660
Note:
See TracChangeset
for help on using the changeset viewer.