source: git/ntl/configure @ cfbb34

spielwiese
Last change on this file since cfbb34 was cfbb34, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes: CXXFLAGS git-svn-id: file:///usr/local/Singular/svn/trunk@7004 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 978 bytes
Line 
1#!/bin/sh
2for i in $*
3do
4  case $i in
5  --prefix=*) prefix=`echo $i|sed 's/--prefix=//'` ;;
6  --libdir=*) libdir=`echo $i|sed 's/--libdir=//'` ;;
7  --includedir=*) includedir=`echo $i|sed 's/--includedir=//'` ;;
8  esac
9done
10
11if test -r ../config.cache; then 
12  . ../config.cache
13fi
14
15if test set${ac_cv_singuname} = set; then
16  :
17else
18  ac_cv_singuname="unknown"
19  if test -r "../singuname.sh"; then
20    if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
21      ac_cv_singuname=`/bin/sh ../singuname.sh`
22    fi
23  fi
24fi
25
26echo "#!/bin/sh" >config.status
27echo "cd src" >>config.status
28echo ./configure LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname} CFLAGS="-O3 -fomit-frame-pointer" CXXFLAGS="-O3 -fomit-frame-pointer -fno-rtti -fno-exceptions" >>config.status
29echo "cd .." >>config.status
30
31cd src
32
33./configure LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname}
34
35cd ..
36
Note: See TracBrowser for help on using the repository browser.