1 # Process this file with autoconf to create configure. -*- autoconf -*-
3 # Copyright (C) 2001, 2003, 2005, 2007 Free Software Foundation, Inc.
5 # This file is part of GNU Libtool.
7 # GNU Libtool is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation; either version 2 of
10 # the License, or (at your option) any later version.
12 # GNU Libtool is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Libtool; see the file COPYING. If not, a copy
19 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
20 # or obtained by writing to the Free Software Foundation, Inc.,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 ## ------------------------ ##
27 ## Autoconf initialisation. ##
28 ## ------------------------ ##
29 AC_INIT([fcdemo], [1.0], [bug-libtool@gnu.org])
30 AC_CONFIG_HEADERS([config.h:config-h.in])
31 AC_CONFIG_SRCDIR([foof.f90])
32 AC_CONFIG_AUX_DIR([../../libltdl/config])
34 AC_ARG_WITH([dist], AS_HELP_STRING([--with-dist],
35 [ignore errors not affecting `make dist']))
37 ## ------------------------ ##
38 ## Automake Initialisation. ##
39 ## ------------------------ ##
43 ## ------------------ ##
44 ## C compiler checks. ##
45 ## ------------------ ##
48 ## ------------------------ ##
49 ## Fortran compiler checks. ##
50 ## ------------------------ ##
51 AC_LANG_PUSH([Fortran])
53 dnl When configuring for `make dist' purposes, skip checks that may yield fatal
54 dnl errors when there is no working F90 compiler.
55 if test -z "$with_dist"; then
56 dnl Check the flags needed to link fc programs with ld (i.e. cc)
58 dnl Check for underscoring of external names
60 dnl We need to use .f90 and not .f to enable Automake FC support
61 dnl Some Intel ifc/ifort do not understand .f95. :-/
63 dnl Yes, we want free form Fortran!
68 ## ----------------------- ##
69 ## Libtool initialisation. ##
70 ## ----------------------- ##
72 AC_SUBST([LIBTOOL_DEPS])
77 AC_CONFIG_FILES([Makefile])