configure 81.8 KB
Newer Older
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 8 9
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

10 11
# Defaults:
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/testbed
15 16 17 18 19 20 21 22 23 24 25 26
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)"
27 28
ac_help="$ac_help
  --with-brainstem=<DIR> Specify the path to the brainstem installation."
29 30 31 32 33 34
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
35
  --enable-windows      Enable Windows XP support (default)"
36 37
ac_help="$ac_help
  --enable-mezzanine    Enable mezzanine support"
38 39 40
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.
45 46
build=NONE
cache_file=./config.cache
47
exec_prefix=NONE
48
host=NONE
49
no_create=
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=
58
sitefile=
59
srcdir=
60
target=NONE
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

77 78 79 80 81 82 83
# 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

84 85 86
ac_prev=
for ac_option
do
87

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

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

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

102
  case "$ac_option" in
103 104 105 106

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107
    bindir="$ac_optarg" ;;
108 109

  -build | --build | --buil | --bui | --bu)
110
    ac_prev=build ;;
111
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
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=*)
119
    cache_file="$ac_optarg" ;;
120 121 122 123 124

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
125
    datadir="$ac_optarg" ;;
126 127

  -disable-* | --disable-*)
128
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129
    # Reject names that are not valid shell variable names.
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-*)
137
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138
    # Reject names that are not valid shell variable names.
139 140 141 142 143 144
    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
      *=*) ;;
145 146
      *) ac_optarg=yes ;;
    esac
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=*)
156
    exec_prefix="$ac_optarg" ;;
157 158 159 160 161

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

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
173
  --site-file=FILE        use FILE as the site file
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)
219
    ac_prev=host ;;
220
  -host=* | --host=* | --hos=* | --ho=*)
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=*)
228
    includedir="$ac_optarg" ;;
229 230 231 232

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233
    infodir="$ac_optarg" ;;
234 235 236 237

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
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=*)
245
    libexecdir="$ac_optarg" ;;
246 247 248 249 250 251 252 253

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254
    localstatedir="$ac_optarg" ;;
255 256 257 258

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
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 \
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=*)
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=*)
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=*)
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=*)
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=*)
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=*)
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=*)
337
    sharedstatedir="$ac_optarg" ;;
338 339 340 341

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
342 343
    site="$ac_optarg" ;;

344 345 346 347 348
  -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" ;;

349 350 351
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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=*)
359
    sysconfdir="$ac_optarg" ;;
360 361

  -target | --target | --targe | --targ | --tar | --ta | --t)
362
    ac_prev=target ;;
363
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364
    target="$ac_optarg" ;;
365 366 367 368

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

369 370 371
  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.13"
    exit 0 ;;
372 373

  -with-* | --with-*)
374
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375
    # Reject names that are not valid shell variable names.
376 377 378
    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
379
    ac_package=`echo $ac_package| sed 's/-/_/g'`
380 381
    case "$ac_option" in
      *=*) ;;
382 383
      *) ac_optarg=yes ;;
    esac
384
    eval "with_${ac_package}='$ac_optarg'" ;;
385 386

  -without-* | --without-*)
387
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388
    # Reject names that are not valid shell variable names.
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=*)
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=*)
411
    x_libraries="$ac_optarg" ;;
412

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

  *)
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
430
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 432
fi

433
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
434

435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
# 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
fi
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

# 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
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" ;;
468 469 470
  esac
done

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
Robert Ricci's avatar
Robert Ricci committed
480

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

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 493

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

513
# Prefer explicitly selected file to automatically selected ones.
514 515 516 517 518 519 520
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"
    else
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    fi
521
  fi
522 523
else
  CONFIG_SITE="$sitefile"
524 525 526
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
527
    echo "loading site script $ac_site_file"
528 529 530 531 532
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
533 534
  echo "loading cache $cache_file"
  . $cache_file
535
else
536 537
  echo "creating cache $cache_file"
  > $cache_file
538 539
fi

Robert Ricci's avatar
Robert Ricci committed
540
ac_ext=c
541
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Robert Ricci's avatar
Robert Ricci committed
542
ac_cpp='$CPP $CPPFLAGS'
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
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=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
Robert Ricci's avatar
Robert Ricci committed
560

