| [2] | 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 hella library versions (default)"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --with-target-subdir=SUBDIR
|
|---|
| 18 | configuring in a subdirectory"
|
|---|
| 19 | ac_help="$ac_help
|
|---|
| 20 | --with-cross-host=HOST configuring with a cross compiler"
|
|---|
| 21 | ac_help="$ac_help
|
|---|
| 22 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
|
|---|
| 23 | ac_help="$ac_help
|
|---|
| 24 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 25 | ac_help="$ac_help
|
|---|
| 26 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 27 | ac_help="$ac_help
|
|---|
| 28 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 29 | ac_help="$ac_help
|
|---|
| 30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 31 | ac_help="$ac_help
|
|---|
| 32 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 33 | ac_help="$ac_help
|
|---|
| 34 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 35 |
|
|---|
| 36 | # Initialize some variables set by options.
|
|---|
| 37 | # The variables have the same names as the options, with
|
|---|
| 38 | # dashes changed to underlines.
|
|---|
| 39 | build=NONE
|
|---|
| 40 | cache_file=./config.cache
|
|---|
| 41 | exec_prefix=NONE
|
|---|
| 42 | host=NONE
|
|---|
| 43 | no_create=
|
|---|
| 44 | nonopt=NONE
|
|---|
| 45 | no_recursion=
|
|---|
| 46 | prefix=NONE
|
|---|
| 47 | program_prefix=NONE
|
|---|
| 48 | program_suffix=NONE
|
|---|
| 49 | program_transform_name=s,x,x,
|
|---|
| 50 | silent=
|
|---|
| 51 | site=
|
|---|
| 52 | srcdir=
|
|---|
| 53 | target=NONE
|
|---|
| 54 | verbose=
|
|---|
| 55 | x_includes=NONE
|
|---|
| 56 | x_libraries=NONE
|
|---|
| 57 | bindir='${exec_prefix}/bin'
|
|---|
| 58 | sbindir='${exec_prefix}/sbin'
|
|---|
| 59 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 60 | datadir='${prefix}/share'
|
|---|
| 61 | sysconfdir='${prefix}/etc'
|
|---|
| 62 | sharedstatedir='${prefix}/com'
|
|---|
| 63 | localstatedir='${prefix}/var'
|
|---|
| 64 | libdir='${exec_prefix}/lib'
|
|---|
| 65 | includedir='${prefix}/include'
|
|---|
| 66 | oldincludedir='/usr/include'
|
|---|
| 67 | infodir='${prefix}/info'
|
|---|
| 68 | mandir='${prefix}/man'
|
|---|
| 69 |
|
|---|
| 70 | # Initialize some other variables.
|
|---|
| 71 | subdirs=
|
|---|
| 72 | MFLAGS= MAKEFLAGS=
|
|---|
| 73 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 74 | # Maximum number of lines to put in a shell here document.
|
|---|
| 75 | ac_max_here_lines=12
|
|---|
| 76 |
|
|---|
| 77 | ac_prev=
|
|---|
| 78 | for ac_option
|
|---|
| 79 | do
|
|---|
| 80 |
|
|---|
| 81 | # If the previous option needs an argument, assign it.
|
|---|
| 82 | if test -n "$ac_prev"; then
|
|---|
| 83 | eval "$ac_prev=\$ac_option"
|
|---|
| 84 | ac_prev=
|
|---|
| 85 | continue
|
|---|
| 86 | fi
|
|---|
| 87 |
|
|---|
| 88 | case "$ac_option" in
|
|---|
| 89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 90 | *) ac_optarg= ;;
|
|---|
| 91 | esac
|
|---|
| 92 |
|
|---|
| 93 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 94 |
|
|---|
| 95 | case "$ac_option" in
|
|---|
| 96 |
|
|---|
| 97 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 98 | ac_prev=bindir ;;
|
|---|
| 99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 100 | bindir="$ac_optarg" ;;
|
|---|
| 101 |
|
|---|
| 102 | -build | --build | --buil | --bui | --bu)
|
|---|
| 103 | ac_prev=build ;;
|
|---|
| 104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 105 | build="$ac_optarg" ;;
|
|---|
| 106 |
|
|---|
| 107 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 109 | ac_prev=cache_file ;;
|
|---|
| 110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 112 | cache_file="$ac_optarg" ;;
|
|---|
| 113 |
|
|---|
| 114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 115 | ac_prev=datadir ;;
|
|---|
| 116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 117 | | --da=*)
|
|---|
| 118 | datadir="$ac_optarg" ;;
|
|---|
| 119 |
|
|---|
| 120 | -disable-* | --disable-*)
|
|---|
| 121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 122 | # Reject names that are not valid shell variable names.
|
|---|
| 123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 125 | fi
|
|---|
| 126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 127 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 128 |
|
|---|
| 129 | -enable-* | --enable-*)
|
|---|
| 130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 131 | # Reject names that are not valid shell variable names.
|
|---|
| 132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 134 | fi
|
|---|
| 135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 136 | case "$ac_option" in
|
|---|
| 137 | *=*) ;;
|
|---|
| 138 | *) ac_optarg=yes ;;
|
|---|
| 139 | esac
|
|---|
| 140 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 141 |
|
|---|
| 142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 144 | | --exec | --exe | --ex)
|
|---|
| 145 | ac_prev=exec_prefix ;;
|
|---|
| 146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 148 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 149 | exec_prefix="$ac_optarg" ;;
|
|---|
| 150 |
|
|---|
| 151 | -gas | --gas | --ga | --g)
|
|---|
| 152 | # Obsolete; use --with-gas.
|
|---|
| 153 | with_gas=yes ;;
|
|---|
| 154 |
|
|---|
| 155 | -help | --help | --hel | --he)
|
|---|
| 156 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 157 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 158 | cat << EOF
|
|---|
| 159 | Usage: configure [options] [host]
|
|---|
| 160 | Options: [defaults in brackets after descriptions]
|
|---|
| 161 | Configuration:
|
|---|
| 162 | --cache-file=FILE cache test results in FILE
|
|---|
| 163 | --help print this message
|
|---|
| 164 | --no-create do not create output files
|
|---|
| 165 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 166 | --version print the version of autoconf that created configure
|
|---|
| 167 | Directory and file names:
|
|---|
| 168 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 169 | [$ac_default_prefix]
|
|---|
| 170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 171 | [same as prefix]
|
|---|
| 172 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 175 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 176 | [PREFIX/share]
|
|---|
| 177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 179 | [PREFIX/com]
|
|---|
| 180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 182 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 184 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 185 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 186 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 187 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 188 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 189 | --program-transform-name=PROGRAM
|
|---|
| 190 | run sed PROGRAM on installed program names
|
|---|
| 191 | EOF
|
|---|
| 192 | cat << EOF
|
|---|
| 193 | Host type:
|
|---|
| 194 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 195 | --host=HOST configure for HOST [guessed]
|
|---|
| 196 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 197 | Features and packages:
|
|---|
| 198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 202 | --x-includes=DIR X include files are in DIR
|
|---|
| 203 | --x-libraries=DIR X library files are in DIR
|
|---|
| 204 | EOF
|
|---|
| 205 | if test -n "$ac_help"; then
|
|---|
| 206 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 207 | fi
|
|---|
| 208 | exit 0 ;;
|
|---|
| 209 |
|
|---|
| 210 | -host | --host | --hos | --ho)
|
|---|
| 211 | ac_prev=host ;;
|
|---|
| 212 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 213 | host="$ac_optarg" ;;
|
|---|
| 214 |
|
|---|
| 215 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 216 | | --includ | --inclu | --incl | --inc)
|
|---|
| 217 | ac_prev=includedir ;;
|
|---|
| 218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 219 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 220 | includedir="$ac_optarg" ;;
|
|---|
| 221 |
|
|---|
| 222 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 223 | ac_prev=infodir ;;
|
|---|
| 224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 225 | infodir="$ac_optarg" ;;
|
|---|
| 226 |
|
|---|
| 227 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 228 | ac_prev=libdir ;;
|
|---|
| 229 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 230 | libdir="$ac_optarg" ;;
|
|---|
| 231 |
|
|---|
| 232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 233 | | --libexe | --libex | --libe)
|
|---|
| 234 | ac_prev=libexecdir ;;
|
|---|
| 235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 236 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 237 | libexecdir="$ac_optarg" ;;
|
|---|
| 238 |
|
|---|
| 239 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 240 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 241 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 242 | ac_prev=localstatedir ;;
|
|---|
| 243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 246 | localstatedir="$ac_optarg" ;;
|
|---|
| 247 |
|
|---|
| 248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 249 | ac_prev=mandir ;;
|
|---|
| 250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 251 | mandir="$ac_optarg" ;;
|
|---|
| 252 |
|
|---|
| 253 | -nfp | --nfp | --nf)
|
|---|
| 254 | # Obsolete; use --without-fp.
|
|---|
| 255 | with_fp=no ;;
|
|---|
| 256 |
|
|---|
| 257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 258 | | --no-cr | --no-c)
|
|---|
| 259 | no_create=yes ;;
|
|---|
| 260 |
|
|---|
| 261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 263 | no_recursion=yes ;;
|
|---|
| 264 |
|
|---|
| 265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 267 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 268 | ac_prev=oldincludedir ;;
|
|---|
| 269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 272 | oldincludedir="$ac_optarg" ;;
|
|---|
| 273 |
|
|---|
| 274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 275 | ac_prev=prefix ;;
|
|---|
| 276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 277 | prefix="$ac_optarg" ;;
|
|---|
| 278 |
|
|---|
| 279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 280 | | --program-pre | --program-pr | --program-p)
|
|---|
| 281 | ac_prev=program_prefix ;;
|
|---|
| 282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 284 | program_prefix="$ac_optarg" ;;
|
|---|
| 285 |
|
|---|
| 286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 287 | | --program-suf | --program-su | --program-s)
|
|---|
| 288 | ac_prev=program_suffix ;;
|
|---|
| 289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 291 | program_suffix="$ac_optarg" ;;
|
|---|
| 292 |
|
|---|
| 293 | -program-transform-name | --program-transform-name \
|
|---|
| 294 | | --program-transform-nam | --program-transform-na \
|
|---|
| 295 | | --program-transform-n | --program-transform- \
|
|---|
| 296 | | --program-transform | --program-transfor \
|
|---|
| 297 | | --program-transfo | --program-transf \
|
|---|
| 298 | | --program-trans | --program-tran \
|
|---|
| 299 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 300 | ac_prev=program_transform_name ;;
|
|---|
| 301 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 302 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 303 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 304 | | --program-transform=* | --program-transfor=* \
|
|---|
| 305 | | --program-transfo=* | --program-transf=* \
|
|---|
| 306 | | --program-trans=* | --program-tran=* \
|
|---|
| 307 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 308 | program_transform_name="$ac_optarg" ;;
|
|---|
| 309 |
|
|---|
| 310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 311 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 312 | silent=yes ;;
|
|---|
| 313 |
|
|---|
| 314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 315 | ac_prev=sbindir ;;
|
|---|
| 316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 317 | | --sbi=* | --sb=*)
|
|---|
| 318 | sbindir="$ac_optarg" ;;
|
|---|
| 319 |
|
|---|
| 320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 322 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 323 | | --sha | --sh)
|
|---|
| 324 | ac_prev=sharedstatedir ;;
|
|---|
| 325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 328 | | --sha=* | --sh=*)
|
|---|
| 329 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 330 |
|
|---|
| 331 | -site | --site | --sit)
|
|---|
| 332 | ac_prev=site ;;
|
|---|
| 333 | -site=* | --site=* | --sit=*)
|
|---|
| 334 | site="$ac_optarg" ;;
|
|---|
| 335 |
|
|---|
| 336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 337 | ac_prev=srcdir ;;
|
|---|
| 338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 339 | srcdir="$ac_optarg" ;;
|
|---|
| 340 |
|
|---|
| 341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 342 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 343 | ac_prev=sysconfdir ;;
|
|---|
| 344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 346 | sysconfdir="$ac_optarg" ;;
|
|---|
| 347 |
|
|---|
| 348 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 349 | ac_prev=target ;;
|
|---|
| 350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 351 | target="$ac_optarg" ;;
|
|---|
| 352 |
|
|---|
| 353 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 354 | verbose=yes ;;
|
|---|
| 355 |
|
|---|
| 356 | -version | --version | --versio | --versi | --vers)
|
|---|
| 357 | echo "configure generated by autoconf version 2.13"
|
|---|
| 358 | exit 0 ;;
|
|---|
| 359 |
|
|---|
| 360 | -with-* | --with-*)
|
|---|
| 361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 362 | # Reject names that are not valid shell variable names.
|
|---|
| 363 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 365 | fi
|
|---|
| 366 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 367 | case "$ac_option" in
|
|---|
| 368 | *=*) ;;
|
|---|
| 369 | *) ac_optarg=yes ;;
|
|---|
| 370 | esac
|
|---|
| 371 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 372 |
|
|---|
| 373 | -without-* | --without-*)
|
|---|
| 374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 375 | # Reject names that are not valid shell variable names.
|
|---|
| 376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 378 | fi
|
|---|
| 379 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 380 | eval "with_${ac_package}=no" ;;
|
|---|
| 381 |
|
|---|
| 382 | --x)
|
|---|
| 383 | # Obsolete; use --with-x.
|
|---|
| 384 | with_x=yes ;;
|
|---|
| 385 |
|
|---|
| 386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 387 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 388 | ac_prev=x_includes ;;
|
|---|
| 389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 391 | x_includes="$ac_optarg" ;;
|
|---|
| 392 |
|
|---|
| 393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 395 | ac_prev=x_libraries ;;
|
|---|
| 396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 398 | x_libraries="$ac_optarg" ;;
|
|---|
| 399 |
|
|---|
| 400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 401 | ;;
|
|---|
| 402 |
|
|---|
| 403 | *)
|
|---|
| 404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 405 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 406 | fi
|
|---|
| 407 | if test "x$nonopt" != xNONE; then
|
|---|
| 408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 409 | fi
|
|---|
| 410 | nonopt="$ac_option"
|
|---|
| 411 | ;;
|
|---|
| 412 |
|
|---|
| 413 | esac
|
|---|
| 414 | done
|
|---|
| 415 |
|
|---|
| 416 | if test -n "$ac_prev"; then
|
|---|
| 417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 418 | fi
|
|---|
| 419 |
|
|---|
| 420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 421 |
|
|---|
| 422 | # File descriptor usage:
|
|---|
| 423 | # 0 standard input
|
|---|
| 424 | # 1 file creation
|
|---|
| 425 | # 2 errors and warnings
|
|---|
| 426 | # 3 some systems may open it to /dev/tty
|
|---|
| 427 | # 4 used on the Kubota Titan
|
|---|
| 428 | # 6 checking for... messages and results
|
|---|
| 429 | # 5 compiler messages saved in config.log
|
|---|
| 430 | if test "$silent" = yes; then
|
|---|
| 431 | exec 6>/dev/null
|
|---|
| 432 | else
|
|---|
| 433 | exec 6>&1
|
|---|
| 434 | fi
|
|---|
| 435 | exec 5>./config.log
|
|---|
| 436 |
|
|---|
| 437 | echo "\
|
|---|
| 438 | This file contains any messages produced by compilers while
|
|---|
| 439 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 440 | " 1>&5
|
|---|
| 441 |
|
|---|
| 442 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 443 | # Also quote any args containing shell metacharacters.
|
|---|
| 444 | ac_configure_args=
|
|---|
| 445 | for ac_arg
|
|---|
| 446 | do
|
|---|
| 447 | case "$ac_arg" in
|
|---|
| 448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 449 | | --no-cr | --no-c) ;;
|
|---|
| 450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 455 | esac
|
|---|
| 456 | done
|
|---|
| 457 |
|
|---|
| 458 | # NLS nuisances.
|
|---|
| 459 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 460 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 462 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 467 |
|
|---|
| 468 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 469 | rm -rf conftest* confdefs.h
|
|---|
| 470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 471 | echo > confdefs.h
|
|---|
| 472 |
|
|---|
| 473 | # A filename unique to this package, relative to the directory that
|
|---|
| 474 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 475 | ac_unique_file=libF77/Version.c
|
|---|
| 476 |
|
|---|
| 477 | # Find the source files, if location was not specified.
|
|---|
| 478 | if test -z "$srcdir"; then
|
|---|
| 479 | ac_srcdir_defaulted=yes
|
|---|
| 480 | # Try the directory containing this script, then its parent.
|
|---|
| 481 | ac_prog=$0
|
|---|
| 482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 484 | srcdir=$ac_confdir
|
|---|
| 485 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 486 | srcdir=..
|
|---|
| 487 | fi
|
|---|
| 488 | else
|
|---|
| 489 | ac_srcdir_defaulted=no
|
|---|
| 490 | fi
|
|---|
| 491 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 492 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 494 | else
|
|---|
| 495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 496 | fi
|
|---|
| 497 | fi
|
|---|
| 498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 499 |
|
|---|
| 500 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 501 | if test -z "$CONFIG_SITE"; then
|
|---|
| 502 | if test "x$prefix" != xNONE; then
|
|---|
| 503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 504 | else
|
|---|
| 505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 506 | fi
|
|---|
| 507 | fi
|
|---|
| 508 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 509 | if test -r "$ac_site_file"; then
|
|---|
| 510 | echo "loading site script $ac_site_file"
|
|---|
| 511 | . "$ac_site_file"
|
|---|
| 512 | fi
|
|---|
| 513 | done
|
|---|
| 514 |
|
|---|
| 515 | if test -r "$cache_file"; then
|
|---|
| 516 | echo "loading cache $cache_file"
|
|---|
| 517 | . $cache_file
|
|---|
| 518 | else
|
|---|
| 519 | echo "creating cache $cache_file"
|
|---|
| 520 | > $cache_file
|
|---|
| 521 | fi
|
|---|
| 522 |
|
|---|
| 523 | ac_ext=c
|
|---|
| 524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 525 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 528 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 529 |
|
|---|
| 530 | ac_exeext=
|
|---|
| 531 | ac_objext=o
|
|---|
| 532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 533 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
|---|
| 534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 535 | ac_n= ac_c='
|
|---|
| 536 | ' ac_t=' '
|
|---|
| 537 | else
|
|---|
| 538 | ac_n=-n ac_c= ac_t=
|
|---|
| 539 | fi
|
|---|
| 540 | else
|
|---|
| 541 | ac_n= ac_c='\c' ac_t=
|
|---|
| 542 | fi
|
|---|
| 543 |
|
|---|
| [80] | 544 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 545 | echo "configure:546: checking for path separator" >&5
|
|---|
| 546 | # Filter path to get backslahes into forwardslashes
|
|---|
| 547 | case "`uname -s 2> /dev/null`" in
|
|---|
| 548 | OS/2)
|
|---|
| 549 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 550 | PATH_IFS=';'
|
|---|
| 551 | ;;
|
|---|
| 552 | *)
|
|---|
| 553 | PATH_IFS=':'
|
|---|
| 554 | ;;
|
|---|
| 555 | esac
|
|---|
| 556 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| [2] | 557 |
|
|---|
| [80] | 558 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 559 | echo "configure:560: checking for Cygwin environment" >&5
|
|---|
| 560 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 561 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 562 | else
|
|---|
| 563 | cat > conftest.$ac_ext <<EOF
|
|---|
| 564 | #line 565 "configure"
|
|---|
| 565 | #include "confdefs.h"
|
|---|
| [2] | 566 |
|
|---|
| [80] | 567 | int main() {
|
|---|
| 568 |
|
|---|
| 569 | #ifndef __CYGWIN__
|
|---|
| 570 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 571 | #endif
|
|---|
| 572 | return __CYGWIN__;
|
|---|
| 573 | ; return 0; }
|
|---|
| 574 | EOF
|
|---|
| 575 | if { (eval echo configure:576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 576 | rm -rf conftest*
|
|---|
| 577 | ac_cv_cygwin=yes
|
|---|
| 578 | else
|
|---|
| 579 | echo "configure: failed program was:" >&5
|
|---|
| 580 | cat conftest.$ac_ext >&5
|
|---|
| 581 | rm -rf conftest*
|
|---|
| 582 | ac_cv_cygwin=no
|
|---|
| 583 | fi
|
|---|
| 584 | rm -f conftest*
|
|---|
| 585 | rm -f conftest*
|
|---|
| 586 | fi
|
|---|
| 587 |
|
|---|
| 588 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 589 | CYGWIN=
|
|---|
| 590 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 591 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 592 | echo "configure:593: checking for mingw32 environment" >&5
|
|---|
| 593 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 594 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 595 | else
|
|---|
| 596 | cat > conftest.$ac_ext <<EOF
|
|---|
| 597 | #line 598 "configure"
|
|---|
| 598 | #include "confdefs.h"
|
|---|
| 599 |
|
|---|
| 600 | int main() {
|
|---|
| 601 | return __MINGW32__;
|
|---|
| 602 | ; return 0; }
|
|---|
| 603 | EOF
|
|---|
| 604 | if { (eval echo configure:605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 605 | rm -rf conftest*
|
|---|
| 606 | ac_cv_mingw32=yes
|
|---|
| 607 | else
|
|---|
| 608 | echo "configure: failed program was:" >&5
|
|---|
| 609 | cat conftest.$ac_ext >&5
|
|---|
| 610 | rm -rf conftest*
|
|---|
| 611 | ac_cv_mingw32=no
|
|---|
| 612 | fi
|
|---|
| 613 | rm -f conftest*
|
|---|
| 614 | rm -f conftest*
|
|---|
| 615 | fi
|
|---|
| 616 |
|
|---|
| 617 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 618 | MINGW32=
|
|---|
| 619 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 620 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 621 | echo "configure:622: checking for EMX/OS2 environment" >&5
|
|---|
| 622 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 623 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 624 | else
|
|---|
| 625 | : ${CC=gcc.exe}
|
|---|
| 626 | cat > conftest.$ac_ext <<EOF
|
|---|
| 627 | #line 628 "configure"
|
|---|
| 628 | #include "confdefs.h"
|
|---|
| 629 |
|
|---|
| 630 | int main() {
|
|---|
| 631 | return __EMX__;
|
|---|
| 632 | ; return 0; }
|
|---|
| 633 | EOF
|
|---|
| 634 | if { (eval echo configure:635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 635 | rm -rf conftest*
|
|---|
| 636 | ac_cv_emxos2=yes
|
|---|
| 637 | else
|
|---|
| 638 | echo "configure: failed program was:" >&5
|
|---|
| 639 | cat conftest.$ac_ext >&5
|
|---|
| 640 | rm -rf conftest*
|
|---|
| 641 | ac_cv_emxos2=no
|
|---|
| 642 | fi
|
|---|
| 643 | rm -f conftest*
|
|---|
| 644 | rm -f conftest*
|
|---|
| 645 | fi
|
|---|
| 646 |
|
|---|
| 647 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 648 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 649 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 650 | else
|
|---|
| 651 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 652 | ac_cv_libpre=
|
|---|
| 653 | else
|
|---|
| 654 | ac_cv_libpre=lib
|
|---|
| 655 | fi
|
|---|
| 656 |
|
|---|
| 657 | fi
|
|---|
| 658 |
|
|---|
| 659 | EMXOS2=
|
|---|
| 660 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 661 |
|
|---|
| 662 |
|
|---|
| 663 |
|
|---|
| 664 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 665 | echo "configure:666: checking for executable suffix" >&5
|
|---|
| 666 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 667 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 668 | else
|
|---|
| 669 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 670 | ac_cv_exeext=.exe
|
|---|
| 671 | else
|
|---|
| 672 | rm -f conftest*
|
|---|
| 673 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 674 | ac_cv_exeext=
|
|---|
| 675 | if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 676 | for file in conftest.*; do
|
|---|
| 677 | case $file in
|
|---|
| 678 | *.c | *.o | *.obj) ;;
|
|---|
| 679 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 680 | esac
|
|---|
| 681 | done
|
|---|
| 682 | else
|
|---|
| 683 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 684 | fi
|
|---|
| 685 | rm -f conftest*
|
|---|
| 686 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 687 | fi
|
|---|
| 688 | fi
|
|---|
| 689 |
|
|---|
| 690 | EXEEXT=""
|
|---|
| 691 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 692 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 693 | ac_exeext=$EXEEXT
|
|---|
| 694 |
|
|---|
| 695 |
|
|---|
| 696 |
|
|---|
| [2] | 697 | # This works around the fact that libtool configuration may change LD
|
|---|
| 698 | # for this particular configuration, but some shells, instead of
|
|---|
| 699 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 700 | # exported.
|
|---|
| 701 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 705 | if test "${enable_multilib+set}" = set; then
|
|---|
| 706 | enableval="$enable_multilib"
|
|---|
| 707 | case "${enableval}" in
|
|---|
| 708 | yes) multilib=yes ;;
|
|---|
| 709 | no) multilib=no ;;
|
|---|
| 710 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 711 | esac
|
|---|
| 712 | else
|
|---|
| 713 | multilib=yes
|
|---|
| 714 | fi
|
|---|
| 715 |
|
|---|
| 716 | # When building with srcdir == objdir, links to the source files will
|
|---|
| 717 | # be created in directories within the target_subdir. We have to
|
|---|
| 718 | # adjust toplevel_srcdir accordingly, so that configure finds
|
|---|
| 719 | # install-sh and other auxiliary files that live in the top-level
|
|---|
| 720 | # source directory.
|
|---|
| 721 | if test "${srcdir}" = "."; then
|
|---|
| 722 | if test -z "${with_target_subdir}"; then
|
|---|
| 723 | toprel=".."
|
|---|
| 724 | else
|
|---|
| 725 | if test "${with_target_subdir}" != "."; then
|
|---|
| 726 | toprel="${with_multisrctop}../.."
|
|---|
| 727 | else
|
|---|
| 728 | toprel="${with_multisrctop}.."
|
|---|
| 729 | fi
|
|---|
| 730 | fi
|
|---|
| 731 | else
|
|---|
| 732 | toprel=".."
|
|---|
| 733 | fi
|
|---|
| 734 | ac_aux_dir=
|
|---|
| 735 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; 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}/$toprel $srcdir/${srcdir}/$toprel" 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 | toplevel_srcdir=\${top_srcdir}/$toprel
|
|---|
| 754 |
|
|---|
| 755 |
|
|---|
| 756 |
|
|---|
| 757 |
|
|---|
| 758 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 759 | # The inputs are:
|
|---|
| 760 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 761 | #
|
|---|
| 762 | # The rules are:
|
|---|
| 763 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 764 | # same time.
|
|---|
| 765 | # 2. Host defaults to nonopt.
|
|---|
| 766 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 767 | # as determined by config.guess.
|
|---|
| 768 | # 4. Target and build default to nonopt.
|
|---|
| 769 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 770 |
|
|---|
| 771 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 772 | # will get canonicalized.
|
|---|
| 773 | case $host---$target---$nonopt in
|
|---|
| 774 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 775 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 776 | esac
|
|---|
| 777 |
|
|---|
| 778 |
|
|---|
| 779 | # Make sure we can run config.sub.
|
|---|
| 780 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 781 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 782 | fi
|
|---|
| 783 |
|
|---|
| 784 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| [80] | 785 | echo "configure:786: checking host system type" >&5
|
|---|
| [2] | 786 |
|
|---|
| 787 | host_alias=$host
|
|---|
| 788 | case "$host_alias" in
|
|---|
| 789 | NONE)
|
|---|
| 790 | case $nonopt in
|
|---|
| 791 | NONE)
|
|---|
| 792 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 793 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 794 | fi ;;
|
|---|
| 795 | *) host_alias=$nonopt ;;
|
|---|
| 796 | esac ;;
|
|---|
| 797 | esac
|
|---|
| 798 |
|
|---|
| 799 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 800 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 801 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 802 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 803 | echo "$ac_t""$host" 1>&6
|
|---|
| 804 |
|
|---|
| 805 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| [80] | 806 | echo "configure:807: checking target system type" >&5
|
|---|
| [2] | 807 |
|
|---|
| 808 | target_alias=$target
|
|---|
| 809 | case "$target_alias" in
|
|---|
| 810 | NONE)
|
|---|
| 811 | case $nonopt in
|
|---|
| 812 | NONE) target_alias=$host_alias ;;
|
|---|
| 813 | *) target_alias=$nonopt ;;
|
|---|
| 814 | esac ;;
|
|---|
| 815 | esac
|
|---|
| 816 |
|
|---|
| 817 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 818 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 819 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 820 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 821 | echo "$ac_t""$target" 1>&6
|
|---|
| 822 |
|
|---|
| 823 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| [80] | 824 | echo "configure:825: checking build system type" >&5
|
|---|
| [2] | 825 |
|
|---|
| 826 | build_alias=$build
|
|---|
| 827 | case "$build_alias" in
|
|---|
| 828 | NONE)
|
|---|
| 829 | case $nonopt in
|
|---|
| 830 | NONE) build_alias=$host_alias ;;
|
|---|
| 831 | *) build_alias=$nonopt ;;
|
|---|
| 832 | esac ;;
|
|---|
| 833 | esac
|
|---|
| 834 |
|
|---|
| 835 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 836 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 837 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 838 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 839 | echo "$ac_t""$build" 1>&6
|
|---|
| 840 |
|
|---|
| 841 | test "$host_alias" != "$target_alias" &&
|
|---|
| 842 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 843 | NONENONEs,x,x, &&
|
|---|
| 844 | program_prefix=${target_alias}-
|
|---|
| 845 |
|
|---|
| 846 | target_alias=${target_alias-$target}
|
|---|
| 847 |
|
|---|
| 848 |
|
|---|
| 849 | if test $host != $build; then
|
|---|
| 850 | ac_tool_prefix=${host_alias}-
|
|---|
| 851 | else
|
|---|
| 852 | ac_tool_prefix=
|
|---|
| 853 | fi
|
|---|
| 854 |
|
|---|
| 855 |
|
|---|
| 856 | # Export build and source directories.
|
|---|
| 857 | # These need to be absolute paths, yet at the same time need to
|
|---|
| 858 | # canonicalize only relative paths, because then amd will not unmount
|
|---|
| 859 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
|
|---|
| 860 | glibcpp_builddir=`pwd`
|
|---|
| 861 | case $srcdir in
|
|---|
| 862 | \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
|
|---|
| 863 | *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
|
|---|
| 864 | esac
|
|---|
| 865 |
|
|---|
| 866 |
|
|---|
| 867 |
|
|---|
| 868 |
|
|---|
| 869 |
|
|---|
| 870 | # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
|
|---|
| 871 | # be 'cp -p' if linking isn't available.
|
|---|
| 872 | #ac_cv_prog_LN_S='cp -p'
|
|---|
| 873 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| [80] | 874 | echo "configure:875: checking whether ln -s works" >&5
|
|---|
| [2] | 875 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 876 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 877 | else
|
|---|
| 878 | rm -f conftestdata
|
|---|
| 879 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 880 | then
|
|---|
| 881 | rm -f conftestdata
|
|---|
| 882 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 883 | else
|
|---|
| [80] | 884 | echo A > conftestdata;
|
|---|
| 885 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 886 | ac_cv_prog_LN_S=ln
|
|---|
| 887 | else
|
|---|
| 888 | ac_cv_prog_LN_S=cp
|
|---|
| 889 | fi
|
|---|
| [2] | 890 | fi
|
|---|
| [80] | 891 | rm -f conftestdata*
|
|---|
| [2] | 892 | fi
|
|---|
| 893 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 894 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 895 | echo "$ac_t""yes" 1>&6
|
|---|
| 896 | else
|
|---|
| 897 | echo "$ac_t""no" 1>&6
|
|---|
| 898 | fi
|
|---|
| 899 |
|
|---|
| 900 |
|
|---|
| 901 | # We use these options to decide which functions to include.
|
|---|
| 902 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
|---|
| 903 | if test "${with_target_subdir+set}" = set; then
|
|---|
| 904 | withval="$with_target_subdir"
|
|---|
| |
|---|