/[pcre]/code/trunk/configure.ac
ViewVC logotype

Diff of /code/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 888 by ph10, Tue Jan 17 14:25:07 2012 UTC revision 889 by ph10, Tue Jan 17 14:51:50 2012 UTC
# Line 536  LIBS="$OLD_LIBS" Line 536  LIBS="$OLD_LIBS"
536    
537  AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_H=1])  AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_H=1])
538  AC_CHECK_HEADERS([readline/history.h], [HAVE_HISTORY_H=1])  AC_CHECK_HEADERS([readline/history.h], [HAVE_HISTORY_H=1])
539  AC_CHECK_LIB([readline], [readline], [HAVE_LIB_READLINE=1])  AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lreadline"],
540      [unset ac_cv_lib_readline_readline;
541       AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltinfo"],
542        [unset ac_cv_lib_readline_readline;
543         AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lcurses"],
544          [unset ac_cv_lib_readline_readline;
545           AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncurses"],
546            [unset ac_cv_lib_readline_readline;
547             AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-lncursesw"],
548              [unset ac_cv_lib_readline_readline;
549               AC_CHECK_LIB([readline], [readline], [LIBREADLINE="-ltermcap"],
550                [LIBREADLINE=""],
551                [-ltermcap])],
552              [-lncursesw])],
553            [-lncurses])],
554          [-lcurses])],
555        [-ltinfo])])
556    AC_SUBST(LIBREADLINE)
557    if test -n "$LIBREADLINE"; then
558      if test "$LIBREADLINE" != "-lreadline"; then
559        echo "-lreadline needs $LIBREADLINE"
560        LIBREADLINE="-lreadline $LIBREADLINE"
561      fi
562    fi
563    
564  # This facilitates -ansi builds under Linux  # This facilitates -ansi builds under Linux
565  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])
# Line 795  if test "$enable_pcretest_libreadline" = Line 818  if test "$enable_pcretest_libreadline" =
818      echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."      echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
819      exit 1      exit 1
820    fi    fi
821    LIBREADLINE="-lreadline"    if test -z "$LIBREADLINE"; then
822        echo "** Cannot --enable-pcretest-readline because readline library was not found."
823        exit 1
824      fi
825  fi  fi
 AC_SUBST(LIBREADLINE)  
826    
827  # Produce these files, in addition to config.h.  # Produce these files, in addition to config.h.
828  AC_CONFIG_FILES(  AC_CONFIG_FILES(

Legend:
Removed from v.888  
changed lines
  Added in v.889

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12