source: git/ntl/configure @ f3f3ad

spielwiese
Last change on this file since f3f3ad was f3f3ad, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: fixed iostream test git-svn-id: file:///usr/local/Singular/svn/trunk@9175 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 1.8 KB
Line 
1#!/bin/sh
2# version $Id: configure,v 1.25 2006-05-29 16:49:47 Singular Exp $
3
4while [ $# -ne 0 ]; do
5   case $1 in
6     --prefix=*)
7         prefix=`echo $1 | sed 's/--prefix=//'` ;
8         ;;
9     --prefix)
10         shift;
11         prefix="$1";
12         ;;
13     --libdir=*)
14         libdir=`echo $1 | sed 's/--libdir=//'` ;
15         ;;
16     --libdir)
17         shift;
18         libdir="$1";
19         ;;
20     --includedir=*)
21         includedir=`echo $1 | sed 's/--includedir=//'` ;
22         ;;
23     --includedir)
24         shift;
25         includedir="$1";
26         ;;
27     *)
28         : ignore all other options
29         ;;
30  esac;
31  shift;
32done
33
34if test -r ../config.cache; then
35  . ../config.cache
36fi
37
38if test set${ac_cv_singuname} = set; then
39  :
40else
41  ac_cv_singuname="unknown"
42  if test -r "../singuname.sh"; then
43    if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
44      ac_cv_singuname=`/bin/sh ../singuname.sh`
45    fi
46  fi
47fi
48
49if test "x$SING_CC" = x
50then
51  SING_CC=gcc
52fi
53
54if test "x$SING_CXX" = x
55then
56  SING_CXX=g++
57fi
58
59if test "x$CFLAGS" = x
60then
61  CFLAGS="-O2 -fomit-frame-pointer"
62fi
63
64if test "x$CXXFLAGS" = x
65then
66  if test x$ac_cv_cxx_have_exception = xyes
67  then
68    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti -fno-exceptions"
69  else
70    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti"
71  fi
72fi
73
74if test x$ac_cv_header_iostream = xyes
75then
76  NTL_STD_CXX=on
77else
78  NTL_STD_CXX=off
79fi
80
81CFLAGS="$CPPFLAGS $CFLAGS"
82CXXFLAGS="$CPPFLAGS $CXXFLAGS"
83echo "#!/bin/sh" >config.status
84echo "cd src" >>config.status
85echo ./configure CC=\"$SING_CC\" CXX=\"$SING_CXX\" LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname} CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" NTL_STD_CXX=$NTL_STD_CXX >>config.status
86echo "cd .." >>config.status
87
88chmod +rx config.status
89
90. ./config.status
Note: See TracBrowser for help on using the repository browser.