dnl @@ dnl @file configure.in dnl @date Sun Jan 17 15:54:23 1999 dnl @author Tom Goodale dnl @desc dnl dnl @enddesc dnl @version $Id$ dnl @@ dnl Process this file with autoconf to produce a configure script. AC_REVISION($Id$) dnl It looks like older versions of Autoconf don't quite work properly under dnl cygwin. AC_PREREQ(2.13) dnl Starts here AC_INIT() AC_CONFIG_HEADER(cctk_Config.h) dnl Check the system type AC_CANONICAL_SYSTEM # See if there are any preferred compilers for this system CCTK_CONFIG_STAGE="preferred-compilers" if test -r $srcdir/known-architectures/$host_os ; then . $srcdir/known-architectures/$host_os else echo "Warning: " echo " Cactus has not been previously compiled on this architecture: " echo " ($host_os)" echo " The currently known architectures can be found in " echo " $srcdir/known-architectures" echo " The configuration will try to do its best to work things out." echo " If you create a known-architectures file for this architecture, " echo " please send it to cactusmaint@cactuscode.org and we'll include " echo " it in the next release." fi # Save these for future use. if test -n "$LIBS" ; then KNOWN_LIBS="$LIBS" unset LIBS fi if test -n "$LDFLAGS" ; then KNOWN_LDFLAGS="$LDFLAGS" unset LDFLAGS fi dnl Checks for programs. AC_PROG_MAKE_SET #if test -z "$CC" ; then AC_PROG_CC #fi #if test -z "$CXX" ; then AC_PROG_CXX #fi if test -z "$RANLIB" ; then AC_PROG_RANLIB fi dnl Look for a standalone CPP if test -z "$CPP" ; then AC_PATH_PROGS(CPP, cpp, echo, /lib:/usr/lib:/usr/local/lib:$PATH) fi if test -z "$PERL" ; then AC_CHECK_PROGS(PERL, perl) fi if test -z "$F90" ; then AC_CHECK_PROGS(F90, f90 pgf90 xlf90) fi if test -z "$F77" ; then AC_CHECK_PROGS(F77, f77 pgf77 g77 f90 pgf90 xlf90) fi if test -z "$AR" ; then AC_CHECK_PROGS(AR, ar) fi if test -z "$MKDIR" ; then AC_CHECK_PROGS(MKDIR, mkdir) fi if test -z "$SHELL" ; then AC_CHECK_PROGS(SHELL, sh bash) fi if test -z "$LD" ; then AC_SUBST(LD) LD=$CXX fi # Restore the values we saved earlier if test -n "$KNOWN_LIBS" ; then LIBS="$KNOWN_LIBS" unset KNOWN_LIBS fi if test -n "$KNOWN_LDFLAGS" ; then LDFLAGS="$KNOWN_LDFLAGS" unset KNOWN_LDFLAGS fi # Include some CCTK auxiliary functions . $srcdir/CCTK_Functions.sh ######################################################################### # If this is a known architecture, setup any specific flags. # This has to be done here as flags given to the compiler may # change the things detected later. # Create a file to put any #defines etc needed for this architecture # known architecture stuff should use cat >> etc to append to this file. cat > cctk_Archdefs.h < make.arch.defn <> cctk_Archdefs.h < cctk_Extradefs.h < make.extra.defn <> cctk_Extradefs.h <