- Timestamp:
- Feb 10, 2010 6:46:05 PM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r3062 r3097 704 704 enable_libsamplerate 705 705 enable_ipp 706 enable_ipp_samples 706 with_ipp 707 with_ipp_samples 708 with_ipp_arch 707 709 enable_ssl 708 710 ' … … 1357 1359 IPPSAMPLES env var or with --with-ipp and 1358 1360 --with-ipp-samples options 1359 --with-ipp=DIR Specify the Intel IPP location1360 --with-ipp-samples=DIR Specify the Intel IPP samples location1361 1361 --disable-ssl Exclude SSL support the build (default: autodetect) 1362 1362 … … 1380 1380 (hint: use CFLAGS and LDFLAGS env var to set the 1381 1381 include/lib paths) 1382 --with-ipp=DIR Specify the Intel IPP location 1383 --with-ipp-samples=DIR Specify the Intel IPP samples location 1384 --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or 1385 "em64t" 1382 1386 1383 1387 Some influential environment variables: … … 5638 5642 5639 5643 5640 # Check whether --enable-ipp was given. 5641 if test "${enable_ipp+set}" = set; then : 5642 enableval=$enable_ipp; 5644 5645 # Check whether --with-ipp was given. 5646 if test "${with_ipp+set}" = set; then : 5647 withval=$with_ipp; 5643 5648 else 5644 5649 with_ipp=no … … 5647 5652 5648 5653 5649 # Check whether --enable-ipp-samples was given. 5650 if test "${enable_ipp_samples+set}" = set; then : 5651 enableval=$enable_ipp_samples; 5654 5655 # Check whether --with-ipp-samples was given. 5656 if test "${with_ipp_samples+set}" = set; then : 5657 withval=$with_ipp_samples; 5652 5658 else 5653 5659 with_ipp_samples=no 5660 5661 fi 5662 5663 5664 5665 # Check whether --with-ipp-arch was given. 5666 if test "${with_ipp_arch+set}" = set; then : 5667 withval=$with_ipp_arch; 5668 else 5669 with_ipp_arch=no 5654 5670 5655 5671 fi … … 5675 5691 fi 5676 5692 5693 if test "x$with_ipp_arch" != "xno"; then 5694 IPP_SUFFIX="em64t" 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5 5696 $as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; } 5697 else 5698 IPP_SUFFIX="" 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5 5700 $as_echo "IPP arch suffix is set to empty" >&6; } 5701 fi 5702 5677 5703 if test x$IPPROOT = x; then 5678 5704 as_fn_error "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5 … … 5684 5710 # IPP directory looks okay. 5685 5711 # Remove trailing backslash 5686 IPPROOT=`echo $IPPROOT /| sed 's/\/$//'`5712 IPPROOT=`echo $IPPROOT | sed 's/\/$//'` 5687 5713 5688 5714 SAVED_CFLAGS="$CFLAGS" … … 5692 5718 IPP_CFLAGS="-I$IPPROOT/include" 5693 5719 IPP_LDFLAGS="-L$IPPROOT/sharedlib" 5694 IPP_LIBS="-lippsc -lipps -lippsr -lippcore-lguide"5720 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX} -lguide" 5695 5721 #IPP_LDFLAGS="-L$IPPROOT/sharedlib" 5696 5722 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" … … 5721 5747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5722 5748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5723 as_fn_error "failed 5724 See \`config.log' for more details." "$LINENO" 5; } 5749 { as_fn_set_status run with --help for more info 5750 as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly 5751 See \`config.log' for more details." "$LINENO" 5; }; } 5725 5752 fi 5726 5753 rm -f core conftest.err conftest.$ac_objext \ … … 5760 5787 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` 5761 5788 5762 # Guess the libusc.a build location5789 # Guess the libusc.a/libspeech.a build location 5763 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5 5764 5791 $as_echo_n "checking Intel IPP USC build location... " >&6; } 5765 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` 5766 if test ! -d $IPPSAMPLESLIB; then 5792 if test -d $IPPSAMPLES/speech-codecs/bin; then 5793 IPPVER=5 5794 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` 5795 elif test -d $IPPSAMPLES/speech-codecs/_bin; then 5796 IPPVER=6 5797 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` 5798 else 5767 5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5768 5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5769 as_fn_error " the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?5801 as_fn_error "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 5770 5802 See \`config.log' for more details." "$LINENO" 5; } 5771 5803 fi 5772 if test ! -f $IPPSAMPLESLIB/libusc.a; then 5804 5805 # Test the directory 5806 if test ! -d $IPPSAMP_DIR; then 5773 5807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5774 5808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5775 as_fn_error "libusc.a doesn't exist in $IPPSAMPLESLIB 5809 as_fn_error "There's something wrong with this script, directory $IPPSAMP_DIR does not exist 5810 See \`config.log' for more details." "$LINENO" 5; } 5811 exit 1; 5812 fi 5813 5814 if test "x$IPPVER" = "x5"; then 5815 IPPSAMP_LIBS="libusc.a" 5816 IPPSAMP_LDLIBS="-lusc" 5817 elif test "x$IPPVER" = "x6"; then 5818 IPPSAMP_LIBS="libspeech.a" 5819 IPPSAMP_LDLIBS="-lspeech" 5820 else 5821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5823 as_fn_error "bug in this script: unsupported IPP version 5776 5824 See \`config.log' for more details." "$LINENO" 5; } 5777 5825 fi 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLESLIB" >&5 5779 $as_echo "$IPPSAMPLESLIB" >&6; } 5826 5827 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then 5828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5830 as_fn_error "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 5831 See \`config.log' for more details." "$LINENO" 5; } 5832 fi 5833 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5 5835 $as_echo "$IPPSAMP_DIR" >&6; } 5780 5836 5781 5837 SAVED_CFLAGS="$CFLAGS" … … 5783 5839 SAVED_LIBS="$LIBS" 5784 5840 5785 IPPSAMP LESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"5786 CFLAGS="$CFLAGS $IPPSAMP LESINC"5787 LDFLAGS="$LDFLAGS -L$IPPSAMP LESLIB"5788 LIBS=" -lusc$LIBS"5841 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" 5842 CFLAGS="$CFLAGS $IPPSAMP_INC" 5843 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" 5844 LIBS="$IPPSAMP_LDLIBS $LIBS" 5789 5845 5790 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5 … … 5815 5871 5816 5872 CFLAGS="$SAVED_CFLAGS" 5817 LDFLAGS=" \$(IPP_LDFLAGS)$SAVED_LDFLAGS"5818 LIBS=" \$(IPP_LIBS)$SAVED_LIBS"5819 5820 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP LESINC"5821 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP LESLIB"5822 IPP_LIBS=" -lusc$IPP_LIBS"5873 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" 5874 LIBS="$IPP_LIBS $SAVED_LIBS" 5875 5876 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" 5877 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" 5878 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" 5823 5879 fi 5880 5881 CFLAGS="$CFLAGS $IPP_CFLAGS" 5882 LDFLAGS="$LDFLAGS $IPP_LDFLAGS" 5883 LIBS="$LIBS $IPP_LIBS" 5824 5884 5825 5885 ac_build_mak_vars="$ac_build_mak_vars\n\ -
pjproject/trunk/aconfigure.ac
r3062 r3097 668 668 ) 669 669 670 AC_ARG_ ENABLE(ipp,670 AC_ARG_WITH(ipp, 671 671 AC_HELP_STRING([--with-ipp=DIR], 672 672 [Specify the Intel IPP location]), … … 675 675 ) 676 676 677 AC_ARG_ ENABLE(ipp-samples,677 AC_ARG_WITH(ipp-samples, 678 678 AC_HELP_STRING([--with-ipp-samples=DIR], 679 679 [Specify the Intel IPP samples location]), 680 680 [], 681 681 [with_ipp_samples=no] 682 ) 683 684 AC_ARG_WITH(ipp-arch, 685 AC_HELP_STRING([--with-ipp-arch=ARCH], 686 [Specify the Intel IPP ARCH suffix, e.g. "64" or "em64t. Default is blank for IA32"]), 687 [], 688 [with_ipp_arch=no] 682 689 ) 683 690 … … 698 705 else 699 706 AC_MSG_RESULT([$IPPROOT]) 707 fi 708 709 if test "x$with_ipp_arch" != "xno"; then 710 IPP_SUFFIX="em64t" 711 AC_MSG_RESULT([IPP arch suffix is set to $IPP_SUFFIX]) 712 else 713 IPP_SUFFIX="" 714 AC_MSG_RESULT([IPP arch suffix is set to empty]) 700 715 fi 701 716 … … 709 724 # IPP directory looks okay. 710 725 # Remove trailing backslash 711 IPPROOT=`echo $IPPROOT /| sed 's/\/$//'`726 IPPROOT=`echo $IPPROOT | sed 's/\/$//'` 712 727 713 728 SAVED_CFLAGS="$CFLAGS" … … 717 732 IPP_CFLAGS="-I$IPPROOT/include" 718 733 IPP_LDFLAGS="-L$IPPROOT/sharedlib" 719 IPP_LIBS="-lippsc -lipps -lippsr -lippcore-lguide"734 IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX} -lguide" 720 735 #IPP_LDFLAGS="-L$IPPROOT/sharedlib" 721 736 #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" … … 731 746 [ippStaticInit();])], 732 747 [AC_MSG_RESULT(ok)], 733 [AC_MSG_FAILURE( failed)])748 [AC_MSG_FAILURE(Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info)]) 734 749 735 750 CFLAGS="$SAVED_CFLAGS" … … 764 779 # Remove trailing backslash 765 780 IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'` 766 767 # Guess the libusc.a build location781 782 # Guess the libusc.a/libspeech.a build location 768 783 AC_MSG_CHECKING([Intel IPP USC build location]) 769 IPPSAMPLESLIB=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` 770 if test ! -d $IPPSAMPLESLIB; then 771 AC_MSG_FAILURE([the $IPPSAMPLES/speech-codecs/bin/*gcc*/lib directory not found. Have you built the samples?]) 772 fi 773 if test ! -f $IPPSAMPLESLIB/libusc.a; then 774 AC_MSG_FAILURE([libusc.a doesn't exist in $IPPSAMPLESLIB]) 775 fi 776 AC_MSG_RESULT([$IPPSAMPLESLIB]) 784 if test -d $IPPSAMPLES/speech-codecs/bin; then 785 IPPVER=5 786 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` 787 elif test -d $IPPSAMPLES/speech-codecs/_bin; then 788 IPPVER=6 789 IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` 790 else 791 AC_MSG_FAILURE([unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?]) 792 fi 793 794 # Test the directory 795 if test ! -d $IPPSAMP_DIR; then 796 AC_MSG_FAILURE([There's something wrong with this script, directory $IPPSAMP_DIR does not exist]) 797 exit 1; 798 fi 799 800 if test "x$IPPVER" = "x5"; then 801 IPPSAMP_LIBS="libusc.a" 802 IPPSAMP_LDLIBS="-lusc" 803 elif test "x$IPPVER" = "x6"; then 804 IPPSAMP_LIBS="libspeech.a" 805 IPPSAMP_LDLIBS="-lspeech" 806 else 807 AC_MSG_FAILURE([bug in this script: unsupported IPP version]) 808 fi 809 810 if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then 811 AC_MSG_FAILURE([$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR]) 812 fi 813 814 AC_MSG_RESULT([$IPPSAMP_DIR]) 777 815 778 816 SAVED_CFLAGS="$CFLAGS" … … 780 818 SAVED_LIBS="$LIBS" 781 819 782 IPPSAMP LESINC="-I$IPPSAMPLES/speech-codecs/core/usc/include"783 CFLAGS="$CFLAGS $IPPSAMP LESINC"784 LDFLAGS="$LDFLAGS -L$IPPSAMP LESLIB"785 LIBS=" -lusc$LIBS"820 IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include" 821 CFLAGS="$CFLAGS $IPPSAMP_INC" 822 LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR" 823 LIBS="$IPPSAMP_LDLIBS $LIBS" 786 824 787 825 AC_MSG_CHECKING([Intel IPP USC usability]) … … 793 831 794 832 CFLAGS="$SAVED_CFLAGS" 795 LDFLAGS=" \$(IPP_LDFLAGS)$SAVED_LDFLAGS"796 LIBS=" \$(IPP_LIBS)$SAVED_LIBS"797 798 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP LESINC"799 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP LESLIB"800 IPP_LIBS=" -lusc$IPP_LIBS"833 LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS" 834 LIBS="$IPP_LIBS $SAVED_LIBS" 835 836 IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC" 837 IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR" 838 IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS" 801 839 fi 840 841 CFLAGS="$CFLAGS $IPP_CFLAGS" 842 LDFLAGS="$LDFLAGS $IPP_LDFLAGS" 843 LIBS="$LIBS $IPP_LIBS" 802 844 803 845 ac_build_mak_vars="$ac_build_mak_vars\n\
Note: See TracChangeset
for help on using the changeset viewer.