fa8b8f0 AUTOTOOLS: Fix warning AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body

1 file Authored by lslebodn 7 years ago, Committed by nalin 7 years ago,
1 file changed. 9 lines added. 8 lines removed.
    AUTOTOOLS: Fix warning AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    
    Autoconf 2.68 requires that calling macros such as AC_PREPROC_IFELSE
    or AC_LINK_IFELSE requires the use of AC_LANG_SOURCE or AC_LANG_PROGRAM
    to generate the source code to compile.
    
    AC_LANG_PROGRAM was used but was not used properly:
    
    e.g.
      dnl Wrongly updated code (will still issue a warning)
      AC_LINK_IFELSE(AC_LANG_SOURCE([int main() { return 0; }]),
        [some=thing], [some=other])
    
      dnl Correctly updated code
      AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])],
        [some=thing], [some=other])
    
    Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
    
        
file modified
+9 -8