@@ -48,7 +48,9 @@ AC_CHECK_LIB(m, sincos)
48
48
dnl Checks for header files.
49
49
AC_HEADER_STDC
50
50
AC_PATH_XTRA
51
- AC_CHECK_HEADERS ( [ fcntl.h limits.h memory.h netdb.h netinet/in.h stddef.h sys/file.h sys/socket.h sys/systeminfo.h sys/time.h termios.h unistd.h values.h] )
51
+ AC_CHECK_HEADERS ( [ fcntl.h limits.h memory.h netdb.h netinet/in.h stddef.h sys/file.h sys/socket.h sys/systeminfo.h sys/time.h unistd.h values.h] )
52
+
53
+ AC_SYS_POSIX_TERMIOS
52
54
53
55
dnl get the flags required to link other languages against fortran
54
56
dnl using their compilers, not fortran
@@ -70,7 +72,7 @@ dnl These are the driver files that will actually be built.
70
72
dnl In true autoconf style, we do not attempt to generate this list
71
73
dnl automatically (see the automake manual's FAQ for justification).
72
74
73
- drivers="exdriv.lo pgdriv.lo cadriv.lo hgdriv.lo lxdriv.lo vtdriv.lo hidriv.lo psdriv.lo ttdriv.lo cwdriv.lo gldriv.lo nedriv.lo hpdriv.lo lsdriv.lo nudriv.lo qmdriv.lo vadriv.lo cgdriv.lo nexsup .lo rvdriv.lo xmdriv.lo tkdriv.lo pkdriv.lo xadriv.lo"
75
+ drivers="exdriv.lo pgdriv.lo cadriv.lo hgdriv.lo lxdriv.lo hidriv.lo psdriv.lo cwdriv.lo gldriv.lo hpdriv.lo lsdriv.lo nudriv.lo qmdriv.lo vadriv.lo cgdriv.lo rvdriv.lo xmdriv.lo tkdriv.lo pkdriv.lo xadriv.lo"
74
76
75
77
dnl Not all platforms have X
76
78
have_x11=no
@@ -197,6 +199,24 @@ AS_IF([test "$mst_prog_gnu_f77_version" != '0.0.0' && test "$mst_prog_gnu_f77_ve
197
199
AC_SUBST ( [ PKG_CONFIG_LIBS] )
198
200
AC_SUBST ( [ PKG_CONFIG_CFLAGS] )
199
201
202
+ dnl drivers ttdriv and vtdriv require termios; only include them if
203
+ dnl it's available.
204
+
205
+ AM_CONDITIONAL([ HAVE_TERMIOS] , [ test "$ac_cv_sys_posix_termios" = "yes" ] )
206
+
207
+ AS_IF ( [ test "$ac_cv_sys_posix_termios" = "yes" ] ,
208
+ [
209
+ drivers="$drivers ttdriv.lo vtdriv.lo"
210
+ ]
211
+ )
212
+
213
+ dnl drivers nexup and nedriv require sys/socket.h
214
+ AS_IF ( [ test "$ac_cv_header_sys_socket_h" = "yes"] ,
215
+ [
216
+ drivers="$drivers nexsup.lo nedriv.lo"
217
+ ]
218
+ )
219
+
200
220
201
221
202
222
dnl Add the png driver if the PNG header and library are available.
@@ -241,6 +261,8 @@ AS_IF([test $have_png = yes],
241
261
)
242
262
243
263
264
+
265
+
244
266
dnl clean up pkg-config requires line
245
267
PKG_CONFIG_REQUIRES=`echo $PKG_CONFIG_REQUIRES | ${ac_cv_path_SED} "s/^,//"`
246
268
AC_SUBST ( PKG_CONFIG_REQUIRES )
0 commit comments