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. 
   7 # This configure script is free software; the Free Software Foundation 
   8 # gives unlimited permission to copy, distribute and modify it. 
  12 ac_default_prefix
=/usr
/local 
  13 # Any additions from configure.in: 
  15   --with-lang=LANG        Set SWIG target language (TCL,TCL8,PYTHON,PERL5,PERL4,GUILE)" 
  17   --with-doc=DOC          Set SWIG target documentation method (ASCII,LATEX,HTML,NODOC)" 
  19   --without-yacc          Try to compile without yacc/bison" 
  21   --with-libm=STRING      math library" 
  23   --with-libc=STRING      C library" 
  25   --with-x                use the X Window System" 
  27   --with-tcl=path         Set location of Tcl package" 
  29   --with-tclincl=path     Set location of Tcl include directory" 
  31   --with-tcllib=path      Set location of Tcl library directory" 
  33   --with-py=path          Set location of Python" 
  35   --with-pyincl=path      Set location of Python include directory" 
  37   --with-pylib=path       Set location of Python library directory" 
  39   --with-perl5=path       Set location of Perl5 executable" 
  41 # Initialize some variables set by options. 
  42 # The variables have the same names as the options, with 
  43 # dashes changed to underlines. 
  45 cache_file
=.
/config.cache
 
  54 program_transform_name
=s
,x
,x
, 
  62 bindir
='${exec_prefix}/bin' 
  63 sbindir
='${exec_prefix}/sbin' 
  64 libexecdir
='${exec_prefix}/libexec' 
  65 datadir
='${prefix}/share' 
  66 sysconfdir
='${prefix}/etc' 
  67 sharedstatedir
='${prefix}/com' 
  68 localstatedir
='${prefix}/var' 
  69 libdir
='${exec_prefix}/lib' 
  70 includedir
='${prefix}/include' 
  71 oldincludedir
='/usr/include' 
  72 infodir
='${prefix}/info' 
  73 mandir
='${prefix}/man' 
  75 # Initialize some other variables. 
  78 SHELL
=${CONFIG_SHELL-/bin/sh} 
  79 # Maximum number of lines to put in a shell here document. 
  86   # If the previous option needs an argument, assign it. 
  87   if test -n "$ac_prev"; then 
  88     eval "$ac_prev=\$ac_option" 
  94   -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 
  98   # Accept the important Cygnus configure options, so we can diagnose typos. 
 102   -bindir | --bindir | --bindi | --bind | --bin | --bi) 
 104   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 
 105     bindir
="$ac_optarg" ;; 
 107   -build | --build | --buil | --bui | --bu) 
 109   -build=* | --build=* | --buil=* | --bui=* | --bu=*) 
 110     build
="$ac_optarg" ;; 
 112   -cache-file | --cache-file | --cache-fil | --cache-fi \
 
 113   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 
 114     ac_prev
=cache_file 
;; 
 115   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
 116   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 
 117     cache_file
="$ac_optarg" ;; 
 119   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 
 121   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
 123     datadir
="$ac_optarg" ;; 
 125   -disable-* | --disable-*) 
 126     ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'` 
 127     # Reject names that are not valid shell variable names. 
 128     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 
 129       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 
 131     ac_feature
=`echo $ac_feature| sed 's/-/_/g'` 
 132     eval "enable_${ac_feature}=no" ;; 
 134   -enable-* | --enable-*) 
 135     ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 
 136     # Reject names that are not valid shell variable names. 
 137     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 
 138       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 
 140     ac_feature
=`echo $ac_feature| sed 's/-/_/g'` 
 145     eval "enable_${ac_feature}='$ac_optarg'" ;; 
 147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
 148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
 149   | --exec | --exe | --ex) 
 150     ac_prev
=exec_prefix 
;; 
 151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
 152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
 153   | --exec=* | --exe=* | --ex=*) 
 154     exec_prefix
