Commit 2921aa87 authored by gsell's avatar gsell

adaptions for libtools on Mac, work around to use env.varibales removed

parent be103949
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
src \
test \
......
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
LIBTOOLIZE=`which libtoolize`
if [ "$LIBTOOLIZE" = "" ]; then
LIBTOOLIZE=`which glibtoolize`
fi
if [ "$LIBTOOLIZE" = "" ]; then
echo "libtoolize not found" 1>&2
exit 1
fi
echo "+ making misc files ..."
touch NEWS README AUTHORS ChangeLog
echo
echo
echo
echo "+ running aclocal ..."
aclocal $ACLOCAL_FLAGS || {
echo
......@@ -13,8 +20,6 @@ aclocal $ACLOCAL_FLAGS || {
exit 1
}
echo
echo
echo
echo "+ running autoheader ... "
autoheader || {
echo
......@@ -22,17 +27,13 @@ autoheader || {
exit 1
}
echo
echo
echo
echo "+ running libtoolize ... "
libtoolize --force || {
$LIBTOOLIZE --force || {
echo
echo "libtoolize failed"
exit 1
}
echo
echo
echo
echo "+ running autoconf ... "
autoconf || {
echo
......@@ -40,15 +41,9 @@ autoconf || {
exit 1
}
echo
echo
echo
echo "+ running automake ... "
automake -a -c --foreign || {
echo
echo "automake failed"
exit 1
}
echo
echo
echo
......@@ -13,6 +13,8 @@ AC_PREREQ(2.59)
# The AC_CONFIG_HEADERS macro selects this kind of output.
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
# AM_INIT_AUTOMAKE is required to use autoconf with automake
AM_INIT_AUTOMAKE
......@@ -59,18 +61,6 @@ AC_ARG_WITH(
[path to lustre user API [default=""]])],
[LUSTREPATH=$withval], [LUSTREPATH=""])
###############################################################################
################# A SIMPLE WORK AROUND TO USE ENV. VARS #######################
###############################################################################
SAVE_CC=$CC
SAVE_FC=$FC
SAVE_CFLAGS=$CFLAGS
SAVE_FFLAGS=$FFLAGS
SAVE_INCLUDES=$INCLUDES
SAVE_LDFLAGS=$LDFLAGS
SAVE_LIBS=$LIBS
###############################################################################
############### PATH SERACH FUNCTION - to be used later... ####################
###############################################################################
......@@ -368,40 +358,6 @@ fi
LIBS="$LIBS -lz -lm"
###############################################################################
################# A SIMPLE WORK AROUND TO USE ENV. VARS #######################
###############################################################################
#if there was an external input for the variable...
if test -n "$SAVE_CC"; then
CC="$SAVE_CC"
fi
if test -n "$SAVE_FC"; then
FC="$SAVE_FC"
fi
if test -n "$SAVE_CFLAGS"; then
CFLAGS="$SAVE_CFLAGS"
fi
if test -n "$SAVE_FFLAGS"; then
FFLAGS="$SAVE_FFLAGS"
fi
if test -n "$SAVE_INCLUDES"; then
INCLUDES="$SAVE_INCLUDES"
fi
if test -n "$SAVE_LDFLAGS"; then
LDFLAGS="$SAVE_LDFLAGS"
fi
if test -n "$SAVE_LIBS"; then
LIBS="$SAVE_LIBS"
fi
###############################################################################
############## EXPORTING VARIABLES & CREATING OUTPUT FILES ####################
###############################################################################
......
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