[prev in list] [next in list] [prev in thread] [next in thread] 

List:       autoconf
Subject:    Re: executable suffix 0 ?
From:       Assar Westerlund <assar () sics ! se>
Date:       2000-12-26 21:50:27
Message-ID: 5lofxykg2k.fsf () assaris ! sics ! se
[Download RAW message or body]

--=-=-=

I wrote:
> Running a configure generated from the current autoconf on HP-UX 10.20
> gives me an executable prefix '0'.
> 
> This seems to be the result of:
> 
> expr conftest : [^.]*\(\..*\)
> 
> And I do get the same result from another set of expr's that I tried
> it with (including GNU expr (GNU sh-utils 2.0)).

I did fix it with the appended patch but I'm not clear on if this is
the right way.

/assar

--=-=-=
Content-Disposition: attachment

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.103
diff -u -w -u -w -r1.103 aclang.m4
--- aclang.m4	2000/12/20 18:41:10	1.103
+++ aclang.m4	2000/12/26 21:49:10
@@ -670,6 +667,9 @@
   case $ac_file in
     *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+       if test "$ac_cv_exeext" = "0"; then
+         ac_cv_exeext=
+       fi
        break;;
   esac
 done],
@@ -695,6 +695,9 @@
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+       if test "$ac_cv_exeext" = "0"; then
+         ac_cv_exeext=
+       fi
        break;;
   esac
 done],

--=-=-=--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic