X-Spam-Check-By: sourceware.org Date: Thu, 30 Nov 2006 22:24:29 -0500 From: Bob Rossi To: cygwin AT cygwin DOT com Subject: Re: autoconf Message-ID: <20061201032429.GJ19404@cox.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <20061130220408 DOT GE19404 AT cox DOT net> <456F6D06 DOT 1050200 AT cygwin DOT com> <20061201002542 DOT GG19404 AT cox DOT net> <456F9741 DOT 20405 AT cygwin DOT com> <20061201030301 DOT GI19404 AT cox DOT net> <456F9D45 DOT 7040704 AT cygwin DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <456F9D45.7040704@cygwin.com> User-Agent: Mutt/1.5.12-2006-07-14 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 On Thu, Nov 30, 2006 at 10:11:01PM -0500, Larry Hall (Cygwin) wrote: > Bob Rossi wrote: > >On Thu, Nov 30, 2006 at 09:45:21PM -0500, Larry Hall (Cygwin) wrote: > >>Bob Rossi wrote: > >>>On Thu, Nov 30, 2006 at 06:45:10PM -0500, Larry Hall (Cygwin) wrote: > >>>>Bob Rossi wrote: > >>>>>Hi, > >>>>> > >>>>>I'm using autoconf. I notice when I use things like > >>>>>AC_CHECK_SIZEOF (int) > >>>>>that the ac_cv_sizeof_int has the value of "4\r". > >>>>> > >>>>>There is an extra carriage return in there. I start my configure > >>>>>script with > >>>>>./configure --build=mingw32 > >>>>>could that be the problem? > >>>>> > >>>>>Is there any solution to having these macro's work correctly on cygwin? > >>>>>or did I break it by using the --build option? BTW, I can't test it > >>>>>without the --build option because the configure script doesn't even > >>>>>get > >>>>>that far otherwise, since this is a mingw package (sort of). > >>>>Sounds to me like the file you're feeding to autoconf has DOS line > >>>>endings in > >>>>it. > >>>Yes, this is correct. The AC_CHECK_SIZEOF macro does not work with > >>>-mno-cygwin unless there is a cygwin version of 'cat' on the path. > >>> > >>>Is there a standard way to resolve this problem? > >> > >>I'm not sure. I'm assuming not using '-mno-cygwin' is not an option? > > > >Here's the full story. I'm trying to build apr. It needs to be built > >with mingw in order to have thread support. It specifically disables > >thread support with cygwin. So, instead of getting the mingw > >environment, I'd like to use the cygwin environment cause I my build > >system builds many other packages. > > > >I can't figure out how to get past this problem. Any help at all would > >be greatly appreciated. > > > >I even tried putting ~/bin/cat in my path, where cat does dos2unix and > >then calls /usr/bin/cat, but that didn't work either. I'm not sure why. > > > >I was sort of looking for a solution that was "clean". > > > Forgive me for being dense but why does the requirement to build apr with > -mno-cygwin mean that you have to run configure with it? OK, it's not > 'clean' but what else am I missing? Sorry, I'm very confused by your statement. I'm trying to configure/make/make install apr. I'm running configure to prepare to build. Am I missing something? Bob Rossi -- 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/