[sword-svn] r3115 - trunk

chrislit at crosswire.org chrislit at crosswire.org
Wed Mar 12 20:11:14 MST 2014


Author: chrislit
Date: 2014-03-12 20:11:14 -0700 (Wed, 12 Mar 2014)
New Revision: 3115

Modified:
   trunk/configure.ac
Log:
fixed ICU discovery so that a system without ICU can actually build Sword


Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2014-03-12 13:13:05 UTC (rev 3114)
+++ trunk/configure.ac	2014-03-13 03:11:14 UTC (rev 3115)
@@ -198,36 +198,25 @@
 # ---------------------------------------------------------------------
 # Find ICU tools
 # ---------------------------------------------------------------------
-ICU_VER=
 ICU_LIBS=
 ICU_IOLIBS=
 if test x$with_icu = xyes; then
 	AC_PATH_PROG(ICU_CONFIG, icu-config, no)
-# The icu-config script was new in icu 2.2
-	if test "$ICU_CONFIG" = "no" ; then
-	   echo "*** The icu-config script installed by icu could not be found"
-	   echo "*** continuing anyway and assuming 2.1 or earlier"
-	   ICU_VER="2.1"
-	   ICU_LIBS="-licui18n -licuuc -licudata"
-	   ICU_IOLIBS="-lustdio"
-	else
-	   ICU_VER=`$ICU_CONFIG --version`
+	if test "$ICU_CONFIG" != "no" ; then
 	   ICU_LIBS=`$ICU_CONFIG --ldflags`
-	   #ICU_IOLIBS=`if test $(echo "$ICU_VER >= 3.0"|bc) -eq 1; then $ICU_CONFIG --ldflags-icuio; else $ICU_CONFIG --ldflags-ustdio; fi;`
 	   ICU_IOLIBS=`$ICU_CONFIG --ldflags-icuio`
+	   with_icu=yes
+	   LIBS="$LIBS $ICU_LIBS $ICU_IOLIBS"
+	   AM_CXXFLAGS="$AM_CXXFLAGS -D_ICU_"
+	   AM_CFLAGS="$AM_CFLAGS -D_ICU_"
+	else
+	   echo "*** The icu-config script installed by icu could not be found"
+	   echo "*** compiling without ICU support"
+	   with_icu=no
 	fi
-     AM_CXXFLAGS="$AM_CXXFLAGS -D_ICU_"
-     AM_CFLAGS="$AM_CFLAGS -D_ICU_"
 fi
 
-if test "x$ICU_LIBS" != x; then
-	with_icu=yes
-	LIBS="$LIBS $ICU_LIBS $ICU_IOLIBS"
-else
-	with_icu=no
-fi
 
-
 if test x$with_icusword = xyes; then
 AM_CXXFLAGS="$AM_CXXFLAGS -D_ICUSWORD_"
 AM_CFLAGS="$AM_CFLAGS -D_ICUSWORD_"
@@ -366,7 +355,6 @@
 AC_SUBST(with_conf)
 AC_SUBST(dir_confdef)
 AC_SUBST(CC)
-AC_SUBST(ICU_VER)
 AC_SUBST(enable_debug)
 AC_SUBST(enable_profile)
 




More information about the sword-cvs mailing list