Show
Ignore:
Timestamp:
05/10/10 17:03:24 (2 years ago)
Author:
Philip Herron <redbrain@…>
Parents:
2d482ecb0a2abf82199a1f7c2350125d362c000f
Children:
d375779d1d4dfca413cc875bbe88abbdbf171a17
git-committer:
Philip Herron <redbrain@alpha.(none)> / 2010-05-10T17:03:24Z+0100
Message:

cleanup added autoconf check for libpcre3-dev for perl compatible regex semantics

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • configure.ac

    r10c72b9 raef58ba  
    8080AC_CANONICAL_HOST 
    8181 
    82 AC_ARG_WITH(include, 
    83   [AS_HELP_STRING([--with-include=<inc dir>], 
    84     [external include dir for headers, default null!])], 
    85   [xinclude="$withval"]) 
    86 if test "x$xinclude" != "x"; then 
    87    CFLAGS="$CFLAGS -I$xinclude" 
    88 else 
    89    xinclude="none" 
    90 fi 
    91  
    92 AC_ARG_WITH(lib, 
    93   [AS_HELP_STRING([--with-lib=<lib dir>], 
    94     [external lib dir for libraries, default null!])], 
    95   [xlib="$withval"]) 
    96 if test "x$xlib" != "x"; then 
    97    LDFLAGS="$LDFLAGS -L$xlib" 
    98 else 
    99    xlib="none" 
    100 fi 
    101  
    102 CFLAGS_save="$CFLAGS" 
    103 CFLAGS="" 
     82 
     83# CFLAGS_save="$CFLAGS" 
     84# CFLAGS="$" 
    10485 
    10586xpkgs="" 
     
    160141  [AC_MSG_ERROR([MPFR not found, see http://www.mpfr.org/])]) 
    161142AC_CHECK_SIZEOF(mp_limb_t, , [#include <gmp.h>]) 
     143 
     144AC_CHECK_LIB([pcre], [pcre_compile], , 
     145  [AC_MSG_ERROR([Libpcre3 - Perl Regex not found. \ 
     146On Debfian can be found via libpcre3-dev])]) 
    162147 
    163148VL_LIB_READLINE 
     
    226211AC_CHECK_SIZEOF(long long) 
    227212AC_CHECK_SIZEOF(crl_symbol_obj, , \ 
    228   [#include "crules/symbols.h"]) 
     213  [#include "include/crules/symbols.h"]) 
    229214 
    230215# Checks for header files. 
     
    235220                  stdint.h stdio.h getopt.h \ 
    236221                  assert.h sys/types.h signal.h \ 
    237                   fcntl.h pthread.h sys/wait.h]) 
     222                  fcntl.h pthread.h sys/wait.h \ 
     223                  gmp.h mpfr.h pcre.h]) 
    238224 
    239225# Checks for typedefs, structures, and compiler characteristics. 
     
    269255echo "   * LEX version:               $LEX" 
    270256echo "   * Perl support:              $XPERL" 
    271 echo "   * External include dir:      $xinclude" 
    272 echo "   * External lib dir           $xlib" 
    273 echo "   * Multi-Precision:           yes" 
     257echo "   * GMP & MPFR support:        yes" 
     258echo "   * Perl Regex Support:        yes" 
    274259echo "   * POSIX pthreads:            $pthread" 
    275260echo "   * DEBUG Symbols:             $debug"