summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index 0dc8210..e16fe42 100755
--- a/configure
+++ b/configure
@@ -37,7 +37,12 @@ echo "
 DESTDIR=$DESTDIR
 " > config.mk
 
-echo > include/config.h
+echo "#ifndef __LIBHTTPC_CONFIG_H__
+#define __LIBHTTPC_CONFIG_H__
+
+" > include/config.h
 if [ -z "$NOSOCK" ]; then
-    echo "#define LibHTTPC_SOCK" > include/config.h
+    echo "#define LibHTTPC_SOCK" >> include/config.h
 fi
+echo "
+#endif" >> include/config.h