=================================================================== RCS file: /home/cvs/OpenXM_contrib/pari/Attic/Configure,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -p -r1.1.1.1 -r1.3 --- OpenXM_contrib/pari/Attic/Configure 2000/01/09 17:35:29 1.1.1.1 +++ OpenXM_contrib/pari/Attic/Configure 2005/07/12 02:25:59 1.3 @@ -221,7 +221,8 @@ if test -n "$myuname"; then irix*) osname=irix;; fx2800) arch=fx2800; osname=concentrix;; hp*) arch=hppa; osname=hpux;; - freebsd|os2) arch=ix86;; + freebsd) arch=`uname -m`;; + os2) arch=ix86;; ultrix) arch=mips;; nextstep) arch=`file /bin/sh | sed 's/.*(for architecture \(.*\))/\1/'`;; osf1) case "$5" in alpha) arch=alpha;; esac;; @@ -774,6 +775,7 @@ if test -n "$__gnuc__"; then linux-i?86|cygwin*) OPTFLAGS="-O3 -DGCC_INLINE -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2";; esac case "$osname-$asmarch" in *-sparcv8*) CFLAGS="$CFLAGS -mv8" ;; esac + case "$arch" in amd64|x86_64) CFLAGS="$CFLAGS -fPIC" ;; esac else CFLAGS= DBGFLAGS="-g" @@ -859,7 +861,7 @@ case "$osname" in cppfl="-DUSE_ELF" fi ;; esac -CPP="$cc $cppfl -E -I." +CPP="$CC $cppfl -E -I." echo "C PreProcessor is $CPP"