From 8729bb8e3b52ca0ae7c78e673bed002e0ef5dedb Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE> Date: Mon, 7 Jul 2003 13:52:08 +0000 Subject: [PATCH] Provide getopt_long() in gnu-compat/ in case it should be missing. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 78e3ed2..ded6443 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_INIT([albert], [1.2], [dani@mathematik.uni-freiburg.de]) AC_CONFIG_SRCDIR([ALBERT/src/Common/albert.h]) AC_CONFIG_FILES([Makefile BLAS/Makefile ALBERT_UTIL/Makefile + gnu-compat/Makefile GRAPE/Makefile GRAPE/mesh/Makefile GRAPE/mesh/2d/Makefile GRAPE/mesh/3d/Makefile @@ -69,6 +70,12 @@ AC_CHECK_FUNCS([alarm pow sqrt strdup strchr strstr],, AC_FUNC_MALLOC AC_FUNC_VPRINTF +AC_CHECK_FUNCS([getopt_long],[], + [AC_LIBOBJ([getopt]) + AC_LIBOBJ([getopt1]) + GNUCOMPAT_INCLUDE_PATH='$(top_srcdir)/gnu-compat/']) +AC_SUBST([GNUCOMPAT_INCLUDE_PATH]) + # look for X11 library paths AND sets all necessary flags (X_CFLAGS) e.g. AC_PATH_XTRA -- GitLab