735 |
# |
# |
736 |
# _AC_LINK_CNT is used to be robust to multiple calls. |
# _AC_LINK_CNT is used to be robust to multiple calls. |
737 |
AU_DEFUN([AC_LINK_FILES], |
AU_DEFUN([AC_LINK_FILES], |
738 |
[AC_DIAGNOSE([obsolete], [ |
[m4_if($#, 2, , |
|
It is technically impossible to `autoupdate' cleanly from AC_LINK_FILES |
|
|
to AC_CONFIG_FILES. `autoupdate' provides a functional but inelegant |
|
|
update, you should probably tune the result yourself and remove this |
|
|
warning.]) |
|
|
m4_if($#, 2, , |
|
739 |
[m4_fatal([$0: incorrect number of arguments])])dnl |
[m4_fatal([$0: incorrect number of arguments])])dnl |
740 |
m4_define([_AC_LINK_FILES_CNT], m4_incr(_AC_LINK_FILES_CNT))dnl |
m4_define([_AC_LINK_FILES_CNT], m4_incr(_AC_LINK_FILES_CNT))dnl |
741 |
ac_sources="$1" |
ac_sources="$1" |
746 |
[ac_config_links_]_AC_LINK_FILES_CNT="$[ac_config_links_]_AC_LINK_FILES_CNT $ac_dest:$ac_source" |
[ac_config_links_]_AC_LINK_FILES_CNT="$[ac_config_links_]_AC_LINK_FILES_CNT $ac_dest:$ac_source" |
747 |
done |
done |
748 |
AC_CONFIG_LINKS($[ac_config_links_]_AC_LINK_FILES_CNT)dnl |
AC_CONFIG_LINKS($[ac_config_links_]_AC_LINK_FILES_CNT)dnl |
749 |
]) |
], |
750 |
|
dnl FIXME: Macros such as AC_USG put messages like this into an |
751 |
|
dnl AC_DIAGNOSE macro, in the first parameter of AU_DEFUN. We cannot |
752 |
|
dnl do the same with this one, because it makes no sense to print it |
753 |
|
dnl when running `autoconf -W obsolete' on a configure script that uses |
754 |
|
dnl AC_LINK_FILES. Instead, only `autoupdate' should print it (it may |
755 |
|
dnl be acceptable that autoupdated configure scripts print this message |
756 |
|
dnl when running `autoconf -W obsolete'). As of 2003-11-25, the third |
757 |
|
dnl argument to AU_DEFUN is broken, so this is never seen by the user. |
758 |
|
[ |
759 |
|
It is technically impossible to `autoupdate' cleanly from AC_LINK_FILES |
760 |
|
to AC_CONFIG_FILES. `autoupdate' provides a functional but inelegant |
761 |
|
update, you should probably tune the result yourself.])# AC_LINK_FILES |
762 |
|
|
763 |
|
|
764 |
# Initialize. |
# Initialize. |