| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --enable-multilib build many library versions (default)"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 30 | (and sometimes confusing) to the casual installer"
|
|---|
| 31 | ac_help="$ac_help
|
|---|
| 32 | --enable-debug debugging mode"
|
|---|
| 33 | ac_help="$ac_help
|
|---|
| 34 | --disable-structs omit code for struct support"
|
|---|
| 35 | ac_help="$ac_help
|
|---|
| 36 | --disable-raw-api make the raw api unavailable"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --enable-purify-safety purify-safe mode"
|
|---|
| 39 |
|
|---|
| 40 | # Initialize some variables set by options.
|
|---|
| 41 | # The variables have the same names as the options, with
|
|---|
| 42 | # dashes changed to underlines.
|
|---|
| 43 | build=NONE
|
|---|
| 44 | cache_file=./config.cache
|
|---|
| 45 | exec_prefix=NONE
|
|---|
| 46 | host=NONE
|
|---|
| 47 | no_create=
|
|---|
| 48 | nonopt=NONE
|
|---|
| 49 | no_recursion=
|
|---|
| 50 | prefix=NONE
|
|---|
| 51 | program_prefix=NONE
|
|---|
| 52 | program_suffix=NONE
|
|---|
| 53 | program_transform_name=s,x,x,
|
|---|
| 54 | silent=
|
|---|
| 55 | site=
|
|---|
| 56 | srcdir=
|
|---|
| 57 | target=NONE
|
|---|
| 58 | verbose=
|
|---|
| 59 | x_includes=NONE
|
|---|
| 60 | x_libraries=NONE
|
|---|
| 61 | bindir='${exec_prefix}/bin'
|
|---|
| 62 | sbindir='${exec_prefix}/sbin'
|
|---|
| 63 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 64 | datadir='${prefix}/share'
|
|---|
| 65 | sysconfdir='${prefix}/etc'
|
|---|
| 66 | sharedstatedir='${prefix}/com'
|
|---|
| 67 | localstatedir='${prefix}/var'
|
|---|
| 68 | libdir='${exec_prefix}/lib'
|
|---|
| 69 | includedir='${prefix}/include'
|
|---|
| 70 | oldincludedir='/usr/include'
|
|---|
| 71 | infodir='${prefix}/info'
|
|---|
| 72 | mandir='${prefix}/man'
|
|---|
| 73 |
|
|---|
| 74 | # Initialize some other variables.
|
|---|
| 75 | subdirs=
|
|---|
| 76 | MFLAGS= MAKEFLAGS=
|
|---|
| 77 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 78 | # Maximum number of lines to put in a shell here document.
|
|---|
| 79 | ac_max_here_lines=12
|
|---|
| 80 |
|
|---|
| 81 | ac_prev=
|
|---|
| 82 | for ac_option
|
|---|
| 83 | do
|
|---|
| 84 |
|
|---|
| 85 | # If the previous option needs an argument, assign it.
|
|---|
| 86 | if test -n "$ac_prev"; then
|
|---|
| 87 | eval "$ac_prev=\$ac_option"
|
|---|
| 88 | ac_prev=
|
|---|
| 89 | continue
|
|---|
| 90 | fi
|
|---|
| 91 |
|
|---|
| 92 | case "$ac_option" in
|
|---|
| 93 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 94 | *) ac_optarg= ;;
|
|---|
| 95 | esac
|
|---|
| 96 |
|
|---|
| 97 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 98 |
|
|---|
| 99 | case "$ac_option" in
|
|---|
| 100 |
|
|---|
| 101 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 102 | ac_prev=bindir ;;
|
|---|
| 103 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 104 | bindir="$ac_optarg" ;;
|
|---|
| 105 |
|
|---|
| 106 | -build | --build | --buil | --bui | --bu)
|
|---|
| 107 | ac_prev=build ;;
|
|---|
| 108 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 109 | build="$ac_optarg" ;;
|
|---|
| 110 |
|
|---|
| 111 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 112 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 113 | ac_prev=cache_file ;;
|
|---|
| 114 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 115 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 116 | cache_file="$ac_optarg" ;;
|
|---|
| 117 |
|
|---|
| 118 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 119 | ac_prev=datadir ;;
|
|---|
| 120 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 121 | | --da=*)
|
|---|
| 122 | datadir="$ac_optarg" ;;
|
|---|
| 123 |
|
|---|
| 124 | -disable-* | --disable-*)
|
|---|
| 125 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 126 | # Reject names that are not valid shell variable names.
|
|---|
| 127 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 129 | fi
|
|---|
| 130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 131 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 132 |
|
|---|
| 133 | -enable-* | --enable-*)
|
|---|
| 134 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 135 | # Reject names that are not valid shell variable names.
|
|---|
| 136 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 137 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 138 | fi
|
|---|
| 139 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 140 | case "$ac_option" in
|
|---|
| 141 | *=*) ;;
|
|---|
| 142 | *) ac_optarg=yes ;;
|
|---|
| 143 | esac
|
|---|
| 144 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 145 |
|
|---|
| 146 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 147 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 148 | | --exec | --exe | --ex)
|
|---|
| 149 | ac_prev=exec_prefix ;;
|
|---|
| 150 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 151 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 152 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 153 | exec_prefix="$ac_optarg" ;;
|
|---|
| 154 |
|
|---|
| 155 | -gas | --gas | --ga | --g)
|
|---|
| 156 | # Obsolete; use --with-gas.
|
|---|
| 157 | with_gas=yes ;;
|
|---|
| 158 |
|
|---|
| 159 | -help | --help | --hel | --he)
|
|---|
| 160 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 161 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 162 | cat << EOF
|
|---|
| 163 | Usage: configure [options] [host]
|
|---|
| 164 | Options: [defaults in brackets after descriptions]
|
|---|
| 165 | Configuration:
|
|---|
| 166 | --cache-file=FILE cache test results in FILE
|
|---|
| 167 | --help print this message
|
|---|
| 168 | --no-create do not create output files
|
|---|
| 169 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 170 | --version print the version of autoconf that created configure
|
|---|
| 171 | Directory and file names:
|
|---|
| 172 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 173 | [$ac_default_prefix]
|
|---|
| 174 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 175 | [same as prefix]
|
|---|
| 176 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 177 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 178 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 179 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 180 | [PREFIX/share]
|
|---|
| 181 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 182 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 183 | [PREFIX/com]
|
|---|
| 184 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 185 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 186 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 187 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 188 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 189 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 190 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 191 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 192 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 193 | --program-transform-name=PROGRAM
|
|---|
| 194 | run sed PROGRAM on installed program names
|
|---|
| 195 | EOF
|
|---|
| 196 | cat << EOF
|
|---|
| 197 | Host type:
|
|---|
| 198 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 199 | --host=HOST configure for HOST [guessed]
|
|---|
| 200 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 201 | Features and packages:
|
|---|
| 202 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 203 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 204 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 205 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 206 | --x-includes=DIR X include files are in DIR
|
|---|
| 207 | --x-libraries=DIR X library files are in DIR
|
|---|
| 208 | EOF
|
|---|
| 209 | if test -n "$ac_help"; then
|
|---|
| 210 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 211 | fi
|
|---|
| 212 | exit 0 ;;
|
|---|
| 213 |
|
|---|
| 214 | -host | --host | --hos | --ho)
|
|---|
| 215 | ac_prev=host ;;
|
|---|
| 216 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 217 | host="$ac_optarg" ;;
|
|---|
| 218 |
|
|---|
| 219 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 220 | | --includ | --inclu | --incl | --inc)
|
|---|
| 221 | ac_prev=includedir ;;
|
|---|
| 222 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 223 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 224 | includedir="$ac_optarg" ;;
|
|---|
| 225 |
|
|---|
| 226 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 227 | ac_prev=infodir ;;
|
|---|
| 228 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 229 | infodir="$ac_optarg" ;;
|
|---|
| 230 |
|
|---|
| 231 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 232 | ac_prev=libdir ;;
|
|---|
| 233 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 234 | libdir="$ac_optarg" ;;
|
|---|
| 235 |
|
|---|
| 236 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 237 | | --libexe | --libex | --libe)
|
|---|
| 238 | ac_prev=libexecdir ;;
|
|---|
| 239 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 240 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 241 | libexecdir="$ac_optarg" ;;
|
|---|
| 242 |
|
|---|
| 243 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 244 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 245 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 246 | ac_prev=localstatedir ;;
|
|---|
| 247 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 248 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 249 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 250 | localstatedir="$ac_optarg" ;;
|
|---|
| 251 |
|
|---|
| 252 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 253 | ac_prev=mandir ;;
|
|---|
| 254 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 255 | mandir="$ac_optarg" ;;
|
|---|
| 256 |
|
|---|
| 257 | -nfp | --nfp | --nf)
|
|---|
| 258 | # Obsolete; use --without-fp.
|
|---|
| 259 | with_fp=no ;;
|
|---|
| 260 |
|
|---|
| 261 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 262 | | --no-cr | --no-c)
|
|---|
| 263 | no_create=yes ;;
|
|---|
| 264 |
|
|---|
| 265 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 266 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 267 | no_recursion=yes ;;
|
|---|
| 268 |
|
|---|
| 269 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 270 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 271 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 272 | ac_prev=oldincludedir ;;
|
|---|
| 273 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 274 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 275 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 276 | oldincludedir="$ac_optarg" ;;
|
|---|
| 277 |
|
|---|
| 278 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 279 | ac_prev=prefix ;;
|
|---|
| 280 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 281 | prefix="$ac_optarg" ;;
|
|---|
| 282 |
|
|---|
| 283 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 284 | | --program-pre | --program-pr | --program-p)
|
|---|
| 285 | ac_prev=program_prefix ;;
|
|---|
| 286 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 287 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 288 | program_prefix="$ac_optarg" ;;
|
|---|
| 289 |
|
|---|
| 290 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 291 | | --program-suf | --program-su | --program-s)
|
|---|
| 292 | ac_prev=program_suffix ;;
|
|---|
| 293 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 294 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 295 | program_suffix="$ac_optarg" ;;
|
|---|
| 296 |
|
|---|
| 297 | -program-transform-name | --program-transform-name \
|
|---|
| 298 | | --program-transform-nam | --program-transform-na \
|
|---|
| 299 | | --program-transform-n | --program-transform- \
|
|---|
| 300 | | --program-transform | --program-transfor \
|
|---|
| 301 | | --program-transfo | --program-transf \
|
|---|
| 302 | | --program-trans | --program-tran \
|
|---|
| 303 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 304 | ac_prev=program_transform_name ;;
|
|---|
| 305 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 306 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 307 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 308 | | --program-transform=* | --program-transfor=* \
|
|---|
| 309 | | --program-transfo=* | --program-transf=* \
|
|---|
| 310 | | --program-trans=* | --program-tran=* \
|
|---|
| 311 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 312 | program_transform_name="$ac_optarg" ;;
|
|---|
| 313 |
|
|---|
| 314 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 315 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 316 | silent=yes ;;
|
|---|
| 317 |
|
|---|
| 318 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 319 | ac_prev=sbindir ;;
|
|---|
| 320 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 321 | | --sbi=* | --sb=*)
|
|---|
| 322 | sbindir="$ac_optarg" ;;
|
|---|
| 323 |
|
|---|
| 324 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 325 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 326 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 327 | | --sha | --sh)
|
|---|
| 328 | ac_prev=sharedstatedir ;;
|
|---|
| 329 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 330 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 331 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 332 | | --sha=* | --sh=*)
|
|---|
| 333 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 334 |
|
|---|
| 335 | -site | --site | --sit)
|
|---|
| 336 | ac_prev=site ;;
|
|---|
| 337 | -site=* | --site=* | --sit=*)
|
|---|
| 338 | site="$ac_optarg" ;;
|
|---|
| 339 |
|
|---|
| 340 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 341 | ac_prev=srcdir ;;
|
|---|
| 342 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 343 | srcdir="$ac_optarg" ;;
|
|---|
| 344 |
|
|---|
| 345 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 346 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 347 | ac_prev=sysconfdir ;;
|
|---|
| 348 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 349 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 350 | sysconfdir="$ac_optarg" ;;
|
|---|
| 351 |
|
|---|
| 352 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 353 | ac_prev=target ;;
|
|---|
| 354 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 355 | target="$ac_optarg" ;;
|
|---|
| 356 |
|
|---|
| 357 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 358 | verbose=yes ;;
|
|---|
| 359 |
|
|---|
| 360 | -version | --version | --versio | --versi | --vers)
|
|---|
| 361 | echo "configure generated by autoconf version 2.13"
|
|---|
| 362 | exit 0 ;;
|
|---|
| 363 |
|
|---|
| 364 | -with-* | --with-*)
|
|---|
| 365 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 366 | # Reject names that are not valid shell variable names.
|
|---|
| 367 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 368 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 369 | fi
|
|---|
| 370 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 371 | case "$ac_option" in
|
|---|
| 372 | *=*) ;;
|
|---|
| 373 | *) ac_optarg=yes ;;
|
|---|
| 374 | esac
|
|---|
| 375 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 376 |
|
|---|
| 377 | -without-* | --without-*)
|
|---|
| 378 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 379 | # Reject names that are not valid shell variable names.
|
|---|
| 380 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 381 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 382 | fi
|
|---|
| 383 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 384 | eval "with_${ac_package}=no" ;;
|
|---|
| 385 |
|
|---|
| 386 | --x)
|
|---|
| 387 | # Obsolete; use --with-x.
|
|---|
| 388 | with_x=yes ;;
|
|---|
| 389 |
|
|---|
| 390 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 391 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 392 | ac_prev=x_includes ;;
|
|---|
| 393 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 394 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 395 | x_includes="$ac_optarg" ;;
|
|---|
| 396 |
|
|---|
| 397 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 398 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 399 | ac_prev=x_libraries ;;
|
|---|
| 400 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 401 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 402 | x_libraries="$ac_optarg" ;;
|
|---|
| 403 |
|
|---|
| 404 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 405 | ;;
|
|---|
| 406 |
|
|---|
| 407 | *)
|
|---|
| 408 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 409 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 410 | fi
|
|---|
| 411 | if test "x$nonopt" != xNONE; then
|
|---|
| 412 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 413 | fi
|
|---|
| 414 | nonopt="$ac_option"
|
|---|
| 415 | ;;
|
|---|
| 416 |
|
|---|
| 417 | esac
|
|---|
| 418 | done
|
|---|
| 419 |
|
|---|
| 420 | if test -n "$ac_prev"; then
|
|---|
| 421 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 422 | fi
|
|---|
| 423 |
|
|---|
| 424 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 425 |
|
|---|
| 426 | # File descriptor usage:
|
|---|
| 427 | # 0 standard input
|
|---|
| 428 | # 1 file creation
|
|---|
| 429 | # 2 errors and warnings
|
|---|
| 430 | # 3 some systems may open it to /dev/tty
|
|---|
| 431 | # 4 used on the Kubota Titan
|
|---|
| 432 | # 6 checking for... messages and results
|
|---|
| 433 | # 5 compiler messages saved in config.log
|
|---|
| 434 | if test "$silent" = yes; then
|
|---|
| 435 | exec 6>/dev/null
|
|---|
| 436 | else
|
|---|
| 437 | exec 6>&1
|
|---|
| 438 | fi
|
|---|
| 439 | exec 5>./config.log
|
|---|
| 440 |
|
|---|
| 441 | echo "\
|
|---|
| 442 | This file contains any messages produced by compilers while
|
|---|
| 443 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 444 | " 1>&5
|
|---|
| 445 |
|
|---|
| 446 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 447 | # Also quote any args containing shell metacharacters.
|
|---|
| 448 | ac_configure_args=
|
|---|
| 449 | for ac_arg
|
|---|
| 450 | do
|
|---|
| 451 | case "$ac_arg" in
|
|---|
| 452 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 453 | | --no-cr | --no-c) ;;
|
|---|
| 454 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 455 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 456 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 457 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 458 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 459 | esac
|
|---|
| 460 | done
|
|---|
| 461 |
|
|---|
| 462 | # NLS nuisances.
|
|---|
| 463 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 464 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 465 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 466 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 467 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 468 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 469 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 470 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 471 |
|
|---|
| 472 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 473 | rm -rf conftest* confdefs.h
|
|---|
| 474 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 475 | echo > confdefs.h
|
|---|
| 476 |
|
|---|
| 477 | # A filename unique to this package, relative to the directory that
|
|---|
| 478 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 479 | ac_unique_file=fficonfig.h.in
|
|---|
| 480 |
|
|---|
| 481 | # Find the source files, if location was not specified.
|
|---|
| 482 | if test -z "$srcdir"; then
|
|---|
| 483 | ac_srcdir_defaulted=yes
|
|---|
| 484 | # Try the directory containing this script, then its parent.
|
|---|
| 485 | ac_prog=$0
|
|---|
| 486 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 487 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 488 | srcdir=$ac_confdir
|
|---|
| 489 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 490 | srcdir=..
|
|---|
| 491 | fi
|
|---|
| 492 | else
|
|---|
| 493 | ac_srcdir_defaulted=no
|
|---|
| 494 | fi
|
|---|
| 495 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 496 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 497 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 498 | else
|
|---|
| 499 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 500 | fi
|
|---|
| 501 | fi
|
|---|
| 502 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 503 |
|
|---|
| 504 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 505 | if test -z "$CONFIG_SITE"; then
|
|---|
| 506 | if test "x$prefix" != xNONE; then
|
|---|
| 507 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 508 | else
|
|---|
| 509 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 510 | fi
|
|---|
| 511 | fi
|
|---|
| 512 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 513 | if test -r "$ac_site_file"; then
|
|---|
| 514 | echo "loading site script $ac_site_file"
|
|---|
| 515 | . "$ac_site_file"
|
|---|
| 516 | fi
|
|---|
| 517 | done
|
|---|
| 518 |
|
|---|
| 519 | if test -r "$cache_file"; then
|
|---|
| 520 | echo "loading cache $cache_file"
|
|---|
| 521 | . $cache_file
|
|---|
| 522 | else
|
|---|
| 523 | echo "creating cache $cache_file"
|
|---|
| 524 | > $cache_file
|
|---|
| 525 | fi
|
|---|
| 526 |
|
|---|
| 527 | ac_ext=c
|
|---|
| 528 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 529 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 530 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 531 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 532 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 533 |
|
|---|
| 534 | ac_exeext=
|
|---|
| 535 | ac_objext=o
|
|---|
| 536 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 537 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 538 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 539 | ac_n= ac_c='
|
|---|
| 540 | ' ac_t=' '
|
|---|
| 541 | else
|
|---|
| 542 | ac_n=-n ac_c= ac_t=
|
|---|
| 543 | fi
|
|---|
| 544 | else
|
|---|
| 545 | ac_n= ac_c='\c' ac_t=
|
|---|
| 546 | fi
|
|---|
| 547 |
|
|---|
| 548 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 549 | echo "configure:550: checking for path separator" >&5
|
|---|
| 550 | # Filter path to get backslahes into forwardslashes
|
|---|
| 551 | case "`uname -s 2> /dev/null`" in
|
|---|
| 552 | OS/2)
|
|---|
| 553 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 554 | PATH_IFS=';'
|
|---|
| 555 | ;;
|
|---|
| 556 | *)
|
|---|
| 557 | PATH_IFS=':'
|
|---|
| 558 | ;;
|
|---|
| 559 | esac
|
|---|
| 560 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 561 |
|
|---|
| 562 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 563 | echo "configure:564: checking for Cygwin environment" >&5
|
|---|
| 564 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 565 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 566 | else
|
|---|
| 567 | cat > conftest.$ac_ext <<EOF
|
|---|
| 568 | #line 569 "configure"
|
|---|
| 569 | #include "confdefs.h"
|
|---|
| 570 |
|
|---|
| 571 | int main() {
|
|---|
| 572 |
|
|---|
| 573 | #ifndef __CYGWIN__
|
|---|
| 574 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 575 | #endif
|
|---|
| 576 | return __CYGWIN__;
|
|---|
| 577 | ; return 0; }
|
|---|
| 578 | EOF
|
|---|
| 579 | if { (eval echo configure:580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 580 | rm -rf conftest*
|
|---|
| 581 | ac_cv_cygwin=yes
|
|---|
| 582 | else
|
|---|
| 583 | echo "configure: failed program was:" >&5
|
|---|
| 584 | cat conftest.$ac_ext >&5
|
|---|
| 585 | rm -rf conftest*
|
|---|
| 586 | ac_cv_cygwin=no
|
|---|
| 587 | fi
|
|---|
| 588 | rm -f conftest*
|
|---|
| 589 | rm -f conftest*
|
|---|
| 590 | fi
|
|---|
| 591 |
|
|---|
| 592 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 593 | CYGWIN=
|
|---|
| 594 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 595 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 596 | echo "configure:597: checking for mingw32 environment" >&5
|
|---|
| 597 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 598 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 599 | else
|
|---|
| 600 | cat > conftest.$ac_ext <<EOF
|
|---|
| 601 | #line 602 "configure"
|
|---|
| 602 | #include "confdefs.h"
|
|---|
| 603 |
|
|---|
| 604 | int main() {
|
|---|
| 605 | return __MINGW32__;
|
|---|
| 606 | ; return 0; }
|
|---|
| 607 | EOF
|
|---|
| 608 | if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 609 | rm -rf conftest*
|
|---|
| 610 | ac_cv_mingw32=yes
|
|---|
| 611 | else
|
|---|
| 612 | echo "configure: failed program was:" >&5
|
|---|
| 613 | cat conftest.$ac_ext >&5
|
|---|
| 614 | rm -rf conftest*
|
|---|
| 615 | ac_cv_mingw32=no
|
|---|
| 616 | fi
|
|---|
| 617 | rm -f conftest*
|
|---|
| 618 | rm -f conftest*
|
|---|
| 619 | fi
|
|---|
| 620 |
|
|---|
| 621 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 622 | MINGW32=
|
|---|
| 623 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 624 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 625 | echo "configure:626: checking for EMX/OS2 environment" >&5
|
|---|
| 626 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 627 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 628 | else
|
|---|
| 629 | : ${CC=gcc.exe}
|
|---|
| 630 | cat > conftest.$ac_ext <<EOF
|
|---|
| 631 | #line 632 "configure"
|
|---|
| 632 | #include "confdefs.h"
|
|---|
| 633 |
|
|---|
| 634 | int main() {
|
|---|
| 635 | return __EMX__;
|
|---|
| 636 | ; return 0; }
|
|---|
| 637 | EOF
|
|---|
| 638 | if { (eval echo configure:639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 639 | rm -rf conftest*
|
|---|
| 640 | ac_cv_emxos2=yes
|
|---|
| 641 | else
|
|---|
| 642 | echo "configure: failed program was:" >&5
|
|---|
| 643 | cat conftest.$ac_ext >&5
|
|---|
| 644 | rm -rf conftest*
|
|---|
| 645 | ac_cv_emxos2=no
|
|---|
| 646 | fi
|
|---|
| 647 | rm -f conftest*
|
|---|
| 648 | rm -f conftest*
|
|---|
| 649 | fi
|
|---|
| 650 |
|
|---|
| 651 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 652 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 653 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 654 | else
|
|---|
| 655 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 656 | ac_cv_libpre=
|
|---|
| 657 | else
|
|---|
| 658 | ac_cv_libpre=lib
|
|---|
| 659 | fi
|
|---|
| 660 |
|
|---|
| 661 | fi
|
|---|
| 662 |
|
|---|
| 663 | EMXOS2=
|
|---|
| 664 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 |
|
|---|
| 668 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 669 | echo "configure:670: checking for executable suffix" >&5
|
|---|
| 670 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 671 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 672 | else
|
|---|
| 673 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 674 | ac_cv_exeext=.exe
|
|---|
| 675 | else
|
|---|
| 676 | rm -f conftest*
|
|---|
| 677 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 678 | ac_cv_exeext=
|
|---|
| 679 | if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 680 | for file in conftest.*; do
|
|---|
| 681 | case $file in
|
|---|
| 682 | *.c | *.o | *.obj) ;;
|
|---|
| 683 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 684 | esac
|
|---|
| 685 | done
|
|---|
| 686 | else
|
|---|
| 687 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 688 | fi
|
|---|
| 689 | rm -f conftest*
|
|---|
| 690 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 691 | fi
|
|---|
| 692 | fi
|
|---|
| 693 |
|
|---|
| 694 | EXEEXT=""
|
|---|
| 695 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 696 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 697 | ac_exeext=$EXEEXT
|
|---|
| 698 |
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 | # This works around the fact that libtool configuration may change LD
|
|---|
| 705 | # for this particular configuration, but some shells, instead of
|
|---|
| 706 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 707 | # exported.
|
|---|
| 708 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 709 |
|
|---|
| 710 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 711 | if test "${enable_multilib+set}" = set; then
|
|---|
| 712 | enableval="$enable_multilib"
|
|---|
| 713 | case "${enableval}" in
|
|---|
| 714 | yes) multilib=yes ;;
|
|---|
| 715 | no) multilib=no ;;
|
|---|
| 716 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 717 | esac
|
|---|
| 718 | else
|
|---|
| 719 | multilib=yes
|
|---|
| 720 | fi
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 | if test "${srcdir}" = "."; then
|
|---|
| 724 | if test "${with_target_subdir}" != "."; then
|
|---|
| 725 | libffi_basedir="${srcdir}/${with_multisrctop}.."
|
|---|
| 726 | else
|
|---|
| 727 | libffi_basedir="${srcdir}/${with_multisrctop}"
|
|---|
| 728 | fi
|
|---|
| 729 | else
|
|---|
| 730 | libffi_basedir="${srcdir}"
|
|---|
| 731 | fi
|
|---|
| 732 |
|
|---|
| 733 |
|
|---|
| 734 | ac_aux_dir=
|
|---|
| 735 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 736 | if test -f $ac_dir/install-sh; then
|
|---|
| 737 | ac_aux_dir=$ac_dir
|
|---|
| 738 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 739 | break
|
|---|
| 740 | elif test -f $ac_dir/install.sh; then
|
|---|
| 741 | ac_aux_dir=$ac_dir
|
|---|
| 742 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 743 | break
|
|---|
| 744 | fi
|
|---|
| 745 | done
|
|---|
| 746 | if test -z "$ac_aux_dir"; then
|
|---|
| 747 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 748 | fi
|
|---|
| 749 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 750 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 751 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 752 |
|
|---|
| 753 |
|
|---|
| 754 | # Make sure we can run config.sub.
|
|---|
| 755 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 756 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 757 | fi
|
|---|
| 758 |
|
|---|
| 759 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 760 | echo "configure:761: checking host system type" >&5
|
|---|
| 761 |
|
|---|
| 762 | host_alias=$host
|
|---|
| 763 | case "$host_alias" in
|
|---|
| 764 | NONE)
|
|---|
| 765 | case $nonopt in
|
|---|
| 766 | NONE)
|
|---|
| 767 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 768 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 769 | fi ;;
|
|---|
| 770 | *) host_alias=$nonopt ;;
|
|---|
| 771 | esac ;;
|
|---|
| 772 | esac
|
|---|
| 773 |
|
|---|
| 774 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 775 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 776 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 777 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 778 | echo "$ac_t""$host" 1>&6
|
|---|
| 779 |
|
|---|
| 780 |
|
|---|
| 781 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 782 | if test "${enable_shared+set}" = set; then
|
|---|
| 783 | enableval="$enable_shared"
|
|---|
| 784 | p=${PACKAGE-default}
|
|---|
| 785 | case $enableval in
|
|---|
| 786 | yes) enable_shared=yes ;;
|
|---|
| 787 | no) enable_shared=no ;;
|
|---|
| 788 | *)
|
|---|
| 789 | enable_shared=no
|
|---|
| 790 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 792 | for pkg in $enableval; do
|
|---|
| 793 | if test "X$pkg" = "X$p"; then
|
|---|
| 794 | enable_shared=yes
|
|---|
| 795 | fi
|
|---|
| 796 | done
|
|---|
| 797 | IFS="$ac_save_ifs"
|
|---|
| 798 | ;;
|
|---|
| 799 | esac
|
|---|
| 800 | else
|
|---|
| 801 | enable_shared=yes
|
|---|
| 802 | fi
|
|---|
| 803 |
|
|---|
| 804 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 805 | if test "${enable_static+set}" = set; then
|
|---|
| 806 | enableval="$enable_static"
|
|---|
| 807 | p=${PACKAGE-default}
|
|---|
| 808 | case $enableval in
|
|---|
| 809 | yes) enable_static=yes ;;
|
|---|
| 810 | no) enable_static=no ;;
|
|---|
| 811 | *)
|
|---|
| 812 | enable_static=no
|
|---|
| 813 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 814 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 815 | for pkg in $enableval; do
|
|---|
| 816 | if test "X$pkg" = "X$p"; then
|
|---|
| 817 | enable_static=yes
|
|---|
| 818 | fi
|
|---|
| 819 | done
|
|---|
| 820 | IFS="$ac_save_ifs"
|
|---|
| 821 | ;;
|
|---|
| 822 | esac
|
|---|
| 823 | else
|
|---|
| 824 | enable_static=yes
|
|---|
| 825 | fi
|
|---|
| 826 |
|
|---|
| 827 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 828 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 829 | enableval="$enable_fast_install"
|
|---|
| 830 | p=${PACKAGE-default}
|
|---|
| 831 | case $enableval in
|
|---|
| 832 | yes) enable_fast_install=yes ;;
|
|---|
| 833 | no) enable_fast_install=no ;;
|
|---|
| 834 | *)
|
|---|
| 835 | enable_fast_install=no
|
|---|
| 836 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 838 | for pkg in $enableval; do
|
|---|
| 839 | if test "X$pkg" = "X$p"; then
|
|---|
| 840 | enable_fast_install=yes
|
|---|
| 841 | fi
|
|---|
| 842 | done
|
|---|
| 843 | IFS="$ac_save_ifs"
|
|---|
| 844 | ;;
|
|---|
| 845 | esac
|
|---|
| 846 | else
|
|---|
| 847 | enable_fast_install=yes
|
|---|
| 848 | fi
|
|---|
| 849 |
|
|---|
| 850 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 851 | echo "configure:852: checking build system type" >&5
|
|---|
| 852 |
|
|---|
| 853 | build_alias=$build
|
|---|
| 854 | case "$build_alias" in
|
|---|
| 855 | NONE)
|
|---|
| 856 | case $nonopt in
|
|---|
| 857 | NONE) build_alias=$host_alias ;;
|
|---|
| 858 | *) build_alias=$nonopt ;;
|
|---|
| 859 | esac ;;
|
|---|
| 860 | esac
|
|---|
| 861 |
|
|---|
| 862 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 863 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 864 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 865 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 866 | echo "$ac_t""$build" 1>&6
|
|---|
| 867 |
|
|---|
| 868 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 869 | set dummy gcc; ac_word=$2
|
|---|
| 870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 871 | echo "configure:872: checking for $ac_word" >&5
|
|---|
| 872 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 873 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 874 | else
|
|---|
| 875 | if test -n "$CC"; then
|
|---|
| 876 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 877 | else
|
|---|
| 878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 879 | ac_dummy="$PATH"
|
|---|
| 880 | for ac_dir in $ac_dummy; do
|
|---|
| 881 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 882 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 883 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 884 | ac_cv_prog_CC="gcc"
|
|---|
| 885 | break
|
|---|
| 886 | fi
|
|---|
| 887 | done
|
|---|
| 888 | IFS="$ac_save_ifs"
|
|---|
| 889 | fi
|
|---|
| 890 | fi
|
|---|
| 891 | CC="$ac_cv_prog_CC"
|
|---|
| 892 | if test -n "$CC"; then
|
|---|
| 893 | echo "$ac_t""$CC" 1>&6
|
|---|
| 894 | else
|
|---|
| 895 | echo "$ac_t""no" 1>&6
|
|---|
| 896 | fi
|
|---|
| 897 |
|
|---|
| 898 | if test -z "$CC"; then
|
|---|
| 899 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 900 | set dummy cc; ac_word=$2
|
|---|
| 901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 902 | echo "configure:903: checking for $ac_word" >&5
|
|---|
| 903 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 904 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 905 | else
|
|---|
| 906 | if test -n "$CC"; then
|
|---|
| 907 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 908 | else
|
|---|
| 909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 910 | ac_prog_rejected=no
|
|---|
| 911 | ac_dummy="$PATH"
|
|---|
| 912 | for ac_dir in $ac_dummy; do
|
|---|
| 913 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 914 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 915 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 916 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 917 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 918 | ac_prog_rejected=yes
|
|---|
| 919 | continue
|
|---|
| 920 | fi
|
|---|
| 921 | ac_cv_prog_CC="cc"
|
|---|
| 922 | break
|
|---|
| 923 | fi
|
|---|
| 924 | done
|
|---|
| 925 | IFS="$ac_save_ifs"
|
|---|
| 926 | if test $ac_prog_rejected = yes; then
|
|---|
| 927 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 928 | set dummy $ac_cv_prog_CC
|
|---|
| 929 | shift
|
|---|
| 930 | if test $# -gt 0; then
|
|---|
| 931 | # We chose a different compiler from the bogus one.
|
|---|
| 932 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 933 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 934 | shift
|
|---|
| 935 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 936 | shift
|
|---|
| 937 | ac_cv_prog_CC="$@"
|
|---|
| 938 | fi
|
|---|
| 939 | fi
|
|---|
| 940 | fi
|
|---|
| 941 | fi
|
|---|
| 942 | CC="$ac_cv_prog_CC"
|
|---|
| 943 | if test -n "$CC"; then
|
|---|
| 944 | echo "$ac_t""$CC" 1>&6
|
|---|
| 945 | else
|
|---|
| 946 | echo "$ac_t""no" 1>&6
|
|---|
| 947 | fi
|
|---|
| 948 |
|
|---|
| 949 | if test -z "$CC"; then
|
|---|
| 950 | case "`uname -s`" in
|
|---|
| 951 | *win32* | *WIN32*)
|
|---|
| 952 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 953 | set dummy cl; ac_word=$2
|
|---|
| 954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 955 | echo "configure:956: checking for $ac_word" >&5
|
|---|
| 956 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 957 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 958 | else
|
|---|
| 959 | if test -n "$CC"; then
|
|---|
| 960 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 961 | else
|
|---|
| 962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 963 | ac_dummy="$PATH"
|
|---|
| 964 | for ac_dir in $ac_dummy; do
|
|---|
| 965 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 966 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 967 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 968 | ac_cv_prog_CC="cl"
|
|---|
| 969 | break
|
|---|
| 970 | fi
|
|---|
| 971 | done
|
|---|
| 972 | IFS="$ac_save_ifs"
|
|---|
| 973 | fi
|
|---|
| 974 | fi
|
|---|
| 975 | CC="$ac_cv_prog_CC"
|
|---|
| 976 | if test -n "$CC"; then
|
|---|
| 977 | echo "$ac_t""$CC" 1>&6
|
|---|
| 978 | else
|
|---|
| 979 | echo "$ac_t""no" 1>&6
|
|---|
| 980 | fi
|
|---|
| 981 | ;;
|
|---|
| 982 | esac
|
|---|
| 983 | fi
|
|---|
| 984 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 985 | fi
|
|---|
| 986 |
|
|---|
| 987 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 988 | echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 989 |
|
|---|
| 990 | ac_ext=c
|
|---|
| 991 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 992 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 993 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 994 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 995 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 996 |
|
|---|
| 997 | cat > conftest.$ac_ext << EOF
|
|---|
| 998 |
|
|---|
| 999 | #line 1000 "configure"
|
|---|
| 1000 | #include "confdefs.h"
|
|---|
| 1001 |
|
|---|
| 1002 | main(){return(0);}
|
|---|
| 1003 | EOF
|
|---|
| 1004 | if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1005 | ac_cv_prog_cc_works=yes
|
|---|
| 1006 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 1007 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 1008 | ac_cv_prog_cc_cross=no
|
|---|
| 1009 | else
|
|---|
| 1010 | ac_cv_prog_cc_cross=yes
|
|---|
| 1011 | fi
|
|---|
| 1012 | else
|
|---|
| 1013 | echo "configure: failed program was:" >&5
|
|---|
| 1014 | cat conftest.$ac_ext >&5
|
|---|
| 1015 | ac_cv_prog_cc_works=no
|
|---|
| 1016 | fi
|
|---|
| 1017 | rm -fr conftest*
|
|---|
| 1018 | ac_ext=c
|
|---|
| 1019 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1020 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1021 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1022 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1023 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1024 |
|
|---|
| 1025 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 1026 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 1027 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1028 | fi
|
|---|
| 1029 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 1030 | echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 1031 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 1032 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1033 |
|
|---|
| 1034 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1035 | echo "configure:1036: checking whether we are using GNU C" >&5
|
|---|
| 1036 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1037 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1038 | else
|
|---|
| 1039 | cat > conftest.c <<EOF
|
|---|
| 1040 | #ifdef __GNUC__
|
|---|
| 1041 | yes;
|
|---|
| 1042 | #endif
|
|---|
| 1043 | EOF
|
|---|
| 1044 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1045 | ac_cv_prog_gcc=yes
|
|---|
| 1046 | else
|
|---|
| 1047 | ac_cv_prog_gcc=no
|
|---|
| 1048 | fi
|
|---|
| 1049 | fi
|
|---|
| 1050 |
|
|---|
| 1051 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1052 |
|
|---|
| 1053 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1054 | GCC=yes
|
|---|
| 1055 | else
|
|---|
| 1056 | GCC=
|
|---|
| 1057 | fi
|
|---|
| 1058 |
|
|---|
| 1059 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1060 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1061 | CFLAGS=
|
|---|
| 1062 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1063 | echo "configure:1064: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1064 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1065 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1066 | else
|
|---|
| 1067 | echo 'void f(){}' > conftest.c
|
|---|
| 1068 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1069 | ac_cv_prog_cc_g=yes
|
|---|
| 1070 | else
|
|---|
| 1071 | ac_cv_prog_cc_g=no
|
|---|
| 1072 | fi
|
|---|
| 1073 | rm -f conftest*
|
|---|
| 1074 |
|
|---|
| 1075 | fi
|
|---|
| 1076 |
|
|---|
| 1077 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1078 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1079 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1080 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1081 | if test "$GCC" = yes; then
|
|---|
| 1082 | CFLAGS="-g -O2"
|
|---|
| 1083 | else
|
|---|
| 1084 | CFLAGS="-g"
|
|---|
| 1085 | fi
|
|---|
| 1086 | else
|
|---|
| 1087 | if test "$GCC" = yes; then
|
|---|
| 1088 | CFLAGS="-O2"
|
|---|
| 1089 | else
|
|---|
| 1090 | CFLAGS=
|
|---|
| 1091 | fi
|
|---|
| 1092 | fi
|
|---|
| 1093 |
|
|---|
| 1094 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1095 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1096 | withval="$with_gnu_ld"
|
|---|
| 1097 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1098 | else
|
|---|
| 1099 | with_gnu_ld=no
|
|---|
| 1100 | fi
|
|---|
| 1101 |
|
|---|
| 1102 | ac_prog=ld
|
|---|
| 1103 | if test "$GCC" = yes; then
|
|---|
| 1104 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1105 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1106 | echo "configure:1107: checking for ld used by GCC" >&5
|
|---|
| 1107 | case $host in
|
|---|
| 1108 | *-*-mingw*)
|
|---|
| 1109 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1110 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1111 | *)
|
|---|
| 1112 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1113 | esac
|
|---|
| 1114 | case $ac_prog in
|
|---|
| 1115 | # Accept absolute paths.
|
|---|
| 1116 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1117 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1118 | # Canonicalize the path of ld
|
|---|
| 1119 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1120 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1121 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1122 | done
|
|---|
| 1123 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1124 | ;;
|
|---|
| 1125 | "")
|
|---|
| 1126 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1127 | ac_prog=ld
|
|---|
| 1128 | ;;
|
|---|
| 1129 | *)
|
|---|
| 1130 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1131 | with_gnu_ld=unknown
|
|---|
| 1132 | ;;
|
|---|
| 1133 | esac
|
|---|
| 1134 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1135 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1136 | echo "configure:1137: checking for GNU ld" >&5
|
|---|
| 1137 | else
|
|---|
| 1138 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1139 | echo "configure:1140: checking for non-GNU ld" >&5
|
|---|
| 1140 | fi
|
|---|
| 1141 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1142 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1143 | else
|
|---|
| 1144 | if test -z "$LD"; then
|
|---|
| 1145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1146 | for ac_dir in $PATH; do
|
|---|
| 1147 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1148 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1149 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1150 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1151 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1152 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1153 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1154 | test "$with_gnu_ld" != no && break
|
|---|
| 1155 | else
|
|---|
| 1156 | test "$with_gnu_ld" != yes && break
|
|---|
| 1157 | fi
|
|---|
| 1158 | fi
|
|---|
| 1159 | done
|
|---|
| 1160 | IFS="$ac_save_ifs"
|
|---|
| 1161 | else
|
|---|
| 1162 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1163 | fi
|
|---|
| 1164 | fi
|
|---|
| 1165 |
|
|---|
| 1166 | LD="$lt_cv_path_LD"
|
|---|
| 1167 | if test -n "$LD"; then
|
|---|
| 1168 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1169 | else
|
|---|
| 1170 | echo "$ac_t""no" 1>&6
|
|---|
| 1171 | fi
|
|---|
| 1172 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1173 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1174 | echo "configure:1175: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1175 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1176 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1177 | else
|
|---|
| 1178 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1179 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1180 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1181 | else
|
|---|
| 1182 | lt_cv_prog_gnu_ld=no
|
|---|
| 1183 | fi
|
|---|
| 1184 | fi
|
|---|
| 1185 |
|
|---|
| 1186 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1187 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1188 |
|
|---|
| 1189 |
|
|---|
| 1190 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1191 | echo "configure:1192: checking for $LD option to reload object files" >&5
|
|---|
| 1192 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1193 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1194 | else
|
|---|
| 1195 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1196 | fi
|
|---|
| 1197 |
|
|---|
| 1198 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1199 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1200 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1201 |
|
|---|
| 1202 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1203 | echo "configure:1204: checking for BSD-compatible nm" >&5
|
|---|
| 1204 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1205 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1206 | else
|
|---|
| 1207 | if test -n "$NM"; then
|
|---|
| 1208 | # Let the user override the test.
|
|---|
| 1209 | lt_cv_path_NM="$NM"
|
|---|
| 1210 | else
|
|---|
| 1211 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1212 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1213 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1214 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1215 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1216 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1217 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1218 | # nm: unknown option "B" ignored
|
|---|
| 1219 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1220 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1221 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1222 | break
|
|---|
| 1223 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1224 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1225 | break
|
|---|
| 1226 | else
|
|---|
| 1227 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1228 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1229 | fi
|
|---|
| 1230 | fi
|
|---|
| 1231 | done
|
|---|
| 1232 | IFS="$ac_save_ifs"
|
|---|
| 1233 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1234 | fi
|
|---|
| 1235 | fi
|
|---|
| 1236 |
|
|---|
| 1237 | NM="$lt_cv_path_NM"
|
|---|
| 1238 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1239 |
|
|---|
| 1240 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1241 | echo "configure:1242: checking whether ln -s works" >&5
|
|---|
| 1242 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1243 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1244 | else
|
|---|
| 1245 | rm -f conftestdata
|
|---|
| 1246 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1247 | then
|
|---|
| 1248 | rm -f conftestdata
|
|---|
| 1249 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1250 | else
|
|---|
| 1251 | echo A > conftestdata;
|
|---|
| 1252 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1253 | ac_cv_prog_LN_S=ln
|
|---|
| 1254 | else
|
|---|
| 1255 | ac_cv_prog_LN_S=cp
|
|---|
| 1256 | fi
|
|---|
| 1257 | fi
|
|---|
| 1258 | rm -f conftestdata*
|
|---|
| 1259 | fi
|
|---|
| 1260 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1261 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1262 | echo "$ac_t""yes" 1>&6
|
|---|
| 1263 | else
|
|---|
| 1264 | echo "$ac_t""no" 1>&6
|
|---|
| 1265 | fi
|
|---|
| 1266 |
|
|---|
| 1267 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1268 | echo "configure:1269: checking how to recognise dependant libraries" >&5
|
|---|
| 1269 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1270 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1271 | else
|
|---|
| 1272 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1273 | lt_cv_file_magic_test_file=
|
|---|
| 1274 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1275 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1276 | # interlibrary dependencies.
|
|---|
| 1277 | # 'none' -- dependencies not supported.
|
|---|
| 1278 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1279 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1280 | # 'test_compile' -- check by making test program.
|
|---|
| 1281 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1282 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1283 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1284 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1285 |
|
|---|
| 1286 | case $host_os in
|
|---|
| 1287 | aix*)
|
|---|
| 1288 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1289 | ;;
|
|---|
| 1290 |
|
|---|
| 1291 | beos*)
|
|---|
| 1292 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1293 | ;;
|
|---|
| 1294 |
|
|---|
| 1295 | bsdi4*)
|
|---|
| 1296 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1297 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1298 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1299 | ;;
|
|---|
| 1300 |
|
|---|
| 1301 | cygwin* | mingw* |pw32*)
|
|---|
| 1302 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1303 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1304 | ;;
|
|---|
| 1305 |
|
|---|
| 1306 | darwin* | rhapsody*)
|
|---|
| 1307 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1308 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1309 | case "$host_os" in
|
|---|
| 1310 | rhapsody* | darwin1.012)
|
|---|
| 1311 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1312 | ;;
|
|---|
| 1313 | *) # Darwin 1.3 on
|
|---|
| 1314 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1315 | ;;
|
|---|
| 1316 | esac
|
|---|
| 1317 | ;;
|
|---|
| 1318 |
|
|---|
| 1319 | freebsd* )
|
|---|
| 1320 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1321 | case $host_cpu in
|
|---|
| 1322 | i*86 )
|
|---|
| 1323 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1324 | # Let's accept both of them until this is cleared up.
|
|---|
| 1325 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1326 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1327 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1328 | ;;
|
|---|
| 1329 | esac
|
|---|
| 1330 | else
|
|---|
| 1331 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1332 | fi
|
|---|
| 1333 | ;;
|
|---|
| 1334 |
|
|---|
| 1335 | gnu*)
|
|---|
| 1336 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1337 | ;;
|
|---|
| 1338 |
|
|---|
| 1339 | hpux10.20*|hpux11*)
|
|---|
| 1340 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1341 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1342 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1343 | ;;
|
|---|
| 1344 |
|
|---|
| 1345 | irix5* | irix6*)
|
|---|
| 1346 | case $host_os in
|
|---|
| 1347 | irix5*)
|
|---|
| 1348 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1349 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1350 | ;;
|
|---|
| 1351 | *)
|
|---|
| 1352 | case $LD in
|
|---|
| 1353 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1354 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1355 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1356 | *) libmagic=never-match;;
|
|---|
| 1357 | esac
|
|---|
| 1358 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1359 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1360 | ;;
|
|---|
| 1361 | esac
|
|---|
| 1362 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1363 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1364 | ;;
|
|---|
| 1365 |
|
|---|
| 1366 | # This must be Linux ELF.
|
|---|
| 1367 | linux-gnu*)
|
|---|
| 1368 | case $host_cpu in
|
|---|
| 1369 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1370 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1371 | *)
|
|---|
| 1372 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1373 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1374 | esac
|
|---|
| 1375 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1376 | ;;
|
|---|
| 1377 |
|
|---|
| 1378 | netbsd*)
|
|---|
| 1379 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1380 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1381 | else
|
|---|
| 1382 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1383 | fi
|
|---|
| 1384 | ;;
|
|---|
| 1385 |
|
|---|
| 1386 | newsos6)
|
|---|
| 1387 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1388 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1389 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1390 | ;;
|
|---|
| 1391 |
|
|---|
| 1392 | osf3* | osf4* | osf5*)
|
|---|
| 1393 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1394 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1395 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1396 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1397 | ;;
|
|---|
| 1398 |
|
|---|
| 1399 | sco3.2v5*)
|
|---|
| 1400 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1401 | ;;
|
|---|
| 1402 |
|
|---|
| 1403 | solaris*)
|
|---|
| 1404 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1405 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1406 | ;;
|
|---|
| 1407 |
|
|---|
| 1408 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1409 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1410 | ;;
|
|---|
| 1411 |
|
|---|
| 1412 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1413 | case $host_vendor in
|
|---|
| 1414 | ncr)
|
|---|
| 1415 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1416 | ;;
|
|---|
| 1417 | motorola)
|
|---|
| 1418 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|---|
| 1419 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1420 | ;;
|
|---|
| 1421 | esac
|
|---|
| 1422 | ;;
|
|---|
| 1423 | esac
|
|---|
| 1424 |
|
|---|
| 1425 | fi
|
|---|
| 1426 |
|
|---|
| 1427 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1428 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1429 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1430 |
|
|---|
| 1431 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1432 | echo "configure:1433: checking for object suffix" >&5
|
|---|
| 1433 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1434 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1435 | else
|
|---|
| 1436 | rm -f conftest*
|
|---|
| 1437 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1438 | if { (eval echo configure:1439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1439 | for ac_file in conftest.*; do
|
|---|
| 1440 | case $ac_file in
|
|---|
| 1441 | *.c) ;;
|
|---|
| 1442 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1443 | esac
|
|---|
| 1444 | done
|
|---|
| 1445 | else
|
|---|
| 1446 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1447 | fi
|
|---|
| 1448 | rm -f conftest*
|
|---|
| 1449 | fi
|
|---|
| 1450 |
|
|---|
| 1451 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1452 | OBJEXT=$ac_cv_objext
|
|---|
| 1453 | ac_objext=$ac_cv_objext
|
|---|
| 1454 |
|
|---|
| 1455 | if test $host != $build; then
|
|---|
| 1456 | ac_tool_prefix=${host_alias}-
|
|---|
| 1457 | else
|
|---|
| 1458 | ac_tool_prefix=
|
|---|
| 1459 | fi
|
|---|
| 1460 |
|
|---|
| 1461 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1462 |
|
|---|
| 1463 | # Only perform the check for file, if the check method requires it
|
|---|
| 1464 | case $deplibs_check_method in
|
|---|
| 1465 | file_magic*)
|
|---|
| 1466 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1467 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1468 | echo "configure:1469: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1469 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1470 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1471 | else
|
|---|
| 1472 | case $MAGIC_CMD in
|
|---|
| 1473 | /*)
|
|---|
| 1474 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1475 | ;;
|
|---|
| 1476 | ?:/*)
|
|---|
| 1477 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1478 | ;;
|
|---|
| 1479 | *)
|
|---|
| 1480 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1482 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1483 | for ac_dir in $ac_dummy; do
|
|---|
| 1484 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1485 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1486 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1487 | if test -n "$file_magic_test_file"; then
|
|---|
| 1488 | case $deplibs_check_method in
|
|---|
| 1489 | "file_magic "*)
|
|---|
| 1490 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1491 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1492 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1493 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1494 | :
|
|---|
| 1495 | else
|
|---|
| 1496 | cat <<EOF 1>&2
|
|---|
| 1497 |
|
|---|
| 1498 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1499 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1500 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1501 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1502 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1503 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1504 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1505 | *** bug-libtool@gnu.org
|
|---|
| 1506 |
|
|---|
| 1507 | EOF
|
|---|
| 1508 | fi ;;
|
|---|
| 1509 | esac
|
|---|
| 1510 | fi
|
|---|
| 1511 | break
|
|---|
| 1512 | fi
|
|---|
| 1513 | done
|
|---|
| 1514 | IFS="$ac_save_ifs"
|
|---|
| 1515 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1516 | ;;
|
|---|
| 1517 | esac
|
|---|
| 1518 | fi
|
|---|
| 1519 |
|
|---|
| 1520 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1521 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1522 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1523 | else
|
|---|
| 1524 | echo "$ac_t""no" 1>&6
|
|---|
| 1525 | fi
|
|---|
| 1526 |
|
|---|
| 1527 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1528 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1529 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1530 | echo "configure:1531: checking for file" >&5
|
|---|
| 1531 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1532 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1533 | else
|
|---|
| 1534 | case $MAGIC_CMD in
|
|---|
| 1535 | /*)
|
|---|
| 1536 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1537 | ;;
|
|---|
| 1538 | ?:/*)
|
|---|
| 1539 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1540 | ;;
|
|---|
| 1541 | *)
|
|---|
| 1542 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1544 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1545 | for ac_dir in $ac_dummy; do
|
|---|
| 1546 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1547 | if test -f $ac_dir/file; then
|
|---|
| 1548 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1549 | if test -n "$file_magic_test_file"; then
|
|---|
| 1550 | case $deplibs_check_method in
|
|---|
| 1551 | "file_magic "*)
|
|---|
| 1552 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1553 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1554 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1555 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1556 | :
|
|---|
| 1557 | else
|
|---|
| 1558 | cat <<EOF 1>&2
|
|---|
| 1559 |
|
|---|
| 1560 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1561 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1562 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1563 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1564 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1565 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1566 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1567 | *** bug-libtool@gnu.org
|
|---|
| 1568 |
|
|---|
| 1569 | EOF
|
|---|
| 1570 | fi ;;
|
|---|
| 1571 | esac
|
|---|
| 1572 | fi
|
|---|
| 1573 | break
|
|---|
| 1574 | fi
|
|---|
| 1575 | done
|
|---|
| 1576 | IFS="$ac_save_ifs"
|
|---|
| 1577 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1578 | ;;
|
|---|
| 1579 | esac
|
|---|
| 1580 | fi
|
|---|
| 1581 |
|
|---|
| 1582 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1583 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1584 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1585 | else
|
|---|
| 1586 | echo "$ac_t""no" 1>&6
|
|---|
| 1587 | fi
|
|---|
| 1588 |
|
|---|
| 1589 | else
|
|---|
| 1590 | MAGIC_CMD=:
|
|---|
| 1591 | fi
|
|---|
| 1592 | fi
|
|---|
| 1593 |
|
|---|
| 1594 | fi
|
|---|
| 1595 | ;;
|
|---|
| 1596 | esac
|
|---|
| 1597 |
|
|---|
| 1598 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1599 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1600 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1601 | echo "configure:1602: checking for $ac_word" >&5
|
|---|
| 1602 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1603 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1604 | else
|
|---|
| 1605 | if test -n "$RANLIB"; then
|
|---|
| 1606 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1607 | else
|
|---|
| 1608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1609 | ac_dummy="$PATH"
|
|---|
| 1610 | for ac_dir in $ac_dummy; do
|
|---|
| 1611 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1612 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1613 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1614 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1615 | break
|
|---|
| 1616 | fi
|
|---|
| 1617 | done
|
|---|
| 1618 | IFS="$ac_save_ifs"
|
|---|
| 1619 | fi
|
|---|
| 1620 | fi
|
|---|
| 1621 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1622 | if test -n "$RANLIB"; then
|
|---|
| 1623 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1624 | else
|
|---|
| 1625 | echo "$ac_t""no" 1>&6
|
|---|
| 1626 | fi
|
|---|
| 1627 |
|
|---|
| 1628 |
|
|---|
| 1629 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1630 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1631 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1632 | set dummy ranlib; ac_word=$2
|
|---|
| 1633 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1634 | echo "configure:1635: checking for $ac_word" >&5
|
|---|
| 1635 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1636 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1637 | else
|
|---|
| 1638 | if test -n "$RANLIB"; then
|
|---|
| 1639 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1640 | else
|
|---|
| 1641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1642 | ac_dummy="$PATH"
|
|---|
| 1643 | for ac_dir in $ac_dummy; do
|
|---|
| 1644 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1645 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1646 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1647 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1648 | break
|
|---|
| 1649 | fi
|
|---|
| 1650 | done
|
|---|
| 1651 | IFS="$ac_save_ifs"
|
|---|
| 1652 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1653 | fi
|
|---|
| 1654 | fi
|
|---|
| 1655 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1656 | if test -n "$RANLIB"; then
|
|---|
| 1657 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1658 | else
|
|---|
| 1659 | echo "$ac_t""no" 1>&6
|
|---|
| 1660 | fi
|
|---|
| 1661 |
|
|---|
| 1662 | else
|
|---|
| 1663 | RANLIB=":"
|
|---|
| 1664 | fi
|
|---|
| 1665 | fi
|
|---|
| 1666 |
|
|---|
| 1667 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 1668 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 1669 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1670 | echo "configure:1671: checking for $ac_word" >&5
|
|---|
| 1671 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1672 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1673 | else
|
|---|
| 1674 | if test -n "$STRIP"; then
|
|---|
| 1675 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1676 | else
|
|---|
| 1677 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1678 | ac_dummy="$PATH"
|
|---|
| 1679 | for ac_dir in $ac_dummy; do
|
|---|
| 1680 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1681 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1682 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1683 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 1684 | break
|
|---|
| 1685 | fi
|
|---|
| 1686 | done
|
|---|
| 1687 | IFS="$ac_save_ifs"
|
|---|
| 1688 | fi
|
|---|
| 1689 | fi
|
|---|
| 1690 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1691 | if test -n "$STRIP"; then
|
|---|
| 1692 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1693 | else
|
|---|
| 1694 | echo "$ac_t""no" 1>&6
|
|---|
| 1695 | fi
|
|---|
| 1696 |
|
|---|
| 1697 |
|
|---|
| 1698 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 1699 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1700 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 1701 | set dummy strip; ac_word=$2
|
|---|
| 1702 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1703 | echo "configure:1704: checking for $ac_word" >&5
|
|---|
| 1704 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1705 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1706 | else
|
|---|
| 1707 | if test -n "$STRIP"; then
|
|---|
| 1708 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1709 | else
|
|---|
| 1710 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1711 | ac_dummy="$PATH"
|
|---|
| 1712 | for ac_dir in $ac_dummy; do
|
|---|
| 1713 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1714 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1715 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1716 | ac_cv_prog_STRIP="strip"
|
|---|
| 1717 | break
|
|---|
| 1718 | fi
|
|---|
| 1719 | done
|
|---|
| 1720 | IFS="$ac_save_ifs"
|
|---|
| 1721 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 1722 | fi
|
|---|
| 1723 | fi
|
|---|
| 1724 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1725 | if test -n "$STRIP"; then
|
|---|
| 1726 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1727 | else
|
|---|
| 1728 | echo "$ac_t""no" 1>&6
|
|---|
| 1729 | fi
|
|---|
| 1730 |
|
|---|
| 1731 | else
|
|---|
| 1732 | STRIP=":"
|
|---|
| 1733 | fi
|
|---|
| 1734 | fi
|
|---|
| 1735 |
|
|---|
| 1736 |
|
|---|
| 1737 | # Check for any special flags to pass to ltconfig.
|
|---|
| 1738 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 1739 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 1740 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 1741 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 1742 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 1743 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 1744 |
|
|---|
| 1745 |
|
|---|
| 1746 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 1747 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 1748 | enableval="$enable_libtool_lock"
|
|---|
| 1749 | :
|
|---|
| 1750 | fi
|
|---|
| 1751 |
|
|---|
| 1752 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 1753 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 1754 |
|
|---|
| 1755 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 1756 | if test "${with_pic+set}" = set; then
|
|---|
| 1757 | withval="$with_pic"
|
|---|
| 1758 | pic_mode="$withval"
|
|---|
| 1759 | else
|
|---|
| 1760 | pic_mode=default
|
|---|
| 1761 | fi
|
|---|
| 1762 |
|
|---|
| 1763 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 1764 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 1765 |
|
|---|
| 1766 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 1767 | # libtool support.
|
|---|
| 1768 | case $host in
|
|---|
| 1769 | *-*-irix6*)
|
|---|
| 1770 | # Find out which ABI we are using.
|
|---|
| 1771 | echo '#line 1772 "configure"' > conftest.$ac_ext
|
|---|
| 1772 | if { (eval echo configure:1773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1773 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 1774 | *32-bit*)
|
|---|
| 1775 | LD="${LD-ld} -32"
|
|---|
| 1776 | ;;
|
|---|
| 1777 | *N32*)
|
|---|
| 1778 | LD="${LD-ld} -n32"
|
|---|
| 1779 | ;;
|
|---|
| 1780 | *64-bit*)
|
|---|
| 1781 | LD="${LD-ld} -64"
|
|---|
| 1782 | ;;
|
|---|
| 1783 | esac
|
|---|
| 1784 | fi
|
|---|
| 1785 | rm -rf conftest*
|
|---|
| 1786 | ;;
|
|---|
| 1787 |
|
|---|
| 1788 | *-*-sco3.2v5*)
|
|---|
| 1789 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 1790 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 1791 | CFLAGS="$CFLAGS -belf"
|
|---|
| 1792 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 1793 | echo "configure:1794: checking whether the C compiler needs -belf" >&5
|
|---|
| 1794 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 1795 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1796 | else
|
|---|
| 1797 |
|
|---|
| 1798 | ac_ext=c
|
|---|
| 1799 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1800 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1801 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1802 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1803 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1804 |
|
|---|
| 1805 | cat > conftest.$ac_ext <<EOF
|
|---|
| 1806 | #line 1807 "configure"
|
|---|
| 1807 | #include "confdefs.h"
|
|---|
| 1808 |
|
|---|
| 1809 | int main() {
|
|---|
| 1810 |
|
|---|
| 1811 | ; return 0; }
|
|---|
| 1812 | EOF
|
|---|
| 1813 | if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 1814 | rm -rf conftest*
|
|---|
| 1815 | lt_cv_cc_needs_belf=yes
|
|---|
| 1816 | else
|
|---|
| 1817 | echo "configure: failed program was:" >&5
|
|---|
| 1818 | cat conftest.$ac_ext >&5
|
|---|
| 1819 | rm -rf conftest*
|
|---|
| 1820 | lt_cv_cc_needs_belf=no
|
|---|
| 1821 | fi
|
|---|
| 1822 | rm -f conftest*
|
|---|
| 1823 | ac_ext=c
|
|---|
| 1824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 1825 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 1826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 1827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 1828 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 1829 |
|
|---|
| 1830 | fi
|
|---|
| 1831 |
|
|---|
| 1832 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 1833 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 1834 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 1835 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 1836 | fi
|
|---|
| 1837 | ;;
|
|---|
| 1838 |
|
|---|
| 1839 |
|
|---|
| 1840 | esac
|
|---|
| 1841 |
|
|---|
| 1842 |
|
|---|
| 1843 | # Save cache, so that ltconfig can load it
|
|---|
| 1844 | cat > confcache <<\EOF
|
|---|
| 1845 | # This file is a shell script that caches the results of configure
|
|---|
| 1846 | # tests run on this system so they can be shared between configure
|
|---|
| 1847 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 1848 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 1849 | #
|
|---|
| 1850 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 1851 | # creating it if it does not exist already. You can give configure
|
|---|
| 1852 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 1853 | # what configure does when it calls configure scripts in
|
|---|
| 1854 | # subdirectories, so they share the cache.
|
|---|
| 1855 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 1856 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 1857 | # --recheck option to rerun configure.
|
|---|
| 1858 | #
|
|---|
| 1859 | EOF
|
|---|
| 1860 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 1861 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 1862 | # So, don't put newlines in cache variables' values.
|
|---|
| 1863 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 1864 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 1865 | (set) 2>&1 |
|
|---|
| 1866 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 1867 | *ac_space=\ *)
|
|---|
| 1868 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 1869 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 1870 | sed -n \
|
|---|
| 1871 | -e "s/'/'\\\\''/g" \
|
|---|
| 1872 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 1873 | ;;
|
|---|
| 1874 | *)
|
|---|
| 1875 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 1876 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 1877 | ;;
|
|---|
| 1878 | esac >> confcache
|
|---|
| 1879 | if cmp -s $cache_file confcache; then
|
|---|
| 1880 | :
|
|---|
| 1881 | else
|
|---|
| 1882 | if test -w $cache_file; then
|
|---|
| 1883 | echo "updating cache $cache_file"
|
|---|
| 1884 | cat confcache > $cache_file
|
|---|
| 1885 | else
|
|---|
| 1886 | echo "not updating unwritable cache $cache_file"
|
|---|
| 1887 | fi
|
|---|
| 1888 | fi
|
|---|
| 1889 | rm -f confcache
|
|---|
| 1890 |
|
|---|
| 1891 |
|
|---|
| 1892 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 1893 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 1894 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 1895 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 1896 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 1897 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 1898 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 1899 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 1900 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 1901 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 1902 |
|
|---|
| 1903 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 1904 | if test -r "$cache_file"; then
|
|---|
| 1905 | echo "loading cache $cache_file"
|
|---|
| 1906 | . $cache_file
|
|---|
| 1907 | else
|
|---|
| 1908 | echo "creating cache $cache_file"
|
|---|
| 1909 | > $cache_file
|
|---|
| 1910 | fi
|
|---|
| 1911 |
|
|---|
| 1912 |
|
|---|
| 1913 | # This can be used to rebuild libtool when needed
|
|---|
| 1914 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 1915 |
|
|---|
| 1916 | # Always use our own libtool.
|
|---|
| 1917 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 1918 |
|
|---|
| 1919 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 1920 | # clobbered by the next message.
|
|---|
| 1921 | exec 5>>./config.log
|
|---|
| 1922 |
|
|---|
| 1923 |
|
|---|
| 1924 |
|
|---|
| 1925 |
|
|---|
| 1926 |
|
|---|
| 1927 |
|
|---|
| 1928 |
|
|---|
| 1929 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1930 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1931 | # incompatible versions:
|
|---|
| 1932 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1933 | # SunOS /usr/etc/install
|
|---|
| 1934 | # IRIX /sbin/install
|
|---|
| 1935 | # AIX /bin/install
|
|---|
| 1936 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1937 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1938 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1939 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1940 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1941 | echo "configure:1942: checking for a BSD compatible install" >&5
|
|---|
| 1942 | if test -z "$INSTALL"; then
|
|---|
| 1943 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1944 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1945 | else
|
|---|
| 1946 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1947 | for ac_dir in $PATH; do
|
|---|
| 1948 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1949 | case "$ac_dir/" in
|
|---|
| 1950 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1951 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1952 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1953 | *)
|
|---|
| 1954 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1955 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1956 | # by default.
|
|---|
| 1957 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1958 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1959 | if test $ac_prog = install &&
|
|---|
| 1960 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1961 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1962 | :
|
|---|
| 1963 | else
|
|---|
| 1964 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1965 | break 2
|
|---|
| 1966 | fi
|
|---|
| 1967 | fi
|
|---|
| 1968 | done
|
|---|
| 1969 | ;;
|
|---|
| 1970 | esac
|
|---|
| 1971 | done
|
|---|
| 1972 | IFS="$ac_save_IFS"
|
|---|
| 1973 |
|
|---|
| 1974 | fi
|
|---|
| 1975 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1976 | INSTALL="$ac_cv_path_install"
|
|---|
| 1977 | else
|
|---|
| 1978 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1979 | # path for INSTALL within a source directory, because that will
|
|---|
| 1980 | # break other packages using the cache if that directory is
|
|---|
| 1981 | # removed, or if the path is relative.
|
|---|
| 1982 | INSTALL="$ac_install_sh"
|
|---|
| 1983 | fi
|
|---|
| 1984 | fi
|
|---|
| 1985 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1986 |
|
|---|
| 1987 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1988 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1989 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1990 |
|
|---|
| 1991 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1992 |
|
|---|
| 1993 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1994 |
|
|---|
| 1995 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1996 | echo "configure:1997: checking whether build environment is sane" >&5
|
|---|
| 1997 | # Just in case
|
|---|
| 1998 | sleep 1
|
|---|
| 1999 | echo timestamp > conftestfile
|
|---|
| 2000 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 2001 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 2002 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 2003 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 2004 | # directory).
|
|---|
| 2005 | if (
|
|---|
| 2006 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 2007 | if test "$*" = "X"; then
|
|---|
| 2008 | # -L didn't work.
|
|---|
| 2009 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 2010 | fi
|
|---|
| 2011 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 2012 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 2013 |
|
|---|
| 2014 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 2015 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 2016 | # broken ls alias from the environment. This has actually
|
|---|
| 2017 | # happened. Such a system could not be considered "sane".
|
|---|
| 2018 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 2019 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 2020 | fi
|
|---|
| 2021 |
|
|---|
| 2022 | test "$2" = conftestfile
|
|---|
| 2023 | )
|
|---|
| 2024 | then
|
|---|
| 2025 | # Ok.
|
|---|
| 2026 | :
|
|---|
| 2027 | else
|
|---|
| 2028 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 2029 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 2030 | fi
|
|---|
| 2031 | rm -f conftest*
|
|---|
| 2032 | echo "$ac_t""yes" 1>&6
|
|---|
| 2033 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 2034 | program_transform_name=
|
|---|
| 2035 | else
|
|---|
| 2036 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 2037 | cat <<\EOF_SED > conftestsed
|
|---|
| 2038 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 2039 | EOF_SED
|
|---|
| 2040 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 2041 | rm -f conftestsed
|
|---|
| 2042 | fi
|
|---|
| 2043 | test "$program_prefix" != NONE &&
|
|---|
| 2044 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 2045 | # Use a double $ so make ignores it.
|
|---|
| 2046 | test "$program_suffix" != NONE &&
|
|---|
| 2047 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 2048 |
|
|---|
| 2049 | # sed with no file args requires a program.
|
|---|
| 2050 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 2051 |
|
|---|
| 2052 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 2053 | echo "configure:2054: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 2054 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 2055 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 2056 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2057 | else
|
|---|
| 2058 | cat > conftestmake <<\EOF
|
|---|
| 2059 | all:
|
|---|
| 2060 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 2061 | EOF
|
|---|
| 2062 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 2063 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 2064 | if test -n "$ac_maketemp"; then
|
|---|
| 2065 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 2066 | else
|
|---|
| 2067 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 2068 | fi
|
|---|
| 2069 | rm -f conftestmake
|
|---|
| 2070 | fi
|
|---|
| 2071 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 2072 | echo "$ac_t""yes" 1>&6
|
|---|
| 2073 | SET_MAKE=
|
|---|
| 2074 | else
|
|---|
| 2075 | echo "$ac_t""no" 1>&6
|
|---|
| 2076 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 2077 | fi
|
|---|
| 2078 |
|
|---|
| 2079 |
|
|---|
| 2080 | PACKAGE=libffi
|
|---|
| 2081 |
|
|---|
| 2082 | VERSION=2.00-beta
|
|---|
| 2083 |
|
|---|
| 2084 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 2085 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 2086 | fi
|
|---|
| 2087 |
|
|---|
| 2088 |
|
|---|
| 2089 |
|
|---|
| 2090 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 2091 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 2092 | echo "configure:2093: checking for working aclocal" >&5
|
|---|
| 2093 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2094 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2095 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2096 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2097 | ACLOCAL=aclocal
|
|---|
| 2098 | echo "$ac_t""found" 1>&6
|
|---|
| 2099 | else
|
|---|
| 2100 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 2101 | echo "$ac_t""missing" 1>&6
|
|---|
| 2102 | fi
|
|---|
| 2103 |
|
|---|
| 2104 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 2105 | echo "configure:2106: checking for working autoconf" >&5
|
|---|
| 2106 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2107 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2108 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2109 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2110 | AUTOCONF=autoconf
|
|---|
| 2111 | echo "$ac_t""found" 1>&6
|
|---|
| 2112 | else
|
|---|
| 2113 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 2114 | echo "$ac_t""missing" 1>&6
|
|---|
| 2115 | fi
|
|---|
| 2116 |
|
|---|
| 2117 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 2118 | echo "configure:2119: checking for working automake" >&5
|
|---|
| 2119 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2120 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2121 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2122 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2123 | AUTOMAKE=automake
|
|---|
| 2124 | echo "$ac_t""found" 1>&6
|
|---|
| 2125 | else
|
|---|
| 2126 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 2127 | echo "$ac_t""missing" 1>&6
|
|---|
| 2128 | fi
|
|---|
| 2129 |
|
|---|
| 2130 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 2131 | echo "configure:2132: checking for working autoheader" >&5
|
|---|
| 2132 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2133 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2134 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2135 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2136 | AUTOHEADER=autoheader
|
|---|
| 2137 | echo "$ac_t""found" 1>&6
|
|---|
| 2138 | else
|
|---|
| 2139 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 2140 | echo "$ac_t""missing" 1>&6
|
|---|
| 2141 | fi
|
|---|
| 2142 |
|
|---|
| 2143 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 2144 | echo "configure:2145: checking for working makeinfo" >&5
|
|---|
| 2145 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 2146 | # an executable is not found, even if stderr is redirected.
|
|---|
| 2147 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 2148 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 2149 | MAKEINFO=makeinfo
|
|---|
| 2150 | echo "$ac_t""found" 1>&6
|
|---|
| 2151 | else
|
|---|
| 2152 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 2153 | echo "$ac_t""missing" 1>&6
|
|---|
| 2154 | fi
|
|---|
| 2155 |
|
|---|
| 2156 |
|
|---|
| 2157 |
|
|---|
| 2158 |
|
|---|
| 2159 |
|
|---|
| 2160 |
|
|---|
| 2161 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2162 | echo "configure:2163: checking for executable suffix" >&5
|
|---|
| 2163 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2164 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2165 | else
|
|---|
| 2166 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2167 | ac_cv_exeext=.exe
|
|---|
| 2168 | else
|
|---|
| 2169 | rm -f conftest*
|
|---|
| 2170 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2171 | ac_cv_exeext=
|
|---|
| 2172 | if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2173 | for file in conftest.*; do
|
|---|
| 2174 | case $file in
|
|---|
| 2175 | *.c | *.o | *.obj) ;;
|
|---|
| 2176 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2177 | esac
|
|---|
| 2178 | done
|
|---|
| 2179 | else
|
|---|
| 2180 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2181 | fi
|
|---|
| 2182 | rm -f conftest*
|
|---|
| 2183 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2184 | fi
|
|---|
| 2185 | fi
|
|---|
| 2186 |
|
|---|
| 2187 | EXEEXT=""
|
|---|
| 2188 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2189 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2190 | ac_exeext=$EXEEXT
|
|---|
| 2191 |
|
|---|
| 2192 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2193 | echo "configure:2194: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2194 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2195 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2196 | enableval="$enable_maintainer_mode"
|
|---|
| 2197 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2198 | else
|
|---|
| 2199 | USE_MAINTAINER_MODE=no
|
|---|
| 2200 | fi
|
|---|
| 2201 |
|
|---|
| 2202 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2203 |
|
|---|
| 2204 |
|
|---|
| 2205 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2206 | MAINTAINER_MODE_TRUE=
|
|---|
| 2207 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2208 | else
|
|---|
| 2209 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2210 | MAINTAINER_MODE_FALSE=
|
|---|
| 2211 | fi
|
|---|
| 2212 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2213 |
|
|---|
| 2214 |
|
|---|
| 2215 |
|
|---|
| 2216 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2217 | set dummy gcc; ac_word=$2
|
|---|
| 2218 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2219 | echo "configure:2220: checking for $ac_word" >&5
|
|---|
| 2220 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2221 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2222 | else
|
|---|
| 2223 | if test -n "$CC"; then
|
|---|
| 2224 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2225 | else
|
|---|
| 2226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2227 | ac_dummy="$PATH"
|
|---|
| 2228 | for ac_dir in $ac_dummy; do
|
|---|
| 2229 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2230 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2231 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2232 | ac_cv_prog_CC="gcc"
|
|---|
| 2233 | break
|
|---|
| 2234 | fi
|
|---|
| 2235 | done
|
|---|
| 2236 | IFS="$ac_save_ifs"
|
|---|
| 2237 | fi
|
|---|
| 2238 | fi
|
|---|
| 2239 | CC="$ac_cv_prog_CC"
|
|---|
| 2240 | if test -n "$CC"; then
|
|---|
| 2241 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2242 | else
|
|---|
| 2243 | echo "$ac_t""no" 1>&6
|
|---|
| 2244 | fi
|
|---|
| 2245 |
|
|---|
| 2246 | if test -z "$CC"; then
|
|---|
| 2247 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2248 | set dummy cc; ac_word=$2
|
|---|
| 2249 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2250 | echo "configure:2251: checking for $ac_word" >&5
|
|---|
| 2251 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2252 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2253 | else
|
|---|
| 2254 | if test -n "$CC"; then
|
|---|
| 2255 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2256 | else
|
|---|
| 2257 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2258 | ac_prog_rejected=no
|
|---|
| 2259 | ac_dummy="$PATH"
|
|---|
| 2260 | for ac_dir in $ac_dummy; do
|
|---|
| 2261 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2262 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2263 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2264 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2265 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2266 | ac_prog_rejected=yes
|
|---|
| 2267 | continue
|
|---|
| 2268 | fi
|
|---|
| 2269 | ac_cv_prog_CC="cc"
|
|---|
| 2270 | break
|
|---|
| 2271 | fi
|
|---|
| 2272 | done
|
|---|
| 2273 | IFS="$ac_save_ifs"
|
|---|
| 2274 | if test $ac_prog_rejected = yes; then
|
|---|
| 2275 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2276 | set dummy $ac_cv_prog_CC
|
|---|
| 2277 | shift
|
|---|
| 2278 | if test $# -gt 0; then
|
|---|
| 2279 | # We chose a different compiler from the bogus one.
|
|---|
| 2280 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2281 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2282 | shift
|
|---|
| 2283 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2284 | shift
|
|---|
| 2285 | ac_cv_prog_CC="$@"
|
|---|
| 2286 | fi
|
|---|
| 2287 | fi
|
|---|
| 2288 | fi
|
|---|
| 2289 | fi
|
|---|
| 2290 | CC="$ac_cv_prog_CC"
|
|---|
| 2291 | if test -n "$CC"; then
|
|---|
| 2292 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2293 | else
|
|---|
| 2294 | echo "$ac_t""no" 1>&6
|
|---|
| 2295 | fi
|
|---|
| 2296 |
|
|---|
| 2297 | if test -z "$CC"; then
|
|---|
| 2298 | case "`uname -s`" in
|
|---|
| 2299 | *win32* | *WIN32*)
|
|---|
| 2300 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2301 | set dummy cl; ac_word=$2
|
|---|
| 2302 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2303 | echo "configure:2304: checking for $ac_word" >&5
|
|---|
| 2304 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2305 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2306 | else
|
|---|
| 2307 | if test -n "$CC"; then
|
|---|
| 2308 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2309 | else
|
|---|
| 2310 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2311 | ac_dummy="$PATH"
|
|---|
| 2312 | for ac_dir in $ac_dummy; do
|
|---|
| 2313 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2314 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2315 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2316 | ac_cv_prog_CC="cl"
|
|---|
| 2317 | break
|
|---|
| 2318 | fi
|
|---|
| 2319 | done
|
|---|
| 2320 | IFS="$ac_save_ifs"
|
|---|
| 2321 | fi
|
|---|
| 2322 | fi
|
|---|
| 2323 | CC="$ac_cv_prog_CC"
|
|---|
| 2324 | if test -n "$CC"; then
|
|---|
| 2325 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2326 | else
|
|---|
| 2327 | echo "$ac_t""no" 1>&6
|
|---|
| 2328 | fi
|
|---|
| 2329 | ;;
|
|---|
| 2330 | esac
|
|---|
| 2331 | fi
|
|---|
| 2332 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2333 | fi
|
|---|
| 2334 |
|
|---|
| 2335 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2336 | echo "configure:2337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2337 |
|
|---|
| 2338 | ac_ext=c
|
|---|
| 2339 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2340 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2341 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2342 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2343 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2344 |
|
|---|
| 2345 | cat > conftest.$ac_ext << EOF
|
|---|
| 2346 |
|
|---|
| 2347 | #line 2348 "configure"
|
|---|
| 2348 | #include "confdefs.h"
|
|---|
| 2349 |
|
|---|
| 2350 | main(){return(0);}
|
|---|
| 2351 | EOF
|
|---|
| 2352 | if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2353 | ac_cv_prog_cc_works=yes
|
|---|
| 2354 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2355 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2356 | ac_cv_prog_cc_cross=no
|
|---|
| 2357 | else
|
|---|
| 2358 | ac_cv_prog_cc_cross=yes
|
|---|
| 2359 | fi
|
|---|
| 2360 | else
|
|---|
| 2361 | echo "configure: failed program was:" >&5
|
|---|
| 2362 | cat conftest.$ac_ext >&5
|
|---|
| 2363 | ac_cv_prog_cc_works=no
|
|---|
| 2364 | fi
|
|---|
| 2365 | rm -fr conftest*
|
|---|
| 2366 | ac_ext=c
|
|---|
| 2367 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2368 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2369 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2370 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2371 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2372 |
|
|---|
| 2373 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2374 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2375 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2376 | fi
|
|---|
| 2377 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2378 | echo "configure:2379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2379 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2380 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2381 |
|
|---|
| 2382 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2383 | echo "configure:2384: checking whether we are using GNU C" >&5
|
|---|
| 2384 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2385 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2386 | else
|
|---|
| 2387 | cat > conftest.c <<EOF
|
|---|
| 2388 | #ifdef __GNUC__
|
|---|
| 2389 | yes;
|
|---|
| 2390 | #endif
|
|---|
| 2391 | EOF
|
|---|
| 2392 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2393 | ac_cv_prog_gcc=yes
|
|---|
| 2394 | else
|
|---|
| 2395 | ac_cv_prog_gcc=no
|
|---|
| 2396 | fi
|
|---|
| 2397 | fi
|
|---|
| 2398 |
|
|---|
| 2399 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2400 |
|
|---|
| 2401 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2402 | GCC=yes
|
|---|
| 2403 | else
|
|---|
| 2404 | GCC=
|
|---|
| 2405 | fi
|
|---|
| 2406 |
|
|---|
| 2407 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2408 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2409 | CFLAGS=
|
|---|
| 2410 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2411 | echo "configure:2412: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2412 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2413 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2414 | else
|
|---|
| 2415 | echo 'void f(){}' > conftest.c
|
|---|
| 2416 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2417 | ac_cv_prog_cc_g=yes
|
|---|
| 2418 | else
|
|---|
| 2419 | ac_cv_prog_cc_g=no
|
|---|
| 2420 | fi
|
|---|
| 2421 | rm -f conftest*
|
|---|
| 2422 |
|
|---|
| 2423 | fi
|
|---|
| 2424 |
|
|---|
| 2425 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2426 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2427 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2428 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2429 | if test "$GCC" = yes; then
|
|---|
| 2430 | CFLAGS="-g -O2"
|
|---|
| 2431 | else
|
|---|
| 2432 | CFLAGS="-g"
|
|---|
| 2433 | fi
|
|---|
| 2434 | else
|
|---|
| 2435 | if test "$GCC" = yes; then
|
|---|
| 2436 | CFLAGS="-O2"
|
|---|
| 2437 | else
|
|---|
| 2438 | CFLAGS=
|
|---|
| 2439 | fi
|
|---|
| 2440 | fi
|
|---|
| 2441 |
|
|---|
| 2442 |
|
|---|
| 2443 |
|
|---|
| 2444 |
|
|---|
| 2445 |
|
|---|
| 2446 |
|
|---|
| 2447 |
|
|---|
| 2448 | TARGETDIR="unknown"
|
|---|
| 2449 | case "$host" in
|
|---|
| 2450 | mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
|
|---|
| 2451 | i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2452 | i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2453 | i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2454 | i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2455 | i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
|
|---|
| 2456 | i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2457 | i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2458 | i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
|
|---|
| 2459 | sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2460 | sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2461 | sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2462 | sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
|
|---|
| 2463 | alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
|
|---|
| 2464 | ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
|
|---|
| 2465 | m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
|
|---|
| 2466 | powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2467 | powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
|
|---|
| 2468 | powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
|
|---|
| 2469 | powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2470 | rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
|
|---|
| 2471 | arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
|
|---|
| 2472 | esac
|
|---|
| 2473 |
|
|---|
| 2474 | if test $TARGETDIR = unknown; then
|
|---|
| 2475 | { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
|
|---|
| 2476 | fi
|
|---|
| 2477 |
|
|---|
| 2478 |
|
|---|
| 2479 |
|
|---|
| 2480 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
|
|---|
| 2481 | MIPS_GCC_TRUE=
|
|---|
| 2482 | MIPS_GCC_FALSE='#'
|
|---|
| 2483 | else
|
|---|
| 2484 | MIPS_GCC_TRUE='#'
|
|---|
| 2485 | MIPS_GCC_FALSE=
|
|---|
| 2486 | fi
|
|---|
| 2487 |
|
|---|
| 2488 |
|
|---|
| 2489 | if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
|
|---|
| 2490 | MIPS_SGI_TRUE=
|
|---|
| 2491 | MIPS_SGI_FALSE='#'
|
|---|
| 2492 | else
|
|---|
| 2493 | MIPS_SGI_TRUE='#'
|
|---|
| 2494 | MIPS_SGI_FALSE=
|
|---|
| 2495 | fi
|
|---|
| 2496 |
|
|---|
| 2497 |
|
|---|
| 2498 | if test x$TARGET = xSPARC; then
|
|---|
| 2499 | SPARC_TRUE=
|
|---|
| 2500 | SPARC_FALSE='#'
|
|---|
| 2501 | else
|
|---|
| 2502 | SPARC_TRUE='#'
|
|---|
| 2503 | SPARC_FALSE=
|
|---|
| 2504 | fi
|
|---|
| 2505 |
|
|---|
| 2506 |
|
|---|
| 2507 | if test x$TARGET = xX86; then
|
|---|
| 2508 | X86_TRUE=
|
|---|
| 2509 | X86_FALSE='#'
|
|---|
| 2510 | else
|
|---|
| 2511 | X86_TRUE='#'
|
|---|
| 2512 | X86_FALSE=
|
|---|
| 2513 | fi
|
|---|
| 2514 |
|
|---|
| 2515 |
|
|---|
| 2516 | if test x$TARGET = xX86_WIN32; then
|
|---|
| 2517 | X86_WIN32_TRUE=
|
|---|
| 2518 | X86_WIN32_FALSE='#'
|
|---|
| 2519 | else
|
|---|
| 2520 | X86_WIN32_TRUE='#'
|
|---|
| 2521 | X86_WIN32_FALSE=
|
|---|
| 2522 | fi
|
|---|
| 2523 |
|
|---|
| 2524 |
|
|---|
| 2525 | if test x$TARGET = xALPHA; then
|
|---|
| 2526 | ALPHA_TRUE=
|
|---|
| 2527 | ALPHA_FALSE='#'
|
|---|
| 2528 | else
|
|---|
| 2529 | ALPHA_TRUE='#'
|
|---|
| 2530 | ALPHA_FALSE=
|
|---|
| 2531 | fi
|
|---|
| 2532 |
|
|---|
| 2533 |
|
|---|
| 2534 | if test x$TARGET = xIA64; then
|
|---|
| 2535 | IA64_TRUE=
|
|---|
| 2536 | IA64_FALSE='#'
|
|---|
| 2537 | else
|
|---|
| 2538 | IA64_TRUE='#'
|
|---|
| 2539 | IA64_FALSE=
|
|---|
| 2540 | fi
|
|---|
| 2541 |
|
|---|
| 2542 |
|
|---|
| 2543 | if test x$TARGET = xM68K; then
|
|---|
| 2544 | M68K_TRUE=
|
|---|
| 2545 | M68K_FALSE='#'
|
|---|
| 2546 | else
|
|---|
| 2547 | M68K_TRUE='#'
|
|---|
| 2548 | M68K_FALSE=
|
|---|
| 2549 | fi
|
|---|
| 2550 |
|
|---|
| 2551 |
|
|---|
| 2552 | if test x$TARGET = xPOWERPC; then
|
|---|
| 2553 | POWERPC_TRUE=
|
|---|
| 2554 | POWERPC_FALSE='#'
|
|---|
| 2555 | else
|
|---|
| 2556 | POWERPC_TRUE='#'
|
|---|
| 2557 | POWERPC_FALSE=
|
|---|
| 2558 | fi
|
|---|
| 2559 |
|
|---|
| 2560 |
|
|---|
| 2561 | if test x$TARGET = xPOWERPC_AIX; then
|
|---|
| 2562 | POWERPC_AIX_TRUE=
|
|---|
| 2563 | POWERPC_AIX_FALSE='#'
|
|---|
| 2564 | else
|
|---|
| 2565 | POWERPC_AIX_TRUE='#'
|
|---|
| 2566 | POWERPC_AIX_FALSE=
|
|---|
| 2567 | fi
|
|---|
| 2568 |
|
|---|
| 2569 |
|
|---|
| 2570 | if test x$TARGET = xPOWERPC_DARWIN; then
|
|---|
| 2571 | POWERPC_DARWIN_TRUE=
|
|---|
| 2572 | POWERPC_DARWIN_FALSE='#'
|
|---|
| 2573 | else
|
|---|
| 2574 | POWERPC_DARWIN_TRUE='#'
|
|---|
| 2575 | POWERPC_DARWIN_FALSE=
|
|---|
| 2576 | fi
|
|---|
| 2577 |
|
|---|
| 2578 |
|
|---|
| 2579 | if test x$TARGET = xARM; then
|
|---|
| 2580 | ARM_TRUE=
|
|---|
| 2581 | ARM_FALSE='#'
|
|---|
| 2582 | else
|
|---|
| 2583 | ARM_TRUE='#'
|
|---|
| 2584 | ARM_FALSE=
|
|---|
| 2585 | fi
|
|---|
| 2586 |
|
|---|
| 2587 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2588 | echo "configure:2589: checking how to run the C preprocessor" >&5
|
|---|
| 2589 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2590 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2591 | CPP=
|
|---|
| 2592 | fi
|
|---|
| 2593 | if test -z "$CPP"; then
|
|---|
| 2594 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2595 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2596 | else
|
|---|
| 2597 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2598 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2599 | CPP="${CC-cc} -E"
|
|---|
| 2600 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2601 | # not just through cpp.
|
|---|
| 2602 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2603 | #include <sys/types.h>
|
|---|
| 2604 | #line 2605 "configure"
|
|---|
| 2605 | #include "confdefs.h"
|
|---|
| 2606 | #include <assert.h>
|
|---|
| 2607 | Syntax Error
|
|---|
| 2608 | EOF
|
|---|
| 2609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2610 | { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2612 | if test -z "$ac_err"; then
|
|---|
| 2613 | :
|
|---|
| 2614 | else
|
|---|
| 2615 | echo "$ac_err" >&5
|
|---|
| 2616 | echo "configure: failed program was:" >&5
|
|---|
| 2617 | cat conftest.$ac_ext >&5
|
|---|
| 2618 | rm -rf conftest*
|
|---|
| 2619 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2620 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2621 | #include <sys/types.h>
|
|---|
| 2622 | #line 2623 "configure"
|
|---|
| 2623 | #include "confdefs.h"
|
|---|
| 2624 | #include <assert.h>
|
|---|
| 2625 | Syntax Error
|
|---|
| 2626 | EOF
|
|---|
| 2627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2628 | { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2630 | if test -z "$ac_err"; then
|
|---|
| 2631 | :
|
|---|
| 2632 | else
|
|---|
| 2633 | echo "$ac_err" >&5
|
|---|
| 2634 | echo "configure: failed program was:" >&5
|
|---|
| 2635 | cat conftest.$ac_ext >&5
|
|---|
| 2636 | rm -rf conftest*
|
|---|
| 2637 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2638 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2639 | #include <sys/types.h>
|
|---|
| 2640 | #line 2641 "configure"
|
|---|
| 2641 | #include "confdefs.h"
|
|---|
| 2642 | #include <assert.h>
|
|---|
| 2643 | Syntax Error
|
|---|
| 2644 | EOF
|
|---|
| 2645 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2646 | { (eval echo configure:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2647 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2648 | if test -z "$ac_err"; then
|
|---|
| 2649 | :
|
|---|
| 2650 | else
|
|---|
| 2651 | echo "$ac_err" >&5
|
|---|
| 2652 | echo "configure: failed program was:" >&5
|
|---|
| 2653 | cat conftest.$ac_ext >&5
|
|---|
| 2654 | rm -rf conftest*
|
|---|
| 2655 | CPP=/lib/cpp
|
|---|
| 2656 | fi
|
|---|
| 2657 | rm -f conftest*
|
|---|
| 2658 | fi
|
|---|
| 2659 | rm -f conftest*
|
|---|
| 2660 | fi
|
|---|
| 2661 | rm -f conftest*
|
|---|
| 2662 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2663 | fi
|
|---|
| 2664 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2665 | else
|
|---|
| 2666 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2667 | fi
|
|---|
| 2668 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2669 |
|
|---|
| 2670 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2671 | echo "configure:2672: checking for ANSI C header files" >&5
|
|---|
| 2672 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2673 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2674 | else
|
|---|
| 2675 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2676 | #include <sys/types.h>
|
|---|
| 2677 | #line 2678 "configure"
|
|---|
| 2678 | #include "confdefs.h"
|
|---|
| 2679 | #include <stdlib.h>
|
|---|
| 2680 | #include <stdarg.h>
|
|---|
| 2681 | #include <string.h>
|
|---|
| 2682 | #include <float.h>
|
|---|
| 2683 | EOF
|
|---|
| 2684 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2685 | { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2686 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2687 | if test -z "$ac_err"; then
|
|---|
| 2688 | rm -rf conftest*
|
|---|
| 2689 | ac_cv_header_stdc=yes
|
|---|
| 2690 | else
|
|---|
| 2691 | echo "$ac_err" >&5
|
|---|
| 2692 | echo "configure: failed program was:" >&5
|
|---|
| 2693 | cat conftest.$ac_ext >&5
|
|---|
| 2694 | rm -rf conftest*
|
|---|
| 2695 | ac_cv_header_stdc=no
|
|---|
| 2696 | fi
|
|---|
| 2697 | rm -f conftest*
|
|---|
| 2698 |
|
|---|
| 2699 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2700 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2701 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2702 | #line 2703 "configure"
|
|---|
| 2703 | #include "confdefs.h"
|
|---|
| 2704 | #include <string.h>
|
|---|
| 2705 | EOF
|
|---|
| 2706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2707 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2708 | :
|
|---|
| 2709 | else
|
|---|
| 2710 | rm -rf conftest*
|
|---|
| 2711 | ac_cv_header_stdc=no
|
|---|
| 2712 | fi
|
|---|
| 2713 | rm -f conftest*
|
|---|
| 2714 |
|
|---|
| 2715 | fi
|
|---|
| 2716 |
|
|---|
| 2717 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2718 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2719 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2720 | #line 2721 "configure"
|
|---|
| 2721 | #include "confdefs.h"
|
|---|
| 2722 | #include <stdlib.h>
|
|---|
| 2723 | EOF
|
|---|
| 2724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2725 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2726 | :
|
|---|
| 2727 | else
|
|---|
| 2728 | rm -rf conftest*
|
|---|
| 2729 | ac_cv_header_stdc=no
|
|---|
| 2730 | fi
|
|---|
| 2731 | rm -f conftest*
|
|---|
| 2732 |
|
|---|
| 2733 | fi
|
|---|
| 2734 |
|
|---|
| 2735 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2736 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2737 | if test "$cross_compiling" = yes; then
|
|---|
| 2738 | :
|
|---|
| 2739 | else
|
|---|
| 2740 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2741 | #line 2742 "configure"
|
|---|
| 2742 | #include "confdefs.h"
|
|---|
| 2743 | #include <ctype.h>
|
|---|
| 2744 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2745 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2746 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2747 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2748 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2749 | exit (0); }
|
|---|
| 2750 |
|
|---|
| 2751 | EOF
|
|---|
| 2752 | if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2753 | then
|
|---|
| 2754 | :
|
|---|
| 2755 | else
|
|---|
| 2756 | echo "configure: failed program was:" >&5
|
|---|
| 2757 | cat conftest.$ac_ext >&5
|
|---|
| 2758 | rm -fr conftest*
|
|---|
| 2759 | ac_cv_header_stdc=no
|
|---|
| 2760 | fi
|
|---|
| 2761 | rm -fr conftest*
|
|---|
| 2762 | fi
|
|---|
| 2763 |
|
|---|
| 2764 | fi
|
|---|
| 2765 | fi
|
|---|
| 2766 |
|
|---|
| 2767 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2768 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2769 | cat >> confdefs.h <<\EOF
|
|---|
| 2770 | #define STDC_HEADERS 1
|
|---|
| 2771 | EOF
|
|---|
| 2772 |
|
|---|
| 2773 | fi
|
|---|
| 2774 |
|
|---|
| 2775 | for ac_func in memcpy
|
|---|
| 2776 | do
|
|---|
| 2777 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 2778 | echo "configure:2779: checking for $ac_func" >&5
|
|---|
| 2779 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 2780 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2781 | else
|
|---|
| 2782 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2783 | #line 2784 "configure"
|
|---|
| 2784 | #include "confdefs.h"
|
|---|
| 2785 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 2786 | which can conflict with char $ac_func(); below. */
|
|---|
| 2787 | #include <assert.h>
|
|---|
| 2788 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 2789 | /* We use char because int might match the return type of a gcc2
|
|---|
| 2790 | builtin and then its argument prototype would still apply. */
|
|---|
| 2791 | char $ac_func();
|
|---|
| 2792 |
|
|---|
| 2793 | int main() {
|
|---|
| 2794 |
|
|---|
| 2795 | /* The GNU C library defines this for functions which it implements
|
|---|
| 2796 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 2797 | something starting with __ and the normal name is an alias. */
|
|---|
| 2798 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 2799 | choke me
|
|---|
| 2800 | #else
|
|---|
| 2801 | $ac_func();
|
|---|
| 2802 | #endif
|
|---|
| 2803 |
|
|---|
| 2804 | ; return 0; }
|
|---|
| 2805 | EOF
|
|---|
| 2806 | if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2807 | rm -rf conftest*
|
|---|
| 2808 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 2809 | else
|
|---|
| 2810 | echo "configure: failed program was:" >&5
|
|---|
| 2811 | cat conftest.$ac_ext >&5
|
|---|
| 2812 | rm -rf conftest*
|
|---|
| 2813 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 2814 | fi
|
|---|
| 2815 | rm -f conftest*
|
|---|
| 2816 | fi
|
|---|
| 2817 |
|
|---|
| 2818 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 2819 | echo "$ac_t""yes" 1>&6
|
|---|
| 2820 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 2821 | cat >> confdefs.h <<EOF
|
|---|
| 2822 | #define $ac_tr_func 1
|
|---|
| 2823 | EOF
|
|---|
| 2824 |
|
|---|
| 2825 | else
|
|---|
| 2826 | echo "$ac_t""no" 1>&6
|
|---|
| 2827 | fi
|
|---|
| 2828 | done
|
|---|
| 2829 |
|
|---|
| 2830 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 2831 | # for constant arguments. Useless!
|
|---|
| 2832 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 2833 | echo "configure:2834: checking for working alloca.h" >&5
|
|---|
| 2834 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 2835 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2836 | else
|
|---|
| 2837 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2838 | #line 2839 "configure"
|
|---|
| 2839 | #include "confdefs.h"
|
|---|
| 2840 | #include <alloca.h>
|
|---|
| 2841 | int main() {
|
|---|
| 2842 | char *p = alloca(2 * sizeof(int));
|
|---|
| 2843 | ; return 0; }
|
|---|
| 2844 | EOF
|
|---|
| 2845 | if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2846 | rm -rf conftest*
|
|---|
| 2847 | ac_cv_header_alloca_h=yes
|
|---|
| 2848 | else
|
|---|
| 2849 | echo "configure: failed program was:" >&5
|
|---|
| 2850 | cat conftest.$ac_ext >&5
|
|---|
| 2851 | rm -rf conftest*
|
|---|
| 2852 | ac_cv_header_alloca_h=no
|
|---|
| 2853 | fi
|
|---|
| 2854 | rm -f conftest*
|
|---|
| 2855 | fi
|
|---|
| 2856 |
|
|---|
| 2857 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 2858 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 2859 | cat >> confdefs.h <<\EOF
|
|---|
| 2860 | #define HAVE_ALLOCA_H 1
|
|---|
| 2861 | EOF
|
|---|
| 2862 |
|
|---|
| 2863 | fi
|
|---|
| 2864 |
|
|---|
| 2865 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 2866 | echo "configure:2867: checking for alloca" >&5
|
|---|
| 2867 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 2868 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2869 | else
|
|---|
| 2870 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2871 | #line 2872 "configure"
|
|---|
| 2872 | #include "confdefs.h"
|
|---|
| 2873 |
|
|---|
| 2874 | #ifdef __GNUC__
|
|---|
| 2875 | # define alloca __builtin_alloca
|
|---|
| 2876 | #else
|
|---|
| 2877 | # ifdef _MSC_VER
|
|---|
| 2878 | # include <malloc.h>
|
|---|
| 2879 | # define alloca _alloca
|
|---|
| 2880 | # else
|
|---|
| 2881 | # if HAVE_ALLOCA_H
|
|---|
| 2882 | # include <alloca.h>
|
|---|
| 2883 | # else
|
|---|
| 2884 | # ifdef _AIX
|
|---|
| 2885 | #pragma alloca
|
|---|
| 2886 | # else
|
|---|
| 2887 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 2888 | char *alloca ();
|
|---|
| 2889 | # endif
|
|---|
| 2890 | # endif
|
|---|
| 2891 | # endif
|
|---|
| 2892 | # endif
|
|---|
| 2893 | #endif
|
|---|
| 2894 |
|
|---|
| 2895 | int main() {
|
|---|
| 2896 | char *p = (char *) alloca(1);
|
|---|
| 2897 | ; return 0; }
|
|---|
| 2898 | EOF
|
|---|
| 2899 | if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2900 | rm -rf conftest*
|
|---|
| 2901 | ac_cv_func_alloca_works=yes
|
|---|
| 2902 | else
|
|---|
| 2903 | echo "configure: failed program was:" >&5
|
|---|
| 2904 | cat conftest.$ac_ext >&5
|
|---|
| 2905 | rm -rf conftest*
|
|---|
| 2906 | ac_cv_func_alloca_works=no
|
|---|
| 2907 | fi
|
|---|
| 2908 | rm -f conftest*
|
|---|
| 2909 | fi
|
|---|
| 2910 |
|
|---|
| 2911 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 2912 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 2913 | cat >> confdefs.h <<\EOF
|
|---|
| 2914 | #define HAVE_ALLOCA 1
|
|---|
| 2915 | EOF
|
|---|
| 2916 |
|
|---|
| 2917 | fi
|
|---|
| 2918 |
|
|---|
| 2919 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 2920 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 2921 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 2922 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 2923 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 2924 | ALLOCA=alloca.${ac_objext}
|
|---|
| 2925 | cat >> confdefs.h <<\EOF
|
|---|
| 2926 | #define C_ALLOCA 1
|
|---|
| 2927 | EOF
|
|---|
| 2928 |
|
|---|
| 2929 |
|
|---|
| 2930 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 2931 | echo "configure:2932: checking whether alloca needs Cray hooks" >&5
|
|---|
| 2932 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 2933 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2934 | else
|
|---|
| 2935 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2936 | #line 2937 "configure"
|
|---|
| 2937 | #include "confdefs.h"
|
|---|
| 2938 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 2939 | webecray
|
|---|
| 2940 | #else
|
|---|
| 2941 | wenotbecray
|
|---|
| 2942 | #endif
|
|---|
| 2943 |
|
|---|
| 2944 | EOF
|
|---|
| 2945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2946 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 2947 | rm -rf conftest*
|
|---|
| 2948 | ac_cv_os_cray=yes
|
|---|
| 2949 | else
|
|---|
| 2950 | rm -rf conftest*
|
|---|
| 2951 | ac_cv_os_cray=no
|
|---|
| 2952 | fi
|
|---|
| 2953 | rm -f conftest*
|
|---|
| 2954 |
|
|---|
| 2955 | fi
|
|---|
| 2956 |
|
|---|
| 2957 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 2958 | if test $ac_cv_os_cray = yes; then
|
|---|
| 2959 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 2960 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 2961 | echo "configure:2962: checking for $ac_func" >&5
|
|---|
| 2962 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 2963 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2964 | else
|
|---|
| 2965 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2966 | #line 2967 "configure"
|
|---|
| 2967 | #include "confdefs.h"
|
|---|
| 2968 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 2969 | which can conflict with char $ac_func(); below. */
|
|---|
| 2970 | #include <assert.h>
|
|---|
| 2971 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 2972 | /* We use char because int might match the return type of a gcc2
|
|---|
| 2973 | builtin and then its argument prototype would still apply. */
|
|---|
| 2974 | char $ac_func();
|
|---|
| 2975 |
|
|---|
| 2976 | int main() {
|
|---|
| 2977 |
|
|---|
| 2978 | /* The GNU C library defines this for functions which it implements
|
|---|
| 2979 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 2980 | something starting with __ and the normal name is an alias. */
|
|---|
| 2981 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 2982 | choke me
|
|---|
| 2983 | #else
|
|---|
| 2984 | $ac_func();
|
|---|
| 2985 | #endif
|
|---|
| 2986 |
|
|---|
| 2987 | ; return 0; }
|
|---|
| 2988 | EOF
|
|---|
| 2989 | if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2990 | rm -rf conftest*
|
|---|
| 2991 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 2992 | else
|
|---|
| 2993 | echo "configure: failed program was:" >&5
|
|---|
| 2994 | cat conftest.$ac_ext >&5
|
|---|
| 2995 | rm -rf conftest*
|
|---|
| 2996 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 2997 | fi
|
|---|
| 2998 | rm -f conftest*
|
|---|
| 2999 | fi
|
|---|
| 3000 |
|
|---|
| 3001 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3002 | echo "$ac_t""yes" 1>&6
|
|---|
| 3003 | cat >> confdefs.h <<EOF
|
|---|
| 3004 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 3005 | EOF
|
|---|
| 3006 |
|
|---|
| 3007 | break
|
|---|
| 3008 | else
|
|---|
| 3009 | echo "$ac_t""no" 1>&6
|
|---|
| 3010 | fi
|
|---|
| 3011 |
|
|---|
| 3012 | done
|
|---|
| 3013 | fi
|
|---|
| 3014 |
|
|---|
| 3015 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 3016 | echo "configure:3017: checking stack direction for C alloca" >&5
|
|---|
| 3017 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 3018 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3019 | else
|
|---|
| 3020 | if test "$cross_compiling" = yes; then
|
|---|
| 3021 | ac_cv_c_stack_direction=0
|
|---|
| 3022 | else
|
|---|
| 3023 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3024 | #line 3025 "configure"
|
|---|
| 3025 | #include "confdefs.h"
|
|---|
| 3026 | find_stack_direction ()
|
|---|
| 3027 | {
|
|---|
| 3028 | static char *addr = 0;
|
|---|
| 3029 | auto char dummy;
|
|---|
| 3030 | if (addr == 0)
|
|---|
| 3031 | {
|
|---|
| 3032 | addr = &dummy;
|
|---|
| 3033 | return find_stack_direction ();
|
|---|
| 3034 | }
|
|---|
| 3035 | else
|
|---|
| 3036 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 3037 | }
|
|---|
| 3038 | main ()
|
|---|
| 3039 | {
|
|---|
| 3040 | exit (find_stack_direction() < 0);
|
|---|
| 3041 | }
|
|---|
| 3042 | EOF
|
|---|
| 3043 | if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3044 | then
|
|---|
| 3045 | ac_cv_c_stack_direction=1
|
|---|
| 3046 | else
|
|---|
| 3047 | echo "configure: failed program was:" >&5
|
|---|
| 3048 | cat conftest.$ac_ext >&5
|
|---|
| 3049 | rm -fr conftest*
|
|---|
| 3050 | ac_cv_c_stack_direction=-1
|
|---|
| 3051 | fi
|
|---|
| 3052 | rm -fr conftest*
|
|---|
| 3053 | fi
|
|---|
| 3054 |
|
|---|
| 3055 | fi
|
|---|
| 3056 |
|
|---|
| 3057 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 3058 | cat >> confdefs.h <<EOF
|
|---|
| 3059 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 3060 | EOF
|
|---|
| 3061 |
|
|---|
| 3062 | fi
|
|---|
| 3063 |
|
|---|
| 3064 |
|
|---|
| 3065 | echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|---|
| 3066 | echo "configure:3067: checking size of short" >&5
|
|---|
| 3067 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
|---|
| 3068 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3069 | else
|
|---|
| 3070 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3071 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3072 | #line 3073 "configure"
|
|---|
| 3073 | #include "confdefs.h"
|
|---|
| 3074 | #include "confdefs.h"
|
|---|
| 3075 | #include <sys/types.h>
|
|---|
| 3076 |
|
|---|
| 3077 |
|
|---|
| 3078 | int main() {
|
|---|
| 3079 | switch (0) case 0: case (sizeof (short) == $ac_size):;
|
|---|
| 3080 | ; return 0; }
|
|---|
| 3081 | EOF
|
|---|
| 3082 | if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3083 | rm -rf conftest*
|
|---|
| 3084 | ac_cv_sizeof_short=$ac_size
|
|---|
| 3085 | else
|
|---|
| 3086 | echo "configure: failed program was:" >&5
|
|---|
| 3087 | cat conftest.$ac_ext >&5
|
|---|
| 3088 | fi
|
|---|
| 3089 | rm -f conftest*
|
|---|
| 3090 | if test x$ac_cv_sizeof_short != x ; then break; fi
|
|---|
| 3091 | done
|
|---|
| 3092 |
|
|---|
| 3093 | fi
|
|---|
| 3094 |
|
|---|
| 3095 | if test x$ac_cv_sizeof_short = x ; then
|
|---|
| 3096 | { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
|
|---|
| 3097 | fi
|
|---|
| 3098 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|---|
| 3099 | cat >> confdefs.h <<EOF
|
|---|
| 3100 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|---|
| 3101 | EOF
|
|---|
| 3102 |
|
|---|
| 3103 |
|
|---|
| 3104 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|---|
| 3105 | echo "configure:3106: checking size of int" >&5
|
|---|
| 3106 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|---|
| 3107 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3108 | else
|
|---|
| 3109 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3110 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3111 | #line 3112 "configure"
|
|---|
| 3112 | #include "confdefs.h"
|
|---|
| 3113 | #include "confdefs.h"
|
|---|
| 3114 | #include <sys/types.h>
|
|---|
| 3115 |
|
|---|
| 3116 |
|
|---|
| 3117 | int main() {
|
|---|
| 3118 | switch (0) case 0: case (sizeof (int) == $ac_size):;
|
|---|
| 3119 | ; return 0; }
|
|---|
| 3120 | EOF
|
|---|
| 3121 | if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3122 | rm -rf conftest*
|
|---|
| 3123 | ac_cv_sizeof_int=$ac_size
|
|---|
| 3124 | else
|
|---|
| 3125 | echo "configure: failed program was:" >&5
|
|---|
| 3126 | cat conftest.$ac_ext >&5
|
|---|
| 3127 | fi
|
|---|
| 3128 | rm -f conftest*
|
|---|
| 3129 | if test x$ac_cv_sizeof_int != x ; then break; fi
|
|---|
| 3130 | done
|
|---|
| 3131 |
|
|---|
| 3132 | fi
|
|---|
| 3133 |
|
|---|
| 3134 | if test x$ac_cv_sizeof_int = x ; then
|
|---|
| 3135 | { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
|
|---|
| 3136 | fi
|
|---|
| 3137 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|---|
| 3138 | cat >> confdefs.h <<EOF
|
|---|
| 3139 | #define SIZEOF_INT $ac_cv_sizeof_int
|
|---|
| 3140 | EOF
|
|---|
| 3141 |
|
|---|
| 3142 |
|
|---|
| 3143 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|---|
| 3144 | echo "configure:3145: checking size of long" >&5
|
|---|
| 3145 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
|---|
| 3146 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3147 | else
|
|---|
| 3148 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3149 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3150 | #line 3151 "configure"
|
|---|
| 3151 | #include "confdefs.h"
|
|---|
| 3152 | #include "confdefs.h"
|
|---|
| 3153 | #include <sys/types.h>
|
|---|
| 3154 |
|
|---|
| 3155 |
|
|---|
| 3156 | int main() {
|
|---|
| 3157 | switch (0) case 0: case (sizeof (long) == $ac_size):;
|
|---|
| 3158 | ; return 0; }
|
|---|
| 3159 | EOF
|
|---|
| 3160 | if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3161 | rm -rf conftest*
|
|---|
| 3162 | ac_cv_sizeof_long=$ac_size
|
|---|
| 3163 | else
|
|---|
| 3164 | echo "configure: failed program was:" >&5
|
|---|
| 3165 | cat conftest.$ac_ext >&5
|
|---|
| 3166 | fi
|
|---|
| 3167 | rm -f conftest*
|
|---|
| 3168 | if test x$ac_cv_sizeof_long != x ; then break; fi
|
|---|
| 3169 | done
|
|---|
| 3170 |
|
|---|
| 3171 | fi
|
|---|
| 3172 |
|
|---|
| 3173 | if test x$ac_cv_sizeof_long = x ; then
|
|---|
| 3174 | { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
|
|---|
| 3175 | fi
|
|---|
| 3176 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|---|
| 3177 | cat >> confdefs.h <<EOF
|
|---|
| 3178 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
|---|
| 3179 | EOF
|
|---|
| 3180 |
|
|---|
| 3181 |
|
|---|
| 3182 | echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
|---|
| 3183 | echo "configure:3184: checking size of long long" >&5
|
|---|
| 3184 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
|---|
| 3185 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3186 | else
|
|---|
| 3187 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3188 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3189 | #line 3190 "configure"
|
|---|
| 3190 | #include "confdefs.h"
|
|---|
| 3191 | #include "confdefs.h"
|
|---|
| 3192 | #include <sys/types.h>
|
|---|
| 3193 |
|
|---|
| 3194 |
|
|---|
| 3195 | int main() {
|
|---|
| 3196 | switch (0) case 0: case (sizeof (long long) == $ac_size):;
|
|---|
| 3197 | ; return 0; }
|
|---|
| 3198 | EOF
|
|---|
| 3199 | if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3200 | rm -rf conftest*
|
|---|
| 3201 | ac_cv_sizeof_long_long=$ac_size
|
|---|
| 3202 | else
|
|---|
| 3203 | echo "configure: failed program was:" >&5
|
|---|
| 3204 | cat conftest.$ac_ext >&5
|
|---|
| 3205 | fi
|
|---|
| 3206 | rm -f conftest*
|
|---|
| 3207 | if test x$ac_cv_sizeof_long_long != x ; then break; fi
|
|---|
| 3208 | done
|
|---|
| 3209 |
|
|---|
| 3210 | fi
|
|---|
| 3211 |
|
|---|
| 3212 | if test x$ac_cv_sizeof_long_long = x ; then
|
|---|
| 3213 | { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
|
|---|
| 3214 | fi
|
|---|
| 3215 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|---|
| 3216 | cat >> confdefs.h <<EOF
|
|---|
| 3217 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|---|
| 3218 | EOF
|
|---|
| 3219 |
|
|---|
| 3220 |
|
|---|
| 3221 | echo $ac_n "checking size of float""... $ac_c" 1>&6
|
|---|
| 3222 | echo "configure:3223: checking size of float" >&5
|
|---|
| 3223 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
|---|
| 3224 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3225 | else
|
|---|
| 3226 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3227 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3228 | #line 3229 "configure"
|
|---|
| 3229 | #include "confdefs.h"
|
|---|
| 3230 | #include "confdefs.h"
|
|---|
| 3231 | #include <sys/types.h>
|
|---|
| 3232 |
|
|---|
| 3233 |
|
|---|
| 3234 | int main() {
|
|---|
| 3235 | switch (0) case 0: case (sizeof (float) == $ac_size):;
|
|---|
| 3236 | ; return 0; }
|
|---|
| 3237 | EOF
|
|---|
| 3238 | if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3239 | rm -rf conftest*
|
|---|
| 3240 | ac_cv_sizeof_float=$ac_size
|
|---|
| 3241 | else
|
|---|
| 3242 | echo "configure: failed program was:" >&5
|
|---|
| 3243 | cat conftest.$ac_ext >&5
|
|---|
| 3244 | fi
|
|---|
| 3245 | rm -f conftest*
|
|---|
| 3246 | if test x$ac_cv_sizeof_float != x ; then break; fi
|
|---|
| 3247 | done
|
|---|
| 3248 |
|
|---|
| 3249 | fi
|
|---|
| 3250 |
|
|---|
| 3251 | if test x$ac_cv_sizeof_float = x ; then
|
|---|
| 3252 | { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
|
|---|
| 3253 | fi
|
|---|
| 3254 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
|---|
| 3255 | cat >> confdefs.h <<EOF
|
|---|
| 3256 | #define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|---|
| 3257 | EOF
|
|---|
| 3258 |
|
|---|
| 3259 |
|
|---|
| 3260 | echo $ac_n "checking size of double""... $ac_c" 1>&6
|
|---|
| 3261 | echo "configure:3262: checking size of double" >&5
|
|---|
| 3262 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
|---|
| 3263 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3264 | else
|
|---|
| 3265 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3266 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3267 | #line 3268 "configure"
|
|---|
| 3268 | #include "confdefs.h"
|
|---|
| 3269 | #include "confdefs.h"
|
|---|
| 3270 | #include <sys/types.h>
|
|---|
| 3271 |
|
|---|
| 3272 |
|
|---|
| 3273 | int main() {
|
|---|
| 3274 | switch (0) case 0: case (sizeof (double) == $ac_size):;
|
|---|
| 3275 | ; return 0; }
|
|---|
| 3276 | EOF
|
|---|
| 3277 | if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3278 | rm -rf conftest*
|
|---|
| 3279 | ac_cv_sizeof_double=$ac_size
|
|---|
| 3280 | else
|
|---|
| 3281 | echo "configure: failed program was:" >&5
|
|---|
| 3282 | cat conftest.$ac_ext >&5
|
|---|
| 3283 | fi
|
|---|
| 3284 | rm -f conftest*
|
|---|
| 3285 | if test x$ac_cv_sizeof_double != x ; then break; fi
|
|---|
| 3286 | done
|
|---|
| 3287 |
|
|---|
| 3288 | fi
|
|---|
| 3289 |
|
|---|
| 3290 | if test x$ac_cv_sizeof_double = x ; then
|
|---|
| 3291 | { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
|
|---|
| 3292 | fi
|
|---|
| 3293 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|---|
| 3294 | cat >> confdefs.h <<EOF
|
|---|
| 3295 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|---|
| 3296 | EOF
|
|---|
| 3297 |
|
|---|
| 3298 |
|
|---|
| 3299 | echo $ac_n "checking size of long double""... $ac_c" 1>&6
|
|---|
| 3300 | echo "configure:3301: checking size of long double" >&5
|
|---|
| 3301 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
|
|---|
| 3302 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3303 | else
|
|---|
| 3304 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3305 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3306 | #line 3307 "configure"
|
|---|
| 3307 | #include "confdefs.h"
|
|---|
| 3308 | #include "confdefs.h"
|
|---|
| 3309 | #include <sys/types.h>
|
|---|
| 3310 |
|
|---|
| 3311 |
|
|---|
| 3312 | int main() {
|
|---|
| 3313 | switch (0) case 0: case (sizeof (long double) == $ac_size):;
|
|---|
| 3314 | ; return 0; }
|
|---|
| 3315 | EOF
|
|---|
| 3316 | if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3317 | rm -rf conftest*
|
|---|
| 3318 | ac_cv_sizeof_long_double=$ac_size
|
|---|
| 3319 | else
|
|---|
| 3320 | echo "configure: failed program was:" >&5
|
|---|
| 3321 | cat conftest.$ac_ext >&5
|
|---|
| 3322 | fi
|
|---|
| 3323 | rm -f conftest*
|
|---|
| 3324 | if test x$ac_cv_sizeof_long_double != x ; then break; fi
|
|---|
| 3325 | done
|
|---|
| 3326 |
|
|---|
| 3327 | fi
|
|---|
| 3328 |
|
|---|
| 3329 | if test x$ac_cv_sizeof_long_double = x ; then
|
|---|
| 3330 | { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
|
|---|
| 3331 | fi
|
|---|
| 3332 | echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
|
|---|
| 3333 | cat >> confdefs.h <<EOF
|
|---|
| 3334 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
|
|---|
| 3335 | EOF
|
|---|
| 3336 |
|
|---|
| 3337 |
|
|---|
| 3338 |
|
|---|
| 3339 | echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|---|
| 3340 | echo "configure:3341: checking size of void *" >&5
|
|---|
| 3341 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
|---|
| 3342 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3343 | else
|
|---|
| 3344 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
|
|---|
| 3345 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3346 | #line 3347 "configure"
|
|---|
| 3347 | #include "confdefs.h"
|
|---|
| 3348 | #include "confdefs.h"
|
|---|
| 3349 | #include <sys/types.h>
|
|---|
| 3350 |
|
|---|
| 3351 |
|
|---|
| 3352 | int main() {
|
|---|
| 3353 | switch (0) case 0: case (sizeof (void *) == $ac_size):;
|
|---|
| 3354 | ; return 0; }
|
|---|
| 3355 | EOF
|
|---|
| 3356 | if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3357 | rm -rf conftest*
|
|---|
| 3358 | ac_cv_sizeof_void_p=$ac_size
|
|---|
| 3359 | else
|
|---|
| 3360 | echo "configure: failed program was:" >&5
|
|---|
| 3361 | cat conftest.$ac_ext >&5
|
|---|
| 3362 | fi
|
|---|
| 3363 | rm -f conftest*
|
|---|
| 3364 | if test x$ac_cv_sizeof_void_p != x ; then break; fi
|
|---|
| 3365 | done
|
|---|
| 3366 |
|
|---|
| 3367 | fi
|
|---|
| 3368 |
|
|---|
| 3369 | if test x$ac_cv_sizeof_void_p = x ; then
|
|---|
| 3370 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
|
|---|
| 3371 | fi
|
|---|
| 3372 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|---|
| 3373 | cat >> confdefs.h <<EOF
|
|---|
| 3374 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|---|
| 3375 | EOF
|
|---|
| 3376 |
|
|---|
| 3377 |
|
|---|
| 3378 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|---|
| 3379 | echo "configure:3380: checking whether byte ordering is bigendian" >&5
|
|---|
| 3380 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
|---|
| 3381 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3382 | else
|
|---|
| 3383 | ac_cv_c_bigendian=unknown
|
|---|
| 3384 | # See if sys/param.h defines the BYTE_ORDER macro.
|
|---|
| 3385 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3386 | #line 3387 "configure"
|
|---|
| 3387 | #include "confdefs.h"
|
|---|
| 3388 | #include <sys/types.h>
|
|---|
| 3389 | #include <sys/param.h>
|
|---|
| 3390 | int main() {
|
|---|
| 3391 |
|
|---|
| 3392 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|---|
| 3393 | bogus endian macros
|
|---|
| 3394 | #endif
|
|---|
| 3395 | ; return 0; }
|
|---|
| 3396 | EOF
|
|---|
| 3397 | if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3398 | rm -rf conftest*
|
|---|
| 3399 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
|---|
| 3400 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3401 | #line 3402 "configure"
|
|---|
| 3402 | #include "confdefs.h"
|
|---|
| 3403 | #include <sys/types.h>
|
|---|
| 3404 | #include <sys/param.h>
|
|---|
| 3405 | int main() {
|
|---|
| 3406 |
|
|---|
| 3407 | #if BYTE_ORDER != BIG_ENDIAN
|
|---|
| 3408 | not big endian
|
|---|
| 3409 | #endif
|
|---|
| 3410 | ; return 0; }
|
|---|
| 3411 | EOF
|
|---|
| 3412 | if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 3413 | rm -rf conftest*
|
|---|
| 3414 | ac_cv_c_bigendian=yes
|
|---|
| 3415 | else
|
|---|
| 3416 | echo "configure: failed program was:" >&5
|
|---|
| 3417 | cat conftest.$ac_ext >&5
|
|---|
| 3418 | rm -rf conftest*
|
|---|
| 3419 | ac_cv_c_bigendian=no
|
|---|
| 3420 | fi
|
|---|
| 3421 | rm -f conftest*
|
|---|
| 3422 | else
|
|---|
| 3423 | echo "configure: failed program was:" >&5
|
|---|
| 3424 | cat conftest.$ac_ext >&5
|
|---|
| 3425 | fi
|
|---|
| 3426 | rm -f conftest*
|
|---|
| 3427 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3428 | if test "$cross_compiling" = yes; then
|
|---|
| 3429 | echo $ac_n "cross-compiling... " 2>&6
|
|---|
| 3430 | else
|
|---|
| 3431 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3432 | #line 3433 "configure"
|
|---|
| 3433 | #include "confdefs.h"
|
|---|
| 3434 | main () {
|
|---|
| 3435 | /* Are we little or big endian? From Harbison&Steele. */
|
|---|
| 3436 | union
|
|---|
| 3437 | {
|
|---|
| 3438 | long l;
|
|---|
| 3439 | char c[sizeof (long)];
|
|---|
| 3440 | } u;
|
|---|
| 3441 | u.l = 1;
|
|---|
| 3442 | exit (u.c[sizeof (long) - 1] == 1);
|
|---|
| 3443 | }
|
|---|
| 3444 | EOF
|
|---|
| 3445 | if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3446 | then
|
|---|
| 3447 | ac_cv_c_bigendian=no
|
|---|
| 3448 | else
|
|---|
| 3449 | echo "configure: failed program was:" >&5
|
|---|
| 3450 | cat conftest.$ac_ext >&5
|
|---|
| 3451 | rm -fr conftest*
|
|---|
| 3452 | ac_cv_c_bigendian=yes
|
|---|
| 3453 | fi
|
|---|
| 3454 | rm -fr conftest*
|
|---|
| 3455 | fi
|
|---|
| 3456 |
|
|---|
| 3457 | fi
|
|---|
| 3458 | fi
|
|---|
| 3459 |
|
|---|
| 3460 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|---|
| 3461 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3462 | echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
|
|---|
| 3463 | echo "configure:3464: checking to probe for byte ordering" >&5
|
|---|
| 3464 |
|
|---|
| 3465 | cat >conftest.c <<EOF
|
|---|
| 3466 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|---|
| 3467 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|---|
| 3468 | void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
|
|---|
| 3469 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|---|
| 3470 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|---|
| 3471 | void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
|
|---|
| 3472 | int main() { _ascii (); _ebcdic (); return 0; }
|
|---|
| 3473 | EOF
|
|---|
| 3474 | if test -f conftest.c ; then
|
|---|
| 3475 | if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
|
|---|
| 3476 | if test `grep -l BIGenDianSyS conftest.o` ; then
|
|---|
| 3477 | echo $ac_n ' big endian probe OK, ' 1>&6
|
|---|
| 3478 | ac_cv_c_bigendian=yes
|
|---|
| 3479 | fi
|
|---|
| 3480 | if test `grep -l LiTTleEnDian conftest.o` ; then
|
|---|
| 3481 | echo $ac_n ' little endian probe OK, ' 1>&6
|
|---|
| 3482 | if test $ac_cv_c_bigendian = yes ; then
|
|---|
| 3483 | ac_cv_c_bigendian=unknown;
|
|---|
| 3484 | else
|
|---|
| 3485 | ac_cv_c_bigendian=no
|
|---|
| 3486 | fi
|
|---|
| 3487 | fi
|
|---|
| 3488 | echo $ac_n 'guessing bigendian ... ' >&6
|
|---|
| 3489 | fi
|
|---|
| 3490 | fi
|
|---|
| 3491 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|---|
| 3492 | fi
|
|---|
| 3493 | if test $ac_cv_c_bigendian = yes; then
|
|---|
| 3494 | cat >> confdefs.h <<\EOF
|
|---|
| 3495 | #define WORDS_BIGENDIAN 1
|
|---|
| 3496 | EOF
|
|---|
| 3497 |
|
|---|
| 3498 | BYTEORDER=4321
|
|---|
| 3499 | else
|
|---|
| 3500 | BYTEORDER=1234
|
|---|
| 3501 | fi
|
|---|
| 3502 | cat >> confdefs.h <<EOF
|
|---|
| 3503 | #define BYTEORDER $BYTEORDER
|
|---|
| 3504 | EOF
|
|---|
| 3505 |
|
|---|
| 3506 | if test $ac_cv_c_bigendian = unknown; then
|
|---|
| 3507 | { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
|
|---|
| 3508 | fi
|
|---|
| 3509 |
|
|---|
| 3510 |
|
|---|
| 3511 | if test x$TARGET = xSPARC; then
|
|---|
| 3512 | echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
|
|---|
| 3513 | echo "configure:3514: checking assembler and linker support unaligned pc related relocs" >&5
|
|---|
| 3514 | if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
|
|---|
| 3515 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3516 | else
|
|---|
| 3517 |
|
|---|
| 3518 | save_CFLAGS="$CFLAGS"
|
|---|
| 3519 | save_LDFLAGS="$LDFLAGS"
|
|---|
| 3520 | CFLAGS="$CFLAGS -fpic"
|
|---|
| 3521 | LDFLAGS="$LDFLAGS -shared"
|
|---|
| 3522 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3523 | #line 3524 "configure"
|
|---|
| 3524 | #include "confdefs.h"
|
|---|
| 3525 | asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
|
|---|
| 3526 | int main() {
|
|---|
| 3527 |
|
|---|
| 3528 | ; return 0; }
|
|---|
| 3529 | EOF
|
|---|
| 3530 | if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3531 | rm -rf conftest*
|
|---|
| 3532 | libffi_cv_as_sparc_ua_pcrel=yes
|
|---|
| 3533 | else
|
|---|
| 3534 | echo "configure: failed program was:" >&5
|
|---|
| 3535 | cat conftest.$ac_ext >&5
|
|---|
| 3536 | rm -rf conftest*
|
|---|
| 3537 | libffi_cv_as_sparc_ua_pcrel=no
|
|---|
| 3538 | fi
|
|---|
| 3539 | rm -f conftest*
|
|---|
| 3540 | CFLAGS="$save_CFLAGS"
|
|---|
| 3541 | LDFLAGS="$save_LDFLAGS"
|
|---|
| 3542 | fi
|
|---|
| 3543 |
|
|---|
| 3544 | echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
|
|---|
| 3545 | if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
|
|---|
| 3546 | cat >> confdefs.h <<\EOF
|
|---|
| 3547 | #define HAVE_AS_SPARC_UA_PCREL 1
|
|---|
| 3548 | EOF
|
|---|
| 3549 |
|
|---|
| 3550 | fi
|
|---|
| 3551 | fi
|
|---|
| 3552 |
|
|---|
| 3553 |
|
|---|
| 3554 |
|
|---|
| 3555 |
|
|---|
| 3556 |
|
|---|
| 3557 |
|
|---|
| 3558 | # Check whether --enable-debug or --disable-debug was given.
|
|---|
| 3559 | if test "${enable_debug+set}" = set; then
|
|---|
| 3560 | enableval="$enable_debug"
|
|---|
| 3561 | if test "$enable_debug" = "yes"; then
|
|---|
| 3562 | cat >> confdefs.h <<\EOF
|
|---|
| 3563 | #define FFI_DEBUG 1
|
|---|
| 3564 | EOF
|
|---|
| 3565 |
|
|---|
| 3566 | fi
|
|---|
| 3567 | fi
|
|---|
| 3568 |
|
|---|
| 3569 |
|
|---|
| 3570 | # Check whether --enable-structs or --disable-structs was given.
|
|---|
| 3571 | if test "${enable_structs+set}" = set; then
|
|---|
| 3572 | enableval="$enable_structs"
|
|---|
| 3573 | if test "$enable_structs" = "no"; then
|
|---|
| 3574 | cat >> confdefs.h <<\EOF
|
|---|
| 3575 | #define FFI_NO_STRUCTS 1
|
|---|
| 3576 | EOF
|
|---|
| 3577 |
|
|---|
| 3578 | fi
|
|---|
| 3579 | fi
|
|---|
| 3580 |
|
|---|
| 3581 |
|
|---|
| 3582 | # Check whether --enable-raw-api or --disable-raw-api was given.
|
|---|
| 3583 | if test "${enable_raw_api+set}" = set; then
|
|---|
| 3584 | enableval="$enable_raw_api"
|
|---|
| 3585 | if test "$enable_raw_api" = "no"; then
|
|---|
| 3586 | cat >> confdefs.h <<\EOF
|
|---|
| 3587 | #define FFI_NO_RAW_API 1
|
|---|
| 3588 | EOF
|
|---|
| 3589 |
|
|---|
| 3590 | fi
|
|---|
| 3591 | fi
|
|---|
| 3592 |
|
|---|
| 3593 |
|
|---|
| 3594 | # Check whether --enable-purify-safety or --disable-purify-safety was given.
|
|---|
| 3595 | if test "${enable_purify_safety+set}" = set; then
|
|---|
| 3596 | enableval="$enable_purify_safety"
|
|---|
| 3597 | if test "$enable_purify_safety" = "yes"; then
|
|---|
| 3598 | cat >> confdefs.h <<\EOF
|
|---|
| 3599 | #define USING_PURIFY 1
|
|---|
| 3600 | EOF
|
|---|
| 3601 |
|
|---|
| 3602 | fi
|
|---|
| 3603 | fi
|
|---|
| 3604 |
|
|---|
| 3605 |
|
|---|
| 3606 | if test -n "$with_cross_host" &&
|
|---|
| 3607 | test x"$with_cross_host" != x"no"; then
|
|---|
| 3608 | toolexecdir='$(exec_prefix)/$(target_alias)'
|
|---|
| 3609 | toolexeclibdir='$(toolexecdir)/lib'
|
|---|
| 3610 | else
|
|---|
| 3611 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|---|
| 3612 | toolexeclibdir='$(libdir)'
|
|---|
| 3613 | fi
|
|---|
| 3614 | toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory`
|
|---|
| 3615 |
|
|---|
| 3616 |
|
|---|
| 3617 |
|
|---|
| 3618 | if test "${multilib}" = "yes"; then
|
|---|
| 3619 | multilib_arg="--enable-multilib"
|
|---|
| 3620 | else
|
|---|
| 3621 | multilib_arg=
|
|---|
| 3622 | fi
|
|---|
| 3623 |
|
|---|
| 3624 | trap '' 1 2 15
|
|---|
| 3625 | cat > confcache <<\EOF
|
|---|
| 3626 | # This file is a shell script that caches the results of configure
|
|---|
| 3627 | # tests run on this system so they can be shared between configure
|
|---|
| 3628 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 3629 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 3630 | #
|
|---|
| 3631 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 3632 | # creating it if it does not exist already. You can give configure
|
|---|
| 3633 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 3634 | # what configure does when it calls configure scripts in
|
|---|
| 3635 | # subdirectories, so they share the cache.
|
|---|
| 3636 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 3637 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 3638 | # --recheck option to rerun configure.
|
|---|
| 3639 | #
|
|---|
| 3640 | EOF
|
|---|
| 3641 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 3642 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 3643 | # So, don't put newlines in cache variables' values.
|
|---|
| 3644 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 3645 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 3646 | (set) 2>&1 |
|
|---|
| 3647 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 3648 | *ac_space=\ *)
|
|---|
| 3649 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 3650 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 3651 | sed -n \
|
|---|
| 3652 | -e "s/'/'\\\\''/g" \
|
|---|
| 3653 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 3654 | ;;
|
|---|
| 3655 | *)
|
|---|
| 3656 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 3657 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 3658 | ;;
|
|---|
| 3659 | esac >> confcache
|
|---|
| 3660 | if cmp -s $cache_file confcache; then
|
|---|
| 3661 | :
|
|---|
| 3662 | else
|
|---|
| 3663 | if test -w $cache_file; then
|
|---|
| 3664 | echo "updating cache $cache_file"
|
|---|
| 3665 | cat confcache > $cache_file
|
|---|
| 3666 | else
|
|---|
| 3667 | echo "not updating unwritable cache $cache_file"
|
|---|
| 3668 | fi
|
|---|
| 3669 | fi
|
|---|
| 3670 | rm -f confcache
|
|---|
| 3671 |
|
|---|
| 3672 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 3673 |
|
|---|
| 3674 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 3675 | # Let make expand exec_prefix.
|
|---|
| 3676 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 3677 |
|
|---|
| 3678 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 3679 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 3680 | # If there is a colon in the path, we need to keep it.
|
|---|
| 3681 | if test "x$srcdir" = x.; then
|
|---|
| 3682 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 3683 | fi
|
|---|
| 3684 |
|
|---|
| 3685 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 3686 |
|
|---|
| 3687 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 3688 |
|
|---|
| 3689 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 3690 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 3691 |
|
|---|
| 3692 | echo creating $CONFIG_STATUS
|
|---|
| 3693 | rm -f $CONFIG_STATUS
|
|---|
| 3694 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 3695 | #! /bin/sh
|
|---|
| 3696 | # Generated automatically by configure.
|
|---|
| 3697 | # Run this file to recreate the current configuration.
|
|---|
| 3698 | # This directory was configured as follows,
|
|---|
| 3699 | EOF
|
|---|
| 3700 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 3701 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3702 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 3703 | #
|
|---|
| 3704 | # $0 $ac_configure_args
|
|---|
| 3705 | #
|
|---|
| 3706 | # Compiler output produced by configure, useful for debugging
|
|---|
| 3707 | # configure, is in ./config.log if it exists.
|
|---|
| 3708 |
|
|---|
| 3709 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 3710 | for ac_option
|
|---|
| 3711 | do
|
|---|
| 3712 | case "\$ac_option" in
|
|---|
| 3713 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 3714 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 3715 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 3716 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 3717 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 3718 | exit 0 ;;
|
|---|
| 3719 | -help | --help | --hel | --he | --h)
|
|---|
| 3720 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 3721 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 3722 | esac
|
|---|
| 3723 | done
|
|---|
| 3724 |
|
|---|
| 3725 | ac_given_srcdir=$srcdir
|
|---|
| 3726 | ac_given_INSTALL="$INSTALL"
|
|---|
| 3727 | PATHIFS="$PATH_IFS"
|
|---|
| 3728 |
|
|---|
| 3729 | trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 3730 | EOF
|
|---|
| 3731 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3732 |
|
|---|
| 3733 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3734 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 3735 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 3736 | $ac_vpsub
|
|---|
| 3737 | $extrasub
|
|---|
| 3738 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 3739 | s%@SHELL@%$SHELL%g
|
|---|
| 3740 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 3741 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 3742 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 3743 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 3744 | s%@DEFS@%$DEFS%g
|
|---|
| 3745 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 3746 | s%@LIBS@%$LIBS%g
|
|---|
| 3747 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 3748 | s%@prefix@%$prefix%g
|
|---|
| 3749 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 3750 | s%@bindir@%$bindir%g
|
|---|
| 3751 | s%@sbindir@%$sbindir%g
|
|---|
| 3752 | s%@libexecdir@%$libexecdir%g
|
|---|
| 3753 | s%@datadir@%$datadir%g
|
|---|
| 3754 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 3755 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 3756 | s%@localstatedir@%$localstatedir%g
|
|---|
| 3757 | s%@libdir@%$libdir%g
|
|---|
| 3758 | s%@includedir@%$includedir%g
|
|---|
| 3759 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 3760 | s%@infodir@%$infodir%g
|
|---|
| 3761 | s%@mandir@%$mandir%g
|
|---|
| 3762 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 3763 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 3764 | s%@libffi_basedir@%$libffi_basedir%g
|
|---|
| 3765 | s%@host@%$host%g
|
|---|
| 3766 | s%@host_alias@%$host_alias%g
|
|---|
| 3767 | s%@host_cpu@%$host_cpu%g
|
|---|
| 3768 | s%@host_vendor@%$host_vendor%g
|
|---|
| 3769 | s%@host_os@%$host_os%g
|
|---|
| 3770 | s%@build@%$build%g
|
|---|
| 3771 | s%@build_alias@%$build_alias%g
|
|---|
| 3772 | s%@build_cpu@%$build_cpu%g
|
|---|
| 3773 | s%@build_vendor@%$build_vendor%g
|
|---|
| 3774 | s%@build_os@%$build_os%g
|
|---|
| 3775 | s%@CC@%$CC%g
|
|---|
| 3776 | s%@LN_S@%$LN_S%g
|
|---|
| 3777 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 3778 | s%@RANLIB@%$RANLIB%g
|
|---|
| 3779 | s%@STRIP@%$STRIP%g
|
|---|
| 3780 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 3781 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 3782 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 3783 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 3784 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 3785 | s%@VERSION@%$VERSION%g
|
|---|
| 3786 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 3787 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 3788 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 3789 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 3790 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 3791 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 3792 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 3793 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 3794 | s%@MAINT@%$MAINT%g
|
|---|
| 3795 | s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
|
|---|
| 3796 | s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
|
|---|
| 3797 | s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
|
|---|
| 3798 | s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
|
|---|
| 3799 | s%@SPARC_TRUE@%$SPARC_TRUE%g
|
|---|
| 3800 | s%@SPARC_FALSE@%$SPARC_FALSE%g
|
|---|
| 3801 | s%@X86_TRUE@%$X86_TRUE%g
|
|---|
| 3802 | s%@X86_FALSE@%$X86_FALSE%g
|
|---|
| 3803 | s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
|
|---|
| 3804 | s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
|
|---|
| 3805 | s%@ALPHA_TRUE@%$ALPHA_TRUE%g
|
|---|
| 3806 | s%@ALPHA_FALSE@%$ALPHA_FALSE%g
|
|---|
| 3807 | s%@IA64_TRUE@%$IA64_TRUE%g
|
|---|
| 3808 | s%@IA64_FALSE@%$IA64_FALSE%g
|
|---|
| 3809 | s%@M68K_TRUE@%$M68K_TRUE%g
|
|---|
| 3810 | s%@M68K_FALSE@%$M68K_FALSE%g
|
|---|
| 3811 | s%@POWERPC_TRUE@%$POWERPC_TRUE%g
|
|---|
| 3812 | s%@POWERPC_FALSE@%$POWERPC_FALSE%g
|
|---|
| 3813 | s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
|
|---|
| 3814 | s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
|
|---|
| 3815 | s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
|
|---|
| 3816 | s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
|
|---|
| 3817 | s%@ARM_TRUE@%$ARM_TRUE%g
|
|---|
| 3818 | s%@ARM_FALSE@%$ARM_FALSE%g
|
|---|
| 3819 | s%@CPP@%$CPP%g
|
|---|
| 3820 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 3821 | s%@TARGET@%$TARGET%g
|
|---|
| 3822 | s%@TARGETDIR@%$TARGETDIR%g
|
|---|
| 3823 | s%@toolexecdir@%$toolexecdir%g
|
|---|
| 3824 | s%@toolexeclibdir@%$toolexeclibdir%g
|
|---|
| 3825 |
|
|---|
| 3826 | CEOF
|
|---|
| 3827 | EOF
|
|---|
| 3828 |
|
|---|
| 3829 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3830 |
|
|---|
| 3831 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 3832 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 3833 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 3834 | ac_file=1 # Number of current file.
|
|---|
| 3835 | ac_beg=1 # First line for current file.
|
|---|
| 3836 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 3837 | ac_more_lines=:
|
|---|
| 3838 | ac_sed_cmds=""
|
|---|
| 3839 | while $ac_more_lines; do
|
|---|
| 3840 | if test $ac_beg -gt 1; then
|
|---|
| 3841 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3842 | else
|
|---|
| 3843 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3844 | fi
|
|---|
| 3845 | if test ! -s conftest.s$ac_file; then
|
|---|
| 3846 | ac_more_lines=false
|
|---|
| 3847 | rm -f conftest.s$ac_file
|
|---|
| 3848 | else
|
|---|
| 3849 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3850 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 3851 | else
|
|---|
| 3852 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 3853 | fi
|
|---|
| 3854 | ac_file=`expr $ac_file + 1`
|
|---|
| 3855 | ac_beg=$ac_end
|
|---|
| 3856 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 3857 | fi
|
|---|
| 3858 | done
|
|---|
| 3859 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3860 | ac_sed_cmds=cat
|
|---|
| 3861 | fi
|
|---|
| 3862 | EOF
|
|---|
| 3863 |
|
|---|
| 3864 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3865 |
|
|---|
| 3866 | CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
|
|---|
| 3867 | EOF
|
|---|
| 3868 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3869 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 3870 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3871 | case "$ac_file" in
|
|---|
| 3872 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3873 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3874 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3875 | esac
|
|---|
| 3876 |
|
|---|
| 3877 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 3878 |
|
|---|
| 3879 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 3880 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 3881 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 3882 | # The file is in a subdirectory.
|
|---|
| 3883 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 3884 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 3885 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 3886 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 3887 | else
|
|---|
| 3888 | ac_dir_suffix= ac_dots=
|
|---|
| 3889 | fi
|
|---|
| 3890 |
|
|---|
| 3891 | case "$ac_given_srcdir" in
|
|---|
| 3892 | .) srcdir=.
|
|---|
| 3893 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 3894 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 3895 | /* | [A-Za-z]:*)
|
|---|
| 3896 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 3897 | *) # Relative path.
|
|---|
| 3898 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 3899 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 3900 | esac
|
|---|
| 3901 |
|
|---|
| 3902 | case "$ac_given_INSTALL" in
|
|---|
| 3903 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 3904 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 3905 | esac
|
|---|
| 3906 |
|
|---|
| 3907 | echo creating "$ac_file"
|
|---|
| 3908 | rm -f "$ac_file"
|
|---|
| 3909 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 3910 | case "$ac_file" in
|
|---|
| 3911 | *Makefile*) ac_comsub="1i\\
|
|---|
| 3912 | # $configure_input" ;;
|
|---|
| 3913 | *) ac_comsub= ;;
|
|---|
| 3914 | esac
|
|---|
| 3915 |
|
|---|
| 3916 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 3917 | sed -e "$ac_comsub
|
|---|
| 3918 | s%@configure_input@%$configure_input%g
|
|---|
| 3919 | s%@srcdir@%$srcdir%g
|
|---|
| 3920 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 3921 | s%@INSTALL@%$INSTALL%g
|
|---|
| 3922 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 3923 | fi; done
|
|---|
| 3924 | rm -f conftest.s*
|
|---|
| 3925 |
|
|---|
| 3926 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 3927 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 3928 | #
|
|---|
| 3929 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 3930 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 3931 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 3932 | ac_dC='\3'
|
|---|
| 3933 | ac_dD='%g'
|
|---|
| 3934 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 3935 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3936 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 3937 | ac_uC=' '
|
|---|
| 3938 | ac_uD='\4%g'
|
|---|
| 3939 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 3940 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3941 | ac_eB='$%\1#\2define\3'
|
|---|
| 3942 | ac_eC=' '
|
|---|
| 3943 | ac_eD='%g'
|
|---|
| 3944 |
|
|---|
| 3945 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 3946 | EOF
|
|---|
| 3947 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3948 | CONFIG_HEADERS="fficonfig.h"
|
|---|
| 3949 | EOF
|
|---|
| 3950 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3951 | fi
|
|---|
| 3952 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 3953 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3954 | case "$ac_file" in
|
|---|
| 3955 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3956 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3957 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3958 | esac
|
|---|
| 3959 |
|
|---|
| 3960 | echo creating $ac_file
|
|---|
| 3961 |
|
|---|
| 3962 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 3963 | # kso the other way around might work better with drive letters and such.
|
|---|
| 3964 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 3965 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 3966 | cat $ac_file_inputs > conftest.in
|
|---|
| 3967 |
|
|---|
| 3968 | EOF
|
|---|
| 3969 |
|
|---|
| 3970 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 3971 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 3972 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3973 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 3974 | rm -f conftest.vals
|
|---|
| 3975 | cat > conftest.hdr <<\EOF
|
|---|
| 3976 | s/[\\&%]/\\&/g
|
|---|
| 3977 | s%[\\$`]%\\&%g
|
|---|
| 3978 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 3979 | s%ac_d%ac_u%gp
|
|---|
| 3980 | s%ac_u%ac_e%gp
|
|---|
| 3981 | EOF
|
|---|
| 3982 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 3983 | rm -f conftest.hdr
|
|---|
| 3984 |
|
|---|
| 3985 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 3986 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 3987 | # on some systems where configure will not decide to define it.
|
|---|
| 3988 | cat >> conftest.vals <<\EOF
|
|---|
| 3989 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 3990 | EOF
|
|---|
| 3991 |
|
|---|
| 3992 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 3993 | # the size of here documents, and old seds have small limits too.
|
|---|
| 3994 |
|
|---|
| 3995 | rm -f conftest.tail
|
|---|
| 3996 | while :
|
|---|
| 3997 | do
|
|---|
| 3998 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 3999 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 4000 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 4001 | # Write a limited-size here document to conftest.frag.
|
|---|
| 4002 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 4003 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 4004 | echo 'CEOF
|
|---|
| 4005 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 4006 | rm -f conftest.in
|
|---|
| 4007 | mv conftest.out conftest.in
|
|---|
| 4008 | ' >> $CONFIG_STATUS
|
|---|
| 4009 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 4010 | rm -f conftest.vals
|
|---|
| 4011 | mv conftest.tail conftest.vals
|
|---|
| 4012 | done
|
|---|
| 4013 | rm -f conftest.vals
|
|---|
| 4014 |
|
|---|
| 4015 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 4016 | rm -f conftest.frag conftest.h
|
|---|
| 4017 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 4018 | cat conftest.in >> conftest.h
|
|---|
| 4019 | rm -f conftest.in
|
|---|
| 4020 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 4021 | echo "$ac_file is unchanged"
|
|---|
| 4022 | rm -f conftest.h
|
|---|
| 4023 | else
|
|---|
| 4024 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 4025 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 4026 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 4027 | # The file is in a subdirectory.
|
|---|
| 4028 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 4029 | fi
|
|---|
| 4030 | rm -f $ac_file
|
|---|
| 4031 | mv conftest.h $ac_file
|
|---|
| 4032 | fi
|
|---|
| 4033 | fi; done
|
|---|
| 4034 |
|
|---|
| 4035 | EOF
|
|---|
| 4036 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4037 |
|
|---|
| 4038 | srcdir=${srcdir}
|
|---|
| 4039 | host=${host}
|
|---|
| 4040 | target=${target}
|
|---|
| 4041 | with_multisubdir=${with_multisubdir}
|
|---|
| 4042 | ac_configure_args="${multilib_arg} ${ac_configure_args}"
|
|---|
| 4043 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 4044 | libffi_basedir=${libffi_basedir}
|
|---|
| 4045 | CC="${CC}"
|
|---|
| 4046 | DEFS="$DEFS"
|
|---|
| 4047 | test ! -d include && mkdir include
|
|---|
| 4048 | test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
|
|---|
| 4049 | if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
|
|---|
| 4050 | echo fficonfig.h unchanged
|
|---|
| 4051 | else
|
|---|
| 4052 | echo Moving fficonfig.h to include/fficonfig.h
|
|---|
| 4053 | cp fficonfig.h include/fficonfig.h
|
|---|
| 4054 | fi
|
|---|
| 4055 |
|
|---|
| 4056 | EOF
|
|---|
| 4057 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 4058 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 4059 |
|
|---|
| 4060 | if test -n "$CONFIG_FILES"; then
|
|---|
| 4061 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
|---|
| 4062 | ac_file=Makefile . ${libffi_basedir}/../config-ml.in
|
|---|
| 4063 | fi
|
|---|
| 4064 |
|
|---|
| 4065 | exit 0
|
|---|
| 4066 | EOF
|
|---|
| 4067 | chmod +x $CONFIG_STATUS
|
|---|
| 4068 | rm -fr confdefs* $ac_clean_files
|
|---|
| 4069 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 4070 |
|
|---|
| 4071 |
|
|---|
| 4072 | # Make target subdirectories if required.
|
|---|
| 4073 | test -d src || mkdir src
|
|---|
| 4074 | test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}
|
|---|