summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-30 15:28:06 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-30 15:28:06 -0700
commit6b9e3a5a85a3a37253c36006f536f3db182d6293 (patch)
treeb24bab70b4ce57aefece11fa89e00a66060b7226 /Makefile.in
parent5d6d557df4594450440f334fe92a5eddefb9931b (diff)
downloadtcpdump-6b9e3a5a85a3a37253c36006f536f3db182d6293.tar.gz
Use getopt_long().
This requires us to check for it in the configure script and to include a version of getopt_long() for the benefit of platforms that don't have it; we pick up the FreeBSD version and tweak it a bit (eliminating some features specific to the BSD version of getopt_long(), as we want to use it only in a fashion portable to Linux/*BSD/Solaris/etc.) We also get rid of the version of getopt() we supply for Windows in favor of the version of getopt_long() we provide.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index e027970a..2b6bd1b2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -236,6 +236,7 @@ HDR = \
ether.h \
ethertype.h \
extract.h \
+ getopt.h \
gmpls.h \
gmt2local.h \
interface.h \
@@ -312,6 +313,7 @@ EXTRA_DIST = \
missing/dlnames.c \
missing/datalinks.c \
missing/getnameinfo.c \
+ missing/getopt_long.c \
missing/inet_aton.c \
missing/inet_ntop.c \
missing/inet_pton.c \
@@ -342,9 +344,7 @@ EXTRA_DIST = \
tcpdump.1.in \
vfprintf.c \
win32/Include/errno.h \
- win32/Include/getopt.h \
win32/Include/w32_fzs.h \
- win32/Src/getopt.c \
win32/prj/GNUmakefile \
win32/prj/WinDump.dsp \
win32/prj/WinDump.dsw
@@ -368,6 +368,8 @@ dlnames.o: $(srcdir)/missing/dlnames.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c
getnameinfo.o: $(srcdir)/missing/getnameinfo.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getnameinfo.c
+getopt_long.o: $(srcdir)/missing/getopt_long.c
+ $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/getopt_long.c
inet_pton.o: $(srcdir)/missing/inet_pton.c
$(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/inet_pton.c
inet_ntop.o: $(srcdir)/missing/inet_ntop.c