Changeset 5617
- Timestamp:
- 10/29/09 14:40:01 (4 weeks ago)
- Files:
-
- 1 modified
-
mpich2/trunk/maint/updatefiles (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/maint/updatefiles
r5611 r5617 39 39 MAKE=${MAKE-make} 40 40 41 ltdirs="src/pm/hydra/tools/bind/hwloc/hwloc" 41 42 amdirs="src/openpa src/pm/hydra src/mpl" 42 43 … … 46 47 stepsCleared=no 47 48 48 # Options for some steps49 autoconfdir=""50 automakedir=""51 autotoolsdir=""52 49 # Extract defaults from the environment 53 if [ "x$MPICH2_AUTOCONF_DIR" != "x" ] ; then 54 autoconfdir=$MPICH2_AUTOCONF_DIR 55 fi 56 if [ "x$MPICH2_AUTOMAKE_DIR" != "x" ] ; then 57 automakedir=$MPICH2_AUTOMAKE_DIR 58 fi 59 if [ "x$MPICH2_AUTOTOOLS_DIR" != "x" ] ; then 60 autotoolsdir=$MPICH2_AUTOTOOLS_DIR 61 fi 62 # 50 autoconfdir=$MPICH2_AUTOCONF_DIR 51 automakedir=$MPICH2_AUTOMAKE_DIR 52 libtooldir=$MPICH2_LIBTOOL_DIR 53 autotoolsdir=$MPICH2_AUTOTOOLS_DIR 54 63 55 # Extract the arguments intended for updatefiles. Any others are 64 56 # given to simplemake. … … 131 123 automakedir=`echo "A$arg" | sed -e 's/.*=//'` 132 124 ;; 125 -with-libtool=*|--with-libtool=*) 126 libtooldir=`echo "A$arg" | sed -e 's/.*=//'` 127 ;; 133 128 -with-autotools=*|--with-autotools=*) 134 129 autotoolsdir=`echo "A$arg" | sed -e 's/.*=//'` … … 144 139 cat <<EOF 145 140 updatefiles [ --with-autoconf=dir ] [ --with-automake=dir ] \\ 146 [ --with- autotools=dir ] [ --do=stepname ]\\147 [ args for simplemake ]141 [ --with-libtool=dir ] [ --with-autotools=dir ] \\ 142 [ --do=stepname ] [ args for simplemake ] 148 143 Update the files in the MPICH2 build tree. This file builds the 149 144 configure files, creates the Makefile.in files (using the simplemake 150 145 program), extracts the error messages. 151 146 152 You can use --with-autoconf=dir to specify a directory that contains 153 an alternate autoconf and autoheader. Similarly --with-automake can 154 be used to specify the location of automake and aclocal. If 155 autoconf and automake are installed in the same location, they can 156 be specified by the --with-autotools option. 147 You can use --with-autoconf=dir to specify a directory that 148 contains an alternate autoconf and autoheader. Similarly 149 --with-automake can be used to specify the location of automake 150 and aclocal and --with-libtool to specify the location of 151 libtoolize. If all the autotools are installed in the same 152 location, they can be specified by the --with-autotools option. 157 153 158 154 Use --do=stepname to update only a single step. For example, … … 173 169 174 170 if [ -n "$autotoolsdir" ] ; then 175 if [ -n "$autoconfdir" -o -n "$automakedir" ] ; then 176 # Don't permit --with-autotools together with either --with-autoconf or 177 # --with-automake because which argument takes precedence is not obvious 178 # without immediate explanation. --with-autotools is really only 179 # present to make life a little easier for those who preferred the old 180 # behavior where --with-autoconf was used to specify the location of 181 # both autoconf and automake. 171 if [ -n "$autoconfdir" -o -n "$automakedir" -o -n "$libtooldir" ] ; then 172 # Don't permit --with-autotools together with --with-autoconf, 173 # --with-automake or --with-libtool because which argument 174 # takes precedence is not obvious without immediate 175 # explanation. --with-autotools is really only present to 176 # make life a little easier for those who preferred the old 177 # behavior where --with-autoconf was used to specify the 178 # location of both autoconf and automake. 182 179 cat <<EOT 183 Error: --with-autotools was specified together with either184 --with-auto conf or --with-automake. --with-autotools is incompatible185 with the other twooptions. Please specify only one set or the other.180 Error: --with-autotools was specified together with --with-autoconf, 181 --with-automake or --with-libtool. --with-autotools is incompatible 182 with the other options. Please specify only one set or the other. 186 183 EOT 187 184 exit 1 … … 189 186 autoconfdir=$autotoolsdir 190 187 automakedir=$autotoolsdir 188 libtooldir=$autotoolsdir 191 189 fi 192 190 fi … … 269 267 automake=${AUTOMAKE:-automake} 270 268 aclocal=${ACLOCAL:-aclocal} 269 fi 270 if [ -n "$libtooldir" ] ; then 271 if [ -x "$libtooldir/libtoolize" ] ; then 272 libtoolize=$libtooldir/libtoolize 273 LIBTOOLIZE=$libtoolize 274 export LIBTOOLIZE 275 else 276 echo "could not find executable libtoolize in $libtooldir" 277 exit 1 278 fi 279 else 280 libtoolize=${LIBTOOLIZE:-libtoolize} 271 281 fi 272 282 … … 875 885 # must come after the above autoreconf-like logic because the above 876 886 # logic will delete the results of this actual autoreconf 887 888 for ltdir in $ltdirs ; do 889 if [ -d "$ltdir" -o -L "$ltdir" ] ; then 890 echo "running $libtoolize in $ltdir" 891 (cd $ltdir && $libtoolize) || exit 1 892 fi 893 done 894 877 895 for amdir in $amdirs ; do 878 896 if [ -d "$amdir" -o -L "$amdir" ] ; then
