Fixed argument passing to sc_main.
[yaz-moved-to-github.git] / yaz-config.in
index 76b9152..9931978 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
-# $Id: yaz-config.in,v 1.31 2007-10-22 12:21:38 adam Exp $
+# This file is part of the YAZ toolkit.
+# Copyright (C) 1995-2008 Index Data
+
 yazprefix=@prefix@
 yaz_echo_cflags=no
 yaz_echo_libs=no
@@ -68,7 +70,9 @@ while test $# -gt 0; do
            lib_thread=yes
            ;;
        icu)
-           lib_icu=yes
+           if test "$ICU_CPPFLAGS"; then
+               lib_icu=yes
+           fi
            ;;
        server)
            lib_thread=yes
@@ -112,6 +116,9 @@ if test "$yaz_echo_source" = "yes"; then
     if test "$lib_server" = "yes"; then
        YAZLALIB="${yaz_build_root}/src/libyaz_server.la $YAZLALIB"
     fi
+    if test "$lib_icu" = "yes"; then
+       YAZLALIB="${yaz_build_root}/src/libyaz_icu.la $YAZLALIB"
+    fi
     YAZLALIB="$YAZLALIB $yazextralibs"
 
     YAZINC="-I${yaz_src_root}/include $YAZINC"