summaryrefslogtreecommitdiff
path: root/epan/acconfig.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-10-16 23:18:05 +0000
committerGuy Harris <guy@alum.mit.edu>2000-10-16 23:18:05 +0000
commitcba377df3c5bb5c4920eac87041d4a52246babd7 (patch)
tree29f50f9b0aa9fdf3db85139eb7a63357c9a4c298 /epan/acconfig.h
parentcb0a63c8e77464c022e40dc1b25c5aeb2a4c1ba6 (diff)
downloadwireshark-cba377df3c5bb5c4920eac87041d4a52246babd7.tar.gz
Give libethereal its own configuration file, and have that configuration
file, rather than the top-level Ethereal configuration file, check for "inet_aton()", "inet_pton()", and "inet_ntop()". Then make its Makefile.am include the appropriate object files if necessary. Otherwise, they don't get built and put into libethereal, and therefore attempts to link with anything in libethereal that uses them fail on platforms that lack ethem, causing the build to fail. That means a bunch of things need to be fixed to cope with libethereal having its own "config.h" file; this means removing the include of "config.h" from some libethereal header files. Move the definitions of the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so "resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure script (so we don't have to include it in "plugins.h" to check whether HAVE_DLFCN_H is defined). Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for now, define that in the top-level configuration file, and have Ethereal and Tethereal pass it as an argument to "epan_init()" - that should be cleaned up at some point. Remove from the top-level configure script checks for things used only in libethereal. svn path=/trunk/; revision=2498
Diffstat (limited to 'epan/acconfig.h')
-rw-r--r--epan/acconfig.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/epan/acconfig.h b/epan/acconfig.h
new file mode 100644
index 0000000000..86e1848b06
--- /dev/null
+++ b/epan/acconfig.h
@@ -0,0 +1,32 @@
+/* acconfig.h
+ * #ifdefs to be controlled by "configure"
+ *
+ * $Id: acconfig.h,v 1.1 2000/10/16 23:17:39 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#undef HAVE_PLUGINS
+
+#undef DATAFILE_DIR
+
+#undef NEED_INET_ATON_H
+
+#undef NEED_INET_V6DEFS_H