~ubuntu-branches/ubuntu/utopic/xscreensaver/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-11-30 13:33:13 UTC
  • mfrom: (1.1.8 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091130133313-3b5nz2e7hvbb8h3l
Tags: 5.10-3ubuntu1
* Merge with Debian unstable, remaining changes: (LP: #489062)
  - debian/control: add Build-Depends on ubuntu-artwork
  - debian/rules: use /usr/share/backgrounds
  - debian/control: Move xli | xloadimage recommends to suggests
  - debian/split-hacks.config: Use different set of default hacks to Debian
  - debian/source_xscreensaver.py: Add apport hook
  - debian/patches/53_XScreenSaver.ad.in.patch: Use Ubuntu branding

Show diffs side-by-side

added added

removed removed

Lines of Context:
759
759
LOCK_OBJS
760
760
JPEG_EXES
761
761
GL_EXES
 
762
RETIRED_GL_EXES
762
763
SUID_EXES
763
764
GL_UTIL_EXES
764
765
GL_MEN
3505
3506
  fi
3506
3507
 
3507
3508
if test -n "$GCC"; then
3508
 
   if test -n "$GCC"; then
 
3509
 
 
3510
  case "$host" in
 
3511
    *-darwin* )
 
3512
      # Fucking Apple let // comments sneak into OpenGL headers, so
 
3513
      # we *must* allow // comments when compiling on Mac OS 10.6!  FUCK!
 
3514
    ;;
 
3515
   *)
 
3516
     if test -n "$GCC"; then
3509
3517
   { echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3510
3518
echo $ECHO_N "checking whether gcc accepts -std=c89... $ECHO_C" >&6; }
3511
3519
if test "${ac_cv_gcc_accepts_std+set}" = set; then
3526
3534
   ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3527
3535
  fi
3528
3536
 
 
3537
   ;;
 
3538
  esac
 
3539
 
3529
3540
   { echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3530
3541
echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6; }
3531
3542
   #
4385
4396
else
4386
4397
  ac_cv_header_stdc=no
4387
4398
fi
4388
 
rm -rf conftest*
 
4399
rm -f -r conftest*
4389
4400
 
4390
4401
fi
4391
4402
 
4406
4417
else
4407
4418
  ac_cv_header_stdc=no
4408
4419
fi
4409
 
rm -rf conftest*
 
4420
rm -f -r conftest*
4410
4421
 
4411
4422
fi
4412
4423
 
6142
6153
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6143
6154
    done
6144
6155
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6145
 
    for ac_extension in a so sl; do
 
6156
    for ac_extension in a so sl dylib la dll; do
6146
6157
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6147
6158
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
6148
6159
        ac_im_usrlibdir=$ac_im_libdir; break
6295
6306
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6296
6307
do
6297
6308
  # Don't even attempt the hair of trying to link an X program!
6298
 
  for ac_extension in a so sl; do
 
6309
  for ac_extension in a so sl dylib la dll; do
6299
6310
    if test -r "$ac_dir/libX11.$ac_extension"; then
6300
6311
      ac_x_libraries=$ac_dir
6301
6312
      break 2
8263
8274
else
8264
8275
  ac_cv_os_cray=no
8265
8276
fi
8266
 
rm -rf conftest*
 
8277
rm -f -r conftest*
8267
8278
 
8268
8279
fi
8269
8280
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12487
12498
 
12488
12499
 
12489
12500
    # Now check for version 1.2 in the same libs.
 
12501
    # Try to compile, since on MacOS 10.5.7, headers are older than libs!
 
12502
    { echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
 
12503
echo $ECHO_N "checking for XRRGetScreenResources... $ECHO_C" >&6; }
 
12504
if test "${ac_cv_randr_12+set}" = set; then
 
12505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12506
else
 
12507
  ac_cv_randr_12=no
12490
12508
 
12491
12509
  ac_save_CPPFLAGS="$CPPFLAGS"
12492
 
  ac_save_LDFLAGS="$LDFLAGS"
12493
 
#  ac_save_LIBS="$LIBS"
12494
 
 
12495
12510
  if test \! -z "$includedir" ; then
