Pinentry svn 188 problems configure.ac and undefined macros

Tom Pegios tomp at idirect.com
Sun Nov 2 07:24:22 CET 2008


Hello

	In trying to compile pinentry svn 188 I came across 2 problems.

1) ./autogen.sh generated the following errors:

$ ./autogen.sh
Running aclocal -I m4 ...
configure.ac:240: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not
m4_defun'd
configure.ac:240: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
Running autoheader...
configure.ac:240: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not
m4_defun'd
configure.ac:240: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
Running automake --gnu ...
configure.ac:240: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not
m4_defun'd
configure.ac:240: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
Running autoconf...
configure.ac:240: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not
m4_defun'd
configure.ac:240: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
configure:9098: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
configure:9099: error: possibly undefined macro: AC_LIB_RPATH
configure:9104: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY
configure:9112: error: possibly undefined macro: AC_LIB_APPENDTOVAR

By using 'lib-prefix.m4' 'lib-link.m4' and 'lib-ld.m4' from 'gpg/m4'
sources and placing these files in '/pinentry/m4', autogen.sh produced
no errors.

2) when running ./configure --enable-maintainer-mode I got the following
error:
./configure: line 13481: syntax error near unexpected token `QT4_CORE,'
./configure: line 13481: `PKG_CHECK_MODULES(QT4_CORE, QtCore,,'

I commented out lines 369 to 379 in configure.ac and run configure again
with 'QT4_GUI' producing the same error so I also commented out 381 to
391 (as I don't need QT4) and then ran
./configure --enable-maintainer-mode and make generating
'pinentry-w32.exe' & 'pinentry' without errors.

	This was the first time I used svn sources to build pinentry the
release versions didn't need ./autogen.sh and
./configure --enable-maintainer-mode so I tried to rebuild v1.74 and
1.75, using ./autogen.sh producing the same errors ( undefined macros )
just as the svn version. Could this be something I'm doing wrong??

Regards
Tom Pegios





More information about the Gnupg-devel mailing list