- Export a few more missing configure variables.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@1216 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Diane Bruce 2009-05-13 16:41:38 +00:00
parent 53ca6d5ad0
commit db8c637632
2 changed files with 24 additions and 33 deletions

View File

@ -4,7 +4,7 @@ MKDIR ?= mkdir
INSTALL= install INSTALL= install
FFLAGS = @FFLAGS@ FFLAGS = @FFLAGS@
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ LIBS = @LIBS@ -lfftw3f
CPPFLAGS = @CPPFLAGS@ CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
PREFIX = @PREFIX@ PREFIX = @PREFIX@

View File

@ -1,4 +1,4 @@
dnl $Id$ dnl $Id$
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl AC_PREREQ(2.61) dnl AC_PREREQ(2.61)
@ -179,24 +179,16 @@ if test "$assert" = no; then
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
fi fi
if test "$prefix" = "NONE"; then if test "$prefix" = "NONE"; then
AC_DEFINE_UNQUOTED(PREFIX, "$ac_default_prefix", [Prefix where wsjt is installed.]) prefix=${ac_default_prefix}
else else
dnl Don't get bitten by Cygwin's stupidity if the user specified dnl Don't get bitten by Cygwin's stupidity if the user specified
dnl a custom prefix with a trailing slash dnl a custom prefix with a trailing slash
prefix=`echo $prefix | sed 's/\/$//'` prefix=`echo ${ac_default_prefix} | sed 's/\/$//'`
AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Prefix where wsjt is installed.])
fi fi
AC_CONFIG_FILES( \
Makefile
)
dnl pick gfortran or g95 dnl pick gfortran or g95
dnl ==================== dnl ====================
@ -211,31 +203,28 @@ AC_HELP_STRING([--enable-gfortran],[Use gfortran compiler if available.]),
dnl now set conf.h,, CPPFLAGS and CFLAGS flags as needed dnl now set conf.h,, CPPFLAGS and CFLAGS flags as needed
dnl ==================================================== dnl ====================================================
if test ! -z $GFORTRAN ; then if test "$g95" = yes; then
echo "*** gfortran compiler found at ${GFORTRAN}" FC_LIB_PATH=${G95_LIB_PATH}
if test "$gfortran" = yes; then FC=${G95}
FC_LIB_PATH=`${GFORTRAN} -print-file-name=` gfortran=no
FC=`basename ${GFORTRAN}` elif test "$gfortran" = yes; then
g95=no FC_LIB_PATH=${GFORTRAN_LIB_PATH}
FFLAGS="${FFLAGS_GFORTRAN}" FC=${GFORTRAN}
FCV="gnu95" g95=no
fi
else
echo "*** No gfortran compiler found"
fi fi
if test ! -z $G95 ; then if test -z $FC ; then
echo "*** g95 compiler found at ${G95}" if test ! -z $GFORTRAN ; then
if test "$g95" = yes; then FC_LIB_PATH=${GFORTRAN_LIB_PATH}
FC_LIB_PATH=`${G95} -print-file-name=` FC=${GFORTRAN}
FC=`basename ${G95}` gfortran=yes
gfortran=no elif test ! -z $G95 ; then
FFLAGS="${FFLAGS_G95}" FC_LIB_PATH=${G95_LIB_PATH}
FCV=${FCV_G95} FC=${G95}
g95=yes
fi fi
else
echo "*** No g95 compiler found"
fi fi
dnl dnl
dnl if FC is not set by now, pick a compiler for user dnl if FC is not set by now, pick a compiler for user
dnl dnl
@ -268,6 +257,8 @@ AC_DEFINE_UNQUOTED(FC_LIB_PATH, "${FC_LIB_PATH}", [Path to fortran libs.])
AC_SUBST(FC_LIB_PATH, "${FC_LIB_PATH}") AC_SUBST(FC_LIB_PATH, "${FC_LIB_PATH}")
AC_DEFINE_UNQUOTED(FC, "${FC}", [Fortran compiler.]) AC_DEFINE_UNQUOTED(FC, "${FC}", [Fortran compiler.])
AC_SUBST(FC, "${FC}") AC_SUBST(FC, "${FC}")
AC_SUBST(FCV, "${FCV}")
AC_SUBST(PREFIX, "${prefix}")
dnl set defaults dnl set defaults
dnl ============ dnl ============