12496
12511
    CPPFLAGS="$CPPFLAGS -I$includedir"
12497
12512
  fi
12498
 
  # note: $X_CFLAGS includes $x_includes
12499
12513
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12500
 
 
12501
 
  if test \! -z "$libdir" ; then
12502
 
    LDFLAGS="$LDFLAGS -L$libdir"
12503
 
  fi
12504
 
  # note: $X_LIBS includes $x_libraries
12505
 
  LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12506
 
 
12507
12514
  CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12508
 
  LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12509
 
  { echo "$as_me:$LINENO: checking for XRRGetOutputInfo in -lc" >&5
12510
 
echo $ECHO_N "checking for XRRGetOutputInfo in -lc... $ECHO_C" >&6; }
12511
 
if test "${ac_cv_lib_c_XRRGetOutputInfo+set}" = set; then
12512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12513
 
else
12514
 
  ac_check_lib_save_LIBS=$LIBS
12515
 
LIBS="-lc $SAVER_LIBS $LIBS"
12516
 
cat >conftest.$ac_ext <<_ACEOF
 
12515
  cat >conftest.$ac_ext <<_ACEOF
12517
12516
/* confdefs.h.  */
12518
12517
_ACEOF
12519
12518
cat confdefs.h >>conftest.$ac_ext
12520
12519
cat >>conftest.$ac_ext <<_ACEOF
12521
12520
/* end confdefs.h.  */
12522
 
 
12523
 
/* Override any GCC internal prototype to avoid an error.
12524
 
   Use char because int might match the return type of a GCC
12525
 
   builtin and then its argument prototype would still apply.  */
12526
 
#ifdef __cplusplus
12527
 
extern "C"
12528
 
#endif
12529
 
char XRRGetOutputInfo ();
 
12521
#include <stdlib.h>
 
12522
                         #include <X11/Xlib.h>
 
12523
                         #include <X11/extensions/Xrandr.h>
12530
12524
int
12531
12525
main ()
12532
12526
{
12533
 
return XRRGetOutputInfo ();
 
12527
XRRScreenResources *res =
 
12528
                           XRRGetScreenResources (0, 0);
12534
12529
  ;
12535
12530
  return 0;
12536
12531
}
12537
12532
_ACEOF
12538
 
rm -rf conftest.$ac_objext conftest$ac_exeext
12539
 
if { (ac_try="$ac_link"
 
12533
rm -rf conftest.$ac_objext
 
12534
if { (ac_try="$ac_compile"
12540
12535
case "(($ac_try" in
12541
12536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542
12537
  *) ac_try_echo=$ac_try;;
12543
12538
esac
12544
12539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545
 
  (eval "$ac_link") 2>conftest.er1
 
12540
  (eval "$ac_compile") 2>conftest.er1
12546
12541
  ac_status=$?
12547
12542
  grep -v '^ *+' conftest.er1 >conftest.err
12548
12543
  rm -rf conftest.er1
12551
12546
  (exit $ac_status); } && {
12552
12547
         test -z "$ac_c_werror_flag" ||
12553
12548
         test ! -s conftest.err
12554
 
       } && test -s conftest$ac_exeext &&
12555
 
       $as_test_x conftest$ac_exeext; then
12556
 
  ac_cv_lib_c_XRRGetOutputInfo=yes
 
12549
       } && test -s conftest.$ac_objext; then
 
12550
  ac_cv_randr_12=yes
12557
12551
else
12558
12552
  echo "$as_me: failed program was:" >&5
12559
12553
sed 's/^/| /' conftest.$ac_ext >&5
12560
12554
 
12561
 
        ac_cv_lib_c_XRRGetOutputInfo=no
 
12555
        ac_cv_randr_12=no
12562
12556
fi
12563
12557
 
12564
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12565
 
      conftest$ac_exeext conftest.$ac_ext
12566
 
LIBS=$ac_check_lib_save_LIBS
 
12558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12559
  CPPFLAGS="$ac_save_CPPFLAGS"
12567
12560
fi
12568
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_XRRGetOutputInfo" >&5
12569
 
echo "${ECHO_T}$ac_cv_lib_c_XRRGetOutputInfo" >&6; }
12570
 
