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