After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 116018 - Nonstandard Bourne shell code in configure script
Nonstandard Bourne shell code in configure script
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
1.4.x
Other All
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2003-06-26 13:22 UTC by Nelson H. F. Beebe
Modified: 2018-06-29 20:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nelson H. F. Beebe 2003-06-26 13:22:47 UTC
The gnucash-1.8.4 configure script makes extensive use of
$(...) (in 45 places).  This is not a Bourne shell feature,
but an extension of the Korn and Bash shells, ksh and bash.
The script begins #! /bin/sh, and thus fails on many systems.
Use `...` instead for shell portability.
Comment 1 Derek Atkins 2003-06-26 15:17:51 UTC
This is the fault of intltool.m4 and not us.  Hopefully future
versions of intltool will get this fixed.
Comment 2 Derek Atkins 2003-06-26 23:48:58 UTC
Actually, I just looked some more and it's not necessarily all
intltool.  I think some of it might be from libtool.m4.   Can you grab
a couple of snippets from the configure script and supply them here? 
Preferably find them from lots of different places in the script?
Comment 3 Derek Atkins 2003-07-03 13:59:45 UTC
*** Bug 116615 has been marked as a duplicate of this bug. ***
Comment 4 Brent Kearney 2004-05-26 22:10:35 UTC
Could this be what is causing 'configure' to bail on solaris 9?

gnucash-1.8.9)$ ./configure --prefix=/opt --with-gnome=/usr --disable-nls
--with-perl=/opt
/bin/perl
loading cache ./config.cache
checking for non-GNU ld... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for gcc... /opt/bin/gcc
checking whether the C compiler (/opt/bin/gcc  -L/opt/lib -L/opt/ssl/lib
-L/opt/BerkeleyDB.4.1/lib) works... yes
checking whether the C compiler (/opt/bin/gcc  -L/opt/lib -L/opt/ssl/lib
-L/opt/BerkeleyDB.4.1/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /opt/bin/gcc accepts -g... yes
checking for a BSD compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
./configure: syntax error at line 1384: `INTLTOOL_REQUIRED_VERSION_AS_INT=$'
unexpected
Comment 5 Derek Atkins 2004-05-26 22:16:03 UTC
yea, that's intltool.  as I said, not much we can do about it now..

Use bash on Solaris.
Comment 6 Christian Stimming 2005-11-11 10:11:51 UTC
The more recent intltool macros will have more standarized shell code. At least
gnucash-1.8.12 comes with a configure from a recent enough libtool.
Comment 7 John Ralls 2018-06-29 20:34:29 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=116018. Please update any external references or bookmarks.