bug-autoconf
[Top][All Lists]
Advanced

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

Broken example in autoconf manual


From: Max Horn
Subject: Broken example in autoconf manual
Date: Thu, 16 Mar 2017 19:31:30 +0100

Hi there,

on https://www.gnu.org/software/autoconf/manual/autoconf.html#Using-System-Type

this example is given:

     case $host in
       alpha*-*-*)   AC_CONFIG_LINKS([dither.c:alpha/dither.c]) ;;
       powerpc*-*-*) AC_CONFIG_LINKS([dither.c:powerpc/dither.c]) ;;
       *-*-*)        AC_CONFIG_LINKS([dither.c:generic/dither.c]) ;;
     esac

But that doesn't actually work; inserting it into configure.ac leads to this 
error:

configure.ac:396: error: `dither.c' is already registered with AC_CONFIG_LINKS.
../../lib/autoconf/status.m4:921: AC_CONFIG_LINKS is expanded from...
configure.ac:396: the top level
autom4te-2.69: /usr/bin/m4 failed with exit status: 1


Which leaves me wondering how to achieve equivalent behavior correctly?


Cheers,
Max


reply via email to

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