1## Process this file with autoconf to create configure. -*- autoconf -*- 2# Copyright 2001 Free Software Foundation, Inc. 3# 4# This program is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 2 of the License, or 7# (at your option) any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program; if not, write to the Free Software 16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17# 02110-1301 USA 18 19AC_PREREQ(2.50) 20 21## ------------------------ ## 22## Autoconf initialisation. ## 23## ------------------------ ## 24AC_INIT([f77demo], [0.1], [bug-libtool@gnu.org]) 25AC_CONFIG_SRCDIR([foof.f])dnl 26 27## ------------------------ ## 28## Automake Initialisation. ## 29## ------------------------ ## 30AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION) 31AM_CONFIG_HEADER([config.h:config-h.in]) 32 33 34## ------------------ ## 35## C compiler checks. ## 36## ------------------ ## 37AC_PROG_CC 38 39## ------------------------ ## 40## Fortran compiler checks. ## 41## ------------------------ ## 42AC_PROG_F77 43dnl Check the flags needed to link f77 programs with ld (i.e. cc) 44AC_F77_LIBRARY_LDFLAGS 45dnl Check for underscoring of external names 46AC_F77_WRAPPERS 47 48# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and 49# AC_EXEEXT macros only works for C compilers! 50# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting 51# the test language to C. We do it before any libtool setup macros are 52# called so that the proper values are cached beforehand. We also do 53# it before any linker flags (LDFLAGS) are set so that fortran specific 54# ones don't break the tests. 55AC_LANG_PUSH([C]) 56AC_OBJEXT 57AC_EXEEXT 58AC_LANG_POP 59 60## ----------------------- ## 61## Libtool initialisation. ## 62## ----------------------- ## 63AM_PROG_LIBTOOL 64AC_SUBST([LIBTOOL_DEPS]) 65 66## -------- ## 67## Outputs. ## 68## -------- ## 69AC_CONFIG_FILES([Makefile]) 70AC_OUTPUT 71