Skip to content

Commit

Permalink
- Search for sqlite3.h in the configure script
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7264 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 2, 2010
1 parent 786026a commit 16ba9bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions configure
Expand Up @@ -3692,14 +3692,17 @@ fi
done


for ac_header in sys/time.h
for ac_header in sys/time.h sqlite3.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes; then :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_TIME_H 1
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
as_fn_error $? "Missing header files" "$LINENO" 5
fi

done
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -105,7 +105,7 @@ dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(sys/time.h sqlite3.h, [], [AC_MSG_ERROR(Missing header files)])

AC_MSG_CHECKING([for rml includefiles in $rmlhome])
rmlinc=`find $rmlhome/include -follow -type d -name plain |grep include/plain`
Expand Down

0 comments on commit 16ba9bf

Please sign in to comment.