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.51 by aonoto, Sun Apr 25 10:38:55 2010 UTC revision 1.52 by aonoto, Sun Jul 11 10:18:16 2010 UTC
# Line 51  tagnames= Line 51  tagnames=
51    
52  AC_CANONICAL_HOST  AC_CANONICAL_HOST
53    
54    dnl
55    AC_ARG_PROGRAM
56    
57  dnl build and install libraries, server or client  dnl build and install libraries, server or client
58    
59  AC_ARG_ENABLE(debug,  AC_ARG_ENABLE(debug,
# Line 303  if test ${unsafe_path} = true; then Line 306  if test ${unsafe_path} = true; then
306  fi  fi
307    
308  dnl  dnl
309    dnl Install layout controlling
310    dnl
311    AC_ARG_ENABLE(traditional-layout,
312    [  --enable-traditional-layout Install files in traditional directories [[default=yes]]],
313    [case "${enableval}" in
314       yes) trad_layout=true ;;
315       no)  trad_layout=false ;;
316       *)   AC_MSG_ERROR([bad value for --enable-traditional-layout]) ;;
317    esac], trad_layout=true)
318    
319    if test $trad_layout = "true"; then
320      WNNSBINDIR="\$(bindir)"
321      # More path settings will come later ...
322    else
323      WNNSBINDIR="\$(sbindir)"
324      # Same as above.
325    fi
326    AC_SUBST(WNNSBINDIR)
327    dnl Same as above.
328    
329    AC_ARG_ENABLE(sub-bindir,
330    [  --enable-sub-bindir         Install executables to (ex.) $(bindir)/Wnn4 [[default=yes if --enable-traditional-layout, no otherwise]]],
331    [case "${enableval}" in
332       yes) sub_bindir=true ;;
333       no)  sub_bindir=false ;;
334       *)   AC_MSG_ERROR([bad value for --enable-sub-bindir]) ;;
335    esac], sub_bindir=guess)
336    
337    if test $sub_bindir = "guess"; then
338      if test $trad_layout = "true"; then
339        sub_bindir=true
340      else
341        sub_bindir=false
342      fi
343    fi
344    if test $sub_bindir = "true"; then
345      if_enable_sub_bindir=' '
346      if_disable_sub_bindir='#'
347    else
348      if_enable_sub_bindir='#'
349      if_disable_sub_bindir=' '
350    fi
351    AC_SUBST(if_enable_sub_bindir)
352    AC_SUBST(if_disable_sub_bindir)
353    
354    # for debug
355    AC_MSG_CHECKING([if we use traditional layout])
356    if test $trad_layout = "true"; then
357      AC_MSG_RESULT(yes)
358    else
359      AC_MSG_RESULT(no)
360    fi
361    
362    AC_MSG_CHECKING([if we install binaries on \$(bindir)/Wnn4 (etc.)])
363    if test $sub_bindir = "true"; then
364      AC_MSG_RESULT(yes)
365    else
366      AC_MSG_RESULT(no)
367    fi
368    
369    dnl
370  dnl Checks for cc and cpp.  dnl Checks for cc and cpp.
371  dnl  dnl
372  AC_PROG_CC  AC_PROG_CC

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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