Changeset 2705 for branches


Ignore:
Timestamp:
Nov 28, 2011 1:21:34 PM (12 years ago)
Author:
gah
Message:
 
Location:
branches/blt4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/configure

    r2416 r2705  
    780780with_tclsh
    781781with_vtk
     782with_ncurses
    782783with_matlab
    783784with_octave
     
    14331434  --with-tclsh=DIR        location of tclsh [default=yes]
    14341435  --with-vtk=DIR          location of vtk library [default=yes]
     1436  --with-ncurses=DIR      location of ncurses [default=yes]
    14351437  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
    14361438  --with-octave=DIR       path of default octave compiler `mkoctfile'
     
    27192721
    27202722
    2721 with_tclsh=yes
    2722 
    27232723#------------------------------------------------------------------------
    27242724# Handle the --prefix=... option
     
    27392739  with_install=yes
    27402740fi
     2741
    27412742
    27422743if test "$with_install" != "yes"; then
     
    49054906  as_fn_error $? "librappture requires libm" "$LINENO" 5
    49064907fi
     4908
     4909
     4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
     4911$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
     4912if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
     4913  $as_echo_n "(cached) " >&6
     4914else
     4915  ac_check_lib_save_LIBS=$LIBS
     4916LIBS="-lncurses  $LIBS"
     4917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4918/* end confdefs.h.  */
     4919
     4920/* Override any GCC internal prototype to avoid an error.
     4921   Use char because int might match the return type of a GCC
     4922   builtin and then its argument prototype would still apply.  */
     4923#ifdef __cplusplus
     4924extern "C"
     4925#endif
     4926char clrtoeol ();
     4927int
     4928main ()
     4929{
     4930return clrtoeol ();
     4931  ;
     4932  return 0;
     4933}
     4934_ACEOF
     4935if ac_fn_cxx_try_link "$LINENO"; then :
     4936  ac_cv_lib_ncurses_clrtoeol=yes
     4937else
     4938  ac_cv_lib_ncurses_clrtoeol=no
     4939fi
     4940rm -f core conftest.err conftest.$ac_objext \
     4941    conftest$ac_exeext conftest.$ac_ext
     4942LIBS=$ac_check_lib_save_LIBS
     4943fi
     4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
     4945$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
     4946if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
     4947  cat >>confdefs.h <<_ACEOF
     4948#define HAVE_LIBNCURSES 1
     4949_ACEOF
     4950
     4951  LIBS="-lncurses $LIBS"
     4952
     4953else
     4954  as_fn_error $? "ncursers library missing?" "$LINENO" 5
     4955fi
     4956
     4957for ac_header in ncurses.h
     4958do :
     4959  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
     4960if test "x$ac_cv_header_ncurses_h" = xyes; then :
     4961  cat >>confdefs.h <<_ACEOF
     4962#define HAVE_NCURSES_H 1
     4963_ACEOF
     4964
     4965else
     4966  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
     4967$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
     4968fi
     4969
     4970done
     4971
    49074972
    49084973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
     
    73757440$as_echo "$VTKDIR" >&6; }
    73767441
    7377 
    7378 with_matlab="yes"
     7442with_ncurses="yes"
     7443
     7444# Check whether --with-ncurses was given.
     7445if test "${with_ncurses+set}" = set; then :
     7446  withval=$with_ncurses;
     7447else
     7448  with_ncurses=yes
     7449fi
     7450
     7451
     7452if test "$with_vtk" != "no" ; then
     7453  if test "$with_vtk" = "yes" ; then
     7454    for path in \
     7455     $libdir \
     7456     $prefix/lib \
     7457     $exec_prefix/lib \
     7458     /usr/lib
     7459    do
     7460      for vtk in $path/vtk-* ; do
     7461        if test -d "${vtk}" ; then
     7462          VTKDIR=${vtk}
     7463        fi
     7464      done
     7465      if test "x${VTKDIR}" != "x" ; then
     7466        break
     7467      fi
     7468    done
     7469  fi
     7470fi
     7471
     7472
    73797473
    73807474# Check whether --with-matlab was given.
  • branches/blt4/configure.in

    r2679 r2705  
    6060
    6161AC_CHECK_LIB(m, main,,AC_MSG_ERROR(librappture requires libm))
     62
     63AC_CHECK_LIB(ncurses, clrtoeol,,AC_MSG_ERROR([ncursers library missing?]))
     64AC_CHECK_HEADERS(ncurses.h,,AC_MSG_WARN(ncurses headers missing ?))
     65
    6266AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(librappture requires libstdc++))
    6367AC_CHECK_HEADERS(algorithm,,AC_MSG_WARN(STL classes missing ?))
     
    195199fi
    196200AC_MSG_RESULT([$VTKDIR])
     201
     202with_ncurses="yes"
     203AC_ARG_WITH(
     204    [ncurses],
     205    [AS_HELP_STRING([--with-ncurses[=DIR]],
     206        [location of ncurses @<:@default=yes@:>@])],
     207    [],
     208    [with_ncurses=yes])
     209
     210if test "$with_vtk" != "no" ; then
     211  if test "$with_vtk" = "yes" ; then
     212    for path in \
     213     $libdir \
     214     $prefix/lib \
     215     $exec_prefix/lib \
     216     /usr/lib
     217    do
     218      for vtk in $path/vtk-* ; do
     219        if test -d "${vtk}" ; then
     220          VTKDIR=${vtk}
     221        fi
     222      done
     223      if test "x${VTKDIR}" != "x" ; then
     224        break
     225      fi
     226    done
     227  fi
     228fi
    197229
    198230RP_LANG_MATLAB
  • branches/blt4/lang/tcl/src/Makefile.in

    r2676 r2705  
    2828TCL_VERSION     = @TCL_VERSION@
    2929TCL_LIB_SPEC    = @TCL_LIB_SPEC@
     30HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
     31HAVE_NCURSES    = @HAVE_LIBNCURSES@
    3032
    3133CC_SWITCHES     = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
     
    4951LIBS = \
    5052        -L../../../src/core -lrappture \
    51         $(TCL_LIB_SPEC) -lncurses -lexpat -lz -lm -lstdc++
     53        $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++
    5254
    5355OBJS = \
    5456        Rappture_Init.o \
    55         RpCurses.o \
    5657        RpDaemon.o \
    5758        RpEncodeTclInterface.o \
     
    7071endif
    7172
    72 FFMPEG          = @HAVE_FFMPEG_LIBS@
    73 ifeq ($(FFMPEG),yes)
     73ifeq ($(HAVE_LIBCURSES),yes)
     74   OBJS += RpCurses.o
     75   LIBS += -lncurses
     76endif
     77
     78ifeq ($(HAVE_FFMPEG),yes)
    7479    OBJS += RpVideoTclInterface.o
    7580    LIBS += -L../../../src/objects -lRpObjects
  • branches/blt4/src/core/config.h.in

    r2170 r2705  
    7979#undef HAVE_LIBM
    8080
     81/* Define to 1 if you have the `ncurses' library (-lncurses). */
     82#undef HAVE_LIBNCURSES
     83
    8184/* Define to 1 if you have the `stdc++' library (-lstdc++). */
    8285#undef HAVE_LIBSTDC__
     
    99102/* Define to 1 if you have the <memory.h> header file. */
    100103#undef HAVE_MEMORY_H
     104
     105/* Define to 1 if you have the <ncurses.h> header file. */
     106#undef HAVE_NCURSES_H
     107
     108/* Define to 1 if you have the <Python.h> header file. */
     109#undef HAVE_PYTHON_H
    101110
    102111/* Define to 1 if you have the <sstream> header file. */
Note: See TracChangeset for help on using the changeset viewer.