96
###############################
98
###############################
100
SCIVERSION=`cat Version.incl | sed -e "s/SCIVERSION=//" `
73
103
########################
74
104
## removing and cleaning
75
105
########################
78
FILES_TO_CLEAN='*.CKP *.ln *.BAK *.bak core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut .*~ *.trace so_locations *.orig *.cos'
86
######################
87
## use GNU compilers ?
88
######################
108
FILES_TO_CLEAN='*.CKP *.ln *.BAK *.bak core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut .*~ *.trace so_locations *.orig *.cos *.obj'
110
#####################################################
111
## if specific compilers required check if they exist
112
#####################################################
90
114
if test "$with_gnu" = yes; then
91
AC_CHECK_PROG(GCC,gcc,yes,no)
92
if test "$GCC" = no; then
93
AC_MSG_ERROR("Unable to configure: gcc compiler not found")
95
AC_CHECK_PROG(G77,g77,yes,no)
96
if test "$G77" = no; then
97
AC_MSG_ERROR("Unable to configure: g77 compiler not found")
100
if test "$with_gcc" = yes; then
101
AC_CHECK_PROG(GCC,gcc,yes,no)
102
if test "$GCC" = no; then
103
AC_MSG_ERROR("Unable to configure: gcc compiler not found")
106
if test "$with_g77" = yes; then
107
AC_CHECK_PROG(G77,g77,yes,no)
108
if test "$G77" = no; then
109
AC_MSG_ERROR("Unable to configure: g77 compiler not found")
115
# GNU C and Fortran compilers required
116
AC_CHECK_PROG(WITH_GCC,gcc,yes,no)
117
if test "$WITH_GCC" = no; then
118
AC_MSG_ERROR([Unable to configure: gcc compiler not found])
120
AC_CHECK_PROG(WITH_G77,g77,yes,no)
121
if test "$WITH_G77" = no; then
122
AC_MSG_ERROR([Unable to configure: g77 compiler not found])
124
elif test "$with_intelcompilers" = yes; then
125
# intel C and Fortran compilers required
126
AC_CHECK_PROGS(ICC,ecc icc,no)
127
if test "$ICC" = no; then
128
AC_MSG_ERROR([Unable to configure: icc nor ecc compiler found])
130
AC_CHECK_PROGS(IFC,efc ifc,no)
131
if test "$IFC" = no; then
132
AC_MSG_ERROR([Unable to configure: ifc nor efc compiler found])
134
elif test "$with_gcc" = yes; then
136
AC_CHECK_PROG(WITH_GCC,gcc,yes,no)
137
if test "$WITH_GCC" = no; then
138
AC_MSG_ERROR([Unable to configure: gcc compiler not found])
140
elif test "$with_g77" = yes; then
142
AC_CHECK_PROG(WITH_G77,g77,yes,no)
143
if test "$WITH_G77" = no; then
144
AC_MSG_ERROR([Unable to configure: g77 compiler not found])
135
170
# specific scilab dirs for graphics: default is "xsci" for X11
136
171
# different for Win32
173
# specific for gnome/gtk version
138
175
# specific scilab dirs for xdr: default is void for X11
142
# communication module: default is "geci" for UNIX
143
# does not exist on Win32
145
# man viewer: default is "xless" for UNIX
146
# does not exist on Win32
147
# allow --without-xless flag to configure for users who
148
# already have xless installed
149
if test "$with_xless" != no; then
154
# graphics Metanet program: default is "xmetanet" for UNIX
155
# does not exist on Win32
157
179
# objects files in routines/menusX: default is XOBJS for UNIX
158
180
# for Win32 use WOBJS
160
182
# use other malloc (in "routines/sun" directory) for some 64 bits machines
162
184
# USE_CDEC directives for Dec Alpha
186
# want to build Scilab f2c too
187
if test "$with_addedf2c" = yes; then
192
# on windows target generating scripts for
193
# printing is useless
194
BLPR_SCRIPTS='$(BPROGRAMS)'
195
# on windows target when generating script
196
# cygdrive/xxx must be replaced by xxx:/
199
# subset of examples which are supposed to work
200
EXAMPLES_TESTS='$(SUBDIRS1) $(SUBDIRS2)'
201
# special stuff for cygwin in impdir
204
# strip executable (not to be done on darwin)
206
# periX11.c must be compiled without optimization on Darwin
207
PERIX11NOPT=periX11darwin
210
#########################
212
#########################
214
echo "configuration of libtool"
218
echo "end of configuration of libtool"
220
#########################
165
221
# setting parameters according to system types
222
#########################
168
226
# Dec Alpha OSF 4
169
227
alpha*-dec-osf4.*)
170
228
# standard compilers
172
CC_OPTIONS='-O -ieee_with_inexact'
230
CC_OPTIONS='-std -O -ieee_with_inexact'
173
231
CC_LDFLAGS='-ieee_with_inexact'
174
if test "$G77" != yes; then
175
AC_CHECK_PROG(F77,f77,yes,no)
232
if test "$WITH_G77" != yes; then
233
#AC_CHECK_PROG(F77,f77,yes,no)
234
AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
176
235
if test "$F77" = no; then
177
AC_MSG_ERROR("Unable to configure: Fortran f77 compiler not found")
236
AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
181
241
FC_OPTIONS='-O -fpe3'
182
242
FC_OPTIONS_O0='-fpe3'
406
if test "$GCC" = yes; then
426
if test "$WITH_GCC" = yes; then
408
428
CC_OPTIONS='-O2 -DSVR4 -DSYSV -Dsolaris'
409
429
if test "$enable_debug" = yes; then
410
430
CC_OPTIONS='-g -DSVR4 -DSYSV -Dsolaris'
413
if test "$G77" = yes; then
433
if test "$WITH_G77" = yes; then
438
# for solaris 2.7 with gcc/g77 2.95.2, binutils 2.9
439
# the correct value should be
440
# FC_LDFLAGS='-t -Wl,-export-dynamic'
441
# but we need to check this case
418
442
if test "$enable_debug" = yes; then
422
446
MAKEFILE_TARGET=Makefile.solaris
424
# Linux, old binary format a.out (NO LONGER SUPPORTED)
427
AC_CHECK_LIB(ieee,main,
431
CC_OPTIONS='-O -Dlinux -fwritable-strings'
433
# find Fortran compiler
434
# g77 already asked and found: good
435
if test "$G77" = yes; then
438
elif test "$with_f2c" = yes; then
439
AC_CHECK_PROG(F2C,f2c,yes,no)
440
if test "$F2C" = no; then
441
AC_MSG_ERROR("Unable to configure: f2c compiler not found")
443
# script shell f77 have bugs, get ours
444
FC='${SCIDIR}/bin/f77-linux'
447
AC_CHECK_PROG(G77,g77,yes,no)
448
if test "$G77" = yes; then
452
AC_CHECK_PROG(F2C,f2c,yes,no)
453
if test "$F2C" = yes; then
454
# script shell f77 have bugs, get ours
455
FC='${SCIDIR}/bin/f77-linux'
457
AC_MSG_ERROR("Unable to configure: no Fortran compiler found")
466
if test "$enable_debug" = yes; then
467
CC_OPTIONS='-g -Dlinux -fwritable-strings'
470
DLDLIB='${SCIDIR}/libs/libdld.a'
472
MAKEFILE_TARGET=Makefile.linux
474
448
# Linux ELF: all standard distributions
477
AC_CHECK_LIB(ieee,main,
481
CC_OPTIONS='-O -Dlinux -fwritable-strings -DNARROWPROTO'
483
# find Fortran compiler
484
# g77 already asked and found: good
485
if test "$G77" = yes; then
488
elif test "$with_f2c" = yes; then
489
AC_CHECK_PROG(F2C,f2c,yes,no)
490
if test "$F2C" = no; then
491
AC_MSG_ERROR("Unable to configure: f2c compiler not found")
493
# script shell f77 have bugs, get ours
494
FC='${SCIDIR}/bin/f77-linux'
497
AC_CHECK_PROG(G77,g77,yes,no)
498
if test "$G77" = yes; then
502
AC_CHECK_PROG(F2C,f2c,yes,no)
503
if test "$F2C" = yes; then
504
# script shell f77 have bugs, get ours
505
FC='${SCIDIR}/bin/f77-linux'
507
AC_MSG_ERROR("Unable to configure: no Fortran compiler found")
513
FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
516
if test "$enable_debug" = yes; then
517
CC_OPTIONS='-g -Dlinux -fwritable-strings -DNARROWPROTO'
520
MAKEFILE_TARGET=Makefile.linux
527
CC_OPTIONS='-O -mieee-with-inexact -Dlinux -fwritable-strings'
528
CC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact'
530
# find Fortran compiler
531
# g77 already asked and found: good
532
if test "$G77" = yes; then
535
elif test "$with_f2c" = yes; then
536
AC_CHECK_PROG(F2C,f2c,yes,no)
537
if test "$F2C" = no; then
538
AC_MSG_ERROR("Unable to configure: f2c compiler not found")
540
# script shell f77 have bugs, get ours
541
FC='${SCIDIR}/bin/f77-linux'
544
AC_CHECK_PROG(G77,g77,yes,no)
545
if test "$G77" = yes; then
549
AC_CHECK_PROG(F2C,f2c,yes,no)
550
if test "$F2C" = yes; then
551
# script shell f77 have bugs, get ours
552
FC='${SCIDIR}/bin/f77-linux'
554
AC_MSG_ERROR("Unable to configure: no Fortran compiler found")
558
FC_OPTIONS='-O -mieee-with-inexact'
559
FC_OPTIONS_O0='-mieee-with-inexact'
560
FC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact'
563
if test "$enable_debug" = yes; then
564
CC_OPTIONS='-g -mieee-with-inexact -Dlinux -fwritable-strings'
565
FC_OPTIONS='-g -mieee-with-inexact'
567
MAKEFILE_TARGET=Makefile.linux
569
# Mklinux PowerPC (Macintosh)
572
AC_CHECK_LIB(ieee,main,
576
CC_OPTIONS='-O -D_GNU_SOURCE -Dlinux -fwritable-strings'
579
# find Fortran compiler
580
# g77 already asked and found: good
581
if test "$G77" = yes; then
584
elif test "$with_f2c" = yes; then
585
AC_CHECK_PROG(F2C,f2c,yes,no)
586
if test "$F2C" = no; then
587
AC_MSG_ERROR("Unable to configure: f2c compiler not found")
589
# script shell f77 have bugs, get ours
590
FC='${SCIDIR}/bin/f77-linux'
593
AC_CHECK_PROG(G77,g77,yes,no)
594
if test "$G77" = yes; then
598
AC_CHECK_PROG(F2C,f2c,yes,no)
599
if test "$F2C" = yes; then
600
# script shell f77 have bugs, get ours
601
FC='${SCIDIR}/bin/f77-linux'
603
AC_MSG_ERROR("Unable to configure: no Fortran compiler found")
609
FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
613
if test "$enable_debug" = yes; then
614
CC_OPTIONS='-g -Dlinux -D_GNU_SOURCE -fwritable-strings'
451
AC_CHECK_LIB(ieee,main,
453
if test "$with_intelcompilers" = yes; then
457
CC_OPTIONS='-O -Dlinux -DNARROWPROTO -mp -pc64 -ffnalias -falias '
459
# -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard
460
FC_OPTIONS="-O -cm -w90 -w95 -mp -pc64 -ffnalias -falias"
461
FC_OPTIONS_O0="-cm -w90 -w95 -mp -pc64 -ffnalias -falias"
462
if test "$enable_debug" = yes; then
463
CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp -pc64 -ffnalias -falias'
464
FC_OPTIONS="-g -cm -w90 -w95 -mp -pc64 -ffnalias -falias"
467
FC_LDFLAGS="$LIEEELIB -ldl -lPEPCF90"
469
LD_LDFLAGS="$LIEEELIB"
473
CC_OPTIONS='-O -Dlinux -fwritable-strings -DNARROWPROTO'
476
# find Fortran compiler
477
# g77 already asked and found: good
478
if test "$WITH_G77" = yes; then
482
elif test "$with_f2c" = yes; then
483
AC_CHECK_PROG(F2C,f2c,yes,no)
484
if test "$F2C" = no; then
485
AC_MSG_ERROR([Unable to configure: f2c compiler not found])
487
# script shell f77 have bugs, get ours
488
FC='${SCIDIR}/bin/f77-linux'
491
AC_CHECK_PROG(WITH_G77,g77,yes,no)
492
if test "$WITH_G77" = yes; then
497
AC_CHECK_PROG(F2C,f2c,yes,no)
498
if test "$F2C" = yes; then
499
# script shell f77 have bugs, get ours
500
FC='${SCIDIR}/bin/f77-linux'
502
AC_MSG_ERROR([Unable to configure: no Fortran compiler found])
508
FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
509
if test "$enable_debug" = yes; then
510
CC_OPTIONS='-g -Wall -Dlinux -fwritable-strings -DNARROWPROTO'
617
516
MAKEFILE_TARGET=Makefile.linux
790
747
XDRLIBNAME='libs/xdr.a'
750
SED_CYGDRIVE='$(CYGDRIVE)'
753
# want to build f2c comand
754
# which is required for building fortran dlls
755
# which can be loaded into scilab
758
EXAMPLES_TESTS='$(SUBDIRS1)'
797
CC_OPTIONS='-O -DWIN32 -fwritable-strings -Wall'
761
CC_OPTIONS='-mno-cygwin -mieee-fp -O -fwritable-strings -Wall'
798
762
if test "$enable_debug" = yes; then
799
CC_OPTIONS='-g -DWIN32 -fwritable-strings -Wall'
763
CC_OPTIONS='-mno-cygwin -g -fwritable-strings -Wall'
803
if test "$G77" = yes; then
767
if test "$WITH_G77" = yes; then
770
FC_OPTIONS="-O -mno-cygwin"
771
FC_OPTIONS_O0="-mno-cygwin"
808
772
if test "$enable_debug" = yes; then
773
FC_OPTIONS="-g -mno-cygwin"
776
if test "$with_f2c" = yes; then
777
# ignore with_f2c here
781
LD_LDFLAGS="-mconsole --enable-stdcall-fixup"
814
782
WINXFLAGS='-I../xdr'
815
783
MAKEFILE_TARGET=Makefile.gcwin32
817
785
# FreeBSD systems (not supported by INRIA)
821
CC_OPTIONS='-O2 -Dfreebsd'
789
CC_OPTIONS="${CFLAGS} -Dfreebsd"
823
791
CC_PICFLAGS='-fPIC'
824
792
# script shell f77 have bugs, get ours
826
FC_OPTIONS='-O2 -Dfreebsd'
794
FC_OPTIONS="${CFLAGS} -Dfreebsd"
827
795
FC_OPTIONS_O0='-Dfreebsd'
796
FC_LDFLAGS='-lm -Wl,--export-dynamic'
829
797
FC_PICFLAGS='-fPIC'
832
801
if test "$enable_debug" = yes; then
833
802
CC_OPTIONS='-g -Dfreebsd'
836
if test "$G77" = yes; then
805
if test "$WITH_G77" = yes; then
806
# On FreeBSD the gnu fortran compiler is named f77
839
809
DLDLIB='${SCIDIR}/libs/libdld.a'
1172
1206
PVMTARGET=pvm-bidon
1208
# need an non empty default value for scilab script
1209
PVMROOTR='$SCI/pvm3'
1212
# files to be added for building the hoster with mingw
1175
1217
if test "$with_pvm" != no; then
1176
1218
# check for a locally installed PVM
1177
1219
if test -x $PVM_ROOT/lib/pvmgetarch ; then
1178
1220
PVMROOT=$PVM_ROOT
1179
1222
PVMTARGET=pvm-bidon
1181
1224
PVMROOT="$SCIDIR/pvm3"
1225
PVMROOTR='$SCI/pvm3'
1182
1226
PVMTARGET=scilex-lib
1227
PVMINST='$(PVMBINDISTFILES) $(PVMBINDISTFILES1)'
1185
AC_CACHE_CHECK("for PVM architecture",ac_cv_PVM_arch,
1230
PVMINCLUDE=$PVMROOT/include
1232
AC_ARG_WITH(pvm-include,
1233
[ --with-pvm-include=DIR PVM include files are in DIR ],
1234
[ PVMINCLUDE=$withval
1237
AC_CACHE_CHECK([for PVM architecture],ac_cv_PVM_arch,
1187
1239
ac_cv_PVM_arch=`$PVMROOT/lib/pvmgetarch`
1189
1241
if test "$ac_cv_PVM_arch" = UNKNOWN; then
1190
AC_MSG_WARN("PVM unable to find architecture: I will not use PVM")
1242
AC_MSG_WARN([PVM unable to find architecture: I will not use PVM])
1191
1243
PVMTARGET=pvm-bidon
1244
PVMINST='$(PVMBINDISTFILES)'
1193
1246
AC_DEFINE(WITH_PVM)
1194
1247
PVMARCH="$ac_cv_PVM_arch"
1195
PVMGLIB="$PVMROOT/lib/$ac_cv_PVM_arch/libgpvm3.a"
1196
PVMLIB="$PVMROOT/lib/$ac_cv_PVM_arch/libpvm3.a"
1251
ac_cv_PVM_arch=MINGW
1252
PVMARCH="$ac_cv_PVM_arch"
1253
PVMHOSTERFILES="pvmwinrexec.o pvmwinrsh.o"
1258
PVMLIBDIR=$PVMROOT/lib/$ac_cv_PVM_arch
1259
AC_ARG_WITH(pvm-library,
1260
[ --with-pvm-library=DIR PVM library files are in DIR ],
1261
[ PVMLIBDIR=$withval
1264
PVMGLIB="$PVMLIBDIR/libgpvm3.a"
1265
PVMLIB="$PVMLIBDIR/libpvm3.a"
1198
PVMSCILIB="\$(SCIDIR)/libs/pvm.a"
1271
# add src to PVMINCLUDE
1272
PVMINCLUDE="$PVMINCLUDE -I$SCIDIR/pvm3/src"
1273
# to have path with SCIDIR
1274
# PVMROOT=`echo $PVMROOT | sed -e "s+$SCIDIR+\\$(SCIDIR)+g" `
1276
PVMLIB=`echo $PVMLIB | sed -e "s+$SCIDIR/pvm3+\\$(PVMROOT)+g" `
1277
PVMGLIB=`echo $PVMGLIB | sed -e "s+$SCIDIR/pvm3+\\$(PVMROOT)+g" `
1278
PVMINCLUDE=`echo $PVMINCLUDE | sed -e "s+$SCIDIR/pvm3+\\$(PVMROOT)+g" `
1293
if test "$with_gtk" = yes; then
1294
AC_CHECK_PROG(GTK_CONFIG,gtk-config,yes,no)
1295
if test "$GTK_CONFIG" = no; then
1296
AC_MSG_WARN([gtk-config not found: I will not use -with-gtk])
1299
AC_CHECK_PROG(GNOME_CONFIG,gnome-config,yes,no)
1300
if test "$GNOME_CONFIG" = no; then
1301
AC_MSG_WARN([gnome-config not found: I will not use -with-gtk])
1304
if test "$with_gtk" = yes; then
1305
AC_MSG_CHECKING([if gtk is version 1.2 or later])
1306
GTK_VER=`gtk-config --version`
1309
AC_MSG_ERROR([you need at least version 1.2 of gtk])
1312
AC_MSG_ERROR([you need at least version 1.2 of gtk])
1315
# we have cheched above that gtk-config is in the
1316
# path, then we don't want to generate a full path
1317
# for gtk-config or to directly generate the
1318
# result of `gtk-config --cflags`. Idem for gnome
1319
AC_MSG_RESULT([$GTK_VER])
1320
GTKCFLAGS='`gtk-config --cflags`'
1321
GTKLIBS='`gtk-config --libs` `gnome-config --libs gtkxmhtml`'
1322
GNOMECFLAGS='`gnome-config --cflags gnome`'
1328
SCILABSCRIPT=scilab-gtk.g
1331
# gtk 1 HTMLFLAGS=`gnome-config --cflags gnome`
1332
# gtk 2 HTMLFLAGS=`pkg-config libgtkhtml-2.0 --cflags`
1333
HTMLFLAGS='`gnome-config --cflags gnome`'
1335
# try to use readline with the gtk version
1336
ac_save_LIBS="$LIBS"
1337
LIBS="$TERMCAPLIB $LIBS"
1338
AC_CHECK_LIB(readline, rl_callback_read_char,[READLINE=-lreadline])
1340
TERMCAPLIB="$READLINE $TERMCAPLIB"
1341
if test "no$READLINE" != no; then
1342
ZZLEDT="zzledt-rl.o"
1343
AC_DEFINE(WITH_READLINE)
1352
if test "$with_gtk2" = yes; then
1353
AC_PATH_PROG(PKG_CONFIG,pkg-config)
1354
if test "x$PKG_CONFIG" = x; then
1355
# @*%&$ Ximian programmers renamed this application
1356
AC_PATH_PROG(PKG_CONFIG,pkgconfig,yes,no)
1357
if test "x$PKG_CONFIG" = x; then
1358
AC_MSG_ERROR([Could not find the pkg-config (or pkgconfig) program.],)
1362
# AC_CHECK_PROG(GNOME_CONFIG,gnome-config,yes,no)
1363
#if test "$GNOME_CONFIG" = no; then
1364
# AC_MSG_WARN([gnome-config not found: I will not use -with-gtk])
1367
if test "$with_gtk2" = yes; then
1368
AC_MSG_CHECKING([if gtk is version 2.1 or later])
1369
GTK_VER=`$PKG_CONFIG --modversion gtk+-2.0`
1371
2.2.* | 2.3.0 | 2.3.1| 2.3.2| 2.3.4 )
1372
GTKPLUGBUG=gtkmenu.o
1375
AC_MSG_RESULT([$GTK_VER])
1376
# we have cheched above that gtk-config is in the
1377
# path, then we don't want to generate a full path
1378
# for gtk-config or to directly generate the
1379
# result of `gtk-config --cflags`. Idem for gnome
1380
GTKCFLAGS='`pkg-config gtk+-2.0 --cflags`'
1381
GTKLIBS='`pkg-config gtk+-2.0 libgtkhtml-2.0 --libs`'
1382
GNOMECFLAGS='`pkg-config gtk+-2.0 --cflags`'
1385
# GZVT='gzvt2' dose not work: gtk2 bug with plugged menus
1386
# gzvt2 works again with a gtk patch
1388
# we need a patched version
1389
SCILABSCRIPT=scilab-gtk.g
1392
# gtk 1 HTMLFLAGS=`gnome-config --cflags gnome`
1393
# gtk 2 HTMLFLAGS=`pkg-config libgtkhtml-2.0 --cflags`
1394
HTMLFLAGS='`pkg-config libgtkhtml-2.0 --cflags`'
1395
# check for libgtkhtml-2.0
1396
ac_save_LIBS="$LIBS"
1397
LIBS=`pkg-config libgtkhtml-2.0 --cflags --libs`
1399
AC_CHECK_LIB(gtkhtml-2,html_document_open_stream,[GTKHTML=yes])
1400
if test "$GTKHTML" = no; then
1401
AC_MSG_ERROR([Could not find the libgtkhtml-2.0 package.],)
1405
ac_save_LIBS="$LIBS"
1406
LIBS=`pkg-config libzvt-2.0 --cflags --libs`
1408
AC_CHECK_LIB(zvt-2.0, zvt_term_new_with_size,[GZVT2=yes])
1409
if test "$GZVT2" = no; then
1410
AC_MSG_ERROR([Could not find the libzvt-2.0 package.],)
1414
# try to use readline with the gtk version
1415
ac_save_LIBS="$LIBS"
1416
LIBS="$TERMCAPLIB $LIBS"
1417
AC_CHECK_LIB(readline, rl_callback_read_char,[READLINE=-lreadline])
1419
TERMCAPLIB="$READLINE $TERMCAPLIB"
1420
if test "no$READLINE" != no; then
1421
ZZLEDT="zzledt-rl.o"
1422
AC_DEFINE(WITH_READLINE)
1203
1427
#################
1204
1428
## Tcl/Tk library
1245
1469
# set variables
1246
1470
if test $WITH_TKSCI = 1; then
1247
1471
AC_DEFINE(WITH_TK)
1248
TKSCILIB="\$(SCIDIR)/libs/tksci.a"
1251
AC_MSG_ERROR("TCL/TK not found. Do not use --with-tk")
1256
#########################
1258
#########################
1260
echo "configuration of libtool"
1264
echo "end of configuration of libtool"
1475
AC_MSG_ERROR([TCL/TK not found. Use --without-tk])
1482
TK_INC_PATH=`echo $TK_INC_PATH | sed -e "s+$SCIDIR+\\$(TKBASE)+g" `
1483
TCL_INC_PATH=`echo $TCL_INC_PATH | sed -e "s+$SCIDIR+\\$(TKBASE)+g" `
1484
TCLTK_LIBS=`echo $TCLTK_LIBS | sed -e "s+$SCIDIR+\\$(TKBASE)+g" `
1488
GETLIBTK=libtk$TK_MAJOR_VERSION.$TK_MINOR_VERSION.so
1492
GETLIBTK=/sw/lib/libtk$TK_MAJOR_VERSION.$TK_MINOR_VERSION.dylib
1502
# check user arguments
1503
USER_ATLAS_LIB_PATH=""
1505
AC_ARG_WITH(atlas-library,
1506
[ --with-atlas-library=DIR Atlas library files are in DIR and we use Atlas ],
1507
[ USER_ATLAS_LIB_PATH=$withval
1510
if test "$USER_ATLAS_LIB_PATH" = ""; then
1511
WHICH_BLAS="STD_BLAS"
1514
echo "using Atlas library"
1515
WHICH_BLAS="ATLAS_LAPACKBLAS"
1516
ATLAS_DIR=$USER_ATLAS_LIB_PATH
1518
AC_DEFINE(WITH_ATLAS)
1525
if test "$with_ocaml" != no; then
1526
AC_CHECK_PROG(with_ocamlc,ocamlc,yes,no)
1527
if test "$with_ocamlc" = no; then
1528
AC_MSG_WARN([ocamlc not found: I will not build Modelica compiler])
1529
OCAMLTARGET=ocaml-bidon
1531
AC_CHECK_PROG(with_ocamlopt,ocamlopt,yes,no)
1532
if test "$with_ocamlopt" = no; then
1533
AC_MSG_WARN([ocamlopt not found: I will not build Modelica compiler])
1534
OCAMLTARGET=ocaml-bidon
1536
AC_CHECK_PROG(with_ocamldep,ocamldep,yes,no)
1537
if test "$with_ocamldep" = no; then
1538
AC_MSG_WARN([ocamldep not found: I will not build Modelica compiler])
1539
OCAMLTARGET=ocaml-bidon
1541
AC_DEFINE(WITH_OCAML)
1542
OCAMLTARGET=scilex-lib
1552
AC_CHECK_PROG(WITH_SABCMD,sabcmd,yes,no)
1553
if test "$WITH_SABCMD" = yes; then
1556
AC_MSG_WARN([Sablotron "sabcmd" not found: I will not build man pages])
1266
1560
#########################
1267
1561
## substituting variables