comparison configure.in @ 3160:4696773a14b1

[project @ 1998-03-02 06:18:12 by jwe]
author jwe
date Mon, 02 Mar 1998 06:23:19 +0000
parents 974e596662f9
children 2837d1701fd9
comparison
equal deleted inserted replaced
3159:3ed3f7f1d549 3160:4696773a14b1
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 ### 02111-1307, USA. 22 ### 02111-1307, USA.
23 23
24 AC_REVISION($Revision: 1.299 $) 24 AC_REVISION($Revision: 1.300 $)
25 AC_PREREQ(2.9) 25 AC_PREREQ(2.9)
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h) 27 AC_CONFIG_HEADER(config.h)
28 28
29 AC_DEFINE(OCTAVE_SOURCE, 1) 29 AC_DEFINE(OCTAVE_SOURCE, 1)
254 ieee_fp_flag=-mieee-fp 254 ieee_fp_flag=-mieee-fp
255 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" 255 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp"
256 AC_MSG_RESULT([adding -mieee-fp to XTRA_CXXFLAGS])]) 256 AC_MSG_RESULT([adding -mieee-fp to XTRA_CXXFLAGS])])
257 ;; 257 ;;
258 alpha*-*-*) 258 alpha*-*-*)
259 OCTAVE_CC_FLAG(-mieee, [ 259 OCTAVE_CC_FLAG(-mieee-with-inexact, [
260 ieee_fp_flag=-mieee 260 ieee_fp_flag=-mieee-with-inexact
261 XTRA_CFLAGS="$XTRA_CFLAGS -mieee" 261 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-with-inexact"
262 AC_MSG_RESULT([adding -mieee to XTRA_CFLAGS])]) 262 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CFLAGS])])
263 263
264 OCTAVE_CXX_FLAG(-mieee, [ 264 OCTAVE_CXX_FLAG(-mieee-with-inexact, [
265 ieee_fp_flag=-mieee 265 ieee_fp_flag=-mieee-with-inexact
266 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" 266 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-with-inexact"
267 AC_MSG_RESULT([adding -mieee to XTRA_CXXFLAGS])]) 267 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CXXFLAGS])])
268 ;; 268 ;;
269 esac 269 esac
270 270
271 ### Octave doesn't use run-time type identification or exceptions yet, 271 ### Octave doesn't use run-time type identification or exceptions yet,
272 ### so disable them for somewhat faster and smaller code. 272 ### so disable them for somewhat faster and smaller code.
371 if test -z "$FFLAGS"; then 371 if test -z "$FFLAGS"; then
372 FFLAGS="-O" 372 FFLAGS="-O"
373 fi 373 fi
374 case "$canonical_host_type" in 374 case "$canonical_host_type" in
375 alpha*-*-*) 375 alpha*-*-*)
376 if test "$f77_is_g77" = yes || test -z "$ieee_fp_flag" ; then 376 if test "$octave_cv_f77_is_g77" = yes \
377 || test -z "$ieee_fp_flag" ; then
377 true 378 true
378 else 379 else
379 FFLAGS="-fpe1 $FFLAGS" 380 FFLAGS="-fpe1 $FFLAGS"
380 fi 381 fi
381 ;; 382 ;;
564 i[3456789]86-*-linux*) 565 i[3456789]86-*-linux*)
565 changequote([,])dnl 566 changequote([,])dnl
566 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' 567 SONAME_FLAGS='-Xlinker -soname -Xlinker $@'
567 RLD_FLAG='-Xlinker -rpath -Xlinker $(libdir)' 568 RLD_FLAG='-Xlinker -rpath -Xlinker $(libdir)'
568 ;; 569 ;;
570 changequote(,)dnl
571 i[3456]86-*-sco3.2v5*)
572 changequote([,])dnl
573 SH_LDFLAGS=-G
574 ;;
569 rs6000-ibm-aix* | powerpc-ibm-aix*) 575 rs6000-ibm-aix* | powerpc-ibm-aix*)
570 CPICFLAG= 576 CPICFLAG=
571 CXXPICFLAG= 577 CXXPICFLAG=
572 FPICFLAG= 578 FPICFLAG=
573 DLFCN_DIR=dlfcn 579 DLFCN_DIR=dlfcn
574 ;; 580 ;;
575 hppa*-hp-hpux*) 581 hppa*-hp-hpux*)
576 if test "$f77_is_g77" = yes; then 582 if test "$octave_cv_f77_is_g77" = yes; then
577 FPICFLAG=-fPIC 583 FPICFLAG=-fPIC
578 else 584 else
579 FPICFLAG=+Z 585 FPICFLAG=+Z
580 fi 586 fi
581 SHLEXT=sl 587 SHLEXT=sl
587 CXXPICFLAG= 593 CXXPICFLAG=
588 FPICFLAG= 594 FPICFLAG=
589 RLD_FLAG='-L$(libdir)' 595 RLD_FLAG='-L$(libdir)'
590 ;; 596 ;;
591 sparc-sun-sunos4*) 597 sparc-sun-sunos4*)
592 if test "$f77_is_g77" = yes; then 598 if test "$octave_cv_f77_is_g77" = yes; then
593 FPICFLAG=-fPIC 599 FPICFLAG=-fPIC
594 else 600 else
595 FPICFLAG=-PIC 601 FPICFLAG=-PIC
596 fi 602 fi
597 SH_LD=ld 603 SH_LD=ld
598 SH_LDFLAGS="-assert nodefinitions" 604 SH_LDFLAGS="-assert nodefinitions"
599 RLD_FLAG='-L$(libdir)' 605 RLD_FLAG='-L$(libdir)'
600 ;; 606 ;;
601 sparc-sun-solaris2*) 607 sparc-sun-solaris2*)
602 if test "$f77_is_g77" = yes; then 608 if test "$octave_cv_f77_is_g77" = yes; then
603 FPICFLAG=-fPIC 609 FPICFLAG=-fPIC
604 else 610 else
605 FPICFLAG=-PIC 611 FPICFLAG=-PIC
606 fi 612 fi
607 RLD_FLAG='-Xlinker -R -Xlinker $(libdir)' 613 RLD_FLAG='-Xlinker -R -Xlinker $(libdir)'
702 fi 708 fi
703 709
704 GLOB_DIR=glob 710 GLOB_DIR=glob
705 LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)' 711 LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)'
706 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' 712 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob'
707 if test "$ac_cv_header_fnmatch.h" = yes \ 713 if test "$ac_cv_header_fnmatch_h" = yes \
708 && test "$ac_cv_header_glob.h" = yes; then 714 && test "$ac_cv_header_glob_h" = yes; then
709 GLOB_DIR= 715 GLOB_DIR=
710 AC_CHECK_LIB(glob, glob) 716 AC_CHECK_LIB(glob, glob)
711 AC_CHECK_FUNCS(fnmatch glob) 717 AC_CHECK_FUNCS(fnmatch glob)
712 if test "$ac_cv_func_fnmatch" = yes \ 718 if test "$ac_cv_func_fnmatch" = yes \
713 && test "$ac_cv_func_glob" = yes; then 719 && test "$ac_cv_func_glob" = yes; then
738 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then 744 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
739 case "$canonical_host_type" in 745 case "$canonical_host_type" in
740 rs6000-ibm-aix* | powerpc-ibm-aix*) 746 rs6000-ibm-aix* | powerpc-ibm-aix*)
741 LIBDLFCN="-ldlfcn -ll -lld" 747 LIBDLFCN="-ldlfcn -ll -lld"
742 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn' 748 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn'
749 WITH_DL=true
750 ;;
751 changequote(,)dnl
752 i[3456]86-*-sco3.2v5*)
753 changequote([,])dnl
743 WITH_DL=true 754 WITH_DL=true
744 ;; 755 ;;
745 *) 756 *)
746 AC_CHECK_LIB(dl, dlopen) 757 AC_CHECK_LIB(dl, dlopen)
747 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) 758 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)
1111 1122
1112 AC_CONFIG_SUBDIRS($GLOB_DIR kpathsea scripts $PLPLOT_DIR $READLINE_DIR) 1123 AC_CONFIG_SUBDIRS($GLOB_DIR kpathsea scripts $PLPLOT_DIR $READLINE_DIR)
1113 1124
1114 ### Do the substitutions in all the Makefiles. 1125 ### Do the substitutions in all the Makefiles.
1115 1126
1116 AC_OUTPUT(Makefile octMakefile Makeconf test/Makefile dlfcn/Makefile 1127 AC_OUTPUT(Makefile octMakefile Makeconf install-octave
1128 test/Makefile dlfcn/Makefile
1117 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile 1129 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile
1118 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile 1130 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile
1119 examples/Makefile liboctave/Makefile src/Makefile 1131 examples/Makefile liboctave/Makefile src/Makefile
1120 libcruft/Makefile libcruft/Makerules 1132 libcruft/Makefile libcruft/Makerules
1121 libcruft/blas/Makefile libcruft/balgen/Makefile 1133 libcruft/blas/Makefile libcruft/balgen/Makefile