📄 configure
字号:
echo "*** full path to gtk-config." else if test -f conf.gtktest ; then : else echo "*** Could not run GTK test program, checking why..." CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat > conftest.$ac_ext <<EOF#line 1659 "configure"#include "confdefs.h"#include <gtk/gtk.h>#include <stdio.h>int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; }EOFif { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" echo "*** version of GTK. If it is not finding GTK, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" echo "***" echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" echo "*** came with the system with the command" echo "***" echo "*** rpm --erase --nodeps gtk gtk-devel" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK was incorrectly installed" echo "*** or that you have moved GTK since it was installed. In the latter case, you" echo "*** may want to edit the gtk-config script: $GTK_CONFIG" firm -f conftest* CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" exit 1 fi rm -f conf.gtktest CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"else BSD_GTK_CFLAGS=`$gtkconfigbsd --cflags gtk gthread` BSD_GTK_LIBS=`$gtkconfigbsd --libs gtk gthread` CFLAGS="$CFLAGS $BSD_GTK_CFLAGS" LIBS="$LIBS $BSD_GTK_LIBS"fiTHREAD1=0THREAD2=0THREAD3=0THREAD4=0ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for pthread.h""... $ac_c" 1>&6echo "configure:1722: checking for pthread.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1727 "configure"#include "confdefs.h"#include <pthread.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD1=1else echo "$ac_t""no" 1>&6fiecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6echo "configure:1754: checking for pthread_create in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lpthread $LIBS"cat > conftest.$ac_ext <<EOF#line 1762 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_create();int main() {pthread_create(); return 0; }EOFif { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD2=1else echo "$ac_t""no" 1>&6fiecho $ac_n "checking for pthread_setcancelstate in -lpthread""... $ac_c" 1>&6echo "configure:1794: checking for pthread_setcancelstate in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_setcancelstate | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lpthread $LIBS"cat > conftest.$ac_ext <<EOF#line 1802 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_setcancelstate();int main() {pthread_setcancelstate(); return 0; }EOFif { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD3=1else echo "$ac_t""no" 1>&6fiecho $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6echo "configure:1834: checking for pthread_setcanceltype in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lpthread $LIBS"cat > conftest.$ac_ext <<EOF#line 1842 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_setcanceltype();int main() {pthread_setcanceltype(); return 0; }EOFif { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD4=1else echo "$ac_t""no" 1>&6fiif test x$THREAD1$THREAD2 = x11; then LIBS="$LIBS -lpthread"else echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6echo "configure:1878: checking for pthread_create in -lc_r" >&5ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lc_r $LIBS"cat > conftest.$ac_ext <<EOF#line 1886 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_create();int main() {pthread_create(); return 0; }EOFif { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD2=1else echo "$ac_t""no" 1>&6fi if test x$THREAD2 = x1; then LIBS="$LIBS -lc_r" CFLAGS="$CFLAGS -pthread" echo $ac_n "checking for pthread_setcancelstate in -lc_r""... $ac_c" 1>&6echo "configure:1921: checking for pthread_setcancelstate in -lc_r" >&5ac_lib_var=`echo c_r'_'pthread_setcancelstate | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lc_r $LIBS"cat > conftest.$ac_ext <<EOF#line 1929 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_setcancelstate();int main() {pthread_setcancelstate(); return 0; }EOFif { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD3=1else echo "$ac_t""no" 1>&6fi echo $ac_n "checking for pthread_setcanceltype in -lc_r""... $ac_c" 1>&6echo "configure:1961: checking for pthread_setcanceltype in -lc_r" >&5ac_lib_var=`echo c_r'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lc_r $LIBS"cat > conftest.$ac_ext <<EOF#line 1969 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char pthread_setcanceltype();int main() {pthread_setcanceltype(); return 0; }EOFif { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 THREAD4=1else echo "$ac_t""no" 1>&6fi else echo "*** You must have pthreads support (glibc2.x for Linux, libc_r for" echo "*** FreeBSD) to compile and run Cheetah." exit 0 fifiif test x$THREAD3$THREAD4 = x11; then cat >> confdefs.h <<\EOF#define HAVE_PTHREADS_CANCEL_FLAGS 1EOFfiecho $ac_n "checking for png_read_info in -lpng""... $ac_c" 1>&6echo "configure:2016: checking for png_read_info in -lpng" >&5ac_lib_var=`echo png'_'png_read_info | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-lpng $LIBS"cat > conftest.$ac_ext <<EOF#line 2024 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char png_read_info();int main() {png_read_info(); return 0; }EOFif { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libpng=yeselse echo "$ac_t""no" 1>&6have_libpng=nofii
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -