2000-12-17 Tom Tromey <tromey@redhat.com>
+ * automake.in (handle_ltlibraries): Check for LDFLAGS variables
+ before using values.
+
* automake.in (handle_ltlibraries): Allow _LDFLAGS to be
conditionally defined. Fixes PR automake/77 and ldflags.test.
# Check that the library fits the standard naming convention.
$libname_rx = "^lib.*\.la";
- if (grep (/-module/, &variable_value_as_list ($xlib . '_LDFLAGS',
- 'all'))
- || grep (/-module/, &variable_value_as_list ('LDFLAGS', 'all')))
+ if ((&variable_defined ($xlib . '_LDFLAGS')
+ && grep (/-module/, &variable_value_as_list ($xlib . '_LDFLAGS',
+ 'all')))
+ || (&variable_defined ('LDFLAGS')
+ && grep (/-module/, &variable_value_as_list ('LDFLAGS',
+ 'all'))))
{
# Relax name checking for libtool modules.
$libname_rx = "\.la";