1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl *******************WARNING****************************
4dnl Using an autoconf later than 2.61 will result in configure
5dnl failing to run on QNX4
6dnl *******************WARNING****************************
7AC_INIT(Regina Rexx Interpreter, m4_esyscmd_s([grep VER_DOT ./regina.ver | cut -f 2 -d '=']),mark@rexx.org, Regina-REXX)
8AC_PREFIX_DEFAULT(/usr/local)
9
10. $srcdir/regina.ver
11VERSION_NODOT=\"$VER\"
12VERSION=\"$VER_DOT\"
13VERSION_UNQUOTED=$VER_DOT
14VER_DATE=\"$VER_DATE\"
15AC_SUBST(VERSION)
16AC_SUBST(VERSION_UNQUOTED)
17AC_SUBST(VERSION_NODOT)
18AC_SUBST(VER_DATE)
19AC_SUBST(VER_MAJOR)
20AC_SUBST(VER_MINOR)
21AC_SUBST(VER_RELEASE)
22AC_SUBST(VER_SUPP)
23cp $srcdir/common/config.guess $srcdir
24cp $srcdir/common/config.sub $srcdir
25
26dnl ---------------------- check for C compiler -----------------
27dnl Checks for one of the C compilers below - change if yours not there.
28MH_PROG_CC
29
30AC_CONFIG_HEADER(config.h)
31AC_ISC_POSIX
32
33dnl Checks for system first
34AC_CANONICAL_SYSTEM
35
36MH_HAVE_PROTO
37if test "$mh_have_proto" = "no"; then
38   AC_MSG_ERROR(Regina requires an ANSI compiler; cannot continue)
39fi
40
41dnl
42dnl include our 32/64bit tests
43dnl
44sinclude(common/inclibarch.m4)
45
46mymakefile="Makefile"
47on_qnx4=no
48on_beos=no
49gci_available=no
50GCI_CONVERT_HEADER="gci_convert.unsupported"
51case "$target" in
52   *hp-hpux*)
53      SYS_DEFS="-D_HPUX_SOURCE"
54      ;;
55   *ibm-aix*)
56      SYS_DEFS="-D_ALL_SOURCE"
57#     mymakefile="Makefile.aix"
58      ;;
59   *apple-darwin*)
60      dnl valid_arch_flags is set in inclibarch.m4
61      SYS_DEFS="$valid_arch_flags"
62      EEXTRA="$valid_arch_flags"
63      ;;
64   *dec-osf*)
65      ;;
66   *sequent-dynix*)
67      ;;
68   i*86*solaris*)
69      GCI_CONVERT_HEADER="gci_convert.solaris.i86"
70      gci_available=yes
71      ;;
72   *solaris*)
73      GCI_CONVERT_HEADER="gci_convert.solaris.sparc"
74      gci_available=yes
75      ;;
76   sparc*sunos*)
77      ;;
78   i*86-*linux*|*-k*bsd-gnu*|*-gnu*)
79      GCI_CONVERT_HEADER="gci_convert.linux.i86"
80      gci_available=yes
81      ;;
82   *86_64-*linux*|*-k*bsd-gnu*|*-gnu*)
83      GCI_CONVERT_HEADER="gci_convert.linux.86_64"
84      gci_available=yes
85      ;;
86   alpha*-*linux*)
87      GCI_CONVERT_HEADER="gci_convert.linux.alpha"
88      gci_available=yes
89      ;;
90   powerpc64-*linux*)
91      GCI_CONVERT_HEADER="gci_convert.linux.powerpc64"
92      gci_available=yes
93      ;;
94   *cygwin*)
95      GCI_CONVERT_HEADER="gci_convert.cygwin.i86"
96      gci_available=yes
97      ;;
98   *apple-darwin*)
99      GCI_CONVERT_HEADER="gci_convert.macX.all"
100      gci_available=yes
101      ;;
102   *nto-qnx*)
103      ;;
104   *qnx*)
105      on_qnx4=yes
106      SYS_DEFS="-Q"
107      ;;
108   *beos*)
109      on_beos=yes
110      ;;
111   *minix*)
112      SYS_DEFS="-D__MINIX__"
113      ;;
114esac
115AC_SUBST(SYS_DEFS)
116
117AC_SUBST(GCI_CONVERT_HEADER)
118
119dnl Check for dynamic shared library support libraries
120#MH_EXTRA_LIBS=""
121#MH_CHECK_LIB(dld dl)
122#SHLIBS="${MH_EXTRA_LIBS}"
123
124dnl Check for extra required libraries - don't include libfl or libl
125#MH_EXTRA_LIBS=""
126#MH_CHECK_LIB(m nsl nsl_s socket net network)
127dnl -- check for crypt library and function
128MH_CHECK_CRYPT
129if test "$on_qnx4" = "no"; then
130  AC_PROG_LEX
131fi
132#BOTHLIBS="${LEXLIB} ${MH_EXTRA_LIBS}"
133
134AC_PROG_RANLIB
135
136dnl --------------------- Check for other programs. ---------------
137AC_PROG_LN_S
138AC_PROG_MAKE_SET
139
140dnl -------------------- Checks for header files. -----------------
141AC_HEADER_STDC
142AC_CHECK_HEADERS( \
143   arpa/inet.h  \
144   assert.h \
145   ctype.h \
146   crypt.h \
147   dl.h \
148   dlfcn.h \
149   errno.h \
150   fcntl.h \
151   fnmatch.h \
152   grp.h \
153   iconv.h \
154   inttypes.h \
155   limits.h \
156   malloc.h \
157   math.h \
158   ncurses.h \
159   netdb.h \
160   netinet/in.h \
161   paths.h \
162   poll.h \
163   process.h \
164   pwd.h \
165   setjmp.h \
166   share.h \
167   signal.h \
168   socket.h \
169   stdarg.h \
170   stdio.h \
171   statvfs.h \
172   stdlib.h \
173   stdint.h \
174   string.h \
175   sys/ioctl.h \
176   sys/mount.h \
177   sys/poll.h \
178   sys/resource.h \
179   sys/select.h \
180   sys/socket.h \
181   sys/stat.h \
182   sys/statfs.h \
183   sys/statvfs.h \
184   sys/mman.h \
185   sys/time.h \
186   sys/utsname.h \
187   sys/wait.h \
188   term.h \
189   termcap.h \
190   time.h \
191   unistd.h \
192   vfs.h
193   )
194
195AC_CHECK_FUNCS(sysconf div raise putenv usleep random ftruncate \
196   memcpy memmove strerror strerror_r gettimeofday ftime poll \
197   _fullpath vsprintf _splitpath2 _splitpath sigaction strtof \
198   lstat mkstemp inet_ntop gmtime_r localtime_r \
199   getgrgid_r getpwuid_r gethostbyname_r \
200   atoll fseeko ftello \
201   readlink realpath getbootfile tgetstr statfs mbstowcs mmap iconv)
202
203dnl Checks for typedefs, structures, and compiler characteristics.
204AC_C_CONST
205AC_TYPE_SIZE_T
206AC_HEADER_TIME
207AC_STRUCT_TM
208MH_CHECK_CC_O
209MH_CHECK__SIGHANDLER_T
210MH_STRUCT_RANDOM_DATA
211MH_CHECK_BUILTIN_RETURN_ADDRESS
212MH_C_LONG_LONG
213MH_CHECK_TYPE_SOCKLEN_T
214AC_CHECK_TYPES([union semun],[],[],
215[#include <sys/types.h>
216#include <sys/ipc.h>
217#include <sys/sem.h>])
218
219MH_CHECK_F_MNTFROMNAME
220
221dnl Checks for library functions.
222AC_FUNC_MEMCMP
223AC_FUNC_ALLOCA
224if test $ac_cv_func_alloca_works = yes; then
225   ALLOCA=""
226   ALLOCA_SHO=""
227   ALLOCA_TSO=""
228else
229   ALLOCA="alloca.o"
230   ALLOCA_SHO="alloca.so.o"
231   ALLOCA_TSO="alloca.tso.o"
232fi
233AC_SUBST(ALLOCA)
234AC_SUBST(ALLOCA_SHO)
235AC_SUBST(ALLOCA_TSO)
236dnl
237dnl Test for fnmatch
238dnl
239if test $ac_cv_header_fnmatch_h = yes; then
240   FNMATCH=""
241   FNMATCH_SHO=""
242   FNMATCH_TSO=""
243else
244   FNMATCH="fnmatch.o"
245   FNMATCH_SHO="fnmatch.so.o"
246   FNMATCH_TSO="fnmatch.tso.o"
247fi
248AC_SUBST(FNMATCH)
249AC_SUBST(FNMATCH_SHO)
250AC_SUBST(FNMATCH_TSO)
251
252dnl --------------- allow --disable-screen to disable terminal functions
253AC_ARG_ENABLE(screen,
254   [  --disable-screen        disable terminal functions],
255   [with_screen=$enableval],
256   [with_screen=yes],
257)
258if test "$with_screen" = no; then
259   SCREEN_FUNCS="-DNOSCREEN_FUNCS"
260   REGSCREENUX=""
261else
262   SCREEN_FUNCS=""
263   REGSCREENUX="regscreenux.\$(OBJ)"
264fi
265AC_SUBST(SCREEN_FUNCS)
266AC_SUBST(REGSCREENUX)
267
268dnl
269dnl where are termcap functions
270save_LIBS="$LIBS"
271AC_SEARCH_LIBS(tgetent,[ncurses termcap curses termlib],REGUTIL_TERM_LIB="$ac_cv_search_tgetent",REGUTIL_TERM_LIB="")
272if test "$REGUTIL_TERM_LIB" = "none required" -o "$REGUTIL_TERM_LIB" = "no" -o "$with_screen" = "no"; then
273  REGUTIL_TERM_LIB=""
274fi
275LIBS="$save_LIBS"
276
277dnl where are math functions
278save_LIBS="$LIBS"
279AC_SEARCH_LIBS(log10,[m c],REGUTIL_MATH_LIB="$ac_cv_search_log10",REGUTIL_MATH_LIB="")
280if test "$REGUTIL_MATH_LIB" = "none required" -o "$REGUTIL_MATH_LIB" = "no"; then
281  REGUTIL_MATH_LIB=""
282fi
283LIBS="$save_LIBS"
284
285dnl where is crypt
286save_LIBS="$LIBS"
287AC_SEARCH_LIBS(crypt,crypt,REGINA_CRYPT_LIB="$ac_cv_search_crypt",REGINA_CRYPT_LIB="")
288if test "$REGINA_CRYPT_LIB" = "none required" -o "$REGINA_CRYPT_LIB" = "no"; then
289  REGINA_CRYPT_LIB=""
290fi
291LIBS="$save_LIBS"
292
293save_LIBS="$LIBS"
294AC_SEARCH_LIBS(dlopen,dl,REGINA_DLOPEN_LIB="$ac_cv_search_dlopen",REGINA_DLOPEN_LIB="")
295if test "$REGINA_DLOPEN_LIB" = "none required" -o "$REGINA_DLOPEN_LIB" = "no"; then
296  REGINA_DLOPEN_LIB=""
297fi
298LIBS="$save_LIBS"
299
300save_LIBS="$LIBS"
301AC_SEARCH_LIBS(shl_load,dld,REGINA_SHL_LOAD_LIB="$ac_cv_search_shl_load",REGINA_SHL_LOAD_LIB="")
302if test "$REGINA_SHL_LOAD_LIB" = "none required" -o "$REGINA_SHL_LOAD_LIB" = "no"; then
303  REGINA_SHL_LOAD_LIB=""
304fi
305LIBS="$save_LIBS"
306
307save_LIBS="$LIBS"
308AC_SEARCH_LIBS(socket,[socket network],REGINA_SOCKET_LIB="$ac_cv_search_socket",REGINA_SOCKET_LIB="")
309if test "$REGINA_SOCKET_LIB" = "none required" -o "$REGINA_SOCKET_LIB" = "no"; then
310  REGINA_SOCKET_LIB=""
311fi
312LIBS="$save_LIBS"
313
314save_LIBS="$LIBS"
315AC_SEARCH_LIBS(gethostbyname,[nsl socket network],REGINA_GETHOSTBYNAME_LIB="$ac_cv_search_gethostbyname",REGINA_GETHOSTBYNAME_LIB="")
316if test "$REGINA_GETHOSTBYNAME_LIB" = "none required" -o "$REGINA_GETHOSTBYNAME_LIB" = "no"; then
317  REGINA_GETHOSTBYNAME_LIB=""
318fi
319LIBS="$save_LIBS"
320AC_SUBST(REGUTIL_TERM_LIB)
321AC_SUBST(REGUTIL_MATH_LIB)
322
323#MH_CHECK_LIB(m nsl nsl_s socket net network)
324dnl
325dnl include our debugging switch checking
326dnl
327sinclude(common/incdebug.m4)
328
329dnl --------------- allow --with-staticfunctions to enable linking external function packages statically
330dnl must be called before MH_SHARED_LIBRARY
331AC_ARG_WITH(staticfunctions,
332   [  --with-staticfunctions  enable static linking of external function packages],
333   [with_staticfunctions=$withval],
334   [with_staticfunctions=no],
335)
336if test "$with_staticfunctions" = "yes" -o "$on_qnx4" = "yes"; then
337   build_static="yes"
338else
339   build_static="no"
340fi
341
342dnl --------------- allow --enable-orexx-binary-compatible to enable binary compatibility with ORexx
343AC_ARG_ENABLE(orexx-binary-compatible,
344   [  --enable-orexx-binary-compatible   enable binary compatibility with ORexx],
345   [with_orexx_bc=$enableval],
346   [with_orexx_bc=no],
347)
348if test "$with_orexx_bc" = yes; then
349   OREXX_BINARY_COMPATIBLE="1"
350   AC_DEFINE(OREXX_BINARY_COMPATIBLE)
351fi
352
353dnl --------------- allow --disable-posix-threads to disable multi-threading
354AC_ARG_ENABLE(posix-threads,
355        [  --disable-posix-threads disable POSIX-style multi-threading],
356        [enable_posix_threads=no],
357        [enable_posix_threads=yes],
358)
359dnl if we are building statically, force thread support off
360if test "$build_static" = "yes"; then
361   enable_posix_threads="no"
362fi
363
364dnl --------------- allow --disable-gci to disable General Call Interface
365AC_ARG_ENABLE(gci,
366   [  --disable-gci           disable General Call Interface],
367   [with_gci=no],
368   [with_gci=$gci_available],
369)
370if test "$with_gci" = yes; then
371   GCI_SHO="gci_call.so.o gci_convert.so.o gci_execute.so.o gci_helper.so.o gci_prepare.so.o gci_reginabridge.so.o gci_rxfuncdefine.so.o gci_tree.so.o"
372   HAVE_GCI="-DHAVE_GCI -I\$(gcidir)"
373else
374   GCI_SHO=""
375   HAVE_GCI=""
376fi
377AC_SUBST(GCI_SHO)
378AC_SUBST(HAVE_GCI)
379
380if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
381   MH_CHECK_GCC_VERSION_SCRIPT
382fi
383
384dnl enable_posix_threads="yes"
385MH_CHECK_POSIX_THREADS
386if test "$mh_has_pthreads" = yes; then
387   AC_SEARCH_LIBS(pthread_exit,[pthread pthreads c_r],REGINA_PTHREAD_LIB="$ac_cv_search_pthread_exit",REGINA_PTHREAD_LIB="")
388   if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
389     AC_SEARCH_LIBS(sem_init,[pthread pthreads c_r],REGINA_PTHREAD_LIB="$ac_cv_search_sem_init",REGINA_PTHREAD_LIB="")
390     if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
391       REGINA_PTHREAD_LIB=""
392     fi
393   fi
394   save_cflags="$CFLAGS"
395   CFLAGS="$CFLAGS $THREADING_COMPILE"
396#
397# Where we know the format of getgrgid_r() function
398# only test for that case
399#
400   if test "$ac_cv_func_getgrgid_r" = yes; then
401      MH_GETGRGID_R_INT_RETURN_5_PARAMS
402      if test "$mh_cv_getgrgid_r_int5" = "no"; then
403         MH_GETGRGID_R_INT_RETURN_4_PARAMS
404         if test "$mh_cv_getgrgid_r_int4" = "no"; then
405            MH_GETGRGID_R_STRUCT_RETURN
406            if test "$mh_cv_getgrgid_r_int4" = "no"; then
407               MH_GETGRGID_R_STRUCT_RETURN
408            fi
409         fi
410      fi
411   fi
412   if test "$ac_cv_func_getpwuid_r" = yes; then
413      MH_GETPWUID_R_INT_RETURN
414      if test "$mh_cv_getpwuid_r_int" = "no"; then
415         MH_GETPWUID_R_STRUCT_RETURN
416      fi
417   fi
418   if test "$ac_cv_func_gethostbyname_r" = yes; then
419      MH_GETHOSTBYNAME_R_INT_RETURN_6_PARAMS
420      if test "$mh_cv_gethostbyname_r_int6" = "no"; then
421         MH_GETHOSTBYNAME_R_STRUCT_RETURN_5_PARAMS
422      fi
423   fi
424
425   CFLAGS="$save_cflags"
426   REGINAMULTITHREAD="yes"
427else
428   REGINAMULTITHREAD="no"
429fi
430AC_SUBST(REGINAMULTITHREAD)
431if test "$build_static" = "yes"; then
432   STATICLD_SHO="staticld.so.o rxpack.so.o"
433   if test "$on_qnx4" = "yes"; then
434      with_regutil="yes"
435      MH_STATIC_LOADING(regutil)
436   else
437      MH_STATIC_LOADING
438   fi
439else
440   STATICLD_SHO=""
441dnl --------------- Check how to make shared libraries -------------------
442dnl MH_SHARED_LIBRARY must be called after determining if POSIX threads is specified
443   MH_SHARED_LIBRARY
444
445dnl --------------- Check if underscore is needed in loadable modules ----
446dnl MH_CHECK_LEADING_USCORE must be called after processing --with-dlfcn[inc,lib]dir switches
447   MH_CHECK_LEADING_USCORE
448fi
449AC_SUBST(STATICLD_SHO)
450MH_SET_SHLPST
451
452dnl
453dnl Check for large file support
454dnl
455MH_LARGE_FILE_SUPPORT
456dnl libraries for libregina.so.*
457#if test "$with_staticfunctions" = "yes"; then
458#   DYNAMIC_LIBRARY_LIBS=""
459#else
460#   DYNAMIC_LIBRARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
461#   DYNAMIC_REGUTIL_TERM_LIB="$REGUTIL_TERM_LIB"
462#   AC_SUBST(DYNAMIC_REGUTIL_TERM_LIB)
463#fi
464#AC_SUBST(DYNAMIC_LIBRARY_LIBS)
465dnl libraries for regina, execiser
466#DYNAMIC_BINARY_LIBS="-L. -lregina"
467#AC_SUBST(DYNAMIC_BINARY_LIBS)
468
469
470dnl libraries for binaries associated with external queues; rxqueue, rxstack
471STACK_BINARY_LIBS="$REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
472AC_SUBST(STACK_BINARY_LIBS)
473dnl libraries for rexx
474REXX_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB $REGINA_PTHREAD_LIB"
475AC_SUBST(REXX_BINARY_LIBS)
476#STATIC_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGINA_PTHREAD_LIB"
477#AC_SUBST(STATIC_BINARY_LIBS)
478if test "$build_static" = "yes"; then
479   dnl libraries for adding to regina-config --libs
480   REGINA_CONFIG_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB"
481   dnl libraries for libregina.lib
482   LIBREGINA_BINARY_LIBS=""
483   dnl libraries for regina
484   REGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB"
485   dnl libraries for threader
486   THREADER_BINARY_LIBS="-L. -lrexx $REGINA_PTHREAD_LIB"
487   dnl libraries for execiser
488   EXECISER_BINARY_LIBS="-L. -lrexx $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
489else
490   dnl libraries for adding to regina-config --libs
491   REGINA_CONFIG_LIBS=""
492   dnl libraries for libregina.so
493   LIBREGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
494   dnl libraries for regina
495   REGINA_BINARY_LIBS="-L. -lregina"
496   dnl libraries for threader
497   THREADER_BINARY_LIBS="-L. -lregina $REGINA_PTHREAD_LIB"
498   dnl libraries for execiser
499   EXECISER_BINARY_LIBS="-L. -lregina"
500fi
501AC_SUBST(LIBREGINA_BINARY_LIBS)
502AC_SUBST(REGINA_BINARY_LIBS)
503AC_SUBST(THREADER_BINARY_LIBS)
504AC_SUBST(EXECISER_BINARY_LIBS)
505AC_SUBST(REGINA_CONFIG_LIBS)
506
507dnl --------------- allow --enable-tracemem to enable internal memory tracing
508AC_ARG_ENABLE(tracemem,
509   [  --enable-tracemem       enable memory tracing in debug mode],
510   [with_tracemem=$enableval],
511   [with_tracemem=no],
512)
513if test "$with_tracemem" = yes; then
514   TRACEMEM="-DTRACEMEM"
515else
516   TRACEMEM=""
517fi
518AC_SUBST(TRACEMEM)
519
520dnl --------------- allow --disable-flists to disable memory functions
521AC_ARG_ENABLE(flists,
522   [  --disable-flists        disable memory management functions],
523   [with_flists=$enableval],
524   [with_flists=yes],
525)
526if test "$with_flists" = no; then
527   FLISTS="-DNOFLISTS"
528else
529   FLISTS=""
530fi
531AC_SUBST(FLISTS)
532
533dnl --------------- allow --with-socket to specify socket for rxstack
534AC_ARG_WITH(socket,
535   [  --with-socket=9999      socket to use for external queues (default 5757)],
536   [with_socket=$withval],
537   [with_socket=no],
538)
539if test "$with_socket" = no; then
540   REXXSOCKET=""
541else
542   REXXSOCKET="-DRXSOCKET=$with_socket"
543fi
544AC_SUBST(REXXSOCKET)
545
546dnl --------------- allow --with-addon-dir to specify location of external function packages
547AC_ARG_WITH(addon-dir,
548   [  --with-addon-dir=dir    location of external function packages (default blank)],
549   [addonsdir=$withval],
550   [addonsdir=$libdir/regina-rexx/addons],
551)
552AC_DEFINE_DIR(HAVE_REGINA_ADDON_DIR,"$addonsdir")
553AC_SUBST(addonsdir)
554
555dnl
556MH_CHECK_RPM
557MH_GET_DISTRO_NAME()
558MH_HAVE_SYSTEMD()
559
560dnl --------------- Force definition of pre-compiler macro UNIX ----------
561AC_DEFINE(UNIX)
562
563dnl --------------- Check what compiler switch sets unsigned char ----------
564MH_CHECK_UNSIGNED_CHAR_COMPILER_SWITCH()
565
566dnl AC_OUTPUT(Makefile)
567
568AC_OUTPUT($mymakefile regina-config rxstack.init.d libregina.pc)
569chmod 755 regina-config
570echo
571echo "Regina has now been configured with the following options:"
572echo
573if test "x$SHL_TARGETS" = "x"; then
574   echo "         Dynamic Loading Support: none"
575else
576   echo "         Dynamic Loading Support: supported. Extra components: $SHL_TARGETS"
577fi
578if test "$with_dlfcnincdir" != no ; then
579   echo "                dlfcn headers in: $with_dlfcnincdir"
580fi
581if test "$with_dlfcnlibdir" != no ; then
582   echo "              dlfcn libraries in: $with_dlfcnlibdir"
583fi
584
585myopts="${bitflag}BIT"
586if test "$with_debug" = yes ; then
587   myopts="$myopts DEBUG"
588fi
589if test "$with_purify" = yes ; then
590   myopts="$myopts PURIFY"
591fi
592if test "$with_efence" = yes; then
593   myopts="$myopts EFENCE"
594fi
595if test "$with_orexx_bc" = yes; then
596   myopts="$myopts OREXX_BINARY"
597fi
598if test "$with_gci" = yes; then
599   myopts="$myopts GCI"
600fi
601if test "$with_flists" = no; then
602   myopts="$myopts NO_FLISTS"
603fi
604if test "$with_socket" = no; then
605   myopts="$myopts"
606else
607   myopts="$myopts SOCKET=$with_socket"
608fi
609
610if test "$build_static" = "yes"; then
611   myfuncs=""
612   if test "$with_testpackage" = "yes"; then
613      myfuncs="$myfuncs test"
614   fi
615   if test "$with_regutil" = "yes"; then
616      myfuncs="$myfuncs regutil"
617   fi
618   if test "$with_rexxcurses" = "yes"; then
619      myfuncs="$myfuncs rexxcurses"
620   fi
621   if test "$with_rexxtk" = "yes"; then
622      myfuncs="$myfuncs rexxtk"
623   fi
624   if test "$with_rexxgd" = "yes"; then
625      myfuncs="$myfuncs rexxgd"
626   fi
627   if test "$with_rexxcurl" = "yes"; then
628      myfuncs="$myfuncs rexxcurl"
629   fi
630   if test "$with_rexxsql" = "yes"; then
631      myfuncs="$myfuncs rexxsql"
632   fi
633   if test "$with_rexxeec" = "yes"; then
634      myfuncs="$myfuncs rexxeec"
635   fi
636   if test "$with_rexxisam" = "yes"; then
637      myfuncs="$myfuncs rexxisam"
638   fi
639   if test "$with_rxsock" = "yes"; then
640      myfuncs="$myfuncs rxsock"
641   fi
642   if test "$with_rexxdw" = "yes"; then
643      myfuncs="$myfuncs rexxdw"
644   fi
645   if test "$with_rexxcsv" = "yes"; then
646      myfuncs="$myfuncs rexxcsv"
647   fi
648   if test "$with_rexxpdf" = "yes"; then
649      myfuncs="$myfuncs rexxpdf"
650   fi
651   echo "          Static Loaded Packages: $myfuncs"
652fi
653
654if test "$on_beos" = yes; then
655   bindir="/boot/home/config/bin"
656   libdir="/boot/home/config/lib"
657fi
658
659echo "                   Build options: $myopts"
660echo "   binaries will be installed in: $bindir"
661if test "x$binarybitprefix" = "x32"; then
662   echo "   binaries will have '32' appended to them. eg rexx32, regina32"
663fi
664echo "  libraries will be installed in: $libdir"
665echo "     addons will be installed in: $addonsdir"
666echo "                        {prefix}: $prefix"
667echo "                   {exec_prefix}: $exec_prefix"
668echo "                      RPM topdir: $RPMTOPDIR"
669echo
670echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'"
671echo "To install Regina in the above directories, type 'make install'"
672echo
673