Mats Erik Andersson <[email protected]> writes:

> +AC_ARG_WITH([libidn-prefix],
> +  AC_HELP_STRING([--with-libidn-prefix[[=DIR]]],
> +              [Base directory, probes DIR/include and DIR/lib]), ,
> +              [with_libidn_prefix=no])
...
>  if test x"$with_idn" != xno \
>      && test "$ac_cv_header_locale_h" = yes \
>      && test "$ac_cv_func_setlocale" = yes; then
> -  AC_MSG_CHECKING([if GNU libidn is available])
> +  if test x"$with_libidn_prefix" != xno \
> +      && test x"$with_libidn_prefix" != xyes; then
> +    INCIDN=-I$with_libidn_prefix/include
> +    LIBIDN=-L$with_libidn_prefix/lib
> +  fi

Why not just use gnulib's AC_LIB_HAVE_LINKFLAGS (m4/lib-link.m4)?

/Simon

Reply via email to