summaryrefslogtreecommitdiff
path: root/zconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconfig.h')
-rwxr-xr-xzconfig.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/zconfig.h b/zconfig.h
index da91261..70dbfaf 100755
--- a/zconfig.h
+++ b/zconfig.h
@@ -5,6 +5,11 @@
#ifndef _ZCONFIG_H
#define _ZCONFIG_H
+#ifdef __KERNEL__
+#include <linux/config.h>
+#include <linux/version.h>
+#endif
+
/* Zaptel compile time options */
/*
@@ -50,6 +55,18 @@
*/
/* #define AGGRESSIVE_SUPPRESSOR */
+/* We now use the linux kernel config to detect which options to use */
+/* You can still override them below */
+#ifdef CONFIG_HDLC
+#define CONFIG_ZAPATA_NET
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20)
+#define CONFIG_OLD_HDLC_API
+#endif
+#endif
+#ifdef CONFIG_PPP
+#define CONFIG_ZAPATA_PPP
+#endif
+
/*
* Uncomment CONFIG_ZAPATA_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
* support.