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