]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: improve comments for _LT_ENABLE_LOCK implementation.
authorBrook Moses <bmoses@google.com>
Fri, 23 Aug 2013 03:23:33 +0000 (10:23 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 23 Aug 2013 03:23:33 +0000 (10:23 +0700)
* m4/libtool.m4 (_LT_ENABLE_LOCK): enhance comments to explain
why the code looks odd with 32bit flags in the 64bit section and
vice versa.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
m4/libtool.m4

index 08fb2a5d30654c973b8bad71a575abbcc4e88d41..55d7159c4cf528873ae70e7b68b89e5032a321ee 100644 (file)
@@ -1260,7 +1260,8 @@ test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 # libtool support.
 case $host in
 ia64-*-hpux*)
-  # Find out which ABI we are using.
+  # Find out which ABI is being produced by ac_compile, and set mode
+  # options accordingly.
   echo 'int i;' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     case `/usr/bin/file conftest.$ac_objext` in
@@ -1275,7 +1276,8 @@ ia64-*-hpux*)
   rm -rf conftest*
   ;;
 *-*-irix6*)
-  # Find out which ABI we are using.
+  # Find out which ABI is being produced by ac_compile, and set linker
+  # options accordingly.
   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     if test yes = "$lt_cv_prog_gnu_ld"; then
@@ -1309,7 +1311,12 @@ ia64-*-hpux*)
 
 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
-  # Find out which ABI we are using.
+  # Find out which ABI is being produced by ac_compile, and set linker
+  # options accordingly.  Note that the listed cases only cover the
+  # situations where additional linker options are needed (such as when
+  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
+  # vice versa); the common cases where no linker options are needed do
+  # not appear in the list.
   echo 'int i;' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     case `/usr/bin/file conftest.o` in
@@ -1383,7 +1390,8 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   fi
   ;;
 *-*solaris*)
-  # Find out which ABI we are using.
+  # Find out which ABI is being produced by ac_compile, and set linker
+  # options accordingly.
   echo 'int i;' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     case `/usr/bin/file conftest.o` in