My autoconf version is 2.13. m4 is GNU m4 1.4. 

I have the following in my configure.in:

AC_CHECK_FUNCS(dlopen, , AC_CHECK_LIB(dl,dlopen, ,
    [AC_MSG_ERROR([
*** Zen does not function properly without dlopen, sorry.])]))

The idea is to check for dlopen, and if it's not found, check for it
in libdl, and if it's not found there either, print an error
message. Now, autoconf doesn't seem to understand that I have quoted
the error string, and produces (among other things) this piece of
code:

...
...
  LIBS="-ldl $LIBS"

else
  echo "$ac_t""no" 1>&6
{ echo "configure: error:
*** Zen does not function properly without dlopen
fi
done



As can be seen, the error string is cut off at the comma, resulting in
an syntax error in the script. If I remove the comma, the code becomes
this:

...
...
  LIBS="-ldl $LIBS"

else
  echo "$ac_t""no" 1>&6
{ echo "configure: error:
*** Zen does not function properly without dlopen sorry." 1>&2; exit 1; }
fi

fi
done


That works as expected.


I got a suggestion on the automake list to quote AC_CHECK_LIB(...)
too, but that gave the same, wrong result. The bug reporting address
on the autoconf online manual is [EMAIL PROTECTED], but I
was suggested on the automake list to mail [EMAIL PROTECTED]
instead. Maybe an update of the manual and the webpage is needed, as
there is no mention of the [EMAIL PROTECTED] anywhere.

Please CC me the reply, since I'm not on the list.


Greetings,

Tomas


Reply via email to