Building libtool (cvs) on cygwin generates the following error in libltdl: dlltool: Syntax error in def file .libs/libltdl-0.dll-def:1 The problem lies in the definition of 'archive_expsym_cmds' in libtool.m4. The variables '$#', '$2' and '$3' are being expanded by m4 into '0', '' and '' respectively. '[$]#', '[$]2' and '[$]3' should be used instead. The patch is attached. -- Regards, Paul Berrevoets
2000-11-18 Paul Berrevoets <[EMAIL PROTECTED]> * libtool.m4: Quote the $ in $#, $2 and $3 in variable 'archive_expsym_cmds' for cygwin. Index: libtool.m4 =================================================================== RCS file: /cvs/libtool/libtool.m4,v retrieving revision 1.123 diff -u -r1.123 libtool.m4 --- libtool.m4 2000/11/11 13:19:53 1.123 +++ libtool.m4 2000/11/18 15:45:18 @@ -1083,9 +1083,9 @@ _lt_hint=1; cat $export_symbols | while read symbol; do set dummy \$symbol; - case \$# in - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; + case \[$]# in + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; esac; _lt_hint=`expr 1 + \$_lt_hint`; done~