]> jfr.im git - irc/ircd-hybrid/bopm.git/commitdiff
Added configure option for some excessive gcc3 warning flags
authorandy <redacted>
Tue, 13 Aug 2002 03:28:36 +0000 (03:28 +0000)
committerandy <redacted>
Tue, 13 Aug 2002 03:28:36 +0000 (03:28 +0000)
configure
configure.in
src/Makefile.am
src/Makefile.in

index ed69baadb93cef8e5b791988345577935315590c..1b2e45d4c6fe8caf7a25d5daba2f8270534b709d 100755 (executable)
--- a/configure
+++ b/configure
@@ -842,6 +842,7 @@ Optional Packages:
   --with-select           use select() instead of poll()
   --with-unreal           you need this if you are using Unreal ircd (any
                           version)
+  --with-extra-fascism    Add extra gcc3-specific warning flags
 
 Some influential environment variables:
   CC          C compiler command
@@ -1640,6 +1641,13 @@ else
   with_unreal="no"
 fi;
 
+# Check whether --with-extra-fascism or --without-extra-fascism was given.
+if test "${with_extra_fascism+set}" = set; then
+  withval="$with_extra_fascism"
+  CFLAGS="$CFLAGS -g -ggdb -O0 -W -Wfloat-equal -Wbad-function-cast -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
+fi;
+
+
 # Check whether --enable-ipv6 or --disable-ipv6 was given.
 if test "${enable_ipv6+set}" = set; then
   enableval="$enable_ipv6"
index a79ff8abbca0fca52b5dbf8c62211d1fb6e27e43..07a979733769963bec9a7b9c6986de8b79940596 100644 (file)
@@ -13,6 +13,11 @@ AC_ARG_WITH(unreal,
     AC_HELP_STRING([--with-unreal],
     [you need this if you are using Unreal ircd (any version)]),
     [with_unreal="yes"], [with_unreal="no"])
+AC_ARG_WITH(extra-fascism,
+    AC_HELP_STRING([--with-extra-fascism],
+    [Add extra gcc3-specific warning flags]),
+    [CFLAGS="$CFLAGS -g -ggdb -O0 -W -Wfloat-equal -Wbad-function-cast -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
+
 
 dnl ipv6?
 AC_ARG_ENABLE(ipv6,
index 595cd8549e73e90417280dcf51fa8690955ad5b2..0bef5fc624995bc386408eee19d5b2d79a1c02a8 100644 (file)
@@ -2,10 +2,10 @@ bin_PROGRAMS = bopm bopchecker
 
 AM_CPPFLAGS = -DBOPM_ETCDIR="\"$(sysconfdir)\"" -DBOPM_LOGDIR="\"$(localstatedir)\""
 
-bopm_SOURCES = compat.c compat.h config.c config.h dnsbl.c dnsbl.h extern.h \
-    inet.c inet.h irc.c irc.h log.c log.h main.c match.c match.h misc.c \
-    misc.h opercmd.c opercmd.h options.h scan.c scan.h setup.h stats.c \
-    stats.h
+bopm_SOURCES = compat.c compat.h config.c config.h dlclist.c dlclist.h \
+    dnsbl.c dnsbl.h extern.h inet.c inet.h irc.c irc.h log.c log.h main.c \
+    match.c match.h misc.c misc.h opercmd.c opercmd.h options.h scan.c \
+    scan.h scanwarn.c scanwarn.h setup.h stats.c stats.h
 bopchecker_SOURCES = bopchecker.c bopchecker.h compat.c compat.h config.c \
     config.h inet.c inet.h match.c match.h misc.c misc.h scan.c scan.h \
     setup.h
index ad9b1439cf23935169f79a34f288b77c737876e8..cb5c284edac907c9a098e98ffea52a8df37f81b4 100644 (file)
@@ -81,10 +81,10 @@ bin_PROGRAMS = bopm bopchecker
 
 AM_CPPFLAGS = -DBOPM_ETCDIR="\"$(sysconfdir)\"" -DBOPM_LOGDIR="\"$(localstatedir)\""
 
-bopm_SOURCES = compat.c compat.h config.c config.h dnsbl.c dnsbl.h extern.h \
-    inet.c inet.h irc.c irc.h log.c log.h main.c match.c match.h misc.c \
-    misc.h opercmd.c opercmd.h options.h scan.c scan.h setup.h stats.c \
-    stats.h
+bopm_SOURCES = compat.c compat.h config.c config.h dlclist.c dlclist.h \
+    dnsbl.c dnsbl.h extern.h inet.c inet.h irc.c irc.h log.c log.h main.c \
+    match.c match.h misc.c misc.h opercmd.c opercmd.h options.h scan.c \
+    scan.h scanwarn.c scanwarn.h setup.h stats.c stats.h
 
 bopchecker_SOURCES = bopchecker.c bopchecker.h compat.c compat.h config.c \
     config.h inet.c inet.h match.c match.h misc.c misc.h scan.c scan.h \
@@ -106,10 +106,10 @@ am_bopchecker_OBJECTS = bopchecker.$(OBJEXT) compat.$(OBJEXT) \
 bopchecker_OBJECTS = $(am_bopchecker_OBJECTS)
 bopchecker_DEPENDENCIES =
 bopchecker_LDFLAGS =
-am_bopm_OBJECTS = compat.$(OBJEXT) config.$(OBJEXT) dnsbl.$(OBJEXT) \
-       inet.$(OBJEXT) irc.$(OBJEXT) log.$(OBJEXT) main.$(OBJEXT) \
-       match.$(OBJEXT) misc.$(OBJEXT) opercmd.$(OBJEXT) scan.$(OBJEXT) \
-       stats.$(OBJEXT)
+am_bopm_OBJECTS = compat.$(OBJEXT) config.$(OBJEXT) dlclist.$(OBJEXT) \
+       dnsbl.$(OBJEXT) inet.$(OBJEXT) irc.$(OBJEXT) log.$(OBJEXT) \
+       main.$(OBJEXT) match.$(OBJEXT) misc.$(OBJEXT) opercmd.$(OBJEXT) \
+       scan.$(OBJEXT) scanwarn.$(OBJEXT) stats.$(OBJEXT)
 bopm_OBJECTS = $(am_bopm_OBJECTS)
 bopm_DEPENDENCIES =
 bopm_LDFLAGS =
@@ -122,11 +122,12 @@ LIBS = @LIBS@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bopchecker.Po ./$(DEPDIR)/compat.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/config.Po ./$(DEPDIR)/dnsbl.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/inet.Po ./$(DEPDIR)/irc.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/log.Po ./$(DEPDIR)/main.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/match.Po ./$(DEPDIR)/misc.Po \
-@AMDEP_TRUE@   ./$(DEPDIR)/opercmd.Po ./$(DEPDIR)/scan.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/config.Po ./$(DEPDIR)/dlclist.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/dnsbl.Po ./$(DEPDIR)/inet.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/irc.Po ./$(DEPDIR)/log.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/main.Po ./$(DEPDIR)/match.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/misc.Po ./$(DEPDIR)/opercmd.Po \
+@AMDEP_TRUE@   ./$(DEPDIR)/scan.Po ./$(DEPDIR)/scanwarn.Po \
 @AMDEP_TRUE@   ./$(DEPDIR)/stats.Po
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -206,6 +207,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bopchecker.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compat.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlclist.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dnsbl.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inet.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/irc.Po@am__quote@
@@ -215,6 +217,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opercmd.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scan.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scanwarn.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stats.Po@am__quote@
 
 distclean-depend: