| Last change
 on this file was             1, checked in by Paul Smedley, 10 years ago | 
        
          | 
Initial commit of Heimdal 1.5.3
 | 
        
          | File size:
            579 bytes | 
      
      
| Line |  | 
|---|
| 1 | dnl | 
|---|
| 2 | dnl $Id$ | 
|---|
| 3 | dnl | 
|---|
| 4 |  | 
|---|
| 5 | dnl | 
|---|
| 6 | dnl Test for __FUNCTION__ | 
|---|
| 7 | dnl | 
|---|
| 8 |  | 
|---|
| 9 | AC_DEFUN([AC_C___FUNCTION__], [ | 
|---|
| 10 | AC_MSG_CHECKING(for __FUNCTION__) | 
|---|
| 11 | AC_CACHE_VAL(ac_cv___function__, [ | 
|---|
| 12 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ | 
|---|
| 13 | #include <string.h> | 
|---|
| 14 |  | 
|---|
| 15 | static char *foo(void) | 
|---|
| 16 | { | 
|---|
| 17 | return __FUNCTION__; | 
|---|
| 18 | } | 
|---|
| 19 |  | 
|---|
| 20 | int main(int argc, char **argc) | 
|---|
| 21 | { | 
|---|
| 22 | return strcmp(foo(), "foo") != 0; | 
|---|
| 23 | } | 
|---|
| 24 | ]])], | 
|---|
| 25 | [ac_cv___function__=yes], | 
|---|
| 26 | [ac_cv___function__=no], | 
|---|
| 27 | [ac_cv___function__=no])]) | 
|---|
| 28 | if test "$ac_cv___function__" = "yes"; then | 
|---|
| 29 | AC_DEFINE(HAVE___FUNCTION__, 1, [define if your compiler has __FUNCTION__]) | 
|---|
| 30 | fi | 
|---|
| 31 | AC_MSG_RESULT($ac_cv___function__) | 
|---|
| 32 | ]) | 
|---|
| 33 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.