Cleaned configure script

This commit is contained in:
Anthony Scemama 2010-10-08 12:36:02 +02:00
parent e9733253c3
commit 21bebc57b4
4 changed files with 2127 additions and 2631 deletions

Binary file not shown.

View File

@ -1,11 +1,12 @@
include version
include make.config
all: bin/eplf
EZFIO/config/eplf.config: EZFIO.tar.gz
tar -zxf EZFIO.tar.gz
cd EZFIO ; ./configure
cd EZFIO ; IRPF90="`echo $(IRPF90) | cut -f 1`" ./configure
if [ -e $@ ] ; then rm $@ ; fi
ln -s $$PWD/eplf.config $@
touch EZFIO/config/eplf.config

4730
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -50,18 +50,18 @@ AC_PROG_RANLIB
AC_PROG_CC
# Check for wget
AC_CHECK_PROGS([WGET],[wget],[])
# Check for curl
AC_CHECK_PROGS([CURL],[curl],[])
######################################################
# Define download function
AC_DEFUN([AC_DOWNLOAD],[{
# AC_DOWNLOAD ( VARIABLE, name, url )
WHERE=
if [[ ! -z $WGET ]] ; then
if [[ ! -z $CURL ]] ; then
echo ""
echo "**************************"
echo $2 is not installed
echo $1 is not installed
echo "**************************"
echo "Do you want to download it?"
select x in yes no
@ -77,11 +77,9 @@ AC_DEFUN([AC_DOWNLOAD],[{
cd $EPLF_PATH/Downloads
mkdir $EPLF_PATH/Downloads/tmp
cd $EPLF_PATH/Downloads/tmp
wget -nc "$3" && WHERE=`ls -tr | tail -1`
mv * $EPLF_PATH/Downloads
cd $EPLF_PATH/Downloads
rm -rf tmp
$CURL -L "$3" -o $2 && mv $2 .. && WHERE=$2
cd $EPLF_PATH
rm -rf $EPLF_PATH/Downloads/tmp
fi
if [[ ! -z $WHERE ]] ; then
echo $2 was downloaded to Downloads/$WHERE.
@ -108,17 +106,18 @@ fi
# IRPF90 compiler
AC_CHECK_PROGS([IRPF90],[irpf90],[])
if [[ -z $IRPF90 ]] ; then
AC_DOWNLOAD([IRPF90],[IRPF90],[http://sourceforge.net/projects/irpf90/files/irpf90-1.1.49-noarch.exe.gz/download])
gunzip irpf90-1.1.49-noarch.exe.gz
mv Downloads/irpf90.exe Downloads/irpf90
AC_MSG_ERROR([Move Downloads/irpf90 into your PATH (/usr/bin for example) and run this configure script again.])
AC_DOWNLOAD([IRPF90],[irpf90.gz],[http://sourceforge.net/projects/irpf90/files/irpf90-1.1.57-noarch.exe.gz/download])
gunzip Downloads/irpf90.gz
mv Downloads/irpf90 bin/
chmod +x bin/irpf90
IRPF90=$EPLF_PATH/bin/irpf90
fi
######################################################
# EZFIO
EZFIO=`ls EZFIO*.tar.gz | tail -1`
if [[ -z $EZFIO ]] ; then
AC_DOWNLOAD([EZFIO],[EZFIO],[http://sourceforge.net/projects/ezfio/files/latest])
AC_DOWNLOAD([EZFIO],[EZFIO.tar.gz],[http://sourceforge.net/projects/ezfio/files/latest])
if [[ -z $EZFIO ]] ; then
AC_MSG_ERROR([Download EZFIO.tar.gz into $PWD and run this configure script again.])
fi