~ubuntu-branches/ubuntu/maverick/x264/maverick-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-02-18 07:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20100218073951-9jgsvskb976rfbvq
Tags: upstream-0.85.1442.1+git781d30
ImportĀ upstreamĀ versionĀ 0.85.1442.1+git781d30

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
echo "  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS"
24
24
echo "  --host=HOST              build programs to run on HOST"
25
25
echo "  --cross-prefix=PREFIX    use PREFIX for compilation tools"
 
26
echo "  --sysroot=SYSROOT        root of cross-build tree"
26
27
echo ""
27
28
exit 1
28
29
fi
223
224
        --cross-prefix=*)
224
225
            cross_prefix="${opt#--cross-prefix=}"
225
226
            ;;
 
227
        --sysroot=*)
 
228
            CFLAGS="$CFLAGS --sysroot=${opt#--sysroot=}"
 
229
            LDFLAGS="$LDFLAGS --sysroot=${opt#--sysroot=}"
 
230
            ;;
226
231
        *)
227
232
            echo "Unknown option $opt, ignored"
228
233
            ;;
367
372
    ;;
368
373
  arm*)
369
374
    ARCH="ARM"
370
 
    AS="${AS-${cross_prefix}gcc}"
 
375
    if [ "$SYS" = MACOSX ] ; then
 
376
      AS="${AS-extras/gas-preprocessor.pl $CC}"
 
377
      ASFLAGS="$ASFLAGS -DPREFIX -DPIC"  # apple's ld doesn't support movw/movt relocations at all
 
378
      # build for armv7 by default
 
379
      if ! echo $CFLAGS | grep -Eq '\-arch' ; then
 
380
        CFLAGS="$CFLAGS -arch armv7"
 
381
        LDFLAGS="$LDFLAGS -arch armv7"
 
382
      fi
 
383
    else
 
384
      AS="${AS-${cross_prefix}gcc}"
 
385
    fi
371
386
    ;;
372
387
  s390|s390x)
373
388
    ARCH="S390"
427
442
    # set flags so neon is built by default
428
443
    echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-mfloat-abi)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
429
444
 
430
 
    if  cc_check '' '' '__asm__("rev ip, ip");' ; then      define HAVE_ARMV6   && ASFLAGS="$ASFLAGS -DHAVE_ARMV6"
431
 
        cc_check '' '' '__asm__("movt r0, #0");'         && define HAVE_ARMV6T2 && ASFLAGS="$ASFLAGS -DHAVE_ARMV6T2"
432
 
        cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON    && ASFLAGS="$ASFLAGS -DHAVE_NEON"
433
 
        ASFLAGS="$ASFLAGS -c"
 
445
    if  cc_check '' '' '__asm__("rev ip, ip");' ; then      define HAVE_ARMV6
 
446
        cc_check '' '' '__asm__("movt r0, #0");'         && define HAVE_ARMV6T2
 
447
        cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON
 
448
        ASFLAGS="$ASFLAGS $CFLAGS -c"
434
449
    else
435
450
        echo "You specified a pre-ARMv6 or Thumb-1 CPU in your CFLAGS."
436
451
        echo "If you really want to run on such a CPU, configure with --disable-asm."