Changeset 76 for trunk/configure.ac


Ignore:
Timestamp:
Dec 19, 2006, 10:01:59 PM (18 years ago)
Author:
rainer
Message:

Fix for ticket #38 (csv escaping) and #39 (building on cygwin). Also optimize a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r75 r76  
    2929
    3030GCC_STACK_PROTECT_CC
     31
    3132
    3233AC_HEADER_STDC
     
    392393if test "$sh_HAVE_LONG_LONG" = "yes"; then
    393394   AC_CHECK_SIZEOF(unsigned long long, 4)
    394    if test "$ac_cv_sizeof_unsigned_long_long" = "8"; then
     395   sh_sizeof_unsigned_long_long=`echo "$ac_cv_sizeof_unsigned_long_long" | sed 's%[^0-9]%%g'`
     396   if test "$sh_sizeof_unsigned_long_long" = "8"; then
    395397      AC_DEFINE(HAVE_LONG_LONG_64, 1, [Define if you have 64bit long long])
    396398   fi
     
    403405
    404406AC_CHECK_SIZEOF(unsigned long,  4)
    405 AC_CHECK_SIZEOF(unsigned int ,  4)
     407AC_CHECK_SIZEOF(unsigned int,   4)
    406408AC_CHECK_SIZEOF(unsigned short, 2)
    407409   
    408410
    409 if test "$ac_cv_sizeof_unsigned_long" = "4"; then
     411sh_sizeof_unsigned_long=`echo "$ac_cv_sizeof_unsigned_long" | sed 's%[^0-9]%%g'`
     412if test "$sh_sizeof_unsigned_long"  = "4"; then
    410413        AC_DEFINE(HAVE_LONG_32)
    411414fi
    412 if test "$ac_cv_sizeof_unsigned_long" = "8"; then
     415if test "$sh_sizeof_unsigned_long" = "8"; then
    413416        AC_DEFINE(HAVE_LONG_64)
    414417fi
    415 if test "$ac_cv_sizeof_unsigned_int" = "4"; then
     418sh_sizeof_unsigned_int=`echo "$ac_cv_sizeof_unsigned_int" | sed 's%[^0-9]%%g'`
     419if test "$sh_sizeof_unsigned_int"   = "4"; then
    416420        AC_DEFINE(HAVE_INT_32)
    417421fi
    418 
    419 dnl
    420 dnl For Alpha
    421 dnl
    422 if test "$ac_cv_sizeof_unsigned_int_" = "4"; then
    423         AC_DEFINE(HAVE_INT_32)
    424 fi
    425 if test "$ac_cv_sizeof_unsigned_short" = "4"; then
     422sh_sizeof_unsigned_short=`echo "$ac_cv_sizeof_unsigned_short" | sed 's%[^0-9]%%g'`
     423if test "$sh_sizeof_unsigned_short" = "4"; then
    426424        AC_DEFINE(HAVE_SHORT_32)
    427425fi
     
    528526AC_C_CONST
    529527AC_C_BIGENDIAN
     528AC_C_RESTRICT
    530529
    531530AM_SA_SIGACTION_WORKS
Note: See TracChangeset for help on using the changeset viewer.