Commit 35bab01c authored by marsamos's avatar marsamos

add configure script that run the real configure in dir install. Paths

for dependencies coherent with new position in install dir.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5922 c92efa57-630b-4861-b058-cf58834340f0
parent b1f03b09
#! /bin/sh
#
# This script is a simple wrapper calling the autoconf configuration
# script (configure) in install/
# Dependencies may be also directly generated
#
# Courtesy of A. Ferretti and G. Bussi
#
#================================================================
#
MANUAL=" Usage
configure [-h, --help] [<conf_flags>]
-h, --help print this manual
<conf_flags> these flags will be passed to
the autoconf configure
After configuration, the make.sys file will created in the
QE home (current) directory
"
#
#================================================================
#
# run from directory where this script is
auxdir=`echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname
if [ "$auxdir" != "configure" ] ; then cd $auxdir ; fi
#
# detect the simplest cases
#
case $1 in
("-h" | "--help" ) echo "$MANUAL" ; exit 0 ;;
esac
#
# run the autoconf configure with the
# given cong_flags
#
test -e ./install/make.sys && rm ./install/make.sys
test -e ./install/configure.msg && rm ./install/configure.msg
CFLAGS=$*
./install/configure $CFLAGS
#
# copy make.sys in the home dir
# and final clean up
#
test -e ./install/make.sys && mv ./install/make.sys .
test -e config.log && mv config.log ./install/
test -e config.status && mv config.status ./install/
test -e configure.msg && mv configure.msg ./install/
#
exit 0
......@@ -15,22 +15,22 @@ pcl_dot="Modules $pcl_modules"
for dir in $pcl_dot
do
echo work.pc > $topdir/$dir/intel.pcl
echo work.pc > $topdir/../$dir/intel.pcl
done
for dir in $pcl_modules
do
echo ../Modules/work.pc >> $topdir/$dir/intel.pcl
echo ../Modules/work.pc >> $topdir/../$dir/intel.pcl
done
for dir in $pcl_pw
do
echo ../PW/work.pc >> $topdir/$dir/intel.pcl
echo ../PW/work.pc >> $topdir/../$dir/intel.pcl
done
for dir in $pcl_ph
do
echo ../PH/work.pc >> $topdir/$dir/intel.pcl
echo ../PH/work.pc >> $topdir/../$dir/intel.pcl
done
echo "done"
......@@ -47,9 +47,9 @@ do
esac
# generate dependencies file
if test -d $TOPDIR/$DIR
if test -d $TOPDIR/../$DIR
then
cd $TOPDIR/$DIR
cd $TOPDIR/../$DIR
$TOPDIR/moduledep.sh $DEPENDS > make.depend
$TOPDIR/includedep.sh $DEPENDS >> make.depend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment