Branch: Tag:

1997-09-22

1997-09-22 11:09:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved test for const.

Rev: src/configure.in:1.122

1: - AC_REVISION("$Id: configure.in,v 1.121 1997/09/21 21:08:02 nisse Exp $") + AC_REVISION("$Id: configure.in,v 1.122 1997/09/22 11:09:27 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
463:      AC_C_CONST    + # The above doesn't find IBM C's buggy const. +  + if test "$ac_cv_c_const" = "yes"; then +  AC_MSG_CHECKING(if const really does work) +  AC_TRY_COMPILE([ + const int foo(int bar) { return bar; } +  ], [ +  return bar(0); +  ], [], [ +  ac_cv_c_const=no +  AC_DEFINE(const, []) +  ]) +  AC_MSG_RESULT($ac_cv_c_const) + fi +    #############################################################################      AC_MSG_CHECKING(first yacc define)