Fix 2005/mynx directory wrt configure script

The configure script which was in the directory overwrote (naturally)
the Makefile. I moved the configure to source/. I also moved
configure.in to source/ and makefile.in to source/.

Updated Makefile so that running make will work. Probably no need for
configure but since it's part of the entry I kept it.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-06 05:06:17 -07:00
1 parent b9b7123967
commit c57b27fafe
4 files changed
+1 -1

No files matched your search

Vendored Executable
+4192
View File
File diff suppressed because it is too large. Load diff
+41
View File
@@ -0,0 +1,41 @@
AC_PREREQ(2.59)
AC_INIT(mynx, 1.0, [])
platform=`uname -s|sed -e 's/^\([[a-zA-Z0-9]]*\)[[^a-zA-Z0-9]].*/\1/'`
echo "platform is... $platform"
my_configure_command="$[]0 $[]@"
AC_CHECK_TOOL(autoconf_tool, autoconf)
if test ${autoconf_tool:-no} != 'no' -a \( aclocal.m4 -nt configure -o configure.in -nt configure \); then
echo 'Rebuilding the configure script first...'
autoconf -f
echo 'Restarting configure script...'
echo $my_configure_command
exec $my_configure_command
fi
AC_SUBST(platform, $platform)
AC_CONFIG_SRCDIR($PACKAGE_NAME.c)
AC_CONFIG_FILES(makefile)
AC_ARG_ENABLE(w32,
[AC_HELP_STRING([--disable-w32],[generate Cygwin binary in Cygwin environment])]
)
if test $platform = 'CYGWIN' -a ${enable_w32:-yes} != 'no' ; then
CFLAGS="-mno-cygwin ${CFLAGS}"
LIBS="-lws2_32 ${LIBS}"
fi
AC_PROG_CC
AC_HEADER_STDC
AC_SEARCH_LIBS(socket, [socket nsl],[AC_DEFINE_UNQUOTED([AS_TR_CPP([HAVE_SOCKET])])])
AC_CHECK_HEADERS(
[arpa/inet.h netdb.h netinet/in.h sys/socket.h sys/ioctl.h],
[], [AC_MSG_FAILURE([Missing required I/O header.], 1)]
)
AC_CHECK_HEADERS([windows.h winsock2.h])
AC_OUTPUT()
echo
echo $PACKAGE_STRING
echo
AC_MSG_RESULT([ platform...: $platform])
AC_MSG_RESULT([ prefix.....: $prefix])
AC_MSG_RESULT([ CFLAGS.....: $CFLAGS])
AC_MSG_RESULT([ LDFLAGS....: $LDFLAGS])
AC_MSG_RESULT([ LIBS.......: $LIBS])
echo
+21
View File
@@ -0,0 +1,21 @@
PACKAGE = @PACKAGE_NAME@
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
E = @EXEEXT@
build: ${PACKAGE}$E
clean:
-rm ${PACKAGE}$E ${PACKAGE}-alt$E
distclean: clean
-rm config.status configure.lineno config.log makefile
-rm -rf autom4te.cache
${PACKAGE}$E: ${PACKAGE}.c
${CC} ${CFLAGS} ${LDFLAGS} -o${PACKAGE} ${PACKAGE}.c ${LIBS}
${PACKAGE}-alt$E: ${PACKAGE}-alt.c
${CC} ${CFLAGS} ${LDFLAGS} -o${PACKAGE}-alt ${PACKAGE}-alt.c ${LIBS}