/[hurd]/hurd/aclocal.m4
ViewVC logotype

Diff of /hurd/aclocal.m4

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

revision 1.3 by roland, Sat Jan 19 23:44:37 2002 UTC revision 1.4 by marcus, Thu Aug 22 21:25:03 2002 UTC
# Line 94  rm -f conftest*]) Line 94  rm -f conftest*])
94  if test $hurd_cv_mig_retcode = yes; then  if test $hurd_cv_mig_retcode = yes; then
95    AC_DEFINE(HAVE_MIG_RETCODE)    AC_DEFINE(HAVE_MIG_RETCODE)
96  fi])  fi])
97    
98    dnl The following check is based on a similar check in GNU inetutils 1.4.0.
99    dnl
100    dnl hurd_LIB_NCURSESW -- check for, and configure, ncursesw
101    dnl
102    dnl If libncursesw is found to exist on this system and the --disable-ncursesw
103    dnl flag wasn't specified, defines LIBNCURSESW with the appropriate linker
104    dnl specification, and possibly defines NCURSESW_INCLUDE with the appropriate
105    dnl -I flag to get access to ncursesw include files.
106    dnl
107    AC_DEFUN([hurd_LIB_NCURSESW], [
108      AC_ARG_ENABLE(ncursesw,   [  --disable-ncursesw      Do not use ncursesw],
109                  , enable_ncursesw=yes)
110      if test "$enable_ncursesw" = yes; then
111        AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW="-lncursesw")
112        if test "$LIBNCURSESW"; then
113          AC_ARG_WITH(ncursesw-include-dir,
114    [  --with-ncursesw-include-dir=DIR
115                              Set directory containing the include files for
116                              use with -lncursesw, when it isn't installed as
117                              the default curses library.  If DIR is "none",
118                              then no special ncursesw include files are used.
119      --without-ncursesw-include-dir
120                              Equivalent to --with-ncursesw-include-dir=none])dnl
121          if test "${with_ncursesw_include_dir+set}" = set; then
122            AC_MSG_CHECKING(for ncursesw include dir)
123            case "$with_ncursesw_include_dir" in
124              no|none)
125                hurd_cv_includedir_ncursesw=none;;
126              *)
127                hurd_cv_includedir_ncursesw="$with_ncursesw_include_dir";;
128            esac
129            AC_MSG_RESULT($hurd_cv_includedir_ncursesw)
130          else
131            AC_CACHE_CHECK(for ncursesw include dir,
132                           hurd_cv_includedir_ncursesw,
133              for D in $includedir $prefix/include /local/include /usr/local/include /include /usr/include; do
134                if test -d $D/ncursesw; then
135                  hurd_cv_includedir_ncursesw="$D/ncursesw"
136                  break
137                fi
138                test "$hurd_cv_includedir_ncursesw" \
139                      || hurd_cv_includedir_ncursesw=none
140              done)
141          fi
142          if test "$hurd_cv_includedir_ncursesw" = none; then
143            NCURSESW_INCLUDE=""
144          else
145            NCURSESW_INCLUDE="-I$hurd_cv_includedir_ncursesw"
146          fi
147        fi
148      fi
149      AC_SUBST(NCURSESW_INCLUDE)
150      AC_SUBST(LIBNCURSESW)])dnl
151    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26