1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
--- scilab-2.7/configure.in 2003-02-06 02:42:05.000000000 -0500
+++ scilab-save/configure.in 2004-04-21 10:06:54.000000000 -0400
@@ -376,6 +376,55 @@ case "$host" in
fi
MAKEFILE_TARGET=Makefile.linux
;;
+# Linux x86_64 (added by Scott Robert Ladd)
+ x86_64-*-linux-gnu)
+ LIEEELIB=
+ AC_CHECK_LIB(ieee,main,
+ [LIEEELIB=-lieee])
+ MALLOC=malloc.o
+ GCC=yes
+ CC=gcc
+ CC_OPTIONS='-O -Dlinux -fwritable-strings'
+ CC_LDFLAGS=$LIEEELIB
+ # find Fortran compiler
+ # g77 already asked and found: good
+ if test "$WITH_G77" = yes; then
+ FC=g77
+ # option with-f2c
+ elif test "$with_f2c" = yes; then
+ AC_CHECK_PROG(F2C,f2c,yes,no)
+ if test "$F2C" = no; then
+ AC_MSG_ERROR([Unable to configure: f2c compiler not found])
+ fi
+ # script shell f77 have bugs, get ours
+ FC='${SCIDIR}/bin/f77-linux'
+ else
+ # first find g77
+ AC_CHECK_PROG(WITH_G77,g77,yes,no)
+ if test "$WITH_G77" = yes; then
+ FC=g77
+ else
+ # otherwise find f2c
+ AC_CHECK_PROG(F2C,f2c,yes,no)
+ if test "$F2C" = yes; then
+ # script shell f77 have bugs, get ours
+ FC='${SCIDIR}/bin/f77-linux'
+ else
+ AC_MSG_ERROR([Unable to configure: no Fortran compiler found])
+ fi
+ fi
+ fi
+ FC_OPTIONS=-O
+ FC_OPTIONS_O0=
+ FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
+ LD=ld
+ LD_LDFLAGS=$LIEEELIB
+ if test "$enable_debug" = yes; then
+ CC_OPTIONS='-g -Dlinux -fwritable-strings'
+ FC_OPTIONS=-g
+ fi
+ MAKEFILE_TARGET=Makefile.linux
+ ;;
# SUN OS (NO LONGER SUPPORTED)
sparc-*-sunos*)
# standard compilers
|