Develop and Download Open Source Software

Browse CVS Repository

Contents of /twsynth/twsynth_gui/configure.in

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


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Sep 3 07:23:26 2002 UTC (21 years, 6 months ago) by skeishi
Branch: MAIN, skeishi
CVS Tags: initial, HEAD
Changes since 1.1: +0 -0 lines
GUI Version of TW Synthesizer by Mr. Aoki. Thank you Aoki !!

1 dnl TiMidity++ -- MIDI to WAVE converter and player
2 dnl Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
3 dnl Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
4 dnl
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 2 of the License, or
8 dnl (at your option) any later version.
9 dnl
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; if not, write to the Free Software
17 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 dnl configure.in created from configure.scan
20 dnl by URABE, Shyouhei <root@mput.dip.jp> on 2002.07.06
21
22 dnl variable note:
23 dnl CFLAGS - Flags for compile.
24 dnl CPPFLAGS - Flags for cpp
25 dnl LDFLAGS - Flags for linker
26 dnl ac_cpp: $CPP $CPPFLAGS
27 dnl ac_compile: ${CC-cc} -c $CFLAGS $CPPFLAGS
28 dnl ac_link: ${CC-cc} -o * $CFLAGS $CPPFLAGS $LDFLAGS *.c $LIBS
29 dnl EXTRACFLAGS - Extra flags to compile. Adds to CFLAGS.
30 dnl EXTRADEFS - Extra define macros. Adds to CPPFLAGS.
31 dnl EXTRALIBS - Extra libraries Adds to LIBS.
32 dnl SYSEXTRAS - Additional source codes to compile.
33 dnl lib_*_opt - Optional libraries. Adds to LIBS.
34 dnl LIBRARY_PATH
35 dnl - add to -L LDFLAGS
36 dnl C_INCLUDE_PATH
37 dnl - add to -I CPPFLAGS
38 dnl CYGNUS - `yes' if cygnus windows environment.
39 dnl MINGW - `yes' if Mingw windows environment.
40 dnl WISH - wish
41 dnl LN_S - ln -s
42 dnl tcltk_dep - make dependencies for tcl/tk interface
43 dnl
44 dnl so - File extension of shared object library.
45 dnl SHLD - Linker to make shared object library.
46 dnl SHLDFLAGS - Link flags to link shared object library.
47 dnl SHCFLAGS - Additional flags to compile shared object library.
48 dnl (such as -fPIC)
49
50 # This is a autoscan-generated configure.scan.
51 AC_PREREQ(2.50)
52
53 dnl "AC_INIT(timidity/timidity.c)" is obsolate yet.
54 AC_INIT(TiMidity++,2.12.0-pre1b)
55 AC_CONFIG_AUX_DIR(autoconf)
56 AC_CANONICAL_TARGET
57 AM_INIT_AUTOMAKE(TiMidity++,2.12.0-pre1b)
58 AC_CONFIG_SRCDIR([timidity/timidity.c])
59 AM_CONFIG_HEADER([config.h interface.h])
60
61 SHELL=${CONFIG_SHELL-"/bin/sh"}
62 WISH=${WISH-"wish"}
63
64 dnl to use contains() macro (see autoconf/acinclude.m4)
65 CONTAINS_INIT
66
67 # Check for compiler options -- such as debug flags.
68
69 dnl "--enable-debug" turnes -g on.
70 AC_MSG_CHECKING(if --enable-debug option specified)
71 AC_ARG_ENABLE(debug,
72 [ --enable-debug Build a debugging version.],
73 [timidity_cv_debug="yes"], [timidity_cv_debug="no"])
74 if test "x$timidity_cv_debug" = "xyes"; then
75 AC_DEFINE(DEBUG,1,Define to 1 if you are in debug mode)
76 CFLAGS=${CFLAGS-"-g"}
77 fi
78 if test "x$timidity_cv_debug" = "xno"; then
79 AC_DEFINE(NDEBUG,1,Define to 1 if you are NOT in debug mode)
80 fi
81 AC_MSG_RESULT($timidity_cv_debug)
82
83 CFLAGS=${CFLAGS-"-O2"}
84
85 dnl --with-x turns on if `--with-x' is NOT specified.
86 if test "x$with_x" = x; then
87 with_x=yes
88 else
89 x_config_flag=yes
90 fi
91
92 # Checking gcc environment
93 for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
94 LDFLAGS="$LDFLAGS -L${i}"
95 done
96 for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
97 CPPFLAGS="$CPPFLAGS -I${i}"
98 done
99
100 # add $prefix if specified.
101 if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
102 LDFLAGS="-L$prefix/lib $LDFLAGS"
103 SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
104 CPPFLAGS="-I$prefix/include $CPPFLAGS"
105 fi
106
107 dnl add --with-includes, --with-libraries
108 AC_ARG_WITH(includes,
109 [ --with-includes=DIR Specify include directories (colon separated)],
110 [ j=' '
111 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
112 j="${j}-I${i} "
113 done
114 CPPFLAGS="$j$CPPFLAGS"
115 ])
116
117 AC_ARG_WITH(libraries,
118 [ --with-libraries=DIR Specify library directories (colon separated)],
119 [ j=' '
120 for i in `echo "$withval"|sed -e 's,:, ,g'`; do
121 j="${j}-L${i} "
122 done
123 LDFLAGS="$j$LDFLAGS"
124 ])
125
126
127 dnl a bit buggy yet.(20020718:mput)
128 dnl CPPFLAGS="$CPPFLAGS \$(DEF_PKGDATADIR) \$(DEF_PKGLIBDIR) \$(DEF_DEFAULT_PATH)"
129 AC_ARG_WITH(default-path,
130 [ --with-default-path=DIR Where timidity.cfg is (PREFIX/share/timidity)],
131 [pkgdatadir=$withval],
132 [
133 if test "x$prefix" != "xNONE"; then
134 pkgdatadir='${prefix}/share/timidity'
135 else
136 pkgdatadir='/usr/local/share/timidity'
137 fi
138 ])
139 tmpdefpath="`eval \"echo ${pkgdatadir}\"`"
140 AC_DEFINE_UNQUOTED(DEFAULT_PATH,"$tmpdefpath",place to install patches)
141 AC_DEFINE(PKGDATADIR,DEFAULT_PATH,a compatibility matter. ignore it.)
142
143 AC_ARG_WITH(module-dir,
144 [ --with-module-dir=DIR Where to install interfaces (PREFIX/lib/timidity)],
145 [pkglibdir=$withval],
146 [
147 if test "x$prefix" != "xNONE"; then
148 pkglibdir='${prefix}/lib/timidity'
149 else
150 pkglibdir='/usr/local/lib/timidity'
151 fi
152 ])
153 tmplibdir="`eval \"echo ${pkglibdir}\"`"
154 AC_DEFINE_UNQUOTED(PKGLIBDIR,"$tmplibdir",place to install modules)
155
156
157 # Checks for programs.
158 AM_PATH_LISPDIR
159 AC_PROG_CC
160 AC_PROG_INSTALL
161 AC_PROG_AWK
162 AC_PROG_RANLIB
163 AC_PROG_LN_S
164 CHECK_COMPILER_OPTION(rdynamic)
165
166 # Checks for target dependencies
167
168 AC_ARG_WITH(elf,
169 [ --with-elf create ELF shared object instead of AOUT ],
170 [ ELFFORMAT=$withval ], [ ELFFORMAT="yes" ])
171
172 AC_ARG_WITH(simd,
173 [ --with-simd create SIMD friendly binary (default is no) ],
174 [ SIMD=$withval ], [ SIMD="no" ])
175
176 case "$target" in
177 *-*-hpux*)
178 EXTRADEFS="-DHPUX"
179 test -n "$SHLD" || SHLD="ld -b"
180 so="sl"
181 ;;
182 *-sgi-irix*)
183 dnl IRIX cc needs -signed option
184 case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac
185 test -n "$SHLD" || SHLD="cc -shared -all"
186 so="so"
187 ;;
188 *-*-netbsd*)
189 test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"
190 so="so"
191 ;;
192
193 *-*-freebsd2*)
194 dnl EXTRALIBS="$EXTRALIBS -lxpg4"
195 test -n "$SHLD" || SHLD="ld -Bshareable"
196 so="so"
197 ;;
198 *-*-freebsd*)
199 if test "$ELFFORMAT" = yes; then
200 test -n "$SHLD" || SHLD="ld -Bshareable"
201 else
202 SHCFLAGS=-aou
203 SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"
204 test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"
205 fi
206 dnl EXTRALIBS="$EXTRALIBS -lxpg4"
207 so="so"
208 ;;
209
210 # *-*-freebsd*)
211 # EXTRALIBS="$EXTRALIBS -lxpg4"
212 # test -n "$SHLD" || SHLD="ld -Bshareable"
213 # so="so"
214 # ;;
215
216 *-*-cygwin*)
217 EXTRADEFS="-D__W32__"
218 # ??
219 case "x${CC} " in
220 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
221 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
222 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
223 *) test -n "$SHLD" || SHLD="unknown" ;;
224 esac
225 so="dll"
226 CYGNUS=yes
227 lib_user32_test=-luser32
228 ;;
229 *-*-mingw*)
230 EXTRADEFS="-D__W32__"
231 # ??
232 case "x${CC} " in
233 "xbcc32 "*) test -n "$SHLD" || SHLD="tlink32 -Tpd" ;;
234 "xcl "*) test -n "$SHLD" || SHLD="link -dll" ;;
235 "xgcc "*) test -n "$SHLD" || SHLD="gcc -mdll" ;;
236 *) test -n "$SHLD" || SHLD="unknown" ;;
237 esac
238 so="dll"
239 MINGW=yes
240 lib_user32_test=-luser32
241 ;;
242 *-dec-*)
243 EXTRADEFS="-DDEC"
244 test -n "$SHLD" || SHLD="ld -Bdynamic -G"
245 so="so"
246 ;;
247 *-*-solaris*)
248 EXTRADEFS="-DSOLARIS"
249 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
250 so="so"
251 ;;
252 *-*-nextstep*)
253 test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"
254 so="so"
255 ;;
256 *-*-darwin*)
257 if test "x$SIMD" = "xyes"; then
258 AC_DEFINE(USE_ALTIVEC,1,Define to 1 if you use altivec)
259 # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.
260 EXTRACFLAGS="$EXTRACFLAGS -faltivec"
261 else
262 AC_DEFINE(USE_ALTIVEC,0,Define to 1 if you use altivec)
263 fi
264 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
265 LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"
266 test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"
267 so="bundle"
268 ;;
269 *)
270 test -n "$SHLD" || \
271 if test "x$GCC" = xyes; then
272 SHLD="$CC -shared"
273 else
274 SHLD="ld -Bdynamic -G"
275 fi
276 so="so"
277 ;;
278 esac
279
280 dnl For .exe
281 dnl AC_EXEEX
282
283 # Checks for libraries.
284 AC_CHECK_LIB(m,sqrt)
285 AC_CHECK_LIB(socket,socket)
286 AC_CHECK_LIB(dl,dlopen,lib_dl_opt=-ldl)
287 AC_CHECK_LIB(objc,NSLinkModule,lib_dl_opt=-lobjc) # Mac OS X need this.
288 AC_CHECK_LIB(xpg4,setlocale) # Mac OS X (and maybe NetBSD) need this.
289 AC_CHECK_FUNCS(gethostbyname,,[ AC_CHECK_LIB(nsl,gethostbyname) ])
290 AC_PATH_XTRA
291
292 # Checks for X
293 if test "x$with_x" = xyes; then
294 if test "x$have_x" = xno; then
295 if test "x$x_config_flag" = xyes; then
296 AC_MSG_ERROR(Could not configure X)
297 else
298 AC_MSG_WARN(Could not configure X)
299 fi
300 fi
301 fi
302 if test "x$with_x" = xyes -a "x$have_x" = xyes; then
303 if test "x$x_libraries" != x; then
304 ldflags_x_opt="-L$x_libraries"
305 LDFLAGS="$LDFLAGS $ldflags_x_opt"
306 SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"
307 else
308 ldflags_x_opt=
309 fi
310 if test "x$x_includes" != x; then
311 CPPFLAGS="$CPPFLAGS -I$x_includes"
312 fi
313
314 AC_CHECK_LIB(X11,XOpenDisplay)
315 AC_MSG_CHECKING(X11 version 6)
316 AC_CACHE_VAL(timidity_cv_x11_version_6,
317 AC_TRY_LINK([#include <X11/Xlib.h>],
318 [#if XlibSpecificationRelease < 6
319 fail;
320 #endif
321 ], timidity_cv_x11_version_6=yes, timidity_cv_x11_version_6=no))
322 if test "$timidity_cv_x11_version_6" = "yes"; then
323 AC_MSG_RESULT(6 or newer)
324 dnl AC_DEFINE(HAVE_X11R6)
325 else
326 AC_MSG_RESULT(before 6)
327 fi
328
329 dnl checking order required
330 KEEPLIBS=$LIBS
331 AC_CHECK_LIB(Xext,XShapeCombineMask,have_xext=yes; LIBS="-lXext $LIBS",have_xext=no)
332 AC_CHECK_LIB(ICE,IceConnectionNumber)
333 AC_CHECK_LIB(SM,SmcOpenConnection,have_xprelibs=yes; LIBS="-lSM $LIBS",have_xprelibs=no)
334 AC_CHECK_LIB(Xt,XtVaAppInitialize,have_xt=yes; LIBS="-lXt $LIBS",have_xt=no)
335 AC_CHECK_LIB(Xmu,XmuInternAtom,LIBS="-lXmu $LIBS")
336 AC_CHECK_FUNCS(XmuRegisterExternalAgent)
337 AC_CHECK_LIB(Xaw3d,XawInitializeWidgetSet,have_xaw=3d,
338 [ AC_CHECK_LIB(Xaw,XawInitializeWidgetSet,have_xaw=yes,have_xaw=no) ])
339 AC_CHECK_LIB(Xm,XmCreateForm,have_xm=yes,have_xm=no)
340 AC_CHECK_FUNCS(XShmCreatePixmap)
341 LIBS=$KEEPLIBS
342 fi
343 dnl End of X configure
344
345 # Checks for header files.
346 AC_HEADER_DIRENT
347 AC_HEADER_STDC
348 AC_HEADER_SYS_WAIT
349 AC_CHECK_HEADERS( \
350 [arpa/inet.h \
351 errno.h \
352 getopt.h \
353 glob.h \
354 dlfcn.h \
355 fcntl.h \
356 limits.h \
357 machine/endian.h \
358 malloc.h \
359 memory.h \
360 netdb.h \
361 netinet/in.h \
362 nlist.h \
363 stddef.h \
364 stdlib.h \
365 string.h \
366 strings.h \
367 stropts.h \
368 soundcard.h \
369 sys/audioio.h \
370 sys/awe_voice.h\
371 sys/ioctl.h \
372 sys/ipc.h \
373 sys/param.h \
374 sys/shm.h \
375 sys/socket.h \
376 sys/soundcard.h \
377 sys/param.h \
378 sys/time.h \
379 sys/types.h \
380 sys/sysctl.h \
381 termios.h \
382 unistd.h \
383 X11/extensions/XShm.h \
384 X11/Xmu/ExtAgent.h])
385 AC_CHECK_HEADER(string.h,, [ AC_DEFINE(NO_STRING_H,1,Define to 1 if you do not have <string.h>.)])
386
387 # Checks for typedefs, structures, and compiler characteristics.
388 AC_C_CONST
389 AC_C_CHAR_UNSIGNED
390 AC_C_BIGENDIAN
391 AC_C_INLINE
392 AC_TYPE_OFF_T
393 AC_TYPE_PID_T
394 AC_TYPE_SIZE_T
395 AC_HEADER_TIME
396 AC_STRUCT_TM
397
398 dnl keyword "volatile" check
399 AC_CACHE_CHECK(volatile declaration,timidity_cv_type_volatile,
400 AC_TRY_COMPILE(,volatile int x,
401 timidity_cv_type_volatile=yes,timidity_cv_type_volatile=no))
402 if test $timidity_cv_type_volatile = no; then
403 AC_DEFINE(NO_VOLATILE,1,Define to 1 if you cannot use volatile keyword)
404 fi
405
406 dnl union usenum check
407 AC_CACHE_CHECK(union semun declaration,timidity_cv_type_union_semun,
408 AC_TRY_COMPILE(
409 [#include <sys/types.h>
410 #include <sys/ipc.h>
411 #include <sys/sem.h>],
412 union semun x,
413 timidity_cv_type_union_semun=yes,timidity_cv_type_union_semun=no))
414 if test $timidity_cv_type_union_semun = yes; then
415 AC_DEFINE(HAVE_UNION_SEMUN,1,Define to 1 if you use semun keyword)
416 fi
417
418 dnl Cygnus mmsystem check
419 if test "x$CYGNUS" = xyes; then
420 AC_CACHE_CHECK(Cygwin new mmsystem,timidity_cv_header_new_mmsystem,
421 AC_TRY_COMPILE(
422 [#include <windows.h>
423 #include <mmsystem.h>],
424 return WOM_OPEN != 0x3BB,
425 timidity_cv_header_new_mmsystem=yes,timidity_cv_header_new_mmsystem=no))
426 if test $timidity_cv_header_new_mmsystem = yes; then
427 AC_DEFINE(HAVE_NEW_MMSYSTEM,1,Define to 1 if you have <mmsystem.h> file)
428 fi
429 fi
430
431 dnl MINGW mmsystem check
432 if test "x$MINGW" = xyes; then
433 AC_CACHE_CHECK(Mingw new mmsystem,timidity_cv_header_new_mmsystem,
434 AC_TRY_COMPILE(
435 [#include <windows.h>
436 #include <mmsystem.h>],
437 return WOM_OPEN != 0x3BB,
438 timidity_cv_header_new_mmsystem=yes,timidity_cv_header_new_mmsystem=no))
439 if test $timidity_cv_header_new_mmsystem = yes; then
440 AC_DEFINE(HAVE_NEW_MMSYSTEM,1,Define to 1 if you have <mmsystem.h> file)
441 fi
442 fi
443
444 # Checks for library functions.
445 AC_FUNC_ERROR_AT_LINE
446 AC_FUNC_FORK
447 AC_PROG_GCC_TRADITIONAL
448 AC_FUNC_MALLOC
449 AC_FUNC_MEMCMP
450 AC_FUNC_MMAP
451 AC_FUNC_SETVBUF_REVERSED
452 AC_TYPE_SIGNAL
453 AC_FUNC_VPRINTF
454 AC_CHECK_FUNCS( \
455 [alarm \
456 dup2 \
457 floor \
458 getcwd \
459 getopt \
460 gethostbyname \
461 gettimeofday \
462 getwd \
463 isatty \
464 memchr \
465 memmove \
466 memset \
467 modf \
468 munmap \
469 popen \
470 pow \
471 select \
472 signal \
473 socket \
474 socket \
475 sleep \
476 vsnprintf \
477 snprintf \
478 sqrt \
479 strchr \
480 strdup \
481 strstr \
482 strerror \
483 strcasecmp \
484 strncasecmp \
485 strrchr \
486 strstr \
487 strtol \
488 usleep])
489
490 # Checks on cygnus
491 if test "x$CYGNUS" = xyes; then
492 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
493 *yes*)
494 AC_CHECK_FUNC(opendir,,
495 [ EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
496 W32READDIR=yes ])
497 ;;
498 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
499 W32READDIR=yes
500 ;;
501 esac
502 if test "x$enable_network" = "xyes"; then
503 AC_CHECK_FUNC(socket,,
504 WAPI_CHECK_LIB(wsock32,WSAStartup,
505 [#include <winsock.h>],
506 [WSAStartup(0,0);],
507 [ EXTRALIBS="$EXTRALIBS -lwsock32"
508 EXTRADEFS="$EXTRADEFS -DWINSOCK" ]))
509 fi
510 fi
511
512 # Checks on Mingw
513 if test "x$CYGWIN" = xyes; then
514 case "$ac_cv_header_dirent_dirent_h$ac_cv_header_dirent_sys_ndir_h$ac_cv_header_dirent_sys_dir_h$ac_cv_header_dirent_ndir_h" in
515 *yes*)
516 AC_CHECK_FUNC(opendir,,
517 [ EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
518 W32READDIR=yes ])
519 ;;
520 *)EXTRADEFS="$EXTRADEFS -D__W32READDIR__"
521 W32READDIR=yes
522 ;;
523 esac
524 if test "x$enable_network" = "xyes"; then
525 AC_CHECK_FUNC(socket,,
526 WAPI_CHECK_LIB(wsock32,WSAStartup,
527 [#include <winsock.h>],
528 [WSAStartup(0,0);],
529 [ EXTRALIBS="$EXTRALIBS -lwsock32"
530 EXTRADEFS="$EXTRADEFS -DWINSOCK" ]))
531 fi
532 fi
533
534 # Checks on extra paths
535
536 dnl tcltk paths
537 AC_ARG_WITH(tcl-includes,
538 [ --with-tcl-includes=DIR Tcl include file path ],
539 [ if test ! -d $withval; then
540 AC_MSG_WARN($withval is not found.)
541 fi
542 tcl_include_dir="-I$withval"
543 ])
544 AC_ARG_WITH(tcl-libs,
545 [ --with-tcl-libs=DIR Tcl library file path ],
546 [ if test ! -d $withval; then
547 AC_MSG_WARN($withval is not found.)
548 fi
549 tcl_libdir="-L$withval" ])
550 AC_ARG_WITH(tk-includes,
551 [ --with-tk-includes=DIR Tk include file path ],
552 [ if test ! -d $withval; then
553 AC_MSG_WARN($withval is not found.)
554 fi
555 tk_includes="-I$withval" ])
556 AC_ARG_WITH(tk-libs,
557 [ --with-tk-libs=DIR Tk library file path ],
558 [ if test ! -d $withval; then
559 AC_MSG_WARN($withval is not found.)
560 fi
561 tk_libdir="-L$withval" ])
562
563 dnl offix paths
564 AC_ARG_WITH(offix-includes,
565 [ --with-offix-includes=DIR Offix include file path ],
566 [ if test ! -d $withval; then
567 AC_MSG_WARN($withval is not found.)
568 fi
569 offix_include_dir="-I$withval" ])
570 AC_ARG_WITH(offix-libs,
571 [ --with-offix-libs=DIR Offix include file path ],
572 [ if test ! -d $withval; then
573 AC_MSG_WARN($withval is not found.)
574 fi
575 offix_lib_dir="-L$withval" ])
576
577
578 #
579 # audio section
580 #
581 dnl default(d): auto selection
582 dnl oss(d): OSS /dev/dsp
583 dnl alsa(d): ALSA pcm device
584 dnl sun(d): SunOS /dev/audio
585 dnl hpux(d): HPUX /dev/audio
586 dnl irix(d): IRIX audio
587 dnl mme(d): OSF/1 MME
588 dnl sb_dsp(d): BSD/OS 2.0 /dev/sb_dsp
589 dnl w32(d): Windows MMS
590 dnl darwin(d): Mac OS X pcm device
591 dnl alsa(s): ALSA pcm device
592 dnl alib(A): HPUX network audio (Alib)
593 dnl nas(n): Network Audio System
594 dnl esd(e): EsounD
595 dnl vorbis(v): Ogg Vorbis
596 dnl gogo(g): MP3 GOGO
597
598 audio_targets='default oss alsa sun hpux irix mme sb_dsp w32 alib nas esd vorbis gogo'
599
600 AC_ARG_WITH(nas-library,
601 [ --with-nas-library=library NAS absolute library path(Don't use -laudio)])
602 AC_ARG_WITH(nas-includes,
603 [ --with-nas-includes=DIR NAS include files are in dir])
604
605
606 AC_ARG_ENABLE(audio,
607 [ --enable-audio[=mode_list] Enable audio (Specify comma separated mode list):
608 default: Automatically select audio device.
609 oss: OSS /dev/dsp
610 sun: SunOS /dev/audio
611 hpux: HPUX /dev/audio
612 irix: IRIX audio library
613 mme: OSF/1 MME
614 sb_dsp: BSD/OS 2.0 /dev/sb_dsp
615 w32: Windows MMS
616 darwin: Darwin CoreAudio
617 alsa: ALSA pcm device
618 alib: HPUX network audio (Alib)
619 nas: NAS - Network Audio System
620 esd: EsounD - Enlightened Sound Daemon
621 vorbis: Ogg Vorbis
622 gogo: MP3 GOGO (Only Windows is supported)],
623 [ enable_audio=$enableval
624 have_audio_opt=yes ],
625 [ enable_audio=yes
626 have_audio_opt=no ])
627
628 dnl yes -> default
629 test "x$enable_audio" = xyes && enable_audio=default
630
631 if test "x$enable_audio" != xno; then
632 for i in `echo $enable_audio | sed 's/,/ /g'`; do
633 eval "au_enable_$i=yes"
634 done
635 fi
636
637 dnl Turn on default output mode
638 DEFAULT_PLAYMODE=
639 AC_ARG_WITH(default-output,
640 [ --with-default-output=<mode> Specify default output mode (optional):
641 (default|alsa|alib|nas|esd|wav
642 |au|aiff|list|vorbis|gogo)],
643 [ if test "$enable_audio" != no; then
644 DEFAULT_PLAYMODE=$withval
645 eval "au_enable_$DEFAULT_PLAYMODE=yes"
646 else
647 AC_MSG_WARN(--with-default-output=$withval: audio is not enabled)
648 fi])
649
650 dnl compatibility matters.
651 dnl AC_ARG_ENABLE(esd,
652 dnl [ --enable-esd EsounD (Obsoleted. Use --enable-audio=esd)],
653 dnl [ au_enable_esd=$enableval ])
654 dnl AC_ARG_ENABLE(nas,
655 dnl [ --enable-nas NAS (Obsoleted. Use --enable-audio=nas)],
656 dnl [ au_enable_nas=$enableval ])
657 dnl AC_ARG_ENABLE(alsa,
658 dnl [ --enable-alsa ALSA (Obsoleted. Use --enable-audio=alsa)],
659 dnl [ au_enable_alsa=$enableval ])
660
661 dnl target-specific defaults
662 if test "x$au_enable_default" = xyes; then
663 case "$target" in
664 *-*-linux*|*-*-freebsd*)
665 au_enable_oss=yes
666 ;;
667 *-*-bsdi2.0)
668 au_enable_sb_dsp=yes
669 ;;
670 *-*-bsdi2.1|*-*-bsdi3.?|*-*-bsdi4.?)
671 au_enable_oss=yes
672 ;;
673 *-*-hpux*)
674 au_enable_hpux=yes
675 ;;
676 *-dec-*)
677 au_enable_mme=yes
678 ;;
679 *irix*)
680 au_enable_irix=yes
681 ;;
682 *-*-sunos4*)
683 au_enable_sun=yes
684 ;;
685 *-*-solaris*)
686 au_enable_sun=yes
687 ;;
688 *-*-netbsd*)
689 au_enable_sun=yes
690 ;;
691 *-*-cygwin*)
692 au_enable_w32=yes
693 ;;
694 *-*-mingw*)
695 au_enable_w32=yes
696 ;;
697 *-*-darwin*)
698 au_enable_darwin=yes
699 ;;
700 *)
701 AC_MSG_WARN(No --enable-audio=default audio for $target)
702 ;;
703 esac
704 fi
705
706
707 # Each audio mode's configurations
708 dnl oss
709 AC_MSG_CHECKING(enable_audio=oss)
710 if test "x$au_enable_oss" = xyes; then
711 EXTRADEFS="$EXTRADEFS -DAU_OSS"
712 SYSEXTRAS="$SYSEXTRAS oss_a.c"
713 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then
714 AC_MSG_RESULT(yes - <sys/soundcard.h>)
715 else
716 case "$target" in
717 *linux*|*freebsd*)
718 dnl <linux/soundcard.h> or <machine/soundcard.h>
719 AC_MSG_RESULT(yes)
720 ;;
721 *)
722 if test "x$ac_cv_header_soundcard_h" = xyes; then
723 AC_MSG_RESULT(yes - <soundcard.h>)
724 else
725 AC_MSG_WARN(<sys/soundcard.h> is not found)
726 fi
727 ;;
728 esac
729 fi
730 AC_CHECK_LIB(ossaudio,open)
731
732 dnl Why OpenBSD use /dev/audio instead of /dev/dsp for OSS
733 case "$target" in
734 *openbsd*)
735 if test ! -e "/dev/dsp"; then
736 oss_device=/dev/audio
737 fi
738 ;;
739 esac
740 else
741 AC_MSG_RESULT(no)
742 fi
743
744 dnl SunOS's
745 AC_MSG_CHECKING(enable_audio=sun)
746 if test "x$au_enable_sun" = xyes; then
747 case "$target" in
748 *-*-sunos4*)
749 if test -f /usr/demo/SOUND/libaudio.a; then
750 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/libaudio.a"
751 AC_MSG_RESULT(yes)
752 else
753 AC_MSG_RESULT(Notice: libaudio.a is not found [(ignore)])
754 fi
755 ;;
756 *-*-solaris*)
757 if test -f /usr/demo/SOUND/lib/libaudio.a; then
758 EXTRALIBS="$EXTRALIBS /usr/demo/SOUND/lib/libaudio.a"
759 AC_MSG_RESULT(yes)
760 else
761 AC_MSG_RESULT(Notice: libaudio.a is not found [(ignore)])
762 fi
763 ;;
764 *) AC_MSG_RESULT(yes)
765 ;;
766 esac
767 EXTRADEFS="$EXTRADEFS -DAU_SUN"
768 SYSEXTRAS="$SYSEXTRAS sun_a.c"
769 else
770 AC_MSG_RESULT(no)
771 fi
772
773 dnl HP-UX's
774 AC_MSG_CHECKING(enable_audio=hpux)
775 if test "x$au_enable_hpux" = xyes; then
776 case "$target" in
777 *-*-hpux*) AC_MSG_RESULT(yes) ;;
778 *) AC_MSG_WARN(may not work on $target) ;;
779 esac
780 EXTRADEFS="$EXTRADEFS -DAU_HPUX_AUDIO"
781 SYSEXTRAS="$SYSEXTRAS hpux_d_a.c"
782 else
783 AC_MSG_RESULT(no)
784 fi
785
786 dnl Irix's
787 AC_MSG_CHECKING(enable_audio=irix)
788 if test "x$au_enable_irix" = xyes; then
789 case "$target" in
790 *-sgi-irix5*|*-sgi-irix6.2)
791 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_OLDAL"
792 AC_MSG_RESULT(yes)
793 ;;
794 *-sgi-irix6*)
795 EXTRADEFS="$EXTRADEFS -DAU_AUDRIV -DSGI_NEWAL"
796 AC_MSG_RESULT(yes)
797 ;;
798 *) AC_MSG_WARN(may not work on $target) ;;
799 esac
800 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_al.c"
801 EXTRALIBS="$EXTRASLIBS -laudio"
802 else
803 AC_MSG_RESULT(no)
804 fi
805
806 dnl OSF/1 MME
807 AC_MSG_CHECKING(enable_audio=mme)
808 if test "x$au_enable_mme" = xyes; then
809 case "$target" in
810 *-dec-*) AC_MSG_RESULT(yes) ;;
811 *) AC_MSG_WARN(may not work on $target) ;;
812 esac
813 EXTRADEFS="$EXTRADEFS -DAU_DEC -DAU_AUDRIV"
814 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_mme.c"
815 CPPFLAGS="$CPPFLAGS -I/usr/opt/MME210/include"
816 EXTRALIBS="$EXTRALIBS /usr/opt/MME220/lib/libmme.a"
817 else
818 AC_MSG_RESULT(no)
819 fi
820
821 dnl BSD/OS's sb_dsp
822 AC_MSG_CHECKING(enable_audio=sb_dsp)
823 if test "x$au_enable_sb_dsp" = xyes; then
824 case "$target" in
825 *-*-bsdi2.0) AC_MSG_RESULT(yes) ;;
826 *) AC_MSG_WARN(may not work on $target) ;;
827 esac
828 EXTRADEFS="$EXTRADEFS -DAU_BSDI -DDEFAULT_RATE=22500"
829 SYSEXTRAS="$SYSEXTRAS bsd20_a.c"
830 else
831 AC_MSG_RESULT(no)
832 fi
833
834 dnl Windows' MME
835 AC_MSG_CHECKING(enable_audio=w32)
836 if test "x$au_enable_w32" = xyes; then
837 case "$target" in
838 *-*-cygwin*)
839 AC_MSG_RESULT(yes)
840 ;;
841 *)
842 AC_MSG_WARN(may not work on $target)
843 ;;
844 esac
845 SYSEXTRAS="$SYSEXTRAS w32_a.c"
846 EXTRALIBS="$EXTRALIBS -lwinmm"
847 EXTRADEFS="$EXTRADEFS -DAU_W32"
848 else
849 AC_MSG_RESULT(no)
850 fi
851
852 dnl Mac OS X / darwin-x86
853 AC_MSG_CHECKING(enable_audio=darwin)
854 if test "x$au_enable_darwin" = xyes; then
855 EXTRADEFS="$EXTRADEFS -DAU_DARWIN"
856 SYSEXTRAS="$SYSEXTRAS darwin_a.c"
857 EXTRALIBS="$EXTRALIBS -framework CoreAudio"
858 dnl just say yes or no :-P
859 case "$target" in
860 *-*-darwin*)
861 AC_MSG_RESULT(yes);;
862 *)
863 AC_MSG_WARN(may not work on $target)
864 ;;
865 esac
866 else
867 AC_MSG_RESULT(no)
868 fi
869
870 dnl ALSA pcm
871 AC_MSG_CHECKING(enable_audio=alsa)
872 if test "x$au_enable_alsa" = xyes; then
873 AC_MSG_RESULT()
874 KEEPCFLAGS=$CFLAGS
875 KEEPLIBS=$LIBS
876 KEEPLDFLAGS=$LDFLAGS
877 AM_PATH_ALSA_LOCAL()
878 if test have_alsa = no; then
879 AC_MSG_WARN(ALSA: Couldn't configure)
880 CFLAGS=$KEEPCFLAGS
881 LIBS=$KEEPLIBS
882 LDFLAGS=$KEEPLDFLAGS
883 else
884 AC_MSG_RESULT(ALSA: Enabled)
885 EXTRADEFS="$EXTRADEFS -DAU_ALSA"
886 SYSEXTRAS="$SYSEXTRAS alsa_a.c"
887 EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$ALSA_CFLAGS)
888 LIBS="$KEEPLIBS $ALSA_LIBS"
889 fi
890 else
891 AC_MSG_RESULT(no)
892 fi
893
894 dnl HP-UX Alib
895 AC_MSG_CHECKING(enable_audio=alib)
896 if test "x$au_enable_alib" = xyes; then
897 case "$target" in
898 *-*-hpux*) AC_MSG_RESULT(yes) ;;
899 *) AC_MSG_WARN(may not work on $target) ;;
900 esac
901 SYSEXTRAS="$SYSEXTRAS hpux_a.c"
902 EXTRADEFS="$EXTRADEFS -DAU_HPUX_ALIB"
903 if test -d /opt/audio/include; then
904 CPPFLAGS="$CPPFLAGS -I/opt/audio/include"
905 fi
906 if test -d /opt/audio/lib; then
907 EXTRALIBS="$EXTRALIBS -L/opt/audio/lib"
908 fi
909 EXTRALIBS="$EXTRALIBS -lAlib"
910 else
911 AC_MSG_RESULT(no)
912 fi
913
914 dnl nas
915 AC_MSG_CHECKING(enable_audio=nas)
916 if test "x$au_enable_nas" = xyes; then
917 if test "x$with_x" != xyes; then
918 AC_MSG_ERROR(nas: --with-x option must be specified)
919 fi
920 EXTRADEFS="$EXTRADEFS -DAU_NAS"
921 SYSEXTRAS="$SYSEXTRAS nas_a.c"
922
923 dnl -laudio conflicts another audio library,
924 dnl so I specify NAS library with absolete path.
925
926 if test "x$with_nas_library" != x; then
927 AC_MSG_RESULT($with_nas_library);
928 EXTRALIBS="$EXTRALIBS $with_nas_library"
929 else
930 AC_MSG_RESULT()
931 MY_SEARCH_LIBS(AuOpenServer,
932 [$x_libraries/libaudio.a \
933 /usr/lib/libaudio.so \
934 /usr/lib/libaudio.a ],
935 [ AC_MSG_RESULT(NAS: $timidity_cv_search_AuOpenServer)
936 EXTRALIBS="$EXTRALIBS $timidity_cv_search_AuOpenServer"],
937 [AC_MSG_WARN(NAS library is not found.)])
938 fi
939 test "x$with_nas_includes" != x && CPPFLAGS="$CPPFLAGS -I$with_nas_includes"
940 lib_xt_opt=-lXt
941 if test "x$have_xext" = xyes; then
942 lib_xext_opt=-lXext
943 fi
944 if test "x$have_xprelibs" = xyes; then
945 lib_xprelibs_opt='-lSM -lICE'
946 fi
947 else
948 AC_MSG_RESULT(no)
949 fi
950
951 dnl EsounD
952 AC_MSG_CHECKING(enable_audio=esd)
953 if test "x$au_enable_esd" = xyes; then
954 AC_MSG_RESULT([yes, configuring esd])
955 KEEPCFLAGS=$CFLAGS
956 KEEPLIBS=$LIBS
957 KEEPLDFLAGS=$LDFLAGS
958 AM_PATH_ESD()
959 CFLAGS=$KEEPCFLAGS
960 LIBS=$KEEPLIBS
961 LDFLAGS=$KEEPLDFLAGS
962 if test "x$no_esd" = x; then
963 dnl AC_MSG_RESULT(EsounD: Enabled)
964 EXTRADEFS="$EXTRADEFS -DAU_ESD"
965 SYSEXTRAS="$SYSEXTRAS esd_a.c"
966 EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$ESD_CFLAGS)
967 LIBS="$LIBS $ESD_LIBS"
968 else
969 AC_MSG_WARN(EsounD: Couldn't configure)
970 fi
971 else
972 AC_MSG_RESULT(no)
973 fi
974
975 dnl ogg's vorbis
976 AC_MSG_CHECKING(enable_audio=vorbis)
977 if test "x$au_enable_vorbis" = xyes; then
978 AC_MSG_RESULT([yes, configuring vorbis])
979 AM_PATH_OGG([
980 AM_PATH_VORBIS([
981 have_vorbis=yes
982 SYSEXTRAS="$SYSEXTRAS vorbis_a.c"
983 EXTRADEFS="$EXTRADEFS -DAU_VORBIS $OGG_CFLAGS $VORBIS_CFLAGS"
984 EXTRALIBS="$EXTRALIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
985 if test "x$CYGNUS" = "xyes"; then
986 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
987 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
988 fi
989 if test "x$MINGW" = "xyes"; then
990 EXTRADEFS="-DAU_VORBIS_DLL $EXTRALIBS"
991 SYSEXTRAS="$SYSEXTRAS w32g_vorbisenc_dll.c w32g_vorbis_dll.c w32g_ogg_dll.c"
992 fi
993 ],[
994 AC_MSG_WARN([Unable to configure vorbis, but ogg is there (???)])
995 ])
996 ],[
997 AC_MSG_WARN(Unable to configure vorbis!)
998 have_vorbis=no
999 ])
1000 else
1001 AC_MSG_RESULT(no)
1002 fi
1003
1004 dnl Win32 Gogo-no-coder
1005 AC_MSG_CHECKING(enable_audio=gogo)
1006 if test "x$au_enable_gogo" = xyes; then
1007 if test "x$CYGNUS" = "xyes"; then
1008 AC_MSG_RESULT(yes, configuring gogo)
1009 else
1010 if test "x$MINGW" = "xyes"; then
1011 AC_MSG_RESULT(yes, configuring gogo)
1012 else
1013 AC_MSG_WARN(May be gogo is not supported. You need hack the gogo_a.c)
1014 fi
1015 fi
1016 have_gogo=yes
1017 SYSEXTRAS="$SYSEXTRAS gogo_a.c w32_gogo.c"
1018 EXTRADEFS="$EXTRADEFS -DAU_GOGO -DAU_GOGO_DLL"
1019 EXTRALIBS="$EXTRALIBS -lgogo"
1020 else
1021 AC_MSG_RESULT(no)
1022 fi
1023
1024 dnl Pseudo audio device (Undocumented).
1025 if test "x$au_enable_none" = xyes; then
1026 EXTRADEFS="$EXTRADEFS -DAU_NONE -DAU_AUDRIV"
1027 SYSEXTRAS="$SYSEXTRAS audriv_a.c audriv_none.c"
1028 fi
1029 dnl
1030 dnl TIMIDITY_OUTPUT_ID
1031 dnl
1032 AC_MSG_CHECKING(default output mode)
1033 if test "x$DEFAULT_PLAYMODE" = x; then
1034 DEFAULT_PLAYMODE=`echo $enable_audio | sed 's/,.*//'`
1035 fi
1036 case ".$DEFAULT_PLAYMODE" in
1037 .default) TIMIDITY_OUTPUT_ID=d ;;
1038 .oss) TIMIDITY_OUTPUT_ID=d ;;
1039 .alsa) TIMIDITY_OUTPUT_ID=s ;;
1040 .sun) TIMIDITY_OUTPUT_ID=d ;;
1041 .hpux) TIMIDITY_OUTPUT_ID=d ;;
1042 .irix) TIMIDITY_OUTPUT_ID=d ;;
1043 .mme) TIMIDITY_OUTPUT_ID=d ;;
1044 .sb_dsp) TIMIDITY_OUTPUT_ID=d ;;
1045 .darwin) TIMIDITY_OUTPUT_ID=d ;;
1046 .w32) TIMIDITY_OUTPUT_ID=d ;;
1047 .alib) TIMIDITY_OUTPUT_ID=A ;;
1048 .nas) TIMIDITY_OUTPUT_ID=n ;;
1049 .esd) TIMIDITY_OUTPUT_ID=e ;;
1050 .wav) TIMIDITY_OUTPUT_ID=w ;;
1051 .au) TIMIDITY_OUTPUT_ID=u ;;
1052 .aiff) TIMIDITY_OUTPUT_ID=a ;;
1053 .list) TIMIDITY_OUTPUT_ID=l ;;
1054 .vorbis) TIMIDITY_OUTPUT_ID=v ;;
1055 .gogo) TIMIDITY_OUTPUT_ID=g ;;
1056 *) TIMIDITY_OUTPUT_ID= ;;
1057 esac
1058 AC_MSG_RESULT($DEFAULT_PLAYMODE/$TIMIDITY_OUTPUT_ID)
1059
1060 #
1061 # Interface Section
1062 #
1063
1064 interface_targets='dynamic ncurses slang motif tcltk emacs vt100 xaw xskin gtk alsaseq winsyn'
1065
1066 AC_ARG_ENABLE(interface,
1067 [ --enable-interface=[interface_list]
1068 Comma separated interface list ],
1069 [ for i in `echo $enableval | sed 's/,/ /g'`; do
1070 eval "enable_$i=yes"
1071 done ])
1072
1073 # Dynamic link configuration
1074 AC_ARG_ENABLE(dynamic,
1075 [ --enable-dynamic Enable dynamic link interface (default is no)
1076 --enable-dynamic=dynamic_list
1077 Comma separated dynamic interface list],
1078 [ dnl --enable-dynamic=yes to --enable-dynamic=dynamic
1079 if test "x$enable_dynamic" = xyes; then
1080 enable_dynamic=dynamic
1081 elif test "x$enable_dynamic" != xno; then
1082 for i in `echo $enableval | sed 's/,/ /g'`; do
1083 eval "enable_$i=dynamic"
1084 done
1085 fi])
1086
1087 join_targets=
1088 for i in $interface_targets; do
1089 eval "join_targets=$join_targets\$enable_$i"
1090 done
1091
1092 case ".$join_targets" in
1093 .*dynamic*) NEEDDLOPEN=yes;;
1094 *) NEEDDLOPEN=no;;
1095 esac
1096
1097 dnl check -fpic option for gcc
1098 if test "x$GCC" = xyes; then SHCFLAGS="$SHCFLAGS -fPIC"; fi
1099 case "x$enable_ump" in xyes|xdynamic) EXTRACFLAGS="$EXTRACFLAGS -DXP_UNIX $SHCFLAGS";; esac
1100
1101 dnl Which type of dynamic loader?
1102 if test "$NEEDDLOPEN" = "yes"; then
1103 have_dl=no
1104
1105 WAPI_CHECK_FUNC(LoadLibrary,,[LoadLibrary(0);],have_dl=w32)
1106 test $wapi_cv_func_LoadLibrary = yes && have_dl=w32
1107
1108 if test "$have_dl" = "no"; then
1109 AC_CHECK_FUNC(shl_load,have_dl=hpux)
1110 fi
1111 if test "$have_dl" = "no"; then
1112 dnl darwin has both dyld and libdl: in case user installed dlcompat.
1113 dnl dyld is recommended because libdl is a wrapper for dyld.
1114 AC_CHECK_FUNC(NSLinkModule,have_dl=dyld)
1115 fi
1116 if test "$have_dl" = "no" -a "x$ac_cv_lib_dl_dlopen" = xyes; then
1117 have_dl=dlopen
1118 fi
1119 if test "$have_dl" = "no"; then
1120 AC_CHECK_FUNC(dlopen,have_dl=dlopen)
1121 fi
1122 if test "$have_dl" = "no"; then
1123 AC_CHECK_FUNC(dld_init,have_dl=dld)
1124 fi
1125 if test "$have_dl" = "no"; then
1126 AC_CHECK_LIB(dld,dld_init,have_dl=dld;lib_dl_opt=-ldld)
1127 fi
1128
1129 AC_MSG_CHECKING(dynamic link method)
1130 case "$have_dl" in
1131 dlopen)
1132 AC_MSG_RESULT(use dl_dlopen.c)
1133 SYSEXTRAS="$SYSEXTRAS dl_dlopen.c"
1134 CHECK_DLSYM_UNDERSCORE(AC_DEFINE(DLSYM_NEEDS_UNDERSCORE,1,Define to 1 if you have to add "_" to every identifiers.))
1135 ;;
1136 dld)
1137 AC_MSG_RESULT(use dl_dld.c)
1138 SYSEXTRAS="$SYSEXTRAS dl_dld.c"
1139 ;;
1140 hpux)
1141 AC_MSG_RESULT(use dl_hpux.c)
1142 SYSEXTRAS="$SYSEXTRAS dl_hpux.c"
1143 LDFLAGS="$LDFLAGS -Wl,-E $LDFLAGS"
1144 ;;
1145 w32)
1146 AC_MSG_RESULT(use dl_w32.c)
1147 SYSEXTRAS="$SYSEXTRAS dl_w32.c"
1148 ;;
1149 dyld)
1150 AC_MSG_RESULT(use dl_dyld.c)
1151 SYSEXTRAS="$SYSEXTRAS dl_dyld.c"
1152 ;;
1153 *)
1154 NEEDDLOPEN="no"
1155 AC_MSG_WARN(no method to open a shared object)
1156 ;;
1157 esac
1158 fi
1159
1160 if test "$NEEDDLOPEN" = "yes"; then
1161 MY_DEFINE(IA_DYNAMIC)
1162 AC_DEFINE_UNQUOTED(SHARED_LIB_EXT,".$so", shared library extention)
1163 dnl needless?
1164 dnl EXTRADEFS="$EXTRADEFS \$(DEF_SHLIB_DIR)"
1165 test "x$GCC" = xyes -a "x$timidity_cv_ccoption_rdynamic" = xyes && timidity_LDFLAGS="-rdynamic"
1166 fi
1167
1168 AM_CONDITIONAL(NEEDDLOPEN, test "$NEEDDLOPEN" = "yes")
1169
1170 dnl
1171 dnl Each interface section
1172 dnl
1173
1174 dnl ncurses
1175 AM_CONDITIONAL(ENABLE_NCURSES, false)
1176 CONFIG_INTERFACE(ncurses,NCURSES,n,
1177 [ --enable-ncurses Enable ncurses interface (default is no)],
1178 [ AC_CHECK_HEADERS(ncurses.h ncurses/curses.h curses.h)
1179
1180 dnl #include <ncurses/curses.h> is failure on Plamo Linux 1.3/ncurses 1.9.9e
1181 dnl because <ncurses/curses.h> includes <unctrl.h>:
1182 dnl /usr/include/ncurses/curses.h:34: unctrl.h: No such file or directory
1183 dnl But surely there is unctl.h at /usr/include/ncurses/unctrl.h.
1184 dnl configure must check ncurses header with -I/usr/include/ncurses option.
1185
1186 case "$ac_cv_header_curses_h$ac_cv_header_ncurses_curses_h$ac_cv_header_ncurses_h" in
1187 *yes*);;
1188 *) for i in /usr/include /usr/local/include; do
1189 if test -f "$i/ncurses/curses.h" -a -f "$i/ncurses/unctrl.h"; then
1190 AC_MSG_WARN(ncurses test is failure. Please check config.h and common.makefile later)
1191 CPPFLAGS="$CPPFLAGS -I$i/ncurses"
1192 break
1193 fi
1194 done
1195 ;;
1196 esac
1197
1198 AC_CHECK_LIB(ncurses,initscr,lib_curses_opt=-lncurses,
1199 [ dnl checking pdcurses
1200 AC_CHECK_LIB(curses,PDC_set_ctrl_break,
1201 [ lib_curses_opt=-lcurses
1202 AC_DEFINE(USE_PDCURSES,1,Define to 1 if you use PDcurses)
1203 lib_user32_opt="$lib_user32_test"
1204 ],
1205 [ dnl checking libpdcurses
1206 AC_CHECK_LIB(pdcurses,PDC_set_ctrl_break,
1207 [ lib_curses_opt=-lpdcurses
1208 AC_DEFINE(USE_PDCURSES,1,Define to 1 if you use PDcurses)
1209 lib_user32_opt="$lib_user32_test"
1210 ],
1211 [ dnl OpenBSD use -lcurses instead of -lncurses.
1212 case "$target" in
1213 *openbsd*)
1214 AC_CHECK_LIB(curses,initscr,lib_curses_opt=-lcurses,
1215 [ AC_MSG_WARN(ncurses interface is not enabled)
1216 enable_ncurses=no ])
1217 ;;
1218 *)
1219 AC_MSG_WARN(ncurses interface is not enabled)
1220 enable_ncurses=no
1221 ;;
1222 esac
1223 ])
1224 ],
1225 $lib_user32_test)
1226 ])
1227 ],
1228 [ LIBS="$LIBS $lib_curses_opt"
1229 case "$target" in
1230 *-*-freebsd*)
1231 EXTRALIBS="$EXTRALIBS -lmytinfo"
1232 ;;
1233 esac
1234 INTERFACE_SRCS="$INTERFACE_SRCS ncurs_c.c"
1235 ],
1236 [ n_so_libs="$lib_curses_opt"
1237 case "$target" in
1238 *-*-freebsd*)
1239 n_so_libs="$n_so_libs -lmytinfo"
1240 ;;
1241 esac ])
1242
1243 dnl slang
1244 AM_CONDITIONAL(ENABLE_SLANG, false)
1245 CONFIG_INTERFACE(slang,SLANG,s,
1246 [ --enable-slang Enable slang interface (default is no)],
1247 [ AC_CHECK_LIB(slang,SLang_init_tty,:,
1248 [ enable_slang=no
1249 AC_MSG_WARN(slang interface is not enabled)
1250 ])
1251 AC_CHECK_HEADERS(slang/slang.h slang.h)
1252 ],
1253 [ LIBS="$LIBS -lslang"
1254 INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"
1255 ],
1256 [ s_so_libs="-lslang"
1257 AC_CHECK_LIB(termcap,initscr,s_so_libs="$s_so_libs -ltermcap")
1258 ])
1259
1260 dnl Motif
1261 AM_CONDITIONAL(ENABLE_MOTIF, false)
1262 CONFIG_INTERFACE(motif,MOTIF,m,
1263 [ --enable-motif Enable motif interface (default is no)],
1264 [ if test "x$with_x" != xyes; then
1265 AC_MSG_ERROR(motif: --with-x option must be specified)
1266 fi
1267 if test "x$have_xm" != xyes; then
1268 AC_MSG_WARN(Motif library is not found.)
1269 enable_motif=no
1270 fi
1271 ],
1272 [ lib_xm_opt=-lXm
1273 lib_xt_opt=-lXt
1274 lib_xext_opt=-lXext
1275 if test "x$have_xprelibs" = xyes; then
1276 lib_xprelibs_opt='-lSM -lICE'
1277 fi
1278 INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"
1279 ],
1280 [ if test x$have_xprelibs = xyes; then
1281 m_so_libs="-lXext -lSM -lICE"
1282 fi
1283 m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"
1284 ])
1285
1286 dnl Tcl/Tk
1287 AM_CONDITIONAL(ENABLE_TCLTK, false)
1288 CONFIG_INTERFACE(tcltk,TCLTK,k,
1289 [ --enable-tcltk Enable tcltk interface (default is no)],
1290 [ if test "x$with_x" != xyes; then
1291 AC_MSG_ERROR(tcltk: --with-x option must be specified)
1292 fi
1293
1294 dnl save flags
1295 KEEPCPPFLAGS=$CPPFLAGS
1296 KEEPLDFLAGS=$LDFLAGS
1297 KEEPLIBS=$LIBS
1298
1299 CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"
1300 LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"
1301 LIBS="$LIBS $lib_dl_opt"
1302
1303 tcl_lib=
1304 tk_lib=
1305 for l in tcl tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do
1306 case "x$tcl_lib" in x) AC_CHECK_LIB($l,Tcl_Init,tcl_lib=-l$l);; esac
1307 done
1308 LIBS="$LIBS $tcl_lib"
1309 for l in tk tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do
1310 case "x$tk_lib" in x) AC_CHECK_LIB($l,Tk_Init,tk_lib=-l$l);; esac
1311 done
1312
1313 LIBS=$KEEPLIBS
1314 if test "x$tcl_lib" = x -o "x$tk_lib" = x; then
1315 CPPFLAGS=$KEEPCPPFLAGS
1316 LDFLAGS=$KEEPLDFLAGS
1317 enable_tcltk=no
1318 AC_MSG_WARN(tcl/tk is not enable)
1319 else
1320 tcltk_dep='tclIndex'
1321 fi
1322 ],
1323 [ LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`
1324 case "$target" in
1325 *-*-bsdi*)
1326 EXTRALIBS="$EXTRALIBS -lipc"
1327 ;;
1328 esac
1329 INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"
1330 ],
1331 [ k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"
1332 case "$target" in
1333 *-*-bsdi*)
1334 k_so_libs="$k_so_libs -lipc"
1335 ;;
1336 esac
1337 k_so_libs="$k_so_libs -lX11 -lm"
1338 ])
1339 AM_CONDITIONAL(ENABLE_DYNAMIC_TCLTK, test "x$enable_tcltk" = "xdynamic")
1340
1341 dnl Emacs
1342 AM_CONDITIONAL(ENABLE_EMACS, false)
1343 CONFIG_INTERFACE(emacs,EMACS,e,
1344 [ --enable-emacs Enable emacs interface (default is no)],
1345 ,
1346 [ ELFILES="$ELFILES timidity.el"
1347 INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"
1348 ],
1349 [ ELFILES="$ELFILES timidity.el" ])
1350
1351 dnl VT100
1352 AM_CONDITIONAL(ENABLE_VT100, false)
1353 CONFIG_INTERFACE(vt100,VT100,T,
1354 [ --enable-vt100 Enable VT100 interface (default is no)],
1355 ,
1356 [ INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c" ])
1357
1358 dnl X Athena Widget
1359 AM_CONDITIONAL(ENABLE_XAW, false)
1360 CONFIG_INTERFACE(xaw,XAW,a,
1361 [ --enable-xaw Enable athena interface (default is no)],
1362 [ if test "x$with_x" != xyes; then
1363 AC_MSG_ERROR(xaw: --with-x option must be specified)
1364 fi
1365 if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then
1366 AC_MSG_WARN(X Athena Widget library is not found.)
1367 enable_xaw=no
1368 fi ],
1369 [ dnl Add -lXext -lSM -lICE -lXmu -lXt {-lXaw|-lXaw3d}
1370 if test "x$have_xext" = xyes; then
1371 lib_xext_opt=-lXext
1372 fi
1373 if test "x$have_xprelibs" = xyes; then
1374 lib_xprelibs_opt='-lSM -lICE'
1375 fi
1376 lib_xmu_opt=-lXmu
1377 lib_xt_opt=-lXt
1378 if test "x$have_xaw" = x3d; then
1379 AC_DEFINE(XAW3D,1,Define to 1 if you have libXaw3d.)
1380 lib_xaw_opt=-lXaw3d
1381 else
1382 lib_xaw_opt=-lXaw
1383 fi
1384 INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"
1385 ],
1386 [ if test "x$have_xext" = xyes; then
1387 a_so_libs="-lXext -lX11"
1388 else
1389 a_so_libs="-lX11"
1390 fi
1391 case "$target" in
1392 *darwin*)
1393 a_so_libs="$a_so_libs -lcc_dynamic"
1394 ;;
1395 esac
1396 if test "x$have_xprelibs" = xyes; then
1397 a_so_libs="-lSM -lICE $a_so_libs"
1398 fi
1399 if test "x$have_xaw" = xyes; then
1400 a_so_libs="-lXaw -lXmu -lXt $a_so_libs"
1401 elif test "x$have_xaw" = x3d; then
1402 AC_DEFINE(XAW3D,1,Define to 1 if you have libXaw3d.)
1403 a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"
1404 fi
1405 a_so_libs="$ldflags_x_opt $a_so_libs"
1406 ])
1407 AM_CONDITIONAL(ENABLE_DYNAMIC_XAW, test "x$enable_xaw" = "xdynamic")
1408
1409 dnl X skin
1410 AM_CONDITIONAL(ENABLE_XSKIN, false)
1411 CONFIG_INTERFACE(xskin,XSKIN,i,
1412 [ --enable-xskin Enable X skin interface (default is no)],
1413 [ if test "x$with_x" != xyes; then
1414 AC_MSG_ERROR(xskin: --with-x option must be specified)
1415 fi
1416 ],
1417 [ INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c" ],
1418 [ i_so_libs="$ldflags_x_opt -lX11" ])
1419
1420 dnl GTK+
1421 AM_CONDITIONAL(ENABLE_GTK, false)
1422 CONFIG_INTERFACE(gtk, GTK, g,
1423 [ --enable-gtk Enable GTK+ interface (default is no)],
1424 [ AM_PATH_GTK(1.1.3,,enable_gtk=no) ],
1425 [ LIBS="$LIBS $GTK_LIBS"
1426 EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$GTK_CFLAGS)
1427 INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"
1428 ],
1429 [ if test "x$GCC" = xyes; then
1430 dnl Do not include -rdynamic option in $g_so_libs.
1431 for i in $GTK_LIBS; do
1432 case "x$i" in
1433 x-rdynamic) ;;
1434 *) g_so_libs="$g_so_libs $i" ;;
1435 esac
1436 done
1437 else
1438 g_so_libs="$GTK_LIBS"
1439 fi
1440 EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$GTK_CFLAGS) ])
1441
1442 dnl TiMidity Network MIDI Server
1443 AM_CONDITIONAL(ENABLE_SERVER, false)
1444 CONFIG_INTERFACE(server,SERVER,r,
1445 [ --enable-server Enable server interface (default is no)],
1446 ,
1447 [ INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"
1448 AC_CHECK_HEADERS(sys/soundcard.h)
1449 ])
1450
1451 dnl TiMidity ALSA sequencer server
1452 AM_CONDITIONAL(ENABLE_ALSASEQ, false)
1453 CONFIG_INTERFACE(alsaseq,ALSASEQ,A,
1454 [ --enable-alsaseq Enable ALSA sequencer server interface
1455 (default is no)],
1456 ,
1457 [ INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"
1458 AC_CHECK_HEADERS(sys/asoundlib.h)
1459 ])
1460
1461 dnl TiMidity Windows synthesizer server
1462 AM_CONDITIONAL(ENABLE_WINSYN, false)
1463 CONFIG_INTERFACE(winsyn,WINSYN,W,
1464 [ --enable-winsyn Enable Windows Synthesizer interface
1465 (default is no)],
1466 ,
1467 [ INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c" ])
1468
1469
1470 dnl Windows GUI
1471 AM_CONDITIONAL(ENABLE_W32GUI, false)
1472 CONFIG_INTERFACE(w32gui, W32GUI, w,
1473 [ --enable-w32gui Enable Windows GUI interface (default is no)],
1474 ,
1475 [ lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'
1476 lib_user32_opt='-luser32'
1477 LDFLAGS="-mwindows $LDFLAGS"
1478 INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_ut2.c"
1479 ])
1480
1481 dnl UMP configuration
1482 AM_CONDITIONAL(ENABLE_PLUGIN, false)
1483 CONFIG_INTERFACE(ump, PLUGIN, p,
1484 [ --enable-ump UMP configuration (default is no)],
1485 [ if test ! -d ump; then
1486 AC_MSG_ERROR(UMP Package is not exists. Can't configure it.)
1487 fi
1488 AC_CHECK_HEADER(X11/xpm.h,,AC_MSG_ERROR([UMP Package needs xpm.h[,] but could not find it.]))
1489 AC_CHECK_LIB(Xpm,XpmCreatePixmapFromData,:,AC_MSG_ERROR([UMP Package needs libXpm.a[,] but could not find it.]))
1490 if test "x$have_xext" = xyes; then
1491 lib_xext_opt=-lXext
1492 fi
1493 if test "x$have_xprelibs" = xyes; then
1494 lib_xprelibs_opt='-lSM -lICE'
1495 fi
1496 lib_xmu_opt=-lXmu
1497 lib_xt_opt=-lXt
1498 ])
1499
1500
1501 dnl Offix suppor
1502 dnl this rely on CFLAGS and LIBS
1503 AC_ARG_ENABLE(offix,
1504 [ --enable-offix Enable offix support (default is no)],
1505 [ if test "$enableval" = "yes"; then
1506 KEEPCPPFLAGS=$CPPFLAGS
1507 KEEPLIBS=$LIBS
1508 KEEPLDFLAGS=$LDFLAGS
1509 CPPFLAGS="$CPPFLAGS $offix_include_dir"
1510 LDFLAGS="$LDFLAGS $offix_lib_dir"
1511 LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"
1512 AC_CHECK_LIB(Dnd,DndInitialize,[
1513 LIBS=$KEEPLIBS
1514 lib_offix_opt="-lDnd"
1515 AC_DEFINE(OFFIX,1,Define to 1 if you need offix support)
1516 ],
1517 [ LDFLAGS=$KEEPLDFLAGS
1518 CPPFLAGS=$KEEPCPPFLAGS
1519 LIBS=$KEEPLIBS
1520 ])
1521 fi
1522 ])
1523
1524 dnl Network section
1525 AC_ARG_ENABLE(network,
1526 [ --enable-network Enable network support (default is no)],
1527 [ if test "$enableval" = "yes"; then
1528 AC_DEFINE(SUPPORT_SOCKET,1,Define to 1 if you need network support)
1529 fi ])
1530 AM_CONDITIONAL(ENABLE_NETWORK, test "x$enable_network" = "xyes")
1531
1532 dnl Sound Spectrogram Viewer
1533 AC_ARG_ENABLE(spectrogram,
1534 [ --enable-spectrogram Enable Sound Spectrogram Viewer (default is no)],
1535 [ if test "$enableval" = "yes"; then
1536 if test "x$with_x" != xyes; then
1537 AC_MSG_ERROR(spectrogram: --with-x option must be specified)
1538 fi
1539 AC_DEFINE(SUPPORT_SOUNDSPEC,1,Define to 1 if you need spectrogram vewer.)
1540 fi ])
1541 AM_CONDITIONAL(ENABLE_SOUND_SPEC, test "x$enable_spectrogram" = "xyes")
1542
1543 dnl Wave Spline Interpolations
1544 AC_ARG_ENABLE(spline,
1545 [ --enable-spline=[method] Specify spline method: no|linear|cubic|lagrange
1546 (default is linear)],
1547 [ case "x$enableval" in
1548 xlinear)
1549 AC_DEFINE(LINEAR_INTERPOLATION,1,Define to 1 if you use linear complemention.)
1550 ;;
1551 xcubic)
1552 AC_DEFINE(CSPLINE_INTERPOLATION,1,Define to 1 if you use cubic-spline complemention.)
1553 ;;
1554 xlagrange)
1555 AC_DEFINE(LAGRANGE_INTERPOLATION,1,Define to 1 if you use lagrange complemention.)
1556 ;;
1557 xno)
1558 AC_DEFINE(NO_INTERPOLATION,1,Define to 1 if you do not use complemention.)
1559 ;;
1560 *)
1561 AC_MSG_ERROR(Invalid method of --enable-spline)
1562 ;;
1563 esac ])
1564
1565 dnl WRD interface
1566 AC_ARG_ENABLE(wrd,
1567 [ --enable-wrd Enable WRD interface for X (default is no)],
1568 [ if test "$enableval" = "yes"; then
1569 if test "x$with_x" != xyes; then
1570 AC_MSG_ERROR(wrd: --with-x option must be specified)
1571 fi
1572 AC_DEFINE(WRDT_X,1,Define to 1 if you need wrd support for X.)
1573 enable_sherry_wrd=yes
1574 AC_CHECK_LIB(z,zlibVersion,:,enable_sherry_wrd=no)
1575 AC_CHECK_HEADER(png.h,,enable_sherry_wrd=no)
1576 AC_CHECK_LIB(png,png_init_io,:,enable_sherry_wrd=no,-lz)
1577 if test "$enable_sherry_wrd" = yes; then
1578 AC_DEFINE(ENABLE_SHERRY,1,Define to 1 if you enable Sherry WRD)
1579 lib_zip_opt=-lz
1580 lib_png_opt=-lpng
1581 else
1582 AC_MSG_WARN([Sherry WRD is disabled: png.h, libpng.a, libz.a are required])
1583 fi
1584 if test "x$have_xext" = xyes; then
1585 lib_xext_opt=-lXext
1586 fi
1587 fi ])
1588
1589 dnl end of interfaces
1590
1591
1592 #
1593 # Finish up
1594 #
1595
1596 AM_CONDITIONAL(ENABLE_WRD, test "x$enable_wrd" = "xyes")
1597
1598 AM_CONDITIONAL(CYGNUS, test "x$CYGNUS" = xyes)
1599 AM_CONDITIONAL(MINGW, test "x$MINGW" = xyes)
1600 AM_CONDITIONAL(W32READDIR, test "x$W32READDIR" = "xyes")
1601
1602 SET_UNIQ_WORDS(LDFLAGS,$LDFLAGS)
1603 SET_UNIQ_WORDS(SHLDFLAGS,$SHLDFLAGS)
1604 SET_UNIQ_WORDS(CFLAGS,$EXTRACFLAGS $CFLAGS)
1605 SET_UNIQ_WORDS(CPPFLAGS,$CPPFLAGS $EXTRADEFS)
1606
1607 if test "x$oss_device" != x; then
1608 AC_DEFINE_UNQUOTED(OSS_DEVICE,"$oss_device", oss device name)
1609 fi
1610
1611 if test "x$TIMIDITY_OUTPUT_ID" != x; then
1612 AC_DEFINE_UNQUOTED(TIMIDITY_OUTPUT_ID,"$TIMIDITY_OUTPUT_ID", the output specification)
1613 fi
1614
1615 if test "x$with_x" = xyes; then
1616 dnl Order of X-library is: -lXm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11
1617 LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`
1618 fi
1619 LIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"
1620 SHLD="$SHLD $SHLDFLAGS"
1621
1622 AC_SUBST(SHELL)
1623 AC_SUBST(timidity_LDFLAGS)
1624 AC_SUBST(SYSEXTRAS)
1625 AC_SUBST(EXTRALIBS)
1626 AC_SUBST(NETSRCS)
1627 AC_SUBST(ELFILES)
1628 AC_SUBST(SHLD)
1629 AC_SUBST(SHCFLAGS)
1630 AC_SUBST(dynamic_targets)
1631 AC_SUBST(so)
1632 AC_SUBST(LN_S)
1633 AC_SUBST(WISH)
1634 AC_SUBST(tcltk_dep)
1635 AC_SUBST(program_transform_name)
1636 AC_SUBST(INTERFACE_SRCS)
1637 AC_SUBST(pkgdatadir)
1638 AC_SUBST(pkglibdir)
1639
1640 AC_CONFIG_FILES([
1641 Makefile
1642 common.makefile
1643 interface/Makefile
1644 interface/motif_bitmaps/Makefile
1645 interface/bitmaps/Makefile
1646 interface/pixmaps/Makefile
1647 libarc/Makefile
1648 libunimod/Makefile
1649 timidity/Makefile
1650 utils/Makefile
1651 doc/Makefile
1652 doc/C/Makefile
1653 doc/ja_JP.ujis/Makefile
1654 script/Makefile])
1655 AC_OUTPUT

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