Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure.in

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

revision 1.32 by hiroo, Sun Sep 1 17:48:19 2002 UTC revision 1.33 by hiroo, Sun May 11 18:22:57 2003 UTC
# Line 10  dnl Copyright Kyoto University Research Line 10  dnl Copyright Kyoto University Research
10  dnl                 1987, 1988, 1989, 1990, 1991, 1992  dnl                 1987, 1988, 1989, 1990, 1991, 1992
11  dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999  dnl Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
12  dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992  dnl Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
13  dnl Copyright FreeWnn Project 1999, 2000, 2001, 2002  dnl Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2003
14  dnl  dnl
15  dnl Maintainer:  FreeWnn Project   <freewnn@tomo.gr.jp>  dnl Maintainer:  FreeWnn Project   <freewnn@tomo.gr.jp>
16  dnl  dnl
# Line 256  dnl Checks for cc and cpp. Line 256  dnl Checks for cc and cpp.
256  dnl  dnl
257  AC_PROG_CC  AC_PROG_CC
258    
259  dnl Use environment variable (if set). It will be overridden  dnl System specific options
260  dnl in supported system though...  dnl Now that we are using autoconf, CCOPTIONS should be nuked...
 CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"}  
261  case $host in  case $host in
262  *-*-linux*)  *-*-linux*)
263      CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"      CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
     CDEBUGFLAGS="-O2 -fno-strength-reduce"  
264      ;;      ;;
265  *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)  *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
     CDEBUGFLAGS="-O2 -fno-strength-reduce"  
266      ;;      ;;
267  *-*-bsdi*)  *-*-bsdi*)
     CDEBUGFLAGS="-O2 -fno-strength-reduce"  
268      ;;      ;;
269  *-*-sunos*)  *-*-sunos*)
270        if test $GCC = yes; then        if test $GCC = yes; then
271          CCOPTIONS="-Dsun -Dsparc"          CCOPTIONS="-Dsun -Dsparc"
         CDEBUGFLAGS=-O2  
272        else        else
273          CCOPTIONS=""          CCOPTIONS=""
         CDEBUGFLAGS=-O4  
274        fi        fi
275        ;;        ;;
276  *-*-solaris2.*)  *-*-solaris2.*)
277      # Will 'solaris*' be OK?      # Will 'solaris*' be OK?
278        if test $GCC = yes; then        if test $GCC = yes; then
279          CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"          CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
         CDEBUGFLAGS=-O2  
280        else        else
281          CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"          CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
         CDEBUGFLAGS=-O4  
282        fi        fi
283      ;;      ;;
284  *-*-hpux*)  *-*-hpux*)
285      if test $GCC = yes; then      if test $GCC = yes; then
286          CCOPTIONS="-Dhpux -DSYSV"          CCOPTIONS="-Dhpux -DSYSV"
         CDEBUGFLAGS=-O2  
287      else      else
288          CCOPTIONS="-Ae -Dhpux -DSYSV"          CCOPTIONS="-Ae -Dhpux -DSYSV"
289      fi      fi
290        ;;        ;;
291  i[[34567]]86-pc-beos*)  i[[34567]]86-pc-beos*)
292          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
         CDEBUGFLAGS="-O2 -fno-strength-reduce"  
293          ;;          ;;
294  powerpc-*-beos*)  powerpc-*-beos*)
295          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
296          ;;          ;;
297  *-*-aix*)  *-*-aix*)
     if test $GCC = yes; then  
       CDEBUGFLAGS=-O2  
     else  
       CDEBUGFLAGS=-O  
     fi  
298      CCOPTIONS="-DSYSV"      CCOPTIONS="-DSYSV"
299      ;;      ;;
300  *)  *)
301      AC_MSG_WARN("It is not reported if FreeWnn works on this system.  But continuing...")  dnl    AC_MSG_WARN("It is not reported if FreeWnn works on this system.  But continuing...")
302      AC_MSG_WARN([(It may or may not work if you set CCOPTIONS properly.)])  dnl    AC_MSG_WARN([(It may or may not work if you set CCOPTIONS properly.)])
303      ;;      ;;
304  esac  esac
305    
306  dnl Checking if we use gcc or not  dnl Checking if we use gcc or not
307  if test $debug = true; then  if test $debug = true; then
308      if test $GCC = yes; then      if test $GCC = yes; then
309        CDEBUGFLAGS="-g2 -Wall -fstack-check $CDEBUGFLAGS"        CDEBUGFLAGS=${CDEBUGFLAGS:-"-g2 -O2 -Wall -fstack-check"}
310        else
311          CDEBUGFLAGS=${CDEBUGFLAGS:-""}
312      fi      fi
313      INSTPGMFLAGS=      INSTPGMFLAGS=
314  else  else
315        CDEBUGFLAGS=""
316      INSTPGMFLAGS="-s"      INSTPGMFLAGS="-s"
317  fi  fi
318    AC_SUBST(CCOPTIONS)
319    AC_SUBST(CDEBUGFLAGS)
320  AC_SUBST(INSTPGMFLAGS)  AC_SUBST(INSTPGMFLAGS)
321    
322  echo "Set CDEBUGFLAGS and CCOPTIONS to following:"  echo "Set CDEBUGFLAGS and CCOPTIONS to following:"
# Line 349  AC_PROG_LN_S Line 339  AC_PROG_LN_S
339  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
340  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
341  AC_SUBST(LIBTOOL_DEPS)  AC_SUBST(LIBTOOL_DEPS)
 AC_SUBST(CCOPTIONS)  
 AC_SUBST(CDEBUGFLAGS)  
342    
343  dnl Checks for libraries.  dnl Checks for libraries.
344  dnl ### dnl Replace `main' with a function in -lX11:  dnl ### dnl Replace `main' with a function in -lX11:

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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