configure 96.9 KB
Newer Older
1
#! /bin/sh
Ryan Jackson's avatar
Ryan Jackson committed
2

3
# Guess values for system-dependent variables and create Makefiles.
Ryan Jackson's avatar
Ryan Jackson committed
4 5
# Generated automatically using autoconf version 2.13 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 7 8 9
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

Ryan Jackson's avatar
Ryan Jackson committed
10 11
# Defaults:
ac_help=
12
ac_default_prefix=/usr/local
Ryan Jackson's avatar
Ryan Jackson committed
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/testbed
Ryan Jackson's avatar
Ryan Jackson committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
ac_help="$ac_help
  --with-TBDEFS=name	Specify definitions file (defs-default default)"
ac_help="$ac_help
  --with-LEDA		Specify LEDA path (/usr/testbed default)"
ac_help="$ac_help
  --with-assignbinary	Specify assign binary (overrides LEDA, default on)"
ac_help="$ac_help
  --with-ssh-args	Specify ssh arguments when running from testbed scripts "
ac_help="$ac_help
  --with-rcdir		Specify path to install rc.d scripts (/usr/local/etc/rc.d default)"
ac_help="$ac_help
  --with-apache-config	Specify path to install apache config files (/usr/local/etc/apache default)"
ac_help="$ac_help
  --with-brainstem=<DIR> Specify the path to the brainstem installation."
ac_help="$ac_help
  --enable-debug        Build with debug flags (-g -DDEBUG)
  --disable-debug       Build with optimization flags (-O2 -DNDEBUG -UDEBUG)"
ac_help="$ac_help
  --disable-events      Disable events (requires Elvin libraries)"
ac_help="$ac_help
  --enable-windows      Enable Windows XP support (default)"
ac_help="$ac_help
  --enable-mezzanine    Enable mezzanine support"
ac_help="$ac_help
  --enable-testmode     Enable test mode
  --disable-testmode    Disable test mode"
41 42 43 44

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
Ryan Jackson's avatar
Ryan Jackson committed
45 46
build=NONE
cache_file=./config.cache
47
exec_prefix=NONE
Ryan Jackson's avatar
Ryan Jackson committed
48
host=NONE
49
no_create=
Ryan Jackson's avatar
Ryan Jackson committed
50
nonopt=NONE
51 52 53 54 55 56 57
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
Kirk Webb's avatar
 
Kirk Webb committed
58
sitefile=
59
srcdir=
Ryan Jackson's avatar
Ryan Jackson committed
60
target=NONE
61 62 63 64 65 66
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
Ryan Jackson's avatar
Ryan Jackson committed
67
datadir='${prefix}/share'
68 69 70
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
Ryan Jackson's avatar
Ryan Jackson committed
71
libdir='${exec_prefix}/lib'
72 73
includedir='${prefix}/include'
oldincludedir='/usr/include'
Ryan Jackson's avatar
Ryan Jackson committed
74 75 76 77 78 79 80 81 82
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
Kirk Webb's avatar
 
Kirk Webb committed
83

84 85 86
ac_prev=
for ac_option
do
Ryan Jackson's avatar
Ryan Jackson committed
87

88 89
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
Ryan Jackson's avatar
Ryan Jackson committed
90
    eval "$ac_prev=\$ac_option"
91 92 93 94
    ac_prev=
    continue
  fi

Ryan Jackson's avatar
Ryan Jackson committed
95 96 97
  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
Kirk Webb's avatar
 
Kirk Webb committed
98
  esac
99 100 101

  # Accept the important Cygnus configure options, so we can diagnose typos.

Ryan Jackson's avatar
Ryan Jackson committed
102
  case "$ac_option" in
103 104 105 106

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Ryan Jackson's avatar
Ryan Jackson committed
107
    bindir="$ac_optarg" ;;
108 109

  -build | --build | --buil | --bui | --bu)
Ryan Jackson's avatar
Ryan Jackson committed
110
    ac_prev=build ;;
111
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Ryan Jackson's avatar
Ryan Jackson committed
112
    build="$ac_optarg" ;;
113 114 115 116 117 118

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Ryan Jackson's avatar
Ryan Jackson committed
119
    cache_file="$ac_optarg" ;;
120