561 562 563 564 565 566 567 568 569 570 571 572 573 574

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
  fi
done
if test -z "$ac_aux_dir"; then
575
  { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/autoconf $srcdir/${srcdir}/autoconf" 1>&2; exit 1; }
576
fi
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

584 585 586 587 588 589 590 591 592 593 594 595 596 597 598
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



599 600 601 602 603 604 605 606
CPPFLAGS="-I/usr/local/include"

# BEGIN Python detection.
for ac_prog in python python2.4 python2.3 python2.2
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607
echo "configure:608: checking for $ac_word" >&5
608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648
if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PYTHON" in
  /*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
  ;;
  *)
  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
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
PYTHON="$ac_cv_path_PYTHON"
if test -n "$PYTHON"; then
  echo "$ac_t""$PYTHON" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$PYTHON" && break
done


if test x"$PYTHON" = x""; then
    { echo "configure: error: python not detected" 1>&2; exit 1; }
fi

PYTHON_VERSION=`${PYTHON} -V 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2`
PYTHON_PATH=`dirname ${PYTHON}`
649 650 651
if test ! -d "$PYTHON_PATH/include"; then
    PYTHON_PATH=`dirname ${PYTHON_PATH}`
fi
652 653 654
PYTHON_INCLUDE="${PYTHON_PATH}/include/python${PYTHON_VERSION}"
CPPFLAGS="${CPPFLAGS} -I${PYTHON_INCLUDE}"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
655
echo "configure:656: checking how to run the C preprocessor" >&5
656 657 658 659 660 661 662 663 664 665 666 667 668 669
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # 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"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
670
#line 671 "configure"
671 672 673 674 675
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
676
{ (eval echo configure:677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
677 678 679 680 681 682 683 684 685 686
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  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
687
#line 688 "configure"
688 689 690 691 692
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
693
{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
694 695 696 697 698 699 700 701 702 703
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  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
704
#line 705 "configure"
705 706 707 708 709
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
710
{ (eval echo configure:711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6

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
738
echo "configure:739: checking for $ac_hdr" >&5
739 740 741 742
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
743
#line 744 "configure"
744 745 746 747
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748
{ (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770
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"
fi
rm -f conftest*
fi
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
 
else
  echo "$ac_t""no" 1>&6
771
echo "configure: warning: "Cannot find Python.h in ${PYTHON_INCLUDE}"" 1>&2
772 773 774 775 776 777
fi
done


# END Python detection.

Robert Ricci's avatar
Robert Ricci committed
778

779 780 781
# 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; }
782
fi
783 784

echo $ac_n "checking host system type""... $ac_c" 1>&6
785
echo "configure:786: checking host system type" >&5
786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805

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 ;;
esac

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
806
echo "configure:807: checking build system type" >&5
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824

build_alias=$build
case "$build_alias" in
NONE)
  case $nonopt in
  NONE) build_alias=$host_alias ;;
  *) build_alias=$nonopt ;;
  esac ;;
esac

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

if test $host != $build; then
  ac_tool_prefix=${host_alias}-
825
else
826
  ac_tool_prefix=
827 828
fi

829 830 831
# 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
832
echo "configure:833: checking for $ac_word" >&5
833 834
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Robert Ricci's avatar
Robert Ricci committed
835
else
836 837
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
Robert Ricci's avatar
Robert Ricci committed
838
else
839 840 841 842 843 844 845 846 847 848 849
  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
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
Robert Ricci's avatar
Robert Ricci committed
850 851
fi
fi
852 853 854
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
Robert Ricci's avatar
Robert Ricci committed
855
else
856
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
857
fi
858 859


860 861

# Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
862
set dummy ${ac_tool_prefix}g++; ac_word=$2
863
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864
echo "configure:865: checking for $ac_word" >&5
865 866
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
867 868 869 870
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
871 872 873 874 875 876 877 878 879 880 881
  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
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_CXX" && ac_cv_prog_CXX="g++"
882 883
fi
fi
884
CXX="$ac_cv_prog_CXX"
885
if test -n "$CXX"; then
886
  echo "$ac_t""$CXX" 1>&6
887
else
888
  echo "$ac_t""no" 1>&6
889 890 891
fi


Robert Ricci's avatar
Robert Ricci committed
892

893
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
894
set dummy ${ac_tool_prefix}ar; ac_word=$2
895
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896
echo "configure:897: checking for $ac_word" >&5
897 898
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
899 900 901 902
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
903 904 905 906 907 908 909 910 911 912 913
  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
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
914 915
fi
fi
916
AR="$ac_cv_prog_AR"
917
if test -n "$AR"; then
918
  echo "$ac_t""$AR" 1>&6
Robert Ricci's avatar
Robert Ricci committed
919
else
920
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
921
fi
922 923


924 925

# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
926
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
927
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928
echo "configure:929: checking for $ac_word" >&5
929 930
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
931 932 933 934
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
935 936 937 938 939 940 941 942 943 944 945
  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
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
946 947
fi
fi
948
RANLIB="$ac_cv_prog_RANLIB"
949
if test -n "$RANLIB"; then
950
  echo "$ac_t""$RANLIB" 1>&6
951
else
952
  echo "$ac_t""no" 1>&6
953 954 955 956
fi



957
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
958
set dummy ${ac_tool_prefix}strip; ac_word=$2
959
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960
echo "configure:961: checking for $ac_word" >&5
961 962
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
963 964 965 966
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
967 968 969 970 971 972 973 974 975 976 977
  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
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="strip"
978 979
fi
fi
980
STRIP="$ac_cv_prog_STRIP"
981
if test -n "$STRIP"; then
982
  echo "$ac_t""$STRIP" 1>&6
983
else
984
  echo "$ac_t""no" 1>&6
985 986 987 988
fi



989

990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:992: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 997 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:1008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  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
fi
rm -f conftest*
rm -f conftest*
fi

echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:1025: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1030 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
EOF
if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_mingw32=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_mingw32=no
fi
rm -f conftest*
rm -f conftest*
fi

echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes


echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:1056: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  ac_cv_exeext=.exe
else
  rm -f conftest*
  echo 'int main () { return 0; }' > conftest.$ac_ext
  ac_cv_exeext=
  if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    for file in conftest.*; do
      case $file in
      *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
      esac
    done
  else
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  fi
  rm -f conftest*
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
fi
fi

EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT


1086 1087 1088
# Extract the first word of "elvin-config", so it can be a program name with args.
set dummy elvin-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089
echo "configure:1090: checking for $ac_word" >&5
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
if eval "test \"`echo '$''{'ac_cv_path_ELVIN_CONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$ELVIN_CONFIG" in
  /*)
  ac_cv_path_ELVIN_CONFIG="$ELVIN_CONFIG" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_ELVIN_CONFIG="$ELVIN_CONFIG" # Let the user override the test with a dos path.
  ;;
  *)
  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_ELVIN_CONFIG="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
ELVIN_CONFIG="$ac_cv_path_ELVIN_CONFIG"
if test -n "$ELVIN_CONFIG"; then
  echo "$ac_t""$ELVIN_CONFIG" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

1121 1122 1123
# Extract the first word of "javac", so it can be a program name with args.
set dummy javac; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124
echo "configure:1125: checking for $ac_word" >&5
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158
if eval "test \"`echo '$''{'ac_cv_path_JAVAC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$JAVAC" in
  /*)
  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a dos path.
  ;;
  *)
  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_JAVAC="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
JAVAC="$ac_cv_path_JAVAC"
if test -n "$JAVAC"; then
  echo "$ac_t""$JAVAC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "jar", so it can be a program name with args.
set dummy jar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159
echo "configure:1160: checking for $ac_word" >&5
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191
if eval "test \"`echo '$''{'ac_cv_path_JAR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$JAR" in
  /*)
  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  ;;
  ?:/*)			 
  ac_cv_path_JAR="$JAR" # Let the user override the test with a dos path.
  ;;
  *)
  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_JAR="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
JAR="$ac_cv_path_JAR"
if test -n "$JAR"; then
  echo "$ac_t""$JAR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


1192
# Extract the first word of "${ac_tool_prefix}ssh", so it can be a program name with args.
Robert Ricci's avatar
Robert Ricci committed
1193
set dummy ${ac_tool_prefix}ssh; ac_word=$2
1194
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195
echo "configure:1196: checking for $ac_word" >&5
1196 1197
if eval "test \"`echo '$''{'ac_cv_prog_SSH'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Robert Ricci's avatar
Robert Ricci committed
1198 1199 1200 1201
else
  if test -n "$SSH"; then
  ac_cv_prog_SSH="$SSH" # Let the user override the test.
else
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212
  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_SSH="${ac_tool_prefix}ssh"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_SSH" && ac_cv_prog_SSH="ssh"
Robert Ricci's avatar
Robert Ricci committed
1213 1214
fi
fi
1215
SSH="$ac_cv_prog_SSH"
Robert Ricci's avatar
Robert Ricci committed
1216
if test -n "$SSH"; then
1217
  echo "$ac_t""$SSH" 1>&6
Robert Ricci's avatar
Robert Ricci committed
1218
else
1219
  echo "$ac_t""no" 1>&6
Robert Ricci's avatar
Robert Ricci committed
1220 1221 1222 1223
fi



1224

1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280
for ac_func in srandomdev
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1229: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1234 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


1281 1282


1283
#
1284
# These get defined in the definitions file (--with-TBDEFS).
1285 1286
# NB: See AC_DEFINE_UNQUOTED() calls below, if you want a variable
# to appear in config.h.
1287
# 
1288 1289 1290 1291 1292





Leigh Stoller's avatar
Leigh Stoller committed
1293 1294


1295 1296 1297



1298

1299

1300 1301 1302 1303 1304 1305 1306 1307 1308 1309










1310 1311


1312 1313


1314

1315

1316

1317

1318

1319

1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332













1333

1334

1335

1336

1337

1338

Kirk Webb's avatar
Kirk Webb committed
1339

1340

1341

1342 1343 1344 1345




1346

1347

1348 1349


1350

1351

1352 1353


1354

1355 1356 1357 1358




1359

1360

1361 1362


1363

1364

1365

1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380


#
# Offer both versions of the email addresses that have the @ escaped
# for perl (the default), and that don't
#









1381

1382

1383 1384 1385



1386

1387

1388

1389

1390 1391


1392

1393 1394
#
# Defaults for for above variables.
1395
# 
1396
TBADMINGROUP="flux"
1397 1398 1399
CLIENT_ETCDIR="/etc/emulab"
CLIENT_BINDIR="/usr/local/etc/emulab"
CLIENT_VARDIR="/var/emulab"
1400
CLIENT_MANDIR="/usr/local/man"
1401 1402
TBSECURECOOKIES=1
TBMAINSITE=0
1403
JAILIPBASE=172.17.0.0
1404
JAILIPMASK=255.240.0.0
1405
IPBASE=10
1406
SFSSUPPORT=1
1407
ELABINELAB=0
1408 1409 1410
OUTERBOSS_NODENAME=""
OUTERBOSS_XMLRPCPORT=3069
OUTERBOSS_SSLCERTNAME="/etc/outer_emulab.pem"
1411
PLABSUPPORT=0
1412 1413
PLAB_ROOTBALL="change.me"
PLAB_SLICEPREFIX="utah_elab"
1414
WIKISUPPORT=0
1415
WINSUPPORT=0
1416
TBLOGFACIL="local5"
1417
LINKTEST_NSPATH="/share/linktest-ns"
1418 1419
BOSSEVENTPORT=2927
UNIFIED_BOSS_AND_OPS=0
1420 1421
FRISEBEEMCASTADDR="234.5.6"
FRISEBEEMCASTPORT=3564
1422

1423 1424 1425
#
# Okay, I know this is improper usage of --with. Too bad.
#
1426 1427 1428
# Check whether --with-TBDEFS or --without-TBDEFS was given.
if test "${with_TBDEFS+set}" = set; then
  withval="$with_TBDEFS"
1429
  
1430
    if test "$withval" = "yes"; then
1431
	{ echo "configure: error: Invalid TBDEFS - Must specify the value" 1>&2; exit 1; }
1432
    fi
1433
    TBDEFS="$withval"
1434
    TBPATH=`dirname $withval`
1435 1436

else
1437
  
Robert Ricci's avatar
Robert Ricci committed
1438
    TBDEFS="$srcdir/defs-default"
1439
    TBPATH="$srcdir"
1440

1441 1442
fi

1443

1444 1445 1446 1447
if test -f $TBDEFS; then
    #
    # Remove the comments and newlines.  Really, that's what it does.
    #
1448 1449
    OLDPATH=$PATH
    PATH="$TBPATH:$PATH"
1450
    . $TBDEFS
1451
    PATH=$OLDPATH
1452
else
1453
	{ echo "configure: error: Definitions file $TBDEFS was not found." 1>&2; exit 1; }
1454 1455
fi

1456 1457 1458 1459 1460 1461
#
# These must come after the "eval" above, since the variables are not
# defined until the defs file is taken in.
#
# Be sure to add to config.h.in!
#
1462 1463 1464 1465 1466 1467 1468
if test x"$prefix" = x"NONE"; then
    cat >> confdefs.h <<EOF
#define TBROOT "/usr/testbed"
EOF

else
    cat >> confdefs.h <<EOF
1469 1470 1471
#define TBROOT "$prefix"
EOF

1472
fi
1473
cat >> confdefs.h <<EOF
1474
#define TBDBNAME "$TBDBNAME"
1475
EOF
1476

1477
cat >> confdefs.h <<EOF
1478
#define TBADMINGROUP "$TBADMINGROUP"
1479
EOF
1480

1481
cat >> confdefs.h <<EOF
1482
#define IPBASE "$IPBASE"
1483
EOF
1484

1485 1486 1487 1488 1489 1490 1491 1492
cat >> confdefs.h <<EOF
#define JAILIPBASE "$JAILIPBASE"
EOF

cat >> confdefs.h <<EOF
#define JAILIPMASK "$JAILIPMASK"
EOF

1493
cat >> confdefs.h <<EOF
1494
#define BOSSNODE "$BOSSNODE"
1495
EOF
1496

1497 1498 1499 1500
cat >> confdefs.h <<EOF
#define BOSSNODE_IP "$BOSSNODE_IP"
EOF

1501
cat >> confdefs.h <<EOF
1502
#define USERNODE "$USERNODE"
1503
EOF
1504

1505 1506 1507 1508
cat >> confdefs.h <<EOF
#define USERNODE_IP "$USERNODE_IP"
EOF

1509
cat >> confdefs.h <<EOF
1510
#define FSNODE "$FSNODE"
1511
EOF
1512

1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535
if test -n "$FSNODE_IP"; then
	cat >> confdefs.h <<EOF
#define FSNODE_IP "$FSNODE_IP"
EOF

elif test "$USERNODE" = "$FSNODE"; then
	cat >> confdefs.h <<EOF
#define FSNODE_IP "$USERNODE_IP"
EOF

fi
cat >> confdefs.h <<EOF
#define CONTROL_ROUTER_IP "$CONTROL_ROUTER_IP"
EOF

cat >> confdefs.h <<EOF
#define CONTROL_NETWORK "$CONTROL_NETWORK"
EOF

cat >> confdefs.h <<EOF
#define CONTROL_NETMASK "$CONTROL_NETMASK"
EOF

1536
cat >> confdefs.h <<EOF
1537
#define FSDIR_PROJ "$FSDIR_PROJ"
1538
EOF
1539

1540
cat >> confdefs.h <<EOF
1541
#define FSDIR_GROUPS "$FSDIR_GROUPS"
1542
EOF
1543

1544
cat >> confdefs.h <<EOF
1545
#define FSDIR_USERS "$FSDIR_USERS"
1546
EOF
1547

1548
if test -n "$FSDIR_SHARE"; then
1549
    cat >> confdefs.h <<EOF
1550
#define FSDIR_SHARE "$FSDIR_SHARE"