common/autoconf/libraries.m4

Print this page




 603           [ALSA_FOUND=no])
 604     fi
 605     if test "x$ALSA_FOUND" = xno; then
 606       HELP_MSG_MISSING_DEPENDENCY([alsa])
 607       AC_MSG_ERROR([Could not find alsa! $HELP_MSG ])
 608     fi
 609   fi
 610 
 611   AC_SUBST(ALSA_CFLAGS)
 612   AC_SUBST(ALSA_LIBS)
 613 ])
 614 
 615 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
 616 [
 617 
 618   ###############################################################################
 619   #
 620   # Check for the jpeg library
 621   #
 622 

























 623   USE_EXTERNAL_LIBJPEG=true
 624   AC_CHECK_LIB(jpeg, main, [],
 625       [ USE_EXTERNAL_LIBJPEG=false
 626       AC_MSG_NOTICE([Will use jpeg decoder bundled with the OpenJDK source])
 627   ])
 628   AC_SUBST(USE_EXTERNAL_LIBJPEG)
 629 
 630   ###############################################################################
 631   #
 632   # Check for the gif library
 633   #
 634 
 635   AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib],
 636       [use giflib from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
 637 
 638 
 639   AC_MSG_CHECKING([for which giflib to use])
 640 
 641   # default is bundled
 642   DEFAULT_GIFLIB=bundled
 643 
 644   #
 645   # if user didn't specify, use DEFAULT_GIFLIB
 646   #
 647   if test "x${with_giflib}" = "x"; then




 603           [ALSA_FOUND=no])
 604     fi
 605     if test "x$ALSA_FOUND" = xno; then
 606       HELP_MSG_MISSING_DEPENDENCY([alsa])
 607       AC_MSG_ERROR([Could not find alsa! $HELP_MSG ])
 608     fi
 609   fi
 610 
 611   AC_SUBST(ALSA_CFLAGS)
 612   AC_SUBST(ALSA_LIBS)
 613 ])
 614 
 615 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
 616 [
 617 
 618   ###############################################################################
 619   #
 620   # Check for the jpeg library
 621   #
 622 
 623   AC_ARG_WITH(libjpeg, [AS_HELP_STRING([--with-libjpeg],
 624       [use libjpeg from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
 625 
 626   AC_MSG_CHECKING([for which libjpeg to use])
 627 
 628   # default is bundled
 629   DEFAULT_LIBJPEG=bundled
 630 
 631   #
 632   # if user didn't specify, use DEFAULT_LIBJPEG
 633   #
 634   if test "x${with_libjpeg}" = "x"; then
 635     with_libjpeg=${DEFAULT_LIBJPEG}
 636   fi
 637 
 638   AC_MSG_RESULT(${with_libjpeg})
 639 
 640   if test "x${with_libjpeg}" = "xbundled"; then
 641     USE_EXTERNAL_LIBJPEG=false
 642   elif test "x${with_libjpeg}" = "xsystem"; then
 643     AC_CHECK_HEADER(jpeglib.h, [],
 644         [ AC_MSG_ERROR([--with-libjpeg=system specified, but jpeglib.h not found!])])
 645     AC_CHECK_LIB(jpeg, jpeg_CreateDecompress, [],
 646         [ AC_MSG_ERROR([--with-libjpeg=system specified, but no libjpeg found])])
 647 
 648     USE_EXTERNAL_LIBJPEG=true
 649   else
 650     AC_MSG_ERROR([Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'])
 651   fi
 652 
 653   AC_SUBST(USE_EXTERNAL_LIBJPEG)
 654 
 655   ###############################################################################
 656   #
 657   # Check for the gif library
 658   #
 659 
 660   AC_ARG_WITH(giflib, [AS_HELP_STRING([--with-giflib],
 661       [use giflib from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
 662 
 663 
 664   AC_MSG_CHECKING([for which giflib to use])
 665 
 666   # default is bundled
 667   DEFAULT_GIFLIB=bundled
 668 
 669   #
 670   # if user didn't specify, use DEFAULT_GIFLIB
 671   #
 672   if test "x${with_giflib}" = "x"; then