="$ac_optarg" ;; 
 156   -gas | --gas | --ga | --g) 
 157     # Obsolete; use --with-gas. 
 160   -help | --help | --hel | --he) 
 161     # Omit some internal or obsolete options to make the list less imposing. 
 162     # This message is too long to be a string in the A/UX 3.1 sh. 
 164 Usage: configure [options] [host] 
 165 Options: [defaults in brackets after descriptions] 
 167   --cache-file=FILE       cache test results in FILE 
 168   --help                  print this message 
 169   --no-create             do not create output files 
 170   --quiet, --silent       do not print \`checking...' messages 
 171   --version               print the version of autoconf that created configure 
 172 Directory and file names: 
 173   --prefix=PREFIX         install architecture-independent files in PREFIX 
 175   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX 
 177   --bindir=DIR            user executables in DIR [EPREFIX/bin] 
 178   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] 
 179   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] 
 180   --datadir=DIR           read-only architecture-independent data in DIR 
 182   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] 
 183   --sharedstatedir=DIR    modifiable architecture-independent data in DIR 
 185   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] 
 186   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] 
 187   --includedir=DIR        C header files in DIR [PREFIX/include] 
 188   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] 
 189   --infodir=DIR           info documentation in DIR [PREFIX/info] 
 190   --mandir=DIR            man documentation in DIR [PREFIX/man] 
 191   --srcdir=DIR            find the sources in DIR [configure dir or ..] 
 192   --program-prefix=PREFIX prepend PREFIX to installed program names 
 193   --program-suffix=SUFFIX append SUFFIX to installed program names 
 194   --program-transform-name=PROGRAM 
 195                           run sed PROGRAM on installed program names 
 199   --build=BUILD           configure for building on BUILD [BUILD=HOST] 
 200   --host=HOST             configure for HOST [guessed] 
 201   --target=TARGET         configure for TARGET [TARGET=HOST] 
 202 Features and packages: 
 203   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) 
 204   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] 
 205   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] 
 206   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) 
 207   --x-includes=DIR        X include files are in DIR 
 208   --x-libraries=DIR       X library files are in DIR 
 210     if test -n "$ac_help"; then 
 211       echo "--enable and --with options recognized:$ac_help" 
 215   -host | --host | --hos | --ho) 
 217   -host=* | --host=* | --hos=* | --ho=*) 
 220   -includedir | --includedir | --includedi | --included | --include \
 
 221   | --includ | --inclu | --incl | --inc) 
 222     ac_prev
=includedir 
;; 
 223   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
 224   | --includ=* | --inclu=* | --incl=* | --inc=*) 
 225     includedir
="$ac_optarg" ;; 
 227   -infodir | --infodir | --infodi | --infod | --info | --inf) 
 229   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 
 230     infodir
="$ac_optarg" ;; 
 232   -libdir | --libdir | --libdi | --libd) 
 234   -libdir=* | --libdir=* | --libdi=* | --libd=*) 
 235     libdir
="$ac_optarg" ;; 
 237   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
 238   | --libexe | --libex | --libe) 
 239     ac_prev
=libexecdir 
;; 
 240   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
 241   | --libexe=* | --libex=* | --libe=*) 
 242     libexecdir
="$ac_optarg" ;; 
 244   -localstatedir | --localstatedir | --localstatedi | --localstated \
 
 245   | --localstate | --localstat | --localsta | --localst \
 
 246   | --locals | --local | --loca | --loc | --lo) 
 247     ac_prev
=localstatedir 
;; 
 248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
 249   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
 250   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 
 251     localstatedir
="$ac_optarg" ;; 
 253   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 
 255   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 
 256     mandir
="$ac_optarg" ;; 
 259     # Obsolete; use --without-fp. 
 262   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
 266   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
 267   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 
 270   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
 271   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
 272   | --oldin | --oldi | --old | --ol | --o) 
 273     ac_prev
=oldincludedir 
;; 
 274   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
 275   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
 276   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 
 277     oldincludedir
="$ac_optarg" ;; 
 279   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 
 281   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 
 282     prefix
="$ac_optarg" ;; 
 284   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
 285   | --program-pre | --program-pr | --program-p) 
 286     ac_prev
=program_prefix 
;; 
 287   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
 288   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 
 289     program_prefix
="$ac_optarg" ;; 
 291   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
 292   | --program-suf | --program-su | --program-s) 
 293     ac_prev
=program_suffix 
;; 
 294   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
 295   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 
 296     program_suffix
="$ac_optarg" ;; 
 298   -program-transform-name | --program-transform-name \
 
 299   | --program-transform-nam | --program-transform-na \
 
 300   | --program-transform-n | --program-transform- \
 
 301   | --program-transform | --program-transfor \
 
 302   | --program-transfo | --program-transf \
 
 303   | --program-trans | --program-tran \
 
 304   | --progr-tra | --program-tr | --program-t) 
 305     ac_prev
=program_transform_name 
;; 
 306   -program-transform-name=* | --program-transform-name=* \
 
 307   | --program-transform-nam=* | --program-transform-na=* \
 
 308   | --program-transform-n=* | --program-transform-=* \
 
 309   | --program-transform=* | --program-transfor=* \
 
 310   | --program-transfo=* | --program-transf=* \
 
 311   | --program-trans=* | --program-tran=* \
 
 312   | --progr-tra=* | --program-tr=* | --program-t=*) 
 313     program_transform_name
="$ac_optarg" ;; 
 315   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
 316   | -silent | --silent | --silen | --sile | --sil) 
 319   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 
 321   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
 323     sbindir
="$ac_optarg" ;; 
 325   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
 326   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
 327   | --sharedst | --shareds | --shared | --share | --shar \
 
 329     ac_prev
=sharedstatedir 
;; 
 330   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
 331   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
 332   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
 334     sharedstatedir
="$ac_optarg" ;; 
 336   -site | --site | --sit) 
 338   -site=* | --site=* | --sit=*) 
 341   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 
 343   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 
 344     srcdir
="$ac_optarg" ;; 
 346   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
 347   | --syscon | --sysco | --sysc | --sys | --sy) 
 348     ac_prev
=sysconfdir 
;; 
 349   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
 350   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 
 351     sysconfdir
="$ac_optarg" ;; 
 353   -target | --target | --targe | --targ | --tar | --ta | --t) 
 355   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 
 356     target
="$ac_optarg" ;; 
 358   -v | -verbose | --verbose | --verbos | --verbo | --verb) 
 361   -version | --version | --versio | --versi | --vers) 
 362     echo "configure generated by autoconf version 2.13" 
 366     ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 
 367     # Reject names that are not valid shell variable names. 
 368     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 
 369       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 
 371     ac_package
=`echo $ac_package| sed 's/-/_/g'` 
 376     eval "with_${ac_package}='$ac_optarg'" ;; 
 378   -without-* | --without-*) 
 379     ac_package
=`echo $ac_option|sed -e 's/-*without-//'` 
 380     # Reject names that are not valid shell variable names. 
 381     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 
 382       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 
 384     ac_package
=`echo $ac_package| sed 's/-/_/g'` 
 385     eval "with_${ac_package}=no" ;; 
 388     # Obsolete; use --with-x. 
 391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
 392   | --x-incl | --x-inc | --x-in | --x-i) 
 393     ac_prev
=x_includes 
;; 
 394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
 395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 
 396     x_includes
="$ac_optarg" ;; 
 398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
 399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 
 400     ac_prev
=x_libraries 
;; 
 401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
 402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 
 403     x_libraries
="$ac_optarg" ;; 
 405   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 
 409     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 
 410       echo "configure: warning: $ac_option: invalid host type" 1>&2 
 412     if test "x$nonopt" != xNONE
; then 
 413       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 
 421 if test -n "$ac_prev"; then 
 422   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 
 425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 
 427 # File descriptor usage: 
 430 # 2 errors and warnings 
 431 # 3 some systems may open it to /dev/tty 
 432 # 4 used on the Kubota Titan 
 433 # 6 checking for... messages and results 
 434 # 5 compiler messages saved in config.log 
 435 if test "$silent" = yes; then 
 443 This file contains any messages produced by compilers while 
 444 running configure, to aid debugging if configure makes a mistake. 
 447 # Strip out --no-create and --no-recursion so they do not pile up. 
 448 # Also quote any args containing shell metacharacters. 
 453   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
 454   | --no-cr | --no-c) ;; 
 455   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
 456   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 
 457   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 
 458   ac_configure_args
="$ac_configure_args '$ac_arg'" ;; 
 459   *) ac_configure_args
="$ac_configure_args $ac_arg" ;; 
 464 # Only set these to C if already set.  These must not be set unconditionally 
 465 # because not all systems understand e.g. LANG=C (notably SCO). 
 466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 
 467 # Non-C LC_CTYPE values break the ctype check. 
 468 if test "${LANG+set}"   = set; then LANG
=C
;   export LANG
;   fi 
 469 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi 
 470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi 
 471 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE
=C
;    export LC_CTYPE
;    fi 
 473 # confdefs.h avoids OS command line length limits that DEFS can exceed. 
 474 rm -rf conftest
* confdefs.h
 
 475 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 
 478 # A filename unique to this package, relative to the directory that 
 479 # configure is in, which we can look for to find out if srcdir is correct. 
 480 ac_unique_file
=Include
/swig.h
 
 482 # Find the source files, if location was not specified. 
 483 if test -z "$srcdir"; then 
 484   ac_srcdir_defaulted
=yes 
 485   # Try the directory containing this script, then its parent. 
 487   ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 
 488   test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
 
 490   if test ! -r $srcdir/$ac_unique_file; then 
 494   ac_srcdir_defaulted
=no
 
 496 if test ! -r $srcdir/$ac_unique_file; then 
 497   if test "$ac_srcdir_defaulted" = yes; then 
 498     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 
 500     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 
 503 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 
 505 # Prefer explicitly selected file to automatically selected ones. 
 506 if test -z "$CONFIG_SITE"; then 
 507   if test "x$prefix" != xNONE
; then 
 508     CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site" 
 510     CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 
 513 for ac_site_file 
in $CONFIG_SITE; do 
 514   if test -r "$ac_site_file"; then 
 515     echo "loading site script $ac_site_file" 
 520 if test -r "$cache_file"; then 
 521   echo "loading cache $cache_file" 
 524   echo "creating cache $cache_file" 
 529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 530 ac_cpp
='$CPP $CPPFLAGS' 
 531 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 532 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 533 cross_compiling
=$ac_cv_prog_cc_cross 
 537 if (echo "testing\c"; echo 1,2,3) | grep c 
>/dev
/null
; then 
 538   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 
 539   if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn 
>/dev
/null
; then 
 546   ac_n
= ac_c
='\c' ac_t
= 
 552 # Set name for machine-dependent library files 
 554 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 
 555 echo "configure:556: checking MACHDEP" >&5 
 556 if test -z "$MACHDEP" 
 558         if test -f /usr
/lib
/NextStep
/software_version
; then 
 559                 set X 
`hostinfo | grep 'NeXT Mach.*:' | \ 
 560                         sed -e 's/://' -e 's/\./_/'` && \
 
 561                 ac_sys_system
=next 
&& ac_sys_release
=$4 
 562                 MACHDEP
="$ac_sys_system$ac_sys_release$ac_sys_cpu" 
 564                 ac_sys_system
=`uname -s` 
 565                 if test "$ac_sys_system" = "AIX" ; then 
 566                         ac_sys_release
=`uname -v` 
 568                         ac_sys_release
=`uname -r` 
 570                 ac_md_system
=`echo $ac_sys_system | 
 571                                    tr -d '/ ' | tr '[A-Z]' '[a-z]'` 
 572                 ac_md_release
=`echo $ac_sys_release | 
 573                                    tr -d '/ ' | sed 's/\..*//'` 
 574                 MACHDEP
="$ac_md_system$ac_md_release" 
 577         '')     MACHDEP
=unknown
;; 
 580 echo "$ac_t""$MACHDEP" 1>&6 
 583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 584 ac_cpp
='$CXXCPP $CPPFLAGS' 
 585 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 586 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 587 cross_compiling
=$ac_cv_prog_cxx_cross 
 590 for ac_prog 
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
 
 592 # Extract the first word of "$ac_prog", so it can be a program name with args. 
 593 set dummy 
$ac_prog; ac_word
=$2 
 594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 595 echo "configure:596: checking for $ac_word" >&5 
 596 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 
 597   echo $ac_n "(cached) $ac_c" 1>&6 
 599   if test -n "$CXX"; then 
 600   ac_cv_prog_CXX
="$CXX" # Let the user override the test. 
 602   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
 604   for ac_dir 
in $ac_dummy; do 
 605     test -z "$ac_dir" && ac_dir
=.
 
 606     if test -f $ac_dir/$ac_word; then 
 607       ac_cv_prog_CXX
="$ac_prog" 
 614 CXX
="$ac_cv_prog_CXX" 
 615 if test -n "$CXX"; then 
 616   echo "$ac_t""$CXX" 1>&6 
 618   echo "$ac_t""no" 1>&6 
 621 test -n "$CXX" && break 
 623 test -n "$CXX" || CXX
="gcc" 
 626 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
 627 echo "configure:628: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 
 630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 631 ac_cpp
='$CXXCPP $CPPFLAGS' 
 632 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 633 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 634 cross_compiling
=$ac_cv_prog_cxx_cross 
 636 cat > conftest.
$ac_ext << EOF 
 638 #line 639 "configure" 
 639 #include "confdefs.h" 
 641 int main(){return(0);} 
 643 if { (eval echo configure
:644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
 644   ac_cv_prog_cxx_works
=yes 
 645   # If we can't run a trivial program, we are probably using a cross compiler. 
 646   if (.
/conftest
; exit) 2>/dev
/null
; then 
 647     ac_cv_prog_cxx_cross
=no
 
 649     ac_cv_prog_cxx_cross
=yes 
 652   echo "configure: failed program was:" >&5 
 653   cat conftest.
$ac_ext >&5 
 654   ac_cv_prog_cxx_works
=no
 
 658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 659 ac_cpp
='$CXXCPP $CPPFLAGS' 
 660 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 661 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 662 cross_compiling
=$ac_cv_prog_cxx_cross 
 664 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 
 665 if test $ac_cv_prog_cxx_works = no
; then 
 666   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 
 668 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
 669 echo "configure:670: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 
 670 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 
 671 cross_compiling
=$ac_cv_prog_cxx_cross 
 673 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 
 674 echo "configure:675: checking whether we are using GNU C++" >&5 
 675 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 
 676   echo $ac_n "(cached) $ac_c" 1>&6 
 678   cat > conftest.C 
<<EOF 
 683 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null 
2>&1; then 
 690 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 
 692 if test $ac_cv_prog_gxx = yes; then 
 698 ac_test_CXXFLAGS
="${CXXFLAGS+set}" 
 699 ac_save_CXXFLAGS
="$CXXFLAGS" 
 701 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 
 702 echo "configure:703: checking whether ${CXX-g++} accepts -g" >&5 
 703 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 
 704   echo $ac_n "(cached) $ac_c" 1>&6 
 706   echo 'void f(){}' > conftest.cc
 
 707 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 
 716 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 
 717 if test "$ac_test_CXXFLAGS" = set; then 
 718   CXXFLAGS
="$ac_save_CXXFLAGS" 
 719 elif test $ac_cv_prog_cxx_g = yes; then 
 720   if test "$GXX" = yes; then 
 726   if test "$GXX" = yes; then 
 733 # Extract the first word of "gcc", so it can be a program name with args. 
 734 set dummy gcc
; ac_word
=$2 
 735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 736 echo "configure:737: checking for $ac_word" >&5 
 737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
 738   echo $ac_n "(cached) $ac_c" 1>&6 
 740   if test -n "$CC"; then 
 741   ac_cv_prog_CC
="$CC" # Let the user override the test. 
 743   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
 745   for ac_dir 
in $ac_dummy; do 
 746     test -z "$ac_dir" && ac_dir
=.
 
 747     if test -f $ac_dir/$ac_word; then 
 756 if test -n "$CC"; then 
 757   echo "$ac_t""$CC" 1>&6 
 759   echo "$ac_t""no" 1>&6 
 762 if test -z "$CC"; then 
 763   # Extract the first word of "cc", so it can be a program name with args. 
 764 set dummy cc
; ac_word
=$2 
 765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 766 echo "configure:767: checking for $ac_word" >&5 
 767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
 768   echo $ac_n "(cached) $ac_c" 1>&6 
 770   if test -n "$CC"; then 
 771   ac_cv_prog_CC
="$CC" # Let the user override the test. 
 773   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
 776   for ac_dir 
in $ac_dummy; do 
 777     test -z "$ac_dir" && ac_dir
=.
 
 778     if test -f $ac_dir/$ac_word; then 
 779       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 
 788 if test $ac_prog_rejected = yes; then 
 789   # We found a bogon in the path, so make sure we never use it. 
 790   set dummy 
$ac_cv_prog_CC 
 792   if test $# -gt 0; then 
 793     # We chose a different compiler from the bogus one. 
 794     # However, it has the same basename, so the bogon will be chosen 
 795     # first if we set CC to just the basename; use the full file name. 
 797     set dummy 
"$ac_dir/$ac_word" "$@" 
 805 if test -n "$CC"; then 
 806   echo "$ac_t""$CC" 1>&6 
 808   echo "$ac_t""no" 1>&6 
 811   if test -z "$CC"; then 
 814       # Extract the first word of "cl", so it can be a program name with args. 
 815 set dummy cl
; ac_word
=$2 
 816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 817 echo "configure:818: checking for $ac_word" >&5 
 818 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
 819   echo $ac_n "(cached) $ac_c" 1>&6 
 821   if test -n "$CC"; then 
 822   ac_cv_prog_CC
="$CC" # Let the user override the test. 
 824   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
 826   for ac_dir 
in $ac_dummy; do 
 827     test -z "$ac_dir" && ac_dir
=.
 
 828     if test -f $ac_dir/$ac_word; then 
 837 if test -n "$CC"; then 
 838   echo "$ac_t""$CC" 1>&6 
 840   echo "$ac_t""no" 1>&6 
 845   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 
 848 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
 849 echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
 852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 853 ac_cpp
='$CPP $CPPFLAGS' 
 854 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 855 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 856 cross_compiling
=$ac_cv_prog_cc_cross 
 858 cat > conftest.
$ac_ext << EOF 
 860 #line 861 "configure" 
 861 #include "confdefs.h" 
 865 if { (eval echo configure
:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
 866   ac_cv_prog_cc_works
=yes 
 867   # If we can't run a trivial program, we are probably using a cross compiler. 
 868   if (.
/conftest
; exit) 2>/dev
/null
; then 
 869     ac_cv_prog_cc_cross
=no
 
 871     ac_cv_prog_cc_cross
=yes 
 874   echo "configure: failed program was:" >&5 
 875   cat conftest.
$ac_ext >&5 
 876   ac_cv_prog_cc_works
=no
 
 880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
 881 ac_cpp
='$CXXCPP $CPPFLAGS' 
 882 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
 883 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
 884 cross_compiling
=$ac_cv_prog_cxx_cross 
 886 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 
 887 if test $ac_cv_prog_cc_works = no
; then 
 888   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 
 890 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
 891 echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
 892 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
 893 cross_compiling
=$ac_cv_prog_cc_cross 
 895 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
 896 echo "configure:897: checking whether we are using GNU C" >&5 
 897 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
 898   echo $ac_n "(cached) $ac_c" 1>&6 
 900   cat > conftest.c 
<<EOF 
 905 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null 
2>&1; then 
 912 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 
 914 if test $ac_cv_prog_gcc = yes; then 
 920 ac_test_CFLAGS
="${CFLAGS+set}" 
 921 ac_save_CFLAGS
="$CFLAGS" 
 923 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
 924 echo "configure:925: checking whether ${CC-cc} accepts -g" >&5 
 925 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
 926   echo $ac_n "(cached) $ac_c" 1>&6 
 928   echo 'void f(){}' > conftest.c
 
 929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 
 938 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 
 939 if test "$ac_test_CFLAGS" = set; then 
 940   CFLAGS
="$ac_save_CFLAGS" 
 941 elif test $ac_cv_prog_cc_g = yes; then 
 942   if test "$GCC" = yes; then 
 948   if test "$GCC" = yes; then 
 955 # Extract the first word of "ranlib", so it can be a program name with args. 
 956 set dummy ranlib
; ac_word
=$2 
 957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 958 echo "configure:959: checking for $ac_word" >&5 
 959 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 
 960   echo $ac_n "(cached) $ac_c" 1>&6 
 962   if test -n "$RANLIB"; then 
 963   ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test. 
 965   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
 967   for ac_dir 
in $ac_dummy; do 
 968     test -z "$ac_dir" && ac_dir
=.
 
 969     if test -f $ac_dir/$ac_word; then 
 970       ac_cv_prog_RANLIB
="ranlib" 
 975   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":" 
 978 RANLIB
="$ac_cv_prog_RANLIB" 
 979 if test -n "$RANLIB"; then 
 980   echo "$ac_t""$RANLIB" 1>&6 
 982   echo "$ac_t""no" 1>&6 
 987 for ac_prog 
in ar aal
 
 989 # Extract the first word of "$ac_prog", so it can be a program name with args. 
 990 set dummy 
$ac_prog; ac_word
=$2 
 991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
 992 echo "configure:993: checking for $ac_word" >&5 
 993 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 
 994   echo $ac_n "(cached) $ac_c" 1>&6 
 996   if test -n "$AR"; then 
 997   ac_cv_prog_AR
="$AR" # Let the user override the test. 
 999   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
1001   for ac_dir 
in $ac_dummy; do 
1002     test -z "$ac_dir" && ac_dir
=.
 
1003     if test -f $ac_dir/$ac_word; then 
1004       ac_cv_prog_AR
="$ac_prog" 
1012 if test -n "$AR"; then 
1013   echo "$ac_t""$AR" 1>&6 
1015   echo "$ac_t""no" 1>&6 
1018 test -n "$AR" && break 
1020 test -n "$AR" || AR
="ar" 
1023 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 
1024 echo "configure:1025: checking how to run the C++ preprocessor" >&5 
1025 if test -z "$CXXCPP"; then 
1026 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 
1027   echo $ac_n "(cached) $ac_c" 1>&6 
1030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
1031 ac_cpp
='$CXXCPP $CPPFLAGS' 
1032 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
1033 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
1034 cross_compiling
=$ac_cv_prog_cxx_cross 
1035   CXXCPP
="${CXX-g++} -E" 
1036   cat > conftest.
$ac_ext <<EOF 
1037 #line 1038 "configure" 
1038 #include "confdefs.h" 
1041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
1042 { (eval echo configure
:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
1043 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
1044 if test -z "$ac_err"; then 
1048   echo "configure: failed program was:" >&5 
1049   cat conftest.
$ac_ext >&5 
1054   ac_cv_prog_CXXCPP
="$CXXCPP" 
1056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 
1057 ac_cpp
='$CXXCPP $CPPFLAGS' 
1058 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 
1059 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 
1060 cross_compiling
=$ac_cv_prog_cxx_cross 
1063 CXXCPP
="$ac_cv_prog_CXXCPP" 
1064 echo "$ac_t""$CXXCPP" 1>&6 
1066 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 
1067 echo "configure:1068: checking for ANSI C header files" >&5 
1068 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 
1069   echo $ac_n "(cached) $ac_c" 1>&6 
1071   cat > conftest.
$ac_ext <<EOF 
1072 #line 1073 "configure" 
1073 #include "confdefs.h" 
1079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
1080 { (eval echo configure
:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
1081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
1082 if test -z "$ac_err"; then 
1084   ac_cv_header_stdc
=yes 
1087   echo "configure: failed program was:" >&5 
1088   cat conftest.
$ac_ext >&5 
1090   ac_cv_header_stdc
=no
 
1094 if test $ac_cv_header_stdc = yes; then 
1095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 
1096 cat > conftest.
$ac_ext <<EOF 
1097 #line 1098 "configure" 
1098 #include "confdefs.h" 
1101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
1102   egrep "memchr" >/dev
/null 
2>&1; then 
1106   ac_cv_header_stdc
=no
 
1112 if test $ac_cv_header_stdc = yes; then 
1113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 
1114 cat > conftest.
$ac_ext <<EOF 
1115 #line 1116 "configure" 
1116 #include "confdefs.h" 
1119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
1120   egrep "free" >/dev
/null 
2>&1; then 
1124   ac_cv_header_stdc
=no
 
1130 if test $ac_cv_header_stdc = yes; then 
1131   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 
1132 if test "$cross_compiling" = yes; then 
1135   cat > conftest.
$ac_ext <<EOF 
1136 #line 1137 "configure" 
1137 #include "confdefs.h" 
1139 extern "C" void exit(int) throw (); 
1142 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 
1143 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 
1144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 
1145 int main () { int i; for (i = 0; i < 256; i++) 
1146 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 
1150 if { (eval echo configure
:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
 
1154   echo "configure: failed program was:" >&5 
1155   cat conftest.
$ac_ext >&5 
1157   ac_cv_header_stdc
=no
 
1165 echo "$ac_t""$ac_cv_header_stdc" 1>&6 
1166 if test $ac_cv_header_stdc = yes; then 
1167   cat >> confdefs.h 
<<\EOF
 
1168 #define STDC_HEADERS 1 
1174 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 
1175 # for constant arguments.  Useless! 
1176 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 
1177 echo "configure:1178: checking for working alloca.h" >&5 
1178 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 
1179   echo $ac_n "(cached) $ac_c" 1>&6 
1181   cat > conftest.
$ac_ext <<EOF 
1182 #line 1183 "configure" 
1183 #include "confdefs.h" 
1186 char *p = alloca(2 * sizeof(int)); 
1189 if { (eval echo configure
:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1191   ac_cv_header_alloca_h
=yes 
1193   echo "configure: failed program was:" >&5 
1194   cat conftest.
$ac_ext >&5 
1196   ac_cv_header_alloca_h
=no
 
1201 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 
1202 if test $ac_cv_header_alloca_h = yes; then 
1203   cat >> confdefs.h 
<<\EOF
 
1204 #define HAVE_ALLOCA_H 1 
1209 echo $ac_n "checking for alloca""... $ac_c" 1>&6 
1210 echo "configure:1211: checking for alloca" >&5 
1211 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 
1212   echo $ac_n "(cached) $ac_c" 1>&6 
1214   cat > conftest.
$ac_ext <<EOF 
1215 #line 1216 "configure" 
1216 #include "confdefs.h" 
1219 # define alloca __builtin_alloca 
1222 #  include <malloc.h> 
1223 #  define alloca _alloca 
1226 #   include <alloca.h> 
1231 #    ifndef alloca /* predefined by HP cc +Olibcalls */ 
1240 char *p = (char *) alloca(1); 
1243 if { (eval echo configure
:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1245   ac_cv_func_alloca_works
=yes 
1247   echo "configure: failed program was:" >&5 
1248   cat conftest.
$ac_ext >&5 
1250   ac_cv_func_alloca_works
=no
 
1255 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 
1256 if test $ac_cv_func_alloca_works = yes; then 
1257   cat >> confdefs.h 
<<\EOF
 
1258 #define HAVE_ALLOCA 1 
1263 if test $ac_cv_func_alloca_works = no
; then 
1264   # The SVR3 libPW and SVR4 libucb both contain incompatible functions 
1265   # that cause trouble.  Some versions do not even contain alloca or 
1266   # contain a buggy version.  If you still want to use their alloca, 
1267   # use ar to extract alloca.o from them instead of compiling alloca.c. 
1268   ALLOCA
=alloca.
${ac_objext} 
1269   cat >> confdefs.h 
<<\EOF
 
1274 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 
1275 echo "configure:1276: checking whether alloca needs Cray hooks" >&5 
1276 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 
1277   echo $ac_n "(cached) $ac_c" 1>&6 
1279   cat > conftest.
$ac_ext <<EOF 
1280 #line 1281 "configure" 
1281 #include "confdefs.h" 
1282 #if defined(CRAY) && ! defined(CRAY2) 
1289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 
1290   egrep "webecray" >/dev
/null 
2>&1; then 
1301 echo "$ac_t""$ac_cv_os_cray" 1>&6 
1302 if test $ac_cv_os_cray = yes; then 
1303 for ac_func 
in _getb67 GETB67 getb67
; do 
1304   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
1305 echo "configure:1306: checking for $ac_func" >&5 
1306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
1307   echo $ac_n "(cached) $ac_c" 1>&6 
1309   cat > conftest.
$ac_ext <<EOF 
1310 #line 1311 "configure" 
1311 #include "confdefs.h" 
1312 /* System header to define __stub macros and hopefully few prototypes, 
1313     which can conflict with char $ac_func(); below.  */ 
1315 /* Override any gcc2 internal prototype to avoid an error.  */ 
1319 /* We use char because int might match the return type of a gcc2 
1320     builtin and then its argument prototype would still apply.  */ 
1325 /* The GNU C library defines this for functions which it implements 
1326     to always fail with ENOSYS.  Some functions are actually named 
1327     something starting with __ and the normal name is an alias.  */ 
1328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 
1336 if { (eval echo configure
:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1338   eval "ac_cv_func_$ac_func=yes" 
1340   echo "configure: failed program was:" >&5 
1341   cat conftest.
$ac_ext >&5 
1343   eval "ac_cv_func_$ac_func=no" 
1348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 
1349   echo "$ac_t""yes" 1>&6 
1350   cat >> confdefs.h 
<<EOF 
1351 #define CRAY_STACKSEG_END $ac_func 
1356   echo "$ac_t""no" 1>&6 
1362 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 
1363 echo "configure:1364: checking stack direction for C alloca" >&5 
1364 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 
1365   echo $ac_n "(cached) $ac_c" 1>&6 
1367   if test "$cross_compiling" = yes; then 
1368   ac_cv_c_stack_direction
=0 
1370   cat > conftest.
$ac_ext <<EOF 
1371 #line 1372 "configure" 
1372 #include "confdefs.h" 
1374 extern "C" void exit(int) throw (); 
1376 find_stack_direction () 
1378   static char *addr = 0; 
1383       return find_stack_direction (); 
1386     return (&dummy > addr) ? 1 : -1; 
1390   exit (find_stack_direction() < 0); 
1393 if { (eval echo configure
:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
 
1395   ac_cv_c_stack_direction
=1 
1397   echo "configure: failed program was:" >&5 
1398   cat conftest.
$ac_ext >&5 
1400   ac_cv_c_stack_direction
=-1 
1407 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 
1408 cat >> confdefs.h 
<<EOF 
1409 #define STACK_DIRECTION $ac_cv_c_stack_direction 
1414 # Check whether --with-lang or --without-lang was given. 
1415 if test "${with_lang+set}" = set; then 
1416   withval
="$with_lang" 
1418         cat >> confdefs.h 
<<EOF 
1419 #define SWIG_LANG $withval 
1423   cat >> confdefs.h 
<<\EOF
 
1424 #define SWIG_LANG PYTHON 
1430 # Check whether --with-doc or --without-doc was given. 
1431 if test "${with_doc+set}" = set; then 
1434         cat >> confdefs.h 
<<EOF 
1435 #define SWIG_DOC $withval 
1439   cat >> confdefs.h 
<<\EOF
 
1440 #define SWIG_DOC ASCII 
1446 # Check whether --with-yacc or --without-yacc was given. 
1447 if test "${with_yacc+set}" = set; then 
1448   withval
="$with_yacc" 
1450         YACC
="cp parser.cxx.no y.tab.c; cp parser.h.no y.tab.h" 
1456    for ac_prog 
in 'bison -y' byacc
 
1458 # Extract the first word of "$ac_prog", so it can be a program name with args. 
1459 set dummy 
$ac_prog; ac_word
=$2 
1460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
1461 echo "configure:1462: checking for $ac_word" >&5 
1462 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 
1463   echo $ac_n "(cached) $ac_c" 1>&6 
1465   if test -n "$YACC"; then 
1466   ac_cv_prog_YACC
="$YACC" # Let the user override the test. 
1468   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
1470   for ac_dir 
in $ac_dummy; do 
1471     test -z "$ac_dir" && ac_dir
=.
 
1472     if test -f $ac_dir/$ac_word; then 
1473       ac_cv_prog_YACC
="$ac_prog" 
1480 YACC
="$ac_cv_prog_YACC" 
1481 if test -n "$YACC"; then 
1482   echo "$ac_t""$YACC" 1>&6 
1484   echo "$ac_t""no" 1>&6 
1487 test -n "$YACC" && break 
1489 test -n "$YACC" || YACC
="yacc" 
1491      YACCFLAGS
="-d parser.y" 
1496 # This borrowed from the Python configuration file 
1497 # Set info about shared libraries. 
1503 # SO is the extension of shared libraries `(including the dot!) 
1504 # -- usually .so, .sl on HP-UX 
1505 echo $ac_n "checking SO""... $ac_c" 1>&6 
1506 echo "configure:1507: checking SO" >&5 
1509         case $ac_sys_system in 
1511         NeXT
|next
) SO
=.a
;; # no shared libs on NeXT 3.3 and less 
1515 echo "$ac_t""$SO" 1>&6 
1516 # LDSHARED is the ld *command* used to create shared library 
1517 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 
1518 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 
1519 echo "configure:1520: checking LDSHARED" >&5 
1520 if test -z "$LDSHARED" 
1522         case $ac_sys_system/$ac_sys_release in 
1523         AIX
*) LDSHARED
="ld_so_aix";; 
1524         IRIX
*) LDSHARED
="ld -shared";; 
1525         SunOS
/4*) LDSHARED
="ld";; 
1526         SunOS
/5*) LDSHARED
="ld -G";; 
1527         hp
*|HP
*) LDSHARED
="ld -b";; 
1528         OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";; 
1529         DYNIX
/ptx*) LDSHARED
="ld -G";; 
1530         Linux
*) LDSHARED
="gcc -shared";; 
1531         FreeBSD
*) LDSHARED
="ld -Bshareable";; 
1532         NeXT
|next
/3*) LDSHARED
="ld -u libsys_s";; 
1536 echo "$ac_t""$LDSHARED" 1>&6 
1537 # CCSHARED are the C *flags* used to create objects to go into a shared 
1538 # library -- this is only needed for a few systems 
1539 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 
1540 echo "configure:1541: checking CCSHARED" >&5 
1541 if test -z "$CCSHARED" 
1543         case $ac_sys_system in 
1544         hp
*|HP
*) if test "$GCC" = yes; 
1545                  then CCSHARED
="-fpic"; 
1548         Linux
*) CCSHARED
="-fpic";; 
1549         FreeBSD
*) CCSHARED
="-fpic";; 
1552 echo "$ac_t""$CCSHARED" 1>&6 
1554 # LINKFORSHARED are the flags passed to the $(CC) command that links 
1555 # the a few executables -- this is only needed for a few systems 
1557 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 
1558 echo "configure:1559: checking LINKFORSHARED" >&5 
1559 if test -z "$LINKFORSHARED" 
1561         case $ac_sys_system/$ac_sys_release in 
1562         AIX
*)   LINKFORSHARED
='-Wl,-bE:$(srcdir)/python.exp -lld';; 
1564             LINKFORSHARED
="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 
1565         Linux
*) LINKFORSHARED
="-Xlinker -export-dynamic";; 
1566         next
/*) LINKFORSHARED
="-u libsys_s";; 
1567         SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";; 
1568         IRIX
*/6*) LINKFORSHARED
="-all";; 
1571 echo "$ac_t""$LINKFORSHARED" 1>&6 
1574 echo "Checking for installed packages." 
1575 echo "Note : None of the following packages are required to compile SWIG" 
1578 # Check for specific libraries.   Used for SWIG examples 
1579 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 
1580 echo "configure:1581: checking for dlopen in -ldl" >&5 
1581 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 
1582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1583   echo $ac_n "(cached) $ac_c" 1>&6 
1585   ac_save_LIBS
="$LIBS" 
1587 cat > conftest.
$ac_ext <<EOF 
1588 #line 1589 "configure" 
1589 #include "confdefs.h" 
1590 /* Override any gcc2 internal prototype to avoid an error.  */ 
1594 /* We use char because int might match the return type of a gcc2 
1595     builtin and then its argument prototype would still apply.  */ 
1602 if { (eval echo configure
:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1604   eval "ac_cv_lib_$ac_lib_var=yes" 
1606   echo "configure: failed program was:" >&5 
1607   cat conftest.
$ac_ext >&5 
1609   eval "ac_cv_lib_$ac_lib_var=no" 
1612 LIBS
="$ac_save_LIBS" 
1615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1616   echo "$ac_t""yes" 1>&6 
1617     ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 
1618     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 
1619   cat >> confdefs.h 
<<EOF 
1620 #define $ac_tr_lib 1 
1626   echo "$ac_t""no" 1>&6 
1628         # Dynamic linking for SunOS/Solaris and SYSV 
1629 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 
1630 echo "configure:1631: checking for shl_load in -ldld" >&5 
1631 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 
1632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1633   echo $ac_n "(cached) $ac_c" 1>&6 
1635   ac_save_LIBS
="$LIBS" 
1637 cat > conftest.
$ac_ext <<EOF 
1638 #line 1639 "configure" 
1639 #include "confdefs.h" 
1640 /* Override any gcc2 internal prototype to avoid an error.  */ 
1644 /* We use char because int might match the return type of a gcc2 
1645     builtin and then its argument prototype would still apply.  */ 
1652 if { (eval echo configure
:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1654   eval "ac_cv_lib_$ac_lib_var=yes" 
1656   echo "configure: failed program was:" >&5 
1657   cat conftest.
$ac_ext >&5 
1659   eval "ac_cv_lib_$ac_lib_var=no" 
1662 LIBS
="$ac_save_LIBS" 
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1666   echo "$ac_t""yes" 1>&6 
1667     ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 
1668     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 
1669   cat >> confdefs.h 
<<EOF 
1670 #define $ac_tr_lib 1 
1676   echo "$ac_t""no" 1>&6 
1678         # Dynamic linking for HP-UX 
1680 # The following three (nsl,inet,socket) are needed on Sequent; 
1681 # the order of checking must be this.  Most SVR4 platforms will 
1682 # need -lsocket and -lnsl.  However on SGI IRIX 5, these exist but 
1683 # broken.  I see no elegant solution (probably CHECK_LIB should be 
1684 # fixed to only add the library if the given entry point is not 
1685 # satisfied without it). 
1686 if test "`uname -s`" != IRIX
 
1688 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 
1689 echo "configure:1690: checking for t_open in -lnsl" >&5 
1690 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` 
1691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1692   echo $ac_n "(cached) $ac_c" 1>&6 
1694   ac_save_LIBS
="$LIBS" 
1696 cat > conftest.
$ac_ext <<EOF 
1697 #line 1698 "configure" 
1698 #include "confdefs.h" 
1699 /* Override any gcc2 internal prototype to avoid an error.  */ 
1703 /* We use char because int might match the return type of a gcc2 
1704     builtin and then its argument prototype would still apply.  */ 
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1713   eval "ac_cv_lib_$ac_lib_var=yes" 
1715   echo "configure: failed program was:" >&5 
1716   cat conftest.
$ac_ext >&5 
1718   eval "ac_cv_lib_$ac_lib_var=no" 
1721 LIBS
="$ac_save_LIBS" 
1724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1725   echo "$ac_t""yes" 1>&6 
1728   echo "$ac_t""no" 1>&6 
1731 echo $ac_n "checking for gethostbyname in -linet""... $ac_c" 1>&6 
1732 echo "configure:1733: checking for gethostbyname in -linet" >&5 
1733 ac_lib_var
=`echo inet'_'gethostbyname | sed 'y%./+-%__p_%'` 
1734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1735   echo $ac_n "(cached) $ac_c" 1>&6 
1737   ac_save_LIBS
="$LIBS" 
1738 LIBS
="-linet -lnsl $LIBS" 
1739 cat > conftest.
$ac_ext <<EOF 
1740 #line 1741 "configure" 
1741 #include "confdefs.h" 
1742 /* Override any gcc2 internal prototype to avoid an error.  */ 
1746 /* We use char because int might match the return type of a gcc2 
1747     builtin and then its argument prototype would still apply.  */ 
1748 char gethostbyname(); 
1754 if { (eval echo configure
:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1756   eval "ac_cv_lib_$ac_lib_var=yes" 
1758   echo "configure: failed program was:" >&5 
1759   cat conftest.
$ac_ext >&5 
1761   eval "ac_cv_lib_$ac_lib_var=no" 
1764 LIBS
="$ac_save_LIBS" 
1767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1768   echo "$ac_t""yes" 1>&6 
1771   echo "$ac_t""no" 1>&6 
1774 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 
1775 echo "configure:1776: checking for socket in -lsocket" >&5 
1776 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'` 
1777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1778   echo $ac_n "(cached) $ac_c" 1>&6 
1780   ac_save_LIBS
="$LIBS" 
1781 LIBS
="-lsocket $LIBS $LIBS" 
1782 cat > conftest.
$ac_ext <<EOF 
1783 #line 1784 "configure" 
1784 #include "confdefs.h" 
1785 /* Override any gcc2 internal prototype to avoid an error.  */ 
1789 /* We use char because int might match the return type of a gcc2 
1790     builtin and then its argument prototype would still apply.  */ 
1797 if { (eval echo configure
:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1799   eval "ac_cv_lib_$ac_lib_var=yes" 
1801   echo "configure: failed program was:" >&5 
1802   cat conftest.
$ac_ext >&5 
1804   eval "ac_cv_lib_$ac_lib_var=no" 
1807 LIBS
="$ac_save_LIBS" 
1810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1811   echo "$ac_t""yes" 1>&6 
1812   LIBS
="-lsocket $LIBS" 
1814   echo "$ac_t""no" 1>&6 
1819 # check for --with-libm=... 
1822 # Check whether --with-libm or --without-libm was given. 
1823 if test "${with_libm+set}" = set; then 
1824   withval
="$with_libm" 
1826 if test "$withval" != yes 
1828 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; } 
1832 echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6 
1833 echo "configure:1834: checking for main in -lieee" >&5 
1834 ac_lib_var
=`echo ieee'_'main | sed 'y%./+-%__p_%'` 
1835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1836   echo $ac_n "(cached) $ac_c" 1>&6 
1838   ac_save_LIBS
="$LIBS" 
1840 cat > conftest.
$ac_ext <<EOF 
1841 #line 1842 "configure" 
1842 #include "confdefs.h" 
1848 if { (eval echo configure
:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1850   eval "ac_cv_lib_$ac_lib_var=yes" 
1852   echo "configure: failed program was:" >&5 
1853   cat conftest.
$ac_ext >&5 
1855   eval "ac_cv_lib_$ac_lib_var=no" 
1858 LIBS
="$ac_save_LIBS" 
1861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1862   echo "$ac_t""yes" 1>&6 
1865   echo "$ac_t""no" 1>&6 
1868 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 
1869 echo "configure:1870: checking for crypt in -lcrypt" >&5 
1870 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 
1871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
1872   echo $ac_n "(cached) $ac_c" 1>&6 
1874   ac_save_LIBS
="$LIBS" 
1875 LIBS
="-lcrypt  $LIBS" 
1876 cat > conftest.
$ac_ext <<EOF 
1877 #line 1878 "configure" 
1878 #include "confdefs.h" 
1879 /* Override any gcc2 internal prototype to avoid an error.  */ 
1883 /* We use char because int might match the return type of a gcc2 
1884     builtin and then its argument prototype would still apply.  */ 
1891 if { (eval echo configure
:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
1893   eval "ac_cv_lib_$ac_lib_var=yes" 
1895   echo "configure: failed program was:" >&5 
1896   cat conftest.
$ac_ext >&5 
1898   eval "ac_cv_lib_$ac_lib_var=no" 
1901 LIBS
="$ac_save_LIBS" 
1904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
1905   echo "$ac_t""yes" 1>&6 
1908   echo "$ac_t""no" 1>&6 
1913 # check for --with-libc=... 
1915 # Check whether --with-libc or --without-libc was given. 
1916 if test "${with_libc+set}" = set; then 
1917   withval
="$with_libc" 
1919 if test "$withval" != yes 
1921 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; } 
1926 #-------------------------------------------------------------------- 
1927 #       Locate the X11 header files and the X11 library archive.  Try 
1928 #       the ac_path_x macro first, but if it doesn't find the X stuff 
1929 #       (e.g. because there's no xmkmf program) then check through 
1930 #       a list of possible directories.  Under some conditions the 
1931 #       autoconf macro will return an include directory that contains 
1932 #       no include files, so double-check its result just to be safe. 
1933 #-------------------------------------------------------------------- 
1935 # If we find X, set shell vars x_includes and x_libraries to the 
1936 # paths, otherwise set no_x=yes. 
1937 # Uses ac_ vars as temps to allow command line to override cache and checks. 
1938 # --without-x overrides everything else, but does not touch the cache. 
1939 echo $ac_n "checking for X""... $ac_c" 1>&6 
1940 echo "configure:1941: checking for X" >&5 
1942 # Check whether --with-x or --without-x was given. 
1943 if test "${with_x+set}" = set; then 
1948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 
1949 if test "x$with_x" = xno
; then 
1950   # The user explicitly disabled X. 
1953   if test "x$x_includes" != xNONE 
&& test "x$x_libraries" != xNONE
; then 
1954     # Both variables are already set. 
1957 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 
1958   echo $ac_n "(cached) $ac_c" 1>&6 
1960   # One or both of the vars are not set, and there is no cached value. 
1961 ac_x_includes
=NO ac_x_libraries
=NO
 
1963 if mkdir conftestdir
; then 
1965   # Make sure to not put "make" in the Imakefile rules, since we grep it out. 
1966   cat > Imakefile 
<<'EOF' 
1968         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 
1970   if (xmkmf
) >/dev
/null 
2>/dev
/null 
&& test -f Makefile
; then 
1971     # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 
1972     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 
1973     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 
1974     for ac_extension 
in a so sl
; do 
1975       if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension && 
1976         test -f $ac_im_libdir/libX11.
$ac_extension; then 
1977         ac_im_usrlibdir
=$ac_im_libdir; break 
1980     # Screen out bogus values from the imake configuration.  They are 
1981     # bogus both because they are the default anyway, and because 
1982     # using them would break gcc on systems where it needs fixed includes. 
1983     case "$ac_im_incroot" in 
1985         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;; 
1987     case "$ac_im_usrlibdir" in 
1989         *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;; 
1996 if test "$ac_x_includes" = NO
; then 
1997   # Guess where to find include files, by looking for this one X11 .h file. 
1998   test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
 
2000   # First, try using that file with no special directory specified. 
2001 cat > conftest.
$ac_ext <<EOF 
2002 #line 2003 "configure" 
2003 #include "confdefs.h" 
2004 #include <$x_direct_test_include> 
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
2009 if test -z "$ac_err"; then 
2011   # We can compile using X headers with no special include directory. 
2015   echo "configure: failed program was:" >&5 
2016   cat conftest.
$ac_ext >&5 
2018   # Look for the header file in a standard set of common directories. 
2019 # Check X11 before X11Rn because it is often a symlink to the current release. 
2022     /usr
/X
11R
6/include        \
 
2023     /usr
/X
11R
5/include        \
 
2024     /usr
/X
11R
4/include        \
 
2027     /usr
/include
/X11R6        \
 
2028     /usr
/include
/X11R5        \
 
2029     /usr
/include
/X11R4        \
 
2031     /usr
/local
/X
11/include    \
 
2032     /usr
/local
/X
11R
6/include  \
 
2033     /usr
/local
/X
11R
5/include  \
 
2034     /usr
/local
/X
11R
4/include  \
 
2036     /usr
/local
/include
/X11    \
 
2037     /usr
/local
/include
/X11R6  \
 
2038     /usr
/local
/include
/X11R5  \
 
2039     /usr
/local
/include
/X11R4  \
 
2043     /usr
/XFree
86/include
/X11  \
 
2046     /usr
/local
/include        \
 
2047     /usr
/unsupported
/include  \
 
2048     /usr
/athena
/include       \
 
2049     /usr
/local
/x
11r
5/include  \
 
2050     /usr
/lpp
/Xamples
/include  \
 
2052     /usr
/openwin
/include      \
 
2053     /usr
/openwin
/share
/include \
 
2056     if test -r "$ac_dir/$x_direct_test_include"; then 
2057       ac_x_includes
=$ac_dir 
2063 fi # $ac_x_includes = NO 
2065 if test "$ac_x_libraries" = NO
; then 
2066   # Check for the libraries. 
2068   test -z "$x_direct_test_library" && x_direct_test_library
=Xt
 
2069   test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
 
2071   # See if we find them without any special options. 
2072   # Don't add to $LIBS permanently. 
2073   ac_save_LIBS
="$LIBS" 
2074   LIBS
="-l$x_direct_test_library $LIBS" 
2075 cat > conftest.
$ac_ext <<EOF 
2076 #line 2077 "configure" 
2077 #include "confdefs.h" 
2080 ${x_direct_test_function}() 
2083 if { (eval echo configure
:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
2085   LIBS
="$ac_save_LIBS" 
2086 # We can link X programs with no special library path. 
2089   echo "configure: failed program was:" >&5 
2090   cat conftest.
$ac_ext >&5 
2092   LIBS
="$ac_save_LIBS" 
2093 # First see if replacing the include by lib works. 
2094 # Check X11 before X11Rn because it is often a symlink to the current release. 
2095 for ac_dir 
in `echo "$ac_x_includes" | sed s/include/lib/` \
 
2106     /usr
/local
/X
11/lib    \
 
2107     /usr
/local
/X
11R
6/lib  \
 
2108     /usr
/local
/X
11R
5/lib  \
 
2109     /usr
/local
/X
11R
4/lib  \
 
2111     /usr
/local
/lib
/X11    \
 
2112     /usr
/local
/lib
/X11R6  \
 
2113     /usr
/local
/lib
/X11R5  \
 
2114     /usr
/local
/lib
/X11R4  \
 
2118     /usr
/XFree
86/lib
/X11  \
 
2122     /usr
/unsupported
/lib  \
 
2124     /usr
/local
/x
11r
5/lib  \
 
2125     /usr
/lpp
/Xamples
/lib  \
 
2129     /usr
/openwin
/share
/lib \
 
2132   for ac_extension 
in a so sl
; do 
2133     if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then 
2134       ac_x_libraries
=$ac_dir 
2141 fi # $ac_x_libraries = NO 
2143 if test "$ac_x_includes" = NO 
|| test "$ac_x_libraries" = NO
; then 
2144   # Didn't find X anywhere.  Cache the known absence of X. 
2145   ac_cv_have_x
="have_x=no" 
2147   # Record where we found X for the cache. 
2148   ac_cv_have_x
="have_x=yes \ 
2149                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 
2153   eval "$ac_cv_have_x" 
2156 if test "$have_x" != yes; then 
2157   echo "$ac_t""$have_x" 1>&6 
2160   # If each of the values was on the command line, it overrides each guess. 
2161   test "x$x_includes" = xNONE 
&& x_includes
=$ac_x_includes 
2162   test "x$x_libraries" = xNONE 
&& x_libraries
=$ac_x_libraries 
2163   # Update the cache value to reflect the command line values. 
2164   ac_cv_have_x
="have_x=yes \ 
2165                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 
2166   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 
2170 if test "$no_x" = ""; then 
2171     if test "$x_includes" = ""; then 
2172         cat > conftest.
$ac_ext <<EOF 
2173 #line 2174 "configure" 
2174 #include "confdefs.h" 
2175 #include <X11/XIntrinsic.h> 
2177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
2178 { (eval echo configure
:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
2179 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
2180 if test -z "$ac_err"; then 
2184   echo "configure: failed program was:" >&5 
2185   cat conftest.
$ac_ext >&5 
2187   not_really_there
="yes" 
2191         if test ! -r $x_includes/X
11/Intrinsic.h
; then 
2192             not_really_there
="yes" 
2196 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 
2197     echo $ac_n "checking for X11 header files""... $ac_c" 1>&6 
2198 echo "configure:2199: checking for X11 header files" >&5 
2199     XINCLUDES
="# no special path needed" 
2200     cat > conftest.
$ac_ext <<EOF 
2201 #line 2202 "configure" 
2202 #include "confdefs.h" 
2203 #include <X11/Intrinsic.h> 
2205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
2206 { (eval echo configure
:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
2207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
2208 if test -z "$ac_err"; then 
2212   echo "configure: failed program was:" >&5 
2213   cat conftest.
$ac_ext >&5 
2218     if test "$XINCLUDES" = nope
; then 
2219         dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include /usr/X11R6/include /usr/include/X11R6" 
2221             if test -r $i/X
11/Intrinsic.h
; then 
2222                 echo "$ac_t""$i" 1>&6 
2229     if test "$x_includes" != ""; then 
2230         XINCLUDES
=-I$x_includes 
2232         XINCLUDES
="# no special path needed" 
2235 if test "$XINCLUDES" = nope
; then 
2236     echo "$ac_t""couldn't find any!" 1>&6 
2237     XINCLUDES
="# no include files found" 
2240 if test "$no_x" = yes; then 
2241     echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6 
2242 echo "configure:2243: checking for X11 libraries" >&5 
2244     dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/X11R6/lib /usr/lib/X11R6 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 
2246         if test -r $i/libX11.a 
-o -r $i/libX11.so 
-o -r $i/libX11.sl
; then 
2247             echo "$ac_t""$i" 1>&6 
2253     if test "$x_libraries" = ""; then 
2256         XLIBSW
="-L$x_libraries -lX11" 
2259 if test "$XLIBSW" = nope 
; then 
2260     echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6 
2261 echo "configure:2262: checking for XCreateWindow in -lXwindow" >&5 
2262 ac_lib_var
=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'` 
2263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
2264   echo $ac_n "(cached) $ac_c" 1>&6 
2266   ac_save_LIBS
="$LIBS" 
2267 LIBS
="-lXwindow  $LIBS" 
2268 cat > conftest.
$ac_ext <<EOF 
2269 #line 2270 "configure" 
2270 #include "confdefs.h" 
2271 /* Override any gcc2 internal prototype to avoid an error.  */ 
2275 /* We use char because int might match the return type of a gcc2 
2276     builtin and then its argument prototype would still apply.  */ 
2277 char XCreateWindow(); 
2283 if { (eval echo configure
:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then 
2285   eval "ac_cv_lib_$ac_lib_var=yes" 
2287   echo "configure: failed program was:" >&5 
2288   cat conftest.
$ac_ext >&5 
2290   eval "ac_cv_lib_$ac_lib_var=no" 
2293 LIBS
="$ac_save_LIBS" 
2296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 
2297   echo "$ac_t""yes" 1>&6 
2300   echo "$ac_t""no" 1>&6 
2304 if test "$XLIBSW" = nope 
; then 
2305     echo "$ac_t""couldn't find any!  Using -lX11." 1>&6 
2312 #-------------------------------------------------------------------- 
2313 #       Try to locate the Tcl package 
2314 #-------------------------------------------------------------------- 
2320 # Check whether --with-tcl or --without-tcl was given. 
2321 if test "${with_tcl+set}" = set; then 
2324         TCLPACKAGE
="$withval" 
2329 # Check whether --with-tclincl or --without-tclincl was given. 
2330 if test "${with_tclincl+set}" = set; then 
2331   withval
="$with_tclincl" 
2333         TCLINCLUDE
="-I$withval" 
2338 # Check whether --with-tcllib or --without-tcllib was given. 
2339 if test "${with_tcllib+set}" = set; then 
2340   withval
="$with_tcllib" 
2348 if test "$TCLINCLUDE" = nope
; then 
2349    if test "$TCLPACKAGE" != nope
; then 
2350         TCLINCLUDE
="-I$TCLPACKAGE/include" 
2354 if test "$TCLLIB" = nope
; then 
2355    if test "$TCLPACKAGE" != nope
; then 
2356         TCLLIB
="-L$TCLPACKAGE/lib" 
2360 echo $ac_n "checking for Tcl header files""... $ac_c" 1>&6 
2361 echo "configure:2362: checking for Tcl header files" >&5 
2362 if test "$TCLINCLUDE" = nope
; then 
2363 cat > conftest.
$ac_ext <<EOF 
2364 #line 2365 "configure" 
2365 #include "confdefs.h" 
2368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
2369 { (eval echo configure
:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
2370 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
2371 if test -z "$ac_err"; then 
2375   echo "configure: failed program was:" >&5 
2376   cat conftest.
$ac_ext >&5 
2381 if test "$TCLINCLUDE" = nope
; then 
2382         dirs="$prefix/include /usr/local/include /usr/include /opt/local/include /home/sci/local/include" 
2384                 if test -r $i/tcl.h
; then 
2385                         echo "$ac_t""$i" 1>&6 
2391 if test "$TCLINCLUDE" = nope
; then 
2392         TCLINCLUDE
="-I/usr/local/include" 
2393         echo "$ac_t""not found" 1>&6 
2396         echo "$ac_t""$TCLINCLUDE" 1>&6 
2399 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6 
2400 echo "configure:2401: checking for Tcl library" >&5 
2401 if test "$TCLLIB" = nope
; then 
2402 dirs="$prefix/lib /usr/local/lib /usr/lib /opt/local/lib /home/sci/local/lib" 
2404         if test -r $i/libtcl.a
; then 
2405             echo "$ac_t""$i" 1>&6 
2410 if test "$TCLLIB" = nope
; then 
2411         echo "$ac_t""not found" 1>&6 
2412         TCLLIB
="-L/usr/local/lib" 
2415 echo "$ac_t""$TCLLIB" 1>&6 
2421 #---------------------------------------------------------------- 
2423 #---------------------------------------------------------------- 
2428 PYLINK
="-lModules -lPython -lObjects -lParser" 
2430 # Check whether --with-py or --without-py was given. 
2431 if test "${with_py+set}" = set; then 
2434         PYPACKAGE
="$withval" 
2439 # Check whether --with-pyincl or --without-pyincl was given. 
2440 if test "${with_pyincl+set}" = set; then 
2441   withval
="$with_pyincl" 
2443         PYINCLUDE
="$withval" 
2448 # Check whether --with-pylib or --without-pylib was given. 
2449 if test "${with_pylib+set}" = set; then 
2450   withval
="$with_pylib" 
2458 if test "$PYINCLUDE" = nope
; then 
2459    if test "$PYPACKAGE" != nope
; then 
2460         PYINCLUDE
="$PYPACKAGE/include" 
2464 if test "$PYLIB" = nope
; then 
2465    if test "$PYPACKAGE" != nope
; then 
2466         PYLIB
="$PYPACKAGE/lib" 
2471 echo $ac_n "checking for Python header files""... $ac_c" 1>&6 
2472 echo "configure:2473: checking for Python header files" >&5 
2474 dirs="$PYINCLUDE $PYINCLUDE/python1.5 $PYINCLUDE/python1.4 $PYINCLUDE/Py $prefix/include/python1.5 $prefix/include/python1.4 /usr/local/include/python1.5 /usr/include/python1.5 /usr/local/include/python1.4 /usr/include/python1.4 $prefix/include/Py /usr/local/include/Py /usr/include/Py" 
2476         if test -r $i/Python.h
; then 
2477                 echo "$ac_t""$i" 1>&6 
2482 if test "$PYINCLUDE" = nope
; then 
2483         PYINCLUDE
="-I/usr/local/include/Py" 
2484         echo "$ac_t""not found" 1>&6 
2487 echo $ac_n "checking for Python library""... $ac_c" 1>&6 
2488 echo "configure:2489: checking for Python library" >&5 
2489 dirs="$PYLIB $PYLIB/config $PYLIB/lib $PYLIB/python1.5/config $PYLIB/python1.4/config $PYLIB/python/lib $prefix/lib/python1.5/config $prefix/lib/python1.4/config /usr/local/lib/python1.5/config /usr/lib/python1.5 /usr/local/lib/python1.4/config /usr/lib/python1.4 $prefix/lib/python/lib /usr/local/lib/python/lib /usr/lib/python/lib /home/sci/local/lib/python" 
2492         if test -r $i/libpython1.5.a
; then 
2493             echo "$ac_t""$i" 1>&6 
2495             PYINCLUDE
="$PYINCLUDE -I$i" 
2496             PYLINK
="-lpython1.5" 
2499         if test -r $i/libPython.a
; then 
2500             echo "$ac_t""$i" 1>&6 
2502             PYINCLUDE
="$PYINCLUDE -I$i" 
2506 if test "$PYLIB" = nope
; then 
2507         echo "$ac_t""not found" 1>&6 
2508         PYLIB
="/usr/local/lib/python/lib" 
2509         PYINCLUDE
="$PYINCLUDE -I$PYLIB" 
2516 #---------------------------------------------------------------- 
2518 #---------------------------------------------------------------- 
2522 # Check whether --with-perl5 or --without-perl5 was given. 
2523 if test "${with_perl5+set}" = set; then 
2524   withval
="$with_perl5" 
2532 # First figure out what the name of Perl5 is 
2534 if test "$PERLBIN" = nope
; then 
2535 for ac_prog 
in perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
 
2537 # Extract the first word of "$ac_prog", so it can be a program name with args. 
2538 set dummy 
$ac_prog; ac_word
=$2 
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
2540 echo "configure:2541: checking for $ac_word" >&5 
2541 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 
2542   echo $ac_n "(cached) $ac_c" 1>&6 
2544   if test -n "$PERL"; then 
2545   ac_cv_prog_PERL
="$PERL" # Let the user override the test. 
2547   IFS
="${IFS=   }"; ac_save_ifs
="$IFS"; IFS
=":" 
2549   for ac_dir 
in $ac_dummy; do 
2550     test -z "$ac_dir" && ac_dir
=.
 
2551     if test -f $ac_dir/$ac_word; then 
2552       ac_cv_prog_PERL
="$ac_prog" 
2559 PERL
="$ac_cv_prog_PERL" 
2560 if test -n "$PERL"; then 
2561   echo "$ac_t""$PERL" 1>&6 
2563   echo "$ac_t""no" 1>&6 
2566 test -n "$PERL" && break 
2568 test -n "$PERL" || PERL
="nope" 
2573 echo $ac_n "checking for Perl5 header files""... $ac_c" 1>&6 
2574 echo "configure:2575: checking for Perl5 header files" >&5 
2575 if test "$PERL" != nope
; then 
2576         PERL5DIR
=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null` 
2577         if test "$PERL5DIR" != ""; then 
2578                 dirs="$PERL5DIR $PERL5DIR/CORE" 
2581                         if test -r $i/perl.h
; then 
2582                                 echo "$ac_t""$i" 1>&6 
2587                 if test "$PERL5EXT" = none
; then 
2588                         PERL5EXT
="$PERL5DIR/CORE" 
2589                         echo "$ac_t""could not locate perl.h...using $PERL5EXT" 1>&6 
2592                 echo "$ac_t""unable to determine perl5 configuration" 1>&6 
2596         echo "$ac_t""could not figure out how to run perl5" 1>&6 
2597         PERL5EXT
="/usr/local/lib/perl/archname/5.003/CORE" 
2603 cat > confcache 
<<\EOF
 
2604 # This file is a shell script that caches the results of configure 
2605 # tests run on this system so they can be shared between configure 
2606 # scripts and configure runs.  It is not useful on other systems. 
2607 # If it contains results you don't want to keep, you may remove or edit it. 
2609 # By default, configure uses ./config.cache as the cache file, 
2610 # creating it if it does not exist already.  You can give configure 
2611 # the --cache-file=FILE option to use a different cache file; that is 
2612 # what configure does when it calls configure scripts in 
2613 # subdirectories, so they share the cache. 
2614 # Giving --cache-file=/dev/null disables caching, for debugging configure. 
2615 # config.status only pays attention to the cache file if you give it the 
2616 # --recheck option to rerun configure. 
2619 # The following way of writing the cache mishandles newlines in values, 
2620 # but we know of no workaround that is simple, portable, and efficient. 
2621 # So, don't put newlines in cache variables' values. 
2622 # Ultrix sh set writes to stderr and can't be redirected directly, 
2623 # and sets the high bit in the cache file unless we assign to the vars. 
2625   case `(ac_space=' '; set | grep ac_space) 2>&1` in 
2627     # `set' does not quote correctly, so add quotes (double-quote substitution 
2628     # turns \\\\ into \\, and sed turns \\ into \). 
2630       -e "s/'/'\\\\''/g" \
 
2631       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 
2634     # `set' quotes correctly as required by POSIX, so do not add quotes. 
2635     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 
2638 if cmp -s $cache_file confcache
; then 
2641   if test -w $cache_file; then 
2642     echo "updating cache $cache_file" 
2643     cat confcache 
> $cache_file 
2645     echo "not updating unwritable cache $cache_file" 
2650 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 
2652 test "x$prefix" = xNONE 
&& prefix
=$ac_default_prefix 
2653 # Let make expand exec_prefix. 
2654 test "x$exec_prefix" = xNONE 
&& exec_prefix
='${prefix}' 
2656 # Any assignment to VPATH causes Sun make to only execute 
2657 # the first set of double-colon rules, so remove it if not needed. 
2658 # If there is a colon in the path, we need to keep it. 
2659 if test "x$srcdir" = x.
; then 
2660   ac_vpsub
='/^[         ]*VPATH[        ]*=[^:]*$/d' 
2663 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 
2665 # Transform confdefs.h into DEFS. 
2666 # Protect against shell expansion while executing Makefile rules. 
2667 # Protect against Makefile macro expansion. 
2668 cat > conftest.defs 
<<\EOF
 
2669 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 
2670 s
%[     `~#$^&*(){}\\|;'"<>?]%\\&%g 
2675 DEFS=`sed -f conftest.defs confdefs.h 
| tr '\012' ' '` 
2679 # Without the "./", some shells look in PATH for config.status. 
2680 : ${CONFIG_STATUS=./config.status} 
2682 echo creating $CONFIG_STATUS 
2683 rm -f $CONFIG_STATUS 
2684 cat > $CONFIG_STATUS <<EOF 
2686 # Generated automatically by configure. 
2687 # Run this file to recreate the current configuration. 
2688 # This directory was configured as follows, 
2689 # on host `(hostname 
|| uname 
-n) 2>/dev
/null 
| sed 1q
`: 
2691 # $0 $ac_configure_args 
2693 # Compiler output produced by configure, useful for debugging 
2694 # configure, is in ./config.log if it exists. 
2696 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 
2699   case "\$ac_option" in 
2700   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 
2701     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 
2702     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 
2703   -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 
2704     echo "$CONFIG_STATUS generated by autoconf version 2.13" 
2706   -help | --help | --hel | --he | --h) 
2707     echo "\$ac_cs_usage"; exit 0 ;; 
2708   *) echo "\$ac_cs_usage"; exit 1 ;; 
2712 ac_given_srcdir=$srcdir 
2714 trap 'rm -fr `echo "Makefile SWIG/Makefile Modules/Makefile Runtime/Makefile swig_lib/tcl/Makefile swig_lib/python/Makefile swig_lib/perl5/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 
2716 cat >> $CONFIG_STATUS <<EOF 
2718 # Protect against being on the right side of a sed subst in config.status. 
2719 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 
2720  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 
2724 s%@CFLAGS@%$CFLAGS%g 
2725 s%@CPPFLAGS@%$CPPFLAGS%g 
2726 s%@CXXFLAGS@%$CXXFLAGS%g 
2727 s%@FFLAGS@%$FFLAGS%g 
2729 s%@LDFLAGS@%$LDFLAGS%g 
2731 s%@exec_prefix@%$exec_prefix%g 
2732 s%@prefix@%$prefix%g 
2733 s%@program_transform_name@%$program_transform_name%g 
2734 s%@bindir@%$bindir%g 
2735 s%@sbindir@%$sbindir%g 
2736 s%@libexecdir@%$libexecdir%g 
2737 s%@datadir@%$datadir%g 
2738 s%@sysconfdir@%$sysconfdir%g 
2739 s%@sharedstatedir@%$sharedstatedir%g 
2740 s%@localstatedir@%$localstatedir%g 
2741 s%@libdir@%$libdir%g 
2742 s%@includedir@%$includedir%g 
2743 s%@oldincludedir@%$oldincludedir%g 
2744 s%@infodir@%$infodir%g 
2745 s%@mandir@%$mandir%g 
2746 s%@MACHDEP@%$MACHDEP%g 
2749 s%@RANLIB@%$RANLIB%g 
2751 s%@CXXCPP@%$CXXCPP%g 
2752 s%@ALLOCA@%$ALLOCA%g 
2754 s%@YACCFLAGS@%$YACCFLAGS%g 
2756 s%@LDSHARED@%$LDSHARED%g 
2757 s%@CCSHARED@%$CCSHARED%g 
2758 s%@LINKFORSHARED@%$LINKFORSHARED%g 
2760 s%@LIBCRYPT@%$LIBCRYPT%g 
2762 s%@XINCLUDES@%$XINCLUDES%g 
2763 s%@XLIBSW@%$XLIBSW%g 
2764 s%@TCLINCLUDE@%$TCLINCLUDE%g 
2765 s%@TCLLIB@%$TCLLIB%g 
2766 s%@PYINCLUDE@%$PYINCLUDE%g 
2768 s%@PYLINK@%$PYLINK%g 
2770 s%@PERL5EXT@%$PERL5EXT%g 
2775 cat >> $CONFIG_STATUS <<\EOF 
2777 # Split the substitutions into bite-sized pieces for seds with 
2778 # small command number limits, like on Digital OSF/1 and HP-UX. 
2779 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 
2780 ac_file=1 # Number of current file. 
2781 ac_beg=1 # First line for current file. 
2782 ac_end=$ac_max_sed_cmds # Line after last line for current file. 
2785 while $ac_more_lines; do 
2786   if test $ac_beg -gt 1; then 
2787     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 
2789     sed "${ac_end}q" conftest.subs > conftest.s$ac_file 
2791   if test ! -s conftest.s$ac_file; then 
2793     rm -f conftest.s$ac_file 
2795     if test -z "$ac_sed_cmds"; then 
2796       ac_sed_cmds="sed -f conftest.s$ac_file" 
2798       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 
2800     ac_file=`expr $ac_file + 1` 
2802     ac_end=`expr $ac_end + $ac_max_sed_cmds` 
2805 if test -z "$ac_sed_cmds"; then 
2810 cat >> $CONFIG_STATUS <<EOF 
2812 CONFIG_FILES=\${CONFIG_FILES-"Makefile SWIG/Makefile Modules/Makefile Runtime/Makefile swig_lib/tcl/Makefile swig_lib/python/Makefile swig_lib/perl5/Makefile"} 
2814 cat >> $CONFIG_STATUS <<\EOF 
2815 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 
2816   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 
2818   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 
2819        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 
2820   *) ac_file_in="${ac_file}.in" ;; 
2823   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 
2825   # Remove last slash and all that follows it.  Not all systems have dirname. 
2826   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 
2827   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 
2828     # The file is in a subdirectory. 
2829     test ! -d "$ac_dir" && mkdir "$ac_dir" 
2830     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 
2831     # A "../" for each directory in $ac_dir_suffix. 
2832     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 
2834     ac_dir_suffix= ac_dots= 
2837   case "$ac_given_srcdir" in 
2839       if test -z "$ac_dots"; then top_srcdir=. 
2840       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 
2841   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 
2843     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 
2844     top_srcdir="$ac_dots$ac_given_srcdir" ;; 
2848   echo creating "$ac_file" 
2850   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 
2852   *Makefile*) ac_comsub="1i\\ 
2853 # $configure_input" ;; 
2857   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 
2859 s%@configure_input@%$configure_input%g 
2860 s%@srcdir@%$srcdir%g 
2861 s%@top_srcdir@%$top_srcdir%g 
2862 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 
2867 cat >> $CONFIG_STATUS <<EOF 
2870 cat >> $CONFIG_STATUS <<\EOF 
2874 chmod +x $CONFIG_STATUS 
2875 rm -fr confdefs* $ac_clean_files 
2876 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1