changeset 90833:3816faf8a124

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Tue, 01 May 2007 05:10:50 +0000
parents f8d5b7c904d2
children 3cc94105baca
files configure
diffstat 1 files changed, 91 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue May 01 05:10:26 2007 +0000
+++ b/configure	Tue May 01 05:10:50 2007 +0000
@@ -13114,12 +13114,87 @@
 
   if test "${HAVE_LIBOTF}" = "yes"; then
 
+{ echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
+echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
+if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lotf  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char OTF_get_features ();
+int
+main ()
+{
+return OTF_get_features ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest$ac_exeext &&
+       $as_test_x conftest$ac_exeext; then
+  ac_cv_lib_otf_OTF_get_features=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_lib_otf_OTF_get_features=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+      conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
+echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
+if test $ac_cv_lib_otf_OTF_get_features = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBOTF 1
+_ACEOF
+
+  LIBS="-lotf $LIBS"
+
+else
+  HAVE_LIBOTF=no
+fi
+
+    if test "${HAVE_LIBOTF}" = "yes"; then
+
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_LIBOTF 1
 _ACEOF
 
-    LIBOTF_CFLAGS=`libotf-config --cflags`
-    LIBOTF_LIBS=`libotf-config --libs`
+      LIBOTF_CFLAGS=`libotf-config --cflags`
+      LIBOTF_LIBS=`libotf-config --libs`
+    fi
   fi
 fi
 
@@ -18222,11 +18297,13 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <stdio.h>
-int
-main ()
-{
-return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
+#include <sys/types.h> /* for off_t */
+     #include <stdio.h>
+int
+main ()
+{
+int (*fp) (FILE *, off_t, int) = fseeko;
+     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   ;
   return 0;
 }
@@ -18266,11 +18343,13 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 #define _LARGEFILE_SOURCE 1
-#include <stdio.h>
-int
-main ()
-{
-return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
+#include <sys/types.h> /* for off_t */
+     #include <stdio.h>
+int
+main ()
+{
+int (*fp) (FILE *, off_t, int) = fseeko;
+     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   ;
   return 0;
 }