diff --git a/src/modules/Oracle/configure.in b/src/modules/Oracle/configure.in
index 17d26b95ff3d55f3bbedfda970a3d6a15165f11d..e1e691026416f4e9dca05e0538db44c5bfcf0a96 100755
--- a/src/modules/Oracle/configure.in
+++ b/src/modules/Oracle/configure.in
@@ -1,5 +1,5 @@
 #
-# $Id: configure.in,v 1.22 2000/10/31 16:03:39 grubba Exp $
+# $Id: configure.in,v 1.23 2000/10/31 16:11:38 grubba Exp $
 #
 # Configure script for the oracle module
 #
@@ -129,8 +129,6 @@ if test x$with_oracle = xyes; then
 
   AC_MSG_RESULT($oracle_include_dir/rdbms/demo/)
 
-  AC_CHECK_HEADERS(oci.h ocidfn.h ociapr.h)
-
   AC_MSG_CHECKING(for sysliblist)
 
   AC_CACHE_VAL(pike_cv_oracle_sysliblist, [
@@ -185,6 +183,8 @@ if test x$with_oracle = xyes; then
       fi
     fi
 
+    AC_CHECK_HEADERS(oci.h ocidfn.h ociapr.h)
+
     OLDLIBS=LIBS
     LIBS="$ORACLE_LIBS $LIBS"