Diff

configure @ 3764:323169f229fa

Make libidn default when not specifiying a IDN lib.
author Tobias Markmann <tm@ayena.de>
date Tue, 14 Dec 2010 18:54:55 +0100
parent 3763:1ae89ac7bf62
child 3962:c77eff3ac5e1
line wrap: on
line diff
--- a/configure	Tue Dec 14 18:35:05 2010 +0100
+++ b/configure	Tue Dec 14 18:54:55 2010 +0100
@@ -20,6 +20,7 @@
 CFLAGS="-fPIC -Wall"
 LDFLAGS="-shared"
 
+IDN_LIBRARY=idn
 # Help
 
 show_help() {
@@ -272,15 +273,12 @@
 then
 	IDNA_LIBS="$ICU_FLAGS"
 	CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU"
-else
- 	if [ "$IDN_LIBRARY" = "idn" ] 
-	then
-		IDNA_LIBS="-l$IDN_LIB"
-	else
-		echo "Must use idn or icu as argument for --idn-library!"
-		exit 1
-	fi
 fi
+if [ "$IDN_LIBRARY" = "idn" ] 
+then
+	IDNA_LIBS="-l$IDN_LIB"
+fi
+
 LDFLAGS="$LDFLAGS -llua$LUA_SUFFIX"
 
 echo -n "Checking Lua includes... "