[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/bin/bash: --gnu: command not found
From: |
Dr. David Kirkby |
Subject: |
/bin/bash: --gnu: command not found |
Date: |
Tue, 08 Apr 2003 01:15:19 +0100 |
Can anyone throw any light on the situation below? I'm just about fed up
trying all manner of things to build a configure.ac that generates no
error messages from autoreconf, configure or make.
'autoreconf' runs without any errors and generates a configure script.
The configure script created by autoreconf seems okay and runs properly.
However, after running GNU make, I get the error message:
make[1]: Entering directory `/export/home/davek/atlc/src'
cd .. && \
--gnu src/Makefile
/bin/bash: --gnu: command not found
/bin/bash does exist by the way, but seems unwillig to accept the --gnu
option.
What is happening? I have GNU make 3.79.1, autoconf 2.57, automake 1.7
and m4 version 1.4.
I've put the top level Makefile. am and the configure.ac sepparated by 3
rows of
***'******************************'s.
All the m4 macros are in the top level directory, so I have
"ACLOCAL_AMFLAGS = -I ." in Makefile.am
Any ideas gratefully received. I'm getting rather fed up with it all. I
seem to be chasing my tail.
# This is Makefile.am, which is proceed by automake
AUTOMAKE_OPTIONS = gnits
ACLOCAL_AMFLAGS = -I .
SUBDIRS = . src man docs examples tools tests
EXTRA_DIST = \
README \
README.checks \
README.cvs \
README.help \
README.mpi \
README.solaris \
README.support \
README.threads \
README.windows \
BUGS \
stoptests \
acx_pthread.m4 \
gtk.m4 \
gsl.m4 \
TODO
CLEANFILES = examplestest-coupler2.bmp.txt
DISTCLEANFILES = examplestest-coupler2.bmp.txt
**********************************************
**********************************************
**********************************************
********************************************8*
% cat configure.ac
# Process this file with autoconf to produce a configure script.
# Order of itmes is suggested in the autoconf documentation to be that
# below, to be as below. Let's try to stick to it.
# checks for programs
# checks for libraries
# checks for header files
# checks for typedefs
# checks for structures
# checks for compiler characteristics
# checks for library functions
# checks for system services
# AC_OUTPUT([file...])
AC_INIT([atlc], [4.2.12], address@hidden)
AM_INIT_AUTOMAKE
AC_PREREQ([2.57])
ACLOCAL_AMFLAGS = -I .
# Checks for programs.
AC_PROG_CXX
AC_ISC_POSIX
# AC_OUTPUT_COMMANDS([exit])
# Checks for libraries.
AC_CHECK_LIB(m,main)
AC_CHECK_LIB(c,memalign, AC_DEFINE(HAVE_MEMALIGN))
# check for optimised math library on SPARC
# AC_CHECK_LIB(mopt,main)
# check for the optimised
# AC_CHECK_LIB(copt,main)
# Checks for header files.
# AC_STDC_HEADERS
# AC_HAVE_HEADERS(stdio.h math.h errno.h stdlib.h string.h)
AC_CHECK_HEADERS([stdio.h math.h malloc.h stdlib.h string.h strings.h])
# Checks for typedefs
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
# checks for structures (none need to be tested)
# checks for compiler characteristics
AC_C_BIGENDIAN
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(size_t)
# checks for library functions
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memset strchr strtol])
#AC_CHECK_FUNCS([memset pow sqrt strchr strtol])
# checks for system services
# Check if the user wants a GUI. If so makes sure GTK and wxWindows are
around.
# The macro is in the file gtk.m4, so it must be read it here.
# m4_sinclude(gtk.m4)
AC_ARG_WITH(gui, AC_HELP_STRING([--with-gui=[no]],[Add a GUI (needs GTK
>= 1.2.7 installed) but the GUI does not work!! ]))
if test "x$with_gui" = "xyes"; then
AC_PATH_GTK(1.2.7, GTK127=1)
if test "$GTK127" != 1; then
AC_MSG_ERROR([
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.7 or above.
])
fi
AC_CHECK_PROG(WXWINDOWS,wx-config, 1, 0)
if test "$WXWINDOWS" != 1; then
AC_MSG_ERROR([
wxWindows must be installed to use the GUI version of
atlc
])
fi
AC_SUBST(EXTRA_WXWINDOWS_LIBS,`wx-config --libs`)
AC_SUBST(EXTRA_WXWINDOWS_CFLAGS,`wx-config --cflags`)
AC_SUBST(GUI_DIRECTORY,gui)
fi
#AC_LANG_C
#m4_sinclude(gsl.m4)
AM_PATH_GSL([1.0])
LIBS="$GSL_LIBS $LIBS"
CFLAGS="$GSL_CFLAGS $CFLAGS"
#- some self-tests will fail if gsl library is not available.
#ail]
# AC_ARG_WITH(gsl=yes,[ --without-gsl disable use of gsl
library (by default it's enabled)])
# if test "x$with_gsl" = "xno"; then
# AC_MSG_WARN([Use of the gsl library has been disabled - some
self-tests will fail])
# else
# AC_CHECK_LIB(m,main)
# AC_CHECK_LIB(gslcblas,main)
# AC_CHECK_LIB(gsl,main,,AC_MSG_WARN([To get full functionality you
should link atlc with the GNU Scientific Library (gsl)
# available at http://sources.redhat.com/gsl. Some self-tests will fail
without gsl.]))
# fi
# Multi-Processor Support
# m4_sinclude(acx_pthread.m4)
AC_ARG_WITH(threads,
[ --with-threads support thread-based parallel computation -
this
needs a POSIX thread library (pthreads or
similar)
installed])
if test "x$with_threads" = "xyes"; then
AC_CHECK_LIB(thread, thr_setconcurrency,
[AC_DEFINE(HAVE_THR_SETCONCURRENCY)])
ACX_PTHREAD([AC_DEFINE(ENABLE_POSIX_THREADS)])
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
fi
# MPI and MPE Support
AC_ARG_WITH(mpi,
AC_HELP_STRING([--with-mpi=[mpi_install_prefix]],[support MPI-based
parallel computation (needs MPICH installed)]))
AC_ARG_WITH(mpe,
AC_HELP_STRING([--with-mpe=[mpi_install_prefix]],[implies --with-mpi and
additionally links in MPE logging support]))
if test "x$with_mpi" != "x" \
|| test "x$with_mpe" != "x"; then
if test "x$with_mp" = "xyes"; then
AC_MSG_ERROR([it does not make sense to use --with-mp with
--with-mpi or --with-mpe])
fi
AC_HAVE_HEADERS(mpi.h)
AC_DEFINE(ENABLE_MPI)
AC_CHECK_LIB(socket, getsockopt)
AC_CHECK_LIB(nsl, xdr_void)
AC_CHECK_LIB(rt, sched_yield)
if test "x$with_mpe" != "x"; then
if test "x$with_mpe" = "xyes"; then
path_to_mpe=/usr/local
else
path_to_mpe=$with_mpe
fi
CFLAGS="$CFLAGS -I$path_to_mpe/include -L$path_to_mpe/lib"
AC_CHECK_LIB(pmpich, MPI_Init , , [AC_MSG_ERROR([Could not link
test program with libpmpich.a])])
AC_CHECK_LIB(mpe, MPE_Init_log , , [AC_MSG_ERROR([Could not link
test program with libmpe.a])])
AC_CHECK_LIB(lmpe, MPE_Init_log , ,[AC_MSG_ERROR([Could not link
test program with liblmpe.a])] , -lmpe)
else
if test "x$with_mpi" = "xyes"; then
path_to_mpi=/usr/local
else
path_to_mpi=$with_mpi
fi
CFLAGS="$CFLAGS -I$path_to_mpi/include -L$path_to_mpi/lib"
AC_CHECK_LIB(mpich, MPI_Init, , [AC_MSG_ERROR([Could not link test
program with libmpich.a])])
fi
fi
AC_OUTPUT([\
Makefile \
src/Makefile \
src/non_gui/Makefile \
src/gui/Makefile \
man/Makefile \
man/man1/Makefile \
examples/Makefile \
tools/Makefile \
tools/src/Makefile \
tests/Makefile \
docs/html-docs/Makefile \
docs/html-docs/jpgs/Makefile \
docs/qex-december-1996/Makefile \
docs/theory/Makefile \
--
PLEASE NOTE:
If this message was sent to a newsgroup or mailing list, please
reply to there. Personal e-mail is always welcome, but unless
I have received e-mail from you previously, you may be sent
an automatically generated reply, requesting that you send the
message again, adding a password in the subject line. Sorry,
but this action has been taken to prevent unsolicited
commercial emails (spam mail).
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6409 Fax: 020 7679 6269
Internal telephone: ext 46409
- /bin/bash: --gnu: command not found,
Dr. David Kirkby <=