Ryan Jackson's avatar
Ryan Jackson committed
121
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122
    ac_prev=datadir ;;
Ryan Jackson's avatar
Ryan Jackson committed
123 124 125
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;
126 127

  -disable-* | --disable-*)
Ryan Jackson's avatar
Ryan Jackson committed
128
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129
    # Reject names that are not valid shell variable names.
Ryan Jackson's avatar
Ryan Jackson committed
130 131 132 133 134
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;
135 136

  -enable-* | --enable-*)
Ryan Jackson's avatar
Ryan Jackson committed
137
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138
    # Reject names that are not valid shell variable names.
Ryan Jackson's avatar
Ryan Jackson committed
139 140 141 142 143 144 145
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
146
    esac
Ryan Jackson's avatar
Ryan Jackson committed
147
    eval "enable_${ac_feature}='$ac_optarg'" ;;
148 149 150 151 152 153 154 155

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
Ryan Jackson's avatar
Ryan Jackson committed
156
    exec_prefix="$ac_optarg" ;;
157 158 159 160 161

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

Ryan Jackson's avatar
Ryan Jackson committed
162 163 164 165 166 167 168 169 170 171 172
  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
Kirk Webb's avatar
 
Kirk Webb committed
173
  --site-file=FILE        use FILE as the site file
Ryan Jackson's avatar
Ryan Jackson committed
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;
217 218

  -host | --host | --hos | --ho)
Ryan Jackson's avatar
Ryan Jackson committed
219
    ac_prev=host ;;
220
  -host=* | --host=* | --hos=* | --ho=*)
Ryan Jackson's avatar
Ryan Jackson committed
221
    host="$ac_optarg" ;;
222 223 224 225 226 227

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
Ryan Jackson's avatar
Ryan Jackson committed
228
    includedir="$ac_optarg" ;;
229 230 231 232

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Ryan Jackson's avatar
Ryan Jackson committed
233
    infodir="$ac_optarg" ;;
234 235 236 237

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
Ryan Jackson's avatar
Ryan Jackson committed
238
    libdir="$ac_optarg" ;;
239 240 241 242 243 244

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
Ryan Jackson's avatar
Ryan Jackson committed
245
    libexecdir="$ac_optarg" ;;
246 247

  -localstatedir | --localstatedir | --localstatedi | --localstated \
Ryan Jackson's avatar
Ryan Jackson committed
248 249
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
250 251
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Ryan Jackson's avatar
Ryan Jackson committed
252 253 254
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;
255 256 257 258

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Ryan Jackson's avatar
Ryan Jackson committed
259
    mandir="$ac_optarg" ;;
260 261 262 263 264 265

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Ryan Jackson's avatar
Ryan Jackson committed
266
  | --no-cr | --no-c)
267 268 269 270 271 272 273 274 275 276 277 278 279
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Ryan Jackson's avatar
Ryan Jackson committed
280
    oldincludedir="$ac_optarg" ;;
281 282 283 284

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Ryan Jackson's avatar
Ryan Jackson committed
285
    prefix="$ac_optarg" ;;
286 287 288 289 290 291

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Ryan Jackson's avatar
Ryan Jackson committed
292
    program_prefix="$ac_optarg" ;;
293 294 295 296 297 298

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Ryan Jackson's avatar
Ryan Jackson committed
299
    program_suffix="$ac_optarg" ;;
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
Ryan Jackson's avatar
Ryan Jackson committed
316
    program_transform_name="$ac_optarg" ;;
317 318 319 320 321 322 323 324 325

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
Ryan Jackson's avatar
Ryan Jackson committed
326
    sbindir="$ac_optarg" ;;
327 328 329 330 331 332 333 334 335 336

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
Ryan Jackson's avatar
Ryan Jackson committed
337
    sharedstatedir="$ac_optarg" ;;
338 339 340 341

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
Ryan Jackson's avatar
Ryan Jackson committed
342
    site="$ac_optarg" ;;
343

Kirk Webb's avatar
 
Kirk Webb committed
344 345 346 347
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
    ac_prev=sitefile ;;
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
    sitefile="$ac_optarg" ;;
348

349 350 351
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Ryan Jackson's avatar
Ryan Jackson committed
352
    srcdir="$ac_optarg" ;;
