89f46715f5bb60dd9eecc3d0d9532c0e7ec46591
[scilab.git] / scilab / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 ## Copyright INRIA/Enpc
3
4 AC_REVISION($Revision: 1.71 $)dnl
5 AC_INIT(license.txt)
6 SCIDIR=`pwd`
7 AC_CONFIG_AUX_DIR(config)
8 AC_CONFIG_HEADER(routines/machine.h)
9 ## AC_CONFIG_HEADER(routines/stack.h)
10
11 dnl Get system type
12 dnl use "config.guess" and "config.sub" from directory "config"
13 AC_CANONICAL_HOST
14
15 # default prefix
16 ac_default_prefix=/usr
17
18 #################################
19 ## all the --with-* argument help
20 #################################
21
22 AC_ARG_ENABLE(debug,
23    [  --enable-debug          compile with "-g" option and do not optimize ])
24
25 AC_ARG_WITH(gcc,
26     [  --with-gcc              use gcc C compiler ])
27
28 AC_ARG_WITH(g77,
29     [  --with-g77              use g77 Fortran compiler ])
30
31 AC_ARG_WITH(gnu,
32     [  --with-gnu              use gcc C compiler and g77 Fortran compiler ])
33
34 AC_ARG_WITH(intelcompilers,
35     [  --with-intelcompilers   use intel ecc and efc Fortran compiler ])
36
37 AC_ARG_WITH(f2c,
38     [  --with-f2c              use f2c C compiler on Linux systems ])
39
40 AC_ARG_WITH(local-xaw,
41     [  --with-local-xaw        use Xaw widgets given with Scilab (not recommended) ])
42
43 AC_ARG_WITH(xaw3d,
44     [  --without-xaw3d         do not use Xaw3d widgets ])
45
46 AC_ARG_WITH(pvm,
47     [  --without-pvm           do not compile with PVM library ])
48
49 AC_ARG_WITH(tk,
50     [  --without-tk            do not compile with TCL/TK ])
51
52 AC_ARG_WITH(gtk,
53     [  --with-gtk              use Gtk widgets ])
54
55 AC_ARG_WITH(gtk2,
56     [  --with-gtk2             use Gtk widgets ])
57
58 AC_ARG_WITH(addedf2c,
59     [  --with-addedf2c         build a local f2c (routines/f2c)])
60
61 #################################
62 ## check this is a source version
63 #################################
64
65 if test -f .binary; then
66   echo "Humm... this is a binary version";
67   echo "  you'd better read the README file first."
68   exit
69 fi
70
71 ###############################
72 ## creating Path.incl if needed
73 ###############################
74
75 # change scidir for mingw/cygwin 
76
77 case "$host" in
78   *-*-cygwin* |   *-*-mingw32*)
79     SCIDIR=`echo $SCIDIR | sed -e 's+/cygdrive/\([[a-zA-Z]]*\)/+\1:/+g' `
80     ;;
81 esac
82
83 if test -f Path.incl; then
84   PATH_INCL=`cat Path.incl`
85 fi
86 if test "$PATH_INCL" != "SCIDIR=$SCIDIR"; then
87   echo "creating Path.incl"
88   cat << EOF > Path.incl
89 SCIDIR=$SCIDIR
90 EOF
91 fi
92
93 ###############################
94 ## get the version 
95 ###############################
96
97 SCIVERSION=`cat Version.incl | sed -e "s/SCIVERSION=//" `
98
99
100 ########################
101 ## removing and cleaning
102 ########################
103
104 RM='rm -f'
105 FILES_TO_CLEAN='*.CKP *.ln *.BAK *.bak core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut .*~ *.trace so_locations *.orig *.cos *.obj' 
106
107 #####################################################
108 ## if specific compilers required check if they exist
109 #####################################################
110
111 if test "$with_gnu" = yes; then
112 # GNU C and Fortran compilers required
113   AC_CHECK_PROG(WITH_GCC,gcc,yes,no)
114   if test "$WITH_GCC" = no; then
115     AC_MSG_ERROR([Unable to configure: gcc compiler not found])
116   fi
117   AC_CHECK_PROG(WITH_G77,g77,yes,no)
118   if test "$WITH_G77" = no; then
119     AC_MSG_ERROR([Unable to configure: g77 compiler not found])
120   fi
121 elif test "$with_intelcompilers" = yes; then
122 # intel C and Fortran compilers required
123   AC_CHECK_PROGS(ICC,ecc icc,no)
124   if test "$ICC" = no; then
125     AC_MSG_ERROR([Unable to configure: icc nor ecc  compiler found])
126   fi
127   AC_CHECK_PROGS(IFC,efc ifc,no)
128   if test "$IFC" = no; then
129     AC_MSG_ERROR([Unable to configure: ifc nor efc compiler  found])
130   fi
131 elif test "$with_gcc" = yes; then
132 # GNU gcc required
133   AC_CHECK_PROG(WITH_GCC,gcc,yes,no)
134   if test "$WITH_GCC" = no; then
135     AC_MSG_ERROR([Unable to configure: gcc compiler not found])
136   fi
137 elif test "$with_g77" = yes; then
138 # GNU g77 required
139   AC_CHECK_PROG(WITH_G77,g77,yes,no)
140   if test "$WITH_G77" = no; then
141     AC_MSG_ERROR([Unable to configure: g77 compiler not found])
142   fi
143 fi
144
145 #############################################
146 ## Compilers and options according to machine
147 #############################################
148
149 # use for making scripts in script directory
150 #   different for MIPS Ultrix
151 SCILAB_GS=sh
152 # scilab script file in script directory: default is "scilab.g" for UNIX
153 #   for gcwin32 use "scilab-gcwin32.g"
154 SCILABSCRIPT=scilab.g
155 # Fortran program in routines/sun: default is "fgetarg.f" 
156 #   for HPUX use "fgetarg-hpux.f"
157 FGETARG=fgetarg
158 GETARG=getarg
159 # For old Hp computer (9.x), used in "routines/sun/Makefile.in"
160 #   for choosing the good file between link_std.c and link_SYSV.c
161 HPPA_OLD=
162 # Scilab main file: default is "mainsci.o" for UNIX
163 MAIN='mainsci.o'
164 # for graphics: default is X11
165 #   different for Win32
166 PERIFILE=periX11.o
167 # specific scilab dirs for graphics: default is "xsci" for X11
168 #   different for Win32
169 GUILIB=xsci 
170 # specific for gnome/gtk version 
171 GZVT=
172 # specific scilab dirs for xdr:  default is void for X11
173 #   xdr for Win32
174 XDRLIB=
175 XDRLIBNAME=
176 # objects files in routines/menusX: default is XOBJS for UNIX
177 #   for Win32 use WOBJS
178 MENUSOBJS=XOBJS
179 # use other malloc (in "routines/sun" directory) for some 64 bits machines
180 MALLOC=
181 # USE_CDEC directives for Dec Alpha
182 FC_USE_CDEC=DEC
183 # want to build Scilab f2c too 
184 if test "$with_addedf2c" = yes; then
185   F2C_SUBDIR=f2c/src
186 else
187   F2C_SUBDIR=
188 fi
189 # on windows target generating scripts for 
190 # printing is useless 
191 BLPR_SCRIPTS='$(BPROGRAMS)'
192 # on windows target when generating script 
193 # cygdrive/xxx must be replaced by xxx:/ 
194 # for mingw32 
195 SED_CYGDRIVE=
196 # subset of examples which are supposed to work 
197 EXAMPLES_TESTS='$(SUBDIRS1) $(SUBDIRS2)'
198 # special stuff for cygwin in impdir 
199 IMPPREF=S
200 IMPENV= 
201 # strip executable (not to be done on darwin) 
202 STRIP=strip
203
204 #########################
205 ## libtool 
206 #########################
207
208 echo "configuration of libtool"
209
210 AM_PROG_LIBTOOL
211
212 echo "end of configuration of libtool"
213
214 #########################
215 # setting parameters according to system types
216 #########################
217
218
219 case "$host" in
220 # Dec Alpha OSF 4
221   alpha*-dec-osf4.*)
222     # standard compilers
223     CC=cc
224     CC_OPTIONS='-std -O -ieee_with_inexact'
225     CC_LDFLAGS='-ieee_with_inexact'
226     if test "$WITH_G77" != yes; then    
227       #AC_CHECK_PROG(F77,f77,yes,no)
228       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
229       if test "$F77" = no; then
230         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
231       fi
232       FC="$F77"
233     fi
234     #FC="$F77"
235     FC_OPTIONS='-O -fpe3'
236     FC_OPTIONS_O0='-fpe3'
237     FC_LDFLAGS=
238     FC_USE_CDEC='   '
239     LD=ld
240     LD_LDFLAGS=
241     if test "$enable_debug" = yes; then 
242       CC_OPTIONS='-std -g -ieee_with_inexact'
243       FC_OPTIONS='-g -fpe3'
244     fi
245     # GNU compilers
246     if test "$WITH_GCC" = yes; then
247       CC=gcc
248       CC_OPTIONS=-O
249       if test "$enable_debug" = yes; then 
250         CC_OPTIONS=-g
251       fi
252     fi
253     if test "$WITH_G77" = yes; then
254       FC=g77
255       FC_OPTIONS=-O
256       FC_OPTIONS_O0=
257       if test "$enable_debug" = yes; then 
258         FC_OPTIONS=-g
259       fi
260     fi
261     MAKEFILE_TARGET=Makefile.alpha
262     ;;
263 # Dec Alpha not OSF 4 (NO LONGER SUPPORTED)
264   alpha*-dec-osf*)
265     # standard compilers
266     CC=cc
267     CC_OPTIONS='-O -ieee_with_inexact'
268     CC_LDFLAGS='-ieee_with_inexact'
269     if test "$WITH_G77" != yes; then    
270       #AC_CHECK_PROG(F77,f77,yes,no)
271       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
272       if test "$F77" = no; then
273         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
274       fi
275       FC="$F77"
276     fi
277     #FC="$F77"
278     FC_OPTIONS='-O -fpe3 -switch nosqrt_recip'
279     FC_OPTIONS_O0='-fpe3 -switch nosqrt_recip'
280     FC_LDFLAGS=
281     FC_USE_CDEC='   '
282     LD=ld
283     LD_LDFLAGS=
284     if test "$enable_debug" = yes; then 
285       CC_OPTIONS='-g -ieee_with_inexact'
286       FC_OPTIONS='-g -fpe3 -switch nosqrt_recip'
287     fi
288     # GNU compilers
289     if test "$WITH_GCC" = yes; then
290       CC=gcc
291       CC_OPTIONS=-O
292       if test "$enable_debug" = yes; then 
293         CC_OPTIONS=-g
294       fi
295     fi
296     if test "$WITH_G77" = yes; then
297       FC=g77
298       FC_OPTIONS=-O
299       FC_OPTIONS_O0=
300       if test "$enable_debug" = yes; then 
301         FC_OPTIONS=-g
302       fi
303     fi
304     MAKEFILE_TARGET=Makefile.alpha
305     ;;
306 # IBM AIX RS 6000 (NO LONGER SUPPORTED)
307   rs6000-*-*)
308     # standard compilers
309     CC=cc
310     CC_OPTIONS='-Daix -DSYSV'
311     CC_LDFLAGS=
312     if test "$WITH_G77" != yes; then    
313       #AC_CHECK_PROG(F77,f77,yes,no)
314       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
315       if test "$F77" = no; then
316         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
317       fi
318       FC="$F77"
319     fi
320     #FC="$F77"
321     FC_OPTIONS='-qcharlen=4096'
322     FC_OPTIONS_O0='-qcharlen=4096'
323     FC_LDFLAGS=
324     LD=ld
325     LD_LDFLAGS=
326     if test "$enable_debug" = yes; then 
327       CC_OPTIONS='-g -Daix -DSYSV'
328       FC_OPTIONS='-g -qcharlen=4096'
329     fi
330     # GNU compilers
331     if test "$WITH_GCC" = yes; then
332       CC=gcc
333       CC_OPTIONS=-O
334       if test "$enable_debug" = yes; then 
335         CC_OPTIONS=-g
336       fi
337     fi
338     if test "$WITH_G77" = yes; then
339       FC=g77
340       FC_OPTIONS=-O
341       FC_OPTIONS_O0=
342       if test "$enable_debug" = yes; then 
343         FC_OPTIONS=-g
344       fi
345     fi
346     MAKEFILE_TARGET=Makefile.aix
347     ;;
348 # Linux sparc
349   sparc-*-linux-gnu)
350     LIEEELIB=
351     AC_CHECK_LIB(ieee,main,
352       [LIEEELIB=-lieee])
353     GCC=yes
354     CC=gcc
355     CC_OPTIONS='-O -Dlinux -fwritable-strings'
356     CC_LDFLAGS=$LIEEELIB
357     # find Fortran compiler
358     # g77 already asked and found: good
359     if test "$WITH_G77" = yes; then
360       FC=g77
361     # option with-f2c
362     elif test "$with_f2c" = yes; then
363       AC_CHECK_PROG(F2C,f2c,yes,no)
364       if test "$F2C" = no; then
365         AC_MSG_ERROR([Unable to configure: f2c compiler not found])
366       fi
367       # script shell f77 have bugs, get ours
368       FC='${SCIDIR}/bin/f77-linux'
369     else
370       # first find g77
371       AC_CHECK_PROG(WITH_G77,g77,yes,no)
372       if test "$WITH_G77" = yes; then
373         FC=g77
374       else
375       # otherwise find f2c
376         AC_CHECK_PROG(F2C,f2c,yes,no)
377         if test "$F2C" = yes; then
378           # script shell f77 have bugs, get ours
379           FC='${SCIDIR}/bin/f77-linux'
380         else
381           AC_MSG_ERROR([Unable to configure: no Fortran compiler found])
382         fi
383       fi
384     fi
385     FC_OPTIONS=-O
386     FC_OPTIONS_O0=
387     FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
388     LD=ld
389     LD_LDFLAGS=$LIEEELIB
390     if test "$enable_debug" = yes; then
391       CC_OPTIONS='-g -Dlinux -fwritable-strings'
392       FC_OPTIONS=-g
393     fi
394     MAKEFILE_TARGET=Makefile.linux
395    ;;
396 # SUN OS (NO LONGER SUPPORTED)
397   sparc-*-sunos*)
398     # standard compilers
399     CC=cc
400     CC_OPTIONS=-O
401     CC_LDFLAGS=
402     CC_PICFLAGS=-PIC
403     if test "$WITH_G77" != yes; then    
404       #AC_CHECK_PROG(F77,f77,yes,no)
405       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
406       if test "$F77" = no; then
407         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
408       fi
409       FC="$F77"
410     fi
411     #FC="$F77"
412     FC_OPTIONS=-O
413     FC_OPTIONS_O0=
414     FC_LDFLAGS=
415     FC_PICFLAGS=-PIC
416     LD=ld
417     LD_LDFLAGS=
418     if test "$enable_debug" = yes; then 
419       CC_OPTIONS=-g
420       FC_OPTIONS=-g
421     fi
422     # GNU compilers
423     if test "$WITH_GCC" = yes; then
424       CC=gcc
425       CC_OPTIONS=-O
426       CC_PICFLAGS=
427       if test "$enable_debug" = yes; then 
428         CC_OPTIONS=-g
429       fi
430     fi
431     if test "$WITH_G77" = yes; then
432       FC=g77
433       FC_OPTIONS=-O
434       FC_OPTIONS_O0=
435       FC_PICFLAGS=
436       if test "$enable_debug" = yes; then 
437         FC_OPTIONS=-g
438       fi
439       FC_LDFLAGS='-Xlinker'
440     fi
441     MAKEFILE_TARGET=Makefile.sunos
442     ;;
443 # SUN SOLARIS
444   *-*-solaris*)
445     # standard compilers
446     CC=cc
447     CC_OPTIONS='-O -DSVR4 -DSYSV -Dsolaris'
448     CC_LDFLAGS=
449     if test "$WITH_G77" != yes; then    
450       #AC_CHECK_PROG(F77,f77,yes,no)
451       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
452       if test "$F77" = no; then
453         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
454       fi
455       FC="$F77"
456     fi
457     #FC="$F77"
458     FC_OPTIONS=-O
459     FC_OPTIONS_O0=
460     FC_LDFLAGS=
461     LD=ld
462     LD_LDFLAGS=
463     if test "$enable_debug" = yes; then 
464       CC_OPTIONS='-g -DSVR4 -DSYSV -Dsolaris'
465       FC_OPTIONS=-g
466     fi
467     # GNU compilers
468     if test "$WITH_GCC" = yes; then
469       CC=gcc
470       CC_OPTIONS='-O2 -DSVR4 -DSYSV -Dsolaris'
471       if test "$enable_debug" = yes; then 
472         CC_OPTIONS='-g -DSVR4 -DSYSV -Dsolaris'
473       fi
474     fi
475     if test "$WITH_G77" = yes; then
476       FC=g77
477       FC_OPTIONS=-O2
478       FC_OPTIONS_O0=
479       FC_LDFLAGS='-t' 
480 #     for solaris 2.7 with gcc/g77 2.95.2, binutils 2.9 
481 #     the correct value should be 
482 #     FC_LDFLAGS='-t -Wl,-export-dynamic'
483 #     but we need to check this case 
484       if test "$enable_debug" = yes; then 
485         FC_OPTIONS=-g
486       fi
487     fi
488     MAKEFILE_TARGET=Makefile.solaris
489     ;;
490 # Linux, old binary format a.out (NO LONGER SUPPORTED)
491   *-pc-linux-gnuaout)
492     LIEEELIB=
493     AC_CHECK_LIB(ieee,main,
494       [LIEEELIB=-lieee])
495     GCC=yes
496     CC=cc
497     CC_OPTIONS='-O -Dlinux -fwritable-strings'
498     CC_LDFLAGS=$LIEEELIB
499     # find Fortran compiler
500     # g77 already asked and found: good
501     if test "$WITH_G77" = yes; then
502       FC=g77
503     # option with-f2c
504     elif test "$with_f2c" = yes; then
505       AC_CHECK_PROG(F2C,f2c,yes,no)
506       if test "$F2C" = no; then
507         AC_MSG_ERROR([Unable to configure: f2c compiler not found])
508       fi
509       # script shell f77 have bugs, get ours
510       FC='${SCIDIR}/bin/f77-linux'
511     else
512       # first find g77
513       AC_CHECK_PROG(WITH_G77,g77,yes,no)
514       if test "$WITH_G77" = yes; then
515         FC=g77
516       else
517       # otherwise find f2c
518         AC_CHECK_PROG(F2C,f2c,yes,no)
519         if test "$F2C" = yes; then
520           # script shell f77 have bugs, get ours
521           FC='${SCIDIR}/bin/f77-linux'
522         else
523           AC_MSG_ERROR([Unable to configure: no Fortran compiler found])    
524         fi
525       fi
526     fi
527     FC_OPTIONS=-O
528     FC_OPTIONS_O0=
529     FC_LDFLAGS=$LIEEELIB
530     LD=ld
531     LD_LDFLAGS=$LIEEELIB
532     if test "$enable_debug" = yes; then 
533       CC_OPTIONS='-g -Dlinux -fwritable-strings'
534       FC_OPTIONS=-g
535     fi
536     DLDLIB='${SCIDIR}/libs/libdld.a'
537     DLD_SUBDIR=dld
538     MAKEFILE_TARGET=Makefile.linux
539    ;;
540 # Linux ELF: all standard distributions
541   *-pc-linux-gnu)
542     LIEEELIB=
543     AC_CHECK_LIB(ieee,main,
544       [LIEEELIB=-lieee])
545     if test "$with_intelcompilers" = yes; then
546        GCC=no
547        CC=$ICC
548        FC=$IFC
549        CC_OPTIONS='-O -Dlinux -DNARROWPROTO -mp -pc64 -ffnalias -falias '
550        CC_PICFLAGS="-fPIC"
551 # -cm remove comments displays, -w90  -w95 remove warnings abort f90 f95 non standard
552        FC_OPTIONS="-O -cm -w90 -w95 -mp -pc64 -ffnalias -falias"
553        FC_OPTIONS_O0="-cm  -w90 -w95 -mp -pc64 -ffnalias -falias"
554        if test "$enable_debug" = yes; then 
555          CC_OPTIONS='-g -Wall -Dlinux  -DNARROWPROTO  -mp -pc64 -ffnalias -falias'
556          FC_OPTIONS="-g -cm  -w90 -w95 -mp -pc64 -ffnalias -falias"
557        fi
558        CC_LDFLAGS=$LIEEELIB
559        FC_LDFLAGS="$LIEEELIB -ldl  -lPEPCF90"
560        LD=xild
561        LD_LDFLAGS="$LIEEELIB"
562     else
563        GCC=yes
564        CC=cc
565        CC_OPTIONS='-O -Dlinux -fwritable-strings -DNARROWPROTO'
566        CC_LDFLAGS=$LIEEELIB
567        CC_PICFLAGS=-fPIC
568        # find Fortran compiler
569        # g77 already asked and found: good
570        if test "$WITH_G77" = yes; then
571          FC=g77
572          FC_PICFLAGS=-fPIC
573        # option with-f2c
574        elif test "$with_f2c" = yes; then
575          AC_CHECK_PROG(F2C,f2c,yes,no)
576          if test "$F2C" = no; then
577            AC_MSG_ERROR([Unable to configure: f2c compiler not found])
578          fi
579          # script shell f77 have bugs, get ours
580          FC='${SCIDIR}/bin/f77-linux'
581        else
582          # first find g77
583          AC_CHECK_PROG(WITH_G77,g77,yes,no)
584          if test "$WITH_G77" = yes; then
585            FC=g77
586            FC_PICFLAGS=-fPIC
587          else
588          # otherwise find f2c
589            AC_CHECK_PROG(F2C,f2c,yes,no)
590            if test "$F2C" = yes; then
591              # script shell f77 have bugs, get ours
592              FC='${SCIDIR}/bin/f77-linux'
593            else
594              AC_MSG_ERROR([Unable to configure: no Fortran compiler found])    
595            fi
596          fi
597        fi
598        FC_OPTIONS=-O
599        FC_OPTIONS_O0=
600        FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
601        if test "$enable_debug" = yes; then 
602          CC_OPTIONS='-g -Wall -Dlinux -fwritable-strings -DNARROWPROTO'
603          FC_OPTIONS=-g
604        fi
605        LD=ld
606        LD_LDFLAGS=$LIEEELIB
607     fi
608     MAKEFILE_TARGET=Makefile.linux
609    ;;
610 # Linux gnu: ia64 distributions 
611   ia64-*-linux-gnu)
612     LIEEELIB=
613     AC_CHECK_LIB(ieee,main,
614       [LIEEELIB=-lieee])
615     MALLOC=malloc.o
616     if test "$with_intelcompilers" = yes; then
617        GCC=no
618        CC=$ICC
619        FC=$IFC
620        CC_OPTIONS='-O -Dlinux -DNARROWPROTO -mp'
621        CC_PICFLAGS="-fPIC"
622 # -cm remove comments displays, -w90  -w95 remove warnings abort f90 f95 non standard
623        FC_OPTIONS="-O -cm -w90 -w95 -mp "
624        FC_OPTIONS_O0="-cm  -w90 -w95 -mp "
625        if test "$enable_debug" = yes; then 
626          CC_OPTIONS='-g -Wall -Dlinux  -DNARROWPROTO  -mp '
627          FC_OPTIONS="-g -cm  -w90 -w95 -mp "
628        fi
629        CC_LDFLAGS="$LIEEELIB  -Wl,-relax"
630        FC_LDFLAGS="$LIEEELIB -ldl  -lPEPCF90 -Wl,-relax "
631        LD=xild
632        LD_LDFLAGS="$LIEEELIB -lPEPCF90 -Wl,-relax "
633     else
634        GCC=yes
635        CC=cc
636        CC_OPTIONS='-O -Dlinux -fwritable-strings -DNARROWPROTO'
637        CC_LDFLAGS=$LIEEELIB
638        CC_PICFLAGS=-fPIC
639        # find Fortran compiler
640        # g77 already asked and found: good
641        if test "$WITH_G77" = yes; then
642          FC=g77
643          FC_PICFLAGS=-fPIC
644        # option with-f2c
645        elif test "$with_f2c" = yes; then
646          AC_CHECK_PROG(F2C,f2c,yes,no)
647          if test "$F2C" = no; then
648            AC_MSG_ERROR([Unable to configure: f2c compiler not found])
649          fi
650          # script shell f77 have bugs, get ours
651          FC='${SCIDIR}/bin/f77-linux'
652        else
653          # first find g77
654          AC_CHECK_PROG(WITH_G77,g77,yes,no)
655          if test "$WITH_G77" = yes; then
656            FC=g77
657            FC_PICFLAGS=-fPIC
658          else
659          # otherwise find f2c
660            AC_CHECK_PROG(F2C,f2c,yes,no)
661            if test "$F2C" = yes; then
662              # script shell f77 have bugs, get ours
663              FC='${SCIDIR}/bin/f77-linux'
664            else
665              AC_MSG_ERROR([Unable to configure: no Fortran compiler found])    
666            fi
667          fi
668        fi
669        FC_OPTIONS=-O
670        FC_OPTIONS_O0=
671        FC_LDFLAGS="$LIEEELIB -ldl -rdynamic -Wl,-relax"
672        LD=ld
673        LD_LDFLAGS=$LIEEELIB  -Wl,-relax
674        if test "$enable_debug" = yes; then 
675          CC_OPTIONS='-g -Wall -Dlinux -fwritable-strings -DNARROWPROTO'
676          FC_OPTIONS=-g
677        fi
678     fi
679     MAKEFILE_TARGET=Makefile.linux
680    ;;
681 # Alpha Linux
682   alpha-*-linux-gnu)
683     MALLOC=malloc.o
684     GCC=yes
685     CC=cc
686     CC_OPTIONS='-O -mieee-with-inexact -Dlinux -fwritable-strings'
687     CC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact'
688     CC_PICFLAGS=-fPIC
689     # find Fortran compiler
690     # g77 already asked and found: good
691     if test "$WITH_G77" = yes; then
692       FC=g77
693     # option with-f2c
694     elif test "$with_f2c" = yes; then
695       AC_CHECK_PROG(F2C,f2c,yes,no)
696       if test "$F2C" = no; then
697         AC_MSG_ERROR([Unable to configure: f2c compiler not found])
698       fi
699       # script shell f77 have bugs, get ours
700       FC='${SCIDIR}/bin/f77-linux'
701     else
702       # first find g77
703       AC_CHECK_PROG(WITH_G77,g77,yes,no)
704       if test "$WITH_G77" = yes; then
705         FC=g77
706       else
707       # otherwise find f2c
708         AC_CHECK_PROG(F2C,f2c,yes,no)
709         if test "$F2C" = yes; then
710           # script shell f77 have bugs, get ours
711           FC='${SCIDIR}/bin/f77-linux'
712         else
713           AC_MSG_ERROR([Unable to configure: no Fortran compiler found])    
714         fi
715       fi
716     fi
717     FC_OPTIONS='-O -mieee-with-inexact'
718     FC_OPTIONS_O0='-mieee-with-inexact'
719     FC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact'
720     LD=ld
721     LD_LDFLAGS=
722     if test "$enable_debug" = yes; then 
723       CC_OPTIONS='-g -mieee-with-inexact -Dlinux -fwritable-strings'
724       FC_OPTIONS='-g -mieee-with-inexact'
725     fi
726     MAKEFILE_TARGET=Makefile.linux
727    ;;
728 # Mklinux PowerPC (Macintosh)
729   powerpc-*-linux-gnu)
730     LIEEELIB=
731     AC_CHECK_LIB(ieee,main,
732       [LIEEELIB=-lieee])
733     GCC=yes
734     CC=cc
735     CC_OPTIONS='-O -D_GNU_SOURCE -Dlinux -fwritable-strings'
736     CC_LDFLAGS=$LIEEELIB
737     CC_PICFLAGS=-fPIC
738     # find Fortran compiler
739     # g77 already asked and found: good
740     if test "$WITH_G77" = yes; then
741       FC=g77
742     # option with-f2c
743     elif test "$with_f2c" = yes; then
744       AC_CHECK_PROG(F2C,f2c,yes,no)
745       if test "$F2C" = no; then
746         AC_MSG_ERROR([Unable to configure: f2c compiler not found])
747       fi
748       # script shell f77 have bugs, get ours
749       FC='${SCIDIR}/bin/f77-linux'
750     else
751       # first find g77
752       AC_CHECK_PROG(WITH_G77,g77,yes,no)
753       if test "$WITH_G77" = yes; then
754         FC=g77
755       else
756       # otherwise find f2c
757         AC_CHECK_PROG(F2C,f2c,yes,no)
758         if test "$F2C" = yes; then
759           # script shell f77 have bugs, get ours
760           FC='${SCIDIR}/bin/f77-linux'
761         else
762           AC_MSG_ERROR([Unable to configure: no Fortran compiler found])    
763         fi
764       fi
765     fi
766     FC_OPTIONS=-O
767     FC_OPTIONS_O0=
768     FC_LDFLAGS="$LIEEELIB -ldl -rdynamic"
769     FC_PICFLAGS=-fPIC
770     LD=ld
771     LD_LDFLAGS=$LIEEELIB
772     if test "$enable_debug" = yes; then 
773       CC_OPTIONS='-g -Dlinux -D_GNU_SOURCE -fwritable-strings'
774       FC_OPTIONS=-g
775     fi
776     MAKEFILE_TARGET=Makefile.linux
777    ;;
778 # SGI MIPS ULTRIX (NO LONGER SUPPORTED)
779   mips-*-ultrix*)
780     # standard compilers
781     CC=cc
782     CC_OPTIONS=-O0
783     CC_LDFLAGS=
784     if test "$WITH_G77" != yes; then    
785       #AC_CHECK_PROG(F77,f77,yes,no)
786       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
787       if test "$F77" = no; then
788         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
789       fi
790       FC="$F77"
791     fi
792     #FC="$F77"
793     FC_OPTIONS='-O0 -fpe1'
794     FC_OPTIONS_O0='-O0 -fpe1'
795     FC_LDFLAGS=
796     LD=ld
797     LD_LDFLAGS=
798     if test "$enable_debug" = yes; then 
799       CC_OPTIONS=-g
800       FC_OPTIONS='-g -fpe1'
801     fi
802     SCILAB_GS=sh5
803     # GNU compilers
804     if test "$WITH_GCC" = yes; then
805       CC=gcc
806       CC_OPTIONS=-O
807       if test "$enable_debug" = yes; then 
808         CC_OPTIONS=-g
809       fi
810     fi
811     if test "$WITH_G77" = yes; then
812       FC=g77
813       FC_OPTIONS=-O
814       FC_OPTIONS_O0=
815       if test "$enable_debug" = yes; then 
816         FC_OPTIONS=-g
817       fi
818     fi
819     MAKEFILE_TARGET=Makefile.ultrix
820     ;;
821 # SGI
822   mips-sgi-irix*)
823     # standard compilers
824     CC=cc
825     CC_OPTIONS='-O  -DSYSV -DSVR4'
826     CC_LDFLAGS=
827     if test "$WITH_G77" != yes; then    
828       #AC_CHECK_PROG(F77,f77,yes,no)
829       AC_CHECK_PROGS(F77,f77 f90 f2c-f77,no)
830       if test "$F77" = no; then
831         AC_MSG_ERROR([Unable to configure: Fortran f77 compiler not found])
832       fi
833       FC="$F77"
834     fi
835     #FC="$F77"
836     FC_OPTIONS='-O '
837     FC_OPTIONS_O0=
838
839     FC_LDFLAGS=
840     LD=ld
841     LD_LDFLAGS=
842     if test "$enable_debug" = yes; then 
843       CC_OPTIONS='-g -c -DSYSV -DSVR4'
844       FC_OPTIONS='-g '
845     fi
846     # GNU compilers
847     if test "$WITH_GCC" = yes; then
848       CC=gcc
849       CC_OPTIONS=-O
850       if test "$enable_debug" = yes; then 
851         CC_OPTIONS=-g
852       fi
853     fi
854     if test "$WITH_G77" = yes; then
855       FC=g77
856       FC_OPTIONS=-O
857       FC_OPTIONS_O0=
858       if test "$enable_debug" = yes; then 
859         FC_OPTIONS=-g
860       fi
861     fi
862
863     MAKEFILE_TARGET=Makefile.sgi
864     ;;
865 # OLD HP (NO LONGER SUPPORTED)
866   *-*-hpux9.*)
867     # standard compilers
868     HPPA_OLD=-Dhppa_old
869     CC=cc
870     CC_OPTIONS='-O -DSYSV -Dhpux'
871     CC_LDFLAGS='-Wl,-a,archive'
872     if test "$WITH_G77" != yes; then    
873       #AC_CHECK_PROG(F77,fort77,yes,no)
874       AC_CHECK_PROGS(F77,fort77 f77 f90 f2c-f77,no)
875       if test "$F77" = no; then
876         AC_MSG_ERROR([Unable to configure: Fortran fort77 compiler not found])
877       fi
878       FC="$F77"
879     fi
880     #FC="$F77"
881     FC_OPTIONS='-O +Obb1200 +E4'
882     FC_OPTIONS_O0='+Obb1200 +E4'
883     FC_LDFLAGS='-Wl,-a,archive'
884     LD=ld
885     LD_LDFLAGS='-a archive'
886     if test "$enable_debug" = yes; then 
887       CC_OPTIONS='-g -DSYSV -Dhpux'
888       FC_OPTIONS='-g +E4'
889     fi
890     # GNU compilers
891     if test "$WITH_GCC" = yes; then
892       CC=gcc
893       CC_OPTIONS=-O
894       if test "$enable_debug" = yes; then 
895         CC_OPTIONS=-g
896       fi
897     fi
898     if test "$WITH_G77" = yes; then
899       FC=g77
900       FC_OPTIONS=-O
901       FC_OPTIONS_O0=
902       if test "$enable_debug" = yes; then 
903         FC_OPTIONS=-g
904       fi
905     fi
906     MAKEFILE_TARGET=Makefile.hpux9
907     FGETARG=fgetarg-hpux
908     ;;
909 # HP 10
910   *-*-hpux10.*)
911     # standard compilers
912     CC=cc
913     CC_OPTIONS='-O -DSYSV -Dhpux +Z +DAportable'
914     CC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl'
915     if test "$WITH_G77" != yes; then    
916       #AC_CHECK_PROG(F77,fort77,yes,no)
917       AC_CHECK_PROGS(F77,fort77 f77 f90 f2c-f77,no)
918       if test "$F77" = no; then
919         AC_MSG_ERROR([Unable to configure: Fortran fort77 compiler not found])
920       fi
921       FC="$F77"
922     fi
923     #FC="$F77"
924     AC_F77_LIBRARY_LDFLAGS
925     FC_OPTIONS='+O2 +E4 +Z +DAportable'
926     FC_OPTIONS_O0='+E4 +Z +DAportable'
927     FC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl'
928     LD=ld
929     LD_LDFLAGS=
930     if test "$enable_debug" = yes; then 
931       CC_OPTIONS='-g -DSYSV -Dhpux'
932       FC_OPTIONS='-g +E4'
933     fi
934     # GNU compilers
935     if test "$WITH_GCC" = yes; then
936       CC=gcc
937       CC_OPTIONS=-O
938       if test "$enable_debug" = yes; then 
939         CC_OPTIONS=-g
940       fi
941     fi
942     if test "$WITH_G77" = yes; then
943       FC=g77
944       FC_OPTIONS=-O
945       FC_OPTIONS_O0=
946       if test "$enable_debug" = yes; then 
947         FC_OPTIONS=-g
948       fi
949     fi
950     MAKEFILE_TARGET=Makefile.hpux
951     FGETARG=fgetarg-hpux
952     ;;
953 # HP 11
954   *-*-hpux11.*)
955     # standard compilers
956     CC=cc
957     CC_OPTIONS='-O -DSYSV -Dhpux +Z +DAportable'
958     CC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl'
959     if test "$WITH_G77" != yes; then    
960       AC_CHECK_PROGS(F77,fort77 f77 f90 f2c-f77,no)
961       if test "$F77" = no; then
962         AC_MSG_ERROR([Unable to configure: Fortran fort77 compiler not found])
963       fi
964       FC="$F77"
965     fi
966     AC_F77_LIBRARY_LDFLAGS
967     FC_OPTIONS='+O2 +Z +DAportable'
968     FC_OPTIONS_O0=' +Z +DAportable'
969     FC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl'
970     LD=ld
971     LD_LDFLAGS=
972     if test "$enable_debug" = yes; then 
973       CC_OPTIONS='-g -DSYSV -Dhpux'
974       FC_OPTIONS='-g'
975     fi
976     # GNU compilers
977     if test "$WITH_GCC" = yes; then
978       CC=gcc
979       CC_OPTIONS=-O
980       if test "$enable_debug" = yes; then 
981         CC_OPTIONS=-g
982       fi
983     fi
984     if test "$WITH_G77" = yes; then
985       FC=g77
986       FC_OPTIONS=-O
987       FC_OPTIONS_O0=
988       if test "$enable_debug" = yes; then 
989         FC_OPTIONS=-g
990       fi
991     fi
992     MAKEFILE_TARGET=Makefile.hpux11
993     GETARG=getarg-hpux
994     FGETARG=fgetarg-hpux
995     cp -f $SCIDIR/pvm3/conf/HPPA.def $SCIDIR/pvm3/conf/HPPA.def.orig
996     cp -f $SCIDIR/pvm3/conf/HPPA11.def $SCIDIR/pvm3/conf/HPPA.def
997     ;;
998
999 # CYGWIN32 for Windows 9X/NT/XP 
1000 # mingw32 is detected 
1001   *-*-cygwin* |   *-*-mingw32*)
1002     SCILABSCRIPT=scilab-gcwin32.g
1003     PERIFILE=periWin.o
1004     MAIN='mainwin95.o'
1005     GUILIB='wsci'
1006     XDRLIB='xdr'
1007     XDRLIBNAME='libs/xdr.a'
1008     MENUSOBJS=WOBJS
1009     BLPR_SCRIPTS=
1010     SED_CYGDRIVE='$(CYGDRIVE)'
1011     IMPPREF=B
1012     IMPENV=env.o
1013     # want to build f2c comand 
1014     # which is required for building fortran dlls 
1015     # which can be loaded into scilab 
1016     F2C_SUBDIR=f2c/src
1017     # just *-so tests 
1018     EXAMPLES_TESTS='$(SUBDIRS1)'
1019     GCC=yes
1020     CC=gcc 
1021     CC_OPTIONS='-mno-cygwin -mieee-fp -O -fwritable-strings  -Wall'
1022       if test "$enable_debug" = yes; then 
1023         CC_OPTIONS='-mno-cygwin -g -fwritable-strings  -Wall'
1024       fi
1025     CC_LDFLAGS=
1026     FC=g77
1027     if test "$WITH_G77" = yes; then
1028       FC=g77
1029     fi 
1030     FC_OPTIONS="-O -mno-cygwin"
1031     FC_OPTIONS_O0="-mno-cygwin"
1032       if test "$enable_debug" = yes; then 
1033         FC_OPTIONS="-g -mno-cygwin"
1034       fi
1035     FC_LDFLAGS=
1036     if test "$with_f2c" = yes; then
1037       # ignore with_f2c here       
1038       FC=g77
1039     fi    
1040     LD=gcc
1041     LD_LDFLAGS="-mconsole --enable-stdcall-fixup"
1042     WINXFLAGS='-I../xdr'
1043     MAKEFILE_TARGET=Makefile.gcwin32
1044     ;;
1045 # FreeBSD  systems (not supported by INRIA)
1046   *-*-freebsd*)
1047      GCC=yes
1048      CC=cc
1049      CC_OPTIONS="${CFLAGS} -Dfreebsd"
1050      CC_LDFLAGS=-lm
1051      CC_PICFLAGS='-fPIC'
1052      # script shell f77 have bugs, get ours
1053      FC=f77
1054      FC_OPTIONS="${CFLAGS} -Dfreebsd"   
1055      FC_OPTIONS_O0='-Dfreebsd'
1056      FC_LDFLAGS='-lm -Wl,--export-dynamic'
1057      FC_PICFLAGS='-fPIC'
1058      LD=ld
1059      LD_LDFLAGS=-lm
1060
1061      if test "$enable_debug" = yes; then 
1062        CC_OPTIONS='-g -Dfreebsd'
1063        FC_OPTIONS=-g
1064      fi
1065      if test "$WITH_G77" = yes; then
1066        # On FreeBSD the gnu fortran compiler is named f77
1067        FC=f77
1068      fi
1069     DLDLIB='${SCIDIR}/libs/libdld.a'
1070     DLD_SUBDIR=dld
1071     MAKEFILE_TARGET=Makefile.freebsd
1072     ;;
1073
1074 # NetBSD  systems (not supported by INRIA)
1075   *-*-netbsd*)
1076     #
1077     # C Compiler
1078     #
1079     AC_PROG_CC
1080     CC_OPTIONS="${CFLAGS} -Dnetbsd"
1081     CC_LDFLAGS="${LDFLAGS} -Wl,-R${X11BASE}/lib"
1082     CC_PICFLAGS='-fPIC'
1083     # check for --export-dynamic
1084     ac_save_LDFLAGS="$LDFLAGS"
1085     LDFLAGS='-Wl,--export-dynamic'
1086     AC_MSG_CHECKING([if the linker accepts --export-dynamic])
1087     AC_TRY_LINK(,,
1088       AC_MSG_RESULT(yes)
1089       CC_LDFLAGS=["$CC_LDFLAGS  -Wl,--export-dynamic"],
1090       AC_MSG_RESULT(no))
1091     LDFLAGS="$ac_save_LDFLAGS"
1092    #
1093    # Fortran Compiler
1094    #
1095
1096    AC_PROG_F77
1097    AC_F77_LIBRARY_LDFLAGS
1098    FC="$F77"
1099    FC_OPTIONS="${FFLAGS}"
1100    FC_OPTIONS_O0=`echo $FC_OPTIONS | sed 's/-O[0-9]*//g'`
1101    FC_LDFLAGS="${LDLAGS} -Wl,-R${X11BASE}/lib"
1102    FC_PICFLAGS='-fPIC'
1103    # check for --export-dynamic
1104    ac_save_LDFLAGS="$LDFLAGS"
1105    LDFLAGS='-Wl,--export-dynamic'
1106    AC_MSG_CHECKING([if the linker accepts --export-dynamic])
1107    AC_TRY_LINK(,,
1108      AC_MSG_RESULT(yes)
1109      FC_LDFLAGS=["$FC_LDFLAGS  -Wl,--export-dynamic"],
1110      AC_MSG_RESULT(no))
1111    LDFLAGS="$ac_save_LDFLAGS"
1112    #
1113    # Linker
1114    #
1115    LD=ld
1116    LD_LDFLAGS="-R${X11BASE}/lib"
1117    # check for --export-dynamic
1118    ac_save_LDFLAGS="$LDFLAGS"
1119    LDFLAGS='-Wl,--export-dynamic'
1120    AC_MSG_CHECKING([if the linker accepts --export-dynamic])
1121    AC_TRY_LINK(,,
1122      AC_MSG_RESULT(yes)
1123      LD_LDFLAGS=["$LD_LDFLAGS  --export-dynamic"],
1124      AC_MSG_RESULT(no))
1125    LDFLAGS="$ac_save_LDFLAGS" 
1126
1127    MAKEFILE_TARGET=Makefile.netbsd
1128    ;;
1129 # Darwin/MacOSX (Not supported by INRIA)
1130   *-*-darwin*)
1131      STRIP=echo 
1132      GCC=yes
1133      CC=cc
1134      CC_OPTIONS='-no-cpp-precomp -O2 -I/sw/include'
1135      CC_LDFLAGS=
1136      CC_PICFLAGS='-fPIC'
1137      # script shell f77 have bugs, get ours
1138      FC=g77
1139      FC_OPTIONS='-O2'
1140      FC_OPTIONS_O0=
1141      FC_LDFLAGS='-L/sw/lib -ldl'
1142      FC_PICFLAGS='-fPIC'
1143      LD=ld
1144      LD_LDFLAGS=
1145      if test "$enable_debug" = yes; then
1146        CC_OPTIONS='-g -I/sw/include '
1147        FC_OPTIONS=-g
1148      fi
1149      if test "$WITH_G77" = yes; then
1150        FC=g77
1151      fi
1152     # just *-so tests 
1153     EXAMPLES_TESTS='$(SUBDIRS1)'
1154     # FLIBS generated by libtool config should not be used 
1155     FLIBS= 
1156    # Dyn. loading - ????
1157    # DLDLIB=
1158    # DLD_SUBDIR=
1159    # DLDLIB=
1160    # DLD_SUBDIR=
1161    MAKEFILE_TARGET=Makefile.darwin
1162    # we need to patch libtool           
1163    cp  libtool libtool-cp
1164    sed -e 's:\\\\"x\\\$module\\\\" = xyes:\\$module = .yes:' libtool-cp > libtool
1165    rm -f libtool-cp
1166     ;;
1167   *)
1168     AC_MSG_ERROR([Unable to configure for host $host])
1169     ;;
1170 esac
1171
1172
1173 # due to g77 Fortran compiler bugs, a few files must not be compiled
1174 # with optimizer:
1175 # in "routines/control": hqror2.f comqr3.f tql2.f imtql3.f dsvdc.f wsvdc.f 
1176 #                        pade.f
1177 # in "routines/sparse": intreadmps.f
1178
1179 FC_OPTIONS1=$FC_OPTIONS
1180 if test "$WITH_G77" = yes; then
1181   if test "$enable_debug" = yes; then   
1182     FC_OPTIONS1=$FC_OPTIONS
1183   else
1184     FC_OPTIONS1=$FC_OPTIONS_O0
1185   fi
1186 fi
1187 # due overlapping arguments a few files must not be compiled
1188 # with optimizer on some computers (SGI : unsfdcopy.f icopy.f)
1189
1190 FC_OPTIONS2=$FC_OPTIONS
1191
1192 case "$host" in
1193 # SGI MIPS 
1194   mips-sgi-irix*)
1195     if test "$enable_debug" = yes; then   
1196       FC_OPTIONS2=$FC_OPTIONS
1197     else
1198       FC_OPTIONS2=$FC_OPTIONS_O0
1199     fi
1200     ;;
1201 esac
1202
1203
1204 # due to a gcc bug, a few C functions must not be inlined when compiled
1205 # with optimizer: the "floor" function in "routines/graphics/Format.c"
1206
1207 NOINLINE=
1208 if test "$WITH_GCC" = yes; then
1209   NOINLINE='-D__NO_MATH_INLINES'
1210 fi
1211
1212 # flag for possible compilations in configure
1213 CFLAGS=$CC_OPTIONS
1214
1215 ############################
1216 ## test for various programs
1217 ############################
1218 # Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
1219 #AC_PROG_RANLIB
1220
1221 ####################
1222 ## test for X Window
1223 ####################
1224
1225 if test "$PERIFILE" = periX11.o; then 
1226 AC_PATH_XTRA
1227
1228 # fixing a bug for SunOs
1229 if test "$X_LIBS" = ' -L/usr/lib'; then
1230   X_LIBS=
1231 fi
1232
1233 if test "$no_x" = yes; then
1234   AC_MSG_ERROR([X Window not found])
1235 fi
1236 fi 
1237
1238 ###################
1239 ## find X11 release
1240 ###################
1241
1242 if test "$PERIFILE" = periX11.o; then 
1243 AC_CACHE_CHECK([for X11 release],ac_cv_X11_release,
1244 [
1245 cat << EOF > testX11.c
1246 #include <X11/Xlib.h>
1247 main()
1248 {
1249 #ifdef XlibSpecificationRelease
1250   if (XlibSpecificationRelease == 5)
1251     printf("R5\n");
1252   else if (XlibSpecificationRelease == 6)
1253     printf("R6\n");
1254   else
1255     printf("R?\n");
1256 #else
1257   printf("R4\n");
1258 #endif
1259 }
1260 EOF
1261 eval "$CC $X_CFLAGS -o testX11 testX11.c > /dev/null 2>&1"
1262 ac_cv_X11_release=`./testX11`
1263 $RM testX11.c testX11
1264 ])
1265 fi
1266
1267 ######################################
1268 ## test for Xaw and Xmu Athena widgets
1269 ######################################
1270
1271 XAW3D=no
1272 if test "$PERIFILE" = periX11.o; then 
1273   if test "$with_local_xaw" = yes; then
1274     if test "$ac_cv_X11_release" = R4; then
1275       AC_MSG_ERROR([Local Xaw and Xmu Libraries cannot be used with X11R4])
1276     else
1277       XAWLIB='$(SCIDIR)/libs/libXaw.a'
1278       XMULIB='$(SCIDIR)/libs/libXmu.a'
1279       XAW_LOCAL_LIB='$(SCIDIR)/libs/libXaw.a $(SCIDIR)/libs/libXmu.a'
1280       XAW_LOCAL_INCLUDES='-I$(SCIDIR)/routines'
1281       XAW_LOCAL_SUBDIR=X11
1282       XAW=Xaw
1283     fi
1284   else
1285     ac_save_LDFLAGS="$LDFLAGS"
1286     if test -n "$x_libraries"; then
1287       LDFLAGS="$LDFLAGS -L$x_libraries -R$x_libraries"
1288     fi
1289     AC_CHECK_LIB(Xmu,main,[XAthena=yes],[XAthena=no],-lXt -lXext $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
1290     if test "$with_xaw3d" != no; then
1291       AC_CHECK_LIB(Xaw3d,main,[XAthena3d=yes],[XAthena3d=no],-lXmu -lXt -lXext $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
1292       if test "$XAthena3d" = no; then
1293         AC_MSG_ERROR([Xaw3d missing. Use configure with option: --without-xaw3d])
1294       else
1295         XAW3D=yes
1296         XAthena=yes
1297       fi
1298     else
1299       AC_CHECK_LIB(Xaw,main,[XAthena=yes],[XAthena=no],-lXmu -lXt -lXext $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
1300     fi
1301     LDFLAGS="$ac_save_LDFLAGS"
1302     if test "$XAthena" = no; then
1303       AC_MSG_WARN([Xaw and/or Xmu Library missing. Trying local libraries.])
1304       if test "$ac_cv_X11_release" = R4; then
1305         AC_MSG_ERROR([Local Xaw and Xmu Libraries cannot be used with X11R4])
1306       else
1307         AC_MSG_WARN([Using Local Xaw and Xmu Libraries])
1308         XAWLIB='$(SCIDIR)/libs/libXaw.a'
1309         XMULIB='$(SCIDIR)/libs/libXmu.a'
1310         XAW_LOCAL_LIB='$(SCIDIR)/libs/libXaw.a $(SCIDIR)/libs/libXmu.a'
1311         XAW_LOCAL_INCLUDES='-I$(SCIDIR)/routines'
1312         XAW_LOCAL_SUBDIR=X11
1313         XAW=Xaw
1314       fi
1315     else
1316       XMULIB=-lXmu
1317       if test "$XAW3D" = yes; then
1318         XAWLIB=-lXaw3d
1319         XAW=Xaw3d
1320       else
1321         XAW=Xaw
1322         XAWLIB=-lXaw
1323       fi
1324     fi
1325   fi
1326 fi
1327
1328 if test "$XAW3D" = yes; then
1329   save_cflags=$CFLAGS
1330   CFLAGS=$X_CFLAGS
1331   AC_TRY_COMPILE([#include <X11/IntrinsicP.h>
1332 #include <X11/Xaw3d/ViewportP.h>],,,
1333     AC_MSG_ERROR([Include file "ViewportP.h" for Xaw3d not found. 
1334                   Get and put it in <X11/Xaw3d/> or use Xaw instead.]))
1335   CFLAGS=$save_cflags
1336 fi
1337
1338 #######################
1339 ## test for underscores
1340 #######################
1341
1342 AC_MSG_CHECKING([for leading and/or trailing underscores])
1343 cat << EOF > pipof.f
1344        subroutine pipof
1345        end
1346 EOF
1347
1348 dnl expand possible $SCIDIR in $FC (wizard command...)
1349 eval "FC1=\"$FC\""
1350 eval "$FC1 -c pipof.f > /dev/null 2>&1"
1351
1352 FC_LEADING_UNDERSCORE=no
1353 FC_TRAILING_UNDERSCORE=no
1354
1355 output=`nm pipof.o|grep _pipof 2>&1`
1356 if test ! -z "$output"; then
1357   FC_LEADING_UNDERSCORE=yes
1358   FC_TRAILING_UNDERSCORE=no
1359 fi
1360
1361 output=`nm pipof.o|grep pipof_ 2>&1`
1362 if test ! -z "$output"; then
1363   FC_LEADING_UNDERSCORE=no
1364   FC_TRAILING_UNDERSCORE=yes
1365 fi
1366
1367 output=`nm pipof.o|grep _pipof_ 2>&1`
1368 if test ! -z "$output"; then
1369   FC_LEADING_UNDERSCORE=yes
1370   FC_TRAILING_UNDERSCORE=yes
1371 fi
1372
1373 if test "$FC_LEADING_UNDERSCORE" = yes; then
1374   AC_DEFINE(WLU)
1375 fi
1376 if test "$FC_TRAILING_UNDERSCORE" = yes; then
1377   AC_DEFINE(WTU)
1378 fi
1379
1380 $RM pipof.f pipof.o
1381
1382 AC_MSG_RESULT([$FC_LEADING_UNDERSCORE $FC_TRAILING_UNDERSCORE])
1383
1384 #####################
1385 ## test for sharpsign
1386 #####################
1387
1388 AC_MSG_CHECKING([for use of sharpsign in CPP])
1389 AC_TRY_COMPILE([#define C2F(name) name##_],
1390   [C2F(toto)()],  
1391   AC_MSG_RESULT(yes)
1392   AC_DEFINE(USE_SHARP_SIGN),
1393   AC_MSG_RESULT(no))
1394
1395 ##############################################################
1396 ## test for functions in standard C library and C math library
1397 ##############################################################
1398
1399 AC_CHECK_LIB(m,main)
1400 AC_CHECK_FUNCS(exp10)
1401 AC_CHECK_FUNCS(getwd)
1402 AC_CHECK_FUNCS(sleep)
1403 AC_CHECK_FUNCS(strerror)
1404 AC_CHECK_FUNCS(usleep)
1405 AC_CHECK_FUNCS(finite)
1406
1407 ########################
1408 ## test for header files
1409 ########################
1410
1411 AC_CHECK_HEADERS(limits.h values.h) 
1412
1413 ##################
1414 ## termcap library
1415 ##################
1416
1417 TERMCAPLIB=no
1418 AC_CHECK_LIB(ncurses,main,
1419   [TERMCAPLIB=-lncurses])
1420 if test "$TERMCAPLIB" = no; then
1421   AC_CHECK_LIB(curses,main,
1422   [TERMCAPLIB=-lcurses])
1423 fi
1424 if test "$TERMCAPLIB" = no; then
1425   AC_CHECK_LIB(termcap,main,
1426   [TERMCAPLIB=-ltermcap])
1427 fi
1428 if test "$TERMCAPLIB" = no; then
1429   AC_CHECK_LIB(termlib,main,
1430   [TERMCAPLIB=-ltermlib])
1431 fi
1432 if test "$TERMCAPLIB" != no; then
1433   AC_DEFINE(HAVE_TERMCAP)
1434 else
1435   TERMCAPLIB=
1436 fi
1437
1438 #################
1439 ## PVM
1440 #################
1441
1442 PVMARCH=
1443 PVMLIB=
1444 PVMGLIB=
1445 PVMSCIDIR=
1446 PVMSCILIB=
1447 PVMTARGET=pvm-bidon
1448 PVMROOT=
1449 # need an non empty default value for scilab script 
1450 PVMROOTR='$SCI/pvm3'
1451 PVMINST=
1452
1453 # files to be added for building the hoster with mingw 
1454 PVMHOSTERFILES= 
1455 # compile hoster ? 
1456 PVMHOSTER=
1457
1458 if test "$with_pvm" != no; then
1459 # check for a locally installed PVM
1460 if test -x $PVM_ROOT/lib/pvmgetarch ; then
1461   PVMROOT=$PVM_ROOT
1462   PVMROOTR=$PVM_ROOT
1463   PVMTARGET=pvm-bidon
1464 else
1465   PVMROOT="$SCIDIR/pvm3"
1466   PVMROOTR='$SCI/pvm3'
1467   PVMTARGET=scilex-lib
1468   PVMINST='$(PVMBINDISTFILES) $(PVMBINDISTFILES1)'
1469 fi
1470
1471 PVMINCLUDE=$PVMROOT/include
1472
1473   case "$host" in
1474       *-*-mingw32*)
1475       PVMINCLUDE="$PVMROOT/include -I$PVMROOT/src"
1476     ;;
1477   esac
1478
1479
1480 AC_ARG_WITH(pvm-include,
1481     [  --with-pvm-include=DIR  PVM include files are in DIR ],
1482     [  PVMINCLUDE=$withval
1483     ])
1484
1485 AC_CACHE_CHECK([for PVM architecture],ac_cv_PVM_arch,
1486 [
1487 ac_cv_PVM_arch=`$PVMROOT/lib/pvmgetarch`
1488 ])
1489 if test "$ac_cv_PVM_arch" = UNKNOWN; then
1490   AC_MSG_WARN([PVM unable to find architecture: I will not use PVM])
1491   PVMTARGET=pvm-bidon
1492   PVMINST='$(PVMBINDISTFILES)'
1493 else
1494   AC_DEFINE(WITH_PVM)
1495   PVMARCH="$ac_cv_PVM_arch"
1496
1497   case "$host" in
1498       *-*-mingw32*)
1499         ac_cv_PVM_arch=MINGW
1500         PVMARCH="$ac_cv_PVM_arch"
1501         PVMHOSTERFILES="pvmwinrexec.o pvmwinrsh.o"
1502         PVMHOSTER=h
1503     ;;
1504   esac
1505
1506
1507   PVMLIBDIR=$PVMROOT/lib/$ac_cv_PVM_arch
1508   AC_ARG_WITH(pvm-library,
1509         [  --with-pvm-library=DIR  PVM library files are in DIR ],
1510         [  PVMLIBDIR=$withval
1511             ])
1512   PVMGLIB="$PVMLIBDIR/libgpvm3.a"
1513   PVMLIB="$PVMLIBDIR/libpvm3.a"
1514         
1515   PVMSCIDIR=pvm
1516   PVMSCILIB="\$(SCIDIR)/libs/pvm.a"
1517 fi
1518
1519 fi
1520
1521 #################
1522 ## GTK
1523 #################
1524
1525 ZZLEDT=zzledt
1526 GTKPLUGBUG=
1527
1528 if test "$with_gtk" = yes; then
1529   AC_CHECK_PROG(GTK_CONFIG,gtk-config,yes,no)
1530   if test "$GTK_CONFIG" = no; then
1531     AC_MSG_WARN([gtk-config not found: I will not use -with-gtk])
1532     with_gtk="no"
1533   fi
1534   AC_CHECK_PROG(GNOME_CONFIG,gnome-config,yes,no)
1535   if test "$GNOME_CONFIG" = no; then
1536     AC_MSG_WARN([gnome-config not found: I will not use -with-gtk])
1537     with_gtk="no"
1538   fi
1539   if test "$with_gtk" = yes; then
1540     AC_MSG_CHECKING([if gtk is version 1.2 or later])
1541     GTK_VER=`gtk-config --version`
1542     case $GTK_VER in
1543       0.* )
1544         AC_MSG_ERROR([you need at least version 1.2 of gtk])
1545         ;;
1546       1.1* )
1547         AC_MSG_ERROR([you need at least version 1.2 of gtk])
1548         ;;
1549       * )
1550       # we have cheched above that gtk-config is in the 
1551       # path, then we don't want to generate a full path 
1552       # for gtk-config or to directly generate the 
1553       # result of `gtk-config --cflags`. Idem for gnome
1554       AC_MSG_RESULT([$GTK_VER])
1555       GTKCFLAGS='`gtk-config --cflags`'
1556       GTKLIBS='`gtk-config --libs` `gnome-config --libs  gtkxmhtml`'
1557       GNOMECFLAGS='`gnome-config --cflags gnome`'
1558       ;;
1559     esac    
1560     AC_DEFINE(WITH_GTK)
1561     GUILIB='gtksci'
1562     GZVT='gzvt'
1563     SCILABSCRIPT=scilab-gtk.g
1564     MENUSOBJS=GOBJS
1565     PERIFILE=periGtk.o
1566     # gtk 1 HTMLFLAGS=`gnome-config --cflags gnome`
1567     # gtk 2 HTMLFLAGS=`pkg-config libgtkhtml-2.0 --cflags`
1568     HTMLFLAGS='`gnome-config --cflags gnome`'
1569   fi
1570   # try to use readline with the gtk version 
1571   ac_save_LIBS="$LIBS"
1572   LIBS="$TERMCAPLIB  $LIBS"
1573   AC_CHECK_LIB(readline, rl_callback_read_char,[READLINE=-lreadline])
1574   LIBS=$ac_save_LIBS
1575   TERMCAPLIB="$READLINE $TERMCAPLIB"
1576   if test "no$READLINE" != no; then
1577      ZZLEDT="zzledt-rl"
1578      AC_DEFINE(WITH_READLINE)
1579   fi
1580 fi
1581
1582
1583 #################
1584 ## GTK2 (XXXX A Finir)
1585 #################
1586
1587 ZZLEDT=zzledt
1588
1589 if test "$with_gtk2" = yes; then
1590   AC_CHECK_PROG(GTK_CONFIG,gtk-config,yes,no)
1591   if test "$GTK_CONFIG" = no; then
1592     AC_MSG_WARN([gtk-config not found: I will not use -with-gtk])
1593     with_gtk2="no"
1594   fi
1595   AC_CHECK_PROG(GNOME_CONFIG,gnome-config,yes,no)
1596   if test "$GNOME_CONFIG" = no; then
1597     AC_MSG_WARN([gnome-config not found: I will not use -with-gtk])
1598     with_gtk2="no"
1599   fi
1600   if test "$with_gtk2" = yes; then
1601     AC_MSG_CHECKING([if gtk is version 2.1 or later])
1602     GTK_VER=`pkg-config --modversion gtk+-2.0`
1603     case $GTK_VER in
1604       2.* )
1605         GTKPLUGBUG=gtkplug.o
1606         ;;
1607     esac    
1608     AC_MSG_RESULT([$GTK_VER])
1609     # we have cheched above that gtk-config is in the 
1610     # path, then we don't want to generate a full path 
1611     # for gtk-config or to directly generate the 
1612     # result of `gtk-config --cflags`. Idem for gnome
1613     GTKCFLAGS='`pkg-config gtk+-2.0 --cflags`'
1614     GTKLIBS='`pkg-config gtk+-2.0 libgtkhtml-2.0 --libs`'
1615     GNOMECFLAGS='`pkg-config gtk+-2.0 --cflags`'
1616     AC_DEFINE(WITH_GTK)
1617     GUILIB='gtksci'
1618     # GZVT='gzvt2' dose not work: gtk2 bug with plugged menus
1619     # gzvt2 works again with a gtk patch 
1620     GZVT='gzvt2'
1621     # we need a patched version 
1622     SCILABSCRIPT=scilab-gtk.g
1623     MENUSOBJS=GOBJS
1624     PERIFILE=periGtk.o
1625     # gtk 1 HTMLFLAGS=`gnome-config --cflags gnome`
1626     # gtk 2 HTMLFLAGS=`pkg-config libgtkhtml-2.0 --cflags`
1627     HTMLFLAGS='`pkg-config libgtkhtml-2.0 --cflags`'
1628   fi
1629   # try to use readline with the gtk version 
1630   ac_save_LIBS="$LIBS"
1631   LIBS="$TERMCAPLIB  $LIBS"
1632   AC_CHECK_LIB(readline, rl_callback_read_char,[READLINE=-lreadline])
1633   LIBS=$ac_save_LIBS
1634   TERMCAPLIB="$READLINE $TERMCAPLIB"
1635   if test "no$READLINE" != no; then
1636      ZZLEDT="zzledt-rl"
1637      AC_DEFINE(WITH_READLINE)
1638   fi
1639 fi
1640
1641
1642
1643 #################
1644 ## Tcl/Tk library
1645 #################
1646
1647 TK_INC_PATH=
1648 TK_LIB_PATH=
1649 TCLTK_LIBS=
1650 TKSCILIB=
1651 TKSCIDIR=
1652
1653 if test "$with_tk" != no; then
1654
1655 # check user arguments
1656 USER_TCL_LIB_PATH=""
1657 USER_TCL_INC_PATH=""
1658 AC_ARG_WITH(tcl-library,
1659     [  --with-tcl-library=DIR  Tcl library files are in DIR ],
1660     [  USER_TCL_LIB_PATH=$withval
1661     ])
1662 AC_ARG_WITH(tcl-include,
1663     [  --with-tcl-include=DIR  Tcl include files are in DIR ],
1664     [  USER_TCL_INC_PATH=$withval
1665     ])
1666
1667 USER_TK_LIB_PATH=$USER_TCL_LIB_PATH
1668 USER_TK_INC_PATH=$USER_TCL_INC_PATH
1669 AC_ARG_WITH(tk-library,
1670     [  --with-tk-library=DIR   Tk library files are in DIR ],
1671     [  USER_TK_LIB_PATH=$withval
1672     ])
1673 AC_ARG_WITH(tk-include,
1674     [  --with-tk-include=DIR   Tk include files are in DIR ],
1675     [  USER_TK_INC_PATH=$withval
1676     ])
1677
1678 saved_cflags="$CFLAGS"
1679 saved_ldflags="$LDFLAGS"
1680 saved_cppflags="$CPPFLAGS"
1681
1682 AC_CHECK_LIB(dl, main,TCLTK_LIBS=" -ldl")
1683 AC_CHECK_TCLTK()
1684
1685 # set variables
1686 if test $WITH_TKSCI = 1; then
1687   AC_DEFINE(WITH_TK)
1688   TKSCILIB="\$(SCIDIR)/libs/tksci.a"
1689   TKSCIDIR=tksci
1690 else
1691   AC_MSG_ERROR([TCL/TK not found. Use --without-tk])
1692 fi
1693
1694 fi
1695
1696 #################
1697 ## atlas 
1698 #################
1699
1700 # check user arguments
1701 USER_ATLAS_LIB_PATH=""
1702
1703 AC_ARG_WITH(atlas-library,
1704     [  --with-atlas-library=DIR  Atlas library files are in DIR and we use Atlas ],
1705     [  USER_ATLAS_LIB_PATH=$withval
1706     ])
1707
1708 if test "$USER_ATLAS_LIB_PATH" = ""; then
1709         WHICH_BLAS="STD_BLAS"
1710         IN_ATLAS=LOCAL
1711 else 
1712         echo "using Atlas library"
1713         WHICH_BLAS="ATLAS_LAPACKBLAS"
1714         ATLAS_DIR=$USER_ATLAS_LIB_PATH
1715         IN_ATLAS=ATLAS
1716         AC_DEFINE(WITH_ATLAS)
1717 fi
1718
1719 #########################
1720 ## substituting variables
1721 #########################
1722
1723 AC_SUBST(RM)
1724 AC_SUBST(AR)
1725 AC_SUBST(AR_FLAGS)
1726 AC_SUBST(FILES_TO_CLEAN)
1727 AC_SUBST(CC)
1728 AC_SUBST(CC_OPTIONS)
1729 AC_SUBST(CC_LDFLAGS)
1730 AC_SUBST(CC_PICFLAGS)
1731 AC_SUBST(FC)
1732 AC_SUBST(FC_OPTIONS)
1733 AC_SUBST(FC_OPTIONS1)
1734 AC_SUBST(FC_OPTIONS2)
1735 AC_SUBST(FC_LDFLAGS)
1736 AC_SUBST(FC_PICFLAGS)
1737 AC_SUBST(LD)
1738 AC_SUBST(LD_LDFLAGS)
1739 AC_SUBST(SCILAB_GS)
1740 AC_SUBST(SCILABSCRIPT)
1741 AC_SUBST(FGETARG)
1742 AC_SUBST(GETARG)
1743 AC_SUBST(HPPA_OLD)
1744 AC_SUBST(DLDLIB)
1745 AC_SUBST(DLD_SUBDIR)
1746 AC_SUBST(XAWLIB)
1747 AC_SUBST(XAW)
1748 AC_SUBST(XMULIB)
1749 AC_SUBST(XAW_LOCAL_SUBDIR)
1750 AC_SUBST(XAW_LOCAL_INCLUDES)
1751 AC_SUBST(XAW_LOCAL_LIB)
1752 AC_SUBST(GTKCFLAGS)
1753 AC_SUBST(GTKLIBS)
1754 AC_SUBST(GNOMECFLAGS)
1755 AC_SUBST(TERMCAPLIB)
1756 AC_SUBST(MAIN)
1757 AC_SUBST(MAKEFILE_TARGET)
1758 AC_SUBST(PERIFILE)
1759 AC_SUBST(GUILIB)
1760 AC_SUBST(GZVT)
1761 AC_SUBST(XDRLIB)
1762 AC_SUBST(XDRLIBNAME)
1763 AC_SUBST(WINXFLAGS)
1764 AC_SUBST(MENUSOBJS)
1765 AC_SUBST(MALLOC)
1766 AC_SUBST(PVMARCH)
1767 AC_SUBST(PVMLIB)
1768 AC_SUBST(PVMSCIDIR)
1769 AC_SUBST(PVMSCILIB)
1770 AC_SUBST(PVMGLIB)
1771 AC_SUBST(PVMTARGET)
1772 AC_SUBST(PVMROOT)
1773 AC_SUBST(PVMROOTR)
1774 AC_SUBST(PVMINST)
1775 AC_SUBST(PVMINCLUDE)
1776 AC_SUBST(PVMHOSTERFILES)
1777 AC_SUBST(PVMHOSTER)
1778
1779 AC_SUBST(TK_INC_PATH)
1780 AC_SUBST(TCL_INC_PATH)
1781 AC_SUBST(TCLTK_LIBS)
1782 AC_SUBST(TKSCILIB)
1783 AC_SUBST(TKSCIDIR)
1784 AC_SUBST(TKSCIDIR)
1785 AC_SUBST(TK_MINOR_VERSION)
1786 AC_SUBST(TK_MAJOR_VERSION)
1787 AC_SUBST(NOINLINE)
1788 AC_SUBST(WHICH_BLAS)
1789 AC_SUBST(ATLAS_DIR)
1790 AC_SUBST(IN_ATLAS)
1791
1792 # for Makemex
1793
1794 AC_SUBST(SHELL)
1795 AC_SUBST(DLLTOOL)
1796 AC_SUBST(LD)
1797 AC_SUBST(LIBM)
1798 AC_SUBST(LIBTOOL)
1799 AC_SUBST(LIBTOOL_DEPS)
1800 AC_SUBST(LN_S)
1801 AC_SUBST(NM)
1802 AC_SUBST(OBJDUMP)
1803 AC_SUBST(PACKAGE)
1804 AC_SUBST(RANLIB)
1805 AC_SUBST(STATIC)
1806 AC_SUBST(SCIVERSION)
1807 AC_SUBST(CPPFLAGS)
1808 AC_SUBST(LDFLAGS)
1809 AC_SUBST(LIBS)
1810 AC_SUBST(FLIBS)
1811 #AC_SUBST(CC)
1812 AC_SUBST(CFLAGS)
1813 AC_SUBST(FC_USE_CDEC)
1814 AC_SUBST(FC_SUBDIR)
1815 AC_SUBST(BLPR_SCRIPTS)
1816 AC_SUBST(SED_CYGDRIVE)
1817 AC_SUBST(F2C_SUBDIR)
1818 AC_SUBST(EXAMPLES_TESTS)
1819 AC_SUBST(IMPPREF)
1820 AC_SUBST(IMPENV)
1821 AC_SUBST(ZZLEDT)
1822 AC_SUBST(STRIP)
1823 AC_SUBST(HTMLFLAGS)
1824 AC_SUBST(GTKPLUGBUG)
1825
1826 AC_OUTPUT(Makefile.OBJ Makefile.incl Makefile scripts/Makefile routines/Makefile routines/default/Makefile routines/sun/Makefile routines/graphics/Makefile routines/menusX/Makefile routines/xsci/Makefile routines/sparse/Makefile Makemex  config/Makeso.incl routines/control/Makefile routines/calelm/Makefile routines/xsci/jpc_SGraph.c  config/Makefile.aix config/Makefile.ultrix routines/lapack/Makefile scripts/scilab.g scripts/scilab-gtk.g examples/Makefile routines/version.h imp/Makefile routines/gtksci/Makefile pvm3/Makefile pvm3/Makefile.aimk pvm3/hoster/Makefile.aimk config/configuration macros/util/gettklib.sci routines/stack.h) 
1827  
1828
1829
1830