autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoheader: warning: missing template


From: Sam Steingold
Subject: Re: autoheader: warning: missing template
Date: Thu, 23 Apr 2009 15:17:40 -0400

Hi Ralf,

On Wed, Apr 22, 2009 at 2:24 PM, Ralf Wildenhues <address@hidden> wrote:
>
> * Sam Steingold wrote on Wed, Apr 22, 2009 at 03:10:42PM CEST:
>> On Tue, Apr 21, 2009 at 8:49 PM, Noah Misch <address@hidden> wrote:
>> > On Tue, Apr 21, 2009 at 05:51:33PM -0400, Sam Steingold wrote:
>> >> cd vacall && PATH/autoheader --include=PATH
>> >> autoheader: warning: missing template: __IREG_FLOAT_RETURN__
>> >> autoheader: Use AC_DEFINE([__IREG_FLOAT_RETURN__], [], [Description])
>> >
>> >>>   *yes) AC_DEFINE([__IREG_FLOAT_RETURN__]) ;;
>> >
>> > This warning refers to the lack of a third argument to AC_DEFINE.  
>> > autoheader
>> > expects you to use the three-argument form habitually.
>> >
>>
>> Nope, replacing the above with
>>
>>  *yes) AC_DEFINE([__IREG_FLOAT_RETURN__],[],[foo]) ;;
>>
>> did not change anything: the same error is signaled.
>
> In that case, please provide the Autoconf version used, and a

autoheader (GNU Autoconf) 2.62

> (preferably small) example to reproduce the issue.

the easiest way to reproduce the problem is:

$ cvs -d:pserver:address@hidden:/sources/libffcall co ffcall
$ cd ffcall/vacall
$ autoheader --include=..

(since autoconf is installed in a non-standard place, I set AC_MACRODIR).

however, this also works (i.e., does not work):

$ cat configure.in
AC_INIT
AC_CONFIG_HEADERS([config.h])
FFCALL_IREG_FLOAT_RETURN
AC_OUTPUT
$ cat aclocal.m4
dnl -*- Autoconf -*-
dnl Copyright (C) 1993-2009 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.

dnl From Bruno Haible, Marcus Daniels, Sam Steingold.

AC_PREREQ(2.13)

AC_DEFUN([FFCALL_IREG_FLOAT_RETURN],
[AC_CACHE_CHECK([whether floats are returned in integer registers],
ffcall_cv_c_float_return_ireg, [AC_TRY_RUN(GL_NOCRASH[
float x = (float)1.2;
float y = (float)1.3;
float fun () { return x*y; }
int main()
{ nocrash_init();
 {int val = (* (int (*) ()) fun) ();
  return !(val == 0x3FC7AE15 || val == 0x15AEC73F);
}}], ffcall_cv_c_float_return_ireg=yes, ffcall_cv_c_float_return_ireg=no,
dnl When cross-compiling, assume no, because that's how it comes out on
dnl most platforms with floating-point unit, including m68k-linux.
ffcall_cv_c_float_return_ireg="guessing no")
])
case "$ffcall_cv_c_float_return_ireg" in
  *yes) AC_DEFINE([__IREG_FLOAT_RETURN__]) ;;
  *no) ;;
esac
])
$ autoheader
autoheader: warning: missing template: __IREG_FLOAT_RETURN__
autoheader: Use AC_DEFINE([__IREG_FLOAT_RETURN__], [], [Description])
$


-- 
Sam Steingold <http://sds.podval.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]