353 354 355 356 357 358

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Ryan Jackson's avatar
Ryan Jackson committed
359
    sysconfdir="$ac_optarg" ;;
360 361

  -target | --target | --targe | --targ | --tar | --ta | --t)
Ryan Jackson's avatar
Ryan Jackson committed
362
    ac_prev=target ;;
363
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Ryan Jackson's avatar
Ryan Jackson committed
364
    target="$ac_optarg" ;;
365 366 367 368

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

Ryan Jackson's avatar
Ryan Jackson committed
369 370 371
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
372 373

  -with-* | --with-*)
Ryan Jackson's avatar
Ryan Jackson committed
374
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375
    # Reject names that are not valid shell variable names.
Ryan Jackson's avatar
Ryan Jackson committed
376 377 378 379 380 381 382
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
383
    esac
Ryan Jackson's avatar
Ryan Jackson committed
384
    eval "with_${ac_package}='$ac_optarg'" ;;
385 386

  -without-* | --without-*)
Ryan Jackson's avatar
Ryan Jackson committed
387
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388
    # Reject names that are not valid shell variable names.
Ryan Jackson's avatar
Ryan Jackson committed
389 390 391 392 393
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;
394 395 396 397 398 399 400 401 402 403

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Ryan Jackson's avatar
Ryan Jackson committed
404
    x_includes="$ac_optarg" ;;
405 406 407 408 409 410

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Ryan Jackson's avatar
Ryan Jackson committed
411
    x_libraries="$ac_optarg" ;;
412

Ryan Jackson's avatar
Ryan Jackson committed
413
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 415 416
    ;;

  *)
Ryan Jackson's avatar
Ryan Jackson committed
417 418 419 420 421 422 423
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
424 425 426 427 428 429
    ;;

  esac
done

if test -n "$ac_prev"; then
Ryan Jackson's avatar
Ryan Jackson committed
430
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Robert Ricci's avatar
Robert Ricci committed
431 432
fi

Ryan Jackson's avatar
Ryan Jackson committed
433 434 435 436 437 438 439 440 441 442 443 444 445 446
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
Kirk Webb's avatar
 
Kirk Webb committed
447
fi
Ryan Jackson's avatar
Ryan Jackson committed
448 449 450 451 452 453
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
Kirk Webb's avatar
 
Kirk Webb committed
454

Ryan Jackson's avatar
Ryan Jackson committed
455 456 457 458
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
459
do
Ryan Jackson's avatar
Ryan Jackson committed
460 461 462 463 464 465 466 467
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Ryan Jackson's avatar
Ryan Jackson committed
468
  esac
469 470
done

Ryan Jackson's avatar
Ryan Jackson committed
471 472 473 474 475 476 477 478 479
# NLS nuisances.
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
Ryan Jackson's avatar
Ryan Jackson committed
480

Ryan Jackson's avatar
Ryan Jackson committed
481 482 483 484
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
485

Ryan Jackson's avatar
Ryan Jackson committed
486 487 488
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=Makeconf.in
489 490 491 492

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
Ryan Jackson's avatar
Ryan Jackson committed
493 494 495 496
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497
  srcdir=$ac_confdir
Ryan Jackson's avatar
Ryan Jackson committed
498
  if test ! -r $srcdir/$ac_unique_file; then
499 500 501 502 503
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
Ryan Jackson's avatar
Ryan Jackson committed
504 505 506 507 508 509
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
Ryan Jackson's avatar
Ryan Jackson committed
510
fi
Ryan Jackson's avatar
Ryan Jackson committed
511
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
Ryan Jackson's avatar
Ryan Jackson committed
512

Ryan Jackson's avatar
Ryan Jackson committed
513
# Prefer explicitly selected file to automatically selected ones.
Kirk Webb's avatar
 
Kirk Webb committed
514 515 516 517
if test -z "$sitefile"; then
  if test -z "$CONFIG_SITE"; then
    if test "x$prefix" != xNONE; then
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518
    else
Kirk Webb's avatar
 
Kirk Webb committed
519
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520
    fi
521
  fi
Kirk Webb's avatar
 
Kirk Webb committed
522 523
else
  CONFIG_SITE="$sitefile"
Ryan Jackson's avatar
Ryan Jackson committed
524 525 526 527 528
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
529
  fi
