source: git/ntl/configure @ c4e65e

spielwiese
Last change on this file since c4e65e was c4e65e, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: gcc 3.x on many architectures require -O2, not -O3 git-svn-id: file:///usr/local/Singular/svn/trunk@7997 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/sh
2# version $Id: configure,v 1.20 2005-05-02 14:08:07 Singular Exp $
3for i in $*
4do
5  case $i in
6  --prefix=*) prefix=`echo $i|sed 's/--prefix=//'` ;;
7  --libdir=*) libdir=`echo $i|sed 's/--libdir=//'` ;;
8  --includedir=*) includedir=`echo $i|sed 's/--includedir=//'` ;;
9  esac
10done
11
12if test -r ../config.cache; then
13  . ../config.cache
14fi
15
16if test set${ac_cv_singuname} = set; then
17  :
18else
19  ac_cv_singuname="unknown"
20  if test -r "../singuname.sh"; then
21    if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
22      ac_cv_singuname=`/bin/sh ../singuname.sh`
23    fi
24  fi
25fi
26
27if test x$SING_CC = x
28then
29  SING_CC=gcc
30fi
31
32if test x$SING_CXX = x
33then
34  SING_CXX=g++
35fi
36
37if test "x$CFLAGS" = x
38then
39  CFLAGS="-O2 -fomit-frame-pointer"
40fi
41
42if test "x$CXXFLAGS" = x
43then
44  if test ac_cv_cxx_have_exception = yes
45  then
46    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti -fno-exceptions"
47  else
48    CXXFLAGS="-O2 -fomit-frame-pointer -fno-rtti"
49  fi
50fi
51CFLAGS="$CPPFLAGS $CFLAGS"
52CXXFLAGS="$CPPFLAGS $CXXFLAGS"
53echo "#!/bin/sh" >config.status
54echo "cd src" >>config.status
55echo ./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=off >>config.status
56echo "cd .." >>config.status
57
58chmod +rx config.status
59
60. ./config.status
Note: See TracBrowser for help on using the repository browser.