move autoconfig.h to the include/asterisk directory so it will get installed
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 7 Jun 2006 19:05:35 +0000 (19:05 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 7 Jun 2006 19:05:35 +0000 (19:05 +0000)
install asterisk.h include the system's default include directory

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
acl.c
configure
configure.ac
include/asterisk.h
include/asterisk/autoconfig.h.in [moved from include/autoconfig.h.in with 99% similarity]
pbx.c
utils/ael_main.c
utils/astman.c
utils/smsq.c

index ac59244..12ba256 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -635,6 +635,7 @@ bininstall: all
                chmod 755 $(DESTDIR)$(ASTSBINDIR)/safe_asterisk;\
        fi
        $(INSTALL) -d $(DESTDIR)$(ASTHEADERDIR)
+       $(INSTALL) -m 644 include/asterisk.h $(DESTDIR)$(includedir)
        $(INSTALL) -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
        if [ -n "$(OLDHEADERS)" ]; then \
                rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\
diff --git a/acl.c b/acl.c
index 7b5850d..b3ca903 100644 (file)
--- a/acl.c
+++ b/acl.c
@@ -69,7 +69,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/utils.h"
 #include "asterisk/lock.h"
 #include "asterisk/srv.h"
-#include "asterisk/compat.h"
 
 struct ast_ha {
        /* Host access rule */
index a8b4e2c..d606e6b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 30458 .
+# From configure.ac Revision: 32846 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59e.
 #
@@ -2015,7 +2015,7 @@ test -n "$target_alias" &&
 
 
 # specify output header file
-ac_config_headers="$ac_config_headers include/autoconfig.h"
+ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
 
 
 
@@ -26855,7 +26855,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF
 for ac_config_target in $ac_config_targets
 do
   case $ac_config_target in
-    "include/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconfig.h" ;;
+    "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
     "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
     "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
 
index fc2b7ef..92bc87a 100644 (file)
@@ -17,7 +17,7 @@ AC_CANONICAL_TARGET
 AC_CONFIG_SRCDIR([asterisk.c])
 
 # specify output header file
-AC_CONFIG_HEADER(include/autoconfig.h)
+AC_CONFIG_HEADER(include/asterisk/autoconfig.h)
 
 AC_COPYRIGHT("Asterisk")
 AC_REVISION($Revision$)
index f6a5f1f..2b979e4 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef _ASTERISK_H
 #define _ASTERISK_H
 
-#include "autoconfig.h"
+#include "asterisk/autoconfig.h"
 
 #include "asterisk/compat.h"
 
similarity index 99%
rename from include/autoconfig.h.in
rename to include/asterisk/autoconfig.h.in
index a5c34af..604922a 100644 (file)
@@ -1,4 +1,4 @@
-/* include/autoconfig.h.in.  Generated from configure.ac by autoheader.  */
+/* include/asterisk/autoconfig.h.in.  Generated from configure.ac by autoheader.  */
 
 #ifndef ASTERISK_AUTOCONFIG_H
 #define ASTERISK_AUTOCONFIG_H
diff --git a/pbx.c b/pbx.c
index c009578..40ec775 100644 (file)
--- a/pbx.c
+++ b/pbx.c
@@ -58,7 +58,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/musiconhold.h"
 #include "asterisk/app.h"
 #include "asterisk/devicestate.h"
-#include "asterisk/compat.h"
 #include "asterisk/stringfields.h"
 
 /*!
index 69be09f..5ac4030 100644 (file)
@@ -1,4 +1,4 @@
-#include "autoconfig.h"
+#include "asterisk/autoconfig.h"
 
 #include <sys/types.h>
 #include <stdio.h>
index b6dd9ec..733f377 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
  
-#include "autoconfig.h"
+#include "asterisk/autoconfig.h"
 
 #include <newt.h>
 #include <stdio.h>
index 20b6d37..4954e11 100644 (file)
@@ -17,7 +17,7 @@
  * at the top of the source tree.
  */
 
-#include "autoconfig.h"
+#include "asterisk/autoconfig.h"
 
 #include <stdio.h>
 #include <popt.h>