source: git/libfac/configure @ 052e4f

spielwiese
Last change on this file since 052e4f was 0083eb, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: sunos/i386-cc git-svn-id: file:///usr/local/Singular/svn/trunk@9249 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 40.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-debug    build with debugging options turned on"
16ac_help="$ac_help
17  --with-Singular build for use with Singular"
18ac_help="$ac_help
19  --with-Singularerror use error reporting from Singular"
20ac_help="$ac_help
21  --with-NOSTREAMIO : do not require iostream include nor library"
22
23# Initialize some variables set by options.
24# The variables have the same names as the options, with
25# dashes changed to underlines.
26build=NONE
27cache_file=./config.cache
28exec_prefix=NONE
29host=NONE
30no_create=
31nonopt=NONE
32no_recursion=
33prefix=NONE
34program_prefix=NONE
35program_suffix=NONE
36program_transform_name=s,x,x,
37silent=
38site=
39srcdir=
40target=NONE
41verbose=
42x_includes=NONE
43x_libraries=NONE
44bindir='${exec_prefix}/bin'
45sbindir='${exec_prefix}/sbin'
46libexecdir='${exec_prefix}/libexec'
47datadir='${prefix}/share'
48sysconfdir='${prefix}/etc'
49sharedstatedir='${prefix}/com'
50localstatedir='${prefix}/var'
51libdir='${exec_prefix}/lib'
52includedir='${prefix}/include'
53oldincludedir='/usr/include'
54infodir='${prefix}/info'
55mandir='${prefix}/man'
56
57# Initialize some other variables.
58subdirs=
59MFLAGS= MAKEFLAGS=
60SHELL=${CONFIG_SHELL-/bin/sh}
61# Maximum number of lines to put in a shell here document.
62ac_max_here_lines=12
63
64ac_prev=
65for ac_option
66do
67
68  # If the previous option needs an argument, assign it.
69  if test -n "$ac_prev"; then
70    eval "$ac_prev=\$ac_option"
71    ac_prev=
72    continue
73  fi
74
75  case "$ac_option" in
76  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77  *) ac_optarg= ;;
78  esac
79
80  # Accept the important Cygnus configure options, so we can diagnose typos.
81
82  case "$ac_option" in
83
84  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85    ac_prev=bindir ;;
86  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87    bindir="$ac_optarg" ;;
88
89  -build | --build | --buil | --bui | --bu)
90    ac_prev=build ;;
91  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92    build="$ac_optarg" ;;
93
94  -cache-file | --cache-file | --cache-fil | --cache-fi \
95  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96    ac_prev=cache_file ;;
97  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99    cache_file="$ac_optarg" ;;
100
101  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102    ac_prev=datadir ;;
103  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104  | --da=*)
105    datadir="$ac_optarg" ;;
106
107  -disable-* | --disable-*)
108    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109    # Reject names that are not valid shell variable names.
110    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112    fi
113    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114    eval "enable_${ac_feature}=no" ;;
115
116  -enable-* | --enable-*)
117    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118    # Reject names that are not valid shell variable names.
119    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121    fi
122    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123    case "$ac_option" in
124      *=*) ;;
125      *) ac_optarg=yes ;;
126    esac
127    eval "enable_${ac_feature}='$ac_optarg'" ;;
128
129  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131  | --exec | --exe | --ex)
132    ac_prev=exec_prefix ;;
133  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135  | --exec=* | --exe=* | --ex=*)
136    exec_prefix="$ac_optarg" ;;
137
138  -gas | --gas | --ga | --g)
139    # Obsolete; use --with-gas.
140    with_gas=yes ;;
141
142  -help | --help | --hel | --he)
143    # Omit some internal or obsolete options to make the list less imposing.
144    # This message is too long to be a string in the A/UX 3.1 sh.
145    cat << EOF
146Usage: configure [options] [host]
147Options: [defaults in brackets after descriptions]
148Configuration:
149  --cache-file=FILE       cache test results in FILE
150  --help                  print this message
151  --no-create             do not create output files
152  --quiet, --silent       do not print \`checking...' messages
153  --version               print the version of autoconf that created configure
154Directory and file names:
155  --prefix=PREFIX         install architecture-independent files in PREFIX
156                          [$ac_default_prefix]
157  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158                          [same as prefix]
159  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162  --datadir=DIR           read-only architecture-independent data in DIR
163                          [PREFIX/share]
164  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166                          [PREFIX/com]
167  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169  --includedir=DIR        C header files in DIR [PREFIX/include]
170  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171  --infodir=DIR           info documentation in DIR [PREFIX/info]
172  --mandir=DIR            man documentation in DIR [PREFIX/man]
173  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174  --program-prefix=PREFIX prepend PREFIX to installed program names
175  --program-suffix=SUFFIX append SUFFIX to installed program names
176  --program-transform-name=PROGRAM
177                          run sed PROGRAM on installed program names
178EOF
179    cat << EOF
180Host type:
181  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182  --host=HOST             configure for HOST [guessed]
183  --target=TARGET         configure for TARGET [TARGET=HOST]
184Features and packages:
185  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189  --x-includes=DIR        X include files are in DIR
190  --x-libraries=DIR       X library files are in DIR
191EOF
192    if test -n "$ac_help"; then
193      echo "--enable and --with options recognized:$ac_help"
194    fi
195    exit 0 ;;
196
197  -host | --host | --hos | --ho)
198    ac_prev=host ;;
199  -host=* | --host=* | --hos=* | --ho=*)
200    host="$ac_optarg" ;;
201
202  -includedir | --includedir | --includedi | --included | --include \
203  | --includ | --inclu | --incl | --inc)
204    ac_prev=includedir ;;
205  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206  | --includ=* | --inclu=* | --incl=* | --inc=*)
207    includedir="$ac_optarg" ;;
208
209  -infodir | --infodir | --infodi | --infod | --info | --inf)
210    ac_prev=infodir ;;
211  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212    infodir="$ac_optarg" ;;
213
214  -libdir | --libdir | --libdi | --libd)
215    ac_prev=libdir ;;
216  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217    libdir="$ac_optarg" ;;
218
219  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220  | --libexe | --libex | --libe)
221    ac_prev=libexecdir ;;
222  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223  | --libexe=* | --libex=* | --libe=*)
224    libexecdir="$ac_optarg" ;;
225
226  -localstatedir | --localstatedir | --localstatedi | --localstated \
227  | --localstate | --localstat | --localsta | --localst \
228  | --locals | --local | --loca | --loc | --lo)
229    ac_prev=localstatedir ;;
230  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233    localstatedir="$ac_optarg" ;;
234
235  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236    ac_prev=mandir ;;
237  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238    mandir="$ac_optarg" ;;
239
240  -nfp | --nfp | --nf)
241    # Obsolete; use --without-fp.
242    with_fp=no ;;
243
244  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245  | --no-cr | --no-c)
246    no_create=yes ;;
247
248  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250    no_recursion=yes ;;
251
252  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254  | --oldin | --oldi | --old | --ol | --o)
255    ac_prev=oldincludedir ;;
256  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259    oldincludedir="$ac_optarg" ;;
260
261  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262    ac_prev=prefix ;;
263  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264    prefix="$ac_optarg" ;;
265
266  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267  | --program-pre | --program-pr | --program-p)
268    ac_prev=program_prefix ;;
269  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271    program_prefix="$ac_optarg" ;;
272
273  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274  | --program-suf | --program-su | --program-s)
275    ac_prev=program_suffix ;;
276  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278    program_suffix="$ac_optarg" ;;
279
280  -program-transform-name | --program-transform-name \
281  | --program-transform-nam | --program-transform-na \
282  | --program-transform-n | --program-transform- \
283  | --program-transform | --program-transfor \
284  | --program-transfo | --program-transf \
285  | --program-trans | --program-tran \
286  | --progr-tra | --program-tr | --program-t)
287    ac_prev=program_transform_name ;;
288  -program-transform-name=* | --program-transform-name=* \
289  | --program-transform-nam=* | --program-transform-na=* \
290  | --program-transform-n=* | --program-transform-=* \
291  | --program-transform=* | --program-transfor=* \
292  | --program-transfo=* | --program-transf=* \
293  | --program-trans=* | --program-tran=* \
294  | --progr-tra=* | --program-tr=* | --program-t=*)
295    program_transform_name="$ac_optarg" ;;
296
297  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298  | -silent | --silent | --silen | --sile | --sil)
299    silent=yes ;;
300
301  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302    ac_prev=sbindir ;;
303  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304  | --sbi=* | --sb=*)
305    sbindir="$ac_optarg" ;;
306
307  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309  | --sharedst | --shareds | --shared | --share | --shar \
310  | --sha | --sh)
311    ac_prev=sharedstatedir ;;
312  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315  | --sha=* | --sh=*)
316    sharedstatedir="$ac_optarg" ;;
317
318  -site | --site | --sit)
319    ac_prev=site ;;
320  -site=* | --site=* | --sit=*)
321    site="$ac_optarg" ;;
322
323  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324    ac_prev=srcdir ;;
325  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326    srcdir="$ac_optarg" ;;
327
328  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329  | --syscon | --sysco | --sysc | --sys | --sy)
330    ac_prev=sysconfdir ;;
331  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333    sysconfdir="$ac_optarg" ;;
334
335  -target | --target | --targe | --targ | --tar | --ta | --t)
336    ac_prev=target ;;
337  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338    target="$ac_optarg" ;;
339
340  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341    verbose=yes ;;
342
343  -version | --version | --versio | --versi | --vers)
344    echo "configure generated by autoconf version 2.13"
345    exit 0 ;;
346
347  -with-* | --with-*)
348    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349    # Reject names that are not valid shell variable names.
350    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352    fi
353    ac_package=`echo $ac_package| sed 's/-/_/g'`
354    case "$ac_option" in
355      *=*) ;;
356      *) ac_optarg=yes ;;
357    esac
358    eval "with_${ac_package}='$ac_optarg'" ;;
359
360  -without-* | --without-*)
361    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    eval "with_${ac_package}=no" ;;
368
369  --x)
370    # Obsolete; use --with-x.
371    with_x=yes ;;
372
373  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374  | --x-incl | --x-inc | --x-in | --x-i)
375    ac_prev=x_includes ;;
376  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378    x_includes="$ac_optarg" ;;
379
380  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382    ac_prev=x_libraries ;;
383  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385    x_libraries="$ac_optarg" ;;
386
387  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388    ;;
389
390  *)
391    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392      echo "configure: warning: $ac_option: invalid host type" 1>&2
393    fi
394    if test "x$nonopt" != xNONE; then
395      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396    fi
397    nonopt="$ac_option"
398    ;;
399
400  esac
401done
402
403if test -n "$ac_prev"; then
404  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405fi
406
407trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
409# File descriptor usage:
410# 0 standard input
411# 1 file creation
412# 2 errors and warnings
413# 3 some systems may open it to /dev/tty
414# 4 used on the Kubota Titan
415# 6 checking for... messages and results
416# 5 compiler messages saved in config.log
417if test "$silent" = yes; then
418  exec 6>/dev/null
419else
420  exec 6>&1
421fi
422exec 5>./config.log
423
424echo "\
425This file contains any messages produced by compilers while
426running configure, to aid debugging if configure makes a mistake.
427" 1>&5
428
429# Strip out --no-create and --no-recursion so they do not pile up.
430# Also quote any args containing shell metacharacters.
431ac_configure_args=
432for ac_arg
433do
434  case "$ac_arg" in
435  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436  | --no-cr | --no-c) ;;
437  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442  esac
443done
444
445# NLS nuisances.
446# Only set these to C if already set.  These must not be set unconditionally
447# because not all systems understand e.g. LANG=C (notably SCO).
448# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449# Non-C LC_CTYPE values break the ctype check.
450if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
455# confdefs.h avoids OS command line length limits that DEFS can exceed.
456rm -rf conftest* confdefs.h
457# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458echo > confdefs.h
459
460# A filename unique to this package, relative to the directory that
461# configure is in, which we can look for to find out if srcdir is correct.
462ac_unique_file=factor.h
463
464# Find the source files, if location was not specified.
465if test -z "$srcdir"; then
466  ac_srcdir_defaulted=yes
467  # Try the directory containing this script, then its parent.
468  ac_prog=$0
469  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471  srcdir=$ac_confdir
472  if test ! -r $srcdir/$ac_unique_file; then
473    srcdir=..
474  fi
475else
476  ac_srcdir_defaulted=no
477fi
478if test ! -r $srcdir/$ac_unique_file; then
479  if test "$ac_srcdir_defaulted" = yes; then
480    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481  else
482    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483  fi
484fi
485srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487# Prefer explicitly selected file to automatically selected ones.
488if test -z "$CONFIG_SITE"; then
489  if test "x$prefix" != xNONE; then
490    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491  else
492    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493  fi
494fi
495for ac_site_file in $CONFIG_SITE; do
496  if test -r "$ac_site_file"; then
497    echo "loading site script $ac_site_file"
498    . "$ac_site_file"
499  fi
500done
501
502if test -r "$cache_file"; then
503  echo "loading cache $cache_file"
504  . $cache_file
505else
506  echo "creating cache $cache_file"
507  > $cache_file
508fi
509
510ac_ext=c
511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512ac_cpp='$CPP $CPPFLAGS'
513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515cross_compiling=$ac_cv_prog_cc_cross
516
517ac_exeext=
518ac_objext=o
519if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522    ac_n= ac_c='
523' ac_t='        '
524  else
525    ac_n=-n ac_c= ac_t=
526  fi
527else
528  ac_n= ac_c='\c' ac_t=
529fi
530
531
532
533
534libfac_name="\"Factorization and characteristic sets library\""
535
536libfac_version="3.0.2"
537
538libfac_date="\"May 2006\""
539
540libfac_author="\"M. Messollen\""
541
542
543libfac="libfac"
544
545libfac_g="libfac-g"
546
547libsingfac="libsingfac"
548
549libsingfac_g="libsingfac-g"
550
551factorH="factor.h"
552
553
554
555# Check whether --with-debug or --without-debug was given.
556if test "${with_debug+set}" = set; then
557  withval="$with_debug"
558  :
559fi
560
561
562# Check whether --with-Singular or --without-Singular was given.
563if test "${with_Singular+set}" = set; then
564  withval="$with_Singular"
565  :
566fi
567
568
569if test "$with_Singular" = yes; then
570  cat >> confdefs.h <<\EOF
571#define SINGULAR 1
572EOF
573
574  cat >> confdefs.h <<\EOF
575#define NOSTREAMIO 1
576EOF
577
578  if test "$with_debug" = yes; then
579     targetname="libsingfac-g"
580  else
581     targetname="libsingfac"
582  fi
583else
584  if test "$with_debug" = yes; then
585     targetname="libfac-g"
586  else
587     targetname="libfac"
588  fi
589fi
590
591# Check whether --with-Singularerror or --without-Singularerror was given.
592if test "${with_Singularerror+set}" = set; then
593  withval="$with_Singularerror"
594  :
595fi
596
597
598if test "$with_Singularerror" = yes; then
599  cat >> confdefs.h <<\EOF
600#define SINGULAR_ERROR 1
601EOF
602
603fi
604
605# Check whether --with-NOSTREAMIO or --without-NOSTREAMIO was given.
606if test "${with_NOSTREAMIO+set}" = set; then
607  withval="$with_NOSTREAMIO"
608  :
609fi
610
611
612if test "$with_NOSTREAMIO" = yes; then
613  cat >> confdefs.h <<\EOF
614#define NOSTREAMIO 1
615EOF
616
617fi
618
619if (test "x${prefix} != xNONE && test "${prefix} != "/usr/local") || \
620  test "${ac_default_prefix}" != "/usr/local" || \
621  test "${includedir}" != '${prefix}/include'; then
622  CPPFLAGS="-I${includedir} ${CPPFLAGS}"
623fi
624CPPFLAGS="-I./factor ${CPPFLAGS}"
625
626if (test "x${prefix} != xNONE && test "${prefix} != "/usr/local") || \
627  test "${ac_default_prefix}" != "/usr/local" || \
628  test "${libdir}" != '${prefix}/lib'; then
629  LDFLAGS="-L${libdir} ${LDFLAGS}"
630fi
631LDFLAGS="-L. ${LDFLAGS}"
632
633if test "${CXXFLAGS+set}" != set; then
634  ac_cxxflags_set=no
635  if test "$with_debug" = yes; then
636    CXXFLAGS="-g"
637  else
638    CXXFLAGS="-O"
639    cat >> confdefs.h <<\EOF
640#define NDEBUG 1
641EOF
642
643  fi
644fi
645
646ac_ext=C
647# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648ac_cpp='$CXXCPP $CPPFLAGS'
649ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651cross_compiling=$ac_cv_prog_cxx_cross
652
653for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
654do
655# Extract the first word of "$ac_prog", so it can be a program name with args.
656set dummy $ac_prog; ac_word=$2
657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658echo "configure:659: checking for $ac_word" >&5
659if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
660  echo $ac_n "(cached) $ac_c" 1>&6
661else
662  if test -n "$CXX"; then
663  ac_cv_prog_CXX="$CXX" # Let the user override the test.
664else
665  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
666  ac_dummy="$PATH"
667  for ac_dir in $ac_dummy; do
668    test -z "$ac_dir" && ac_dir=.
669    if test -f $ac_dir/$ac_word; then
670      ac_cv_prog_CXX="$ac_prog"
671      break
672    fi
673  done
674  IFS="$ac_save_ifs"
675fi
676fi
677CXX="$ac_cv_prog_CXX"
678if test -n "$CXX"; then
679  echo "$ac_t""$CXX" 1>&6
680else
681  echo "$ac_t""no" 1>&6
682fi
683
684test -n "$CXX" && break
685done
686test -n "$CXX" || CXX="gcc"
687
688
689echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
690echo "configure:691: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
691
692ac_ext=C
693# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694ac_cpp='$CXXCPP $CPPFLAGS'
695ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697cross_compiling=$ac_cv_prog_cxx_cross
698
699cat > conftest.$ac_ext << EOF
700
701#line 702 "configure"
702#include "confdefs.h"
703
704int main(){return(0);}
705EOF
706if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
707  ac_cv_prog_cxx_works=yes
708  # If we can't run a trivial program, we are probably using a cross compiler.
709  if (./conftest; exit) 2>/dev/null; then
710    ac_cv_prog_cxx_cross=no
711  else
712    ac_cv_prog_cxx_cross=yes
713  fi
714else
715  echo "configure: failed program was:" >&5
716  cat conftest.$ac_ext >&5
717  ac_cv_prog_cxx_works=no
718fi
719rm -fr conftest*
720ac_ext=C
721# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
722ac_cpp='$CXXCPP $CPPFLAGS'
723ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
724ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
725cross_compiling=$ac_cv_prog_cxx_cross
726
727echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
728if test $ac_cv_prog_cxx_works = no; then
729  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
730fi
731echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
732echo "configure:733: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
733echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
734cross_compiling=$ac_cv_prog_cxx_cross
735
736echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
737echo "configure:738: checking whether we are using GNU C++" >&5
738if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
739  echo $ac_n "(cached) $ac_c" 1>&6
740else
741  cat > conftest.C <<EOF
742#ifdef __GNUC__
743  yes;
744#endif
745EOF
746if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
747  ac_cv_prog_gxx=yes
748else
749  ac_cv_prog_gxx=no
750fi
751fi
752
753echo "$ac_t""$ac_cv_prog_gxx" 1>&6
754
755if test $ac_cv_prog_gxx = yes; then
756  GXX=yes
757else
758  GXX=
759fi
760
761ac_test_CXXFLAGS="${CXXFLAGS+set}"
762ac_save_CXXFLAGS="$CXXFLAGS"
763CXXFLAGS=
764echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
765echo "configure:766: checking whether ${CXX-g++} accepts -g" >&5
766if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
767  echo $ac_n "(cached) $ac_c" 1>&6
768else
769  echo 'void f(){}' > conftest.cc
770if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
771  ac_cv_prog_cxx_g=yes
772else
773  ac_cv_prog_cxx_g=no
774fi
775rm -f conftest*
776
777fi
778
779echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
780if test "$ac_test_CXXFLAGS" = set; then
781  CXXFLAGS="$ac_save_CXXFLAGS"
782elif test $ac_cv_prog_cxx_g = yes; then
783  if test "$GXX" = yes; then
784    CXXFLAGS="-g -O2"
785  else
786    CXXFLAGS="-g"
787  fi
788else
789  if test "$GXX" = yes; then
790    CXXFLAGS="-O2"
791  else
792    CXXFLAGS=
793  fi
794fi
795
796echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
797echo "configure:798: checking how to run the C++ preprocessor" >&5
798if test -z "$CXXCPP"; then
799if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
800  echo $ac_n "(cached) $ac_c" 1>&6
801else
802  ac_ext=C
803# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804ac_cpp='$CXXCPP $CPPFLAGS'
805ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807cross_compiling=$ac_cv_prog_cxx_cross
808  CXXCPP="${CXX-g++} -E"
809  cat > conftest.$ac_ext <<EOF
810#line 811 "configure"
811#include "confdefs.h"
812#include <stdlib.h>
813EOF
814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817if test -z "$ac_err"; then
818  :
819else
820  echo "$ac_err" >&5
821  echo "configure: failed program was:" >&5
822  cat conftest.$ac_ext >&5
823  rm -rf conftest*
824  CXXCPP=/lib/cpp
825fi
826rm -f conftest*
827  ac_cv_prog_CXXCPP="$CXXCPP"
828ac_ext=C
829# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
830ac_cpp='$CXXCPP $CPPFLAGS'
831ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
832ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
833cross_compiling=$ac_cv_prog_cxx_cross
834fi
835fi
836CXXCPP="$ac_cv_prog_CXXCPP"
837echo "$ac_t""$CXXCPP" 1>&6
838
839
840echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
841echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
842set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
843if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
844  echo $ac_n "(cached) $ac_c" 1>&6
845else
846  cat > conftestmake <<\EOF
847all:
848        @echo 'ac_maketemp="${MAKE}"'
849EOF
850# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852if test -n "$ac_maketemp"; then
853  eval ac_cv_prog_make_${ac_make}_set=yes
854else
855  eval ac_cv_prog_make_${ac_make}_set=no
856fi
857rm -f conftestmake
858fi
859if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860  echo "$ac_t""yes" 1>&6
861  SET_MAKE=
862else
863  echo "$ac_t""no" 1>&6
864  SET_MAKE="MAKE=${MAKE-make}"
865fi
866
867# Extract the first word of "ranlib", so it can be a program name with args.
868set dummy ranlib; ac_word=$2
869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870echo "configure:871: checking for $ac_word" >&5
871if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
872  echo $ac_n "(cached) $ac_c" 1>&6
873else
874  if test -n "$RANLIB"; then
875  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
876else
877  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
878  ac_dummy="$PATH"
879  for ac_dir in $ac_dummy; do
880    test -z "$ac_dir" && ac_dir=.
881    if test -f $ac_dir/$ac_word; then
882      ac_cv_prog_RANLIB="ranlib"
883      break
884    fi
885  done
886  IFS="$ac_save_ifs"
887  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
888fi
889fi
890RANLIB="$ac_cv_prog_RANLIB"
891if test -n "$RANLIB"; then
892  echo "$ac_t""$RANLIB" 1>&6
893else
894  echo "$ac_t""no" 1>&6
895fi
896
897# Extract the first word of "ar", so it can be a program name with args.
898set dummy ar; ac_word=$2
899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900echo "configure:901: checking for $ac_word" >&5
901if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
902  echo $ac_n "(cached) $ac_c" 1>&6
903else
904  if test -n "$AR"; then
905  ac_cv_prog_AR="$AR" # Let the user override the test.
906else
907  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
908  ac_dummy="$PATH"
909  for ac_dir in $ac_dummy; do
910    test -z "$ac_dir" && ac_dir=.
911    if test -f $ac_dir/$ac_word; then
912      ac_cv_prog_AR="ar"
913      break
914    fi
915  done
916  IFS="$ac_save_ifs"
917fi
918fi
919AR="$ac_cv_prog_AR"
920if test -n "$AR"; then
921  echo "$ac_t""$AR" 1>&6
922else
923  echo "$ac_t""no" 1>&6
924fi
925
926if test -z "$AR"; then
927  { echo "configure: error: Need ar" 1>&2; exit 1; }
928fi
929
930
931ac_safe=`echo "factory.h" | sed 'y%./+-%__p_%'`
932echo $ac_n "checking for factory.h""... $ac_c" 1>&6
933echo "configure:934: checking for factory.h" >&5
934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
935  echo $ac_n "(cached) $ac_c" 1>&6
936else
937  cat > conftest.$ac_ext <<EOF
938#line 939 "configure"
939#include "confdefs.h"
940#include <factory.h>
941EOF
942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945if test -z "$ac_err"; then
946  rm -rf conftest*
947  eval "ac_cv_header_$ac_safe=yes"
948else
949  echo "$ac_err" >&5
950  echo "configure: failed program was:" >&5
951  cat conftest.$ac_ext >&5
952  rm -rf conftest*
953  eval "ac_cv_header_$ac_safe=no"
954fi
955rm -f conftest*
956fi
957if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
958  echo "$ac_t""yes" 1>&6
959  :
960else
961  echo "$ac_t""no" 1>&6
962echo "configure: warning: factory.h not found! Install factory before building libfac!" 1>&2
963fi
964
965
966
967
968if test x${GXX} = xyes; then
969
970  if test "$ac_cxxflags_set" = no; then
971    if test "$with_debug" = yes; then
972       CXXFLAGS="-O -g"
973    else
974       CXXFLAGS="-O3 "
975    fi
976# check whether CXX accepts -fno-rtti
977
978ac_ext=C
979# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980ac_cpp='$CXXCPP $CPPFLAGS'
981ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983cross_compiling=$ac_cv_prog_cxx_cross
984
985echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
986echo "configure:987: checking whether gcc accepts -fno-rtti" >&5
987tmp_flags=${CXXFLAGS}
988CXXFLAGS="${CXXFLAGS} -fno-rtti"
989if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
990  echo $ac_n "(cached) $ac_c" 1>&6
991else
992  cat > conftest.$ac_ext <<EOF
993#line 994 "configure"
994#include "confdefs.h"
995
996int main() {
997
998; return 0; }
999EOF
1000if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001  rm -rf conftest*
1002  ac_cv_cxx_have_rtti=yes
1003else
1004  echo "configure: failed program was:" >&5
1005  cat conftest.$ac_ext >&5
1006  rm -rf conftest*
1007  ac_cv_cxx_have_rtti=no
1008fi
1009rm -f conftest*
1010
1011fi
1012
1013echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
1014CXXFLAGS=$tmp_flags
1015if test "${ac_cv_cxx_have_rtti}" = yes; then
1016CXXFLAGS="$CXXFLAGS -fno-rtti"
1017fi
1018
1019echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
1020echo "configure:1021: checking whether gcc accepts -fno-exceptions" >&5
1021tmp_flags=${CXXFLAGS}
1022CXXFLAGS="${CXXFLAGS} -fno-exceptions"
1023if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
1024  echo $ac_n "(cached) $ac_c" 1>&6
1025else
1026  cat > conftest.$ac_ext <<EOF
1027#line 1028 "configure"
1028#include "confdefs.h"
1029
1030int main() {
1031
1032; return 0; }
1033EOF
1034if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1035  rm -rf conftest*
1036  ac_cv_cxx_have_exceptions=yes
1037else
1038  echo "configure: failed program was:" >&5
1039  cat conftest.$ac_ext >&5
1040  rm -rf conftest*
1041  ac_cv_cxx_have_exceptions=no
1042fi
1043rm -f conftest*
1044
1045fi
1046
1047echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
1048CXXFLAGS=$tmp_flags
1049if test "${ac_cv_cxx_have_exceptions}" = yes; then
1050CXXFLAGS="$CXXFLAGS -fno-exceptions"
1051fi
1052
1053
1054ac_ext=C
1055# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1056ac_cpp='$CXXCPP $CPPFLAGS'
1057ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1058ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1059cross_compiling=$ac_cv_prog_cxx_cross
1060
1061
1062  fi
1063  CXXTEMPLFLAGS="-fno-implicit-templates"
1064
1065
1066else
1067  CXXTEMPFLAGS=""
1068fi
1069
1070
1071trap '' 1 2 15
1072cat > confcache <<\EOF
1073# This file is a shell script that caches the results of configure
1074# tests run on this system so they can be shared between configure
1075# scripts and configure runs.  It is not useful on other systems.
1076# If it contains results you don't want to keep, you may remove or edit it.
1077#
1078# By default, configure uses ./config.cache as the cache file,
1079# creating it if it does not exist already.  You can give configure
1080# the --cache-file=FILE option to use a different cache file; that is
1081# what configure does when it calls configure scripts in
1082# subdirectories, so they share the cache.
1083# Giving --cache-file=/dev/null disables caching, for debugging configure.
1084# config.status only pays attention to the cache file if you give it the
1085# --recheck option to rerun configure.
1086#
1087EOF
1088# The following way of writing the cache mishandles newlines in values,
1089# but we know of no workaround that is simple, portable, and efficient.
1090# So, don't put newlines in cache variables' values.
1091# Ultrix sh set writes to stderr and can't be redirected directly,
1092# and sets the high bit in the cache file unless we assign to the vars.
1093(set) 2>&1 |
1094  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1095  *ac_space=\ *)
1096    # `set' does not quote correctly, so add quotes (double-quote substitution
1097    # turns \\\\ into \\, and sed turns \\ into \).
1098    sed -n \
1099      -e "s/'/'\\\\''/g" \
1100      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1101    ;;
1102  *)
1103    # `set' quotes correctly as required by POSIX, so do not add quotes.
1104    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1105    ;;
1106  esac >> confcache
1107if cmp -s $cache_file confcache; then
1108  :
1109else
1110  if test -w $cache_file; then
1111    echo "updating cache $cache_file"
1112    cat confcache > $cache_file
1113  else
1114    echo "not updating unwritable cache $cache_file"
1115  fi
1116fi
1117rm -f confcache
1118
1119trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1120
1121test "x$prefix" = xNONE && prefix=$ac_default_prefix
1122# Let make expand exec_prefix.
1123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1124
1125# Any assignment to VPATH causes Sun make to only execute
1126# the first set of double-colon rules, so remove it if not needed.
1127# If there is a colon in the path, we need to keep it.
1128if test "x$srcdir" = x.; then
1129  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1130fi
1131
1132trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1133
1134# Transform confdefs.h into DEFS.
1135# Protect against shell expansion while executing Makefile rules.
1136# Protect against Makefile macro expansion.
1137cat > conftest.defs <<\EOF
1138s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1139s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1140s%\[%\\&%g
1141s%\]%\\&%g
1142s%\$%$$%g
1143EOF
1144DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1145rm -f conftest.defs
1146
1147
1148# Without the "./", some shells look in PATH for config.status.
1149: ${CONFIG_STATUS=./config.status}
1150
1151echo creating $CONFIG_STATUS
1152rm -f $CONFIG_STATUS
1153cat > $CONFIG_STATUS <<EOF
1154#! /bin/sh
1155# Generated automatically by configure.
1156# Run this file to recreate the current configuration.
1157# This directory was configured as follows,
1158# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1159#
1160# $0 $ac_configure_args
1161#
1162# Compiler output produced by configure, useful for debugging
1163# configure, is in ./config.log if it exists.
1164
1165ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1166for ac_option
1167do
1168  case "\$ac_option" in
1169  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1170    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1171    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1172  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1173    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1174    exit 0 ;;
1175  -help | --help | --hel | --he | --h)
1176    echo "\$ac_cs_usage"; exit 0 ;;
1177  *) echo "\$ac_cs_usage"; exit 1 ;;
1178  esac
1179done
1180
1181ac_given_srcdir=$srcdir
1182
1183trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1184EOF
1185cat >> $CONFIG_STATUS <<EOF
1186
1187# Protect against being on the right side of a sed subst in config.status.
1188sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1189 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1190$ac_vpsub
1191$extrasub
1192s%@SHELL@%$SHELL%g
1193s%@CFLAGS@%$CFLAGS%g
1194s%@CPPFLAGS@%$CPPFLAGS%g
1195s%@CXXFLAGS@%$CXXFLAGS%g
1196s%@FFLAGS@%$FFLAGS%g
1197s%@DEFS@%$DEFS%g
1198s%@LDFLAGS@%$LDFLAGS%g
1199s%@LIBS@%$LIBS%g
1200s%@exec_prefix@%$exec_prefix%g
1201s%@prefix@%$prefix%g
1202s%@program_transform_name@%$program_transform_name%g
1203s%@bindir@%$bindir%g
1204s%@sbindir@%$sbindir%g
1205s%@libexecdir@%$libexecdir%g
1206s%@datadir@%$datadir%g
1207s%@sysconfdir@%$sysconfdir%g
1208s%@sharedstatedir@%$sharedstatedir%g
1209s%@localstatedir@%$localstatedir%g
1210s%@libdir@%$libdir%g
1211s%@includedir@%$includedir%g
1212s%@oldincludedir@%$oldincludedir%g
1213s%@infodir@%$infodir%g
1214s%@mandir@%$mandir%g
1215s%@libfac_name@%$libfac_name%g
1216s%@libfac_version@%$libfac_version%g
1217s%@libfac_date@%$libfac_date%g
1218s%@libfac_author@%$libfac_author%g
1219s%@libfac@%$libfac%g
1220s%@libfac_g@%$libfac_g%g
1221s%@libsingfac@%$libsingfac%g
1222s%@libsingfac_g@%$libsingfac_g%g
1223s%@factorH@%$factorH%g
1224s%@targetname@%$targetname%g
1225s%@CXX@%$CXX%g
1226s%@CXXCPP@%$CXXCPP%g
1227s%@SET_MAKE@%$SET_MAKE%g
1228s%@RANLIB@%$RANLIB%g
1229s%@AR@%$AR%g
1230s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
1231
1232CEOF
1233EOF
1234
1235cat >> $CONFIG_STATUS <<\EOF
1236
1237# Split the substitutions into bite-sized pieces for seds with
1238# small command number limits, like on Digital OSF/1 and HP-UX.
1239ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1240ac_file=1 # Number of current file.
1241ac_beg=1 # First line for current file.
1242ac_end=$ac_max_sed_cmds # Line after last line for current file.
1243ac_more_lines=:
1244ac_sed_cmds=""
1245while $ac_more_lines; do
1246  if test $ac_beg -gt 1; then
1247    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1248  else
1249    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1250  fi
1251  if test ! -s conftest.s$ac_file; then
1252    ac_more_lines=false
1253    rm -f conftest.s$ac_file
1254  else
1255    if test -z "$ac_sed_cmds"; then
1256      ac_sed_cmds="sed -f conftest.s$ac_file"
1257    else
1258      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1259    fi
1260    ac_file=`expr $ac_file + 1`
1261    ac_beg=$ac_end
1262    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1263  fi
1264done
1265if test -z "$ac_sed_cmds"; then
1266  ac_sed_cmds=cat
1267fi
1268EOF
1269
1270cat >> $CONFIG_STATUS <<EOF
1271
1272CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1273EOF
1274cat >> $CONFIG_STATUS <<\EOF
1275for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1276  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1277  case "$ac_file" in
1278  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1279       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1280  *) ac_file_in="${ac_file}.in" ;;
1281  esac
1282
1283  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1284
1285  # Remove last slash and all that follows it.  Not all systems have dirname.
1286  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1287  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1288    # The file is in a subdirectory.
1289    test ! -d "$ac_dir" && mkdir "$ac_dir"
1290    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1291    # A "../" for each directory in $ac_dir_suffix.
1292    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1293  else
1294    ac_dir_suffix= ac_dots=
1295  fi
1296
1297  case "$ac_given_srcdir" in
1298  .)  srcdir=.
1299      if test -z "$ac_dots"; then top_srcdir=.
1300      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1301  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1302  *) # Relative path.
1303    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1304    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1305  esac
1306
1307
1308  echo creating "$ac_file"
1309  rm -f "$ac_file"
1310  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1311  case "$ac_file" in
1312  *Makefile*) ac_comsub="1i\\
1313# $configure_input" ;;
1314  *) ac_comsub= ;;
1315  esac
1316
1317  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1318  sed -e "$ac_comsub
1319s%@configure_input@%$configure_input%g
1320s%@srcdir@%$srcdir%g
1321s%@top_srcdir@%$top_srcdir%g
1322" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1323fi; done
1324rm -f conftest.s*
1325
1326EOF
1327cat >> $CONFIG_STATUS <<EOF
1328
1329EOF
1330cat >> $CONFIG_STATUS <<\EOF
1331
1332exit 0
1333EOF
1334chmod +x $CONFIG_STATUS
1335rm -fr confdefs* $ac_clean_files
1336test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1337
1338
Note: See TracBrowser for help on using the repository browser.