title: checking for ZLB_Compress in -lzlib... no configure: error: zlib missing
body: <p>I got a really big and "old"(form me as a fresh graduate) client-server project. The client is in c++ for Windows and I managed to compile it, but the server is on linux and it is a pain because I don't know that well linux programming. I am trying to make it work in Ubuntu 14.04</p>
  
  <p>I get this error </p>
  
  <pre><code>checking for db_new in -ldb_psql... no
  configure: error: db_psql missing; install extc
  </code></pre>
  
  <p>So I searched the folders they have provided and foud some files named db_psql in a folder that has a configure.in file. I got with the terminal there and used the command</p>
  
  <pre><code>autoreconf -fis
  </code></pre>
  
  <p>which gives me this:</p>
  
  <pre><code>aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
  libtoolize: putting auxiliary files in `.'.
  libtoolize: linking file `./ltmain.sh'
  libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
  libtoolize: linking file `m4/libtool.m4'
  libtoolize: linking file `m4/ltoptions.m4'
  libtoolize: linking file `m4/ltsugar.m4'
  libtoolize: linking file `m4/ltversion.m4'
  libtoolize: linking file `m4/lt~obsolete.m4'
  libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
  aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
  automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
  automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
  </code></pre>
  
  <p>And then I use the command</p>
  
  <pre><code>./configure
  </code></pre>
  
  <p>But this gives me two errors saying that other packages are missing, I install them, and then it says that</p>
  
  <pre><code>checking for ZLB_Compress in -lzlib... no
  configure: error: zlib missing
  </code></pre>
  
  <p>and I am stuck here. Nothing seems to work. I even searched "zlib" in Ubuntu Software Center and installed everything in there(I installed zlib1g-dev and many others). I used  --with-zlib-dir=/usr</p>
  
  <p>I have this code in configure.in</p>
  
  <pre><code>AC_CHECK_LIB([zlib], [ZLB_Compress],
  
  [AMADEUS_LIBS="-lzlib $AMADEUS_LIBS"],
  
  [AC_MSG_ERROR([zlib missing])])
  </code></pre>
  
  <p>and this one in configure</p>
  
  <pre><code>#ifdef __cplusplus
  extern "C"
  #endif
  char ZLB_Compress ();
  int
  main ()
  {
  return ZLB_Compress ();
    ;
    return 0;
  }
  _ACEOF
  if ac_fn_c_try_link "$LINENO"; then :
    ac_cv_lib_zlib_ZLB_Compress=yes
  else
    ac_cv_lib_zlib_ZLB_Compress=no
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zlib_ZLB_Compress" &gt;&amp;5
  $as_echo "$ac_cv_lib_zlib_ZLB_Compress" &gt;&amp;6; }
  if test "x$ac_cv_lib_zlib_ZLB_Compress" = xyes; then :
    AMADEUS_LIBS="-lzlib $AMADEUS_LIBS"
  else
    as_fn_error $? "zlib missing" "$LINENO" 5
  fi
  </code></pre>