[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 |
|
---|
[1477] | 547 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 548 | set dummy gcc; ac_word=$2
|
---|
| 549 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 550 | echo "configure:551: checking for $ac_word" >&5
|
---|
| 551 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 552 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 553 | else
|
---|
| 554 | if test -n "$CC"; then
|
---|
| 555 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 556 | else
|
---|
| 557 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 558 | ac_dummy="$PATH"
|
---|
| 559 | for ac_dir in $ac_dummy; do
|
---|
| 560 | test -z "$ac_dir" && ac_dir=.
|
---|
| 561 | if test -f $ac_dir/$ac_word; then
|
---|
| 562 | ac_cv_prog_CC="gcc"
|
---|
| 563 | break
|
---|
| 564 | fi
|
---|
| 565 | done
|
---|
| 566 | IFS="$ac_save_ifs"
|
---|
| 567 | fi
|
---|
| 568 | fi
|
---|
| 569 | CC="$ac_cv_prog_CC"
|
---|
| 570 | if test -n "$CC"; then
|
---|
| 571 | echo "$ac_t""$CC" 1>&6
|
---|
| 572 | else
|
---|
| 573 | echo "$ac_t""no" 1>&6
|
---|
| 574 | fi
|
---|
| 575 |
|
---|
| 576 | if test -z "$CC"; then
|
---|
| 577 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 578 | set dummy cc; ac_word=$2
|
---|
| 579 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 580 | echo "configure:581: checking for $ac_word" >&5
|
---|
| 581 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 582 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 583 | else
|
---|
| 584 | if test -n "$CC"; then
|
---|
| 585 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 586 | else
|
---|
| 587 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 588 | ac_prog_rejected=no
|
---|
| 589 | ac_dummy="$PATH"
|
---|
| 590 | for ac_dir in $ac_dummy; do
|
---|
| 591 | test -z "$ac_dir" && ac_dir=.
|
---|
| 592 | if test -f $ac_dir/$ac_word; then
|
---|
| 593 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
| 594 | ac_prog_rejected=yes
|
---|
| 595 | continue
|
---|
| 596 | fi
|
---|
| 597 | ac_cv_prog_CC="cc"
|
---|
| 598 | break
|
---|
| 599 | fi
|
---|
| 600 | done
|
---|
| 601 | IFS="$ac_save_ifs"
|
---|
| 602 | if test $ac_prog_rejected = yes; then
|
---|
| 603 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 604 | set dummy $ac_cv_prog_CC
|
---|
| 605 | shift
|
---|
| 606 | if test $# -gt 0; then
|
---|
| 607 | # We chose a different compiler from the bogus one.
|
---|
| 608 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 609 | # first if we set CC to just the basename; use the full file name.
|
---|
| 610 | shift
|
---|
| 611 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
| 612 | shift
|
---|
| 613 | ac_cv_prog_CC="$@"
|
---|
| 614 | fi
|
---|
| 615 | fi
|
---|
| 616 | fi
|
---|
| 617 | fi
|
---|
| 618 | CC="$ac_cv_prog_CC"
|
---|
| 619 | if test -n "$CC"; then
|
---|
| 620 | echo "$ac_t""$CC" 1>&6
|
---|
| 621 | else
|
---|
| 622 | echo "$ac_t""no" 1>&6
|
---|
| 623 | fi
|
---|
| 624 |
|
---|
| 625 | if test -z "$CC"; then
|
---|
| 626 | case "`uname -s`" in
|
---|
| 627 | *win32* | *WIN32*)
|
---|
| 628 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
| 629 | set dummy cl; ac_word=$2
|
---|
| 630 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 631 | echo "configure:632: checking for $ac_word" >&5
|
---|
| 632 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
| 633 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 634 | else
|
---|
| 635 | if test -n "$CC"; then
|
---|
| 636 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 637 | else
|
---|
| 638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 639 | ac_dummy="$PATH"
|
---|
| 640 | for ac_dir in $ac_dummy; do
|
---|
| 641 | test -z "$ac_dir" && ac_dir=.
|
---|
| 642 | if test -f $ac_dir/$ac_word; then
|
---|
| 643 | ac_cv_prog_CC="cl"
|
---|
| 644 | break
|
---|
| 645 | fi
|
---|
| 646 | done
|
---|
| 647 | IFS="$ac_save_ifs"
|
---|
| 648 | fi
|
---|
| 649 | fi
|
---|
| 650 | CC="$ac_cv_prog_CC"
|
---|
| 651 | if test -n "$CC"; then
|
---|
| 652 | echo "$ac_t""$CC" 1>&6
|
---|
| 653 | else
|
---|
| 654 | echo "$ac_t""no" 1>&6
|
---|
| 655 | fi
|
---|
| 656 | ;;
|
---|
| 657 | esac
|
---|
| 658 | fi
|
---|
| 659 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
| 660 | fi
|
---|
| 661 |
|
---|
| 662 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
| 663 | echo "configure:664: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
| 664 |
|
---|
| 665 | ac_ext=c
|
---|
| 666 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 667 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 668 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 669 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 670 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 671 |
|
---|
| 672 | cat > conftest.$ac_ext << EOF
|
---|
| 673 |
|
---|
| 674 | #line 675 "configure"
|
---|
| 675 | #include "confdefs.h"
|
---|
| 676 |
|
---|
| 677 | main(){return(0);}
|
---|
| 678 | EOF
|
---|
| 679 | if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
| 680 | ac_cv_prog_cc_works=yes
|
---|
| 681 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 682 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 683 | ac_cv_prog_cc_cross=no
|
---|
| 684 | else
|
---|
| 685 | ac_cv_prog_cc_cross=yes
|
---|
| 686 | fi
|
---|
| 687 | else
|
---|
| 688 | echo "configure: failed program was:" >&5
|
---|
| 689 | cat conftest.$ac_ext >&5
|
---|
| 690 | ac_cv_prog_cc_works=no
|
---|
| 691 | fi
|
---|
| 692 | rm -fr conftest*
|
---|
| 693 | ac_ext=c
|
---|
| 694 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 695 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 696 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 697 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 698 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 699 |
|
---|
| 700 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
| 701 | if test $ac_cv_prog_cc_works = no; then
|
---|
| 702 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 703 | fi
|
---|
| 704 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
| 705 | echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
| 706 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
| 707 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 708 |
|
---|
| 709 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
| 710 | echo "configure:711: checking whether we are using GNU C" >&5
|
---|
| 711 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
| 712 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 713 | else
|
---|
| 714 | cat > conftest.c <<EOF
|
---|
| 715 | #ifdef __GNUC__
|
---|
| 716 | yes;
|
---|
| 717 | #endif
|
---|
| 718 | EOF
|
---|
| 719 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
| 720 | ac_cv_prog_gcc=yes
|
---|
| 721 | else
|
---|
| 722 | ac_cv_prog_gcc=no
|
---|
| 723 | fi
|
---|
| 724 | fi
|
---|
| 725 |
|
---|
| 726 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
| 727 |
|
---|
| 728 | if test $ac_cv_prog_gcc = yes; then
|
---|
| 729 | GCC=yes
|
---|
| 730 | else
|
---|
| 731 | GCC=
|
---|
| 732 | fi
|
---|
| 733 |
|
---|
| 734 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
| 735 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 736 | CFLAGS=
|
---|
| 737 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
| 738 | echo "configure:739: checking whether ${CC-cc} accepts -g" >&5
|
---|
| 739 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
| 740 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 741 | else
|
---|
| 742 | echo 'void f(){}' > conftest.c
|
---|
| 743 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
| 744 | ac_cv_prog_cc_g=yes
|
---|
| 745 | else
|
---|
| 746 | ac_cv_prog_cc_g=no
|
---|
| 747 | fi
|
---|
| 748 | rm -f conftest*
|
---|
| 749 |
|
---|
| 750 | fi
|
---|
| 751 |
|
---|
| 752 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
| 753 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 754 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 755 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 756 | if test "$GCC" = yes; then
|
---|
| 757 | CFLAGS="-g -O2"
|
---|
| 758 | else
|
---|
| 759 | CFLAGS="-g"
|
---|
| 760 | fi
|
---|
| 761 | else
|
---|
| 762 | if test "$GCC" = yes; then
|
---|
| 763 | CFLAGS="-O2"
|
---|
| 764 | else
|
---|
| 765 | CFLAGS=
|
---|
| 766 | fi
|
---|
| 767 | fi
|
---|
| 768 |
|
---|
[1407] | 769 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
| 770 | do
|
---|
| 771 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 772 | set dummy $ac_prog; ac_word=$2
|
---|
| 773 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
[1477] | 774 | echo "configure:775: checking for $ac_word" >&5
|
---|
[1407] | 775 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
| 776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 777 | else
|
---|
| 778 | if test -n "$CXX"; then
|
---|
| 779 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 780 | else
|
---|
| 781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 782 | ac_dummy="$PATH"
|
---|
| 783 | for ac_dir in $ac_dummy; do
|
---|
| 784 | test -z "$ac_dir" && ac_dir=.
|
---|
| 785 | if test -f $ac_dir/$ac_word; then
|
---|
| 786 | ac_cv_prog_CXX="$ac_prog"
|
---|
| 787 | break
|
---|
| 788 | fi
|
---|
| 789 | done
|
---|
| 790 | IFS="$ac_save_ifs"
|
---|
| 791 | fi
|
---|
| 792 | fi
|
---|
| 793 | CXX="$ac_cv_prog_CXX"
|
---|
| 794 | if test -n "$CXX"; then
|
---|
| 795 | echo "$ac_t""$CXX" 1>&6
|
---|
| 796 | else
|
---|
| 797 | echo "$ac_t""no" 1>&6
|
---|
| 798 | fi
|
---|
| 799 |
|
---|
| 800 | test -n "$CXX" && break
|
---|
| 801 | done
|
---|
| 802 | test -n "$CXX" || CXX="gcc"
|
---|
| 803 |
|
---|
| 804 |
|
---|
| 805 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
[1477] | 806 | echo "configure:807: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
[1407] | 807 |
|
---|
| 808 | ac_ext=C
|
---|
| 809 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 810 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 811 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 812 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 813 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 814 |
|
---|
| 815 | cat > conftest.$ac_ext << EOF
|
---|
| 816 |
|
---|
[1477] | 817 | #line 818 "configure"
|
---|
[1407] | 818 | #include "confdefs.h"
|
---|
| 819 |
|
---|
| 820 | int main(){return(0);}
|
---|
| 821 | EOF
|
---|
[1477] | 822 | if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 823 | ac_cv_prog_cxx_works=yes
|
---|
| 824 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
| 825 | if (./conftest; exit) 2>/dev/null; then
|
---|
| 826 | ac_cv_prog_cxx_cross=no
|
---|
| 827 | else
|
---|
| 828 | ac_cv_prog_cxx_cross=yes
|
---|
| 829 | fi
|
---|
| 830 | else
|
---|
| 831 | echo "configure: failed program was:" >&5
|
---|
| 832 | cat conftest.$ac_ext >&5
|
---|
| 833 | ac_cv_prog_cxx_works=no
|
---|
| 834 | fi
|
---|
| 835 | rm -fr conftest*
|
---|
| 836 | ac_ext=c
|
---|
| 837 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
| 838 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 839 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
| 840 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
| 841 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
| 842 |
|
---|
| 843 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
| 844 | if test $ac_cv_prog_cxx_works = no; then
|
---|
| 845 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
| 846 | fi
|
---|
| 847 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
[1477] | 848 | echo "configure:849: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
[1407] | 849 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
| 850 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
| 851 |
|
---|
| 852 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
[1477] | 853 | echo "configure:854: checking whether we are using GNU C++" >&5
|
---|
[1407] | 854 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
| 855 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 856 | else
|
---|
| 857 | cat > conftest.C <<EOF
|
---|
| 858 | #ifdef __GNUC__
|
---|
| 859 | yes;
|
---|
| 860 | #endif
|
---|
| 861 | EOF
|
---|
[1477] | 862 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
[1407] | 863 | ac_cv_prog_gxx=yes
|
---|
| 864 | else
|
---|
| 865 | ac_cv_prog_gxx=no
|
---|
| 866 | fi
|
---|
| 867 | fi
|
---|
| 868 |
|
---|
| 869 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
| 870 |
|
---|
| 871 | if test $ac_cv_prog_gxx = yes; then
|
---|
| 872 | GXX=yes
|
---|
| 873 | else
|
---|
| 874 | GXX=
|
---|
| 875 | fi
|
---|
| 876 |
|
---|
| 877 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
| 878 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 879 | CXXFLAGS=
|
---|
| 880 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
[1477] | 881 | echo "configure:882: checking whether ${CXX-g++} accepts -g" >&5
|
---|
[1407] | 882 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
| 883 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 884 | else
|
---|
| 885 | echo 'void f(){}' > conftest.cc
|
---|
| 886 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
| 887 | ac_cv_prog_cxx_g=yes
|
---|
| 888 | else
|
---|
| 889 | ac_cv_prog_cxx_g=no
|
---|
| 890 | fi
|
---|
| 891 | rm -f conftest*
|
---|
| 892 |
|
---|
| 893 | fi
|
---|
| 894 |
|
---|
| 895 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
| 896 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 897 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
| 898 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 899 | if test "$GXX" = yes; then
|
---|
| 900 | CXXFLAGS="-g -O2"
|
---|
| 901 | else
|
---|
| 902 | CXXFLAGS="-g"
|
---|
| 903 | fi
|
---|
| 904 | else
|
---|
| 905 | if test "$GXX" = yes; then
|
---|
| 906 | CXXFLAGS="-O2"
|
---|
| 907 | else
|
---|
| 908 | CXXFLAGS=
|
---|
| 909 | fi
|
---|
| 910 | fi
|
---|
| 911 |
|
---|
[1706] | 912 | # Extract the first word of "ar", so it can be a program name with args.
|
---|
| 913 | set dummy ar; ac_word=$2
|
---|
| 914 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 915 | echo "configure:916: checking for $ac_word" >&5
|
---|
| 916 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
|
---|
| 917 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 918 | else
|
---|
| 919 | case "$AR" in
|
---|
| 920 | /*)
|
---|
| 921 | ac_cv_path_AR="$AR" # Let the user override the test with a path.
|
---|
| 922 | ;;
|
---|
| 923 | ?:/*)
|
---|
| 924 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
|
---|
| 925 | ;;
|
---|
| 926 | *)
|
---|
| 927 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 928 | ac_dummy="/usr/bin:$PATH"
|
---|
| 929 | for ac_dir in $ac_dummy; do
|
---|
| 930 | test -z "$ac_dir" && ac_dir=.
|
---|
| 931 | if test -f $ac_dir/$ac_word; then
|
---|
| 932 | ac_cv_path_AR="$ac_dir/$ac_word"
|
---|
| 933 | break
|
---|
| 934 | fi
|
---|
| 935 | done
|
---|
| 936 | IFS="$ac_save_ifs"
|
---|
| 937 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
|
---|
| 938 | ;;
|
---|
| 939 | esac
|
---|
| 940 | fi
|
---|
| 941 | AR="$ac_cv_path_AR"
|
---|
| 942 | if test -n "$AR"; then
|
---|
| 943 | echo "$ac_t""$AR" 1>&6
|
---|
| 944 | else
|
---|
| 945 | echo "$ac_t""no" 1>&6
|
---|
| 946 | fi
|
---|
| 947 |
|
---|
[1707] | 948 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 949 | set dummy ranlib; ac_word=$2
|
---|
| 950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
| 951 | echo "configure:952: checking for $ac_word" >&5
|
---|
| 952 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
|
---|
| 953 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 954 | else
|
---|
| 955 | case "$RANLIB" in
|
---|
| 956 | /*)
|
---|
| 957 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
|
---|
| 958 | ;;
|
---|
| 959 | ?:/*)
|
---|
| 960 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
|
---|
| 961 | ;;
|
---|
| 962 | *)
|
---|
| 963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
| 964 | ac_dummy="/usr/bin:$PATH"
|
---|
| 965 | for ac_dir in $ac_dummy; do
|
---|
| 966 | test -z "$ac_dir" && ac_dir=.
|
---|
| 967 | if test -f $ac_dir/$ac_word; then
|
---|
| 968 | ac_cv_path_RANLIB="$ac_dir/$ac_word"
|
---|
| 969 | break
|
---|
| 970 | fi
|
---|
| 971 | done
|
---|
| 972 | IFS="$ac_save_ifs"
|
---|
| 973 | test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
|
---|
| 974 | ;;
|
---|
| 975 | esac
|
---|
| 976 | fi
|
---|
| 977 | RANLIB="$ac_cv_path_RANLIB"
|
---|
| 978 | if test -n "$RANLIB"; then
|
---|
| 979 | echo "$ac_t""$RANLIB" 1>&6
|
---|
| 980 | else
|
---|
| 981 | echo "$ac_t""no" 1>&6
|
---|
| 982 | fi
|
---|
| 983 |
|
---|
[1407] | 984 |
|
---|
[1692] | 985 | if test $GCC = "yes"; then
|
---|
| 986 | gcc=$CC
|
---|
| 987 | else
|
---|
| 988 | gcc=gcc
|
---|
| 989 | fi
|
---|
| 990 |
|
---|
| 991 |
|
---|
[1407] | 992 | echo $ac_n "checking size of short""... $ac_c" 1>&6
|
---|
[1707] | 993 | echo "configure:994: checking size of short" >&5
|
---|
[1407] | 994 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
---|
| 995 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 996 | else
|
---|
| 997 | if test "$cross_compiling" = yes; then
|
---|
| 998 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 999 | else
|
---|
| 1000 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1001 | #line 1002 "configure"
|
---|
[1407] | 1002 | #include "confdefs.h"
|
---|
| 1003 | #include <stdio.h>
|
---|
| 1004 | main()
|
---|
| 1005 | {
|
---|
| 1006 | FILE *f=fopen("conftestval", "w");
|
---|
| 1007 | if (!f) exit(1);
|
---|
| 1008 | fprintf(f, "%d\n", sizeof(short));
|
---|
| 1009 | exit(0);
|
---|
| 1010 | }
|
---|
| 1011 | EOF
|
---|
[1707] | 1012 | if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1013 | then
|
---|
| 1014 | ac_cv_sizeof_short=`cat conftestval`
|
---|
| 1015 | else
|
---|
| 1016 | echo "configure: failed program was:" >&5
|
---|
| 1017 | cat conftest.$ac_ext >&5
|
---|
| 1018 | rm -fr conftest*
|
---|
| 1019 | ac_cv_sizeof_short=0
|
---|
| 1020 | fi
|
---|
| 1021 | rm -fr conftest*
|
---|
| 1022 | fi
|
---|
| 1023 |
|
---|
| 1024 | fi
|
---|
| 1025 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
---|
| 1026 | cat >> confdefs.h <<EOF
|
---|
| 1027 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
---|
| 1028 | EOF
|
---|
| 1029 |
|
---|
| 1030 |
|
---|
| 1031 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
---|
[1707] | 1032 | echo "configure:1033: checking size of int" >&5
|
---|
[1407] | 1033 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
---|
| 1034 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1035 | else
|
---|
| 1036 | if test "$cross_compiling" = yes; then
|
---|
| 1037 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1038 | else
|
---|
| 1039 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1040 | #line 1041 "configure"
|
---|
[1407] | 1041 | #include "confdefs.h"
|
---|
| 1042 | #include <stdio.h>
|
---|
| 1043 | main()
|
---|
| 1044 | {
|
---|
| 1045 | FILE *f=fopen("conftestval", "w");
|
---|
| 1046 | if (!f) exit(1);
|
---|
| 1047 | fprintf(f, "%d\n", sizeof(int));
|
---|
| 1048 | exit(0);
|
---|
| 1049 | }
|
---|
| 1050 | EOF
|
---|
[1707] | 1051 | if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1052 | then
|
---|
| 1053 | ac_cv_sizeof_int=`cat conftestval`
|
---|
| 1054 | else
|
---|
| 1055 | echo "configure: failed program was:" >&5
|
---|
| 1056 | cat conftest.$ac_ext >&5
|
---|
| 1057 | rm -fr conftest*
|
---|
| 1058 | ac_cv_sizeof_int=0
|
---|
| 1059 | fi
|
---|
| 1060 | rm -fr conftest*
|
---|
| 1061 | fi
|
---|
| 1062 |
|
---|
| 1063 | fi
|
---|
| 1064 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
---|
| 1065 | cat >> confdefs.h <<EOF
|
---|
| 1066 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
| 1067 | EOF
|
---|
| 1068 |
|
---|
| 1069 |
|
---|
| 1070 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
---|
[1707] | 1071 | echo "configure:1072: checking size of long" >&5
|
---|
[1407] | 1072 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
---|
| 1073 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1074 | else
|
---|
| 1075 | if test "$cross_compiling" = yes; then
|
---|
| 1076 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1077 | else
|
---|
| 1078 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1079 | #line 1080 "configure"
|
---|
[1407] | 1080 | #include "confdefs.h"
|
---|
| 1081 | #include <stdio.h>
|
---|
| 1082 | main()
|
---|
| 1083 | {
|
---|
| 1084 | FILE *f=fopen("conftestval", "w");
|
---|
| 1085 | if (!f) exit(1);
|
---|
| 1086 | fprintf(f, "%d\n", sizeof(long));
|
---|
| 1087 | exit(0);
|
---|
| 1088 | }
|
---|
| 1089 | EOF
|
---|
[1707] | 1090 | if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1091 | then
|
---|
| 1092 | ac_cv_sizeof_long=`cat conftestval`
|
---|
| 1093 | else
|
---|
| 1094 | echo "configure: failed program was:" >&5
|
---|
| 1095 | cat conftest.$ac_ext >&5
|
---|
| 1096 | rm -fr conftest*
|
---|
| 1097 | ac_cv_sizeof_long=0
|
---|
| 1098 | fi
|
---|
| 1099 | rm -fr conftest*
|
---|
| 1100 | fi
|
---|
| 1101 |
|
---|
| 1102 | fi
|
---|
| 1103 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
---|
| 1104 | cat >> confdefs.h <<EOF
|
---|
| 1105 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
| 1106 | EOF
|
---|
| 1107 |
|
---|
| 1108 |
|
---|
[1663] | 1109 | echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
---|
[1707] | 1110 | echo "configure:1111: checking size of long long" >&5
|
---|
[1663] | 1111 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
---|
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1113 | else
|
---|
| 1114 | if test "$cross_compiling" = yes; then
|
---|
| 1115 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1116 | else
|
---|
| 1117 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1118 | #line 1119 "configure"
|
---|
[1663] | 1119 | #include "confdefs.h"
|
---|
| 1120 | #include <stdio.h>
|
---|
| 1121 | main()
|
---|
| 1122 | {
|
---|
| 1123 | FILE *f=fopen("conftestval", "w");
|
---|
| 1124 | if (!f) exit(1);
|
---|
| 1125 | fprintf(f, "%d\n", sizeof(long long));
|
---|
| 1126 | exit(0);
|
---|
| 1127 | }
|
---|
| 1128 | EOF
|
---|
[1707] | 1129 | if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1663] | 1130 | then
|
---|
| 1131 | ac_cv_sizeof_long_long=`cat conftestval`
|
---|
| 1132 | else
|
---|
| 1133 | echo "configure: failed program was:" >&5
|
---|
| 1134 | cat conftest.$ac_ext >&5
|
---|
| 1135 | rm -fr conftest*
|
---|
| 1136 | ac_cv_sizeof_long_long=0
|
---|
| 1137 | fi
|
---|
| 1138 | rm -fr conftest*
|
---|
| 1139 | fi
|
---|
| 1140 |
|
---|
| 1141 | fi
|
---|
| 1142 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
---|
| 1143 | cat >> confdefs.h <<EOF
|
---|
| 1144 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
---|
| 1145 | EOF
|
---|
| 1146 |
|
---|
| 1147 |
|
---|
[1407] | 1148 | echo $ac_n "checking size of float""... $ac_c" 1>&6
|
---|
[1707] | 1149 | echo "configure:1150: checking size of float" >&5
|
---|
[1407] | 1150 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
---|
| 1151 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1152 | else
|
---|
| 1153 | if test "$cross_compiling" = yes; then
|
---|
| 1154 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1155 | else
|
---|
| 1156 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1157 | #line 1158 "configure"
|
---|
[1407] | 1158 | #include "confdefs.h"
|
---|
| 1159 | #include <stdio.h>
|
---|
| 1160 | main()
|
---|
| 1161 | {
|
---|
| 1162 | FILE *f=fopen("conftestval", "w");
|
---|
| 1163 | if (!f) exit(1);
|
---|
| 1164 | fprintf(f, "%d\n", sizeof(float));
|
---|
| 1165 | exit(0);
|
---|
| 1166 | }
|
---|
| 1167 | EOF
|
---|
[1707] | 1168 | if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1169 | then
|
---|
| 1170 | ac_cv_sizeof_float=`cat conftestval`
|
---|
| 1171 | else
|
---|
| 1172 | echo "configure: failed program was:" >&5
|
---|
| 1173 | cat conftest.$ac_ext >&5
|
---|
| 1174 | rm -fr conftest*
|
---|
| 1175 | ac_cv_sizeof_float=0
|
---|
| 1176 | fi
|
---|
| 1177 | rm -fr conftest*
|
---|
| 1178 | fi
|
---|
| 1179 |
|
---|
| 1180 | fi
|
---|
| 1181 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
---|
| 1182 | cat >> confdefs.h <<EOF
|
---|
| 1183 | #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
---|
| 1184 | EOF
|
---|
| 1185 |
|
---|
| 1186 |
|
---|
| 1187 | echo $ac_n "checking size of double""... $ac_c" 1>&6
|
---|
[1707] | 1188 | echo "configure:1189: checking size of double" >&5
|
---|
[1407] | 1189 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
---|
| 1190 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1191 | else
|
---|
| 1192 | if test "$cross_compiling" = yes; then
|
---|
| 1193 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1194 | else
|
---|
| 1195 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1196 | #line 1197 "configure"
|
---|
[1407] | 1197 | #include "confdefs.h"
|
---|
| 1198 | #include <stdio.h>
|
---|
| 1199 | main()
|
---|
| 1200 | {
|
---|
| 1201 | FILE *f=fopen("conftestval", "w");
|
---|
| 1202 | if (!f) exit(1);
|
---|
| 1203 | fprintf(f, "%d\n", sizeof(double));
|
---|
| 1204 | exit(0);
|
---|
| 1205 | }
|
---|
| 1206 | EOF
|
---|
[1707] | 1207 | if { (eval echo configure:1208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1208 | then
|
---|
| 1209 | ac_cv_sizeof_double=`cat conftestval`
|
---|
| 1210 | else
|
---|
| 1211 | echo "configure: failed program was:" >&5
|
---|
| 1212 | cat conftest.$ac_ext >&5
|
---|
| 1213 | rm -fr conftest*
|
---|
| 1214 | ac_cv_sizeof_double=0
|
---|
| 1215 | fi
|
---|
| 1216 | rm -fr conftest*
|
---|
| 1217 | fi
|
---|
| 1218 |
|
---|
| 1219 | fi
|
---|
| 1220 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
---|
| 1221 | cat >> confdefs.h <<EOF
|
---|
| 1222 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
---|
| 1223 | EOF
|
---|
| 1224 |
|
---|
| 1225 |
|
---|
| 1226 | echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
---|
[1707] | 1227 | echo "configure:1228: checking size of long double" >&5
|
---|
[1407] | 1228 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
---|
| 1229 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1230 | else
|
---|
| 1231 | if test "$cross_compiling" = yes; then
|
---|
| 1232 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
---|
| 1233 | else
|
---|
| 1234 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1235 | #line 1236 "configure"
|
---|
[1407] | 1236 | #include "confdefs.h"
|
---|
| 1237 | #include <stdio.h>
|
---|
| 1238 | main()
|
---|
| 1239 | {
|
---|
| 1240 | FILE *f=fopen("conftestval", "w");
|
---|
| 1241 | if (!f) exit(1);
|
---|
| 1242 | fprintf(f, "%d\n", sizeof(long double));
|
---|
| 1243 | exit(0);
|
---|
| 1244 | }
|
---|
| 1245 | EOF
|
---|
[1707] | 1246 | if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1247 | then
|
---|
| 1248 | ac_cv_sizeof_long_double=`cat conftestval`
|
---|
| 1249 | else
|
---|
| 1250 | echo "configure: failed program was:" >&5
|
---|
| 1251 | cat conftest.$ac_ext >&5
|
---|
| 1252 | rm -fr conftest*
|
---|
| 1253 | ac_cv_sizeof_long_double=0
|
---|
| 1254 | fi
|
---|
| 1255 | rm -fr conftest*
|
---|
| 1256 | fi
|
---|
| 1257 |
|
---|
| 1258 | fi
|
---|
| 1259 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
|
---|
| 1260 | cat >> confdefs.h <<EOF
|
---|
| 1261 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
|
---|
| 1262 | EOF
|
---|
| 1263 |
|
---|
| 1264 |
|
---|
| 1265 |
|
---|
| 1266 |
|
---|
| 1267 | echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
|
---|
[1707] | 1268 | echo "configure:1269: checking "for cfitsio lib"" >&5
|
---|
[1407] | 1269 | MACHDIR=`uname`-$CXX
|
---|
| 1270 | if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1271 | cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
|
---|
| 1272 | elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
|
---|
| 1273 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
|
---|
| 1274 | elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
|
---|
| 1275 | cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
|
---|
| 1276 | elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
|
---|
| 1277 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
|
---|
| 1278 | elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
|
---|
| 1279 | cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
|
---|
| 1280 | elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
|
---|
| 1281 | cfitslibdir='-L$(CFITSIOLIBDIR)'
|
---|
| 1282 | elif test -f $CFITSIODIR/libcfitsio.a; then
|
---|
| 1283 | cfitslibdir='-L$(CFITSIODIR)'
|
---|
| 1284 | elif test -f /usr/local/lib/libcfitsio.a; then
|
---|
| 1285 | cfitslibdir=""
|
---|
| 1286 | else
|
---|
| 1287 | { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
|
---|
| 1288 | fi
|
---|
| 1289 | echo "$ac_t""$cfitslibdir" 1>&6
|
---|
| 1290 |
|
---|
| 1291 |
|
---|
| 1292 | echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
|
---|
[1707] | 1293 | echo "configure:1294: checking "for cfitsio includes"" >&5
|
---|
[1407] | 1294 | if test -f $CFITSIODIR/fitsio.h; then
|
---|
| 1295 | cfitsincdir='-I$(CFITSIODIR)'
|
---|
| 1296 | elif test -f /usr/local/include/fitsio.h; then
|
---|
| 1297 | cfitsincdir=""
|
---|
| 1298 | else
|
---|
| 1299 | { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
|
---|
| 1300 | fi
|
---|
| 1301 | echo "$ac_t""$cfitsincdir" 1>&6
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
| 1304 | echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
---|
[1707] | 1305 | echo "configure:1306: checking for sin in -lm" >&5
|
---|
[1407] | 1306 | ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
---|
| 1307 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
| 1308 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1309 | else
|
---|
| 1310 | ac_save_LIBS="$LIBS"
|
---|
| 1311 | LIBS="-lm $LIBS"
|
---|
| 1312 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1313 | #line 1314 "configure"
|
---|
[1407] | 1314 | #include "confdefs.h"
|
---|
| 1315 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 1316 | /* We use char because int might match the return type of a gcc2
|
---|
| 1317 | builtin and then its argument prototype would still apply. */
|
---|
| 1318 | char sin();
|
---|
| 1319 |
|
---|
| 1320 | int main() {
|
---|
| 1321 | sin()
|
---|
| 1322 | ; return 0; }
|
---|
| 1323 | EOF
|
---|
[1707] | 1324 | if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
[1407] | 1325 | rm -rf conftest*
|
---|
| 1326 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
| 1327 | else
|
---|
| 1328 | echo "configure: failed program was:" >&5
|
---|
| 1329 | cat conftest.$ac_ext >&5
|
---|
| 1330 | rm -rf conftest*
|
---|
| 1331 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
| 1332 | fi
|
---|
| 1333 | rm -f conftest*
|
---|
| 1334 | LIBS="$ac_save_LIBS"
|
---|
| 1335 |
|
---|
| 1336 | fi
|
---|
| 1337 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
| 1338 | echo "$ac_t""yes" 1>&6
|
---|
| 1339 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
| 1340 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
| 1341 | cat >> confdefs.h <<EOF
|
---|
| 1342 | #define $ac_tr_lib 1
|
---|
| 1343 | EOF
|
---|
| 1344 |
|
---|
| 1345 | LIBS="-lm $LIBS"
|
---|
| 1346 |
|
---|
| 1347 | else
|
---|
| 1348 | echo "$ac_t""no" 1>&6
|
---|
| 1349 | fi
|
---|
| 1350 |
|
---|
| 1351 |
|
---|
| 1352 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
[1707] | 1353 | echo "configure:1354: checking how to run the C preprocessor" >&5
|
---|
[1407] | 1354 | # On Suns, sometimes $CPP names a directory.
|
---|
| 1355 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 1356 | CPP=
|
---|
| 1357 | fi
|
---|
| 1358 | if test -z "$CPP"; then
|
---|
| 1359 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
| 1360 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1361 | else
|
---|
| 1362 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
| 1363 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
| 1364 | CPP="${CC-cc} -E"
|
---|
| 1365 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 1366 | # not just through cpp.
|
---|
| 1367 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1368 | #line 1369 "configure"
|
---|
[1407] | 1369 | #include "confdefs.h"
|
---|
| 1370 | #include <assert.h>
|
---|
| 1371 | Syntax Error
|
---|
| 1372 | EOF
|
---|
| 1373 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1707] | 1374 | { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1375 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1376 | if test -z "$ac_err"; then
|
---|
| 1377 | :
|
---|
| 1378 | else
|
---|
| 1379 | echo "$ac_err" >&5
|
---|
| 1380 | echo "configure: failed program was:" >&5
|
---|
| 1381 | cat conftest.$ac_ext >&5
|
---|
| 1382 | rm -rf conftest*
|
---|
| 1383 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
| 1384 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1385 | #line 1386 "configure"
|
---|
[1407] | 1386 | #include "confdefs.h"
|
---|
| 1387 | #include <assert.h>
|
---|
| 1388 | Syntax Error
|
---|
| 1389 | EOF
|
---|
| 1390 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1707] | 1391 | { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1392 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1393 | if test -z "$ac_err"; then
|
---|
| 1394 | :
|
---|
| 1395 | else
|
---|
| 1396 | echo "$ac_err" >&5
|
---|
| 1397 | echo "configure: failed program was:" >&5
|
---|
| 1398 | cat conftest.$ac_ext >&5
|
---|
| 1399 | rm -rf conftest*
|
---|
| 1400 | CPP="${CC-cc} -nologo -E"
|
---|
| 1401 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1402 | #line 1403 "configure"
|
---|
[1407] | 1403 | #include "confdefs.h"
|
---|
| 1404 | #include <assert.h>
|
---|
| 1405 | Syntax Error
|
---|
| 1406 | EOF
|
---|
| 1407 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1707] | 1408 | { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1409 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1410 | if test -z "$ac_err"; then
|
---|
| 1411 | :
|
---|
| 1412 | else
|
---|
| 1413 | echo "$ac_err" >&5
|
---|
| 1414 | echo "configure: failed program was:" >&5
|
---|
| 1415 | cat conftest.$ac_ext >&5
|
---|
| 1416 | rm -rf conftest*
|
---|
| 1417 | CPP=/lib/cpp
|
---|
| 1418 | fi
|
---|
| 1419 | rm -f conftest*
|
---|
| 1420 | fi
|
---|
| 1421 | rm -f conftest*
|
---|
| 1422 | fi
|
---|
| 1423 | rm -f conftest*
|
---|
| 1424 | ac_cv_prog_CPP="$CPP"
|
---|
| 1425 | fi
|
---|
| 1426 | CPP="$ac_cv_prog_CPP"
|
---|
| 1427 | else
|
---|
| 1428 | ac_cv_prog_CPP="$CPP"
|
---|
| 1429 | fi
|
---|
| 1430 | echo "$ac_t""$CPP" 1>&6
|
---|
| 1431 |
|
---|
| 1432 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
[1707] | 1433 | echo "configure:1434: checking for ANSI C header files" >&5
|
---|
[1407] | 1434 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
| 1435 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1436 | else
|
---|
| 1437 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1438 | #line 1439 "configure"
|
---|
[1407] | 1439 | #include "confdefs.h"
|
---|
| 1440 | #include <stdlib.h>
|
---|
| 1441 | #include <stdarg.h>
|
---|
| 1442 | #include <string.h>
|
---|
| 1443 | #include <float.h>
|
---|
| 1444 | EOF
|
---|
| 1445 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1707] | 1446 | { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1407] | 1447 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1448 | if test -z "$ac_err"; then
|
---|
| 1449 | rm -rf conftest*
|
---|
| 1450 | ac_cv_header_stdc=yes
|
---|
| 1451 | else
|
---|
| 1452 | echo "$ac_err" >&5
|
---|
| 1453 | echo "configure: failed program was:" >&5
|
---|
| 1454 | cat conftest.$ac_ext >&5
|
---|
| 1455 | rm -rf conftest*
|
---|
| 1456 | ac_cv_header_stdc=no
|
---|
| 1457 | fi
|
---|
| 1458 | rm -f conftest*
|
---|
| 1459 |
|
---|
| 1460 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1461 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 1462 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1463 | #line 1464 "configure"
|
---|
[1407] | 1464 | #include "confdefs.h"
|
---|
| 1465 | #include <string.h>
|
---|
| 1466 | EOF
|
---|
| 1467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1468 | egrep "memchr" >/dev/null 2>&1; then
|
---|
| 1469 | :
|
---|
| 1470 | else
|
---|
| 1471 | rm -rf conftest*
|
---|
| 1472 | ac_cv_header_stdc=no
|
---|
| 1473 | fi
|
---|
| 1474 | rm -f conftest*
|
---|
| 1475 |
|
---|
| 1476 | fi
|
---|
| 1477 |
|
---|
| 1478 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1479 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 1480 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1481 | #line 1482 "configure"
|
---|
[1407] | 1482 | #include "confdefs.h"
|
---|
| 1483 | #include <stdlib.h>
|
---|
| 1484 | EOF
|
---|
| 1485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 1486 | egrep "free" >/dev/null 2>&1; then
|
---|
| 1487 | :
|
---|
| 1488 | else
|
---|
| 1489 | rm -rf conftest*
|
---|
| 1490 | ac_cv_header_stdc=no
|
---|
| 1491 | fi
|
---|
| 1492 | rm -f conftest*
|
---|
| 1493 |
|
---|
| 1494 | fi
|
---|
| 1495 |
|
---|
| 1496 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1497 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 1498 | if test "$cross_compiling" = yes; then
|
---|
| 1499 | :
|
---|
| 1500 | else
|
---|
| 1501 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1502 | #line 1503 "configure"
|
---|
[1407] | 1503 | #include "confdefs.h"
|
---|
| 1504 | #include <ctype.h>
|
---|
| 1505 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 1506 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 1507 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 1508 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
| 1509 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
| 1510 | exit (0); }
|
---|
| 1511 |
|
---|
| 1512 | EOF
|
---|
[1707] | 1513 | if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
[1407] | 1514 | then
|
---|
| 1515 | :
|
---|
| 1516 | else
|
---|
| 1517 | echo "configure: failed program was:" >&5
|
---|
| 1518 | cat conftest.$ac_ext >&5
|
---|
| 1519 | rm -fr conftest*
|
---|
| 1520 | ac_cv_header_stdc=no
|
---|
| 1521 | fi
|
---|
| 1522 | rm -fr conftest*
|
---|
| 1523 | fi
|
---|
| 1524 |
|
---|
| 1525 | fi
|
---|
| 1526 | fi
|
---|
| 1527 |
|
---|
| 1528 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
| 1529 | if test $ac_cv_header_stdc = yes; then
|
---|
| 1530 | cat >> confdefs.h <<\EOF
|
---|
| 1531 | #define STDC_HEADERS 1
|
---|
| 1532 | EOF
|
---|
| 1533 |
|
---|
| 1534 | fi
|
---|
| 1535 |
|
---|
[1685] | 1536 | for ac_hdr in values.h stdint.h
|
---|
[1663] | 1537 | do
|
---|
| 1538 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
| 1539 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
[1707] | 1540 | echo "configure:1541: checking for $ac_hdr" >&5
|
---|
[1663] | 1541 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
| 1542 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
| 1543 | else
|
---|
| 1544 | cat > conftest.$ac_ext <<EOF
|
---|
[1707] | 1545 | #line 1546 "configure"
|
---|
[1663] | 1546 | #include "confdefs.h"
|
---|
| 1547 | #include <$ac_hdr>
|
---|
| 1548 | EOF
|
---|
| 1549 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
[1707] | 1550 | { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
[1663] | 1551 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
| 1552 | if test -z "$ac_err"; then
|
---|
| 1553 | rm -rf conftest*
|
---|
| 1554 | eval "ac_cv_header_$ac_safe=yes"
|
---|
| 1555 | else
|
---|
| 1556 | echo "$ac_err" >&5
|
---|
| 1557 | echo "configure: failed program was:" >&5
|
---|
| 1558 | cat conftest.$ac_ext >&5
|
---|
| 1559 | rm -rf conftest*
|
---|
| 1560 | eval "ac_cv_header_$ac_safe=no"
|
---|
| 1561 | fi
|
---|
| 1562 | rm -f conftest*
|
---|
| 1563 | fi
|
---|
| 1564 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
| 1565 | echo "$ac_t""yes" 1>&6
|
---|
| 1566 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
| 1567 | cat >> confdefs.h <<EOF
|
---|
| 1568 | #define $ac_tr_hdr 1
|
---|
| 1569 | EOF
|
---|
| 1570 |
|
---|
| 1571 | else
|
---|
| 1572 | echo "$ac_t""no" 1>&6
|
---|
| 1573 | fi
|
---|
| 1574 | done
|
---|
[1407] | 1575 |
|
---|
[1663] | 1576 |
|
---|
[1477] | 1577 | outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
|
---|
| 1578 | if [ $use_sophya = 1 ]; then
|
---|
| 1579 | outfiles="$outfiles sophya/Makefile"
|
---|
| 1580 | fi
|
---|
| 1581 |
|
---|
[1407] | 1582 | trap '' 1 2 15
|
---|
| 1583 | cat > confcache <<\EOF
|
---|
| 1584 | # This file is a shell script that caches the results of configure
|
---|
| 1585 | # tests run on this system so they can be shared between configure
|
---|
| 1586 | # scripts and configure runs. It is not useful on other systems.
|
---|
| 1587 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
| 1588 | #
|
---|
| 1589 | # By default, configure uses ./config.cache as the cache file,
|
---|
| 1590 | # creating it if it does not exist already. You can give configure
|
---|
| 1591 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
| 1592 | # what configure does when it calls configure scripts in
|
---|
| 1593 | # subdirectories, so they share the cache.
|
---|
| 1594 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
| 1595 | # config.status only pays attention to the cache file if you give it the
|
---|
| 1596 | # --recheck option to rerun configure.
|
---|
| 1597 | #
|
---|
| 1598 | EOF
|
---|
| 1599 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1600 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 1601 | # So, don't put newlines in cache variables' values.
|
---|
| 1602 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 1603 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 1604 | (set) 2>&1 |
|
---|
| 1605 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 1606 | *ac_space=\ *)
|
---|
| 1607 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
| 1608 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 1609 | sed -n \
|
---|
| 1610 | -e "s/'/'\\\\''/g" \
|
---|
| 1611 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
| 1612 | ;;
|
---|
| 1613 | *)
|
---|
| 1614 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 1615 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
| 1616 | ;;
|
---|
| 1617 | esac >> confcache
|
---|
| 1618 | if cmp -s $cache_file confcache; then
|
---|
| 1619 | :
|
---|
| 1620 | else
|
---|
| 1621 | if test -w $cache_file; then
|
---|
| 1622 | echo "updating cache $cache_file"
|
---|
| 1623 | cat confcache > $cache_file
|
---|
| 1624 | else
|
---|
| 1625 | echo "not updating unwritable cache $cache_file"
|
---|
| 1626 | fi
|
---|
| 1627 | fi
|
---|
| 1628 | rm -f confcache
|
---|
| 1629 |
|
---|
| 1630 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
| 1631 |
|
---|
| 1632 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 1633 | # Let make expand exec_prefix.
|
---|
| 1634 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 1635 |
|
---|
| 1636 | # Any assignment to VPATH causes Sun make to only execute
|
---|
| 1637 | # the first set of double-colon rules, so remove it if not needed.
|
---|
| 1638 | # If there is a colon in the path, we need to keep it.
|
---|
| 1639 | if test "x$srcdir" = x.; then
|
---|
| 1640 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
| 1641 | fi
|
---|
| 1642 |
|
---|
| 1643 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
| 1644 |
|
---|
| 1645 | DEFS=-DHAVE_CONFIG_H
|
---|
| 1646 |
|
---|
| 1647 | # Without the "./", some shells look in PATH for config.status.
|
---|
| 1648 | : ${CONFIG_STATUS=./config.status}
|
---|
| 1649 |
|
---|
| 1650 | echo creating $CONFIG_STATUS
|
---|
| 1651 | rm -f $CONFIG_STATUS
|
---|
| 1652 | cat > $CONFIG_STATUS <<EOF
|
---|
| 1653 | #! /bin/sh
|
---|
| 1654 | # Generated automatically by configure.
|
---|
| 1655 | # Run this file to recreate the current configuration.
|
---|
| 1656 | # This directory was configured as follows,
|
---|
| 1657 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
| 1658 | #
|
---|
| 1659 | # $0 $ac_configure_args
|
---|
| 1660 | #
|
---|
| 1661 | # Compiler output produced by configure, useful for debugging
|
---|
| 1662 | # configure, is in ./config.log if it exists.
|
---|
| 1663 |
|
---|
| 1664 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
| 1665 | for ac_option
|
---|
| 1666 | do
|
---|
| 1667 | case "\$ac_option" in
|
---|
| 1668 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 1669 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
| 1670 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
| 1671 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
| 1672 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
| 1673 | exit 0 ;;
|
---|
| 1674 | -help | --help | --hel | --he | --h)
|
---|
| 1675 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
| 1676 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
| 1677 | esac
|
---|
| 1678 | done
|
---|
| 1679 |
|
---|
| 1680 | ac_given_srcdir=$srcdir
|
---|
| 1681 |
|
---|
[1477] | 1682 | trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
[1407] | 1683 | EOF
|
---|
| 1684 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1685 |
|
---|
| 1686 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 1687 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
| 1688 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
| 1689 | $ac_vpsub
|
---|
| 1690 | $extrasub
|
---|
| 1691 | s%@SHELL@%$SHELL%g
|
---|
| 1692 | s%@CFLAGS@%$CFLAGS%g
|
---|
| 1693 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
| 1694 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
| 1695 | s%@FFLAGS@%$FFLAGS%g
|
---|
| 1696 | s%@DEFS@%$DEFS%g
|
---|
| 1697 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
| 1698 | s%@LIBS@%$LIBS%g
|
---|
| 1699 | s%@exec_prefix@%$exec_prefix%g
|
---|
| 1700 | s%@prefix@%$prefix%g
|
---|
| 1701 | s%@program_transform_name@%$program_transform_name%g
|
---|
| 1702 | s%@bindir@%$bindir%g
|
---|
| 1703 | s%@sbindir@%$sbindir%g
|
---|
| 1704 | s%@libexecdir@%$libexecdir%g
|
---|
| 1705 | s%@datadir@%$datadir%g
|
---|
| 1706 | s%@sysconfdir@%$sysconfdir%g
|
---|
| 1707 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
| 1708 | s%@localstatedir@%$localstatedir%g
|
---|
| 1709 | s%@libdir@%$libdir%g
|
---|
| 1710 | s%@includedir@%$includedir%g
|
---|
| 1711 | s%@oldincludedir@%$oldincludedir%g
|
---|
| 1712 | s%@infodir@%$infodir%g
|
---|
| 1713 | s%@mandir@%$mandir%g
|
---|
| 1714 | s%@use_sophya@%$use_sophya%g
|
---|
[1477] | 1715 | s%@CC@%$CC%g
|
---|
[1407] | 1716 | s%@CXX@%$CXX%g
|
---|
[1706] | 1717 | s%@AR@%$AR%g
|
---|
[1707] | 1718 | s%@RANLIB@%$RANLIB%g
|
---|
[1692] | 1719 | s%@gcc@%$gcc%g
|
---|
[1407] | 1720 | s%@cfitslibdir@%$cfitslibdir%g
|
---|
| 1721 | s%@cfitsincdir@%$cfitsincdir%g
|
---|
| 1722 | s%@CPP@%$CPP%g
|
---|
| 1723 |
|
---|
| 1724 | CEOF
|
---|
| 1725 | EOF
|
---|
| 1726 |
|
---|
| 1727 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1728 |
|
---|
| 1729 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 1730 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 1731 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
| 1732 | ac_file=1 # Number of current file.
|
---|
| 1733 | ac_beg=1 # First line for current file.
|
---|
| 1734 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
| 1735 | ac_more_lines=:
|
---|
| 1736 | ac_sed_cmds=""
|
---|
| 1737 | while $ac_more_lines; do
|
---|
| 1738 | if test $ac_beg -gt 1; then
|
---|
| 1739 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1740 | else
|
---|
| 1741 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
| 1742 | fi
|
---|
| 1743 | if test ! -s conftest.s$ac_file; then
|
---|
| 1744 | ac_more_lines=false
|
---|
| 1745 | rm -f conftest.s$ac_file
|
---|
| 1746 | else
|
---|
| 1747 | if test -z "$ac_sed_cmds"; then
|
---|
| 1748 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
| 1749 | else
|
---|
| 1750 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
| 1751 | fi
|
---|
| 1752 | ac_file=`expr $ac_file + 1`
|
---|
| 1753 | ac_beg=$ac_end
|
---|
| 1754 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
| 1755 | fi
|
---|
| 1756 | done
|
---|
| 1757 | if test -z "$ac_sed_cmds"; then
|
---|
| 1758 | ac_sed_cmds=cat
|
---|
| 1759 | fi
|
---|
| 1760 | EOF
|
---|
| 1761 |
|
---|
| 1762 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1763 |
|
---|
[1477] | 1764 | CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
|
---|
[1407] | 1765 | EOF
|
---|
| 1766 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1767 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
| 1768 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 1769 | case "$ac_file" in
|
---|
| 1770 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 1771 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 1772 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 1773 | esac
|
---|
| 1774 |
|
---|
| 1775 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
| 1776 |
|
---|
| 1777 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 1778 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 1779 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 1780 | # The file is in a subdirectory.
|
---|
| 1781 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 1782 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
| 1783 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 1784 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
| 1785 | else
|
---|
| 1786 | ac_dir_suffix= ac_dots=
|
---|
| 1787 | fi
|
---|
| 1788 |
|
---|
| 1789 | case "$ac_given_srcdir" in
|
---|
| 1790 | .) srcdir=.
|
---|
| 1791 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
| 1792 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
| 1793 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
| 1794 | *) # Relative path.
|
---|
| 1795 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
| 1796 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
| 1797 | esac
|
---|
| 1798 |
|
---|
| 1799 |
|
---|
| 1800 | echo creating "$ac_file"
|
---|
| 1801 | rm -f "$ac_file"
|
---|
| 1802 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
| 1803 | case "$ac_file" in
|
---|
| 1804 | *Makefile*) ac_comsub="1i\\
|
---|
| 1805 | # $configure_input" ;;
|
---|
| 1806 | *) ac_comsub= ;;
|
---|
| 1807 | esac
|
---|
| 1808 |
|
---|
| 1809 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 1810 | sed -e "$ac_comsub
|
---|
| 1811 | s%@configure_input@%$configure_input%g
|
---|
| 1812 | s%@srcdir@%$srcdir%g
|
---|
| 1813 | s%@top_srcdir@%$top_srcdir%g
|
---|
| 1814 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
| 1815 | fi; done
|
---|
| 1816 | rm -f conftest.s*
|
---|
| 1817 |
|
---|
| 1818 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 1819 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 1820 | #
|
---|
| 1821 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 1822 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 1823 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
| 1824 | ac_dC='\3'
|
---|
| 1825 | ac_dD='%g'
|
---|
| 1826 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
| 1827 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 1828 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
| 1829 | ac_uC=' '
|
---|
| 1830 | ac_uD='\4%g'
|
---|
| 1831 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 1832 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 1833 | ac_eB='$%\1#\2define\3'
|
---|
| 1834 | ac_eC=' '
|
---|
| 1835 | ac_eD='%g'
|
---|
| 1836 |
|
---|
| 1837 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
| 1838 | EOF
|
---|
| 1839 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1840 | CONFIG_HEADERS="conf.h"
|
---|
| 1841 | EOF
|
---|
| 1842 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1843 | fi
|
---|
| 1844 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
| 1845 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 1846 | case "$ac_file" in
|
---|
| 1847 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
| 1848 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
| 1849 | *) ac_file_in="${ac_file}.in" ;;
|
---|
| 1850 | esac
|
---|
| 1851 |
|
---|
| 1852 | echo creating $ac_file
|
---|
| 1853 |
|
---|
| 1854 | rm -f conftest.frag conftest.in conftest.out
|
---|
| 1855 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
| 1856 | cat $ac_file_inputs > conftest.in
|
---|
| 1857 |
|
---|
| 1858 | EOF
|
---|
| 1859 |
|
---|
| 1860 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
| 1861 | # the proper values into config.h.in to produce config.h. And first:
|
---|
| 1862 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 1863 | # Protect against being in an unquoted here document in config.status.
|
---|
| 1864 | rm -f conftest.vals
|
---|
| 1865 | cat > conftest.hdr <<\EOF
|
---|
| 1866 | s/[\\&%]/\\&/g
|
---|
| 1867 | s%[\\$`]%\\&%g
|
---|
| 1868 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
| 1869 | s%ac_d%ac_u%gp
|
---|
| 1870 | s%ac_u%ac_e%gp
|
---|
| 1871 | EOF
|
---|
| 1872 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
| 1873 | rm -f conftest.hdr
|
---|
| 1874 |
|
---|
| 1875 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 1876 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 1877 | # on some systems where configure will not decide to define it.
|
---|
| 1878 | cat >> conftest.vals <<\EOF
|
---|
| 1879 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
| 1880 | EOF
|
---|
| 1881 |
|
---|
| 1882 | # Break up conftest.vals because some shells have a limit on
|
---|
| 1883 | # the size of here documents, and old seds have small limits too.
|
---|
| 1884 |
|
---|
| 1885 | rm -f conftest.tail
|
---|
| 1886 | while :
|
---|
| 1887 | do
|
---|
| 1888 | ac_lines=`grep -c . conftest.vals`
|
---|
| 1889 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
| 1890 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
| 1891 | # Write a limited-size here document to conftest.frag.
|
---|
| 1892 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
| 1893 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
| 1894 | echo 'CEOF
|
---|
| 1895 | sed -f conftest.frag conftest.in > conftest.out
|
---|
| 1896 | rm -f conftest.in
|
---|
| 1897 | mv conftest.out conftest.in
|
---|
| 1898 | ' >> $CONFIG_STATUS
|
---|
| 1899 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
| 1900 | rm -f conftest.vals
|
---|
| 1901 | mv conftest.tail conftest.vals
|
---|
| 1902 | done
|
---|
| 1903 | rm -f conftest.vals
|
---|
| 1904 |
|
---|
| 1905 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1906 | rm -f conftest.frag conftest.h
|
---|
| 1907 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
| 1908 | cat conftest.in >> conftest.h
|
---|
| 1909 | rm -f conftest.in
|
---|
| 1910 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
| 1911 | echo "$ac_file is unchanged"
|
---|
| 1912 | rm -f conftest.h
|
---|
| 1913 | else
|
---|
| 1914 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
| 1915 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
| 1916 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
| 1917 | # The file is in a subdirectory.
|
---|
| 1918 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
| 1919 | fi
|
---|
| 1920 | rm -f $ac_file
|
---|
| 1921 | mv conftest.h $ac_file
|
---|
| 1922 | fi
|
---|
| 1923 | fi; done
|
---|
| 1924 |
|
---|
| 1925 | EOF
|
---|
| 1926 | cat >> $CONFIG_STATUS <<EOF
|
---|
| 1927 |
|
---|
| 1928 | EOF
|
---|
| 1929 | cat >> $CONFIG_STATUS <<\EOF
|
---|
| 1930 |
|
---|
| 1931 | exit 0
|
---|
| 1932 | EOF
|
---|
| 1933 | chmod +x $CONFIG_STATUS
|
---|
| 1934 | rm -fr confdefs* $ac_clean_files
|
---|
| 1935 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
| 1936 |
|
---|
[1477] | 1937 |
|
---|