X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: Subject: RE: autoconf/configure problem on text mounts Date: Sun, 10 Aug 2008 19:40:21 +0100 Message-ID: <012e01c8fb18$8b46f7d0$9601a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com lemkemch wrote on 10 August 2008 18:46: > I am not familar enough with autoconf to be able to tell how that line > gets into configure. I can't find it in configure.in. All I can see is > stuff like AH_VERBATIM([HAVE_UINT64_T] and AC_CHECK_TYPES([uint8_t, > int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t]); I'd > guess it is releated to the latter. Yep. Those are macros that get expanded using m4 scripts based in /usr/share/autoconf to generate the configure script. > The contents of conftest.val are used later like > > ac_cv_sizeof_unsigned_int=`cat conftest.val` 'cat' always opens files in binary mode, as required by POSIX. > which adds a \r to the assignment causing later tests like > > if test "${ac_cv_sizeof_unsigned_int}" = "4"; then > ... > > to fail. > > Running autoconf on cygwin results in the same broken configure script. > > Any ideas what should be done other than not using a text mount? To me > opening the conftest.val file as text is wrong. Well... the content is plain text, after all; the problem arises on re-opening it implicitly in binary mode by using cat. Then again you could argue that since it's going to be opened by cat, it should be written in binary. This is an autoconf bug upstream really. They'd know best what how to patch it long term. If you wanted a quick local fix, you could edit /usr/share/autoconf/autoconf/c.m4 and change that fopen command at source, then any time you regenerate a configure script it'll come out ok for your text mount. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/