5877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local lcms2 library source" >&5
5878
$as_echo_n "checking for local lcms2 library source... " >&6; }
5880
if test -f $LCMS2DIR/include/lcms2.h; then
5881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882
$as_echo "yes" >&6; }
5884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsCreateXYZProfile in -llcms2" >&5
5885
$as_echo_n "checking for cmsCreateXYZProfile in -llcms2... " >&6; }
5886
if ${ac_cv_lib_lcms2_cmsCreateXYZProfile+:} false; then :
5887
$as_echo_n "(cached) " >&6
5889
ac_check_lib_save_LIBS=$LIBS
5890
LIBS="-llcms2 $LIBS"
5891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892
/* end confdefs.h. */
5894
/* Override any GCC internal prototype to avoid an error.
5895
Use char because int might match the return type of a GCC
5896
builtin and then its argument prototype would still apply. */
5900
char cmsCreateXYZProfile ();
5904
return cmsCreateXYZProfile ();
5909
if ac_fn_c_try_link "$LINENO"; then :
5910
ac_cv_lib_lcms2_cmsCreateXYZProfile=yes
5912
ac_cv_lib_lcms2_cmsCreateXYZProfile=no
5914
rm -f core conftest.err conftest.$ac_objext \
5915
conftest$ac_exeext conftest.$ac_ext
5916
LIBS=$ac_check_lib_save_LIBS
5918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsCreateXYZProfile" >&5
5919
$as_echo "$ac_cv_lib_lcms2_cmsCreateXYZProfile" >&6; }
5920
if test "x$ac_cv_lib_lcms2_cmsCreateXYZProfile" = xyes; then :
5922
for ac_header in lcms2.h
5924
ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
5925
if test "x$ac_cv_header_lcms2_h" = xyes; then :
5926
cat >>confdefs.h <<_ACEOF
5927
#define HAVE_LCMS2_H 1
6257
6363
#AC_SUBST(IJSDEVS)
6260
# Check whether --with-jbig2dec was given.
6261
if test "${with_jbig2dec+set}" = set; then :
6262
withval=$with_jbig2dec;
6268
6370
JBIG2_AUTOCONF_CFLAGS=
6269
if test x$with_jbig2dec != xno; then
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jbig2dec library source" >&5
6372
LURATECHDIR=luratech
6375
# Check whether --with-luratech was given.
6376
if test "${with_luratech+set}" = set; then :
6377
withval=$with_luratech;
6382
if test x$with_luratech != xno; then
6383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Luratech JBIG2 library source" >&5
6384
$as_echo_n "checking for local Luratech JBIG2 library source... " >&6; }
6385
if test -d ldf_jb2; then
6386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6387
$as_echo "yes" >&6; }
6388
JBIG2_DECODER=luratech
6391
if test `uname` = Darwin*; then
6392
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -DMAC -DMAC_OS_X_BUILD"
6394
JBIG2_AUTOCONF_CFLAGS="-DUSE_LDF_JB2 -DLINUX"
6396
JBIG2DEVS='$(PSD)jbig2.dev'
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399
$as_echo "no" >&6; }
6403
if test "x$JBIG2_DECODER" = x; then
6405
# Check whether --with-jbig2dec was given.
6406
if test "${with_jbig2dec+set}" = set; then :
6407
withval=$with_jbig2dec;
6410
if test x$with_jbig2dec != xno; then
6411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jbig2dec library source" >&5
6271
6412
$as_echo_n "checking for local jbig2dec library source... " >&6; }
6272
for d in jbig2dec jbig2dec-0.2 jbig2dec-0.3; do
6273
test -d "$d" && JBIG2DIR=$d && break
6275
if test "x$JBIG2DIR" != xsrc; then
6276
echo "Running jbig2dec configure script..."
6278
cd $JBIG2DIR && ./configure $SUBCONFIG_OPTS
6280
if test "$status" -ne 0 ; then
6281
as_fn_error $status "jbig2dec configure script failed" "$LINENO" 5
6283
if test "$status" -eq 0 ; then
6284
JBIG2_AUTOCONF_CFLAGS=-DHAVE_CONFIG_H
6288
echo "Continuing with Ghostscript configuration..."
6289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JBIG2DIR" >&5
6413
for d in jbig2dec jbig2dec-0.2 jbig2dec-0.3; do
6414
test -d "$d" && JBIG2DIR=$d && break
6416
if test "x$JBIG2DIR" != xsrc; then
6417
JBIG2_DECODER=jbig2dec
6418
echo "Running jbig2dec configure script..."
6420
cd $JBIG2DIR && ./configure $SUBCONFIG_OPTS
6422
if test "$status" -ne 0 ; then
6423
as_fn_error $status "jbig2dec configure script failed" "$LINENO" 5
6425
if test "$status" -eq 0 ; then
6426
JBIG2_AUTOCONF_CFLAGS=-DHAVE_CONFIG_H
6430
echo "Continuing with Ghostscript configuration..."
6431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JBIG2DIR" >&5
6290
6432
$as_echo "$JBIG2DIR" >&6; }
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293
6435
$as_echo "no" >&6; }
6294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbig2_page_out in -ljbig2dec" >&5
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbig2_page_out in -ljbig2dec" >&5
6295
6437
$as_echo_n "checking for jbig2_page_out in -ljbig2dec... " >&6; }
6296
if test "${ac_cv_lib_jbig2dec_jbig2_page_out+set}" = set; then :
6438
if ${ac_cv_lib_jbig2dec_jbig2_page_out+:} false; then :
6297
6439
$as_echo_n "(cached) " >&6
6299
6441
ac_check_lib_save_LIBS=$LIBS
6328
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig2dec_jbig2_page_out" >&5
6329
6471
$as_echo "$ac_cv_lib_jbig2dec_jbig2_page_out" >&6; }
6330
if test "x$ac_cv_lib_jbig2dec_jbig2_page_out" = x""yes; then :
6472
if test "x$ac_cv_lib_jbig2dec_jbig2_page_out" = xyes; then :
6336
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for JBIG2 files" >&5
6478
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling support for JBIG2 files" >&5
6337
6479
$as_echo "$as_me: WARNING: disabling support for JBIG2 files" >&2;}
6484
if test x$with_jbig2dec != xno; then
6485
JBIG2_DECODER=jbig2dec
6344
if test x$with_jbig2dec != xno; then
6345
if test x$ac_cv_header_stdint_h != xyes && test x$ac_cv_header_inttypes_h != xyes; then
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JBIG2 support requires stdint types which do not seem to be available." >&5
6489
if test x$with_jbig2dec != xno; then
6490
if test x$ac_cv_header_stdint_h != xyes && test x$ac_cv_header_inttypes_h != xyes; then
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JBIG2 support requires stdint types which do not seem to be available." >&5
6347
6492
$as_echo "$as_me: WARNING: JBIG2 support requires stdint types which do not seem to be available." >&2;}
6494
JBIG2DEVS='$(PSD)jbig2.dev'
6509
JPX_AUTOCONF_CFLAGS=
6511
if test x$with_luratech != xno; then
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Luratech JPEG2K library source" >&5
6513
$as_echo_n "checking for local Luratech JPEG2K library source... " >&6; }
6514
if test -d lwf_jp2; then
6515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516
$as_echo "yes" >&6; }
6517
JPX_DECODER=luratech
6520
if test `uname` = Darwin*; then
6521
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DMAC -DMAC_OS_X_BUILD"
6523
JPX_AUTOCONF_CFLAGS="-DUSE_LWF_JP2 -DLINUX"
6525
JPXDEVS='$(PSD)jpx.dev'
6349
JBIG2DEVS='$(PSD)jbig2.dev'
6527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528
$as_echo "no" >&6; }
6533
if test "x$JPX_DECODER" = x; then
6359
6535
# Check whether --with-jasper was given.
6360
6536
if test "${with_jasper+set}" = set; then :
6361
6537
withval=$with_jasper;
6367
if test x$with_jasper != xno; then
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper library source" >&5
6540
if test x$with_jasper != xno; then
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper library source" >&5
6369
6542
$as_echo_n "checking for local jasper library source... " >&6; }
6370
for d in jasper jasper-1.7*; do
6371
test -d "$d" && JASPERDIR=$d && break
6373
if test "x$JASPERDIR" != xsrc; then
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JASPERDIR" >&5
6375
$as_echo "$JASPERDIR" >&6; }
6376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper configure script" >&5
6543
for d in jasper jasper-1.7*; do
6544
test -d "$d" && JPXDIR=$d && break
6546
if test "x$JPXDIR" != xsrc; then
6547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPXDIR" >&5
6548
$as_echo "$JPXDIR" >&6; }
6549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper configure script" >&5
6377
6550
$as_echo_n "checking for local jasper configure script... " >&6; }
6378
if test -x $JASPERDIR/configure; then
6379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6551
if test -x $JPXDIR/configure; then
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6380
6553
$as_echo "yes" >&6; }
6382
echo "Running jasper configure script..."
6384
cd $JASPERDIR && ./configure $SUBCONFIG_OPTS
6386
if test "$status" -ne 0 ; then
6387
as_fn_error $status "jasper configure script failed" "$LINENO" 5
6391
echo "Continuing with Ghostscript configuration..."
6393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555
echo "Running jasper configure script..."
6557
cd $JPXDIR && ./configure $SUBCONFIG_OPTS
6559
if test "$status" -ne 0 ; then
6560
as_fn_error $status "jasper configure script failed" "$LINENO" 5
6564
echo "Continuing with Ghostscript configuration..."
6566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394
6567
$as_echo "no" >&6; }
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper autogen.sh script" >&5
6568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for local jasper autogen.sh script" >&5
6396
6569
$as_echo_n "checking for local jasper autogen.sh script... " >&6; }
6397
if test -x $JASPERDIR/autogen.sh; then
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6570
if test -x $JPXDIR/autogen.sh; then
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6399
6572
$as_echo "yes" >&6; }
6401
echo "Running jasper autogen script..."
6403
cd $JASPERDIR && ./autogen.sh
6405
if test "$status" -ne 0 ; then
6406
as_fn_error $status "jasper autogen script failed" "$LINENO" 5
6410
echo "Continuing with Ghostscript configuration..."
6413
Unable to find $JASPERDIR/src/libjasper/include/jas_config.h,
6574
echo "Running jasper autogen script..."
6576
cd $JPXDIR && ./autogen.sh
6578
if test "$status" -ne 0 ; then
6579
as_fn_error $status "jasper autogen script failed" "$LINENO" 5
6583
echo "Continuing with Ghostscript configuration..."
6586
Unable to find $JPXDIR/src/libjasper/include/jas_config.h,
6414
6587
or generate generate such a file for this system. You will
6415
6588
have to build one by hand, or configure, build and install
6416
6589
the jasper library separately.
7688
7867
# Remove contributed drivers if requested and make sure we don't have any
7689
7868
# duplicates in there, add $(DD)foo.dev constructs
7690
P_DEVS=`(for i in $P_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7869
P_DEVS=`(for i in $P_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null ) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7693
7872
if test -n "$F_DEVS0"; then
7694
F_DEVS=`(for i in $F_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7873
F_DEVS=`(for i in $F_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7697
7876
if test -n "$CUPS_DEVS0"; then
7698
CUPS_DEVS=`(for i in $CUPS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7877
CUPS_DEVS=`(for i in $CUPS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7701
7880
if test -n "$SVG_DEVS0"; then
7702
SVG_DEVS=`(for i in $SVG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7881
SVG_DEVS=`(for i in $SVG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7705
7884
if test -n "$IJS_DEVS0"; then
7706
IJS_DEVS=`(for i in $IJS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7885
IJS_DEVS=`(for i in $IJS_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7709
7888
if test -n "$PNG_DEVS0"; then
7710
PNG_DEVS=`(for i in $PNG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7889
PNG_DEVS=`(for i in $PNG_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
7713
7892
if test -n "$X11_DEVS0"; then
7714
X11_DEVS=`(for i in $X11_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012' ' '`
7893
X11_DEVS=`(for i in $X11_DEVS0; do d='$(DD)'${i}.dev; if ( grep '^'$d $noncontribmakefiles 2>&1 >/dev/null) || ( ! test -z "$CONTRIBINCLUDE" ); then echo $d; fi; done) | sort | uniq | tr '\012\015' ' '`
8689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690
/* end confdefs.h. */
8692
int main (int argc, char *argv)
8694
int a = __builtin_bswap32(argc);
8699
if ac_fn_c_try_link "$LINENO"; then :
8700
HAVE_BSWAP32="-DHAVE_BSWAP32"
8704
rm -f core conftest.err conftest.$ac_objext \
8705
conftest$ac_exeext conftest.$ac_ext
8707
# Check whether --enable-bswap32 was given.
8708
if test "${enable_bswap32+set}" = set; then :
8709
enableval=$enable_bswap32;
8710
if test "x$enable_bswap32" = xno; then
8720
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721
/* end confdefs.h. */
8723
#include "byteswap.h"
8724
int main (int argc, char *argv)
8726
int a = bswap_32(argc);
8731
if ac_fn_c_try_compile "$LINENO"; then :
8732
HAVE_BYTESWAP_H="-DHAVE_BYTESWAP_H"
8736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738
# Check whether --enable-byteswap-h was given.
8739
if test "${enable_byteswap_h+set}" = set; then :
8740
enableval=$enable_byteswap_h;
8741
if test "x$enable_byteswap-h" = xno; then
9617
9860
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9618
9861
$ac_datarootdir_hack
9620
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9621
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9863
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9864
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9623
9866
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9624
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9625
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9867
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9868
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9869
"$ac_tmp/out"`; test -z "$ac_out"; } &&
9626
9870
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9627
9871
which seems to be undefined. Please make sure it is defined" >&5
9628
9872
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9629
9873
which seems to be undefined. Please make sure it is defined" >&2;}
9875
rm -f "$ac_tmp/stdin"
9632
9876
case $ac_file in
9633
-) cat "$tmp/out" && rm -f "$tmp/out";;
9634
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9877
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9878
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9636
9880
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10774
11032
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10775
11033
$ac_datarootdir_hack
10777
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10778
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11035
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11036
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10780
11038
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10781
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10782
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11039
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11040
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11041
"$ac_tmp/out"`; test -z "$ac_out"; } &&
10783
11042
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10784
11043
which seems to be undefined. Please make sure it is defined" >&5
10785
11044
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10786
11045
which seems to be undefined. Please make sure it is defined" >&2;}
11047
rm -f "$ac_tmp/stdin"
10789
11048
case $ac_file in
10790
-) cat "$tmp/out" && rm -f "$tmp/out";;
10791
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11049
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11050
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10793
11052
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5