Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.35 by aono, Fri May 21 16:39:31 2004 UTC revision 1.36 by aonoto, Sun Nov 27 17:30:23 2005 UTC
# Line 1653  fi; Line 1653  fi;
1653          HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"          HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data"
1654    
1655  else  else
1656          WNNJLIB="\$(WNNJLIBSRC)/libwnn.la"          WNNJLIB="\$(top_builddir)/Wnn/jlib/libwnn.la"
1657          DEPWNNJLIB="\$(WNNJLIB)"          DEPWNNJLIB="\$(WNNJLIB)"
1658          HINSI_DATA="\$(WNNJDSRC)/hinsi.data"          HINSI_DATA="\$(top_builddir)/Wnn/jd/hinsi.data"
1659    
1660  fi;  fi;
1661    
# Line 1695  fi; Line 1695  fi;
1695          THINSI_DATA="\$(TWNNTDSRC)/cixing.data"          THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
1696    
1697  else  else
1698          CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la"          CWNNJLIB="\$(top_builddir)/cWnn/jlib/libcwnn.la"
1699          DEPCWNNJLIB="\$(CWNNJLIB)"          DEPCWNNJLIB="\$(CWNNJLIB)"
1700          CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"          CHINSI_DATA="\$(CWNNCDSRC)/cixing.data"
1701          THINSI_DATA="\$(TWNNTDSRC)/cixing.data"          THINSI_DATA="\$(TWNNTDSRC)/cixing.data"
# Line 1738  fi; Line 1738  fi;
1738          KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"          KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data"
1739    
1740  else  else
1741          KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la"          KWNNJLIB="\$(top_builddir)/kWnn/jlib/libkwnn.la"
1742          DEPKWNNJLIB="\$(KWNNJLIB)"          DEPKWNNJLIB="\$(KWNNJLIB)"
1743          KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"          KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data"
1744    
# Line 2547  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 2547  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547    
2548  case $host in  case $host in
2549  *-*-linux*)  *-*-linux*)
2550      CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"      CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE"
2551      ;;      ;;
2552  *-*-darwin*)  *-*-darwin*)
2553      if test $GCC = yes; then      if test $GCC = yes; then
2554      # Unfortunately, autoconf (at least 2.57) does not recognize        # Unfortunately, autoconf (at least 2.57) does not recognize
2555      # proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does        # proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does
2556      # not work with pubdic+ processing.) So define here ....        # not work with pubdic+ processing.) So define here ....
2557        # Note: It seems gcc-3.3 (or (probably) later) does not need this.        # Note: It seems gcc-3.3 (or (probably) later) does not need this.
2558        CPP=${CPP:-"$CC -E -no-cpp-precomp"}        CPP=${CPP:-"$CC -E -no-cpp-precomp"}
2559      fi      fi
# Line 17739  LIBTOOL='$(SHELL) $(top_builddir)/libtoo Line 17739  LIBTOOL='$(SHELL) $(top_builddir)/libtoo
17739    
17740    
17741    
17742    echo "$as_me:$LINENO: checking for library containing crypt" >&5
17743  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5  echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
17744  echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6  if test "${ac_cv_search_crypt+set}" = set; then
 if test "${ac_cv_lib_crypt_crypt+set}" = set; then  
17745    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
17746  else  else
17747    ac_check_lib_save_LIBS=$LIBS    ac_func_search_save_LIBS=$LIBS
17748  LIBS="-lcrypt  $LIBS"  ac_cv_search_crypt=no
17749  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
17750  #line $LINENO "configure"  #line $LINENO "configure"
17751  #include "confdefs.h"  #include "confdefs.h"
# Line 17784  if { (eval echo "$as_me:$LINENO: \"$ac_l Line 17783  if { (eval echo "$as_me:$LINENO: \"$ac_l
17783    ac_status=$?    ac_status=$?
17784    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
17786    ac_cv_lib_crypt_crypt=yes    ac_cv_search_crypt="none required"
17787  else  else
17788    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
17789  cat conftest.$ac_ext >&5  cat conftest.$ac_ext >&5
 ac_cv_lib_crypt_crypt=no  
17790  fi  fi
17791  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext  rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17792  LIBS=$ac_check_lib_save_LIBS  if test "$ac_cv_search_crypt" = no; then
17793  fi    for ac_lib in crypt; do
17794  echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5      LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17795  echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6      cat >conftest.$ac_ext <<_ACEOF
17796  if test $ac_cv_lib_crypt_crypt = yes; then  #line $LINENO "configure"
17797    cat >>confdefs.h <<_ACEOF  #include "confdefs.h"
 #define HAVE_LIBCRYPT 1  
 _ACEOF  
17798    
17799    LIBS="-lcrypt $LIBS"  /* Override any gcc2 internal prototype to avoid an error.  */
17800    #ifdef __cplusplus
17801    extern "C"
17802    #endif
17803    /* We use char because int might match the return type of a gcc2
17804       builtin and then its argument prototype would still apply.  */
17805    char crypt ();
17806    #ifdef F77_DUMMY_MAIN
17807    #  ifdef __cplusplus
17808         extern "C"
17809    #  endif
17810       int F77_DUMMY_MAIN() { return 1; }
17811    #endif
17812    int
17813    main ()
17814    {
17815    crypt ();
17816      ;
17817      return 0;
17818    }
17819    _ACEOF
17820    rm -f conftest.$ac_objext conftest$ac_exeext
17821    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822      (eval $ac_link) 2>&5
17823      ac_status=$?
17824      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825      (exit $ac_status); } &&
17826             { ac_try='test -s conftest$ac_exeext'
17827      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828      (eval $ac_try) 2>&5
17829      ac_status=$?
17830      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831      (exit $ac_status); }; }; then
17832      ac_cv_search_crypt="-l$ac_lib"
17833    break
17834    else
17835      echo "$as_me: failed program was:" >&5
17836    cat conftest.$ac_ext >&5
17837    fi
17838    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17839      done
17840    fi
17841    LIBS=$ac_func_search_save_LIBS
17842    fi
17843    echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
17844    echo "${ECHO_T}$ac_cv_search_crypt" >&6
17845    if test "$ac_cv_search_crypt" != no; then
17846      test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
17847    
17848  fi  fi
17849    
# Line 19572  fi Line 19615  fi
19615    
19616  # mkdir -p Contrib/dic/gerodic in case builddir != srcdir  # mkdir -p Contrib/dic/gerodic in case builddir != srcdir
19617  dir=Contrib/dic/gerodic  dir=Contrib/dic/gerodic
19618    if test ! -d $dir; then  if test ! -d $dir; then
19619      echo "creating $dir ..."    echo "creating $dir ..."
19620    $ac_install_sh -d $dir    $ac_install_sh -d $dir
19621    fi  fi
19622    
19623    
19624    

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26