# HG changeset patch # User jwe # Date 797650377 0 # Node ID 345c21405c5777cd19497ed82616f37321bf4a09 # Parent 8ed7f351d0defca61ba6e6b24487fd7652c59196 [project @ 1995-04-12 01:31:50 by jwe] diff -r 8ed7f351d0de -r 345c21405c57 aclocal.m4 --- a/aclocal.m4 Wed Apr 12 01:11:57 1995 +0000 +++ b/aclocal.m4 Wed Apr 12 01:32:57 1995 +0000 @@ -225,11 +225,34 @@ FLIBS="$octave_cv_flibs" AC_MSG_RESULT([$FLIBS])]) +dnl See if the Fortran compiler uses uppercase external names. +dnl +dnl OCTAVE_F77_UPPERCASE_NAMES() +AC_DEFUN(OCTAVE_F77_UPPERCASE_NAMES, +[AC_MSG_CHECKING([whether $F77 uses uppercase external names]) +AC_CACHE_VAL(octave_cv_f77_uppercase_names, +[octave_cv_f77_uppercase_names=no +cat > conftest.f <&AC_FD_CC 2>&AC_FD_CC; then + if test "`${NM-nm} conftest.o | grep XXYYZZ`" != ""; then + octave_cv_f77_uppercase_names=yes + fi +fi]) +AC_MSG_RESULT([$octave_cv_f77_uppercase_names]) +if test "$octave_cv_f77_uppercase_names" = yes; then + AC_DEFINE(F77_UPPERCASE_NAMES, 1) +fi]) + dnl See if the Fortran compiler appends underscores to external names. dnl dnl OCTAVE_F77_APPEND_UNDERSCORE() AC_DEFUN(OCTAVE_F77_APPEND_UNDERSCORE, [AC_MSG_CHECKING([whether $F77 appends underscores to external names]) +AC_REQUIRE([OCTAVE_F77_UPPERCASE_NAMES]) AC_CACHE_VAL(octave_cv_f77_append_underscore, [octave_cv_f77_append_underscore=no cat > conftest.f <&AC_FD_CC 2>&AC_FD_CC; then - if test "`${NM-nm} conftest.o | grep xxyyzz_`" != ""; then - octave_cv_f77_append_underscore=yes - elif test "`${NM-nm} conftest.o | grep XXYYZZ_`" != ""; then - octave_cv_f77_append_underscore=yes + if test "$octave_cv_f77_uppercase_names" = yes; then + if test "`${NM-nm} conftest.o | grep XXYYZZ_`" != ""; then + octave_cv_f77_append_underscore=yes + fi + else + if test "`${NM-nm} conftest.o | grep xxyyzz_`" != ""; then + octave_cv_f77_append_underscore=yes + fi fi fi]) AC_MSG_RESULT([$octave_cv_f77_append_underscore]) diff -r 8ed7f351d0de -r 345c21405c57 configure.in --- a/configure.in Wed Apr 12 01:11:57 1995 +0000 +++ b/configure.in Wed Apr 12 01:32:57 1995 +0000 @@ -20,7 +20,7 @@ ### along with Octave; see the file COPYING. If not, write to the Free ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -AC_REVISION($Revision: 1.114 $) +AC_REVISION($Revision: 1.115 $) AC_PREREQ(2.0) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -726,15 +726,6 @@ AC_MSG_RESULT([defining DEFAULT_PAGER to be $DEFAULT_PAGER]) fi -### Even though we include config.h in most files, some need to be -### compiled with the -D options on the compiler command line. Use -### UGLY_DEFS for that. - -AC_OUTPUT_MAKE_DEFS -UGLY_DEFS="$DEFS" -AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) -AC_SUBST(UGLY_DEFS) - ### Maybe add -Wall to compiler flags now that we're done feature ### testing. ###