Merging of changes from 1.4 revision 103713.
[asterisk/asterisk.git] / configure
index 0e63086..d4afaae 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 103700 .
+# From configure.ac Revision: 103711 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
 #
 
 
 if test "${USE_IMAP_TK}" != "no"; then
+       saved_cppflags="${CPPFLAGS}"
+       saved_libs="${LIBS}"
        switch_to_system_on_failure="no"
        if test "${IMAP_TK_DIR}" = ""; then
                IMAP_TK_DIR=`pwd`"/../imap-2004g"
                switch_to_system_on_failure="yes"
        fi
-       saved_cppflags="${CPPFLAGS}"
-       saved_libs="${LIBS}"
        if test "${IMAP_TK_DIR}" != "system"; then
                { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
@@ -33087,8 +33087,6 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        if test "${ac_cv_imap_tk}" = "yes"; then
                { echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6; }
-               CPPFLAGS="${saved_cppflags}"
-               LIBS="${saved_libs}"
                IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
                IMAP_TK_INCLUDE="${imap_include}"
                PBX_IMAP_TK=1
@@ -33108,6 +33106,8 @@ _ACEOF
                { echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6; }
        fi
+       CPPFLAGS="${saved_cppflags}"
+       LIBS="${saved_libs}"
 fi