Skip to content

Commit e8abb50

Browse files
committed
Update build chain with current autotools and remove some obsolte code from configure
1 parent 5b4e33c commit e8abb50

File tree

8 files changed

+317
-1037
lines changed

8 files changed

+317
-1037
lines changed

Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scanssh_SOURCES = scanssh.c atomicio.c exclude.c connecter.c xmalloc.c \
88
scanssh_LDADD = @LIBOBJS@ @PCAPLIB@ @EVENTLIB@ @DNETLIB@
99
CFLAGS = -O2 -Wall -g
1010

11-
INCLUDES = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
11+
AM_CPPFLAGS = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
1212
@EVENTINC@ @PCAPINC@ @DNETINC@
1313

1414
man_MANS = scanssh.1

Makefile.in

+14-33
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,14 @@ host_triplet = @host@
9191
bin_PROGRAMS = scanssh$(EXEEXT)
9292
subdir = .
9393
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94-
am__aclocal_m4_deps = $(top_srcdir)/configure.in
94+
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
9595
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9696
$(ACLOCAL_M4)
9797
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
9898
$(am__configure_deps) $(am__DIST_COMMON)
9999
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
100100
configure.lineno config.status.lineno
101101
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
102-
CONFIG_HEADER = config.h
103102
CONFIG_CLEAN_FILES =
104103
CONFIG_CLEAN_VPATH_FILES =
105104
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
@@ -174,8 +173,7 @@ am__uninstall_files_from_dir = { \
174173
man1dir = $(mandir)/man1
175174
NROFF = nroff
176175
MANS = $(man_MANS)
177-
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
178-
config.h.in
176+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
179177
# Read a list of newline-separated strings from the standard input,
180178
# and print each of them once, without duplicates. Input order is
181179
# *not* preserved.
@@ -193,11 +191,10 @@ am__define_uniq_tagged_files = \
193191
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
194192
done | $(am__uniquify_input)`
195193
AM_RECURSIVE_TARGETS = cscope
196-
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
197-
README.md TODO acconfig.h arc4random.c compile config.guess \
198-
config.sub err.c getaddrinfo.c getnameinfo.c inet_aton.c \
199-
inet_pton.c install-sh md5.c missing mkinstalldirs strlcat.c \
200-
strlcpy.c strsep.c
194+
am__DIST_COMMON = $(srcdir)/Makefile.in README.md TODO acconfig.h \
195+
arc4random.c compile config.guess config.sub err.c \
196+
getaddrinfo.c getnameinfo.c inet_aton.c inet_pton.c install-sh \
197+
md5.c missing mkinstalldirs strlcat.c strlcpy.c strsep.c
201198
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
202199
distdir = $(PACKAGE)-$(VERSION)
203200
top_distdir = $(distdir)
@@ -330,7 +327,7 @@ scanssh_SOURCES = scanssh.c atomicio.c exclude.c connecter.c xmalloc.c \
330327
scanssh.h socks.h xmalloc.h
331328

332329
scanssh_LDADD = @LIBOBJS@ @PCAPLIB@ @EVENTLIB@ @DNETLIB@
333-
INCLUDES = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
330+
AM_CPPFLAGS = -I$(top_srcdir)/@DNETCOMPAT@ -I$(top_srcdir)/compat \
334331
@EVENTINC@ @PCAPINC@ @DNETINC@
335332

336333
man_MANS = scanssh.1
@@ -341,8 +338,7 @@ EXTRA_DIST = $(man_MANS) README.md acconfig.h \
341338
compat/sys/queue.h compat/sys/tree.h
342339

343340
DISTCLEANFILES = *~
344-
all: config.h
345-
$(MAKE) $(AM_MAKEFLAGS) all-am
341+
all: all-am
346342

347343
.SUFFIXES:
348344
.SUFFIXES: .c .o .obj
@@ -379,21 +375,6 @@ $(top_srcdir)/configure: $(am__configure_deps)
379375
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
380376
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
381377
$(am__aclocal_m4_deps):
382-
383-
config.h: stamp-h1
384-
@test -f $@ || rm -f stamp-h1
385-
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
386-
387-
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
388-
@rm -f stamp-h1
389-
cd $(top_builddir) && $(SHELL) ./config.status config.h
390-
$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
391-
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
392-
rm -f stamp-h1
393-
touch $@
394-
395-
distclean-hdr:
396-
-rm -f config.h stamp-h1
397378
install-binPROGRAMS: $(bin_PROGRAMS)
398379
@$(NORMAL_INSTALL)
399380
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
@@ -728,7 +709,7 @@ distcleancheck: distclean
728709
exit 1; } >&2
729710
check-am: all-am
730711
check: check-am
731-
all-am: Makefile $(PROGRAMS) $(MANS) config.h
712+
all-am: Makefile $(PROGRAMS) $(MANS)
732713
installdirs:
733714
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
734715
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
@@ -772,7 +753,7 @@ distclean: distclean-am
772753
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
773754
-rm -f Makefile
774755
distclean-am: clean-am distclean-compile distclean-generic \
775-
distclean-hdr distclean-tags
756+
distclean-tags
776757

777758
dvi: dvi-am
778759

@@ -836,16 +817,16 @@ uninstall-am: uninstall-binPROGRAMS uninstall-man
836817

837818
uninstall-man: uninstall-man1
838819

839-
.MAKE: all install-am install-strip
820+
.MAKE: install-am install-strip
840821

841822
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
842823
clean-binPROGRAMS clean-cscope clean-generic cscope \
843824
cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
844825
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
845826
dist-zstd distcheck distclean distclean-compile \
846-
distclean-generic distclean-hdr distclean-tags distcleancheck \
847-
distdir distuninstallcheck dvi dvi-am html html-am info \
848-
info-am install install-am install-binPROGRAMS install-data \
827+
distclean-generic distclean-tags distcleancheck distdir \
828+
distuninstallcheck dvi dvi-am html html-am info info-am \
829+
install install-am install-binPROGRAMS install-data \
849830
install-data-am install-dvi install-dvi-am install-exec \
850831
install-exec-am install-html install-html-am install-info \
851832
install-info-am install-man install-man1 install-pdf \

aclocal.m4

-29
Original file line numberDiff line numberDiff line change
@@ -732,35 +732,6 @@ else
732732
fi
733733
])
734734

735-
# -*- Autoconf -*-
736-
# Obsolete and "removed" macros, that must however still report explicit
737-
# error messages when used, to smooth transition.
738-
#
739-
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
740-
#
741-
# This file is free software; the Free Software Foundation
742-
# gives unlimited permission to copy and/or distribute it,
743-
# with or without modifications, as long as this notice is preserved.
744-
745-
AC_DEFUN([AM_CONFIG_HEADER],
746-
[AC_DIAGNOSE([obsolete],
747-
['$0': this macro is obsolete.
748-
You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
749-
AC_CONFIG_HEADERS($@)])
750-
751-
AC_DEFUN([AM_PROG_CC_STDC],
752-
[AC_PROG_CC
753-
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
754-
AC_DIAGNOSE([obsolete],
755-
['$0': this macro is obsolete.
756-
You should simply use the 'AC][_PROG_CC' macro instead.
757-
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
758-
but upon 'ac_cv_prog_cc_stdc'.])])
759-
760-
AC_DEFUN([AM_C_PROTOTYPES],
761-
[AC_FATAL([automatic de-ANSI-fication support has been removed])])
762-
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
763-
764735
# Helper functions for option handling. -*- Autoconf -*-
765736

766737
# Copyright (C) 2001-2021 Free Software Foundation, Inc.

config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* config.h. Generated from config.h.in by configure. */
2-
/* config.h.in. Generated from configure.in by autoheader. */
2+
/* config.h.in. Generated from configure.ac by autoheader. */
33
/* Define if your raw sockets have arguments in host order as in BSD. */
44
/* #undef BSD_RAWSOCK_ORDER */
55

config.h.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* config.h.in. Generated from configure.in by autoheader. */
1+
/* config.h.in. Generated from configure.ac by autoheader. */
22
/* Define if your raw sockets have arguments in host order as in BSD. */
33
#undef BSD_RAWSOCK_ORDER
44

0 commit comments

Comments
 (0)