Show
Ignore:
Timestamp:
2007-05-01 10:41:50 (21 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Make IDN depend on iconv support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • configure.ac

    r5126 r5146  
    717717        ]) 
    718718AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes) 
    719  
    720 AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]), 
    721                  [ 
    722                   if test "$with_idn" != "no" ; then 
    723                         if test "$with_idn" != "yes" ; then 
    724                            CPPFLAGS="$CPPFLAGS -I$with_idn/include" 
    725                            LDFLAGS="$LDFLAGS -L$with_idn/lib" 
    726                         fi 
    727                   fi 
    728                  ] 
    729 ) 
    730  
    731 if test "x$with_idn" != "xno"; then 
    732    AC_CHECK_LIB(idn, stringprep_check_version) 
    733    AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z) 
    734    AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z) 
    735    AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale) 
    736 fi 
    737719 
    738720dnl -- end socket -- 
     
    10501032fi # libiconv 
    10511033 
     1034dnl -- IDN depends on iconv 
     1035 
     1036AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]), 
     1037                 [ 
     1038                  if test "$with_idn" != "no" ; then 
     1039                        if test "$with_idn" != "yes" ; then 
     1040                           CPPFLAGS="$CPPFLAGS -I$with_idn/include" 
     1041                           LDFLAGS="$LDFLAGS -L$with_idn/lib" 
     1042                        fi 
     1043                  fi 
     1044                 ] 
     1045) 
     1046 
     1047if test "x$with_idn" != "xno"; then 
     1048  if test "$am_cv_func_iconv" != "yes" 
     1049  then 
     1050    if test "x$with_idn" != "x" 
     1051    then 
     1052      AC_MSG_ERROR([IDN requested but iconv is disabled or unavailable]) 
     1053    fi 
     1054  else 
     1055    AC_CHECK_LIB(idn, stringprep_check_version) 
     1056    AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z) 
     1057    AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z) 
     1058    AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale) 
     1059  fi 
     1060fi 
     1061 
    10521062dnl -- locales -- 
    10531063