]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (infer_tag, win32_libid): Style changes. Rename
authorPeter O'Gorman <peter@pogma.com>
Thu, 5 Feb 2004 14:53:16 +0000 (14:53 +0000)
committerPeter O'Gorman <peter@pogma.com>
Thu, 5 Feb 2004 14:53:16 +0000 (14:53 +0000)
infer_tag to func_infer_tag and win32_libid to func_win32_libid.
* m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid.

ChangeLog
ltmain.in
m4/libtool.m4

index 99d04103c01b1f474dc4e8871066a3a4472b3007..9f98742370b38076663c0fbeca0b6843fdde2d13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-05  Peter O'Gorman  <peter@pogma.com>
+       
+       * ltmain.in (infer_tag, win32_libid): Style changes. Rename
+       infer_tag to func_infer_tag and win32_libid to func_win32_libid.
+       * m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid.
+       
 2004-02-04  Peter O'Gorman  <peter@pogma.com>
 
        * ltmain.in (infer_tag): Move tag inferrence to a shell function.
index f0bb046ec615aad33cd98e76fc7d082932482cd8..30a20e3c301ae783e4344510b534873735671be9 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -119,10 +119,13 @@ o2lo="s/\\.${objext}\$/.lo/"
 # Shell function definitions:
 # This seems to be the best place for them
 
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
 # Need a lot of goo to handle *both* DLLs and import libs
 # Has to be a shell function in order to 'eat' the argument
 # that is supplied when $file_magic_command is called.
-win32_libid () {
+func_win32_libid () {
   win32_libid_type="unknown"
   win32_fileres=`file -L $1 2>/dev/null`
   case $win32_fileres in
@@ -157,11 +160,13 @@ win32_libid () {
 
 
 
-infer_tag () {
-    # Infer tagged configuration to use if any are available and
-    # if one wasn't chosen via the "--tag" command line option.
-    # Only attempt this if the compiler in the base compile
-    # command doesn't match the default compiler.
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag () {
     if test -n "$available_tags" && test -z "$tagname"; then
       CC_quoted=
       for arg in $CC; do
@@ -567,7 +572,7 @@ exec_cmd=
       ;;
     esac
     
-    infer_tag $base_compile
+    func_infer_tag $base_compile
 
     for arg in $later; do
       case $arg in
@@ -926,7 +931,7 @@ EOF
     vinfo=
     vinfo_number=no
 
-    infer_tag $base_compile
+    func_infer_tag $base_compile
 
     # We need to know -static, to get the right output filenames.
     for arg
index d5a7b14617cf6444b2c3318a4517dbfeedcc6499..43924aab354d2dd86c7e19c2ddd2b26e4a0f5ae4 100644 (file)
@@ -2546,13 +2546,13 @@ bsdi4*)
   ;;
 
 cygwin*)
-  # win32_libid is a shell function defined in ltmain.sh
+  # func_win32_libid is a shell function defined in ltmain.sh
   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
-  lt_cv_file_magic_cmd='win32_libid'
+  lt_cv_file_magic_cmd='func_win32_libid'
   ;;
 
   # Base MSYS/MinGW do not provide the 'file' command needed by
-  # win32_libid shell function, so use a weaker test based on 'objdump'.
+  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 mingw* | pw32*)
   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
   lt_cv_file_magic_cmd='$OBJDUMP -f'