source: git/ntl/configure @ a5e67f

spielwiese
Last change on this file since a5e67f was a5e67f, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes: CC/CXX git-svn-id: file:///usr/local/Singular/svn/trunk@7084 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 1.1 KB
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
26if test x$CC = x
27then
28  CC=gcc
29fi
30
31if test x$CXX = x
32then
33  CC=g++
34fi
35
36echo "#!/bin/sh" >config.status
37echo "cd src" >>config.status
38echo ./configure CC=$CC CXX=$CXX 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
39echo "cd .." >>config.status
40
41cd src
42
43./configure CC=$CC CXX=$CXX LIBDIR=$libdir INCLUDEDIR=$includedir PREFIX=$prefix NTL_GMP_LIP=on GMP_PREFIX=$prefix/${ac_cv_singuname}
44
45cd ..
46
Note: See TracBrowser for help on using the repository browser.