1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953
|
dnl $Id: configure.in,v 1.28 2001/08/25 11:46:03 cegger Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
AC_INIT(include/ggi/ggi.h)
AM_INIT_AUTOMAKE(libggi,2.0.1,-)
AM_MAINTAINER_MODE
AM_DISABLE_STATIC
dnl ========================================================================
dnl Set some defaults
PATHTAG="pAtHTAg"
TAGLEN="7"
ggi_conffile="libggi.conf"
ggi_subdir="ggi"
use_debug="yes"
use_threads="no"
THREADLIBS=""
sublib_libs=""
dynload_libs="-lgii -lgg"
bsdsock_libs=""
dnl Targets
build_x_target="auto"
build_xlib_target="auto"
build_aa_target="auto"
build_directx_target="no"
build_fbdev_target="auto"
build_directfb_renderer="no"
dnl build_directfb_renderer="auto"
build_file_target="auto"
build_glide_target="auto"
build_ipc_target="auto"
build_kgi_target="no"
build_lcd823_target="auto"
build_mansync_helper="auto"
build_memory_target="yes"
build_monotext_target="auto"
build_multi_target="yes"
build_palemu_target="auto"
build_sub_target="auto"
build_suidkgi_target="no"
build_svga_target="auto"
build_vgl_target="auto"
build_tele_target="auto"
build_terminfo_target="auto"
build_tile_target="auto"
build_truemu_target="auto"
build_vcsa_target="auto"
build_vgagl_helper="auto"
build_dga_target="auto"
internal_xf86dga="yes"
build_linvtsw_helper="auto"
build_genkgi_driver="auto"
dnl ========================================================================
dnl Checks for programs.
AC_PROG_CC
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
dnl ========================================================================
dnl User selectable options
dnl TARGETS:
AC_ARG_ENABLE(x,
[ --disable-x don't build the X target],
build_x_target=$enableval)
AC_ARG_ENABLE(xlib,
[ --disable-xlib don't build the Xlib target],
build_xlib_target=$enableval)
AC_ARG_ENABLE(aa,
[ --disable-aa don't build the aa target],
build_aa_target=$enableval)
AC_ARG_ENABLE(directx,
[ --disable-directx don't build the directx target],
build_directx_target=$enableval)
AC_ARG_ENABLE(fbdev,
[ --disable-fbdev don't build the fbdev target],
build_fbdev_target=$enableval)
AC_ARG_ENABLE(directfb,
[ --disable-directfb don't build the directfb renderer],
build_directfb_renderer=$enableval)
AC_ARG_WITH(directfb,
[ --with-directfb=DIR find directfb drivers modules in DIR],
build_directfb_renderer=yes
directfb_driver_dir=$withval,
directfb_driver_dir=/usr/lib/directfb/gfxdrivers)
AC_ARG_ENABLE(genkgi,
[ --disable-genkgi don't build the generic KGI driver (used by fbdev)],
build_genkgi_driver=$enableval)
AC_ARG_ENABLE(file,
[ --disable-file don't build the file target],
build_file_target=$enableval)
AC_ARG_ENABLE(glide,
[ --disable-glide don't build the glide target],
build_glide_target=$enableval)
AC_ARG_ENABLE(ipc,
[ --disable-ipc don't build the ipc target],
build_ipc_target=$enableval)
dnl AC_ARG_ENABLE(suidkgi,
dnl [ --enable-suidkgi build the suidkgi target],
dnl build_suidkgi_target=$enableval)
dnl AC_ARG_ENABLE(kgi,
dnl [ --disable-kgi don't build the kgi target],
dnl build_kgi_target=$enableval)
AC_ARG_ENABLE(memory,
[ --disable-memory don't build the memory target],
build_memory_target=$enableval)
AC_ARG_ENABLE(monotext,
[ --disable-monotext don't build the monotext target],
build_monotext_target=$enableval)
AC_ARG_ENABLE(multi,
[ --disable-multi don't build the multi target],
build_multi_target=$enableval)
AC_ARG_ENABLE(palemu,
[ --disable-palemu don't build the palemu target],
build_palemu_target=$enableval)
AC_ARG_ENABLE(sub,
[ --disable-sub don't build the sub target],
build_sub_target=$enableval)
AC_ARG_ENABLE(vgl,
[ --disable-vgl don't build the vgl target],
build_vgl_target=$enableval)
AC_ARG_ENABLE(svga,
[ --disable-svga don't build the svga target],
build_svga_target=$enableval)
AC_ARG_ENABLE(tele,
[ --disable-tele don't build the tele target],
build_tele_target=$enableval)
AC_ARG_ENABLE(terminfo,
[ --disable-terminfo don't build the terminfo target],
build_terminfo_target=$enableval)
AC_ARG_ENABLE(tile,
[ --disable-tile don't build the tile target],
build_tile_target=$enableval)
AC_ARG_ENABLE(trueemu,
[ --disable-trueemu don't build the trueemu target],
build_trueemu_target=$enableval)
AC_ARG_ENABLE(vcsa,
[ --disable-vcsa don't build the vcsa target],
build_vcsa_target=$enableval)
AC_ARG_ENABLE(vgagl,
[ --disable-vgagl don't build the vgagl target, needed by svga],
build_vgagl_helper=$enableval)
AC_ARG_ENABLE(dga,
[ --disable-dga don't build the dga target],
build_dga_target=$enableval)
AC_ARG_ENABLE(internal-xf86dga,
[ --disable-internal-xf86dga don't use libggi internal xf86dga support],
internal_xf86dga=$enableval)
AC_ARG_ENABLE(linvtsw,
[ --disable-linvtsw don't build the linvtsw helper],
build_linvtsw_helper=$enableval)
AC_ARG_WITH(gii,
[ --with-gii=DIR use the LibGII installed with prefix DIR],
CFLAGS="$CFLAGS -I$withval/include"
CPPFLAGS="$CPPFLAGS -I$withval/include"
LDFLAGS="$LDFLAGS -L$withval/lib")
# This is for building against an uninstalled libgii for
# both $(top_builddir) == $(top_srcdir)
# and $(top_builddir) != $(top_srcdir)
# I'd like the sed expression to be more robust, but
# character set matching '[]' is stripped by m4
AC_ARG_WITH(uninst-gii,
[ --with-uninst-gii=DIR use uninstalled copy of LibGII found in DIR],
gii_top_builddir=`(cd "$withval"; pwd)`
gii_top_srcdir=$gii_top_builddir/`(cd "$withval"; sed -n -e 's/^top_srcdir = //p' Makefile)`
CFLAGS="$CFLAGS -I$gii_top_srcdir/include -I$gii_top_builddir/include"
CPPFLAGS="$CPPFLAGS -I$gii_top_srcdir/include -I$gii_top_builddir/include"
LDFLAGS="$LDFLAGS -L$gii_top_builddir/gg -L$gii_top_builddir/gii")
AC_ARG_ENABLE(threads,
[ --enable-threads use threads for mansync],
use_threads=$enableval)
AC_ARG_ENABLE(debug,
[ --disable-debug don't build with run-time debugging (speed freaks)],
use_debug=$enableval)
GGI_EXTRA_PATHS
dnl ========================================================================
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(ggi/gii.h limits.h unistd.h fcntl.h sys/select.h \
pthread.h sys/ioctl.h signal.h sys/time.h sys/shm.h sys/ipc.h sys/wait.h \
asm/io.h sys/io.h sys/kd.h linux/kd.h sys/vt.h linux/vt.h \
linux/kdev_t.h linux/major.h glide.h glide/glide.h kgimon.h sys/un.h \
sys/socket.h netinet/in.h netdb.h windows.h ddraw.h vgl.h)
dnl ========================================================================
dnl LibGII must be built
gii_missing_part=no
dnl Testing libs should use libtool but doesn't - grrrr!
dnl This isn't a problem during the build because libtool is always used.
dnl Wish I could use $LIBTOOL, but it is written for Makefile use.
save_CC="$CC"
CC="$SHELL ./libtool $CC"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -lgg"
AC_CHECK_LIB(gii,giiInit,
AC_CHECK_LIB(gii,giiEventsQueued,
foo=bar,
AC_MSG_ERROR(You have an obsolete LibGII version installed!)
),
gii_missing_part=yes
)
CC="$save_CC"
LDFLAGS="$save_LDFLAGS"
if test "$ac_cv_header_ggi_gii_h" != "yes"; then
gii_missing_part=yes
fi
dnl ========================================================================
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
GGI_DLLEXT
dnl ========================================================================
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gettimeofday select strdup strerror setenv getopt random \
herror connect sigpending fork)
dnl ========================================================================
dnl Checks for target-specific libraries and headers
if test "x$ac_cv_func_connect" = "xno"; then
SAVELIBS="$LIBS"
AC_MSG_CHECKING([for connect in -lwsock32])
LIBS="$LIBS -lwsock32"
AC_TRY_LINK([
#include <winsock.h>
],[
connect(0, NULL, 42);
],
bsdsock_libs="$bsdsock_libs -lwsock32"
ac_cv_func_connect=yes
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
LIBS="$SAVELIBS"
AC_CHECK_LIB(socket,connect,bsdsock_libs="$bsdsock_libs -lsocket")
)
LIBS="$SAVELIBS"
fi
AC_CHECK_LIB(kgimon,set_monitor,
monitest_extrasrc="kgitune.c"
monitest_extraobj="kgitune.o"
monitest_extralibs="-lkgimon")
SHMDEMOS=""
AC_MSG_CHECKING(if we should build the cube3d program)
if test "x$ac_cv_header_unistd_h" = "xyes" \
-a "x$ac_cv_header_signal_h" = "xyes" \
-a "x$ac_cv_func_setenv" = "xyes" \
-a "x$ac_cv_header_sys_shm_h" = "xyes" \
-a "x$ac_cv_header_sys_ipc_h" = "xyes"; then
SHMDEMOS="$SHMDEMOS cube3d"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
DISPLAYSUBDIRS=""
DEFAULTSUBDIRS="stubs color text_16 text_32 linear_1 linear_1_r linear_2 linear_4 linear_4_r linear_8 linear_16 linear_24 linear_32 planar ilbm iplanar_2p"
FBDEVSUBDIRS=""
have_pthreads=no
if test "x$use_threads" != "xno"; then
AC_MSG_CHECKING(for pthread library)
TMP_SAVE_LIBS=$LIBS
LIBS="$LIBS -lpthread"
AC_TRY_LINK([
#include "confdefs.h"
#define __C_ASM_H /* fix for retarded Digital Unix headers */
#include <pthread.h>],[
void foo(void)
{
pthread_exit (0);
}
],
have_pthreads=yes
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no))
LIBS=$TMP_SAVE_LIBS
fi
AC_MSG_CHECKING(if we should use pthreads for mansync)
if test "$have_pthreads" = "yes" -a "x$use_threads" != "xno"; then
AC_TRY_CPP([
#include <features.h>
if !defined(__linux__)
#error We're not on a bad system - this line makes compilation fail...
#endif
],
use_threads="no"
AC_MSG_RESULT(no),
AC_MSG_RESULT(yes))
else
use_threads="no"
AC_MSG_RESULT(no)
fi
mansync_dependent="x aa tile palemu trueemu"
AC_MSG_CHECKING(if we should build mansync helper)
if test "x$ac_cv_func_fork" = "xno" -a "x$use_threads" = "xno"; then
build_mansync_helper=no
fi
if test "x$build_mansync_helper" = "xno"; then
AC_MSG_RESULT(no)
AC_MSG_WARN(the following targets depend on the mansync helper)
AC_MSG_WARN(and will not be built: $mansync_dependent)
build_x_target="no"
build_aa_target="no"
build_tile_target="no"
build_palemu_target="no"
build_trueemu_target="no"
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS mansync"
build_mansync_helper="yes"
AC_MSG_RESULT(yes)
fi
if test "x$build_x_target" != "xno" \
-o "x$build_xlib_target" != "xno" \
-o "x$build_dga_target" != "xno"; then
AC_PATH_XTRA
if test "x$no_x" = "xyes"; then
build_x_target="no"
build_xlib_target="no"
build_dga_target="no"
fi
fi
if test "x$build_aa_target" != "xno"; then
AC_CHECK_HEADER(aalib.h,
AC_CHECK_LIB(aa, aa_autoinit, foo=bar, build_aa_target="no"),
build_aa_target="no")
fi
if test "x$ac_cv_func_mmap_fixed_mapped" != "xyes"; then
build_fbdev_target="no"
build_genkgi_driver="no"
build_file_target="no"
build_kgi_target="no"
fi
if test "x$build_fbdev_target" != "xno"; then
AC_CHECK_HEADER(linux/fb.h,
AC_TRY_COMPILE([
#include <linux/fb.h>
],[
struct fb_fix_screeninfo *fix;
fix->accel = 0;
],
AC_DEFINE(HAVE_NEW_FBDEV)
have_new_fbdev=yes),
build_fbdev_target="no")
fi
if test "x$build_directfb_renderer" != "xno"; then
AC_CHECK_HEADER(directfb-internal/directfb_version.h,
foo=bar, build_directfb_renderer="no")
fi
if test "x$build_genkgi_driver" != "xno"; then
AC_CHECK_HEADER(kgi/kgi.h, ,build_genkgi_driver="no")
fi
if test "x$build_glide_target" != "xno"; then
if test "x$ac_cv_header_glide_h" = "xno" -a \
"x$ac_cv_header_glide_glide_h" = "xno"; then
build_glide_target="no"
else
AC_CHECK_LIB(glide2x, grGlideInit, foo=bar,
build_glide_target="no", [ -lm ])
fi
fi
if test "x$build_ipc_target" != "xno"; then
AC_CHECK_HEADERS(sys/types.h sys/socket.h sys/un.h sys/shm.h,
build_ipc_target="yes", build_ipc_target="no")
fi
case "$host" in
powerpc-*-linux*)
;;
*)
build_lcd823_target="no"
;;
esac
if test "x$build_vgl_target" != "xno"; then
if test "x$ac_cv_header_vgl.h" = "xno"; then
build_vgl_target="no"
else
AC_CHECK_LIB(vgl, VGLInit, foo=bar,
build_vgl_target="no")
fi
fi
if test "x$build_svga_target" != "xno"; then
AC_CHECK_HEADER(vga.h,
AC_CHECK_LIB(vga, vga_init, foo=bar,
build_svga_target="no"; build_vgagl_helper="no"),
build_svga_target="no"; build_vgagl_helper="no")
AC_CHECK_HEADER(vgagl.h,
AC_CHECK_LIB(vgagl, gl_setpixel, foo=bar,
build_vgagl_helper="no",
[ -lvga ]),
build_vgagl_helper="no")
fi
if test "x$build_terminfo_target" != "xno"; then
curseslib=""
AC_CHECK_HEADER(ncurses.h,
AC_DEFINE(HAVE_NCURSES_H)
curseslib="ncurses",
AC_CHECK_HEADER(ncurses/ncurses.h,
AC_DEFINE(HAVE_NCURSES_NCURSES_H)
curseslib="ncurses",
AC_CHECK_HEADER(curses.h,
AC_DEFINE(HAVE_CURSES_H)
curseslib="curses",
build_terminfo_target="no")))
if test -n "$curseslib"; then
AC_CHECK_LIB($curseslib, set_term,
terminfolibs="-l$curseslib",
build_terminfo_target=no)
fi
fi
if test "x$build_vcsa_target" != "xno"; then
if test "$ac_cv_header_linux_vt_h" != yes; then
build_vcsa_target="no"
fi
fi
if test "x$build_dga_target" != "xno"; then
AC_CHECK_HEADER(X11/extensions/xf86dga.h,[
AM_CONDITIONAL(INTERNAL_XF86DGA, test "x$internal_xf86dga" = "xyes")
if test "x$internal_xf86dga" = "xyes"; then
xf86dga_libs=""
AC_DEFINE(GGI_INTERNAL_XF86DGA)
else
AC_CHECK_LIB(Xxf86dga, XF86DGAQueryVersion, foo=bar,
build_dga_target="no",
[ $X_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
AC_CHECK_LIB(Xxf86vm, XF86VidModeSwitchToMode, foo=bar,
build_dga_target="no",
[ $X_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
xf86dga_libs="-lXxf86dga -lXxf86vm"
fi
], build_dga_target="no")
fi
if test "x$build_linvtsw_helper" != "xno"; then
if test "$ac_cv_header_linux_vt_h" != yes -o \
"$ac_cv_header_linux_kd_h" != yes ; then
build_linvtsw_helper="no"
fi
fi
dnl check for Unix domain sockets.
dnl Define HAVE_UNIX_DOMAIN_SOCKET if found.
AC_MSG_CHECKING(whether UNIX domain sockets are supported)
AC_CACHE_VAL(ggi_cv_have_unix_domain_socket,
[AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif], [struct sockaddr_un unix_addr;],
ggi_cv_have_unix_domain_socket=yes, ggi_cv_have_unix_domain_socket=no)])
AC_MSG_RESULT($ggi_cv_have_unix_domain_socket)
if test $ggi_cv_have_unix_domain_socket = yes ; then
AC_DEFINE(HAVE_UNIX_DOMAIN_SOCKET)
fi
dnl ========================================================================
dnl Check for targets
AC_MSG_CHECKING(if we should build x target)
if test "x$build_x_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS X"
build_x_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build xlib target)
if test "x$build_xlib_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS Xlib"
build_xlib_target="yes"
AC_MSG_RESULT(yes)
fi
dnl AC_MSG_CHECKING(if we should build kgi target)
dnl if test "x$build_kgi_target" = "xno"; then
dnl AC_MSG_RESULT(no)
dnl else
dnl DISPLAYSUBDIRS="$DISPLAYSUBDIRS kgi"
dnl DEFAULTSUBDIRS="$DEFAULTSUBDIRS linmm_banked ramdac ioctl"
dnl build_kgi_target="yes"
dnl AC_MSG_RESULT(yes)
dnl fi
AC_MSG_CHECKING(if we should build aa target)
if test "x$build_aa_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS aa"
build_aa_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build directx target)
if test "x$build_directx_target" != "xno" -a \
"x$ac_cv_header_ddraw_h" = "xyes"; then
DISPLAYSUBDIRS="$DISPLAYSUBDIRS directx"
build_directx_target="yes"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING(if we should build fbdev target)
if test "x$build_fbdev_target" = "xno"; then
AC_MSG_RESULT(no)
if test "x$build_directfb_renderer" != "xno"; then
AC_MSG_WARN(directfb renderer requires fbdev!)
AC_MSG_WARN( disabling directfb renderer)
AC_MSG_WARN( enable fbdev or disable directfb to disable warning)
build_directfb_renderer="no"
fi
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS fbdev"
if test "x$have_new_fbdev" = "xyes"; then
DEFAULTSUBDIRS="$DEFAULTSUBDIRS fbdev"
fi
build_fbdev_target="yes"
AC_MSG_RESULT(yes)
AC_MSG_CHECKING(if we should build directfb renderer )
if test "x$build_directfb_renderer" = "xno"; then
AC_MSG_RESULT(no)
else
build_directfb_renderer="yes"
FBDEVSUBDIRS="$FBDEVSUBDIRS directfb"
AC_DEFINE_UNQUOTED(DIRECTFB_DRIVER_DIR,"$directfb_driver_dir")
AC_MSG_RESULT(yes)
fi
fi
AC_MSG_CHECKING(if we should build generic KGI driver)
if test "x$build_genkgi_driver" = "xno"; then
AC_MSG_RESULT(no)
else
DEFAULTSUBDIRS="$DEFAULTSUBDIRS kgi"
build_genkgi_driver="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build file target)
if test "x$build_file_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS file"
build_file_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build glide target)
if test "x$build_glide_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS glide"
build_glide_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build ipc target)
if test "x$build_ipc_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS ipc"
build_ipc_target="yes"
AC_MSG_RESULT(yes)
fi
dnl AC_MSG_CHECKING(if we should build suidkgi target)
dnl if test "x$build_suidkgi_target" = "xno"; then
dnl AC_MSG_RESULT(no)
dnl else
dnl DISPLAYSUBDIRS="$DISPLAYSUBDIRS suidkgi"
dnl DEFAULTSUBDIRS="$DEFAULTSUBDIRS linmm_banked ramdac ioctl"
dnl build_suidkgi_target="yes"
dnl AC_MSG_RESULT(yes)
dnl fi
AC_MSG_CHECKING(if we should build lcd823 target)
if test "x$build_lcd823_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS lcd823"
build_lcd823_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build memory target)
if test "x$build_memory_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS memory"
build_memory_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build monotext target)
if test "x$build_monotext_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS monotext"
build_monotext_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build multi target)
if test "x$build_multi_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS multi"
build_multi_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build palemu target)
if test "x$build_palemu_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS palemu"
build_palemu_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build sub target)
if test "x$build_sub_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS sub"
build_sub_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build vgl target)
if test "x$build_vgl_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS vgl"
build_vgl_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build svga target)
if test "x$build_svga_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS svgalib"
build_svga_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build vgagl helper (used by svga target))
if test "x$build_vgagl_helper" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS vgagl"
build_vgagl_helper="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build tele target)
if test "x$build_tele_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS tele"
build_tele_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build terminfo target)
if test "x$build_terminfo_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS terminfo"
build_terminfo_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build tile target)
if test "x$build_tile_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS tile"
build_tile_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build trueemu target)
if test "x$build_trueemu_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS trueemu"
build_trueemu_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build vcsa target)
if test "x$build_vcsa_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS vcsa"
build_vcsa_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build dga target)
if test "x$build_dga_target" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS xf86dga"
build_dga_target="yes"
AC_MSG_RESULT(yes)
fi
AC_MSG_CHECKING(if we should build linvtsw helper)
if test "x$build_linvtsw_helper" = "xno"; then
AC_MSG_RESULT(no)
else
DISPLAYSUBDIRS="$DISPLAYSUBDIRS linvtsw"
build_linvtsw_helper="yes"
AC_MSG_RESULT(yes)
fi
dnl ========================================================================
dnl Finally add some flags
dnl _THREAD_SAFE is used instead of _REENTRANT on some systems
CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
if test "x$use_debug" = "xyes"; then
AC_DEFINE(DEBUG)
if test "$ac_cv_prog_gcc" = "yes"; then
CFLAGS="$CFLAGS -g -Wall"
fi
fi
dnl ========================================================================
dnl Write output
AC_SUBST(THREADLIBS)
AC_SUBST(sublib_libs)
AC_SUBST(dynload_libs)
AC_SUBST(bsdsock_libs)
AC_SUBST(DISPLAYSUBDIRS)
AC_SUBST(DEFAULTSUBDIRS)
AC_SUBST(FBDEVSUBDIRS)
dnl Target specific substitutions
AC_SUBST(terminfolibs)
AC_SUBST(xf86dga_libs)
AC_SUBST(directfb_driver_dir)
dnl Program specific substitutions
AC_SUBST(SHMDEMOS)
AC_SUBST(monitest_extrasrc)
AC_SUBST(monitest_extraobj)
AC_SUBST(monitest_extralibs)
dnl Bah! autoconf hasn't set prefix to it's default value yet!
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
dnl Use static_* to substitute into files where values shouldn't
dnl dynamicly change. Makefiles need to be able to dynamicly change
dnl paths between build and install and shouldn't use these static_*.
dnl Files that will be installed must always show the final location where
dnl they will reside and should use these static_* values.
dnl Ensure that all static_* are fully expanded.
eval static_libdir="$libdir"
old_val=""
until test "$static_libdir" = "$old_val"; do
old_val="$static_libdir"
eval static_libdir="$static_libdir"
done
eval static_sysconfdir="$sysconfdir"
old_val=""
until test "$static_sysconfdir" = "$old_val"; do
old_val="$static_sysconfdir"
eval static_sysconfdir="$static_sysconfdir"
done
AC_SUBST(ggi_subdir)
AC_SUBST(static_libdir)
AC_SUBST(static_sysconfdir)
AC_DEFINE_UNQUOTED(GGITAGLEN,$TAGLEN)
AC_DEFINE_UNQUOTED(GGIPATHTAG,"$PATHTAG")
AC_DEFINE_UNQUOTED(GGICONFFILE,"$ggi_conffile")
AC_DEFINE_UNQUOTED(GGICONFDIR,"$PATHTAG$static_sysconfdir/$ggi_subdir")
if test "x$use_threads" = "xpthread"; then
AC_DEFINE(USE_THREADS)
THREADLIBS="-lpthread"
fi
AM_CONFIG_HEADER(config.h)
AC_OUTPUT(
Makefile
ggi/Makefile
include/Makefile
include/ggi/Makefile
include/ggi/internal/Makefile
include/ggi/internal/font/Makefile
include/ggi/default/Makefile
include/ggi/display/Makefile
display/Makefile
display/X/Makefile
display/Xlib/Makefile
display/aa/Makefile
display/common/Makefile
display/directx/Makefile
display/fbdev/Makefile
display/file/Makefile
display/glide/Makefile
display/ipc/Makefile
display/lcd823/Makefile
display/linvtsw/Makefile
display/mansync/Makefile
display/memory/Makefile
display/monotext/Makefile
display/multi/Makefile
display/palemu/Makefile
display/sub/Makefile
display/svgalib/Makefile
display/vgl/Makefile
display/tele/Makefile
display/terminfo/Makefile
display/tile/Makefile
display/trueemu/Makefile
display/vcsa/Makefile
display/vgagl/Makefile
display/xf86dga/Makefile
default/Makefile
default/color/Makefile
default/common/Makefile
default/kgi/Makefile
default/linear_1/Makefile
default/linear_1_r/Makefile
default/linear_2/Makefile
default/linear_4/Makefile
default/linear_4_r/Makefile
default/linear_8/Makefile
default/linear_16/Makefile
default/linear_24/Makefile
default/linear_32/Makefile
default/stubs/Makefile
default/text_16/Makefile
default/text_32/Makefile
default/ilbm/Makefile
default/planar/Makefile
default/iplanar_2p/Makefile
default/fbdev/Makefile
default/fbdev/directfb/Makefile
default/fbdev/directfb/core/Makefile
default/fbdev/mga/Makefile
default/fbdev/mga/2164w/Makefile
default/fbdev/mga/g400/Makefile
extensions/Makefile
extensions/test/Makefile
programs/Makefile
programs/demos/Makefile
programs/demos/warp-ggi/Makefile
programs/util/Makefile
programs/util/monitest/Makefile
programs/check/Makefile
doc/Makefile
doc/man/Makefile
m4/Makefile
libggi.conf
display/fbdev/fbdev.conf
dist/Makefile
dist/rpm/Makefile
dist/rpm/libggi.spec
)
dnl Removed dirs
dnl display/suidkgi/Makefile
dnl default/ramdac/Makefile
dnl default/linmm_banked/Makefile
dnl default/ioctl/Makefile
if test "$gii_missing_part" = "yes"; then
AC_MSG_WARN([
LibGII is not properly installed on the system. You need LibGII for
building LibGGI. Please compile LibGII first.
])
fi
|