--- configure.orig	Mon Nov 24 22:46:51 2003
+++ configure	Sat Jun 30 01:24:06 2007
@@ -6567,6 +6567,7 @@ if test -z "$aix_libpath"; then aix_libp
       hardcode_libdir_flag_spec='-R$libdir'
       hardcode_direct=yes
       hardcode_shlibpath_var=no
+      archive_cmds_need_lc=no
       ;;
 
     hpux9*)
@@ -19768,7 +19769,7 @@ fi
 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
-  GDBM_LIBS="-lgdbm"
+  GDBM_LIBS="$LIBS -lgdbm"
 else
   { { echo "$as_me:$LINENO: error: Cannot find GDBM library" >&5
 echo "$as_me: error: Cannot find GDBM library" >&2;}