if test $ac_cv_lib_c_XRRGetOutputInfo = yes; then
12571
 
  cat >>confdefs.h <<\_ACEOF
 
12561
{ echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
 
12562
echo "${ECHO_T}$ac_cv_randr_12" >&6; }
 
12563
    if test "$ac_cv_randr_12" = yes ; then
 
12564
      cat >>confdefs.h <<\_ACEOF
12572
12565
#define HAVE_RANDR_12 1
12573
12566
_ACEOF
12574
12567
 
12575
 
else
12576
 
  true
12577
 
fi
12578
 
 
12579
 
  CPPFLAGS="$ac_save_CPPFLAGS"
12580
 
  LDFLAGS="$ac_save_LDFLAGS"
12581
 
#  LIBS="$ac_save_LIBS"
12582
 
 
 
12568
    fi
 
12569
#   AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
 
12570
#                  [true], $SAVER_LIBS)
12583
12571
  fi
12584
12572
 
12585
12573
 
12735
12723
  { echo "$as_me:$LINENO: result: no" >&5
12736
12724
echo "${ECHO_T}no" >&6; }
12737
12725
fi
12738
 
rm -rf conftest*
 
12726
rm -f -r conftest*
12739
12727
 
12740
12728
  CPPFLAGS="$ac_save_CPPFLAGS"
12741
12729
 
16431
16419
  $EGREP "Mesa|MESA" >/dev/null 2>&1; then
16432
16420
  ac_cv_have_mesa_gl=yes
16433
16421
fi
16434
 
rm -rf conftest*
 
16422
rm -f -r conftest*
16435
16423
 
16436
16424
  CPPFLAGS="$ac_save_CPPFLAGS"
16437
16425
       fi
16765
16753
  echo $ECHO_N "(cached) $ECHO_C" >&6
16766
16754
else
16767
16755
  cat > conftest.$ac_ext <<EOF
16768
 
#line 16772 "configure"
 
16756
#line 16760 "configure"
16769
16757
#include "confdefs.h"
16770
16758
#include <GL/gl.h>
16771
16759
#ifndef MESA_MAJOR_VERSION
20315
20303
if test "$have_gl" = yes; then
20316
20304
  GL_EXES='$(GL_EXES)'
20317
20305
  SUID_EXES='$(SUID_EXES)'
20318
 
  RETIRED_GL_EXES='$(RETIRED_EXES)'
 
20306
  RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
20319
20307
  GL_UTIL_EXES='$(GL_UTIL_EXES)'
20320
20308
  GL_MEN='$(GL_MEN)'
20321
20309
  GL_KLUDGE=" "
20460
20448
 
20461
20449
 
20462
20450
 
 
20451
 
20463
20452
APPDEFAULTS=$ac_x_app_defaults
20464
20453
 
20465
20454
 
21299
21288
LOCK_OBJS!$LOCK_OBJS$ac_delim
21300
21289
JPEG_EXES!$JPEG_EXES$ac_delim
21301
21290
GL_EXES!$GL_EXES$ac_delim
 
21291
RETIRED_GL_EXES!$RETIRED_GL_EXES$ac_delim
21302
21292
SUID_EXES!$SUID_EXES$ac_delim
21303
21293
GL_UTIL_EXES!$GL_UTIL_EXES$ac_delim
21304
21294
GL_MEN!$GL_MEN$ac_delim
21322
21312
LTLIBOBJS!$LTLIBOBJS$ac_delim
21323
21313
_ACEOF
21324
21314
 
21325
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
 
21315
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
21326
21316
    break
21327
21317
  elif $ac_last_try; then
21328
21318
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21756
21746
 
21757
21747
 ;;
21758
21748
    "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
21749
        rm -f po/stamp-it po/stamp-it.tmp
 
21750
        > po/stamp-it.tmp
21759
21751
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
21752
        mv po/stamp-it.tmp po/stamp-it
21760
21753
      esac ;;
21761
21754
 
21762
21755
  esac