autoconf unable to process apr m4 macros which prevents successful build
------------------------------------------------------------------------

                 Key: TS-64
                 URL: https://issues.apache.org/jira/browse/TS-64
             Project: Traffic Server
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.0a
         Environment: RHEL4, automake-1.9.2, autoconf-2.59
            Reporter: Andrew Hsu
            Assignee: Andrew Hsu
             Fix For: 2.0a


autoreconf cannot process the configure.ac file with the new apr m4 macros:

configure.ac:514: warning: file `build-aux/apr_common.m4' included several times
configure.ac:515: warning: file `build-aux/apr_network.m4' included several 
times
configure.ac:514: warning: file `build-aux/apr_common.m4' included several times
configure.ac:515: warning: file `build-aux/apr_network.m4' included several 
times
configure:8673: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
make: *** [debug] Error 1

The proper location for these macros are in the 'm4' dir, not 'build-aux' 
because 'build-aux' is a generated dir during autoconf processing.

Once the files are moved to 'm4', they will automatically be included and the 
macros will be available for use in 'configure.ac' because of the 
'ACLOCAL_AMFLAGS' line in the toplevel 'Makefile.am'.  Therefore, the 
'sinclude()' lines can be removed from 'configure.ac'.

I already have a fix for this which I'll commit after this jira is created.

Cheers,
Andrew

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to