Ryan Jackson's avatar
Ryan Jackson committed
530 531 532 533 534
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
Ryan Jackson's avatar
Ryan Jackson committed
535
else
Ryan Jackson's avatar
Ryan Jackson committed
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
Kirk Webb's avatar
 
Kirk Webb committed
556
  fi
Ryan Jackson's avatar
Ryan Jackson committed
557
else
Ryan Jackson's avatar
Ryan Jackson committed
558 559
  ac_n= ac_c='\c' ac_t=
fi
Ryan Jackson's avatar
Ryan Jackson committed
560 561


Ryan Jackson's avatar
Ryan Jackson committed
562 563 564 565 566 567 568 569 570 571
ac_aux_dir=
for ac_dir in ${srcdir}/autoconf $srcdir/${srcdir}/autoconf; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
Ryan Jackson's avatar
Ryan Jackson committed
572
  fi
Ryan Jackson's avatar
Ryan Jackson committed
573 574 575
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/autoconf $srcdir/${srcdir}/autoconf" 1>&2; exit 1; }
Ryan Jackson's avatar
Ryan Jackson committed
576
fi
Ryan Jackson's avatar
Ryan Jackson committed
577 578 579
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
580 581


582

583

Ryan Jackson's avatar
Ryan Jackson committed
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610
# We use separate source and obj trees in Emulab.  Configuring in a source
# tree messes it up, so throw an error.
#
# Check that $srcdir, (which defaults to the argv[0] path to the configure
# script,) is different from the current directory.
#
if test `(cd $srcdir; pwd)` = `pwd`; then
    if test "$ac_srcdir_defaulted" = yes; then
	{ echo "configure: error: You are running the configure script in the current directory.
Output from configure must go into an Emulab obj tree, not a source tree!
cd to the top of an obj tree, and run the configure in your source tree." 1>&2; exit 1; }
    else
	{ echo "configure: error: You specified --srcdir= to be the current directory.
Output from configure should go into an Emulab obj tree, not a source tree!
cd to the top of an obj tree, and run the configure in your source tree.
Then --srcdir= will be unnecessary." 1>&2; exit 1; }
    fi
fi
#
# Double-check that there isn't a Makeconf.in (the UNIQUE-FILE-IN-SOURCE-DIR)
# in the current directory.
#
if test -f $ac_unique_file; then
    { echo "configure: error: The current directory is a source tree containing $ac_unique_file .
Output from configure should go into an Emulab obj tree, not a source tree!
cd to the top of an obj tree, and run the configure in your source tree." 1>&2; exit 1; }
fi
611

Timothy Stack's avatar
 
Timothy Stack committed
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626
for tbarch in arm/3.4.1; do
    PATH="/usr/local/$tbarch/bin:${PATH}"
done

if test x"${JAVA_HOME}" != x""; then
    PATH="${JAVA_HOME}/bin:${PATH}"
else
    for jdk in /usr/local/jdk*; do
	PATH="${jdk}/bin:${PATH}"
	break
    done
fi



627 628 629
CPPFLAGS="-I/usr/local/include"

# BEGIN Python detection.
630
for ac_prog in python python2.6 python2.5 python2.4 python2.3 python2.2
631
do
Ryan Jackson's avatar
Ryan Jackson committed
632
# Extract the first word of "$ac_prog", so it can be a program name with args.
633
set dummy $ac_prog; ac_word=$2
Ryan Jackson's avatar
Ryan Jackson committed
634
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635
echo "configure:636: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
636 637
if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
638
else
Ryan Jackson's avatar
Ryan Jackson committed
639 640
  case "$PYTHON" in
  /*)
641 642
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
Ryan Jackson's avatar
Ryan Jackson committed
643 644 645
  ?:/*)			 
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
  ;;
646
  *)
Ryan Jackson's avatar
Ryan Jackson committed
647 648 649 650 651 652 653 654
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do 
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PYTHON="$ac_dir/$ac_word"
      break
    fi
Kirk Webb's avatar
 
Kirk Webb committed
655
  done
Ryan Jackson's avatar
Ryan Jackson committed
656
  IFS="$ac_save_ifs"
657 658 659
  ;;
esac
fi
Ryan Jackson's avatar
Ryan Jackson committed
660
PYTHON="$ac_cv_path_PYTHON"
661
if test -n "$PYTHON"; then
Ryan Jackson's avatar
Ryan Jackson committed
662
  echo "$ac_t""$PYTHON" 1>&6
663
else
Ryan Jackson's avatar
Ryan Jackson committed
664
  echo "$ac_t""no" 1>&6
665 666
fi

Ryan Jackson's avatar
Ryan Jackson committed
667
test -n "$PYTHON" && break
668 669 670 671
done


if test x"$PYTHON" = x""; then
Ryan Jackson's avatar
Ryan Jackson committed
672
    { echo "configure: error: python not detected" 1>&2; exit 1; }
673 674 675 676
fi

PYTHON_VERSION=`${PYTHON} -V 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2`
PYTHON_PATH=`dirname ${PYTHON}`
677 678 679
if test ! -d "$PYTHON_PATH/include"; then
    PYTHON_PATH=`dirname ${PYTHON_PATH}`
fi
680 681
PYTHON_INCLUDE="${PYTHON_PATH}/include/python${PYTHON_VERSION}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE}"
Ryan Jackson's avatar
Ryan Jackson committed
682
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
683
echo "configure:684: checking how to run the C preprocessor" >&5
Kirk Webb's avatar
 
Kirk Webb committed
684 685 686 687 688
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
Ryan Jackson's avatar
Ryan Jackson committed
689 690
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
691
else
Ryan Jackson's avatar
Ryan Jackson committed
692 693 694
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
Kirk Webb's avatar
 
Kirk Webb committed
695
  # On the NeXT, cc -E runs the code through the compiler's parser,
Ryan Jackson's avatar
Ryan Jackson committed
696 697
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
698
#line 699 "configure"
Ryan Jackson's avatar
Ryan Jackson committed
699 700 701 702 703
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
704
{ (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ryan Jackson's avatar
Ryan Jackson committed
705 706 707
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
Ryan Jackson's avatar
Ryan Jackson committed
708
else
Ryan Jackson's avatar
Ryan Jackson committed
709 710 711 712 713 714
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
715
#line 716 "configure"
Ryan Jackson's avatar
Ryan Jackson committed
716 717 718 719 720
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
721
{ (eval echo configure:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ryan Jackson's avatar
Ryan Jackson committed
722 723 724
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
Ryan Jackson's avatar
Ryan Jackson committed
725
else
Ryan Jackson's avatar
Ryan Jackson committed
726 727 728 729 730 731
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP="${CC-cc} -nologo -E"
  cat > conftest.$ac_ext <<EOF
732
#line 733 "configure"
Ryan Jackson's avatar
Ryan Jackson committed
733 734 735 736 737
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
738
{ (eval echo configure:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ryan Jackson's avatar
Ryan Jackson committed
739 740 741
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
Ryan Jackson's avatar
Ryan Jackson committed
742
else
Ryan Jackson's avatar
Ryan Jackson committed
743 744 745 746 747
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
748
fi
Kevin Atkinson's avatar
 
Kevin Atkinson committed
749 750
rm -f conftest*
fi
Ryan Jackson's avatar
Ryan Jackson committed
751
rm -f conftest*
Kevin Atkinson's avatar
 
Kevin Atkinson committed
752
fi
Ryan Jackson's avatar
Ryan Jackson committed
753
rm -f conftest*
Ryan Jackson's avatar
Ryan Jackson committed
754
  ac_cv_prog_CPP="$CPP"
Ryan Jackson's avatar
Ryan Jackson committed
755
fi
Ryan Jackson's avatar
Ryan Jackson committed
756
  CPP="$ac_cv_prog_CPP"
Ryan Jackson's avatar
Ryan Jackson committed
757
else
Ryan Jackson's avatar
Ryan Jackson committed
758
  ac_cv_prog_CPP="$CPP"
Ryan Jackson's avatar
Ryan Jackson committed
759
fi
Ryan Jackson's avatar
Ryan Jackson committed
760
echo "$ac_t""$CPP" 1>&6
Kevin Atkinson's avatar
 
Kevin Atkinson committed
761

Ryan Jackson's avatar
Ryan Jackson committed
762 763 764 765
for ac_hdr in Python.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
766
echo "configure:767: checking for $ac_hdr" >&5
Ryan Jackson's avatar
Ryan Jackson committed
767 768 769 770
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
771
#line 772 "configure"
Ryan Jackson's avatar
Ryan Jackson committed
772 773 774 775
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
776
{ (eval echo configure:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ryan Jackson's avatar
Ryan Jackson committed
777 778 779 780 781 782 783 784 785 786
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
Ryan Jackson's avatar
Ryan Jackson committed
787
fi
Ryan Jackson's avatar
Ryan Jackson committed
788
rm -f conftest*
Ryan Jackson's avatar
Ryan Jackson committed
789
fi
Ryan Jackson's avatar
Ryan Jackson committed
790 791 792 793 794 795 796
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
797
else
Ryan Jackson's avatar
Ryan Jackson committed
798 799
  echo "$ac_t""no" 1>&6
echo "configure: warning: "Cannot find Python.h in ${PYTHON_INCLUDE}"" 1>&2
800
fi
Ryan Jackson's avatar
Ryan Jackson committed
801 802 803 804 805
done


# END Python detection.

806

Ryan Jackson's avatar
Ryan Jackson committed
807 808 809
# Make sure we can run config.sub.
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
Ryan Jackson's avatar
Ryan Jackson committed
810 811
fi

Ryan Jackson's avatar
Ryan Jackson committed
812
echo $ac_n "checking host system type""... $ac_c" 1>&6
813
echo "configure:814: checking host system type" >&5
Robert Ricci's avatar
Robert Ricci committed
814

Ryan Jackson's avatar
Ryan Jackson committed
815 816 817 818 819 820 821 822 823 824
host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
Ryan Jackson's avatar
Ryan Jackson committed
825 826
esac

Ryan Jackson's avatar
Ryan Jackson committed
827 828 829 830 831 832 833
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6

echo $ac_n "checking build system type""... $ac_c" 1>&6
834
echo "configure:835: checking build system type" >&5
Ryan Jackson's avatar
Ryan Jackson committed
835 836 837 838 839 840 841 842 843

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac
Ryan Jackson's avatar
Ryan Jackson committed
844

Ryan Jackson's avatar
Ryan Jackson committed
845 846 847 848 849
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
850

Ryan Jackson's avatar
Ryan Jackson committed
851 852
if test $host != $build; then
  ac_tool_prefix=${host_alias}-
Ryan Jackson's avatar
Ryan Jackson committed
853
else
Ryan Jackson's avatar
Ryan Jackson committed
854
  ac_tool_prefix=
Ryan Jackson's avatar
Ryan Jackson committed
855
fi
856

Ryan Jackson's avatar
Ryan Jackson committed
857 858 859
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
860
echo "configure:861: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
861 862
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
863
else
Ryan Jackson's avatar
Ryan Jackson committed
864 865
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
866
else
Ryan Jackson's avatar
Ryan Jackson committed
867 868 869 870 871 872 873 874
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="${ac_tool_prefix}gcc"
      break
    fi
Kirk Webb's avatar
 
Kirk Webb committed
875
  done
Ryan Jackson's avatar
Ryan Jackson committed
876 877
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
878 879
fi
fi
Ryan Jackson's avatar
Ryan Jackson committed
880 881 882
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
Robert Ricci's avatar
Robert Ricci committed
883
else
Ryan Jackson's avatar
Ryan Jackson committed
884
  echo "$ac_t""no" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
885 886 887
fi


Ryan Jackson's avatar
Ryan Jackson committed
888 889 890 891

# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
set dummy ${ac_tool_prefix}g++; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892
echo "configure:893: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
893 894
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
895
else
Ryan Jackson's avatar
Ryan Jackson committed
896 897
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
Ryan Jackson's avatar
Ryan Jackson committed
898
else
Ryan Jackson's avatar
Ryan Jackson committed
899 900 901 902 903 904 905 906
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CXX="${ac_tool_prefix}g++"
      break
    fi
Ryan Jackson's avatar
Ryan Jackson committed
907
  done
Ryan Jackson's avatar
Ryan Jackson committed
908 909
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CXX" && ac_cv_prog_CXX="g++"
Ryan Jackson's avatar
Ryan Jackson committed
910 911
fi
fi
Ryan Jackson's avatar
Ryan Jackson committed
912 913 914
CXX="$ac_cv_prog_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
915
else
Ryan Jackson's avatar
Ryan Jackson committed
916
  echo "$ac_t""no" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
917
fi
918

Robert Ricci's avatar
Robert Ricci committed
919

Ryan Jackson's avatar
Ryan Jackson committed
920 921 922 923

# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
924
echo "configure:925: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
925 926
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
927
else
Ryan Jackson's avatar
Ryan Jackson committed
928 929
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
930
else
Ryan Jackson's avatar
Ryan Jackson committed
931 932 933 934 935 936 937 938
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AR="${ac_tool_prefix}ar"
      break
    fi
Kirk Webb's avatar
 
Kirk Webb committed
939
  done
Ryan Jackson's avatar
Ryan Jackson committed
940 941
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
942 943
fi
fi
Ryan Jackson's avatar
Ryan Jackson committed
944 945 946
AR="$ac_cv_prog_AR"
if test -n "$AR"; then
  echo "$ac_t""$AR" 1>&6
947
else
Ryan Jackson's avatar
Ryan Jackson committed
948
  echo "$ac_t""no" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
949 950 951
fi


Ryan Jackson's avatar
Ryan Jackson committed
952 953 954 955

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956
echo "configure:957: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
957 958
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
959
else
Ryan Jackson's avatar
Ryan Jackson committed
960 961
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Ryan Jackson's avatar
Ryan Jackson committed
962
else
Ryan Jackson's avatar
Ryan Jackson committed
963 964 965 966 967 968 969 970
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
      break
    fi
Ryan Jackson's avatar
Ryan Jackson committed
971
  done
Ryan Jackson's avatar
Ryan Jackson committed
972 973
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
Ryan Jackson's avatar
Ryan Jackson committed
974 975
fi
fi
Ryan Jackson's avatar
Ryan Jackson committed
976 977 978
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
979
else
Ryan Jackson's avatar
Ryan Jackson committed
980
  echo "$ac_t""no" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
981
fi
982 983


Ryan Jackson's avatar
Ryan Jackson committed
984 985

# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
986
set dummy ${ac_tool_prefix}strip; ac_word=$2
Ryan Jackson's avatar
Ryan Jackson committed
987
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988
echo "configure:989: checking for $ac_word" >&5
Ryan Jackson's avatar
Ryan Jackson committed
989 990
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
991 992 993 994
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
Ryan Jackson's avatar
Ryan Jackson committed
995 996 997 998 999 1000 1001 1002
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
      break
    fi
Kirk Webb's avatar
 
Kirk Webb committed
1003
  done
Ryan Jackson's avatar
Ryan Jackson committed
1004 1005
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="strip"
1006 1007
fi
fi
Ryan Jackson's avatar
Ryan Jackson committed
1008
STRIP="$ac_cv_prog_STRIP"
1009
if test -n "$STRIP"; then
Ryan Jackson's avatar
Ryan Jackson committed
1010
  echo "$ac_t""$STRIP" 1>&6
1011
else
Ryan Jackson's avatar
Ryan Jackson committed
1012
  echo "$ac_t""no" 1>&6
1013 1014
fi

Kirk Webb's avatar
 
Kirk Webb committed
1015

Ryan Jackson's avatar
Ryan Jackson committed
1016 1017 1018


echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1019
echo "configure:1020: checking for Cygwin environment" >&5
Ryan Jackson's avatar
Ryan Jackson committed
1020 1021
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Ryan Jackson's avatar
Ryan Jackson committed
1022
else
Ryan Jackson's avatar
Ryan Jackson committed
1023
  cat > conftest.$ac_ext <<EOF
1024
#line 1025 "configure"
Ryan Jackson's avatar
Ryan Jackson committed
1025
#include "confdefs.h"
1026

Ryan Jackson's avatar
Ryan Jackson committed
1027 1028 1029 1030 1031 1032 1033 1034
int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
1035
if { (eval echo configure:1036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Ryan Jackson's avatar
Ryan Jackson committed
1036 1037 1038 1039 1040 1041 1042
  rm -rf conftest*
  ac_cv_cygwin=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_cygwin=no
1043
fi
Ryan Jackson's avatar
Ryan Jackson committed
1044 1045
rm -f conftest*
rm -f conftest*
1046
fi