/[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 876 by zherczeg, Sun Jan 15 09:29:56 2012 UTC revision 912 by ph10, Sun Feb 12 16:53:39 2012 UTC
# Line 9  dnl The PCRE_PRERELEASE feature is for i Line 9  dnl The PCRE_PRERELEASE feature is for i
9  dnl be defined as -RC2, for example. For real releases, it should be empty.  dnl be defined as -RC2, for example. For real releases, it should be empty.
10    
11  m4_define(pcre_major, [8])  m4_define(pcre_major, [8])
12  m4_define(pcre_minor, [30])  m4_define(pcre_minor, [31])
13  m4_define(pcre_prerelease, [-PT1])  m4_define(pcre_prerelease, [-RC1])
14  m4_define(pcre_date, [2012-01-01])  m4_define(pcre_date, [2012-02-012])
15    
16    # NOTE: The CMakeLists.txt file searches for the above variables in the first
17    # 50 lines of this file. Please update that if the variables above are moved.
18    
19  # Libtool shared library interface versions (current:revision:age)  # Libtool shared library interface versions (current:revision:age)
20  m4_define(libpcre_version, [1:0:0])  m4_define(libpcre_version, [1:0:0])
# Line 23  AC_PREREQ(2.57) Line 26  AC_PREREQ(2.57)
26  AC_INIT(PCRE, pcre_major.pcre_minor[]pcre_prerelease, , pcre)  AC_INIT(PCRE, pcre_major.pcre_minor[]pcre_prerelease, , pcre)
27  AC_CONFIG_SRCDIR([pcre.h.in])  AC_CONFIG_SRCDIR([pcre.h.in])
28  AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])  AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])
29    m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
30  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
31    
32  # This was added at the suggestion of libtoolize (03-Jan-10)  # This was added at the suggestion of libtoolize (03-Jan-10)
# Line 532  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 747  AC_SUBST(EXTRA_LIBPCRE16_LDFLAGS) Line 774  AC_SUBST(EXTRA_LIBPCRE16_LDFLAGS)
774  AC_SUBST(EXTRA_LIBPCREPOSIX_LDFLAGS)  AC_SUBST(EXTRA_LIBPCREPOSIX_LDFLAGS)
775  AC_SUBST(EXTRA_LIBPCRECPP_LDFLAGS)  AC_SUBST(EXTRA_LIBPCRECPP_LDFLAGS)
776    
777  # When we run 'make distcheck', use these arguments.  # When we run 'make distcheck', use these arguments. Turning off compiler
778  DISTCHECK_CONFIGURE_FLAGS="--enable-pcre16 --enable-jit --enable-cpp --enable-unicode-properties"  # optimization makes it run faster.
779    DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-jit --enable-cpp --enable-unicode-properties"
780  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
781    
782  # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is  # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
# Line 791  if test "$enable_pcretest_libreadline" = Line 819  if test "$enable_pcretest_libreadline" =
819      echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."      echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
820      exit 1      exit 1
821    fi    fi
822    LIBREADLINE="-lreadline"    if test -z "$LIBREADLINE"; then
823        echo "** Cannot --enable-pcretest-readline because readline library was not found."
824        exit 1
825      fi
826  fi  fi
 AC_SUBST(LIBREADLINE)  
827    
828  # Produce these files, in addition to config.h.  # Produce these files, in addition to config.h.
829  AC_CONFIG_FILES(  AC_CONFIG_FILES(

Legend:
Removed from v.876  
changed lines
  Added in v.912

  ViewVC Help
Powered by ViewVC 1.1.5