Hello,
I'm trying to compile some older apps
(https://github.com/wifidog/wifidog-gateway) however, consistently
running into a badly generated ./configure file on this CentOS 7 install
( 7.8.2003 (Core) ):
[root@dd-wrt01 wifidog-gateway]# aclocal
[root@dd-wrt01 wifidog-gateway]# autoheader
[root@dd-wrt01 wifidog-gateway]# automake
[root@dd-wrt01 wifidog-gateway]# autoreconf
[root@dd-wrt01 wifidog-gateway]# ./configure
./configure: line 2489: Report: command not found
./configure: line 2490: _ACEOF: command not found
./configure: line 2492: syntax error near unexpected token `fi'
./configure: line 2492: `fi'
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 wifidog-gateway]# rpm -aq|grep -Ei "libtool|automake"
slibtool-devel-0.5.28-1.el7.x86_64
libtool-2.4.2-22.el7_3.x86_64
automake-1.13.4-3.el7.noarch
automake-ohpc-1.15-1.7.x86_64
slibtool-0.5.28-1.el7.x86_64
libtool-ltdl-2.4.2-22.el7_3.x86_64
libtool-ltdl-devel-2.4.2-22.el7_3.x86_64
slibtool-libs-0.5.28-1.el7.x86_64
[root@dd-wrt01 wifidog-gateway]#
Tried some newer versions of automake but results are the same:
[root@dd-wrt01 wifidog-gateway]# ls -altri /root/automake/bin/
total 880
413820931 drwxr-xr-x. 5 root root 12288 Jul 15 00:23 ..
491592 -rwxr-xr-x. 1 root root 253315 Jul 15 00:37 automake-1.15
491593 -rwxr-xr-x. 1 root root 36810 Jul 15 00:37 aclocal-1.15
491551 -rwxr-xr-x. 2 root root 257947 Jul 15 00:49 automake-1.16
491551 -rwxr-xr-x. 2 root root 257947 Jul 15 00:49 automake
491733 -rwxr-xr-x. 2 root root 36496 Jul 15 00:49 aclocal-1.16
491733 -rwxr-xr-x. 2 root root 36496 Jul 15 00:49 aclocal
448119 drwxr-xr-x. 2 root root 4096 Jul 15 00:49 .
[root@dd-wrt01 wifidog-gateway]#
[root@dd-wrt01 automake-1.16.1]# rpm -aq|grep -Ei libtool
slibtool-devel-0.5.28-1.el7.x86_64
libtool-2.4.2-22.el7_3.x86_64
slibtool-0.5.28-1.el7.x86_64
libtool-ltdl-2.4.2-22.el7_3.x86_64
libtool-ltdl-devel-2.4.2-22.el7_3.x86_64
slibtool-libs-0.5.28-1.el7.x86_64
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]# rpm -ql libtool-2.4.2-22.el7_3.x86_64
/usr/bin/libtool
/usr/bin/libtoolize
/usr/share/aclocal/argz.m4
/usr/share/aclocal/libtool.m4
/usr/share/aclocal/ltdl.m4
/usr/share/aclocal/ltoptions.m4
/usr/share/aclocal/ltsugar.m4
/usr/share/aclocal/ltversion.m4
/usr/share/aclocal/lt~obsolete.m4
/usr/share/doc/libtool-2.4.2
/usr/share/doc/libtool-2.4.2/AUTHORS
/usr/share/doc/libtool-2.4.2/COPYING
/usr/share/doc/libtool-2.4.2/ChangeLog
/usr/share/doc/libtool-2.4.2/ChangeLog.1996
/usr/share/doc/libtool-2.4.2/ChangeLog.1997
/usr/share/doc/libtool-2.4.2/ChangeLog.1998
/usr/share/doc/libtool-2.4.2/ChangeLog.1999
/usr/share/doc/libtool-2.4.2/ChangeLog.2000
/usr/share/doc/libtool-2.4.2/ChangeLog.2001
/usr/share/doc/libtool-2.4.2/ChangeLog.2002
/usr/share/doc/libtool-2.4.2/ChangeLog.2003
/usr/share/doc/libtool-2.4.2/ChangeLog.2004
/usr/share/doc/libtool-2.4.2/ChangeLog.2005
/usr/share/doc/libtool-2.4.2/ChangeLog.2006
/usr/share/doc/libtool-2.4.2/ChangeLog.2007
/usr/share/doc/libtool-2.4.2/ChangeLog.2008
/usr/share/doc/libtool-2.4.2/ChangeLog.2009
/usr/share/doc/libtool-2.4.2/ChangeLog.2010
/usr/share/doc/libtool-2.4.2/NEWS
/usr/share/doc/libtool-2.4.2/README
/usr/share/doc/libtool-2.4.2/THANKS
/usr/share/doc/libtool-2.4.2/TODO
/usr/share/info/libtool.info-1.gz
/usr/share/info/libtool.info-2.gz
/usr/share/info/libtool.info.gz
/usr/share/libtool
/usr/share/libtool/config
/usr/share/libtool/config/compile
/usr/share/libtool/config/config.guess
/usr/share/libtool/config/config.sub
/usr/share/libtool/config/depcomp
/usr/share/libtool/config/install-sh
/usr/share/libtool/config/ltmain.sh
/usr/share/libtool/config/missing
/usr/share/man/man1/libtool.1.gz
/usr/share/man/man1/libtoolize.1.gz
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]# rpm -ql
libtool-2.4.2-22.el7_3.x86_64|grep m4 | xargs sha1sum
7657087d5403149f69b562393bd2bbebf488e85e /usr/share/aclocal/argz.m4
0b1aaba81de0a6c6dbbbba6b65b2aa5abe173419 /usr/share/aclocal/libtool.m4
605fb023b78c0ce2641b700c31f09d36f310dfed /usr/share/aclocal/ltdl.m4
05ec66892c8b30f20aa5278e1671ae4925a9c063 /usr/share/aclocal/ltoptions.m4
d6d1ea1fd251ced66ba87ceb6f9e3846124691c1 /usr/share/aclocal/ltsugar.m4
25c2435fa4cb5dc86ffad28bf9b1a6a14dd53a68 /usr/share/aclocal/ltversion.m4
c0c6afe569131b4015d221bc853053cf884b2699 /usr/share/aclocal/lt~obsolete.m4
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]#
[root@dd-wrt01 automake-1.16.1]# rpm -ql
libtool-2.4.2-22.el7_3.x86_64|grep m4 | xargs ls -altri
174992393 -rw-r--r--. 1 root root 690 Apr 12 2017
/usr/share/aclocal/ltversion.m4
174992392 -rw-r--r--. 1 root root 4372 Apr 12 2017
/usr/share/aclocal/ltsugar.m4
174992391 -rw-r--r--. 1 root root 12347 Apr 12 2017
/usr/share/aclocal/ltoptions.m4
174992394 -rw-r--r--. 1 root root 6126 Apr 12 2017
/usr/share/aclocal/lt~obsolete.m4
174992390 -rw-r--r--. 1 root root 27059 Apr 12 2017
/usr/share/aclocal/ltdl.m4
174992389 -rw-r--r--. 1 root root 286490 Apr 12 2017
/usr/share/aclocal/libtool.m4
174992388 -rw-r--r--. 1 root root 2617 Apr 12 2017
/usr/share/aclocal/argz.m4
[root@dd-wrt01 automake-1.16.1]#
Wondering if anyone can shed more light on this?
--
Thx,
TK.
-------------------------------------------------------------------------
[root@dd-wrt01 wifidog-gateway]# cat configure.ac
## -*-m4-*-
# $Id$
dnl Process this file with autoconf to produce a configure script.
# FILE:
# configure.in
#
# FUNCTION:
# implements checks for a variety of system-specific functions
# AC_PROG_RANLIB Obsoleted. Use LT_INIT
AC_INIT([wifidog], [1.3.0])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
AC_INIT(src/common.h)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(config)
AC_PROG_CC
AC_PROG_CXX
AC_SUBST(BUILDROOT)
# we use Semantic Versioning x.y.z tag for release, docs: http://semver.org/
WIFIDOG_MAJOR_VERSION=1
WIFIDOG_MINOR_VERSION=3
WIFIDOG_MICRO_VERSION=0
WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION
AC_SUBST(WIFIDOG_MAJOR_VERSION)
AC_SUBST(WIFIDOG_MINOR_VERSION)
AC_SUBST(WIFIDOG_MICRO_VERSION)
AC_SUBST(WIFIDOG_VERSION)
AM_INIT_AUTOMAKE # (wifidog,$WIFIDOG_VERSION)
AM_MAINTAINER_MODE
AC_PROG_INSTALL
AC_LIBTOOL_DLOPEN
# AM_PROG_LIBTOOL
AC_ISC_POSIX
AC_C_BIGENDIAN
AC_PROG_MAKE_SET
AC_HEADER_STDC
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
#
----------------------------------------------------------------------------
AC_DEFUN([BB_ENABLE_DOXYGEN],
[
AC_ARG_ENABLE(doxygen, [ --enable-doxygen enable documentation
generation with doxygen (auto)])
AC_ARG_ENABLE(dot, [ --enable-dot use 'dot' to generate
graphs in doxygen (auto)])
AC_ARG_ENABLE(html-docs, [ --enable-html-docs enable HTML
generation with doxygen (yes)], [], [ enable_html_docs=yes])
AC_ARG_ENABLE(latex-docs, [ --enable-latex-docs enable LaTeX
documentation generation with doxygen (no)], [], [ enable_latex_docs=no])
if test "x$enable_doxygen" = xno; then
enable_doc=no
else
AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
if test x$DOXYGEN = x; then
if test "x$enable_doxygen" = xyes; then
AC_MSG_ERROR([could not find doxygen])
fi
enable_doc=no
else
enable_doc=yes
AC_PATH_PROG(DOT, dot, , $PATH)
fi
fi
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
if test x$DOT = x; then
if test "x$enable_dot" = xyes; then
AC_MSG_ERROR([could not find dot])
fi
enable_dot=no
else
enable_dot=yes
fi
AM_CONDITIONAL(ENABLE_DOXYGEN, test x$enable_doc = xtrue)
AC_SUBST(enable_dot)
AC_SUBST(enable_html_docs)
AC_SUBST(enable_latex_docs)
])
# Acutally perform the doxygen check
BB_ENABLE_DOXYGEN
# Enable cyassl?
AC_DEFUN([BB_CYASSL],
[
AC_ARG_ENABLE(cyassl, [ --enable-cyassl enable TLS support for
auth server communication (no)], [], [enable_cyassl=no])
if test "x$enable_cyassl" = xyes; then
# CyaSSL has been renamed wolfSSL. Old method names are still
available
# via cyassl/ssl.h, which maps old methods to new methods via
macros.
# To find the proper lib to link against (cyassl or wolfssl),
we do have
# the use the new naming scheme below as cyassl/ssl.h is not
available for
# AC_SEARCH_LIBS
AC_CHECK_HEADERS(cyassl/ssl.h)
AC_SEARCH_LIBS([CyaTLSv1_client_method], [cyassl], [], [
AC_SEARCH_LIBS([wolfTLSv1_client_method], [wolfssl], [], [
AC_MSG_ERROR([unable to locate SSL lib:
either wolfSSL or CyaSSL needed.])
])
])
AC_MSG_CHECKING([for the CyaSSL SNI enabled])
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[
#define HAVE_SNI
#include <cyassl/ssl.h>
]], [[
CYASSL_CTX *ctx;
CyaSSL_Init();
ctx = CyaSSL_CTX_new(CyaTLSv1_client_method());
CyaSSL_CTX_UseSNI(ctx, CYASSL_SNI_HOST_NAME,
"wifidog.org", 11);
]])], [enabled_sni=yes], [enabled_sni=no])
if test "x$enabled_sni" = xyes; then
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_SNI],, "Compile with CyaSSL SNI support")
else
AC_MSG_RESULT([no])
fi
AC_DEFINE(USE_CYASSL,, "Compile with CyaSSL support")
fi
])
# Actually perform the cyassl check
BB_CYASSL
# check for pthread
AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR(You need the pthread headers) )
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(You need the
pthread library) )
# libhttpd dependencies
echo "Begining libhttpd dependencies check"
AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h)
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
echo "libhttpd dependencies check complete"
AC_OUTPUT( Makefile
wifidog.spec
wifidog-msg.html
src/Makefile
libhttpd/Makefile
doc/Makefile
)
[root@dd-wrt01 wifidog-gateway]#