title: How do I specify LDFLAGS and CPPFLAGS for ./configure?
body: <p>I am using a Mac running OS X 10.8.3. I am trying to compile cgminer 3.0.0. On my first run of <code>./configure</code> I got the message:</p>
  
  <pre><code>checking for LIBCURL... no
  checking for LIBCURL... no
  configure: error: Missing required libcurl dev &gt;= 7.18.2
  </code></pre>
  
  <p>So I installed the latest version of libcurl using homebrew:</p>
  
  <pre><code>brew install curl
  </code></pre>
  
  <p>That <em>seemed</em> to do the trick. I got this message:</p>
  
  <pre><code>downloaded: /Library/Caches/Homebrew/curl-7.30.0.tar.gz
  ==&gt; ./configure --prefix=/usr/local/Cellar/curl/7.30.0
  ==&gt; make install
  ==&gt; Caveats
  This formula is keg-only: so it was not symlinked into /usr/local.
  
  Mac OS X already provides this software and installing another version in
  parallel can cause all kinds of trouble.
  
  The libcurl provided by Leopard is too old for CouchDB to use.
  
  Generally there are no consequences of this for you. If you build your
  own software and it requires this formula, you'll need to add to your
  build variables:
  
      LDFLAGS:  -L/usr/local/opt/curl/lib
      CPPFLAGS: -I/usr/local/opt/curl/include
  
  ==&gt; Summary
  /usr/local/Cellar/curl/7.30.0: 75 files, 2.0M, built in 61 seconds
  </code></pre>
  
  <p>Okay, so it's installed but not symlinked into <code>/usr/local</code>, that's fine with me. I tried this:</p>
  
  <pre><code>export LDFLAGS=-L/usr/local/opt/curl/lib
  export CPPFLAGS=-I/usr/local/opt/curl/include
  ./configure
  </code></pre>
  
  <p>But I got the same message: <code>configure: error: Missing required libcurl dev &gt;= 7.18.2</code></p>
  
  <p>So I tried this:</p>
  
  <pre><code>env LDFLAGS=-L/usr/local/opt/curl/lib CPPFLAGS=-I/usr/local/opt/curl/include ./configure
  </code></pre>
  
  <p>I'm still getting the "missing required libcurl" message. Any ideas?</p>