From 0d5b21e288d2130935238a436aaf0f691d57e791 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 21 May 2015 17:53:19 -0400 Subject: [PATCH] FS-7507: fix expansion of dirs compiled into freeswitch --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2eecbfd4d6..c57f50fbab 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,10 @@ if test "x$prefix" = "xNONE" ; then prefix='/usr/local/freeswitch' fi +if test "x${exec_prefix}" = "xNONE" ; then + exec_prefix="$prefix" +fi + default_scriptdir="$prefix/scripts" default_grammardir="$prefix/grammar" default_soundsdir="$prefix/sounds" @@ -84,6 +88,7 @@ if test "${enable_fhs}" = "yes"; then eval datadir=$full_datadir eval full_localstatedir="${localstatedir}" eval localstatedir=$full_localstatedir + eval libdir=$libdir default_cachedir="${localstatedir}/cache/freeswitch" localstatedir="${localstatedir}/lib/freeswitch" default_scriptdir="${datadir}/scripts" @@ -117,9 +122,12 @@ default_pkgconfigdir="$libdir/pkgconfig" default_runtimedir="$rundir" default_logfiledir="$logdir" +AC_SUBST(libdir) + # Where to install the modules AC_ARG_WITH([modinstdir], [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modulesdir="$withval"], [modulesdir="${default_modulesdir}"]) +eval modulesdir="${modulesdir}" AC_SUBST(modulesdir) AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],"${modulesdir}",[where to install the modules to]) @@ -198,7 +206,6 @@ AC_DEFINE_UNQUOTED([SWITCH_DATA_DIR],"${datadir}",[directory for data files]) AC_SUBST(localstatedir) AC_DEFINE_UNQUOTED([SWITCH_LOCALSTATE_DIR],"${localstatedir}",[directory for local state files]) -AC_SUBST(libdir) AC_SUBST(bindir) AC_SUBST(includedir)