[1407] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
| 4 | # Generated automatically using autoconf version 2.13
|
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
| 6 | #
|
---|
| 7 | # This configure script is free software; the Free Software Foundation
|
---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 9 |
|
---|
| 10 | # Defaults:
|
---|
| 11 | ac_help=
|
---|
| 12 | ac_default_prefix=/usr/local
|
---|
| 13 | # Any additions from configure.in:
|
---|
| 14 | ac_help="$ac_help
|
---|
| 15 | --with-sophya Compile and link with SOPHYA"
|
---|
| 16 |
|
---|
| 17 | # Initialize some variables set by options.
|
---|
| 18 | # The variables have the same names as the options, with
|
---|
| 19 | # dashes changed to underlines.
|
---|
| 20 | build=NONE
|
---|
| 21 | cache_file=./config.cache
|
---|
| 22 | exec_prefix=NONE
|
---|
| 23 | host=NONE
|
---|
| 24 | no_create=
|
---|
| 25 | nonopt=NONE
|
---|
| 26 | no_recursion=
|
---|
| 27 | prefix=NONE
|
---|
| 28 | program_prefix=NONE
|
---|
| 29 | program_suffix=NONE
|
---|
| 30 | program_transform_name=s,x,x,
|
---|
| 31 | silent=
|
---|
| 32 | site=
|
---|
| 33 | srcdir=
|
---|
| 34 | target=NONE
|
---|
| 35 | verbose=
|
---|
| 36 | x_includes=NONE
|
---|
| 37 | x_libraries=NONE
|
---|
| 38 | bindir='${exec_prefix}/bin'
|
---|
| 39 | sbindir='${exec_prefix}/sbin'
|
---|
| 40 | libexecdir='${exec_prefix}/libexec'
|
---|
| 41 | datadir='${prefix}/share'
|
---|
| 42 | sysconfdir='${prefix}/etc'
|
---|
| 43 | sharedstatedir='${prefix}/com'
|
---|
| 44 | localstatedir='${prefix}/var'
|
---|
| 45 | libdir='${exec_prefix}/lib'
|
---|
| 46 | includedir='${prefix}/include'
|
---|
| 47 | oldincludedir='/usr/include'
|
---|
| 48 | infodir='${prefix}/info'
|
---|
| 49 | mandir='${prefix}/man'
|
---|
| 50 |
|
---|
| 51 | # Initialize some other variables.
|
---|
| 52 | subdirs=
|
---|
| 53 | MFLAGS= MAKEFLAGS=
|
---|
| 54 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 55 | # Maximum number of lines to put in a shell here document.
|
---|
| 56 | ac_max_here_lines=12
|
---|
| 57 |
|
---|
| 58 | ac_prev=
|
---|
| 59 | for ac_option
|
---|
| 60 | do
|
---|
| 61 |
|
---|
| 62 | # If the previous option needs an argument, assign it.
|
---|
| 63 | if test -n "$ac_prev"; then
|
---|
| 64 | eval "$ac_prev=\$ac_option"
|
---|
| 65 | ac_prev=
|
---|
| 66 | continue
|
---|
| 67 | fi
|
---|
| 68 |
|
---|
| 69 | case "$ac_option" in
|
---|
| 70 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
| 71 | *) ac_optarg= ;;
|
---|
| 72 | esac
|
---|
| 73 |
|
---|
| 74 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 75 |
|
---|
| 76 | case "$ac_option" in
|
---|
| 77 |
|
---|
| 78 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 79 | ac_prev=bindir ;;
|
---|
| 80 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 81 | bindir="$ac_optarg" ;;
|
---|
| 82 |
|
---|
| 83 | -build | --build | --buil | --bui | --bu)
|
---|
| 84 | ac_prev=build ;;
|
---|
| 85 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 86 | build="$ac_optarg" ;;
|
---|
| 87 |
|
---|
| 88 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 89 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 90 | ac_prev=cache_file ;;
|
---|
| 91 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 92 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 93 | cache_file="$ac_optarg" ;;
|
---|
| 94 |
|
---|
| 95 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 96 | ac_prev=datadir ;;
|
---|
| 97 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 98 | | --da=*)
|
---|
| 99 | datadir="$ac_optarg" ;;
|
---|
| 100 |
|
---|
| 101 | -disable-* | --disable-*)
|
---|
| 102 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
| 103 | # Reject names that are not valid shell variable names.
|
---|
| 104 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 105 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 106 | fi
|
---|
| 107 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 108 | eval "enable_${ac_feature}=no" ;;
|
---|
| 109 |
|
---|
| 110 | -enable-* | --enable-*)
|
---|
| 111 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
| 112 | # Reject names that are not valid shell variable names.
|
---|
| 113 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 114 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
| 115 | fi
|
---|
| 116 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
| 117 | case "$ac_option" in
|
---|
| 118 | *=*) ;;
|
---|
| 119 | *) ac_optarg=yes ;;
|
---|
| 120 | esac
|
---|
| 121 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
| 122 |
|
---|
| 123 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 124 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 125 | | --exec | --exe | --ex)
|
---|
| 126 | ac_prev=exec_prefix ;;
|
---|
| 127 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 128 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 129 | | --exec=* | --exe=* | --ex=*)
|
---|
| 130 | exec_prefix="$ac_optarg" ;;
|
---|
| 131 |
|
---|
| 132 | -gas | --gas | --ga | --g)
|
---|
| 133 | # Obsolete; use --with-gas.
|
---|
| 134 | with_gas=yes ;;
|
---|
| 135 |
|
---|
| 136 | -help | --help | --hel | --he)
|
---|
| 137 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 138 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 139 | cat << EOF
|
---|
| 140 | Usage: configure [options] [host]
|
---|
| 141 | Options: [defaults in brackets after descriptions]
|
---|
| 142 | Configuration:
|
---|
| 143 | --cache-file=FILE cache test results in FILE
|
---|
| 144 | --help print this message
|
---|
| 145 | --no-create do not create output files
|
---|
| 146 | --quiet, --silent do not print \`checking...' messages
|
---|
| 147 | --version print the version of autoconf that created configure
|
---|
| 148 | Directory and file names:
|
---|
| 149 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 150 | [$ac_default_prefix]
|
---|
| 151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 152 | [same as prefix]
|
---|
| 153 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
| 154 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
| 155 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
| 156 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
| 157 | [PREFIX/share]
|
---|
| 158 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
| 159 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
| 160 | [PREFIX/com]
|
---|
| 161 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
| 162 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
| 163 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
| 164 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
| 165 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
| 166 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
| 167 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
| 168 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 169 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 170 | --program-transform-name=PROGRAM
|
---|
| 171 | run sed PROGRAM on installed program names
|
---|
| 172 | EOF
|
---|
| 173 | cat << EOF
|
---|
| 174 | Host type:
|
---|
| 175 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
| 176 | --host=HOST configure for HOST [guessed]
|
---|
| 177 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
| 178 | Features and packages:
|
---|
| 179 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 180 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 181 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 182 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 183 | --x-includes=DIR X include files are in DIR
|
---|
| 184 | --x-libraries=DIR X library files are in DIR
|
---|
| 185 | EOF
|
---|
| 186 | if test -n "$ac_help"; then
|
---|
| 187 | echo "--enable and --with options recognized:$ac_help"
|
---|
| 188 | fi
|
---|
| 189 | exit 0 ;;
|
---|
| 190 |
|
---|
| 191 | -host | --host | --hos | --ho)
|
---|
| 192 | ac_prev=host ;;
|
---|
| 193 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 194 | host="$ac_optarg" ;;
|
---|
| 195 |
|
---|
| 196 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 197 | | --includ | --inclu | --incl | --inc)
|
---|
| 198 | ac_prev=includedir ;;
|
---|
| 199 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 200 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 201 | includedir="$ac_optarg" ;;
|
---|
| 202 |
|
---|
| 203 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 204 | ac_prev=infodir ;;
|
---|
| 205 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 206 | infodir="$ac_optarg" ;;
|
---|
| 207 |
|
---|
| 208 | -libdir | --libdir | --libdi | --libd)
|
---|
| 209 | ac_prev=libdir ;;
|
---|
| 210 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 211 | libdir="$ac_optarg" ;;
|
---|
| 212 |
|
---|
| 213 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 214 | | --libexe | --libex | --libe)
|
---|
| 215 | ac_prev=libexecdir ;;
|
---|
| 216 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 217 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 218 | libexecdir="$ac_optarg" ;;
|
---|
| 219 |
|
---|
| 220 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 221 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 222 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 223 | ac_prev=localstatedir ;;
|
---|
| 224 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 225 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 226 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
| 227 | localstatedir="$ac_optarg" ;;
|
---|
| 228 |
|
---|
| 229 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 230 | ac_prev=mandir ;;
|
---|
| 231 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 232 | mandir="$ac_optarg" ;;
|
---|
| 233 |
|
---|
| 234 | -nfp | --nfp | --nf)
|
---|
| 235 | # Obsolete; use --without-fp.
|
---|
| 236 | with_fp=no ;;
|
---|
| 237 |
|
---|
| 238 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 239 | | --no-cr | --no-c)
|
---|
| 240 | no_create=yes ;;
|
---|
| 241 |
|
---|
| 242 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 243 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 244 | no_recursion=yes ;;
|
---|
| 245 |
|
---|
| 246 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 247 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 248 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 249 | ac_prev=oldincludedir ;;
|
---|
| 250 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 251 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 252 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 253 | oldincludedir="$ac_optarg" ;;
|
---|
| 254 |
|
---|
| 255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 256 | ac_prev=prefix ;;
|
---|
| 257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 258 | prefix="$ac_optarg" ;;
|
---|
| 259 |
|
---|
| 260 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 261 | | --program-pre | --program-pr | --program-p)
|
---|
| 262 | ac_prev=program_prefix ;;
|
---|
| 263 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 264 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 265 | program_prefix="$ac_optarg" ;;
|
---|
| 266 |
|
---|
| 267 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 268 | | --program-suf | --program-su | --program-s)
|
---|
| 269 | ac_prev=program_suffix ;;
|
---|
| 270 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 271 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 272 | program_suffix="$ac_optarg" ;;
|
---|
| 273 |
|
---|
| 274 | -program-transform-name | --program-transform-name \
|
---|
| 275 | | --program-transform-nam | --program-transform-na \
|
---|
| 276 | | --program-transform-n | --program-transform- \
|
---|
| 277 | | --program-transform | --program-transfor \
|
---|
| 278 | | --program-transfo | --program-transf \
|
---|
| 279 | | --program-trans | --program-tran \
|
---|
| 280 | | --progr-tra | --program-tr | --program-t)
|
---|
| 281 | ac_prev=program_transform_name ;;
|
---|
| 282 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 283 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 284 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 285 | | --program-transform=* | --program-transfor=* \
|
---|
| 286 | | --program-transfo=* | --program-transf=* \
|
---|
| 287 | | --program-trans=* | --program-tran=* \
|
---|
| 288 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 289 | program_transform_name="$ac_optarg" ;;
|
---|
| 290 |
|
---|
| 291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 292 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 293 | silent=yes ;;
|
---|
| 294 |
|
---|
| 295 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 296 | ac_prev=sbindir ;;
|
---|
| 297 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 298 | | --sbi=* | --sb=*)
|
---|
| 299 | sbindir="$ac_optarg" ;;
|
---|
| 300 |
|
---|
| 301 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 302 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 303 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 304 | | --sha | --sh)
|
---|
| 305 | ac_prev=sharedstatedir ;;
|
---|
| 306 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 307 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 308 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 309 | | --sha=* | --sh=*)
|
---|
| 310 | sharedstatedir="$ac_optarg" ;;
|
---|
| 311 |
|
---|
| 312 | -site | --site | --sit)
|
---|
| 313 | ac_prev=site ;;
|
---|
| 314 | -site=* | --site=* | --sit=*)
|
---|
| 315 | site="$ac_optarg" ;;
|
---|
| 316 |
|
---|
| 317 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 318 | ac_prev=srcdir ;;
|
---|
| 319 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 320 | srcdir="$ac_optarg" ;;
|
---|
| 321 |
|
---|
| 322 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 323 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 324 | ac_prev=sysconfdir ;;
|
---|
| 325 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 326 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 327 | sysconfdir="$ac_optarg" ;;
|
---|
| 328 |
|
---|
| 329 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 330 | ac_prev=target ;;
|
---|
| 331 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 332 | target="$ac_optarg" ;;
|
---|
| 333 |
|
---|
| 334 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 335 | verbose=yes ;;
|
---|
| 336 |
|
---|
| 337 | -version | --version | --versio | --versi | --vers)
|
---|
| 338 | echo "configure generated by autoconf version 2.13"
|
---|
| 339 | exit 0 ;;
|
---|
| 340 |
|
---|
| 341 | -with-* | --with-*)
|
---|
| 342 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
| 343 | # Reject names that are not valid shell variable names.
|
---|
| 344 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
| 345 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 346 | fi
|
---|
| 347 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 348 | case "$ac_option" in
|
---|
| 349 | *=*) ;;
|
---|
| 350 | *) ac_optarg=yes ;;
|
---|
| 351 | esac
|
---|
| 352 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
| 353 |
|
---|
| 354 | -without-* | --without-*)
|
---|
| 355 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
| 356 | # Reject names that are not valid shell variable names.
|
---|
| 357 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
| 358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
| 359 | fi
|
---|
| 360 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 361 | eval "with_${ac_package}=no" ;;
|
---|
| 362 |
|
---|
| 363 | --x)
|
---|
| 364 | # Obsolete; use --with-x.
|
---|
| 365 | with_x=yes ;;
|
---|
| 366 |
|
---|
| 367 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 368 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 369 | ac_prev=x_includes ;;
|
---|
| 370 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 371 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 372 | x_includes="$ac_optarg" ;;
|
---|
| 373 |
|
---|
| 374 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 375 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 376 | ac_prev=x_libraries ;;
|
---|
| 377 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 378 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 379 | x_libraries="$ac_optarg" ;;
|
---|
| 380 |
|
---|
| 381 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
| 382 | ;;
|
---|
| 383 |
|
---|
| 384 | *)
|
---|
| 385 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
| 386 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
| 387 | fi
|
---|
| 388 | if test "x$nonopt" != xNONE; then
|
---|
| 389 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
| 390 | fi
|
---|
| 391 | nonopt="$ac_option"
|
---|
| 392 | ;;
|
---|
| 393 |
|
---|
| 394 | esac
|
---|
| 395 | done
|
---|
| 396 |
|
---|
| 397 | if test -n "$ac_prev"; then
|
---|
| 398 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
| 399 | fi
|
---|
| 400 |
|
---|
| 401 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 402 |
|
---|
| 403 | # File descriptor usage:
|
---|
| 404 | # 0 standard input
|
---|
| 405 | # 1 file creation
|
---|
| 406 | # 2 errors and warnings
|
---|
| 407 | # 3 some systems may open it to /dev/tty
|
---|
| 408 | # 4 used on the Kubota Titan
|
---|
| 409 | # 6 checking for... messages and results
|
---|
| 410 | # 5 compiler messages saved in config.log
|
---|
| 411 | if test "$silent" = yes; then
|
---|
| 412 | exec 6>/dev/null
|
---|
| 413 | else
|
---|
| 414 | exec 6>&1
|
---|
| 415 | fi
|
---|
| 416 | exec 5>./config.log
|
---|
| 417 |
|
---|
| 418 | echo "\
|
---|
| 419 | This file contains any messages produced by compilers while
|
---|
| 420 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 421 | " 1>&5
|
---|
| 422 |
|
---|
| 423 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 424 | # Also quote any args containing shell metacharacters.
|
---|
| 425 | ac_configure_args=
|
---|
| 426 | for ac_arg
|
---|
| 427 | do
|
---|
| 428 | case "$ac_arg" in
|
---|
| 429 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 430 | | --no-cr | --no-c) ;;
|
---|
| 431 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 432 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
| 433 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
| 434 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 435 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
| 436 | esac
|
---|
| 437 | done
|
---|
| 438 |
|
---|
| 439 | # NLS nuisances.
|
---|
| 440 | # Only set these to C if already set. These must not be set unconditionally
|
---|
| 441 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
| 442 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
| 443 | # Non-C LC_CTYPE values break the ctype check.
|
---|
| 444 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
| 445 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
| 446 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
| 447 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
| 448 |
|
---|
| 449 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 450 | rm -rf conftest* confdefs.h
|
---|
| 451 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 452 | echo > confdefs.h
|
---|
| 453 |
|
---|
| 454 | # A filename unique to this package, relative to the directory that
|
---|
| 455 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
[1477] | 456 | ac_unique_file=kernel/toi.cc
|
---|
[1407] | 457 |
|
---|
| 458 | # Find the source files, if location was not specified.
|
---|
| 459 | if test -z "$srcdir"; then
|
---|
| 460 | ac_srcdir_defaulted=yes
|
---|
| 461 | # Try the directory containing this script, then its parent.
|
---|
| 462 | ac_prog=$0
|
---|
| 463 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
| 464 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
| 465 | srcdir=$ac_confdir
|
---|
| 466 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 467 | srcdir=..
|
---|
| 468 | fi
|
---|
| 469 | else
|
---|
| 470 | ac_srcdir_defaulted=no
|
---|
| 471 | fi
|
---|
| 472 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 473 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 474 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
| 475 | else
|
---|
| 476 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
| 477 | fi
|
---|
| 478 | fi
|
---|
| 479 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
| 480 |
|
---|
| 481 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 482 | if test -z "$CONFIG_SITE"; then
|
---|
| 483 | if test "x$prefix" != xNONE; then
|
---|
| 484 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 485 | else
|
---|
| 486 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 487 | fi
|
---|
| 488 | fi
|
---|
| 489 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 490 | if test -r "$ac_site_file"; then
|
---|
| 491 | echo "loading site script $ac_site_file"
|
---|
| 492 | . "$ac_site_file"
|
---|
| 493 | fi
|
---|
| 494 | done
|
---|
| 495 |
|
---|
| 496 | if test -r "$cache_file"; then
|
---|
| 497 | echo "loading cache $cache_file"
|
---|
| 498 | . $cache_file
|
---|
| 499 | else
|
---|
| 500 | echo "creating cache $cache_file"
|
---|
| 501 | > $cache_file
|
---|
| 502 | fi
|
---|
| 503 |
|
---|
| 504 | ac_ext=c
|
---|
| 505 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 506 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 507 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 508 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 509 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 510 |
|
---|
| 511 | ac_exeext=
|
---|
| 512 | ac_objext=o
|
---|
| 513 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
| 514 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
| 515 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
| 516 | ac_n= ac_c='
|
---|
| 517 | ' ac_t=' '
|
---|
| 518 | else
|
---|
| 519 | ac_n=-n ac_c= ac_t=
|
---|
| 520 | fi
|
---|
| 521 | else
|
---|
| 522 | ac_n= ac_c='\c' ac_t=
|
---|
| 523 | fi
|
---|
| 524 |
|
---|
| 525 |
|
---|
| 526 |
|
---|
| 527 |
|
---|
| 528 | # Check whether --with-sophya or --without-sophya was given.
|
---|
| 529 | if test "${with_sophya+set}" = set; then
|
---|
| 530 | withval="$with_sophya"
|
---|
| 531 | use_sophya=1
|
---|
| 532 | else
|
---|
| 533 | use_sophya=0
|
---|
| 534 | fi
|
---|
| 535 |
|
---|
| 536 |
|
---|
| 537 |
|
---|
| 538 |
|
---|
| 539 | if test `uname` = OSF1 -a -z "$CXX"; then
|
---|
| 540 | if test -x /usr/bin/cxx; then
|
---|
| 541 | echo "using cxx on alpha"
|
---|
| 542 | CXX=cxx
|
---|
| 543 | export CXX
|
---|
| 544 | fi
|
---|
| 545 | fi
|
---|
| 546 |
|
---|
[1732] | 547 | if test `uname` = Linux -a -f /usr/bin/g++; then
|
---|
[1734] | 548 | CXX=g++
|
---|
[1732] | 549 | fi
|
---|
| 550 |
|
---|
[1477] | 551 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 552 | set dummy gcc; ac_word=$2
|
---|
| 553 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 554 | echo "configure:555: checking for $ac_word" >&5
|
---|
[1477] | 555 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 556 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 557 | else
|
---|
| 558 | if test -n "$CC"; then
|
---|
| 559 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 560 | else
|
---|
| 561 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 562 | ac_dummy="$PATH"
|
---|
| 563 | for ac_dir in $ac_dummy; do
|
---|
| 564 | test -z "$ac_dir" && ac_dir=.
|
---|
| 565 | if test -f $ac_dir/$ac_word; then
|
---|
| 566 | ac_cv_prog_CC="gcc"
|
---|
| 567 | break
|
---|
| 568 | fi
|
---|
| 569 | done
|
---|
| 570 | IFS="$ac_save_ifs"
|
---|
| 571 | fi
|
---|
| 572 | fi
|
---|
| 573 | CC="$ac_cv_prog_CC"
|
---|
| 574 | if test -n "$CC"; then
|
---|
| 575 | echo "$ac_t""$CC" 1>&6
|
---|
| 576 | else
|
---|
| 577 | echo "$ac_t""no" 1>&6
|
---|
| 578 | fi
|
---|
| 579 |
|
---|
| 580 | if test -z "$CC"; then
|
---|
| 581 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 582 | set dummy cc; ac_word=$2
|
---|
| 583 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 584 | echo "configure:585: checking for $ac_word" >&5
|
---|
[1477] | 585 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 587 | else
|
---|
| 588 | if test -n "$CC"; then
|
---|
| 589 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 590 | else
|
---|
| 591 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 592 | ac_prog_rejected=no
|
---|
| 593 | ac_dummy="$PATH"
|
---|
| 594 | for ac_dir in $ac_dummy; do
|
---|
| 595 | test -z "$ac_dir" && ac_dir=.
|
---|
| 596 | if test -f $ac_dir/$ac_word; then
|
---|
| 597 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
| 598 | ac_prog_rejected=yes
|
---|
| 599 | continue
|
---|
| 600 | fi
|
---|
| 601 | ac_cv_prog_CC="cc"
|
---|
| 602 | break
|
---|
| 603 | fi
|
---|
| 604 | done
|
---|
| 605 | IFS="$ac_save_ifs"
|
---|
| 606 | if test $ac_prog_rejected = yes; then
|
---|
| 607 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 608 | set dummy $ac_cv_prog_CC
|
---|
| 609 | shift
|
---|
| 610 | if test $# -gt 0; then
|
---|
| 611 | # We chose a different compiler from the bogus one.
|
---|
| 612 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 613 | # first if we set CC to just the basename; use the full file name.
|
---|
| 614 | shift
|
---|
| 615 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
| 616 | shift
|
---|
| 617 | ac_cv_prog_CC="$@"
|
---|
| 618 | fi
|
---|
| 619 | fi
|
---|
| 620 | fi
|
---|
| 621 | fi
|
---|
| 622 | CC="$ac_cv_prog_CC"
|
---|
| 623 | if test -n "$CC"; then
|
---|
| 624 | echo "$ac_t""$CC" 1>&6
|
---|
| 625 | else
|
---|
| 626 | echo "$ac_t""no" 1>&6
|
---|
| 627 | fi
|
---|
| 628 |
|
---|
| 629 | if test -z "$CC"; then
|
---|
| 630 | case "`uname -s`" in
|
---|
| 631 | *win32* | *WIN32*)
|
---|
| 632 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
| 633 | set dummy cl; ac_word=$2
|
---|
| 634 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 635 | echo "configure:636: checking for $ac_word" >&5
|
---|
[1477] | 636 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 637 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 638 | else
|
---|
| 639 | if test -n "$CC"; then
|
---|
| 640 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 641 | else
|
---|
| 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 643 | ac_dummy="$PATH"
|
---|
| 644 | for ac_dir in $ac_dummy; do
|
---|
| 645 | test -z "$ac_dir" && ac_dir=.
|
---|
| 646 | if test -f $ac_dir/$ac_word; then
|
---|
| 647 | ac_cv_prog_CC="cl"
|
---|
| 648 | break
|
---|
| 649 | fi
|
---|
| 650 | done
|
---|
| 651 | IFS="$ac_save_ifs"
|
---|
| 652 | fi
|
---|
| 653 | fi
|
---|
| 654 | CC="$ac_cv_prog_CC"
|
---|
| 655 | if test -n "$CC"; then
|
---|
| 656 | echo "$ac_t""$CC" 1>&6
|
---|
| 657 | else
|
---|
| 658 | echo "$ac_t""no" 1>&6
|
---|
| 659 | fi
|
---|
| 660 | ;;
|
---|
| 661 | esac
|
---|
| 662 | fi
|
---|
| 663 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
| 664 | fi
|
---|
| 665 |
|
---|
| 666 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
[1732] | 667 | echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
[1477] | 668 |
|
---|
| 669 | ac_ext=c
|
---|
| 670 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 671 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 672 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 673 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 674 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 675 |
|
---|
| 676 | cat > conftest.$ac_ext << EOF
|
---|
| 677 |
|
---|
[1732] | 678 | #line 679 "configure"
|
---|
[1477] | 679 | #include "confdefs.h"
|
---|
| 680 |
|
---|
| 681 | main(){return(0);}
|
---|
| 682 | EOF
|
---|
[1732] | 683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1477] | 684 | ac_cv_prog_cc_works=yes
|
---|
| 685 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 686 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 687 | ac_cv_prog_cc_cross=no
|
---|
| 688 | else
|
---|
| 689 | ac_cv_prog_cc_cross=yes
|
---|
| 690 | fi
|
---|
| 691 | else
|
---|
| 692 | echo "configure: failed program was:" >&5
|
---|
| 693 | cat conftest.$ac_ext >&5
|
---|
| 694 | ac_cv_prog_cc_works=no
|
---|
| 695 | fi
|
---|
| 696 | rm -fr conftest*
|
---|
| 697 | ac_ext=c
|
---|
| 698 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 699 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 700 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 701 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 702 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 703 |
|
---|
| 704 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
| 705 | if test $ac_cv_prog_cc_works = no; then
|
---|
| 706 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 707 | fi
|
---|
| 708 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
[1732] | 709 | echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
[1477] | 710 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
| 711 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 712 |
|
---|
| 713 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
[1732] | 714 | echo "configure:715: checking whether we are using GNU C" >&5
|
---|
[1477] | 715 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
| 716 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 717 | else
|
---|
| 718 | cat > conftest.c <<EOF
|
---|
| 719 | #ifdef __GNUC__
|
---|
| 720 | yes;
|
---|
| 721 | #endif
|
---|
| 722 | EOF
|
---|
[1732] | 723 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
[1477] | 724 | ac_cv_prog_gcc=yes
|
---|
| 725 | else
|
---|
| 726 | ac_cv_prog_gcc=no
|
---|
| 727 | fi
|
---|
| 728 | fi
|
---|
| 729 |
|
---|
| 730 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
| 731 |
|
---|
| 732 | if test $ac_cv_prog_gcc = yes; then
|
---|
| 733 | GCC=yes
|
---|
| 734 | else
|
---|
| 735 | GCC=
|
---|
| 736 | fi
|
---|
| 737 |
|
---|
| 738 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
| 739 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 740 | CFLAGS=
|
---|
| 741 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
[1732] | 742 | echo "configure:743: checking whether ${CC-cc} accepts -g" >&5
|
---|
[1477] | 743 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
| 744 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 745 | else
|
---|
| 746 | echo 'void f(){}' > conftest.c
|
---|
| 747 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
| 748 | ac_cv_prog_cc_g=yes
|
---|
| 749 | else
|
---|
| 750 | ac_cv_prog_cc_g=no
|
---|
| 751 | fi
|
---|
| 752 | rm -f conftest*
|
---|
| 753 |
|
---|
| 754 | fi
|
---|
| 755 |
|
---|
| 756 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
| 757 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 758 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 759 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 760 | if test "$GCC" = yes; then
|
---|
| 761 | CFLAGS="-g -O2"
|
---|
| 762 | else
|
---|
| 763 | CFLAGS="-g"
|
---|
| 764 | fi
|
---|
| 765 | else
|
---|
| 766 | if test "$GCC" = yes; then
|
---|
| 767 | CFLAGS="-O2"
|
---|
| 768 | else
|
---|
| 769 | CFLAGS=
|
---|
| 770 | fi
|
---|
| 771 | fi
|
---|
| 772 |
|
---|
[1407] | 773 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
| 774 | do
|
---|
| 775 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 776 | set dummy $ac_prog; ac_word=$2
|
---|
| 777 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 778 | echo "configure:779: checking for $ac_word" >&5
|
---|
[1407] | 779 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
| 780 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 781 | else
|
---|
| 782 | if test -n "$CXX"; then
|
---|
| 783 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 784 | else
|
---|
| 785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 786 | ac_dummy="$PATH"
|
---|
| 787 | for ac_dir in $ac_dummy; do
|
---|
| 788 | test -z "$ac_dir" && ac_dir=.
|
---|
| 789 | if test -f $ac_dir/$ac_word; then
|
---|
| 790 | ac_cv_prog_CXX="$ac_prog"
|
---|
| 791 | break
|
---|
| 792 | fi
|
---|
| 793 | done
|
---|
| 794 | IFS="$ac_save_ifs"
|
---|
| 795 | fi
|
---|
| 796 | fi
|
---|
| 797 | CXX="$ac_cv_prog_CXX"
|
---|
| 798 | if test -n "$CXX"; then
|
---|
| 799 | echo "$ac_t""$CXX" 1>&6
|
---|
| 800 | else
|
---|
| 801 | echo "$ac_t""no" 1>&6
|
---|
| 802 | fi
|
---|
| 803 |
|
---|
| 804 | test -n "$CXX" && break
|
---|
| 805 | done
|
---|
| 806 | test -n "$CXX" || CXX="gcc"
|
---|
| 807 |
|
---|
| 808 |
|
---|
| 809 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
[1732] | 810 | echo "configure:811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
[1407] | 811 |
|
---|
| 812 | ac_ext=C
|
---|
| 813 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 814 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 815 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 816 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 817 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 818 |
|
---|
| 819 | cat > conftest.$ac_ext << EOF
|
---|
| 820 |
|
---|
[1732] | 821 | #line 822 "configure"
|
---|
[1407] | 822 | #include "confdefs.h"
|
---|
| 823 |
|
---|
| 824 | int main(){return(0);}
|
---|
| 825 | EOF
|
---|
[1732] | 826 | if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 827 | ac_cv_prog_cxx_works=yes
|
---|
| 828 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 829 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 830 | ac_cv_prog_cxx_cross=no
|
---|
| 831 | else
|
---|
| 832 | ac_cv_prog_cxx_cross=yes
|
---|
| 833 | fi
|
---|
| 834 | else
|
---|
| 835 | echo "configure: failed program was:" >&5
|
---|
| 836 | cat conftest.$ac_ext >&5
|
---|
| 837 | ac_cv_prog_cxx_works=no
|
---|
| 838 | fi
|
---|
| 839 | rm -fr conftest*
|
---|
| 840 | ac_ext=c
|
---|
| 841 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 842 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 843 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 844 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 845 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 846 |
|
---|
| 847 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
| 848 | if test $ac_cv_prog_cxx_works = no; then
|
---|
| 849 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 850 | fi
|
---|
| 851 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
[1732] | 852 | echo "configure:853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
[1407] | 853 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
| 854 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 855 |
|
---|
| 856 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
[1732] | 857 | echo "configure:858: checking whether we are using GNU C++" >&5
|
---|
[1407] | 858 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
| 859 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 860 | else
|
---|
| 861 | cat > conftest.C <<EOF
|
---|
| 862 | #ifdef __GNUC__
|
---|
| 863 | yes;
|
---|
| 864 | #endif
|
---|
| 865 | EOF
|
---|
[1732] | 866 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
[1407] | 867 | ac_cv_prog_gxx=yes
|
---|
| 868 | else
|
---|
| 869 | ac_cv_prog_gxx=no
|
---|
| 870 | fi
|
---|
| 871 | fi
|
---|
| 872 |
|
---|
| 873 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
| 874 |
|
---|
| 875 | if test $ac_cv_prog_gxx = yes; then
|
---|
| 876 | GXX=yes
|
---|
| 877 | else
|
---|
| 878 | GXX=
|
---|
| 879 | fi
|
---|
| 880 |
|
---|
| 881 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
| 882 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 883 | CXXFLAGS=
|
---|
| 884 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
[1732] | 885 | echo "configure:886: checking whether ${CXX-g++} accepts -g" >&5
|
---|
[1407] | 886 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
| 887 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 888 | else
|
---|
| 889 | echo 'void f(){}' > conftest.cc
|
---|
| 890 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
| 891 | ac_cv_prog_cxx_g=yes
|
---|
| 892 | else
|
---|
| 893 | ac_cv_prog_cxx_g=no
|
---|
| 894 | fi
|
---|
| 895 | rm -f conftest*
|
---|
| 896 |
|
---|
| 897 | fi
|
---|
| 898 |
|
---|
| 899 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
| 900 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 901 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
| 902 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 903 | if test "$GXX" = yes; then
|
---|
| 904 | CXXFLAGS="-g -O2"
|
---|
| 905 | else
|
---|
| 906 | CXXFLAGS="-g"
|
---|
| 907 | fi
|
---|
| 908 | else
|
---|
| 909 | if test "$GXX" = yes; then
|
---|
| 910 | CXXFLAGS="-O2"
|
---|
| 911 | else
|
---|
| 912 | CXXFLAGS=
|
---|
| 913 | fi
|
---|
| 914 | fi
|
---|
| 915 |
|
---|
[1706] | 916 | # Extract the first word of "ar", so it can be a program name with args.
|
---|
| 917 | set dummy ar; ac_word=$2
|
---|
| 918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 919 | echo "configure:920: checking for $ac_word" >&5
|
---|
[1706] | 920 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
|
---|
| 921 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 922 | else
|
---|
| 923 | case "$AR" in
|
---|
| 924 | /*)
|
---|
| 925 | ac_cv_path_AR="$AR" # Let the user override the test with a path.
|
---|
| 926 | ;;
|
---|
| 927 | ?:/*)
|
---|
| 928 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
|
---|
| 929 | ;;
|
---|
| 930 | *)
|
---|
| 931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 932 | ac_dummy="/usr/bin:$PATH"
|
---|
| 933 | for ac_dir in $ac_dummy; do
|
---|
| 934 | test -z "$ac_dir" && ac_dir=.
|
---|
| 935 | if test -f $ac_dir/$ac_word; then
|
---|
| 936 | ac_cv_path_AR="$ac_dir/$ac_word"
|
---|
| 937 | break
|
---|
| 938 | fi
|
---|
| 939 | done
|
---|
| 940 | IFS="$ac_save_ifs"
|
---|
| 941 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
|
---|
| 942 | ;;
|
---|
| 943 | esac
|
---|
| 944 | fi
|
---|
| 945 | AR="$ac_cv_path_AR"
|
---|
| 946 | if test -n "$AR"; then
|
---|
| 947 | echo "$ac_t""$AR" 1>&6
|
---|
| 948 | else
|
---|
| 949 | echo "$ac_t""no" 1>&6
|
---|
| 950 | fi
|
---|
| 951 |
|
---|
[1707] | 952 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 953 | set dummy ranlib; ac_word=$2
|
---|
| 954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1732] | 955 | echo "configure:956: checking for $ac_word" >&5
|
---|
[1707] | 956 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
|
---|
| 957 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 958 | else
|
---|
| 959 | case "$RANLIB" in
|
---|
| 960 | /*)
|
---|
| 961 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
|
---|
| 962 | ;;
|
---|
| 963 | ?:/*)
|
---|
| 964 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
|
---|
| 965 | ;;
|
---|
| 966 | *)
|
---|
| 967 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 968 | ac_dummy="/usr/bin:$PATH"
|
---|
| 969 | for ac_dir in $ac_dummy; do
|
---|
| 970 | test -z "$ac_dir" && ac_dir=.
|
---|
| 971 | if test -f $ac_dir/$ac_word; then
|
---|
| 972 | ac_cv_path_RANLIB="$ac_dir/$ac_word"
|
---|
| 973 | break
|
---|
| 974 | fi
|
---|
| 975 | done
|
---|
| 976 | IFS="$ac_save_ifs"
|
---|
| 977 | test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
|
---|
| 978 | ;;
|
---|
| 979 | esac
|
---|
| 980 | fi
|
---|
| 981 | RANLIB="$ac_cv_path_RANLIB"
|
---|
| 982 | if test -n "$RANLIB"; then
|
---|
| 983 | echo "$ac_t""$RANLIB" 1>&6
|
---|
| 984 | else
|
---|
| 985 | echo "$ac_t""no" 1>&6
|
---|
| 986 | fi
|
---|
| 987 |
|
---|
[1407] | 988 |
|
---|
[1692] | 989 | if test $GCC = "yes"; then
|
---|
| 990 | gcc=$CC
|
---|
| 991 | else
|
---|
| 992 | gcc=gcc
|
---|
| 993 | fi
|
---|
| 994 |
|
---|
| 995 |
|
---|
[1407] | 996 | echo $ac_n "checking size of short""... $ac_c" 1>&6
|
---|
[1732] | 997 | echo "configure:998: checking size of short" >&5
|
---|
[1407] | 998 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
---|
| 999 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1000 | else
|
---|
| 1001 | if test "$cross_compiling" = yes; then
|
---|
| 1002 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1003 | else
|
---|
| 1004 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1005 | #line 1006 "configure"
|
---|
[1407] | 1006 | #include "confdefs.h"
|
---|
| 1007 | #include <stdio.h>
|
---|
| 1008 | main()
|
---|
| 1009 | {
|
---|
| 1010 | FILE *f=fopen("conftestval", "w");
|
---|
| 1011 | if (!f) exit(1);
|
---|
| 1012 | fprintf(f, "%d\n", sizeof(short));
|
---|
| 1013 | exit(0);
|
---|
| 1014 | }
|
---|
| 1015 | EOF
|
---|
[1732] | 1016 | if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1017 | then
|
---|
| 1018 | ac_cv_sizeof_short=`cat conftestval`
|
---|
| 1019 | else
|
---|
| 1020 | echo "configure: failed program was:" >&5
|
---|
| 1021 | cat conftest.$ac_ext >&5
|
---|
| 1022 | rm -fr conftest*
|
---|
| 1023 | ac_cv_sizeof_short=0
|
---|
| 1024 | fi
|
---|
| 1025 | rm -fr conftest*
|
---|
| 1026 | fi
|
---|
| 1027 |
|
---|
| 1028 | fi
|
---|
| 1029 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
---|
| 1030 | cat >> confdefs.h <<EOF
|
---|
| 1031 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
---|
| 1032 | EOF
|
---|
| 1033 |
|
---|
| 1034 |
|
---|
| 1035 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
---|
[1732] | 1036 | echo "configure:1037: checking size of int" >&5
|
---|
[1407] | 1037 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
---|
| 1038 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1039 | else
|
---|
| 1040 | if test "$cross_compiling" = yes; then
|
---|
| 1041 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1042 | else
|
---|
| 1043 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1044 | #line 1045 "configure"
|
---|
[1407] | 1045 | #include "confdefs.h"
|
---|
| 1046 | #include <stdio.h>
|
---|
| 1047 | main()
|
---|
| 1048 | {
|
---|
| 1049 | FILE *f=fopen("conftestval", "w");
|
---|
| 1050 | if (!f) exit(1);
|
---|
| 1051 | fprintf(f, "%d\n", sizeof(int));
|
---|
| 1052 | exit(0);
|
---|
| 1053 | }
|
---|
| 1054 | EOF
|
---|
[1732] | 1055 | if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1056 | then
|
---|
| 1057 | ac_cv_sizeof_int=`cat conftestval`
|
---|
| 1058 | else
|
---|
| 1059 | echo "configure: failed program was:" >&5
|
---|
| 1060 | cat conftest.$ac_ext >&5
|
---|
| 1061 | rm -fr conftest*
|
---|
| 1062 | ac_cv_sizeof_int=0
|
---|
| 1063 | fi
|
---|
| 1064 | rm -fr conftest*
|
---|
| 1065 | fi
|
---|
| 1066 |
|
---|
| 1067 | fi
|
---|
| 1068 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
---|
| 1069 | cat >> confdefs.h <<EOF
|
---|
| 1070 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
| 1071 | EOF
|
---|
| 1072 |
|
---|
| 1073 |
|
---|
| 1074 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
---|
[1732] | 1075 | echo "configure:1076: checking size of long" >&5
|
---|
[1407] | 1076 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
---|
| 1077 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1078 | else
|
---|
| 1079 | if test "$cross_compiling" = yes; then
|
---|
| 1080 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1081 | else
|
---|
| 1082 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1083 | #line 1084 "configure"
|
---|
[1407] | 1084 | #include "confdefs.h"
|
---|
| 1085 | #include <stdio.h>
|
---|
| 1086 | main()
|
---|
| 1087 | {
|
---|
| 1088 | FILE *f=fopen("conftestval", "w");
|
---|
| 1089 | if (!f) exit(1);
|
---|
| 1090 | fprintf(f, "%d\n", sizeof(long));
|
---|
| 1091 | exit(0);
|
---|
| 1092 | }
|
---|
| 1093 | EOF
|
---|
[1732] | 1094 | if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1095 | then
|
---|
| 1096 | ac_cv_sizeof_long=`cat conftestval`
|
---|
| 1097 | else
|
---|
| 1098 | echo "configure: failed program was:" >&5
|
---|
| 1099 | cat conftest.$ac_ext >&5
|
---|
| 1100 | rm -fr conftest*
|
---|
| 1101 | ac_cv_sizeof_long=0
|
---|
| 1102 | fi
|
---|
| 1103 | rm -fr conftest*
|
---|
| 1104 | fi
|
---|
| 1105 |
|
---|
| 1106 | fi
|
---|
| 1107 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
---|
| 1108 | cat >> confdefs.h <<EOF
|
---|
| 1109 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
| 1110 | EOF
|
---|
| 1111 |
|
---|
| 1112 |
|
---|
[1663] | 1113 | echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
---|
[1732] | 1114 | echo "configure:1115: checking size of long long" >&5
|
---|
[1663] | 1115 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
---|
| 1116 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1117 | else
|
---|
| 1118 | if test "$cross_compiling" = yes; then
|
---|
| 1119 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1120 | else
|
---|
| 1121 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1122 | #line 1123 "configure"
|
---|
[1663] | 1123 | #include "confdefs.h"
|
---|
| 1124 | #include <stdio.h>
|
---|
| 1125 | main()
|
---|
| 1126 | {
|
---|
| 1127 | FILE *f=fopen("conftestval", "w");
|
---|
| 1128 | if (!f) exit(1);
|
---|
| 1129 | fprintf(f, "%d\n", sizeof(long long));
|
---|
| 1130 | exit(0);
|
---|
| 1131 | }
|
---|
| 1132 | EOF
|
---|
[1732] | 1133 | if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1663] | 1134 | then
|
---|
| 1135 | ac_cv_sizeof_long_long=`cat conftestval`
|
---|
| 1136 | else
|
---|
| 1137 | echo "configure: failed program was:" >&5
|
---|
| 1138 | cat conftest.$ac_ext >&5
|
---|
| 1139 | rm -fr conftest*
|
---|
| 1140 | ac_cv_sizeof_long_long=0
|
---|
| 1141 | fi
|
---|
| 1142 | rm -fr conftest*
|
---|
| 1143 | fi
|
---|
| 1144 |
|
---|
| 1145 | fi
|
---|
| 1146 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
---|
| 1147 | cat >> confdefs.h <<EOF
|
---|
| 1148 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
---|
| 1149 | EOF
|
---|
| 1150 |
|
---|
| 1151 |
|
---|
[1407] | 1152 | echo $ac_n "checking size of float""... $ac_c" 1>&6
|
---|
[1732] | 1153 | echo "configure:1154: checking size of float" >&5
|
---|
[1407] | 1154 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
---|
| 1155 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1156 | else
|
---|
| 1157 | if test "$cross_compiling" = yes; then
|
---|
| 1158 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1159 | else
|
---|
| 1160 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1161 | #line 1162 "configure"
|
---|
[1407] | 1162 | #include "confdefs.h"
|
---|
| 1163 | #include <stdio.h>
|
---|
| 1164 | main()
|
---|
| 1165 | {
|
---|
| 1166 | FILE *f=fopen("conftestval", "w");
|
---|
| 1167 | if (!f) exit(1);
|
---|
| 1168 | fprintf(f, "%d\n", sizeof(float));
|
---|
| 1169 | exit(0);
|
---|
| 1170 | }
|
---|
| 1171 | EOF
|
---|
[1732] | 1172 | if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1173 | then
|
---|
| 1174 | ac_cv_sizeof_float=`cat conftestval`
|
---|
| 1175 | else
|
---|
| 1176 | echo "configure: failed program was:" >&5
|
---|
| 1177 | cat conftest.$ac_ext >&5
|
---|
| 1178 | rm -fr conftest*
|
---|
| 1179 | ac_cv_sizeof_float=0
|
---|
| 1180 | fi
|
---|
| 1181 | rm -fr conftest*
|
---|
| 1182 | fi
|
---|
| 1183 |
|
---|
| 1184 | fi
|
---|
| 1185 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
---|
| 1186 | cat >> confdefs.h <<EOF
|
---|
| 1187 | #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
---|
| 1188 | EOF
|
---|
| 1189 |
|
---|
| 1190 |
|
---|
| 1191 | echo $ac_n "checking size of double""... $ac_c" 1>&6
|
---|
[1732] | 1192 | echo "configure:1193: checking size of double" >&5
|
---|
[1407] | 1193 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
---|
| 1194 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1195 | else
|
---|
| 1196 | if test "$cross_compiling" = yes; then
|
---|
| 1197 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1198 | else
|
---|
| 1199 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1200 | #line 1201 "configure"
|
---|
[1407] | 1201 | #include "confdefs.h"
|
---|
| 1202 | #include <stdio.h>
|
---|
| 1203 | main()
|
---|
| 1204 | {
|
---|
| 1205 | FILE *f=fopen("conftestval", "w");
|
---|
| 1206 | if (!f) exit(1);
|
---|
| 1207 | fprintf(f, "%d\n", sizeof(double));
|
---|
| 1208 | exit(0);
|
---|
| 1209 | }
|
---|
| 1210 | EOF
|
---|
[1732] | 1211 | if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1212 | then
|
---|
| 1213 | ac_cv_sizeof_double=`cat conftestval`
|
---|
| 1214 | else
|
---|
| 1215 | echo "configure: failed program was:" >&5
|
---|
| 1216 | cat conftest.$ac_ext >&5
|
---|
| 1217 | rm -fr conftest*
|
---|
| 1218 | ac_cv_sizeof_double=0
|
---|
| 1219 | fi
|
---|
| 1220 | rm -fr conftest*
|
---|
| 1221 | fi
|
---|
| 1222 |
|
---|
| 1223 | fi
|
---|
| 1224 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
---|
| 1225 | cat >> confdefs.h <<EOF
|
---|
| 1226 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
---|
| 1227 | EOF
|
---|
| 1228 |
|
---|
| 1229 |
|
---|
| 1230 | echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
---|
[1732] | 1231 | echo "configure:1232: checking size of long double" >&5
|
---|
[1407] | 1232 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
---|
| 1233 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1234 | else
|
---|
| 1235 | if test "$cross_compiling" = yes; then
|
---|
| 1236 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1237 | else
|
---|
| 1238 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1239 | #line 1240 "configure"
|
---|
[1407] | 1240 | #include "confdefs.h"
|
---|
| 1241 | #include <stdio.h>
|
---|
| 1242 | main()
|
---|
| 1243 | {
|
---|
| 1244 | FILE *f=fopen("conftestval", "w");
|
---|
| 1245 | if (!f) exit(1);
|
---|
| 1246 | fprintf(f, "%d\n", sizeof(long double));
|
---|
| 1247 | exit(0);
|
---|
| 1248 | }
|
---|
| 1249 | EOF
|
---|
[1732] | 1250 | if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1251 | then
|
---|
| 1252 | ac_cv_sizeof_long_double=`cat conftestval`
|
---|
| 1253 | else
|
---|
| 1254 | echo "configure: failed program was:" >&5
|
---|
| 1255 | cat conftest.$ac_ext >&5
|
---|
| 1256 | rm -fr conftest*
|
---|
| 1257 | ac_cv_sizeof_long_double=0
|
---|
| 1258 | fi
|
---|
| 1259 | rm -fr conftest*
|
---|
| 1260 | fi
|
---|
| 1261 |
|
---|
| 1262 | fi
|
---|
| 1263 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
|
---|
| 1264 | cat >> confdefs.h <<EOF
|
---|
| 1265 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
|
---|
| 1266 | EOF
|
---|
| 1267 |
|
---|
| 1268 |
|
---|
| 1269 |
|
---|
| 1270 |
|
---|
| 1271 | echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
|
---|
[1732] | 1272 | echo "configure:1273: checking "for cfitsio lib"" >&5
|
---|
[1407] | 1273 | MACHDIR=`uname`-$CXX
|
---|
| 1274 | if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1275 | cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
|
---|
[1730] | 1276 | elif test -f $EXTLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1277 | cfitslibdir='-L$(EXTLIBDIR)/$(MACHDIR)/Libs'
|
---|
[1407] | 1278 | elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1279 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
|
---|
| 1280 | elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
|
---|
| 1281 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
|
---|
| 1282 | elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
|
---|
| 1283 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
|
---|
| 1284 | elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
|
---|
| 1285 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
|
---|
| 1286 | elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
|
---|
| 1287 | cfitslibdir='-L$(CFITSIOLIBDIR)'
|
---|
| 1288 | elif test -f $CFITSIODIR/libcfitsio.a; then
|
---|
| 1289 | cfitslibdir='-L$(CFITSIODIR)'
|
---|
| 1290 | elif test -f /usr/local/lib/libcfitsio.a; then
|
---|
| 1291 | cfitslibdir=""
|
---|
| 1292 | else
|
---|
| 1293 | { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
|
---|
| 1294 | fi
|
---|
| 1295 | echo "$ac_t""$cfitslibdir" 1>&6
|
---|
| 1296 |
|
---|
| 1297 |
|
---|
| 1298 | echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
|
---|
[1732] | 1299 | echo "configure:1300: checking "for cfitsio includes"" >&5
|
---|
[1407] | 1300 | if test -f $CFITSIODIR/fitsio.h; then
|
---|
| 1301 | cfitsincdir='-I$(CFITSIODIR)'
|
---|
[1730] | 1302 | elif test -f $EXTLIBDIR/Include/FitsIO/fitsio.h; then
|
---|
[1738] | 1303 | cfitsincdir='-I$(EXTLIBDIR)/Include/FitsIO'
|
---|
[1407] | 1304 | elif test -f /usr/local/include/fitsio.h; then
|
---|
| 1305 | cfitsincdir=""
|
---|
| 1306 | else
|
---|
| 1307 | { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
|
---|
| 1308 | fi
|
---|
| 1309 | echo "$ac_t""$cfitsincdir" 1>&6
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 | echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
---|
[1732] | 1313 | echo "configure:1314: checking for sin in -lm" >&5
|
---|
[1407] | 1314 | ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
---|
| 1315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1316 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1317 | else
|
---|
| 1318 | ac_save_LIBS="$LIBS"
|
---|
| 1319 | LIBS="-lm $LIBS"
|
---|
| 1320 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1321 | #line 1322 "configure"
|
---|
[1407] | 1322 | #include "confdefs.h"
|
---|
| 1323 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1324 | /* We use char because int might match the return type of a gcc2
|
---|
| 1325 | builtin and then its argument prototype would still apply. */
|
---|
| 1326 | char sin();
|
---|
| 1327 |
|
---|
| 1328 | int main() {
|
---|
| 1329 | sin()
|
---|
| 1330 | ; return 0; }
|
---|
| 1331 | EOF
|
---|
[1732] | 1332 | if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 1333 | rm -rf conftest*
|
---|
| 1334 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1335 | else
|
---|
| 1336 | echo "configure: failed program was:" >&5
|
---|
| 1337 | cat conftest.$ac_ext >&5
|
---|
| 1338 | rm -rf conftest*
|
---|
| 1339 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1340 | fi
|
---|
| 1341 | rm -f conftest*
|
---|
| 1342 | LIBS="$ac_save_LIBS"
|
---|
| 1343 |
|
---|
| 1344 | fi
|
---|
| 1345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1346 | echo "$ac_t""yes" 1>&6
|
---|
| 1347 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1348 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1349 | cat >> confdefs.h <<EOF
|
---|
| 1350 | #define $ac_tr_lib 1
|
---|
| 1351 | EOF
|
---|
| 1352 |
|
---|
| 1353 | LIBS="-lm $LIBS"
|
---|
| 1354 |
|
---|
| 1355 | else
|
---|
| 1356 | echo "$ac_t""no" 1>&6
|
---|
| 1357 | fi
|
---|
| 1358 |
|
---|
[1732] | 1359 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
---|
| 1360 | echo "configure:1361: checking for pthread_create in -lpthread" >&5
|
---|
| 1361 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
---|
| 1362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1363 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1364 | else
|
---|
| 1365 | ac_save_LIBS="$LIBS"
|
---|
| 1366 | LIBS="-lpthread $LIBS"
|
---|
| 1367 | cat > conftest.$ac_ext <<EOF
|
---|
| 1368 | #line 1369 "configure"
|
---|
| 1369 | #include "confdefs.h"
|
---|
| 1370 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1371 | /* We use char because int might match the return type of a gcc2
|
---|
| 1372 | builtin and then its argument prototype would still apply. */
|
---|
| 1373 | char pthread_create();
|
---|
[1407] | 1374 |
|
---|
[1732] | 1375 | int main() {
|
---|
| 1376 | pthread_create()
|
---|
| 1377 | ; return 0; }
|
---|
| 1378 | EOF
|
---|
| 1379 | if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1380 | rm -rf conftest*
|
---|
| 1381 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1382 | else
|
---|
| 1383 | echo "configure: failed program was:" >&5
|
---|
| 1384 | cat conftest.$ac_ext >&5
|
---|
| 1385 | rm -rf conftest*
|
---|
| 1386 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1387 | fi
|
---|
| 1388 | rm -f conftest*
|
---|
| 1389 | LIBS="$ac_save_LIBS"
|
---|
| 1390 |
|
---|
| 1391 | fi
|
---|
| 1392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1393 | echo "$ac_t""yes" 1>&6
|
---|
| 1394 | ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1395 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1396 | cat >> confdefs.h <<EOF
|
---|
| 1397 | #define $ac_tr_lib 1
|
---|
| 1398 | EOF
|
---|
| 1399 |
|
---|
| 1400 | LIBS="-lpthread $LIBS"
|
---|
| 1401 |
|
---|
| 1402 | else
|
---|
| 1403 | echo "$ac_t""no" 1>&6
|
---|
| 1404 | fi
|
---|
| 1405 |
|
---|
| 1406 | echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
|
---|
| 1407 | echo "configure:1408: checking for scopy_ in -lblas" >&5
|
---|
| 1408 | ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
|
---|
| 1409 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1410 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1411 | else
|
---|
| 1412 | ac_save_LIBS="$LIBS"
|
---|
| 1413 | LIBS="-lblas $LIBS"
|
---|
| 1414 | cat > conftest.$ac_ext <<EOF
|
---|
| 1415 | #line 1416 "configure"
|
---|
| 1416 | #include "confdefs.h"
|
---|
| 1417 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1418 | /* We use char because int might match the return type of a gcc2
|
---|
| 1419 | builtin and then its argument prototype would still apply. */
|
---|
| 1420 | char scopy_();
|
---|
| 1421 |
|
---|
| 1422 | int main() {
|
---|
| 1423 | scopy_()
|
---|
| 1424 | ; return 0; }
|
---|
| 1425 | EOF
|
---|
| 1426 | if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1427 | rm -rf conftest*
|
---|
| 1428 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1429 | else
|
---|
| 1430 | echo "configure: failed program was:" >&5
|
---|
| 1431 | cat conftest.$ac_ext >&5
|
---|
| 1432 | rm -rf conftest*
|
---|
| 1433 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1434 | fi
|
---|
| 1435 | rm -f conftest*
|
---|
| 1436 | LIBS="$ac_save_LIBS"
|
---|
| 1437 |
|
---|
| 1438 | fi
|
---|
| 1439 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1440 | echo "$ac_t""yes" 1>&6
|
---|
| 1441 | ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1442 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1443 | cat >> confdefs.h <<EOF
|
---|
| 1444 | #define $ac_tr_lib 1
|
---|
| 1445 | EOF
|
---|
| 1446 |
|
---|
| 1447 | LIBS="-lblas $LIBS"
|
---|
| 1448 |
|
---|
| 1449 | else
|
---|
| 1450 | echo "$ac_t""no" 1>&6
|
---|
| 1451 | fi
|
---|
| 1452 |
|
---|
| 1453 | echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
|
---|
| 1454 | echo "configure:1455: checking for s_copy in -lg2c" >&5
|
---|
| 1455 | ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
|
---|
| 1456 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1457 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1458 | else
|
---|
| 1459 | ac_save_LIBS="$LIBS"
|
---|
| 1460 | LIBS="-lg2c $LIBS"
|
---|
| 1461 | cat > conftest.$ac_ext <<EOF
|
---|
| 1462 | #line 1463 "configure"
|
---|
| 1463 | #include "confdefs.h"
|
---|
| 1464 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1465 | /* We use char because int might match the return type of a gcc2
|
---|
| 1466 | builtin and then its argument prototype would still apply. */
|
---|
| 1467 | char s_copy();
|
---|
| 1468 |
|
---|
| 1469 | int main() {
|
---|
| 1470 | s_copy()
|
---|
| 1471 | ; return 0; }
|
---|
| 1472 | EOF
|
---|
| 1473 | if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 1474 | rm -rf conftest*
|
---|
| 1475 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1476 | else
|
---|
| 1477 | echo "configure: failed program was:" >&5
|
---|
| 1478 | cat conftest.$ac_ext >&5
|
---|
| 1479 | rm -rf conftest*
|
---|
| 1480 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1481 | fi
|
---|
| 1482 | rm -f conftest*
|
---|
| 1483 | LIBS="$ac_save_LIBS"
|
---|
| 1484 |
|
---|
| 1485 | fi
|
---|
| 1486 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1487 | echo "$ac_t""yes" 1>&6
|
---|
| 1488 | ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1489 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1490 | cat >> confdefs.h <<EOF
|
---|
| 1491 | #define $ac_tr_lib 1
|
---|
| 1492 | EOF
|
---|
| 1493 |
|
---|
| 1494 | LIBS="-lg2c $LIBS"
|
---|
| 1495 |
|
---|
| 1496 | else
|
---|
| 1497 | echo "$ac_t""no" 1>&6
|
---|
| 1498 | fi
|
---|
| 1499 |
|
---|
| 1500 |
|
---|
[1407] | 1501 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
[1732] | 1502 | echo "configure:1503: checking how to run the C preprocessor" >&5
|
---|
[1407] | 1503 | # On Suns, sometimes $CPP names a directory.
|
---|
| 1504 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 1505 | CPP=
|
---|
| 1506 | fi
|
---|
| 1507 | if test -z "$CPP"; then
|
---|
| 1508 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
| 1509 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1510 | else
|
---|
| 1511 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
| 1512 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
| 1513 | CPP="${CC-cc} -E"
|
---|
| 1514 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 1515 | # not just through cpp.
|
---|
| 1516 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1517 | #line 1518 "configure"
|
---|
[1407] | 1518 | #include "confdefs.h"
|
---|
| 1519 | #include <assert.h>
|
---|
| 1520 | Syntax Error
|
---|
| 1521 | EOF
|
---|
| 1522 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1732] | 1523 | { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1524 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1525 | if test -z "$ac_err"; then
|
---|
| 1526 | :
|
---|
| 1527 | else
|
---|
| 1528 | echo "$ac_err" >&5
|
---|
| 1529 | echo "configure: failed program was:" >&5
|
---|
| 1530 | cat conftest.$ac_ext >&5
|
---|
| 1531 | rm -rf conftest*
|
---|
| 1532 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
| 1533 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1534 | #line 1535 "configure"
|
---|
[1407] | 1535 | #include "confdefs.h"
|
---|
| 1536 | #include <assert.h>
|
---|
| 1537 | Syntax Error
|
---|
| 1538 | EOF
|
---|
| 1539 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1732] | 1540 | { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1541 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1542 | if test -z "$ac_err"; then
|
---|
| 1543 | :
|
---|
| 1544 | else
|
---|
| 1545 | echo "$ac_err" >&5
|
---|
| 1546 | echo "configure: failed program was:" >&5
|
---|
| 1547 | cat conftest.$ac_ext >&5
|
---|
| 1548 | rm -rf conftest*
|
---|
| 1549 | CPP="${CC-cc} -nologo -E"
|
---|
| 1550 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1551 | #line 1552 "configure"
|
---|
[1407] | 1552 | #include "confdefs.h"
|
---|
| 1553 | #include <assert.h>
|
---|
| 1554 | Syntax Error
|
---|
| 1555 | EOF
|
---|
| 1556 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1732] | 1557 | { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1558 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1559 | if test -z "$ac_err"; then
|
---|
| 1560 | :
|
---|
| 1561 | else
|
---|
| 1562 | echo "$ac_err" >&5
|
---|
| 1563 | echo "configure: failed program was:" >&5
|
---|
| 1564 | cat conftest.$ac_ext >&5
|
---|
| 1565 | rm -rf conftest*
|
---|
| 1566 | CPP=/lib/cpp
|
---|
| 1567 | fi
|
---|
| 1568 | rm -f conftest*
|
---|
| 1569 | fi
|
---|
| 1570 | rm -f conftest*
|
---|
| 1571 | fi
|
---|
| 1572 | rm -f conftest*
|
---|
| 1573 | ac_cv_prog_CPP="$CPP"
|
---|
| 1574 | fi
|
---|
| 1575 | CPP="$ac_cv_prog_CPP"
|
---|
| 1576 | else
|
---|
| 1577 | ac_cv_prog_CPP="$CPP"
|
---|
| 1578 | fi
|
---|
| 1579 | echo "$ac_t""$CPP" 1>&6
|
---|
| 1580 |
|
---|
| 1581 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
[1732] | 1582 | echo "configure:1583: checking for ANSI C header files" >&5
|
---|
[1407] | 1583 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
| 1584 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1585 | else
|
---|
| 1586 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1587 | #line 1588 "configure"
|
---|
[1407] | 1588 | #include "confdefs.h"
|
---|
| 1589 | #include <stdlib.h>
|
---|
| 1590 | #include <stdarg.h>
|
---|
| 1591 | #include <string.h>
|
---|
| 1592 | #include <float.h>
|
---|
| 1593 | EOF
|
---|
| 1594 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1732] | 1595 | { (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1596 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1597 | if test -z "$ac_err"; then
|
---|
| 1598 | rm -rf conftest*
|
---|
| 1599 | ac_cv_header_stdc=yes
|
---|
| 1600 | else
|
---|
| 1601 | echo "$ac_err" >&5
|
---|
| 1602 | echo "configure: failed program was:" >&5
|
---|
| 1603 | cat conftest.$ac_ext >&5
|
---|
| 1604 | rm -rf conftest*
|
---|
| 1605 | ac_cv_header_stdc=no
|
---|
| 1606 | fi
|
---|
| 1607 | rm -f conftest*
|
---|
| 1608 |
|
---|
| 1609 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1610 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 1611 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1612 | #line 1613 "configure"
|
---|
[1407] | 1613 | #include "confdefs.h"
|
---|
| 1614 | #include <string.h>
|
---|
| 1615 | EOF
|
---|
| 1616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1617 | egrep "memchr" >/dev/null 2>&1; then
|
---|
| 1618 | :
|
---|
| 1619 | else
|
---|
| 1620 | rm -rf conftest*
|
---|
| 1621 | ac_cv_header_stdc=no
|
---|
| 1622 | fi
|
---|
| 1623 | rm -f conftest*
|
---|
| 1624 |
|
---|
| 1625 | fi
|
---|
| 1626 |
|
---|
| 1627 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1628 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 1629 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1630 | #line 1631 "configure"
|
---|
[1407] | 1631 | #include "confdefs.h"
|
---|
| 1632 | #include <stdlib.h>
|
---|
| 1633 | EOF
|
---|
| 1634 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1635 | egrep "free" >/dev/null 2>&1; then
|
---|
| 1636 | :
|
---|
| 1637 | else
|
---|
| 1638 | rm -rf conftest*
|
---|
| 1639 | ac_cv_header_stdc=no
|
---|
| 1640 | fi
|
---|
| 1641 | rm -f conftest*
|
---|
| 1642 |
|
---|
| 1643 | fi
|
---|
| 1644 |
|
---|
| 1645 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1646 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 1647 | if test "$cross_compiling" = yes; then
|
---|
| 1648 | :
|
---|
| 1649 | else
|
---|
| 1650 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1651 | #line 1652 "configure"
|
---|
[1407] | 1652 | #include "confdefs.h"
|
---|
| 1653 | #include <ctype.h>
|
---|
| 1654 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 1655 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 1656 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 1657 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
| 1658 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
| 1659 | exit (0); }
|
---|
| 1660 |
|
---|
| 1661 | EOF
|
---|
[1732] | 1662 | if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1663 | then
|
---|
| 1664 | :
|
---|
| 1665 | else
|
---|
| 1666 | echo "configure: failed program was:" >&5
|
---|
| 1667 | cat conftest.$ac_ext >&5
|
---|
| 1668 | rm -fr conftest*
|
---|
| 1669 | ac_cv_header_stdc=no
|
---|
| 1670 | fi
|
---|
| 1671 | rm -fr conftest*
|
---|
| 1672 | fi
|
---|
| 1673 |
|
---|
| 1674 | fi
|
---|
| 1675 | fi
|
---|
| 1676 |
|
---|
| 1677 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
| 1678 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1679 | cat >> confdefs.h <<\EOF
|
---|
| 1680 | #define STDC_HEADERS 1
|
---|
| 1681 | EOF
|
---|
| 1682 |
|
---|
| 1683 | fi
|
---|
| 1684 |
|
---|
[1685] | 1685 | for ac_hdr in values.h stdint.h
|
---|
[1663] | 1686 | do
|
---|
| 1687 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
| 1688 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
[1732] | 1689 | echo "configure:1690: checking for $ac_hdr" >&5
|
---|
[1663] | 1690 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 1691 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1692 | else
|
---|
| 1693 | cat > conftest.$ac_ext <<EOF
|
---|
[1732] | 1694 | #line 1695 "configure"
|
---|
[1663] | 1695 | #include "confdefs.h"
|
---|
| 1696 | #include <$ac_hdr>
|
---|
| 1697 | EOF
|
---|
| 1698 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1732] | 1699 | { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1663] | 1700 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1701 | if test -z "$ac_err"; then
|
---|
| 1702 | rm -rf conftest*
|
---|
| 1703 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 1704 | else
|
---|
| 1705 | echo "$ac_err" >&5
|
---|
| 1706 | echo "configure: failed program was:" >&5
|
---|
| 1707 | cat conftest.$ac_ext >&5
|
---|
| 1708 | rm -rf conftest*
|
---|
| 1709 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 1710 | fi
|
---|
| 1711 | rm -f conftest*
|
---|
| 1712 | fi
|
---|
| 1713 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 1714 | echo "$ac_t""yes" 1>&6
|
---|
| 1715 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
| 1716 | cat >> confdefs.h <<EOF
|
---|
| 1717 | #define $ac_tr_hdr 1
|
---|
| 1718 | EOF
|
---|
| 1719 |
|
---|
| 1720 | else
|
---|
| 1721 | echo "$ac_t""no" 1>&6
|
---|
| 1722 | fi
|
---|
| 1723 | done
|
---|
[1407] | 1724 |
|
---|
[1663] | 1725 |
|
---|
[1477] | 1726 | outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
|
---|
| 1727 | if [ $use_sophya = 1 ]; then
|
---|
| 1728 | outfiles="$outfiles sophya/Makefile"
|
---|
| 1729 | fi
|
---|
| 1730 |
|
---|
[1407] | 1731 | trap '' 1 2 15
|
---|
| 1732 | cat > confcache <<\EOF
|
---|
| 1733 | # This file is a shell script that caches the results of configure
|
---|
| 1734 | # tests run on this system so they can be shared between configure
|
---|
| 1735 | # scripts and configure runs. It is not useful on other systems.
|
---|
| 1736 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
| 1737 | #
|
---|
| 1738 | # By default, configure uses ./config.cache as the cache file,
|
---|
| 1739 | # creating it if it does not exist already. You can give configure
|
---|
| 1740 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
| 1741 | # what configure does when it calls configure scripts in
|
---|
| 1742 | # subdirectories, so they share the cache.
|
---|
| 1743 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
| 1744 | # config.status only pays attention to the cache file if you give it the
|
---|
| 1745 | # --recheck option to rerun configure.
|
---|
| 1746 | #
|
---|
| 1747 | EOF
|
---|
| 1748 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1749 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 1750 | # So, don't put newlines in cache variables' values.
|
---|
| 1751 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 1752 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 1753 | (set) 2>&1 |
|
---|
| 1754 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 1755 | *ac_space=\ *)
|
---|
| 1756 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
| 1757 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 1758 | sed -n \
|
---|
| 1759 | -e "s/'/'\\\\''/g" \
|
---|
| 1760 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
| 1761 | ;;
|
---|
| 1762 | *)
|
---|
| 1763 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 1764 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
| 1765 | ;;
|
---|
| 1766 | esac >> confcache
|
---|
| 1767 | if cmp -s $cache_file confcache; then
|
---|
| 1768 | :
|
---|
| 1769 | else
|
---|
| 1770 | if test -w $cache_file; then
|
---|
| 1771 | echo "updating cache $cache_file"
|
---|
| 1772 | cat confcache > $cache_file
|
---|
| 1773 | else
|
---|
| 1774 | echo "not updating unwritable cache $cache_file"
|
---|
| 1775 | fi
|
---|
| 1776 | fi
|
---|
| 1777 | rm -f confcache
|
---|
| 1778 |
|
---|
| 1779 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 1780 |
|
---|
| 1781 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 1782 | # Let make expand exec_prefix.
|
---|
| 1783 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 1784 |
|
---|
| 1785 | # Any assignment to VPATH causes Sun make to only execute
|
---|
| 1786 | # the first set of double-colon rules, so remove it if not needed.
|
---|
| 1787 | # If there is a colon in the path, we need to keep it.
|
---|
| 1788 | if test "x$srcdir" = x.; then
|
---|
| 1789 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
| 1790 | fi
|
---|
| 1791 |
|
---|
| 1792 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
| 1793 |
|
---|
| 1794 | DEFS=-DHAVE_CONFIG_H
|
---|
| 1795 |
|
---|
| 1796 | # Without the "./", some shells look in PATH for config.status.
|
---|
| 1797 | : ${CONFIG_STATUS=./config.status}
|
---|
| 1798 |
|
---|
| 1799 | echo creating $CONFIG_STATUS
|
---|
| 1800 | rm -f $CONFIG_STATUS
|
---|
| 1801 | cat > $CONFIG_STATUS <<EOF
|
---|
| 1802 | #! /bin/sh
|
---|
| 1803 | # Generated automatically by configure.
|
---|
| 1804 | # Run this file to recreate the current configuration.
|
---|
| 1805 | # This directory was configured as follows,
|
---|
| 1806 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
| 1807 | #
|
---|
| 1808 | # $0 $ac_configure_args
|
---|
| 1809 | #
|
---|
| 1810 | # Compiler output produced by configure, useful for debugging
|
---|
| 1811 | # configure, is in ./config.log if it exists.
|
---|
| 1812 |
|
---|
| 1813 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
| 1814 | for ac_option
|
---|
| 1815 | do
|
---|
| 1816 | case "\$ac_option" in
|
---|
| 1817 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 1818 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
| 1819 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
| 1820 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
| 1821 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
| 1822 | exit 0 ;;
|
---|
| 1823 | -help | --help | --hel | --he | --h)
|
---|
| 1824 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
| 1825 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
| 1826 | esac
|
---|
| 1827 | done
|
---|
| 1828 |
|
---|
| 1829 | ac_given_srcdir=$srcdir
|
---|
| 1830 |
|
---|
[1477] | 1831 | trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
[1407] | 1832 | EOF
|
---|
| 1833 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1834 |
|
---|
| 1835 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 1836 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
| 1837 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
| 1838 | $ac_vpsub
|
---|
| 1839 | $extrasub
|
---|
| 1840 | s%@SHELL@%$SHELL%g
|
---|
| 1841 | s%@CFLAGS@%$CFLAGS%g
|
---|
| 1842 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
| 1843 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
| 1844 | s%@FFLAGS@%$FFLAGS%g
|
---|
| 1845 | s%@DEFS@%$DEFS%g
|
---|
| 1846 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
| 1847 | s%@LIBS@%$LIBS%g
|
---|
| 1848 | s%@exec_prefix@%$exec_prefix%g
|
---|
| 1849 | s%@prefix@%$prefix%g
|
---|
| 1850 | s%@program_transform_name@%$program_transform_name%g
|
---|
| 1851 | s%@bindir@%$bindir%g
|
---|
| 1852 | s%@sbindir@%$sbindir%g
|
---|
| 1853 | s%@libexecdir@%$libexecdir%g
|
---|
| 1854 | s%@datadir@%$datadir%g
|
---|
| 1855 | s%@sysconfdir@%$sysconfdir%g
|
---|
| 1856 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
| 1857 | s%@localstatedir@%$localstatedir%g
|
---|
| 1858 | s%@libdir@%$libdir%g
|
---|
| 1859 | s%@includedir@%$includedir%g
|
---|
| 1860 | s%@oldincludedir@%$oldincludedir%g
|
---|
| 1861 | s%@infodir@%$infodir%g
|
---|
| 1862 | s%@mandir@%$mandir%g
|
---|
| 1863 | s%@use_sophya@%$use_sophya%g
|
---|
[1477] | 1864 | s%@CC@%$CC%g
|
---|
[1407] | 1865 | s%@CXX@%$CXX%g
|
---|
[1706] | 1866 | s%@AR@%$AR%g
|
---|
[1707] | 1867 | s%@RANLIB@%$RANLIB%g
|
---|
[1692] | 1868 | s%@gcc@%$gcc%g
|
---|
[1407] | 1869 | s%@cfitslibdir@%$cfitslibdir%g
|
---|
| 1870 | s%@cfitsincdir@%$cfitsincdir%g
|
---|
| 1871 | s%@CPP@%$CPP%g
|
---|
| 1872 |
|
---|
| 1873 | CEOF
|
---|
| 1874 | EOF
|
---|
| 1875 |
|
---|
| 1876 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1877 |
|
---|
| 1878 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 1879 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 1880 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
| 1881 | ac_file=1 # Number of current file.
|
---|
| 1882 | ac_beg=1 # First line for current file.
|
---|
| 1883 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
| 1884 | ac_more_lines=:
|
---|
| 1885 | ac_sed_cmds=""
|
---|
| 1886 | while $ac_more_lines; do
|
---|
| 1887 | if test $ac_beg -gt 1; then
|
---|
| 1888 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1889 | else
|
---|
| 1890 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1891 | fi
|
---|
| 1892 | if test ! -s conftest.s$ac_file; then
|
---|
| 1893 | ac_more_lines=false
|
---|
| 1894 | rm -f conftest.s$ac_file
|
---|
| 1895 | else
|
---|
| 1896 | if test -z "$ac_sed_cmds"; then
|
---|
| 1897 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
| 1898 | else
|
---|
| 1899 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
| 1900 | fi
|
---|
| 1901 | ac_file=`expr $ac_file + 1`
|
---|
| 1902 | ac_beg=$ac_end
|
---|
| 1903 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
| 1904 | fi
|
---|
| 1905 | done
|
---|
| 1906 | if test -z "$ac_sed_cmds"; then
|
---|
| 1907 | ac_sed_cmds=cat
|
---|
| 1908 | fi
|
---|
| 1909 | EOF
|
---|
| 1910 |
|
---|
| 1911 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1912 |
|
---|
[1477] | 1913 | CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
|
---|
[1407] | 1914 | EOF
|
---|
| 1915 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1916 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
| 1917 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 1918 | case "$ac_file" in
|
---|
| 1919 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 1920 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 1921 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 1922 | esac
|
---|
| 1923 |
|
---|
| 1924 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
| 1925 |
|
---|
| 1926 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 1927 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 1928 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 1929 | # The file is in a subdirectory.
|
---|
| 1930 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 1931 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
| 1932 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 1933 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
| 1934 | else
|
---|
| 1935 | ac_dir_suffix= ac_dots=
|
---|
| 1936 | fi
|
---|
| 1937 |
|
---|
| 1938 | case "$ac_given_srcdir" in
|
---|
| 1939 | .) srcdir=.
|
---|
| 1940 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
| 1941 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
| 1942 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
| 1943 | *) # Relative path.
|
---|
| 1944 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
| 1945 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
| 1946 | esac
|
---|
| 1947 |
|
---|
| 1948 |
|
---|
| 1949 | echo creating "$ac_file"
|
---|
| 1950 | rm -f "$ac_file"
|
---|
| 1951 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
| 1952 | case "$ac_file" in
|
---|
| 1953 | *Makefile*) ac_comsub="1i\\
|
---|
| 1954 | # $configure_input" ;;
|
---|
| 1955 | *) ac_comsub= ;;
|
---|
| 1956 | esac
|
---|
| 1957 |
|
---|
| 1958 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 1959 | sed -e "$ac_comsub
|
---|
| 1960 | s%@configure_input@%$configure_input%g
|
---|
| 1961 | s%@srcdir@%$srcdir%g
|
---|
| 1962 | s%@top_srcdir@%$top_srcdir%g
|
---|
| 1963 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
| 1964 | fi; done
|
---|
| 1965 | rm -f conftest.s*
|
---|
| 1966 |
|
---|
| 1967 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 1968 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 1969 | #
|
---|
| 1970 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 1971 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 1972 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
| 1973 | ac_dC='\3'
|
---|
| 1974 | ac_dD='%g'
|
---|
| 1975 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
| 1976 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 1977 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
| 1978 | ac_uC=' '
|
---|
| 1979 | ac_uD='\4%g'
|
---|
| 1980 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 1981 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 1982 | ac_eB='$%\1#\2define\3'
|
---|
| 1983 | ac_eC=' '
|
---|
| 1984 | ac_eD='%g'
|
---|
| 1985 |
|
---|
| 1986 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
| 1987 | EOF
|
---|
| 1988 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1989 | CONFIG_HEADERS="conf.h"
|
---|
| 1990 | EOF
|
---|
| 1991 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1992 | fi
|
---|
| 1993 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
| 1994 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 1995 | case "$ac_file" in
|
---|
| 1996 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 1997 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 1998 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 1999 | esac
|
---|
| 2000 |
|
---|
| 2001 | echo creating $ac_file
|
---|
| 2002 |
|
---|
| 2003 | rm -f conftest.frag conftest.in conftest.out
|
---|
| 2004 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 2005 | cat $ac_file_inputs > conftest.in
|
---|
| 2006 |
|
---|
| 2007 | EOF
|
---|
| 2008 |
|
---|
| 2009 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
| 2010 | # the proper values into config.h.in to produce config.h. And first:
|
---|
| 2011 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 2012 | # Protect against being in an unquoted here document in config.status.
|
---|
| 2013 | rm -f conftest.vals
|
---|
| 2014 | cat > conftest.hdr <<\EOF
|
---|
| 2015 | s/[\\&%]/\\&/g
|
---|
| 2016 | s%[\\$`]%\\&%g
|
---|
| 2017 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
| 2018 | s%ac_d%ac_u%gp
|
---|
| 2019 | s%ac_u%ac_e%gp
|
---|
| 2020 | EOF
|
---|
| 2021 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
| 2022 | rm -f conftest.hdr
|
---|
| 2023 |
|
---|
| 2024 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 2025 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 2026 | # on some systems where configure will not decide to define it.
|
---|
| 2027 | cat >> conftest.vals <<\EOF
|
---|
| 2028 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
| 2029 | EOF
|
---|
| 2030 |
|
---|
| 2031 | # Break up conftest.vals because some shells have a limit on
|
---|
| 2032 | # the size of here documents, and old seds have small limits too.
|
---|
| 2033 |
|
---|
| 2034 | rm -f conftest.tail
|
---|
| 2035 | while :
|
---|
| 2036 | do
|
---|
| 2037 | ac_lines=`grep -c . conftest.vals`
|
---|
| 2038 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
| 2039 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
| 2040 | # Write a limited-size here document to conftest.frag.
|
---|
| 2041 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
| 2042 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
| 2043 | echo 'CEOF
|
---|
| 2044 | sed -f conftest.frag conftest.in > conftest.out
|
---|
| 2045 | rm -f conftest.in
|
---|
| 2046 | mv conftest.out conftest.in
|
---|
| 2047 | ' >> $CONFIG_STATUS
|
---|
| 2048 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
| 2049 | rm -f conftest.vals
|
---|
| 2050 | mv conftest.tail conftest.vals
|
---|
| 2051 | done
|
---|
| 2052 | rm -f conftest.vals
|
---|
| 2053 |
|
---|
| 2054 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2055 | rm -f conftest.frag conftest.h
|
---|
| 2056 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
| 2057 | cat conftest.in >> conftest.h
|
---|
| 2058 | rm -f conftest.in
|
---|
| 2059 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
| 2060 | echo "$ac_file is unchanged"
|
---|
| 2061 | rm -f conftest.h
|
---|
| 2062 | else
|
---|
| 2063 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 2064 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 2065 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 2066 | # The file is in a subdirectory.
|
---|
| 2067 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 2068 | fi
|
---|
| 2069 | rm -f $ac_file
|
---|
| 2070 | mv conftest.h $ac_file
|
---|
| 2071 | fi
|
---|
| 2072 | fi; done
|
---|
| 2073 |
|
---|
| 2074 | EOF
|
---|
| 2075 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 2076 |
|
---|
| 2077 | EOF
|
---|
| 2078 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 2079 |
|
---|
| 2080 | exit 0
|
---|
| 2081 | EOF
|
---|
| 2082 | chmod +x $CONFIG_STATUS
|
---|
| 2083 | rm -fr confdefs* $ac_clean_files
|
---|
| 2084 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
| 2085 |
|
---|
[1477] | 2086 |
|
---|