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. |
| 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. 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 | {{{ |
| 8 | Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ cd /Users/ericgallager/autoconf_bug_reports_dir |
| 9 | Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ mkdir m4 |
| 10 | Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -al |
| 11 | total 24 |
| 12 | drwxr-xr-x 5 ericgallager staff 170 Mar 8 12:59 . |
| 13 | drwxr-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 |
| 16 | drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 m4 |
| 17 | Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -alR |
| 18 | total 24 |
| 19 | drwxr-xr-x 5 ericgallager staff 170 Mar 8 12:59 . |
| 20 | drwxr-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 |
| 23 | drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 m4 |
| 24 | |
| 25 | ./m4: |
| 26 | total 160 |
| 27 | drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 . |
| 28 | drwxr-xr-x 5 ericgallager staff 170 Mar 8 12:59 .. |
| 29 | -rw-r--r--@ 1 ericgallager staff 77897 Jan 10 2013 tcl.m4 |
| 30 | Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ cat configure.ac |
| 31 | AC_INIT([testcase]) |
| 32 | AC_CONFIG_MACRO_DIR([m4]) |
| 33 | SC_PATH_TCLCONFIG |
| 34 | SC_PATH_TKCONFIG |
| 35 | SC_LOAD_TCLCONFIG |
| 36 | SC_LOAD_TKCONFIG |
| 37 | SC_ENABLE_SHARED |
| 38 | SC_ENABLE_FRAMEWORK |
| 39 | SC_ENABLE_THREADS |
| 40 | SC_ENABLE_SYMBOLS |
| 41 | SC_ENABLE_LANGINFO |
| 42 | SC_CONFIG_MANPAGES |
| 43 | SC_CONFIG_CFLAGS |
| 44 | SC_SERIAL_PORT |
| 45 | SC_MISSING_POSIX_HEADERS |
| 46 | SC_PATH_X |
| 47 | SC_BLOCKING_STYLE |
| 48 | SC_TIME_HANLDER |
| 49 | SC_BUGGY_STRTOD |
| 50 | SC_TCL_LINK_LIBS |
| 51 | SC_TCL_EARLY_FLAGS |
| 52 | SC_TCL_64BIT_FLAGS |
| 53 | SC_PUBLIC_TCL_HEADERS |
| 54 | |
| 55 | AC_OUTPUT |
| 56 | Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ autoreconf -fvi -Wall |
| 57 | autoreconf: Entering directory `.' |
| 58 | autoreconf: configure.ac: not using Gettext |
| 59 | autoreconf: running: aclocal --force --warnings=all |
| 60 | m4/tcl.m4:67: warning: underquoted definition of SC_PATH_TCLCONFIG |
| 61 | m4/tcl.m4:67: run info Automake 'Extending aclocal' |
| 62 | m4/tcl.m4:67: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal |
| 63 | autoreconf: configure.ac: tracing |
| 64 | configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 65 | configure.ac:11: You should run autoupdate. |
| 66 | ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... |
| 67 | m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from... |
| 68 | configure.ac:11: the top level |
| 69 | configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete. |
| 70 | configure.ac:13: You should run autoupdate. |
| 71 | ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... |
| 72 | m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... |
| 73 | configure.ac:13: the top level |
| 74 | configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 75 | configure.ac:13: You should run autoupdate. |
| 76 | ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... |
| 77 | m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... |
| 78 | configure.ac:13: the top level |
| 79 | configure.ac:14: warning: The macro `AC_TRY_RUN' is obsolete. |
| 80 | configure.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... |
| 84 | m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from... |
| 85 | configure.ac:14: the top level |
| 86 | configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete. |
| 87 | configure.ac:15: You should run autoupdate. |
| 88 | ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... |
| 89 | m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... |
| 90 | configure.ac:15: the top level |
| 91 | configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete. |
| 92 | configure.ac:15: You should run autoupdate. |
| 93 | ../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... |
| 94 | m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... |
| 95 | configure.ac:15: the top level |
| 96 | configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete. |
| 97 | configure.ac:16: You should run autoupdate. |
| 98 | ../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from... |
| 99 | m4/tcl.m4:2043: SC_PATH_X is expanded from... |
| 100 | configure.ac:16: the top level |
| 101 | configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete. |
| 102 | configure.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... |
| 106 | m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from... |
| 107 | configure.ac:19: the top level |
| 108 | configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 109 | configure.ac:21: You should run autoupdate. |
| 110 | ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... |
| 111 | m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from... |
| 112 | m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from... |
| 113 | configure.ac:21: the top level |
| 114 | configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 115 | configure.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... |
| 119 | m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... |
| 120 | configure.ac:22: the top level |
| 121 | configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete. |
| 122 | configure.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... |
| 126 | m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... |
| 127 | configure.ac:22: the top level |
| 128 | autoreconf: configure.ac: not using Libtool |
| 129 | autoreconf: running: /opt/local/bin/autoconf --force --warnings=all |
| 130 | configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 131 | configure.ac:11: You should run autoupdate. |
| 132 | ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... |
| 133 | m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from... |
| 134 | configure.ac:11: the top level |
| 135 | configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete. |
| 136 | configure.ac:13: You should run autoupdate. |
| 137 | ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... |
| 138 | m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... |
| 139 | configure.ac:13: the top level |
| 140 | configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 141 | configure.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... |
| 145 | m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from... |
| 146 | configure.ac:14: the top level |
| 147 | configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete. |
| 148 | configure.ac:15: You should run autoupdate. |
| 149 | ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... |
| 150 | m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... |
| 151 | configure.ac:15: the top level |
| 152 | configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete. |
| 153 | configure.ac:15: You should run autoupdate. |
| 154 | ../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... |
| 155 | m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... |
| 156 | configure.ac:15: the top level |
| 157 | configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete. |
| 158 | configure.ac:16: You should run autoupdate. |
| 159 | ../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from... |
| 160 | m4/tcl.m4:2043: SC_PATH_X is expanded from... |
| 161 | configure.ac:16: the top level |
| 162 | configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete. |
| 163 | configure.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... |
| 167 | m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from... |
| 168 | configure.ac:19: the top level |
| 169 | configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 170 | configure.ac:21: You should run autoupdate. |
| 171 | ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... |
| 172 | m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from... |
| 173 | m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from... |
| 174 | configure.ac:21: the top level |
| 175 | configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete. |
| 176 | configure.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... |
| 180 | m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... |
| 181 | configure.ac:22: the top level |
| 182 | configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete. |
| 183 | configure.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... |
| 187 | m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... |
| 188 | configure.ac:22: the top level |
| 189 | autoreconf: configure.ac: not using Autoheader |
| 190 | autoreconf: configure.ac: not using Automake |
| 191 | autoreconf: Leaving directory `.' |
| 192 | }}} |
| 193 | You 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. |