3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
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 --enable-int-lib Enable that only an int library is constructed"
17 --enable-longint-lib Enable that only a long int library is constructed (default)"
19 --enable-longlongint-lib Enable that only a long long int library is constructed"
21 --enable-gmpint-lib Enable that only a gmp int library is constructued"
23 --enable-allint-lib Enable that 32, 64 and gmp int library is constructued"
25 --enable-short-exec Enable that the int library is used by the executables (by default, the long library is used if built)"
27 --enable-extra-suffix Enable that the executables take an extra suffix depending on the library size"
29 --enable-all-exec Enable that the two sized libraries are used to build two executables of each, which take an extra suffix depending on the library (by default, only the long library is used)"
31 --enable-onlyshared Enable that only a shared library is constructued"
33 --enable-onlystatic Enable that only a static library is constructued"
35 --disable-install-lib Disable installation of the library"
37 --with-ldconfig-cache=FILE Run ldconfig -C <FILE>"
39 --with-libgmp DIR Location of the GMP Distribution"
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.14.1"
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
/polylib
/polylib.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"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
562 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
563 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
566 echo $ac_n "checking host system type""... $ac_c" 1>&6
567 echo "configure:568: checking host system type" >&5
568 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
570 # Make sure we can run config.sub.
571 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
572 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 ac_cv_host_alias
=$host
576 case "$ac_cv_host_alias" in
580 if ac_cv_host_alias
=`$ac_config_guess`; then :
581 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
583 *) ac_cv_host_alias
=$nonopt ;;
587 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
588 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
589 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
590 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo $ac_n "(cached) $ac_c" 1>&6
595 echo "$ac_t""$ac_cv_host" 1>&6
598 host_alias
=$ac_cv_host_alias
599 host_cpu
=$ac_cv_host_cpu
600 host_vendor
=$ac_cv_host_vendor
601 host_os
=$ac_cv_host_os
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
609 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
611 # Make sure we can run config.sub.
612 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
613 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616 ac_cv_target_alias
=$target
617 case "$ac_cv_target_alias" in
621 ac_cv_target_alias
=$host_alias ;;
623 *) ac_cv_target_alias
=$nonopt ;;
627 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
628 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo $ac_n "(cached) $ac_c" 1>&6
635 echo "$ac_t""$ac_cv_target" 1>&6
638 target_alias
=$ac_cv_target_alias
639 target_cpu
=$ac_cv_target_cpu
640 target_vendor
=$ac_cv_target_vendor
641 target_os
=$ac_cv_target_os
647 echo $ac_n "checking build system type""... $ac_c" 1>&6
648 echo "configure:649: checking build system type" >&5
649 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
651 # Make sure we can run config.sub.
652 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
653 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 ac_cv_build_alias
=$build
657 case "$ac_cv_build_alias" in
661 ac_cv_build_alias
=$host_alias ;;
663 *) ac_cv_build_alias
=$nonopt ;;
667 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
668 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo $ac_n "(cached) $ac_c" 1>&6
675 echo "$ac_t""$ac_cv_build" 1>&6
678 build_alias
=$ac_cv_build_alias
679 build_cpu
=$ac_cv_build_cpu
680 build_vendor
=$ac_cv_build_vendor
681 build_os
=$ac_cv_build_os
687 # Do some error checking and defaulting for the host and target type.
689 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
692 # 1. You are not allowed to specify --host, --target, and nonopt at the
694 # 2. Host defaults to nonopt.
695 # 3. If nonopt is not specified, then host defaults to the current host,
696 # as determined by config.guess.
697 # 4. Target and build default to nonopt.
698 # 5. If nonopt is not specified, then target and build default to host.
700 # The aliases save the names the user supplied, while $host etc.
701 # will get canonicalized.
702 case $host---$target---$nonopt in
703 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
704 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707 test "$host_alias" != "$target_alias" &&
708 test "$program_prefix$program_suffix$program_transform_name" = \
710 program_prefix
=${target_alias}-
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 \"\${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
=":"
725 for ac_dir
in $ac_dummy; do
726 test -z "$ac_dir" && ac_dir
=.
727 if test -f $ac_dir/$ac_word; then
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
739 echo "$ac_t""no" 1>&6
742 if test -z "$CC"; then
743 # Extract the first word of "cc", so it can be a program name with args.
744 set dummy cc
; ac_word
=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC
="$CC" # Let the user override the test.
753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
756 for ac_dir
in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir
=.
758 if test -f $ac_dir/$ac_word; then
759 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
768 if test $ac_prog_rejected = yes; then
769 # We found a bogon in the path, so make sure we never use it.
770 set dummy
$ac_cv_prog_CC
772 if test $# -gt 0; then
773 # We chose a different compiler from the bogus one.
774 # However, it has the same basename, so the bogon will be chosen
775 # first if we set CC to just the basename; use the full file name.
777 set dummy
"$ac_dir/$ac_word" "$@"
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
788 echo "$ac_t""no" 1>&6
791 if test -z "$CC"; then
793 *win32
* |
*WIN32
* |
*CYGWIN
*)
794 # Extract the first word of "cl", so it can be a program name with args.
795 set dummy cl
; ac_word
=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 if test -n "$CC"; then
802 ac_cv_prog_CC
="$CC" # Let the user override the test.
804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
806 for ac_dir
in $ac_dummy; do
807 test -z "$ac_dir" && ac_dir
=.
808 if test -f $ac_dir/$ac_word; then
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
820 echo "$ac_t""no" 1>&6
825 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
833 ac_cpp
='$CPP $CPPFLAGS'
834 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
835 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
836 cross_compiling
=$ac_cv_prog_cc_cross
838 cat > conftest.
$ac_ext << EOF
840 #line 841 "configure"
841 #include "confdefs.h"
845 if { (eval echo configure
:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
846 ac_cv_prog_cc_works
=yes
847 # If we can't run a trivial program, we are probably using a cross compiler.
848 if (.
/conftest
; exit) 2>/dev
/null
; then
849 ac_cv_prog_cc_cross
=no
851 ac_cv_prog_cc_cross
=yes
854 echo "configure: failed program was:" >&5
855 cat conftest.
$ac_ext >&5
856 ac_cv_prog_cc_works
=no
860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
861 ac_cpp
='$CPP $CPPFLAGS'
862 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
863 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
864 cross_compiling
=$ac_cv_prog_cc_cross
866 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
867 if test $ac_cv_prog_cc_works = no
; then
868 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
870 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
871 echo "configure:872: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
872 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
873 cross_compiling
=$ac_cv_prog_cc_cross
875 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
876 echo "configure:877: checking whether we are using GNU C" >&5
877 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 cat > conftest.c
<<EOF
885 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
892 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
894 if test $ac_cv_prog_gcc = yes; then
900 ac_test_CFLAGS
="${CFLAGS+set}"
901 ac_save_CFLAGS
="$CFLAGS"
903 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${CC-cc} accepts -g" >&5
905 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 echo 'void f(){}' > conftest.c
909 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
918 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
919 if test "$ac_test_CFLAGS" = set; then
920 CFLAGS
="$ac_save_CFLAGS"
921 elif test $ac_cv_prog_cc_g = yes; then
922 if test "$GCC" = yes; then
928 if test "$GCC" = yes; then
935 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
936 echo "configure:937: checking whether ln -s works" >&5
937 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
941 if ln -s X conftestdata
2>/dev
/null
944 ac_cv_prog_LN_S
="ln -s"
949 LN_S
="$ac_cv_prog_LN_S"
950 if test "$ac_cv_prog_LN_S" = "ln -s"; then
951 echo "$ac_t""yes" 1>&6
953 echo "$ac_t""no" 1>&6
956 # Extract the first word of "ranlib", so it can be a program name with args.
957 set dummy ranlib
; ac_word
=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$RANLIB"; then
964 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
966 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
968 for ac_dir
in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir
=.
970 if test -f $ac_dir/$ac_word; then
971 ac_cv_prog_RANLIB
="ranlib"
976 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
979 RANLIB
="$ac_cv_prog_RANLIB"
980 if test -n "$RANLIB"; then
981 echo "$ac_t""$RANLIB" 1>&6
983 echo "$ac_t""no" 1>&6
986 # Find a good install program. We prefer a C program (faster),
987 # so one script is as good as another. But avoid the broken or
988 # incompatible versions:
989 # SysV /etc/install, /usr/sbin/install
990 # SunOS /usr/etc/install
993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
996 # ./install, which can be erroneously created by make from ./install.sh.
997 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
998 echo "configure:999: checking for a BSD compatible install" >&5
999 if test -z "$INSTALL"; then
1000 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1004 for ac_dir
in $PATH; do
1005 # Account for people who put trailing slashes in PATH elements.
1007 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1009 # OSF1 and SCO ODT 3.0 have their own names for install.
1010 # Don't use installbsd from OSF since it installs stuff as root
1012 for ac_prog
in ginstall scoinst
install; do
1013 if test -f $ac_dir/$ac_prog; then
1014 if test $ac_prog = install &&
1015 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1016 # AIX install. It has an incompatible calling convention.
1018 elif test $ac_prog = install &&
1019 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1020 # program-specific install script used by HP pwplus--don't use.
1023 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1034 if test "${ac_cv_path_install+set}" = set; then
1035 INSTALL
="$ac_cv_path_install"
1037 # As a last resort, use the slow shell script. We don't cache a
1038 # path for INSTALL within a source directory, because that will
1039 # break other packages using the cache if that directory is
1040 # removed, or if the path is relative.
1041 INSTALL
="$ac_install_sh"
1044 echo "$ac_t""$INSTALL" 1>&6
1046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1047 # It thinks the first close brace ends the variable substitution.
1048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1052 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1055 echo $ac_n "checking for working const""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working const" >&5
1057 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 cat > conftest.
$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 /* Ultrix mips cc rejects this. */
1067 typedef int charset[2]; const charset x;
1068 /* SunOS 4.1.1 cc rejects this. */
1069 char const *const *ccp;
1071 /* NEC SVR4.0.2 mips cc rejects this. */
1072 struct point {int x, y;};
1073 static struct point const zero = {0,0};
1074 /* AIX XL C 1.02.0.0 rejects this.
1075 It does not let you subtract one const X* pointer from another in an arm
1076 of an if-expression whose if-part is not a constant expression */
1077 const char *g = "string";
1078 ccp = &g + (g ? g-g : 0);
1079 /* HPUX 7.0 cc rejects these. */
1082 ccp = (char const *const *) p;
1083 { /* SCO 3.2v4 cc rejects this. */
1085 char const *s = 0 ? (char *) 0 : (char const *) 0;
1089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1091 const int *foo = &x[0];
1094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1095 typedef const int *iptr;
1099 { /* AIX XL C 1.02.0.0 rejects this saying
1100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1101 struct s { int j; const int *ap[3]; };
1102 struct s *b; b->j = 5;
1104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1110 if { (eval echo configure
:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1114 echo "configure: failed program was:" >&5
1115 cat conftest.
$ac_ext >&5
1122 echo "$ac_t""$ac_cv_c_const" 1>&6
1123 if test $ac_cv_c_const = no
; then
1124 cat >> confdefs.h
<<\EOF
1131 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1132 echo "configure:1133: checking how to run the C preprocessor" >&5
1133 # On Suns, sometimes $CPP names a directory.
1134 if test -n "$CPP" && test -d "$CPP"; then
1137 if test -z "$CPP"; then
1138 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 # This must be in double quotes, not single quotes, because CPP may get
1142 # substituted into the Makefile and "${CC-cc}" will confuse make.
1144 # On the NeXT, cc -E runs the code through the compiler's parser,
1145 # not just through cpp.
1146 cat > conftest.
$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure
:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155 if test -z "$ac_err"; then
1159 echo "configure: failed program was:" >&5
1160 cat conftest.
$ac_ext >&5
1162 CPP
="${CC-cc} -E -traditional-cpp"
1163 cat > conftest.
$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1170 { (eval echo configure
:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1172 if test -z "$ac_err"; then
1176 echo "configure: failed program was:" >&5
1177 cat conftest.
$ac_ext >&5
1179 CPP
="${CC-cc} -nologo -E"
1180 cat > conftest.
$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1186 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1187 { (eval echo configure
:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1188 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1189 if test -z "$ac_err"; then
1193 echo "configure: failed program was:" >&5
1194 cat conftest.
$ac_ext >&5
1203 ac_cv_prog_CPP
="$CPP"
1205 CPP
="$ac_cv_prog_CPP"
1207 ac_cv_prog_CPP
="$CPP"
1209 echo "$ac_t""$CPP" 1>&6
1211 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1212 echo "configure:1213: checking for ANSI C header files" >&5
1213 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 cat > conftest.
$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1224 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure
:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227 if test -z "$ac_err"; then
1229 ac_cv_header_stdc
=yes
1232 echo "configure: failed program was:" >&5
1233 cat conftest.
$ac_ext >&5
1235 ac_cv_header_stdc
=no
1239 if test $ac_cv_header_stdc = yes; then
1240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1241 cat > conftest.
$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1247 egrep "memchr" >/dev
/null
2>&1; then
1251 ac_cv_header_stdc
=no
1257 if test $ac_cv_header_stdc = yes; then
1258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1259 cat > conftest.
$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1265 egrep "free" >/dev
/null
2>&1; then
1269 ac_cv_header_stdc
=no
1275 if test $ac_cv_header_stdc = yes; then
1276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1277 if test "$cross_compiling" = yes; then
1280 cat > conftest.
$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1284 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1285 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1287 int main () { int i; for (i = 0; i < 256; i++)
1288 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1292 if { (eval echo configure
:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1296 echo "configure: failed program was:" >&5
1297 cat conftest.
$ac_ext >&5
1299 ac_cv_header_stdc
=no
1307 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1308 if test $ac_cv_header_stdc = yes; then
1309 cat >> confdefs.h
<<\EOF
1310 #define STDC_HEADERS 1
1315 for ac_hdr
in limits.h unistd.h
1317 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_hdr" >&5
1320 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 cat > conftest.
$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1329 { (eval echo configure
:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1330 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1331 if test -z "$ac_err"; then
1333 eval "ac_cv_header_$ac_safe=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1339 eval "ac_cv_header_$ac_safe=no"
1343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1345 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1346 cat >> confdefs.h
<<EOF
1347 #define $ac_tr_hdr 1
1351 echo "$ac_t""no" 1>&6
1362 SHAREDLIB_FLAG
="-Wl,-B,immediate,-B,nonfatal,-B,verbose";
1364 INSTALL_LIB
="install-static install-shared" ;;
1369 SHAREDLIB_FLAG
="-shared"
1371 INSTALL_LIB
="install-static install-shared" ;;
1378 INSTALL_LIB
="install-static install-shared" ;;
1383 LIBS
="$LIBS -lcygwin -lkernel32 -lcrtdll"
1386 EXTRA_FLAGS
="-DCYGWIN"
1387 INSTALL_LIB
="install-static" ;;
1388 *) { echo "configure: error: ARCH "$target" is not supported" 1>&2; exit 1; } ;;
1393 echo $ac_n "checking size of int""... $ac_c" 1>&6
1394 echo "configure:1395: checking size of int" >&5
1395 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test "$cross_compiling" = yes; then
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 FILE *f=fopen("conftestval", "w");
1409 fprintf(f, "%d\n", sizeof(int));
1413 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1415 ac_cv_sizeof_int
=`cat conftestval`
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1426 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1427 cat >> confdefs.h
<<EOF
1428 #define SIZEOF_INT $ac_cv_sizeof_int
1435 ac_cv_sizeof_int
=4;;
1437 echo $ac_n "checking size of long int""... $ac_c" 1>&6
1438 echo "configure:1439: checking size of long int" >&5
1439 if eval "test \"\${ac_cv_sizeof_long_int+set}\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 if test "$cross_compiling" = yes; then
1443 ac_cv_sizeof_long_int
=1
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1451 FILE *f=fopen("conftestval", "w");
1453 fprintf(f, "%d\n", sizeof(long int));
1457 if { (eval echo configure
:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1459 ac_cv_sizeof_long_int
=`cat conftestval`
1461 echo "configure: failed program was:" >&5
1462 cat conftest.
$ac_ext >&5
1464 ac_cv_sizeof_long_int
=0
1470 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
1471 cat >> confdefs.h
<<EOF
1472 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1479 ac_cv_sizeof_long_int
=4;;
1481 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
1482 echo "configure:1483: checking size of long long int" >&5
1483 if eval "test \"\${ac_cv_sizeof_long_long_int+set}\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 if test "$cross_compiling" = yes; then
1487 ac_cv_sizeof_long_long_int
=1
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1495 FILE *f=fopen("conftestval", "w");
1497 fprintf(f, "%d\n", sizeof(long long int));
1501 if { (eval echo configure
:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1503 ac_cv_sizeof_long_long_int
=`cat conftestval`
1505 echo "configure: failed program was:" >&5
1506 cat conftest.
$ac_ext >&5
1508 ac_cv_sizeof_long_long_int
=0
1514 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
1515 cat >> confdefs.h
<<EOF
1516 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
1523 ac_cv_sizeof_long_long_int
=8;;
1527 # Check whether --enable-int-lib or --disable-int-lib was given.
1528 if test "${enable_int_lib+set}" = set; then
1529 enableval
="$enable_int_lib"
1530 only_int_lib
=$enableval
1535 # Check whether --enable-longint-lib or --disable-longint-lib was given.
1536 if test "${enable_longint_lib+set}" = set; then
1537 enableval
="$enable_longint_lib"
1538 only_longint_lib
=$enableval
1543 # Check whether --enable-longlongint-lib or --disable-longlongint-lib was given.
1544 if test "${enable_longlongint_lib+set}" = set; then
1545 enableval
="$enable_longlongint_lib"
1546 only_longlongint_lib
=$enableval
1548 only_longlongint_lib
=no
1551 # Check whether --enable-gmpint-lib or --disable-gmpint-lib was given.
1552 if test "${enable_gmpint_lib+set}" = set; then
1553 enableval
="$enable_gmpint_lib"
1554 only_gmpint_lib
=$enableval
1559 # Check whether --enable-allint-lib or --disable-allint-lib was given.
1560 if test "${enable_allint_lib+set}" = set; then
1561 enableval
="$enable_allint_lib"
1562 allint_lib
=$enableval
1568 INT_BITS
=`expr $ac_cv_sizeof_long_int \* 8`
1569 LONG_BITS
=`expr $ac_cv_sizeof_long_long_int \* 8`
1571 GMP_AFLAGS
="-DGNUMP"
1574 if test "$only_int_lib" = "yes"; then
1575 INT_AFLAGS
=-DLINEAR_VALUE_IS_INT
1577 elif test "$only_longint_lib" = "yes"; then
1578 INT_AFLAGS
="-DLINEAR_VALUE_IS_LONG -DLINEAR_VALUE_PROTECT_MULTIPLY\
1579 -DLINEAR_VALUE_ASSUME_SOFTWARE_IDIV"
1581 elif test "$only_longlongint_lib" = "yes"; then
1582 LONG_AFLAGS
="-DLINEAR_VALUE_IS_LONGLONG -DLINEAR_VALUE_PROTECT_MULTIPLY\
1583 -DLINEAR_VALUE_ASSUME_SOFTWARE_IDIV"
1584 elif test "$only_gmpint_lib" = "yes"; then
1585 LONG_AFLAGS
="-DLINEAR_VALUE_IS_LONGLONG -DLINEAR_VALUE_PROTECT_MULTIPLY\
1586 -DLINEAR_VALUE_ASSUME_SOFTWARE_IDIV"
1590 INT_AFLAGS
="-DLINEAR_VALUE_IS_INT"
1591 echo $ac_n "checking what the LONG representation is""... $ac_c" 1>&6
1592 echo "configure:1593: checking what the LONG representation is" >&5
1593 LONG_AFLAGS
="-DLINEAR_VALUE_PROTECT_MULTIPLY \
1594 -DLINEAR_VALUE_ASSUME_SOFTWARE_IDIV"
1596 if test "$ac_cv_sizeof_long_long_int" -gt "$ac_cv_sizeof_int"; then
1597 LONG_AFLAGS
="$LONG_AFLAGS -DLINEAR_VALUE_IS_LONGLONG"
1598 LONG_BITS
=`expr $ac_cv_sizeof_long_long_int \* 8`
1599 echo "$ac_t""long long int, $LONG_BITS bits" 1>&6
1600 elif test "$ac_cv_sizeof_long_int" -gt "$ac_cv_sizeof_int"; then
1601 LONG_AFLAGS
="$LONG_AFLAGS -DLINEAR_VALUE_IS_LONG"
1602 LONG_BITS
=`expr $ac_cv_sizeof_long_int \* 8`
1603 echo "$ac_t""long int, $LONG_BITS bits" 1>&6
1605 echo "$ac_t""NONE!" 1>&6
1610 if test "$only_int_lib" = "yes"; then
1611 LIBS_TO_BUILD
=$INT_BITS
1612 EXEC_TO_BUILD
=$INT_BITS
1614 elif test "$only_longint_lib" = "yes"; then
1615 LIBS_TO_BUILD
=$INT_BITS
1616 EXEC_TO_BUILD
=$INT_BITS
1618 elif test "$only_longlongint_lib" = "yes"; then
1619 LIBS_TO_BUILD
=$LONG_BITS
1620 EXEC_TO_BUILD
=$LONG_BITS
1621 elif test "$only_gmpint_lib" = "yes"; then
1622 LIBS_TO_BUILD
=$GMP_BITS
1623 EXEC_TO_BUILD
=$GMP_BITS
1624 elif test "$no_long" = "yes"; then
1625 LIBS_TO_BUILD
=$INT_BITS
1626 EXEC_TO_BUILD
=$INT_BITS
1628 elif test "$allint_lib" = "yes"; then
1629 LIBS_TO_BUILD
="$INT_BITS $LONG_BITS $GMP_BITS"
1630 EXEC_TO_BUILD
="$INT_BITS $LONG_BITS $GMP_BITS"
1632 LIBS_TO_BUILD
="$LONG_BITS"
1633 EXEC_TO_BUILD
="$LONG_BITS"
1636 # Check whether --enable-short-exec or --disable-short-exec was given.
1637 if test "${enable_short_exec+set}" = set; then
1638 enableval
="$enable_short_exec"
1639 if test "$enableval" = yes; then
1640 EXEC_TO_BUILD
=$INT_BITS
1645 EXEC_EXTRA_SUFFIX
=$EXEC_SUFFIX
1646 # Check whether --enable-extra-suffix or --disable-extra-suffix was given.
1647 if test "${enable_extra_suffix+set}" = set; then
1648 enableval
="$enable_extra_suffix"
1649 if test "$enableval" = yes; then
1650 EXEC_EXTRA_SUFFIX
="\$(BITS)$EXEC_SUFFIX"
1654 # Check whether --enable-all-exec or --disable-all-exec was given.
1655 if test "${enable_all_exec+set}" = set; then
1656 enableval
="$enable_all_exec"
1657 if test "$enableval" = yes; then
1658 EXEC_TO_BUILD
="$INT_BITS $LONG_BITS"
1659 EXEC_EXTRA_SUFFIX
="\$(BITS)$EXEC_SUFFIX"
1665 EXEC_EXTRA_LIBS
="-lpolylib\$(BITS)"
1666 # Check whether --enable-onlyshared or --disable-onlyshared was given.
1667 if test "${enable_onlyshared+set}" = set; then
1668 enableval
="$enable_onlyshared"
1669 only_shared
=$enableval
1674 if test "$only_shared" = "yes"; then
1675 INSTALL_LIB
="install-shared"
1677 # Check whether --enable-onlystatic or --disable-onlystatic was given.
1678 if test "${enable_onlystatic+set}" = set; then
1679 enableval
="$enable_onlystatic"
1680 only_static
=$enableval
1685 if test "$only_static" = "yes"; then
1686 INSTALL_LIB
="install-static"
1688 # Check whether --enable-install-lib or --disable-install-lib was given.
1689 if test "${enable_install_lib+set}" = set; then
1690 enableval
="$enable_install_lib"
1691 if test "$enableval" = "no"; then
1693 EXEC_EXTRA_LIBS
="-L\$(OBJ_DIR) $EXEC_EXTRA_LIBS"
1696 EXEC_EXTRA_LIBS
="-L$libdir $EXEC_EXTRA_LIBS"
1700 # Check whether --with-ldconfig-cache or --without-ldconfig-cache was given.
1701 if test "${with_ldconfig_cache+set}" = set; then
1702 withval
="$with_ldconfig_cache"
1703 if test "x$LDCONFIG" = "xldconfig"; then
1704 LDCONFIG
="$LDCONFIG -C $withval"
1710 echo $ac_n "checking whether to use GMP""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether to use GMP" >&5
1712 # Check whether --with-libgmp or --without-libgmp was given.
1713 if test "${with_libgmp+set}" = set; then
1714 withval
="$with_libgmp"
1715 gmp_package
=$withval
1727 if test "x$gmp_package" = "xno"; then
1728 echo "$ac_t""no" 1>&6
1730 if test "x$gmp_package" = "xyes"; then
1731 ac_safe
=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1732 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1733 echo "configure:1734: checking for gmp.h" >&5
1734 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1743 { (eval echo configure
:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1745 if test -z "$ac_err"; then
1747 eval "ac_cv_header_$ac_safe=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.
$ac_ext >&5
1753 eval "ac_cv_header_$ac_safe=no"
1757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1760 echo "configure:1761: checking for main in -lgmp" >&5
1761 ac_lib_var
=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 ac_save_LIBS
="$LIBS"
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1775 if { (eval echo configure
:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1782 eval "ac_cv_lib_$ac_lib_var=no"
1785 LIBS
="$ac_save_LIBS"
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1791 EHRHART_MP
="ehrhart_mp.c"
1792 MATRIX_MP
="matrix_mp.c"
1793 EXTRA_LIBS
="-lgmp $EXTRA_LIBS"
1795 echo "$ac_t""no" 1>&6
1799 echo "$ac_t""no" 1>&6
1803 GMP_DIR
=$gmp_package
1804 if test ! -d "$GMP_DIR"; then
1805 { echo "configure: error: Directory given for GMP Distribution is not a directory" 1>&2; exit 1; }
1807 GMP_INC
=$GMP_DIR/include
1808 GMP_LIB
=$GMP_DIR/lib
1809 if test ! -f $GMP_INC/gmp.h
; then
1810 { echo "configure: error: Can't find $GMP_INC/gmp.h" 1>&2; exit 1; }
1811 elif test -f $GMP_LIB/libgmp.so
-o -f $GMP_LIB/libgmp.a
-o -f $GMP_LIB/libgmp.
$SHEXT; then
1813 EXTRA_INCLUDES
="-I$GMP_INC"
1814 EHRHART_MP
="ehrhart_mp.c"
1815 MATRIX_MP
="matrix_mp.c"
1816 EXTRA_LIBS
="-L$GMP_LIB -lgmp $EXTRA_LIBS"
1817 echo "$ac_t""yes" 1>&6
1819 { echo "configure: error: Can't find $GMP_LIB/libgmp.so nor $GMP_LIB/libgmp.a nor $GMP_LIB/libgmp.$SHEXT" 1>&2; exit 1; }
1826 echo "---------------------------------------------------"
1827 echo "You can choose either:"
1828 echo "make libs: to build the libraries"
1829 echo "make install-libs: to install them (if required)"
1830 echo "make: to build the libs, install them, and build the executables"
1831 echo "make install: to build and install everything"
1832 echo "---------------------------------------------------"
1869 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1871 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1872 # Let make expand exec_prefix.
1873 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1875 # Any assignment to VPATH causes Sun make to only execute
1876 # the first set of double-colon rules, so remove it if not needed.
1877 # If there is a colon in the path, we need to keep it.
1878 if test "x$srcdir" = x.
; then
1879 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1882 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1884 # Transform confdefs.h into DEFS.
1885 # Protect against shell expansion while executing Makefile rules.
1886 # Protect against Makefile macro expansion.
1887 cat > conftest.defs
<<\EOF
1888 s
%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
1889 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1894 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1898 # Without the "./", some shells look in PATH for config.status.
1899 : ${CONFIG_STATUS=./config.status}
1901 echo creating $CONFIG_STATUS
1902 rm -f $CONFIG_STATUS
1903 cat > $CONFIG_STATUS <<EOF
1905 # Generated automatically by configure.
1906 # Run this file to recreate the current configuration.
1907 # This directory was configured as follows,
1908 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1910 # $0 $ac_configure_args
1912 # Compiler output produced by configure, useful for debugging
1913 # configure, is in ./config.log if it exists.
1915 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1918 case "\$ac_option" in
1919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1920 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1921 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1922 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1923 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1925 -help | --help | --hel | --he | --h)
1926 echo "\$ac_cs_usage"; exit 0 ;;
1927 *) echo "\$ac_cs_usage"; exit 1 ;;
1931 ac_given_srcdir=$srcdir
1932 ac_given_INSTALL="$INSTALL"
1934 trap 'rm -fr `echo "vars.mk" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1936 cat >> $CONFIG_STATUS <<EOF
1938 # Protect against being on the right side of a sed subst in config.status.
1939 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1940 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1944 s%@CFLAGS@%$CFLAGS%g
1945 s%@CPPFLAGS@%$CPPFLAGS%g
1946 s%@CXXFLAGS@%$CXXFLAGS%g
1947 s%@FFLAGS@%$FFLAGS%g
1949 s%@LDFLAGS@%$LDFLAGS%g
1951 s%@exec_prefix@%$exec_prefix%g
1952 s%@prefix@%$prefix%g
1953 s%@program_transform_name@%$program_transform_name%g
1954 s%@bindir@%$bindir%g
1955 s%@sbindir@%$sbindir%g
1956 s%@libexecdir@%$libexecdir%g
1957 s%@datadir@%$datadir%g
1958 s%@sysconfdir@%$sysconfdir%g
1959 s%@sharedstatedir@%$sharedstatedir%g
1960 s%@localstatedir@%$localstatedir%g
1961 s%@libdir@%$libdir%g
1962 s%@includedir@%$includedir%g
1963 s%@oldincludedir@%$oldincludedir%g
1964 s%@infodir@%$infodir%g
1965 s%@mandir@%$mandir%g
1967 s%@host_alias@%$host_alias%g
1968 s%@host_cpu@%$host_cpu%g
1969 s%@host_vendor@%$host_vendor%g
1970 s%@host_os@%$host_os%g
1971 s%@target@%$target%g
1972 s%@target_alias@%$target_alias%g
1973 s%@target_cpu@%$target_cpu%g
1974 s%@target_vendor@%$target_vendor%g
1975 s%@target_os@%$target_os%g
1977 s%@build_alias@%$build_alias%g
1978 s%@build_cpu@%$build_cpu%g
1979 s%@build_vendor@%$build_vendor%g
1980 s%@build_os@%$build_os%g
1983 s%@RANLIB@%$RANLIB%g
1984 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1985 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1986 s%@INSTALL_DATA@%$INSTALL_DATA%g
1988 s%@VERSION@%$VERSION%g
1991 s%@SHAREDLIB_FLAG@%$SHAREDLIB_FLAG%g
1992 s%@INSTALL_LIB@%$INSTALL_LIB%g
1993 s%@LDCONFIG@%$LDCONFIG%g
1994 s%@LIBS_TO_BUILD@%$LIBS_TO_BUILD%g
1995 s%@EXEC_TO_BUILD@%$EXEC_TO_BUILD%g
1996 s%@INT_BITS@%$INT_BITS%g
1997 s%@INT_AFLAGS@%$INT_AFLAGS%g
1998 s%@LONG_BITS@%$LONG_BITS%g
1999 s%@LONG_AFLAGS@%$LONG_AFLAGS%g
2000 s%@GMP_BITS@%$GMP_BITS%g
2001 s%@GMP_AFLAGS@%$GMP_AFLAGS%g
2002 s%@GFLAGS@%$GFLAGS%g
2003 s%@EXTRA_INCLUDES@%$EXTRA_INCLUDES%g
2004 s%@EHRHART_MP@%$EHRHART_MP%g
2005 s%@MATRIX_MP@%$MATRIX_MP%g
2006 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
2007 s%@EXEC_EXTRA_SUFFIX@%$EXEC_EXTRA_SUFFIX%g
2008 s%@EXEC_EXTRA_LIBS@%$EXEC_EXTRA_LIBS%g
2009 s%@EXTRA_FLAGS@%$EXTRA_FLAGS%g
2014 cat >> $CONFIG_STATUS <<\EOF
2016 # Split the substitutions into bite-sized pieces for seds with
2017 # small command number limits, like on Digital OSF/1 and HP-UX.
2018 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2019 ac_file=1 # Number of current file.
2020 ac_beg=1 # First line for current file.
2021 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2024 while $ac_more_lines; do
2025 if test $ac_beg -gt 1; then
2026 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2028 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2030 if test ! -s conftest.s$ac_file; then
2032 rm -f conftest.s$ac_file
2034 if test -z "$ac_sed_cmds"; then
2035 ac_sed_cmds="sed -f conftest.s$ac_file"
2037 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2039 ac_file=`expr $ac_file + 1`
2041 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2044 if test -z "$ac_sed_cmds"; then
2049 cat >> $CONFIG_STATUS <<EOF
2051 CONFIG_FILES=\${CONFIG_FILES-"vars.mk"}
2053 cat >> $CONFIG_STATUS <<\EOF
2054 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2057 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2058 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2059 *) ac_file_in="${ac_file}.in" ;;
2062 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2064 # Remove last slash and all that follows it. Not all systems have dirname.
2065 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2067 # The file is in a subdirectory.
2068 test ! -d "$ac_dir" && mkdir "$ac_dir"
2069 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2070 # A "../" for each directory in $ac_dir_suffix.
2071 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2073 ac_dir_suffix= ac_dots=
2076 case "$ac_given_srcdir" in
2078 if test -z "$ac_dots"; then top_srcdir=.
2079 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2080 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2082 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2083 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2086 case "$ac_given_INSTALL" in
2087 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2088 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2091 echo creating "$ac_file"
2093 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2095 *Makefile*) ac_comsub="1i\\
2096 # $configure_input" ;;
2100 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2102 s%@configure_input@%$configure_input%g
2103 s%@srcdir@%$srcdir%g
2104 s%@top_srcdir@%$top_srcdir%g
2105 s%@INSTALL@%$INSTALL%g
2106 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2111 cat >> $CONFIG_STATUS <<EOF
2114 cat >> $CONFIG_STATUS <<\EOF
2118 chmod +x $CONFIG_STATUS
2119 rm -fr confdefs* $ac_clean_files
2120 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1