3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir
="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev
=cache_file
;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev
=includedir
;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target
="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.12"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=Include
/swig.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 # Set name for machine-dependent library files
551 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
552 echo "configure:553: checking MACHDEP" >&5
553 if test -z "$MACHDEP"
555 if test -f /usr
/lib
/NextStep
/software_version
; then
556 set X
`hostinfo | grep 'NeXT Mach.*:' | \
557 sed -e 's/://' -e 's/\./_/'` && \
558 ac_sys_system
=next
&& ac_sys_release
=$4
559 MACHDEP
="$ac_sys_system$ac_sys_release$ac_sys_cpu"
561 ac_sys_system
=`uname -s`
562 if test "$ac_sys_system" = "AIX" ; then
563 ac_sys_release
=`uname -v`
565 ac_sys_release
=`uname -r`
567 ac_md_system
=`echo $ac_sys_system |
568 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
569 ac_md_release
=`echo $ac_sys_release |
570 tr -d '/ ' | sed 's/\..*//'`
571 MACHDEP
="$ac_md_system$ac_md_release"
574 '') MACHDEP
=unknown
;;
577 echo "$ac_t""$MACHDEP" 1>&6
580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp
='$CXXCPP $CPPFLAGS'
582 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling
=$ac_cv_prog_cxx_cross
587 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
589 # Extract the first word of "$ac_prog", so it can be a program name with args.
590 set dummy
$ac_prog; ac_word
=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:593: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test -n "$CXX"; then
597 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
600 for ac_dir
in $PATH; do
601 test -z "$ac_dir" && ac_dir
=.
602 if test -f $ac_dir/$ac_word; then
603 ac_cv_prog_CXX
="$ac_prog"
610 CXX
="$ac_cv_prog_CXX"
611 if test -n "$CXX"; then
612 echo "$ac_t""$CXX" 1>&6
614 echo "$ac_t""no" 1>&6
617 test -n "$CXX" && break
619 test -n "$CXX" || CXX
="gcc"
622 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
623 echo "configure:624: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
627 ac_cpp
='$CXXCPP $CPPFLAGS'
628 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
629 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
630 cross_compiling
=$ac_cv_prog_cxx_cross
632 cat > conftest.
$ac_ext <<EOF
633 #line 634 "configure"
634 #include "confdefs.h"
637 if { (eval echo configure
:638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
638 ac_cv_prog_cxx_works
=yes
639 # If we can't run a trivial program, we are probably using a cross compiler.
640 if (.
/conftest
; exit) 2>/dev
/null
; then
641 ac_cv_prog_cxx_cross
=no
643 ac_cv_prog_cxx_cross
=yes
646 echo "configure: failed program was:" >&5
647 cat conftest.
$ac_ext >&5
648 ac_cv_prog_cxx_works
=no
652 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
653 if test $ac_cv_prog_cxx_works = no
; then
654 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
656 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
657 echo "configure:658: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
658 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
659 cross_compiling
=$ac_cv_prog_cxx_cross
661 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
662 echo "configure:663: checking whether we are using GNU C++" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 cat > conftest.C
<<EOF
671 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
678 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
680 if test $ac_cv_prog_gxx = yes; then
682 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
683 ac_save_CXXFLAGS
="$CXXFLAGS"
685 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
686 echo "configure:687: checking whether ${CXX-g++} accepts -g" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 echo 'void f(){}' > conftest.cc
691 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
700 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
701 if test "$ac_test_CXXFLAGS" = set; then
702 CXXFLAGS
="$ac_save_CXXFLAGS"
703 elif test $ac_cv_prog_cxx_g = yes; then
710 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
713 # Extract the first word of "gcc", so it can be a program name with args.
714 set dummy gcc
; ac_word
=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 if test -n "$CC"; then
721 ac_cv_prog_CC
="$CC" # Let the user override the test.
723 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
724 for ac_dir
in $PATH; do
725 test -z "$ac_dir" && ac_dir
=.
726 if test -f $ac_dir/$ac_word; then
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
738 echo "$ac_t""no" 1>&6
741 if test -z "$CC"; then
742 # Extract the first word of "cc", so it can be a program name with args.
743 set dummy cc
; ac_word
=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CC"; then
750 ac_cv_prog_CC
="$CC" # Let the user override the test.
752 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
754 for ac_dir
in $PATH; do
755 test -z "$ac_dir" && ac_dir
=.
756 if test -f $ac_dir/$ac_word; then
757 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
766 if test $ac_prog_rejected = yes; then
767 # We found a bogon in the path, so make sure we never use it.
768 set dummy
$ac_cv_prog_CC
770 if test $# -gt 0; then
771 # We chose a different compiler from the bogus one.
772 # However, it has the same basename, so the bogon will be chosen
773 # first if we set CC to just the basename; use the full file name.
775 set dummy
"$ac_dir/$ac_word" "$@"
783 if test -n "$CC"; then
784 echo "$ac_t""$CC" 1>&6
786 echo "$ac_t""no" 1>&6
789 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
792 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
793 echo "configure:794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
797 ac_cpp
='$CPP $CPPFLAGS'
798 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
799 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
800 cross_compiling
=$ac_cv_prog_cc_cross
802 cat > conftest.
$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
807 if { (eval echo configure
:808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
808 ac_cv_prog_cc_works
=yes
809 # If we can't run a trivial program, we are probably using a cross compiler.
810 if (.
/conftest
; exit) 2>/dev
/null
; then
811 ac_cv_prog_cc_cross
=no
813 ac_cv_prog_cc_cross
=yes
816 echo "configure: failed program was:" >&5
817 cat conftest.
$ac_ext >&5
818 ac_cv_prog_cc_works
=no
822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
823 ac_cpp
='$CXXCPP $CPPFLAGS'
824 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
825 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
826 cross_compiling
=$ac_cv_prog_cxx_cross
828 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
829 if test $ac_cv_prog_cc_works = no
; then
830 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
833 echo "configure:834: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
834 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
835 cross_compiling
=$ac_cv_prog_cc_cross
837 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
838 echo "configure:839: checking whether we are using GNU C" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 cat > conftest.c
<<EOF
847 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
854 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS
="${CFLAGS+set}"
859 ac_save_CFLAGS
="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS
="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
886 test "${CFLAGS+set}" = set || CFLAGS
="-g"
889 # Extract the first word of "ranlib", so it can be a program name with args.
890 set dummy ranlib
; ac_word
=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 if test -n "$RANLIB"; then
897 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
900 for ac_dir
in $PATH; do
901 test -z "$ac_dir" && ac_dir
=.
902 if test -f $ac_dir/$ac_word; then
903 ac_cv_prog_RANLIB
="ranlib"
908 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
911 RANLIB
="$ac_cv_prog_RANLIB"
912 if test -n "$RANLIB"; then
913 echo "$ac_t""$RANLIB" 1>&6
915 echo "$ac_t""no" 1>&6
920 for ac_prog
in ar aal
922 # Extract the first word of "$ac_prog", so it can be a program name with args.
923 set dummy
$ac_prog; ac_word
=$2
924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925 echo "configure:926: checking for $ac_word" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 if test -n "$AR"; then
930 ac_cv_prog_AR
="$AR" # Let the user override the test.
932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
933 for ac_dir
in $PATH; do
934 test -z "$ac_dir" && ac_dir
=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_prog_AR
="$ac_prog"
944 if test -n "$AR"; then
945 echo "$ac_t""$AR" 1>&6
947 echo "$ac_t""no" 1>&6
950 test -n "$AR" && break
952 test -n "$AR" || AR
="ar"
955 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
956 echo "configure:957: checking how to run the C++ preprocessor" >&5
957 if test -z "$CXXCPP"; then
958 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
963 ac_cpp
='$CXXCPP $CPPFLAGS'
964 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
965 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
966 cross_compiling
=$ac_cv_prog_cxx_cross
967 CXXCPP
="${CXX-g++} -E"
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
974 { (eval echo configure
:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
975 ac_err
=`grep -v '^ *+' conftest.out`
976 if test -z "$ac_err"; then
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
986 ac_cv_prog_CXXCPP
="$CXXCPP"
989 CXXCPP
="$ac_cv_prog_CXXCPP"
990 echo "$ac_t""$CXXCPP" 1>&6
992 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
993 echo "configure:994: checking for ANSI C header files" >&5
994 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftest.
$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1005 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1006 { (eval echo configure
:1007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1007 ac_err
=`grep -v '^ *+' conftest.out`
1008 if test -z "$ac_err"; then
1010 ac_cv_header_stdc
=yes
1013 echo "configure: failed program was:" >&5
1014 cat conftest.
$ac_ext >&5
1016 ac_cv_header_stdc
=no
1020 if test $ac_cv_header_stdc = yes; then
1021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1022 cat > conftest.
$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1028 egrep "memchr" >/dev
/null
2>&1; then
1032 ac_cv_header_stdc
=no
1038 if test $ac_cv_header_stdc = yes; then
1039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1040 cat > conftest.
$ac_ext <<EOF
1041 #line 1042 "configure"
1042 #include "confdefs.h"
1045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1046 egrep "free" >/dev
/null
2>&1; then
1050 ac_cv_header_stdc
=no
1056 if test $ac_cv_header_stdc = yes; then
1057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1058 if test "$cross_compiling" = yes; then
1061 cat > conftest.
$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1065 extern "C" void exit(int);
1068 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1069 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1071 int main () { int i; for (i = 0; i < 256; i++)
1072 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1076 if { (eval echo configure
:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1080 echo "configure: failed program was:" >&5
1081 cat conftest.
$ac_ext >&5
1083 ac_cv_header_stdc
=no
1091 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1092 if test $ac_cv_header_stdc = yes; then
1093 cat >> confdefs.h
<<\EOF
1094 #define STDC_HEADERS 1
1100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1101 # for constant arguments. Useless!
1102 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1103 echo "configure:1104: checking for working alloca.h" >&5
1104 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 cat > conftest.
$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1112 char *p = alloca(2 * sizeof(int));
1115 if { (eval echo configure
:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1117 ac_cv_header_alloca_h
=yes
1119 echo "configure: failed program was:" >&5
1120 cat conftest.
$ac_ext >&5
1122 ac_cv_header_alloca_h
=no
1127 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1128 if test $ac_cv_header_alloca_h = yes; then
1129 cat >> confdefs.h
<<\EOF
1130 #define HAVE_ALLOCA_H 1
1135 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1136 echo "configure:1137: checking for alloca" >&5
1137 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 cat > conftest.
$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1145 # define alloca __builtin_alloca
1148 # include <alloca.h>
1153 # ifndef alloca /* predefined by HP cc +Olibcalls */
1161 char *p = (char *) alloca(1);
1164 if { (eval echo configure
:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1166 ac_cv_func_alloca_works
=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.
$ac_ext >&5
1171 ac_cv_func_alloca_works
=no
1176 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1177 if test $ac_cv_func_alloca_works = yes; then
1178 cat >> confdefs.h
<<\EOF
1179 #define HAVE_ALLOCA 1
1184 if test $ac_cv_func_alloca_works = no
; then
1185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1186 # that cause trouble. Some versions do not even contain alloca or
1187 # contain a buggy version. If you still want to use their alloca,
1188 # use ar to extract alloca.o from them instead of compiling alloca.c.
1190 cat >> confdefs.h
<<\EOF
1195 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether alloca needs Cray hooks" >&5
1197 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftest.
$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 #if defined(CRAY) && ! defined(CRAY2)
1210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1211 egrep "webecray" >/dev
/null
2>&1; then
1222 echo "$ac_t""$ac_cv_os_cray" 1>&6
1223 if test $ac_cv_os_cray = yes; then
1224 for ac_func
in _getb67 GETB67 getb67
; do
1225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_func" >&5
1227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 cat > conftest.
$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233 /* System header to define __stub macros and hopefully few prototypes,
1234 which can conflict with char $ac_func(); below. */
1236 /* Override any gcc2 internal prototype to avoid an error. */
1240 /* We use char because int might match the return type of a gcc2
1241 builtin and then its argument prototype would still apply. */
1246 /* The GNU C library defines this for functions which it implements
1247 to always fail with ENOSYS. Some functions are actually named
1248 something starting with __ and the normal name is an alias. */
1249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1257 if { (eval echo configure
:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1259 eval "ac_cv_func_$ac_func=yes"
1261 echo "configure: failed program was:" >&5
1262 cat conftest.
$ac_ext >&5
1264 eval "ac_cv_func_$ac_func=no"
1269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
1271 cat >> confdefs.h
<<EOF
1272 #define CRAY_STACKSEG_END $ac_func
1277 echo "$ac_t""no" 1>&6
1283 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1284 echo "configure:1285: checking stack direction for C alloca" >&5
1285 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test "$cross_compiling" = yes; then
1289 ac_cv_c_stack_direction
=0
1291 cat > conftest.
$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1295 extern "C" void exit(int);
1297 find_stack_direction ()
1299 static char *addr = 0;
1304 return find_stack_direction ();
1307 return (&dummy > addr) ? 1 : -1;
1311 exit (find_stack_direction() < 0);
1314 if { (eval echo configure
:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1316 ac_cv_c_stack_direction
=1
1318 echo "configure: failed program was:" >&5
1319 cat conftest.
$ac_ext >&5
1321 ac_cv_c_stack_direction
=-1
1328 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1329 cat >> confdefs.h
<<EOF
1330 #define STACK_DIRECTION $ac_cv_c_stack_direction
1335 # Check whether --with-lang or --without-lang was given.
1336 if test "${with_lang+set}" = set; then
1337 withval
="$with_lang"
1339 cat >> confdefs.h
<<EOF
1340 #define SWIG_LANG $withval
1344 cat >> confdefs.h
<<\EOF
1345 #define SWIG_LANG TCL
1351 # Check whether --with-doc or --without-doc was given.
1352 if test "${with_doc+set}" = set; then
1355 cat >> confdefs.h
<<EOF
1356 #define SWIG_DOC $withval
1360 cat >> confdefs.h
<<\EOF
1361 #define SWIG_DOC ASCII
1367 # Check whether --with-yacc or --without-yacc was given.
1368 if test "${with_yacc+set}" = set; then
1369 withval
="$with_yacc"
1371 YACC
="cp parser.cxx.no y.tab.c; cp parser.h.no y.tab.h"
1377 for ac_prog
in 'bison -y' byacc
1379 # Extract the first word of "$ac_prog", so it can be a program name with args.
1380 set dummy
$ac_prog; ac_word
=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 if test -n "$YACC"; then
1387 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1390 for ac_dir
in $PATH; do
1391 test -z "$ac_dir" && ac_dir
=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_YACC
="$ac_prog"
1400 YACC
="$ac_cv_prog_YACC"
1401 if test -n "$YACC"; then
1402 echo "$ac_t""$YACC" 1>&6
1404 echo "$ac_t""no" 1>&6
1407 test -n "$YACC" && break
1409 test -n "$YACC" || YACC
="yacc"
1411 YACCFLAGS
="-d parser.y"
1416 # This borrowed from the Python configuration file
1417 # Set info about shared libraries.
1423 # SO is the extension of shared libraries `(including the dot!)
1424 # -- usually .so, .sl on HP-UX
1425 echo $ac_n "checking SO""... $ac_c" 1>&6
1426 echo "configure:1427: checking SO" >&5
1429 case $ac_sys_system in
1431 NeXT
|next
) SO
=.a
;; # no shared libs on NeXT 3.3 and less
1435 echo "$ac_t""$SO" 1>&6
1436 # LDSHARED is the ld *command* used to create shared library
1437 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
1438 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
1439 echo "configure:1440: checking LDSHARED" >&5
1440 if test -z "$LDSHARED"
1442 case $ac_sys_system/$ac_sys_release in
1443 AIX
*) LDSHARED
="ld_so_aix";;
1444 IRIX
*) LDSHARED
="ld -shared";;
1445 SunOS
/4*) LDSHARED
="ld";;
1446 SunOS
/5*) LDSHARED
="ld -G";;
1447 hp
*|HP
*) LDSHARED
="ld -b";;
1448 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
1449 DYNIX
/ptx*) LDSHARED
="ld -G";;
1450 Linux
*) LDSHARED
="gcc -shared";;
1451 FreeBSD
*) LDSHARED
="ld -Bshareable";;
1452 NeXT
|next
/3*) LDSHARED
="ld -u libsys_s";;
1456 echo "$ac_t""$LDSHARED" 1>&6
1457 # CCSHARED are the C *flags* used to create objects to go into a shared
1458 # library -- this is only needed for a few systems
1459 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
1460 echo "configure:1461: checking CCSHARED" >&5
1461 if test -z "$CCSHARED"
1463 case $ac_sys_system in
1464 hp
*|HP
*) if test "$GCC" = yes;
1465 then CCSHARED
="-fpic";
1468 Linux
*) CCSHARED
="-fpic";;
1469 FreeBSD
*) CCSHARED
="-fpic";;
1472 echo "$ac_t""$CCSHARED" 1>&6
1474 # LINKFORSHARED are the flags passed to the $(CC) command that links
1475 # the a few executables -- this is only needed for a few systems
1477 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
1478 echo "configure:1479: checking LINKFORSHARED" >&5
1479 if test -z "$LINKFORSHARED"
1481 case $ac_sys_system/$ac_sys_release in
1482 AIX
*) LINKFORSHARED
='-Wl,-bE:$(srcdir)/python.exp -lld';;
1484 LINKFORSHARED
="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
1485 Linux
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
1486 next
/*) LINKFORSHARED
="-u libsys_s";;
1487 SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";;
1488 IRIX
*/6*) LINKFORSHARED
="-all";;
1491 echo "$ac_t""$LINKFORSHARED" 1>&6
1494 echo "Checking for installed packages."
1495 echo "Note : None of the following packages are required to compile SWIG"
1498 # Check for specific libraries. Used for SWIG examples
1499 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1500 echo "configure:1501: checking for dlopen in -ldl" >&5
1501 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 ac_save_LIBS
="$LIBS"
1507 cat > conftest.
$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1510 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1522 if { (eval echo configure
:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1524 eval "ac_cv_lib_$ac_lib_var=yes"
1526 echo "configure: failed program was:" >&5
1527 cat conftest.
$ac_ext >&5
1529 eval "ac_cv_lib_$ac_lib_var=no"
1532 LIBS
="$ac_save_LIBS"
1535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1536 echo "$ac_t""yes" 1>&6
1537 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1539 cat >> confdefs.h
<<EOF
1540 #define $ac_tr_lib 1
1546 echo "$ac_t""no" 1>&6
1548 # Dynamic linking for SunOS/Solaris and SYSV
1549 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1550 echo "configure:1551: checking for shl_load in -ldld" >&5
1551 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 ac_save_LIBS
="$LIBS"
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1572 if { (eval echo configure
:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1574 eval "ac_cv_lib_$ac_lib_var=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.
$ac_ext >&5
1579 eval "ac_cv_lib_$ac_lib_var=no"
1582 LIBS
="$ac_save_LIBS"
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1587 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1589 cat >> confdefs.h
<<EOF
1590 #define $ac_tr_lib 1
1596 echo "$ac_t""no" 1>&6
1598 # Dynamic linking for HP-UX
1600 # The following three (nsl,inet,socket) are needed on Sequent;
1601 # the order of checking must be this. Most SVR4 platforms will
1602 # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but
1603 # broken. I see no elegant solution (probably CHECK_LIB should be
1604 # fixed to only add the library if the given entry point is not
1605 # satisfied without it).
1606 if test "`uname -s`" != IRIX
1608 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
1609 echo "configure:1610: checking for t_open in -lnsl" >&5
1610 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
1611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 ac_save_LIBS
="$LIBS"
1616 cat > conftest.
$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* Override any gcc2 internal prototype to avoid an error. */
1623 /* We use char because int might match the return type of a gcc2
1624 builtin and then its argument prototype would still apply. */
1631 if { (eval echo configure
:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1633 eval "ac_cv_lib_$ac_lib_var=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1638 eval "ac_cv_lib_$ac_lib_var=no"
1641 LIBS
="$ac_save_LIBS"
1644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 echo $ac_n "checking for gethostbyname in -linet""... $ac_c" 1>&6
1652 echo "configure:1653: checking for gethostbyname in -linet" >&5
1653 ac_lib_var
=`echo inet'_'gethostbyname | sed 'y%./+-%__p_%'`
1654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 ac_save_LIBS
="$LIBS"
1658 LIBS
="-linet -lnsl $LIBS"
1659 cat > conftest.
$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1668 char gethostbyname();
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1676 eval "ac_cv_lib_$ac_lib_var=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 eval "ac_cv_lib_$ac_lib_var=no"
1684 LIBS
="$ac_save_LIBS"
1687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1688 echo "$ac_t""yes" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1695 echo "configure:1696: checking for socket in -lsocket" >&5
1696 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 ac_save_LIBS
="$LIBS"
1701 LIBS
="-lsocket $LIBS $LIBS"
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 /* Override any gcc2 internal prototype to avoid an error. */
1709 /* We use char because int might match the return type of a gcc2
1710 builtin and then its argument prototype would still apply. */
1717 if { (eval echo configure
:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1719 eval "ac_cv_lib_$ac_lib_var=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 eval "ac_cv_lib_$ac_lib_var=no"
1727 LIBS
="$ac_save_LIBS"
1730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 LIBS
="-lsocket $LIBS"
1734 echo "$ac_t""no" 1>&6
1739 # check for --with-libm=...
1742 # Check whether --with-libm or --without-libm was given.
1743 if test "${with_libm+set}" = set; then
1744 withval
="$with_libm"
1746 if test "$withval" != yes
1748 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
1752 echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
1753 echo "configure:1754: checking for main in -lieee" >&5
1754 ac_lib_var
=`echo ieee'_'main | sed 'y%./+-%__p_%'`
1755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 ac_save_LIBS
="$LIBS"
1760 cat > conftest.
$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1768 if { (eval echo configure
:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1770 eval "ac_cv_lib_$ac_lib_var=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.
$ac_ext >&5
1775 eval "ac_cv_lib_$ac_lib_var=no"
1778 LIBS
="$ac_save_LIBS"
1781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1785 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1789 echo "configure:1790: checking for crypt in -lcrypt" >&5
1790 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS
="$LIBS"
1795 LIBS
="-lcrypt $LIBS"
1796 cat > conftest.
$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1803 /* We use char because int might match the return type of a gcc2
1804 builtin and then its argument prototype would still apply. */
1811 if { (eval echo configure
:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1813 eval "ac_cv_lib_$ac_lib_var=yes"
1815 echo "configure: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1818 eval "ac_cv_lib_$ac_lib_var=no"
1821 LIBS
="$ac_save_LIBS"
1824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1825 echo "$ac_t""yes" 1>&6
1828 echo "$ac_t""no" 1>&6
1833 # check for --with-libc=...
1835 # Check whether --with-libc or --without-libc was given.
1836 if test "${with_libc+set}" = set; then
1837 withval
="$with_libc"
1839 if test "$withval" != yes
1841 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
1846 #--------------------------------------------------------------------
1847 # Locate the X11 header files and the X11 library archive. Try
1848 # the ac_path_x macro first, but if it doesn't find the X stuff
1849 # (e.g. because there's no xmkmf program) then check through
1850 # a list of possible directories. Under some conditions the
1851 # autoconf macro will return an include directory that contains
1852 # no include files, so double-check its result just to be safe.
1853 #--------------------------------------------------------------------
1855 # If we find X, set shell vars x_includes and x_libraries to the
1856 # paths, otherwise set no_x=yes.
1857 # Uses ac_ vars as temps to allow command line to override cache and checks.
1858 # --without-x overrides everything else, but does not touch the cache.
1859 echo $ac_n "checking for X""... $ac_c" 1>&6
1860 echo "configure:1861: checking for X" >&5
1862 # Check whether --with-x or --without-x was given.
1863 if test "${with_x+set}" = set; then
1868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1869 if test "x$with_x" = xno
; then
1870 # The user explicitly disabled X.
1873 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1874 # Both variables are already set.
1877 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 # One or both of the vars are not set, and there is no cached value.
1881 ac_x_includes
=NO ac_x_libraries
=NO
1883 if mkdir conftestdir
; then
1885 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1886 cat > Imakefile
<<'EOF'
1888 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1890 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1892 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1894 for ac_extension
in a so sl
; do
1895 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1896 test -f $ac_im_libdir/libX11.
$ac_extension; then
1897 ac_im_usrlibdir
=$ac_im_libdir; break
1900 # Screen out bogus values from the imake configuration. They are
1901 # bogus both because they are the default anyway, and because
1902 # using them would break gcc on systems where it needs fixed includes.
1903 case "$ac_im_incroot" in
1905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1907 case "$ac_im_usrlibdir" in
1909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1916 if test "$ac_x_includes" = NO
; then
1917 # Guess where to find include files, by looking for this one X11 .h file.
1918 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1920 # First, try using that file with no special directory specified.
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include <$x_direct_test_include>
1926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure
:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err
=`grep -v '^ *+' conftest.out`
1929 if test -z "$ac_err"; then
1931 # We can compile using X headers with no special include directory.
1935 echo "configure: failed program was:" >&5
1936 cat conftest.
$ac_ext >&5
1938 # Look for the header file in a standard set of common directories.
1939 # Check X11 before X11Rn because it is often a symlink to the current release.
1942 /usr
/X
11R
6/include \
1943 /usr
/X
11R
5/include \
1944 /usr
/X
11R
4/include \
1947 /usr
/include
/X11R6 \
1948 /usr
/include
/X11R5 \
1949 /usr
/include
/X11R4 \
1951 /usr
/local
/X
11/include \
1952 /usr
/local
/X
11R
6/include \
1953 /usr
/local
/X
11R
5/include \
1954 /usr
/local
/X
11R
4/include \
1956 /usr
/local
/include
/X11 \
1957 /usr
/local
/include
/X11R6 \
1958 /usr
/local
/include
/X11R5 \
1959 /usr
/local
/include
/X11R4 \
1963 /usr
/XFree
86/include
/X11 \
1966 /usr
/local
/include \
1967 /usr
/unsupported
/include \
1968 /usr
/athena
/include \
1969 /usr
/local
/x
11r
5/include \
1970 /usr
/lpp
/Xamples
/include \
1972 /usr
/openwin
/include \
1973 /usr
/openwin
/share
/include \
1976 if test -r "$ac_dir/$x_direct_test_include"; then
1977 ac_x_includes
=$ac_dir
1983 fi # $ac_x_includes = NO
1985 if test "$ac_x_libraries" = NO
; then
1986 # Check for the libraries.
1988 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1989 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1991 # See if we find them without any special options.
1992 # Don't add to $LIBS permanently.
1993 ac_save_LIBS
="$LIBS"
1994 LIBS
="-l$x_direct_test_library $LIBS"
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 ${x_direct_test_function}()
2003 if { (eval echo configure
:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2005 LIBS
="$ac_save_LIBS"
2006 # We can link X programs with no special library path.
2009 echo "configure: failed program was:" >&5
2010 cat conftest.
$ac_ext >&5
2012 LIBS
="$ac_save_LIBS"
2013 # First see if replacing the include by lib works.
2014 # Check X11 before X11Rn because it is often a symlink to the current release.
2015 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2026 /usr
/local
/X
11/lib \
2027 /usr
/local
/X
11R
6/lib \
2028 /usr
/local
/X
11R
5/lib \
2029 /usr
/local
/X
11R
4/lib \
2031 /usr
/local
/lib
/X11 \
2032 /usr
/local
/lib
/X11R6 \
2033 /usr
/local
/lib
/X11R5 \
2034 /usr
/local
/lib
/X11R4 \
2038 /usr
/XFree
86/lib
/X11 \
2042 /usr
/unsupported
/lib \
2044 /usr
/local
/x
11r
5/lib \
2045 /usr
/lpp
/Xamples
/lib \
2049 /usr
/openwin
/share
/lib \
2052 for ac_extension
in a so sl
; do
2053 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2054 ac_x_libraries
=$ac_dir
2061 fi # $ac_x_libraries = NO
2063 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
2064 # Didn't find X anywhere. Cache the known absence of X.
2065 ac_cv_have_x
="have_x=no"
2067 # Record where we found X for the cache.
2068 ac_cv_have_x
="have_x=yes \
2069 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2073 eval "$ac_cv_have_x"
2076 if test "$have_x" != yes; then
2077 echo "$ac_t""$have_x" 1>&6
2080 # If each of the values was on the command line, it overrides each guess.
2081 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2082 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2083 # Update the cache value to reflect the command line values.
2084 ac_cv_have_x
="have_x=yes \
2085 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2086 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2090 if test "$no_x" = ""; then
2091 if test "$x_includes" = ""; then
2092 cat > conftest.
$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2095 #include <X11/XIntrinsic.h>
2097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure
:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err
=`grep -v '^ *+' conftest.out`
2100 if test -z "$ac_err"; then
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 not_really_there
="yes"
2111 if test ! -r $x_includes/X
11/Intrinsic.h
; then
2112 not_really_there
="yes"
2116 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
2117 echo $ac_n "checking for X11 header files""... $ac_c" 1>&6
2118 echo "configure:2119: checking for X11 header files" >&5
2119 XINCLUDES
="# no special path needed"
2120 cat > conftest.
$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 #include <X11/Intrinsic.h>
2125 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2126 { (eval echo configure
:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2127 ac_err
=`grep -v '^ *+' conftest.out`
2128 if test -z "$ac_err"; then
2132 echo "configure: failed program was:" >&5
2133 cat conftest.
$ac_ext >&5
2138 if test "$XINCLUDES" = nope
; then
2139 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"
2141 if test -r $i/X
11/Intrinsic.h
; then
2142 echo "$ac_t""$i" 1>&6
2149 if test "$x_includes" != ""; then
2150 XINCLUDES
=-I$x_includes
2152 XINCLUDES
="# no special path needed"
2155 if test "$XINCLUDES" = nope
; then
2156 echo "$ac_t""couldn't find any!" 1>&6
2157 XINCLUDES
="# no include files found"
2160 if test "$no_x" = yes; then
2161 echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
2162 echo "configure:2163: checking for X11 libraries" >&5
2164 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"
2166 if test -r $i/libX11.a
-o -r $i/libX11.so
-o -r $i/libX11.sl
; then
2167 echo "$ac_t""$i" 1>&6
2173 if test "$x_libraries" = ""; then
2176 XLIBSW
="-L$x_libraries -lX11"
2179 if test "$XLIBSW" = nope
; then
2180 echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
2181 echo "configure:2182: checking for XCreateWindow in -lXwindow" >&5
2182 ac_lib_var
=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 ac_save_LIBS
="$LIBS"
2187 LIBS
="-lXwindow $LIBS"
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2197 char XCreateWindow();
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_lib_$ac_lib_var=no"
2213 LIBS
="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2220 echo "$ac_t""no" 1>&6
2224 if test "$XLIBSW" = nope
; then
2225 echo "$ac_t""couldn't find any! Using -lX11." 1>&6
2232 #--------------------------------------------------------------------
2233 # Try to locate the Tcl package
2234 #--------------------------------------------------------------------
2240 # Check whether --with-tcl or --without-tcl was given.
2241 if test "${with_tcl+set}" = set; then
2244 TCLPACKAGE
="$withval"
2249 # Check whether --with-tclincl or --without-tclincl was given.
2250 if test "${with_tclincl+set}" = set; then
2251 withval
="$with_tclincl"
2253 TCLINCLUDE
="-I$withval"
2258 # Check whether --with-tcllib or --without-tcllib was given.
2259 if test "${with_tcllib+set}" = set; then
2260 withval
="$with_tcllib"
2268 if test "$TCLINCLUDE" = nope
; then
2269 if test "$TCLPACKAGE" != nope
; then
2270 TCLINCLUDE
="-I$TCLPACKAGE/include"
2274 if test "$TCLLIB" = nope
; then
2275 if test "$TCLPACKAGE" != nope
; then
2276 TCLLIB
="-L$TCLPACKAGE/lib"
2280 echo $ac_n "checking for Tcl header files""... $ac_c" 1>&6
2281 echo "configure:2282: checking for Tcl header files" >&5
2282 if test "$TCLINCLUDE" = nope
; then
2283 cat > conftest.
$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2288 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure
:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err
=`grep -v '^ *+' conftest.out`
2291 if test -z "$ac_err"; then
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2301 if test "$TCLINCLUDE" = nope
; then
2302 dirs="$prefix/include /usr/local/include /usr/include /opt/local/include /home/sci/local/include"
2304 if test -r $i/tcl.h
; then
2305 echo "$ac_t""$i" 1>&6
2311 if test "$TCLINCLUDE" = nope
; then
2312 TCLINCLUDE
="-I/usr/local/include"
2313 echo "$ac_t""not found" 1>&6
2316 echo "$ac_t""$TCLINCLUDE" 1>&6
2319 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
2320 echo "configure:2321: checking for Tcl library" >&5
2321 if test "$TCLLIB" = nope
; then
2322 dirs="$prefix/lib /usr/local/lib /usr/lib /opt/local/lib /home/sci/local/lib"
2324 if test -r $i/libtcl.a
; then
2325 echo "$ac_t""$i" 1>&6
2330 if test "$TCLLIB" = nope
; then
2331 echo "$ac_t""not found" 1>&6
2332 TCLLIB
="-L/usr/local/lib"
2335 echo "$ac_t""$TCLLIB" 1>&6
2341 #----------------------------------------------------------------
2343 #----------------------------------------------------------------
2348 PYLINK
="-lModules -lPython -lObjects -lParser"
2350 # Check whether --with-py or --without-py was given.
2351 if test "${with_py+set}" = set; then
2354 PYPACKAGE
="$withval"
2359 # Check whether --with-pyincl or --without-pyincl was given.
2360 if test "${with_pyincl+set}" = set; then
2361 withval
="$with_pyincl"
2363 PYINCLUDE
="$withval"
2368 # Check whether --with-pylib or --without-pylib was given.
2369 if test "${with_pylib+set}" = set; then
2370 withval
="$with_pylib"
2378 if test "$PYINCLUDE" = nope
; then
2379 if test "$PYPACKAGE" != nope
; then
2380 PYINCLUDE
="$PYPACKAGE/include"
2384 if test "$PYLIB" = nope
; then
2385 if test "$PYPACKAGE" != nope
; then
2386 PYLIB
="$PYPACKAGE/lib"
2391 echo $ac_n "checking for Python header files""... $ac_c" 1>&6
2392 echo "configure:2393: checking for Python header files" >&5
2394 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"
2396 if test -r $i/Python.h
; then
2397 echo "$ac_t""$i" 1>&6
2402 if test "$PYINCLUDE" = nope
; then
2403 PYINCLUDE
="-I/usr/local/include/Py"
2404 echo "$ac_t""not found" 1>&6
2407 echo $ac_n "checking for Python library""... $ac_c" 1>&6
2408 echo "configure:2409: checking for Python library" >&5
2409 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"
2412 if test -r $i/libpython1.5.a
; then
2413 echo "$ac_t""$i" 1>&6
2415 PYINCLUDE
="$PYINCLUDE -I$i"
2416 PYLINK
="-lpython1.5"
2419 if test -r $i/libPython.a
; then
2420 echo "$ac_t""$i" 1>&6
2422 PYINCLUDE
="$PYINCLUDE -I$i"
2426 if test "$PYLIB" = nope
; then
2427 echo "$ac_t""not found" 1>&6
2428 PYLIB
="/usr/local/lib/python/lib"
2429 PYINCLUDE
="$PYINCLUDE -I$PYLIB"
2436 #----------------------------------------------------------------
2438 #----------------------------------------------------------------
2442 # Check whether --with-perl5 or --without-perl5 was given.
2443 if test "${with_perl5+set}" = set; then
2444 withval
="$with_perl5"
2452 # First figure out what the name of Perl5 is
2454 if test "$PERLBIN" = nope
; then
2455 for ac_prog
in perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy
$ac_prog; ac_word
=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test -n "$PERL"; then
2465 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
2467 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2468 for ac_dir
in $PATH; do
2469 test -z "$ac_dir" && ac_dir
=.
2470 if test -f $ac_dir/$ac_word; then
2471 ac_cv_prog_PERL
="$ac_prog"
2478 PERL
="$ac_cv_prog_PERL"
2479 if test -n "$PERL"; then
2480 echo "$ac_t""$PERL" 1>&6
2482 echo "$ac_t""no" 1>&6
2485 test -n "$PERL" && break
2487 test -n "$PERL" || PERL
="nope"
2492 echo $ac_n "checking for Perl5 header files""... $ac_c" 1>&6
2493 echo "configure:2494: checking for Perl5 header files" >&5
2494 if test "$PERL" != nope
; then
2495 PERL5DIR
=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
2496 if test "$PERL5DIR" != ""; then
2497 dirs="$PERL5DIR $PERL5DIR/CORE"
2500 if test -r $i/perl.h
; then
2501 echo "$ac_t""$i" 1>&6
2506 if test "$PERL5EXT" = none
; then
2507 PERL5EXT
="$PERL5DIR/CORE"
2508 echo "$ac_t""could not locate perl.h...using $PERL5EXT" 1>&6
2511 echo "$ac_t""unable to determine perl5 configuration" 1>&6
2515 echo "$ac_t""could not figure out how to run perl5" 1>&6
2516 PERL5EXT
="/usr/local/lib/perl/archname/5.003/CORE"
2522 cat > confcache
<<\EOF
2523 # This file is a shell script that caches the results of configure
2524 # tests run on this system so they can be shared between configure
2525 # scripts and configure runs. It is not useful on other systems.
2526 # If it contains results you don't want to keep, you may remove or edit it.
2528 # By default, configure uses ./config.cache as the cache file,
2529 # creating it if it does not exist already. You can give configure
2530 # the --cache-file=FILE option to use a different cache file; that is
2531 # what configure does when it calls configure scripts in
2532 # subdirectories, so they share the cache.
2533 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2534 # config.status only pays attention to the cache file if you give it the
2535 # --recheck option to rerun configure.
2538 # The following way of writing the cache mishandles newlines in values,
2539 # but we know of no workaround that is simple, portable, and efficient.
2540 # So, don't put newlines in cache variables' values.
2541 # Ultrix sh set writes to stderr and can't be redirected directly,
2542 # and sets the high bit in the cache file unless we assign to the vars.
2544 case `(ac_space=' '; set) 2>&1` in
2546 # `set' does not quote correctly, so add quotes (double-quote substitution
2547 # turns \\\\ into \\, and sed turns \\ into \).
2549 -e "s/'/'\\\\''/g" \
2550 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2553 # `set' quotes correctly as required by POSIX, so do not add quotes.
2554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2557 if cmp -s $cache_file confcache
; then
2560 if test -w $cache_file; then
2561 echo "updating cache $cache_file"
2562 cat confcache
> $cache_file
2564 echo "not updating unwritable cache $cache_file"
2569 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2571 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2572 # Let make expand exec_prefix.
2573 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2575 # Any assignment to VPATH causes Sun make to only execute
2576 # the first set of double-colon rules, so remove it if not needed.
2577 # If there is a colon in the path, we need to keep it.
2578 if test "x$srcdir" = x.
; then
2579 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2582 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2584 # Transform confdefs.h into DEFS.
2585 # Protect against shell expansion while executing Makefile rules.
2586 # Protect against Makefile macro expansion.
2587 cat > conftest.defs
<<\EOF
2588 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2589 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2594 DEFS=`sed -f conftest.defs confdefs.h
| tr '\012' ' '`
2598 # Without the "./", some shells look in PATH for config.status.
2599 : ${CONFIG_STATUS=./config.status}
2601 echo creating $CONFIG_STATUS
2602 rm -f $CONFIG_STATUS
2603 cat > $CONFIG_STATUS <<EOF
2605 # Generated automatically by configure.
2606 # Run this file to recreate the current configuration.
2607 # This directory was configured as follows,
2608 # on host `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`:
2610 # $0 $ac_configure_args
2612 # Compiler output produced by configure, useful for debugging
2613 # configure, is in ./config.log if it exists.
2615 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2618 case "\$ac_option" in
2619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2620 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2621 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2622 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2623 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2625 -help | --help | --hel | --he | --h)
2626 echo "\$ac_cs_usage"; exit 0 ;;
2627 *) echo "\$ac_cs_usage"; exit 1 ;;
2631 ac_given_srcdir=$srcdir
2633 trap 'rm -fr `echo "Makefile SWIG/Makefile Modules/Makefile Runtime/Makefile swig_lib/tcl/Makefile swig_lib/python/Makefile swig_lib/perl5/Makefile Makefile.template" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2635 cat >> $CONFIG_STATUS <<EOF
2637 # Protect against being on the right side of a sed subst in config.status.
2638 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2642 s%@CFLAGS@%$CFLAGS%g
2643 s%@CPPFLAGS@%$CPPFLAGS%g
2644 s%@CXXFLAGS@%$CXXFLAGS%g
2646 s%@LDFLAGS@%$LDFLAGS%g
2648 s%@exec_prefix@%$exec_prefix%g
2649 s%@prefix@%$prefix%g
2650 s%@program_transform_name@%$program_transform_name%g
2651 s%@bindir@%$bindir%g
2652 s%@sbindir@%$sbindir%g
2653 s%@libexecdir@%$libexecdir%g
2654 s%@datadir@%$datadir%g
2655 s%@sysconfdir@%$sysconfdir%g
2656 s%@sharedstatedir@%$sharedstatedir%g
2657 s%@localstatedir@%$localstatedir%g
2658 s%@libdir@%$libdir%g
2659 s%@includedir@%$includedir%g
2660 s%@oldincludedir@%$oldincludedir%g
2661 s%@infodir@%$infodir%g
2662 s%@mandir@%$mandir%g
2663 s%@MACHDEP@%$MACHDEP%g
2666 s%@RANLIB@%$RANLIB%g
2668 s%@CXXCPP@%$CXXCPP%g
2669 s%@ALLOCA@%$ALLOCA%g
2671 s%@YACCFLAGS@%$YACCFLAGS%g
2673 s%@LDSHARED@%$LDSHARED%g
2674 s%@CCSHARED@%$CCSHARED%g
2675 s%@LINKFORSHARED@%$LINKFORSHARED%g
2677 s%@LIBCRYPT@%$LIBCRYPT%g
2679 s%@XINCLUDES@%$XINCLUDES%g
2680 s%@XLIBSW@%$XLIBSW%g
2681 s%@TCLINCLUDE@%$TCLINCLUDE%g
2682 s%@TCLLIB@%$TCLLIB%g
2683 s%@PYINCLUDE@%$PYINCLUDE%g
2685 s%@PYLINK@%$PYLINK%g
2687 s%@PERL5EXT@%$PERL5EXT%g
2692 cat >> $CONFIG_STATUS <<\EOF
2694 # Split the substitutions into bite-sized pieces for seds with
2695 # small command number limits, like on Digital OSF/1 and HP-UX.
2696 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2697 ac_file=1 # Number of current file.
2698 ac_beg=1 # First line for current file.
2699 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2702 while $ac_more_lines; do
2703 if test $ac_beg -gt 1; then
2704 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2706 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2708 if test ! -s conftest.s$ac_file; then
2710 rm -f conftest.s$ac_file
2712 if test -z "$ac_sed_cmds"; then
2713 ac_sed_cmds="sed -f conftest.s$ac_file"
2715 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2717 ac_file=`expr $ac_file + 1`
2719 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2722 if test -z "$ac_sed_cmds"; then
2727 cat >> $CONFIG_STATUS <<EOF
2729 CONFIG_FILES=\${CONFIG_FILES-"Makefile SWIG/Makefile Modules/Makefile Runtime/Makefile swig_lib/tcl/Makefile swig_lib/python/Makefile swig_lib/perl5/Makefile Makefile.template"}
2731 cat >> $CONFIG_STATUS <<\EOF
2732 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2735 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2736 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2737 *) ac_file_in="${ac_file}.in" ;;
2740 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2742 # Remove last slash and all that follows it. Not all systems have dirname.
2743 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2744 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2745 # The file is in a subdirectory.
2746 test ! -d "$ac_dir" && mkdir "$ac_dir"
2747 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2748 # A "../" for each directory in $ac_dir_suffix.
2749 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2751 ac_dir_suffix= ac_dots=
2754 case "$ac_given_srcdir" in
2756 if test -z "$ac_dots"; then top_srcdir=.
2757 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2758 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2760 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2761 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2765 echo creating "$ac_file"
2767 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2769 *Makefile*) ac_comsub="1i\\
2770 # $configure_input" ;;
2774 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2776 s%@configure_input@%$configure_input%g
2777 s%@srcdir@%$srcdir%g
2778 s%@top_srcdir@%$top_srcdir%g
2779 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2784 cat >> $CONFIG_STATUS <<EOF
2787 cat >> $CONFIG_STATUS <<\EOF
2791 chmod +x $CONFIG_STATUS
2792 rm -fr confdefs* $ac_clean_files
2793 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1