Ignore:
Timestamp:
Oct 27, 2007, 9:29:39 PM (15 years ago)
Author:
charles
Message:

compatability with older C copmilers (ticket #422, patch by fizz)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/configure.ac

    r3537 r3605  
    3939AC_SEARCH_LIBS([socket], [socket net])
    4040AC_SEARCH_LIBS([gethostbyname], [nsl bind])
     41
     42dnl ----------------------------------------------------------------------------
     43dnl
     44dnl va_copy
     45
     46AC_MSG_CHECKING([how to copy va_list])
     47AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
     48    AC_MSG_RESULT([va_copy]),
     49        [ AH_TEMPLATE([va_copy], [define if va_copy is not available])
     50        AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);],
     51        [ AC_DEFINE([va_copy], [__va_copy])
     52        AC_MSG_RESULT([__va_copy])],
     53        [ AC_DEFINE([va_copy(dest,src)], [memcpy(&dest,&src,sizeof(va_list))])
     54        AC_MSG_RESULT([memcpy])]
     55    )
     56])
     57
    4158
    4259dnl ----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.