From: nobu.nokada@... Date: 2004-09-01T10:34:12+09:00 Subject: Re: Followup on HPUX build issue Hi, At Wed, 1 Sep 2004 05:55:10 +0900, nesius wrote in [ruby-talk:111144]: > The test is: > $CC -o conftest $CFLAGS -lutil -E conftest.c > > -E tells both gcc and ansic to dump the pre-processor output. > gcc interprets -o as a directive to dump the output into conftest. > /opt/ansic/bin/cc, when it sees -E, does not understand -o. > it just dumps the output to stdout. A better way to do this > when using ansic is to use the '-P' directive, like so: > $CC $CFLAGS -P conftest.c. The preprocessor output will > be put into conftest.i. Thank you, I got it. RUBY_CPPOUTFILE in configure.in seems not to be working. Try this patch with deleting config.cache file. Index: configure.in =================================================================== RCS file: /cvs/ruby/src/ruby/configure.in,v retrieving revision 1.245 diff -u -2 -p -r1.245 configure.in --- configure.in 30 Aug 2004 06:16:29 -0000 1.245 +++ configure.in 1 Sep 2004 01:31:31 -0000 @@ -23,4 +23,5 @@ AC_DEFUN(RUBY_CPPOUTFILE, CPPFLAGS='-o conftest.i' AC_TRY_CPP([], rb_cv_cppoutfile=yes, rb_cv_cppoutfile=no) +test -f conftest.i || rb_cv_cppoutfile=no CPPFLAGS=$cppflags rm -f conftest*]) -- Nobu Nakada