Changes between Initial Version and Version 1 of Ticket #39752, comment 6


Ignore:
Timestamp:
Mar 8, 2014, 6:07:14 PM (11 years ago)
Author:
cooljeanius (Eric Gallager)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39752, comment 6

    initial v1  
    44>
    55> In what way are the macros in tcl.m4 out of date?
    6 Try running `autoreconf` with the `-Wall` flag in a project that contains the standard tcl.m4 file in it, and uses all the macros from it (actually let me whip up a reduced test case to do that). It will print a bunch of warnings about obsolete macros: [[BR]]
    7 (will paste results here later) [[BR]]
    8 You can run `autoupdate` on it, but doing that leaves behind some artifacts that have to be fixed manually. I will attach a diff to illustrate in a bit.
     6Try running `autoreconf` with the `-Wall` flag in a project that contains the standard tcl.m4 file in it, and uses all the macros from it. It will print a bunch of warnings about obsolete macros, as shown in this reduced test case I made using the tcl.m4 file from MacPorts base:
     7{{{
     8Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ cd /Users/ericgallager/autoconf_bug_reports_dir
     9Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ mkdir m4
     10Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -al
     11total 24
     12drwxr-xr-x    5 ericgallager  staff   170 Mar  8 12:59 .
     13drwxr-xr-x+ 161 ericgallager  staff  5474 Mar  8 12:38 ..
     14-rw-r--r--@   1 ericgallager  staff  6148 Mar  8 12:59 .DS_Store
     15-rw-r--r--@   1 ericgallager  staff    57 Mar  8 12:48 configure.ac
     16drwxr-xr-x    3 ericgallager  staff   102 Mar  8 12:59 m4
     17Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -alR
     18total 24
     19drwxr-xr-x    5 ericgallager  staff   170 Mar  8 12:59 .
     20drwxr-xr-x+ 161 ericgallager  staff  5474 Mar  8 12:38 ..
     21-rw-r--r--@   1 ericgallager  staff  6148 Mar  8 12:59 .DS_Store
     22-rw-r--r--@   1 ericgallager  staff    57 Mar  8 12:48 configure.ac
     23drwxr-xr-x    3 ericgallager  staff   102 Mar  8 12:59 m4
     24
     25./m4:
     26total 160
     27drwxr-xr-x  3 ericgallager  staff    102 Mar  8 12:59 .
     28drwxr-xr-x  5 ericgallager  staff    170 Mar  8 12:59 ..
     29-rw-r--r--@ 1 ericgallager  staff  77897 Jan 10  2013 tcl.m4
     30Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ cat configure.ac
     31AC_INIT([testcase])
     32AC_CONFIG_MACRO_DIR([m4])
     33SC_PATH_TCLCONFIG
     34SC_PATH_TKCONFIG
     35SC_LOAD_TCLCONFIG
     36SC_LOAD_TKCONFIG
     37SC_ENABLE_SHARED
     38SC_ENABLE_FRAMEWORK
     39SC_ENABLE_THREADS
     40SC_ENABLE_SYMBOLS
     41SC_ENABLE_LANGINFO
     42SC_CONFIG_MANPAGES
     43SC_CONFIG_CFLAGS
     44SC_SERIAL_PORT
     45SC_MISSING_POSIX_HEADERS
     46SC_PATH_X
     47SC_BLOCKING_STYLE
     48SC_TIME_HANLDER
     49SC_BUGGY_STRTOD
     50SC_TCL_LINK_LIBS
     51SC_TCL_EARLY_FLAGS
     52SC_TCL_64BIT_FLAGS
     53SC_PUBLIC_TCL_HEADERS
     54
     55AC_OUTPUT
     56Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ autoreconf -fvi -Wall
     57autoreconf: Entering directory `.'
     58autoreconf: configure.ac: not using Gettext
     59autoreconf: running: aclocal --force --warnings=all
     60m4/tcl.m4:67: warning: underquoted definition of SC_PATH_TCLCONFIG
     61m4/tcl.m4:67:   run info Automake 'Extending aclocal'
     62m4/tcl.m4:67:   or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
     63autoreconf: configure.ac: tracing
     64configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete.
     65configure.ac:11: You should run autoupdate.
     66../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     67m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
     68configure.ac:11: the top level
     69configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete.
     70configure.ac:13: You should run autoupdate.
     71../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     72m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     73configure.ac:13: the top level
     74configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete.
     75configure.ac:13: You should run autoupdate.
     76../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     77m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     78configure.ac:13: the top level
     79configure.ac:14: warning: The macro `AC_TRY_RUN' is obsolete.
     80configure.ac:14: You should run autoupdate.
     81../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     82../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     83../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     84m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from...
     85configure.ac:14: the top level
     86configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
     87configure.ac:15: You should run autoupdate.
     88../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     89m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     90configure.ac:15: the top level
     91configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete.
     92configure.ac:15: You should run autoupdate.
     93../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from...
     94m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     95configure.ac:15: the top level
     96configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete.
     97configure.ac:16: You should run autoupdate.
     98../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from...
     99m4/tcl.m4:2043: SC_PATH_X is expanded from...
     100configure.ac:16: the top level
     101configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete.
     102configure.ac:19: You should run autoupdate.
     103../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     104../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     105../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     106m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from...
     107configure.ac:19: the top level
     108configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete.
     109configure.ac:21: You should run autoupdate.
     110../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     111m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from...
     112m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from...
     113configure.ac:21: the top level
     114configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete.
     115configure.ac:22: You should run autoupdate.
     116../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     117../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     118../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     119m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
     120configure.ac:22: the top level
     121configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete.
     122configure.ac:22: You should run autoupdate.
     123../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     124../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     125../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     126m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
     127configure.ac:22: the top level
     128autoreconf: configure.ac: not using Libtool
     129autoreconf: running: /opt/local/bin/autoconf --force --warnings=all
     130configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete.
     131configure.ac:11: You should run autoupdate.
     132../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     133m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
     134configure.ac:11: the top level
     135configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete.
     136configure.ac:13: You should run autoupdate.
     137../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     138m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     139configure.ac:13: the top level
     140configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete.
     141configure.ac:13: You should run autoupdate.
     142../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     143../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     144../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     145m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from...
     146configure.ac:14: the top level
     147configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
     148configure.ac:15: You should run autoupdate.
     149../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     150m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     151configure.ac:15: the top level
     152configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete.
     153configure.ac:15: You should run autoupdate.
     154../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from...
     155m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     156configure.ac:15: the top level
     157configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete.
     158configure.ac:16: You should run autoupdate.
     159../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from...
     160m4/tcl.m4:2043: SC_PATH_X is expanded from...
     161configure.ac:16: the top level
     162configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete.
     163configure.ac:19: You should run autoupdate.
     164../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     165../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     166../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     167m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from...
     168configure.ac:19: the top level
     169configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete.
     170configure.ac:21: You should run autoupdate.
     171../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     172m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from...
     173m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from...
     174configure.ac:21: the top level
     175configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete.
     176configure.ac:22: You should run autoupdate.
     177../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     178../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     179../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     180m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
     181configure.ac:22: the top level
     182configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete.
     183configure.ac:22: You should run autoupdate.
     184../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
     185../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
     186../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
     187m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
     188configure.ac:22: the top level
     189autoreconf: configure.ac: not using Autoheader
     190autoreconf: configure.ac: not using Automake
     191autoreconf: Leaving directory `.'
     192}}}
     193You can run `autoupdate` on it, but doing that leaves behind some artifacts that have to be fixed manually. I will attach some diffs to illustrate in a bit.