Re: [htdig] configure under BSD not finding fstream.h


Subject: Re: [htdig] configure under BSD not finding fstream.h
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Tue Sep 12 2000 - 15:07:11 PDT


According to Brett Rabideau:
> Thanks for cleaning up my syntax, Gilles (I'm running csh) - but still no
> joy. It still stumbles over my fstream.h (and I tried it both with local
> and without). Any ideas? I've attached my output below.
...
> {7} % setenv CFLAGS "-O2 -I/usr/local/include/g++"
> {8} % setenv CXXFLAGS "-O2 -I/usr/local/include/g++"
> {9} % ./configure --prefix=/usr/local
...
> checking for sys/select.h... yes
> checking for fstream.h... no
> configure: error: To compile ht://Dig, you will need a C++ library. Try
> installing libstdc++.

OK, I think I figured out the problem. There's the following comment
and code in ./configure:

  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  ac_cpp='$CPP $CPPFLAGS'

It also seems to add CPPFLAGS to the C and C++ compile commands.
So, I think this means you should do the following:

   % setenv CFLAGS "-O2"
   % setenv CXXFLAGS "-O2"
   % setenv CPPFLAGS "-I/usr/local/include/g++"
   % ./configure --prefix=/usr/local

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Tue Sep 12 2000 - 15:09:12 PDT