configure
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:1316k
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pthread_create ();
- int
- main ()
- {
- return pthread_create ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "$as_ac_Lib=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- ac_res=`eval echo '${'$as_ac_Lib'}'`
- { echo "$as_me:$LINENO: result: $ac_res" >&5
- echo "${ECHO_T}$ac_res" >&6; }
- if test `eval echo '${'$as_ac_Lib'}'` = yes; then
- LIBPTHREAD="$PTHREAD_LIBS_save"
- fi
- LDFLAGS="$kde_save_LDFLAGS"
- LIBS="$kde_save_LIBS"
- PTHREAD_LIBS="$PTHREAD_LIBS_save"
- fi
- fi
- if test -z "$LIBPTHREAD"; then
- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
- echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
- if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpthread $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pthread_create ();
- int
- main ()
- {
- return pthread_create ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_pthread_pthread_create=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_pthread_pthread_create=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
- echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
- if test $ac_cv_lib_pthread_pthread_create = yes; then
- LIBPTHREAD="-lpthread"
- fi
- fi
- if test -z "$LIBPTHREAD" ; then
- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
- echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
- kde_safe_libs=$LIBS
- LIBS="$LIBS -lpthread"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- (void)pthread_create(0,0,0,0);
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- LIBPTHREAD="-lpthread"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$kde_safe_libs
- fi
- if test "x$LIBPTHREAD" = "xPTHREAD" ; then
- LIBPTHREAD=""
- fi
- USE_THREADS=""
- if test -z "$LIBPTHREAD"; then
- { echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
- echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
- kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
- if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS -pthread"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- int
- main ()
- {
- return 0;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "kde_cv_prog_cxx_$kde_cache=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- CXXFLAGS="$save_CXXFLAGS"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- if eval "test "`echo '$kde_cv_prog_cxx_'$kde_cache`" = yes"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- :
- USE_THREADS="-D_THREAD_SAFE -pthread"
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- :
- fi
- fi
- case $host_os in
- solaris*)
- { echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
- echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
- kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
- if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS -mt"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- int
- main ()
- {
- return 0;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "kde_cv_prog_cxx_$kde_cache=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- CXXFLAGS="$save_CXXFLAGS"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- if eval "test "`echo '$kde_cv_prog_cxx_'$kde_cache`" = yes"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- :
- USE_THREADS="-mt"
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- :
- fi
- CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
- ;;
- freebsd*)
- CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
- ;;
- aix*)
- CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
- LIBPTHREAD="$LIBPTHREAD -lc_r"
- ;;
- linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
- if test "$CXX" = "KCC"; then
- CXXFLAGS="$CXXFLAGS --thread_safe"
- NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
- fi
- ;;
- *)
- ;;
- esac
- { echo "$as_me:$LINENO: checking for extra includes" >&5
- echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
- # Check whether --with-extra-includes was given.
- if test "${with_extra_includes+set}" = set; then
- withval=$with_extra_includes; kde_use_extra_includes="$withval"
- else
- kde_use_extra_includes=NONE
- fi
- kde_extra_includes=
- if test -n "$kde_use_extra_includes" &&
- test "$kde_use_extra_includes" != "NONE"; then
- ac_save_ifs=$IFS
- IFS=':'
- for dir in $kde_use_extra_includes; do
- kde_extra_includes="$kde_extra_includes $dir"
- USER_INCLUDES="$USER_INCLUDES -I$dir"
- done
- IFS=$ac_save_ifs
- kde_use_extra_includes="added"
- else
- kde_use_extra_includes="no"
- fi
- { echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
- echo "${ECHO_T}$kde_use_extra_includes" >&6; }
- kde_extra_libs=
- { echo "$as_me:$LINENO: checking for extra libs" >&5
- echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
- # Check whether --with-extra-libs was given.
- if test "${with_extra_libs+set}" = set; then
- withval=$with_extra_libs; kde_use_extra_libs=$withval
- else
- kde_use_extra_libs=NONE
- fi
- if test -n "$kde_use_extra_libs" &&
- test "$kde_use_extra_libs" != "NONE"; then
- ac_save_ifs=$IFS
- IFS=':'
- for dir in $kde_use_extra_libs; do
- kde_extra_libs="$kde_extra_libs $dir"
- KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
- USER_LDFLAGS="$USER_LDFLAGS -L$dir"
- done
- IFS=$ac_save_ifs
- kde_use_extra_libs="added"
- else
- kde_use_extra_libs="no"
- fi
- { echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
- echo "${ECHO_T}$kde_use_extra_libs" >&6; }
- { echo "$as_me:$LINENO: checking for libz" >&5
- echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
- if test "${ac_cv_lib_z+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_save_LIBS="$LIBS"
- LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
- kde_save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include<zlib.h>
- #include<string.h>
- int
- main ()
- {
- char buf[42];
- gzFile f = (gzFile) 0;
- /* this would segfault.. but we only link, don't run */
- (void) gzgets(f, buf, sizeof(buf));
- return (strcmp(zlibVersion(), ZLIB_VERSION) == 0);
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "ac_cv_lib_z='-lz'"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "ac_cv_lib_z=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$kde_save_LIBS"
- CFLAGS="$kde_save_CFLAGS"
- fi
- if test ! "$ac_cv_lib_z" = no; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBZ 1
- _ACEOF
- LIBZ="$ac_cv_lib_z"
- { echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
- echo "${ECHO_T}$ac_cv_lib_z" >&6; }
- else
- { { echo "$as_me:$LINENO: error: not found.
- Possibly configure picks up an outdated version
- installed by XFree86. Remove it from your system.
- Check your installation and look into config.log" >&5
- echo "$as_me: error: not found.
- Possibly configure picks up an outdated version
- installed by XFree86. Remove it from your system.
- Check your installation and look into config.log" >&2;}
- { (exit 1); exit 1; }; }
- LIBZ=""
- fi
- { echo "$as_me:$LINENO: checking for libpng" >&5
- echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
- if test "${ac_cv_lib_png+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_save_LIBS="$LIBS"
- if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
- LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
- else
- LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
- fi
- kde_save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include<png.h>
- int
- main ()
- {
- png_structp png_ptr = png_create_read_struct( /* image ptr */
- PNG_LIBPNG_VER_STRING, 0, 0, 0 );
- return( png_ptr != 0 );
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "ac_cv_lib_png=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$kde_save_LIBS"
- CFLAGS="$kde_save_CFLAGS"
- fi
- if eval "test ! "`echo $ac_cv_lib_png`" = no"; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPNG 1
- _ACEOF
- LIBPNG="$ac_cv_lib_png"
- { echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
- echo "${ECHO_T}$ac_cv_lib_png" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- LIBPNG=""
- fi
- { echo "$as_me:$LINENO: checking for libjpeg6b" >&5
- echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
- if test "${ac_cv_lib_jpeg_6b+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef __cplusplus
- extern "C" {
- #endif
- void jpeg_CreateDecompress();
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- jpeg_CreateDecompress();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "ac_cv_lib_jpeg_6b=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$ac_save_LIBS"
- CFLAGS="$ac_save_CFLAGS"
- fi
- if eval "test ! "`echo $ac_cv_lib_jpeg_6b`" = no"; then
- LIBJPEG="$ac_cv_lib_jpeg_6b"
- { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
- echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- { echo "$as_me:$LINENO: checking for libjpeg" >&5
- echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
- if test "${ac_cv_lib_jpeg_normal+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef __cplusplus
- extern "C" {
- #endif
- void jpeg_CreateDecompress();
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- jpeg_CreateDecompress();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "ac_cv_lib_jpeg_normal=-ljpeg"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "ac_cv_lib_jpeg_normal=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$ac_save_LIBS"
- CFLAGS="$ac_save_CFLAGS"
- fi
- if eval "test ! "`echo $ac_cv_lib_jpeg_normal`" = no"; then
- LIBJPEG="$ac_cv_lib_jpeg_normal"
- { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
- echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- LIBJPEG=
- fi
- fi
- jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
- jpeg_incdir=NO
- for i in $jpeg_incdirs;
- do
- for j in jpeglib.h;
- do
- echo "configure: 37065: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- jpeg_incdir=$i
- break 2
- fi
- done
- done
- test "x$jpeg_incdir" = xNO && jpeg_incdir=
- if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBJPEG 1
- _ACEOF
- else
- if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
- { echo "$as_me:$LINENO: WARNING:
- There is an installation error in jpeg support. You seem to have only one
- of either the headers _or_ the libraries installed. You may need to either
- provide correct --with-extra-... options, or the development package of
- libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
- Disabling JPEG support.
- " >&5
- echo "$as_me: WARNING:
- There is an installation error in jpeg support. You seem to have only one
- of either the headers _or_ the libraries installed. You may need to either
- provide correct --with-extra-... options, or the development package of
- libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
- Disabling JPEG support.
- " >&2;}
- else
- { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
- echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
- fi
- jpeg_incdir=
- LIBJPEG=
- fi
- { echo "$as_me:$LINENO: checking for perl" >&5
- echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
- if test -n "$PERL"; then
- kde_cv_path="$PERL";
- else
- kde_cache=`echo perl | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
- else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/perl"; then
- if test -n ""
- then
- evalstr="$dir/perl 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/perl"
- break
- fi
- else
- kde_cv_path="$dir/perl"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
- We need perl to generate some code." >&5
- echo "$as_me: error: No Perl found in your $PATH.
- We need perl to generate some code." >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- PERL=$kde_cv_path
- fi
- # Check whether --enable-mt was given.
- if test "${enable_mt+set}" = set; then
- enableval=$enable_mt; kde_use_qt_mt=$enableval
- else
- if test $kde_qtver = 3; then
- kde_use_qt_mt=yes
- else
- kde_use_qt_mt=no
- fi
- fi
- USING_QT_MT=""
- KDE_MT_LDFLAGS=
- KDE_MT_LIBS=
- if test "x$kde_use_qt_mt" = "xyes"; then
- if test -z "$LIBPTHREAD"; then
- if test -z "$USE_THREADS"; then
- kde_check_threading_default=no
- else
- kde_check_threading_default=yes
- fi
- else
- kde_check_threading_default=yes
- fi
- # Check whether --enable-threading was given.
- if test "${enable_threading+set}" = set; then
- enableval=$enable_threading; kde_use_threading=$enableval
- else
- kde_use_threading=$kde_check_threading_default
- fi
- if test "x$kde_use_threading" = "xyes"; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPTHREAD 1
- _ACEOF
- fi
- if test "x$kde_use_threading" = "xyes"; then
- CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
- KDE_MT_LDFLAGS="$USE_THREADS"
- KDE_MT_LIBS="$LIBPTHREAD"
- else
- kde_use_qt_mt=no
- fi
- fi
- kde_qt_was_given=yes
- if test -z "$LIBQT_GLOB"; then
- if test "x$kde_use_qt_emb" = "xyes"; then
- LIBQT_GLOB="libqte.*"
- else
- LIBQT_GLOB="libqt.*"
- fi
- fi
- if test "x$kde_use_qt_emb" = "xyes"; then
- qtlib="qte"
- else
- qtlib="qt"
- fi
- kde_int_qt="-l$qtlib"
- if test -z "$LIBQPE"; then
- if test "x$kde_use_qt_emb" = "xyes"; then
- if test "x$kde_use_qt_emb_palm" = "xyes"; then
- LIB_QPE="-lqpe"
- else
- LIB_QPE=""
- fi
- else
- LIB_QPE=""
- fi
- fi
- if test "x$kde_use_qt_mt" = "xyes"; then
- LIBQT="-l$qtlib-mt"
- kde_int_qt="-l$qtlib-mt"
- LIBQT_GLOB="lib$qtlib-mt.*"
- USING_QT_MT="using -mt"
- else
- LIBQT="-l$qtlib"
- fi
- if test $kde_qtver != 1; then
- LIBQT="$LIBQT $LIBPNG $LIBJPEG"
- fi
- if test $kde_qtver = 3; then
- LIBQT="$LIBQT $LIBDL"
- fi
- { echo "$as_me:$LINENO: checking for Qt" >&5
- echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
- if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
- LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
- fi
- ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
- qt_libraries=""
- qt_includes=""
- # Check whether --with-qt-dir was given.
- if test "${with_qt_dir+set}" = set; then
- withval=$with_qt_dir; ac_qt_includes="$withval"/include
- ac_qt_libraries="$withval"/lib${kdelibsuff}
- ac_qt_bindir="$withval"/bin
- fi
- # Check whether --with-qt-includes was given.
- if test "${with_qt_includes+set}" = set; then
- withval=$with_qt_includes;
- ac_qt_includes="$withval"
- fi
- kde_qt_libs_given=no
- # Check whether --with-qt-libraries was given.
- if test "${with_qt_libraries+set}" = set; then
- withval=$with_qt_libraries; ac_qt_libraries="$withval"
- kde_qt_libs_given=yes
- fi
- if test "${ac_cv_have_qt+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- #try to guess Qt locations
- qt_incdirs=""
- for dir in $kde_qt_dirs; do
- qt_incdirs="$qt_incdirs $dir/include $dir"
- done
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { echo "$as_me:$LINENO: checking for $ac_word" >&5
- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- case $PKG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
- echo "${ECHO_T}$PKG_CONFIG" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- fi
- fi
- if test "$PKG_CONFIG" != "no" ; then
- if $PKG_CONFIG --exists qt-mt ; then
- qt_incdirs="$qt_incdirs `$PKG_CONFIG --variable=includedir qt-mt`"
- fi
- fi
- qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
- if test ! "$ac_qt_includes" = "NO"; then
- qt_incdirs="$ac_qt_includes $qt_incdirs"
- fi
- if test "$kde_qtver" != "1"; then
- kde_qt_header=qstyle.h
- else
- kde_qt_header=qglobal.h
- fi
- qt_incdir=NO
- for i in $qt_incdirs;
- do
- for j in $kde_qt_header;
- do
- echo "configure: 37411: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- qt_incdir=$i
- break 2
- fi
- done
- done
- ac_qt_includes="$qt_incdir"
- qt_libdirs=""
- for dir in $kde_qt_dirs; do
- qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir/lib $dir"
- done
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { echo "$as_me:$LINENO: checking for $ac_word" >&5
- echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- case $PKG_CONFIG in
- [\/]* | ?:[\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
- echo "${ECHO_T}$PKG_CONFIG" >&6; }
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- fi
- fi
- if test "$PKG_CONFIG" != "no" ; then
- if $PKG_CONFIG --exists qt-mt ; then
- qt_libdirs="$qt_incdirs `$PKG_CONFIG --variable=libdir qt-mt`"
- fi
- fi
- qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
- if test ! "$ac_qt_libraries" = "NO"; then
- qt_libdir=$ac_qt_libraries
- else
- qt_libdirs="$ac_qt_libraries $qt_libdirs"
- # if the Qt was given, the chance is too big that libqt.* doesn't exist
- qt_libdir=NONE
- for dir in $qt_libdirs; do
- try="ls -1 $dir/${LIBQT_GLOB}"
- if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
- done
- fi
- for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
- if test -e "$a"; then
- LIBQT="$LIBQT ${kde_int_qt}_incremental"
- break
- fi
- done
- ac_qt_libraries="$qt_libdir"
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- ac_cxxflags_safe="$CXXFLAGS"
- ac_ldflags_safe="$LDFLAGS"
- ac_libs_safe="$LIBS"
- CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
- LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
- LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <qglobal.h>
- #include <qapplication.h>
- EOF
- if test "$kde_qtver" = "2"; then
- cat >> conftest.$ac_ext <<EOF
- #include <qevent.h>
- #include <qstring.h>
- #include <qstyle.h>
- EOF
- if test $kde_qtsubver -gt 0; then
- cat >> conftest.$ac_ext <<EOF
- #if QT_VERSION < 210
- #error 1
- #endif
- EOF
- fi
- fi
- if test "$kde_qtver" = "3"; then
- cat >> conftest.$ac_ext <<EOF
- #include <qcursor.h>
- #include <qstylefactory.h>
- #include <private/qucomextra_p.h>
- EOF
- fi
- echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
- cat >> conftest.$ac_ext <<EOF
- #error 1
- #endif
- int main() {
- EOF
- if test "$kde_qtver" = "2"; then
- cat >> conftest.$ac_ext <<EOF
- QStringList *t = new QStringList();
- Q_UNUSED(t);
- EOF
- if test $kde_qtsubver -gt 0; then
- cat >> conftest.$ac_ext <<EOF
- QString s;
- s.setLatin1("Elvis is alive", 14);
- EOF
- fi
- fi
- if test "$kde_qtver" = "3"; then
- cat >> conftest.$ac_ext <<EOF
- (void)QStyleFactory::create(QString::null);
- QCursor c(Qt::WhatsThisCursor);
- EOF
- fi
- cat >> conftest.$ac_ext <<EOF
- return 0;
- }
- EOF
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest; then
- rm -f conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ac_qt_libraries="NO"
- fi
- rm -f conftest*
- CXXFLAGS="$ac_cxxflags_safe"
- LDFLAGS="$ac_ldflags_safe"
- LIBS="$ac_libs_safe"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
- ac_cv_have_qt="have_qt=no"
- ac_qt_notfound=""
- missing_qt_mt=""
- if test "$ac_qt_includes" = NO; then
- if test "$ac_qt_libraries" = NO; then
- ac_qt_notfound="(headers and libraries)";
- else
- ac_qt_notfound="(headers)";
- fi
- else
- if test "x$kde_use_qt_mt" = "xyes"; then
- missing_qt_mt="
- Make sure that you have compiled Qt with thread support!"
- ac_qt_notfound="(library $qtlib-mt)";
- else
- ac_qt_notfound="(library $qtlib)";
- fi
- fi
- { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
- For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
- echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
- For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
- { (exit 1); exit 1; }; }
- else
- have_qt="yes"
- fi
- fi
- eval "$ac_cv_have_qt"
- if test "$have_qt" != yes; then
- { echo "$as_me:$LINENO: result: $have_qt" >&5
- echo "${ECHO_T}$have_qt" >&6; };
- else
- ac_cv_have_qt="have_qt=yes
- ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
- { echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
- echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
- qt_libraries="$ac_qt_libraries"
- qt_includes="$ac_qt_includes"
- fi
- if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
- { echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
- echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
- if test "${kde_cv_qt_direct+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
- ac_LIBRARY_PATH="$LIBRARY_PATH"
- ac_cxxflags_safe="$CXXFLAGS"
- ac_ldflags_safe="$LDFLAGS"
- ac_libs_safe="$LIBS"
- CXXFLAGS="$CXXFLAGS -I$qt_includes"
- LDFLAGS="$LDFLAGS $X_LDFLAGS"
- if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
- LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
- else
- LIBS="$LIBQT $LIBSOCKET"
- fi
- LD_LIBRARY_PATH=
- export LD_LIBRARY_PATH
- LIBRARY_PATH=
- export LIBRARY_PATH
- cat > conftest.$ac_ext <<EOF
- #include "confdefs.h"
- #include <qglobal.h>
- #include <qapplication.h>
- EOF
- if test "$kde_qtver" = "2"; then
- cat >> conftest.$ac_ext <<EOF
- #include <qevent.h>
- #include <qstring.h>
- #include <qstyle.h>
- EOF
- if test $kde_qtsubver -gt 0; then
- cat >> conftest.$ac_ext <<EOF
- #if QT_VERSION < 210
- #error 1
- #endif
- EOF
- fi
- fi
- if test "$kde_qtver" = "3"; then
- cat >> conftest.$ac_ext <<EOF
- #include <qcursor.h>
- #include <qstylefactory.h>
- #include <private/qucomextra_p.h>
- EOF
- fi
- echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
- cat >> conftest.$ac_ext <<EOF
- #error 1
- #endif
- int main() {
- EOF
- if test "$kde_qtver" = "2"; then
- cat >> conftest.$ac_ext <<EOF
- QStringList *t = new QStringList();
- Q_UNUSED(t);
- EOF
- if test $kde_qtsubver -gt 0; then
- cat >> conftest.$ac_ext <<EOF
- QString s;
- s.setLatin1("Elvis is alive", 14);
- EOF
- fi
- fi
- if test "$kde_qtver" = "3"; then
- cat >> conftest.$ac_ext <<EOF
- (void)QStyleFactory::create(QString::null);
- QCursor c(Qt::WhatsThisCursor);
- EOF
- fi
- cat >> conftest.$ac_ext <<EOF
- return 0;
- }
- EOF
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest; then
- kde_cv_qt_direct="yes"
- else
- kde_cv_qt_direct="no"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- CXXFLAGS="$ac_cxxflags_safe"
- LDFLAGS="$ac_ldflags_safe"
- LIBS="$ac_libs_safe"
- LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
- export LD_LIBRARY_PATH
- LIBRARY_PATH="$ac_LIBRARY_PATH"
- export LIBRARY_PATH
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- if test "$kde_cv_qt_direct" = "yes"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- qt_libraries=
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- fi
- fi
- if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
- QT_INCLUDES=""
- else
- QT_INCLUDES="-I$qt_includes"
- all_includes="$QT_INCLUDES $all_includes"
- fi
- if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
- QT_LDFLAGS=""
- else
- QT_LDFLAGS="-L$qt_libraries"
- all_libraries="$QT_LDFLAGS $all_libraries"
- fi
- test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
- qt_bindirs=""
- for dir in $kde_qt_dirs; do
- qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
- done
- qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
- if test ! "$ac_qt_bindir" = "NO"; then
- qt_bindirs="$ac_qt_bindir $qt_bindirs"
- fi
- { echo "$as_me:$LINENO: checking for moc" >&5
- echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
- if test -n "$MOC"; then
- kde_cv_path="$MOC";
- else
- kde_cache=`echo moc | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$qt_bindirs $dirs"
- else dirs="$dirs $qt_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/moc"; then
- if test -n ""
- then
- evalstr="$dir/moc 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/moc"
- break
- fi
- else
- kde_cv_path="$dir/moc"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
- Please check whether you installed Qt correctly.
- You need to have a running moc binary.
- configure tried to run $ac_cv_path_moc and the test didn't
- succeed. If configure shouldn't have tried this one, set
- the environment variable MOC to the right one before running
- configure.
- " >&5
- echo "$as_me: error: No Qt meta object compiler (moc) found!
- Please check whether you installed Qt correctly.
- You need to have a running moc binary.
- configure tried to run $ac_cv_path_moc and the test didn't
- succeed. If configure shouldn't have tried this one, set
- the environment variable MOC to the right one before running
- configure.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- MOC=$kde_cv_path
- fi
- if test -z "$UIC_NOT_NEEDED"; then
- { echo "$as_me:$LINENO: checking for uic" >&5
- echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
- if test -n "$UIC_PATH"; then
- kde_cv_path="$UIC_PATH";
- else
- kde_cache=`echo uic | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$qt_bindirs $dirs"
- else dirs="$dirs $qt_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/uic"; then
- if test -n ""
- then
- evalstr="$dir/uic 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/uic"
- break
- fi
- else
- kde_cv_path="$dir/uic"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- UIC_PATH=""
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- UIC_PATH=$kde_cv_path
- fi
- if test -z "$UIC_PATH" ; then
- { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
- Please check whether you installed Qt correctly.
- You need to have a running uic binary.
- configure tried to run $ac_cv_path_uic and the test didn't
- succeed. If configure shouldn't have tried this one, set
- the environment variable UIC to the right one before running
- configure.
- " >&5
- echo "$as_me: WARNING: No Qt ui compiler (uic) found!
- Please check whether you installed Qt correctly.
- You need to have a running uic binary.
- configure tried to run $ac_cv_path_uic and the test didn't
- succeed. If configure shouldn't have tried this one, set
- the environment variable UIC to the right one before running
- configure.
- " >&2;}
- exit 1
- else
- UIC=$UIC_PATH
- if test $kde_qtver = 3; then
- { echo "$as_me:$LINENO: checking whether uic supports -L " >&5
- echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
- kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
- if { as_var=kde_cv_prog_uic_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.ui <<EOT
- <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
- EOT
- ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
- if { (eval echo "$as_me:$LINENO: "$ac_uic_testrun"") >&5
- (eval $ac_uic_testrun) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- eval "kde_cv_prog_uic_$kde_cache=yes"
- else
- eval "kde_cv_prog_uic_$kde_cache=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$kde_cv_prog_uic_'$kde_cache`" = yes"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- :
- ac_uic_supports_libpath=yes
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- :
- ac_uic_supports_libpath=no
- fi
- { echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
- echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
- kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
- if { as_var=kde_cv_prog_uic_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.ui <<EOT
- <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
- EOT
- ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
- if { (eval echo "$as_me:$LINENO: "$ac_uic_testrun"") >&5
- (eval $ac_uic_testrun) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- eval "kde_cv_prog_uic_$kde_cache=yes"
- else
- eval "kde_cv_prog_uic_$kde_cache=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$kde_cv_prog_uic_'$kde_cache`" = yes"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- :
- ac_uic_supports_nounload=yes
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- :
- ac_uic_supports_nounload=no
- fi
- if test x$ac_uic_supports_libpath = xyes; then
- UIC="$UIC -L $(kde_widgetdir)"
- fi
- if test x$ac_uic_supports_nounload = xyes; then
- UIC="$UIC -nounload"
- fi
- fi
- fi
- else
- UIC="echo uic not available: "
- fi
- UIC_TR="i18n"
- if test $kde_qtver = 3; then
- UIC_TR="tr2i18n"
- fi
- if test -n "$LIBJPEG"; then
- { echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
- echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
- if test "${kde_cv_qt_jpeg+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- ac_save_LIBS="$LIBS"
- LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
- LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <qapplication.h>
- int
- main ()
- {
- int argc;
- char** argv;
- QApplication app(argc, argv);
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- eval "kde_cv_qt_jpeg=no"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "kde_cv_qt_jpeg=yes"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$ac_save_LIBS"
- CXXFLAGS="$ac_save_CXXFLAGS"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- fi
- if eval "test ! "`echo $kde_cv_qt_jpeg`" = no"; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- LIBJPEG_QT='$(LIBJPEG)'
- else
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- LIBJPEG_QT=
- fi
- if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
- LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
- else
- LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
- fi
- test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
- for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
- if test -e "$a"; then
- LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
- break
- fi
- done
- { echo "$as_me:$LINENO: checking for rpath" >&5
- echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
- # Check whether --enable-rpath was given.
- if test "${enable_rpath+set}" = set; then
- enableval=$enable_rpath; USE_RPATH=$enableval
- else
- USE_RPATH=yes
- fi
- if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
- KDE_RPATH="-R $(libdir)"
- if test "$kde_libraries" != "$libdir"; then
- KDE_RPATH="$KDE_RPATH -R $(kde_libraries)"
- fi
- if test -n "$qt_libraries"; then
- KDE_RPATH="$KDE_RPATH -R $(qt_libraries)"
- fi
- if test -n "$X_LDFLAGS"; then
- X_RPATH="-R $(x_libraries)"
- KDE_RPATH="$KDE_RPATH $X_RPATH"
- fi
- if test -n "$KDE_EXTRA_RPATH"; then
- KDE_RPATH="$KDE_RPATH $(KDE_EXTRA_RPATH)"
- fi
- fi
- { echo "$as_me:$LINENO: result: $USE_RPATH" >&5
- echo "${ECHO_T}$USE_RPATH" >&6; }
- { echo "$as_me:$LINENO: checking for KDE" >&5
- echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
- if test "${prefix}" != NONE; then
- kde_includes=${includedir}
- savex=$exec_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=$prefix
- tmp=$includedir
- while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
- exec_prefix=$savex
- kde_libraries=${libdir}
- savex=$exec_prefix
- test "x$exec_prefix" = xNONE && exec_prefix=$prefix
- tmp=$libdir
- while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
- exec_prefix=$savex
- else
- ac_kde_includes=
- ac_kde_libraries=
- kde_libraries=""
- kde_includes=""
- fi
- if test "${ac_cv_have_kde+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- #try to guess kde locations
- if test "$kde_qtver" = 1; then
- kde_check_header="ksock.h"
- kde_check_lib="libkdecore.la"
- else
- kde_check_header="ksharedptr.h"
- kde_check_lib="libkio.la"
- fi
- if test -z ""; then
- kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
- test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
- kde_incdirs="$ac_kde_includes $kde_incdirs"
- kde_incdir=NO
- for i in $kde_incdirs;
- do
- for j in $kde_check_header;
- do
- echo "configure: 38290: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- kde_incdir=$i
- break 2
- fi
- done
- done
- ac_kde_includes="$kde_incdir"
- if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
- { { echo "$as_me:$LINENO: error:
- in the prefix, you've chosen, are no KDE headers installed. This will fail.
- So, check this please and use another prefix!" >&5
- echo "$as_me: error:
- in the prefix, you've chosen, are no KDE headers installed. This will fail.
- So, check this please and use another prefix!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
- test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
- kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
- kde_libdir=NO
- for i in $kde_libdirs;
- do
- for j in $kde_check_lib;
- do
- echo "configure: 38320: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- kde_libdir=$i
- break 2
- fi
- done
- done
- ac_kde_libraries="$kde_libdir"
- kde_widgetdir=NO
- kde_widgetdir=NO
- for i in $kde_libdirs;
- do
- for j in "kde3/plugins/designer/kdewidgets.la";
- do
- echo "configure: 38338: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- kde_widgetdir=$i
- break 2
- fi
- done
- done
- if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
- { { echo "$as_me:$LINENO: error:
- in the prefix, you've chosen, are no KDE libraries installed. This will fail.
- So, check this please and use another prefix!" >&5
- echo "$as_me: error:
- in the prefix, you've chosen, are no KDE libraries installed. This will fail.
- So, check this please and use another prefix!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
- { { echo "$as_me:$LINENO: error:
- I can't find the designer plugins. These are required and should have been installed
- by kdelibs" >&5
- echo "$as_me: error:
- I can't find the designer plugins. These are required and should have been installed
- by kdelibs" >&2;}
- { (exit 1); exit 1; }; }
- fi
- if test -n "$kde_widgetdir"; then
- kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
- fi
- if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
- ac_cv_have_kde="have_kde=no"
- else
- ac_cv_have_kde="have_kde=yes
- ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
- fi
- else
- ac_cv_have_kde="have_kde=no"
- fi
- fi
- eval "$ac_cv_have_kde"
- if test "$have_kde" != "yes"; then
- if test "${prefix}" = NONE; then
- ac_kde_prefix="$ac_default_prefix"
- else
- ac_kde_prefix="$prefix"
- fi
- if test "$exec_prefix" = NONE; then
- ac_kde_exec_prefix="$ac_kde_prefix"
- { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
- echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
- else
- ac_kde_exec_prefix="$exec_prefix"
- { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
- echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
- fi
- kde_libraries="${libdir}"
- kde_includes="${includedir}"
- else
- ac_cv_have_kde="have_kde=yes
- ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
- { echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
- echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
- kde_libraries="$ac_kde_libraries"
- kde_includes="$ac_kde_includes"
- fi
- if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
- KDE_INCLUDES=""
- else
- KDE_INCLUDES="-I$kde_includes"
- all_includes="$KDE_INCLUDES $all_includes"
- fi
- KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
- KDE_LDFLAGS="-L$kde_libraries"
- if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
- all_libraries="$KDE_LDFLAGS $all_libraries"
- fi
- all_libraries="$all_libraries $USER_LDFLAGS"
- all_includes="$all_includes $USER_INCLUDES"
- if test -z ""; then
- if test x$ac_uic_supports_libpath = xyes; then
- { echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
- echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
- if test "${kde_cv_uic_plugins+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat > actest.ui << EOF
- <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
- <class>NewConnectionDialog</class>
- <widget class="QDialog">
- <widget class="KLineEdit">
- <property name="name">
- <cstring>testInput</cstring>
- </property>
- </widget>
- </widget>
- </UI>
- EOF
- kde_cv_uic_plugins=no
- kde_line="$UIC_PATH -L $kde_widgetdir"
- if test x$ac_uic_supports_nounload = xyes; then
- kde_line="$kde_line -nounload"
- fi
- kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
- if { (eval echo "$as_me:$LINENO: "$kde_line"") >&5
- (eval $kde_line) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- # if you're trying to debug this check and think it's incorrect,
- # better check your installation. The check _is_ correct - your
- # installation is not.
- if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
- kde_cv_uic_plugins=yes
- fi
- fi
- rm -f actest.ui actest.cpp
- fi
- { echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
- echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
- if test "$kde_cv_uic_plugins" != yes; then
- { { echo "$as_me:$LINENO: error:
- you need to install kdelibs first.
- If you did install kdelibs, then the Qt version that is picked up by
- this configure is not the same version you used to compile kdelibs.
- The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
- _same Qt version_, compiled with the _same compiler_ and the same Qt
- configuration settings.
- " >&5
- echo "$as_me: error:
- you need to install kdelibs first.
- If you did install kdelibs, then the Qt version that is picked up by
- this configure is not the same version you used to compile kdelibs.
- The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
- _same Qt version_, compiled with the _same compiler_ and the same Qt
- configuration settings.
- " >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
- fi
- ac_kde_libraries="$kde_libdir"
- # Check whether --enable-path-check was given.
- if test "${enable_path_check+set}" = set; then
- enableval=$enable_path_check;
- if test "$enableval" = "no";
- then ac_use_path_checking="default"
- else ac_use_path_checking=""
- fi
- else
- if test "$kde_qtver" = 1;
- then ac_use_path_checking=""
- else ac_use_path_checking="default"
- fi
- fi
- { echo "$as_me:$LINENO: checking for KDE paths" >&5
- echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
- kde_result=""
- kde_cached_paths=yes
- if test "${kde_cv_all_paths+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "$ac_use_path_checking" = "default"; then
- if test -z "$kde_htmldir"; then
- kde_htmldir='${datadir}/doc/HTML'
- fi
- if test -z "$kde_appsdir"; then
- kde_appsdir='${datadir}/applnk'
- fi
- if test -z "$kde_icondir"; then
- kde_icondir='${datadir}/icons'
- fi
- if test -z "$kde_sounddir"; then
- kde_sounddir='${datadir}/sounds'
- fi
- if test -z "$kde_datadir"; then
- kde_datadir='${datadir}/apps'
- fi
- if test -z "$kde_locale"; then
- kde_locale='${datadir}/locale'
- fi
- if test -z "$kde_cgidir"; then
- kde_cgidir='${exec_prefix}/cgi-bin'
- fi
- if test -z "$kde_confdir"; then
- kde_confdir='${datadir}/config'
- fi
- if test -z "$kde_kcfgdir"; then
- kde_kcfgdir='${datadir}/config.kcfg'
- fi
- if test -z "$kde_mimedir"; then
- kde_mimedir='${datadir}/mimelnk'
- fi
- if test -z "$kde_toolbardir"; then
- kde_toolbardir='${datadir}/toolbar'
- fi
- if test -z "$kde_wallpaperdir"; then
- kde_wallpaperdir='${datadir}/wallpapers'
- fi
- if test -z "$kde_templatesdir"; then
- kde_templatesdir='${datadir}/templates'
- fi
- if test -z "$kde_bindir"; then
- kde_bindir='${exec_prefix}/bin'
- fi
- if test -z "$kde_servicesdir"; then
- kde_servicesdir='${datadir}/services'
- fi
- if test -z "$kde_servicetypesdir"; then
- kde_servicetypesdir='${datadir}/servicetypes'
- fi
- if test -z "$kde_moduledir"; then
- if test "$kde_qtver" = "2"; then
- kde_moduledir='${libdir}/kde2'
- else
- kde_moduledir='${libdir}/kde3'
- fi
- fi
- if test -z "$kde_styledir"; then
- kde_styledir='${libdir}/kde3/plugins/styles'
- fi
- if test -z "$kde_widgetdir"; then
- kde_widgetdir='${libdir}/kde3/plugins/designer'
- fi
- if test -z "$xdg_appsdir"; then
- xdg_appsdir='${datadir}/applications/kde'
- fi
- if test -z "$xdg_menudir"; then
- xdg_menudir='${sysconfdir}/xdg/menus'
- fi
- if test -z "$xdg_directorydir"; then
- xdg_directorydir='${datadir}/desktop-directories'
- fi
- kde_cv_all_paths="kde_have_all_paths="yes"
- kde_htmldir="$kde_htmldir"
- kde_appsdir="$kde_appsdir"
- kde_icondir="$kde_icondir"
- kde_sounddir="$kde_sounddir"
- kde_datadir="$kde_datadir"
- kde_locale="$kde_locale"
- kde_cgidir="$kde_cgidir"
- kde_confdir="$kde_confdir"
- kde_kcfgdir="$kde_kcfgdir"
- kde_mimedir="$kde_mimedir"
- kde_toolbardir="$kde_toolbardir"
- kde_wallpaperdir="$kde_wallpaperdir"
- kde_templatesdir="$kde_templatesdir"
- kde_bindir="$kde_bindir"
- kde_servicesdir="$kde_servicesdir"
- kde_servicetypesdir="$kde_servicetypesdir"
- kde_moduledir="$kde_moduledir"
- kde_styledir="$kde_styledir"
- kde_widgetdir="$kde_widgetdir"
- xdg_appsdir="$xdg_appsdir"
- xdg_menudir="$xdg_menudir"
- xdg_directorydir="$xdg_directorydir"
- kde_result=defaults"
- else
- if test $kde_qtver = 1; then
- { echo "$as_me:$LINENO: result: compiling" >&5
- echo "${ECHO_T}compiling" >&6; }
- { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
- echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cat > conftest.$ac_ext <<EOF
- #ifdef STDC_HEADERS
- # include <stdlib.h>
- #endif
- #include <stdio.h>
- #include "confdefs.h"
- #include <kapp.h>
- int main() {
- printf("kde_htmldir=\"%s\"n", KApplication::kde_htmldir().data());
- printf("kde_appsdir=\"%s\"n", KApplication::kde_appsdir().data());
- printf("kde_icondir=\"%s\"n", KApplication::kde_icondir().data());
- printf("kde_sounddir=\"%s\"n", KApplication::kde_sounddir().data());
- printf("kde_datadir=\"%s\"n", KApplication::kde_datadir().data());
- printf("kde_locale=\"%s\"n", KApplication::kde_localedir().data());
- printf("kde_cgidir=\"%s\"n", KApplication::kde_cgidir().data());
- printf("kde_confdir=\"%s\"n", KApplication::kde_configdir().data());
- printf("kde_mimedir=\"%s\"n", KApplication::kde_mimedir().data());
- printf("kde_toolbardir=\"%s\"n", KApplication::kde_toolbardir().data());
- printf("kde_wallpaperdir=\"%s\"n",
- KApplication::kde_wallpaperdir().data());
- printf("kde_bindir=\"%s\"n", KApplication::kde_bindir().data());
- printf("kde_partsdir=\"%s\"n", KApplication::kde_partsdir().data());
- printf("kde_servicesdir=\"/tmp/dummy\"n");
- printf("kde_servicetypesdir=\"/tmp/dummy\"n");
- printf("kde_moduledir=\"/tmp/dummy\"n");
- printf("kde_styledir=\"/tmp/dummy\"n");
- printf("kde_widgetdir=\"/tmp/dummy\"n");
- printf("xdg_appsdir=\"/tmp/dummy\"n");
- printf("xdg_menudir=\"/tmp/dummy\"n");
- printf("xdg_directorydir=\"/tmp/dummy\"n");
- printf("kde_kcfgdir=\"/tmp/dummy\"n");
- return 0;
- }
- EOF
- ac_save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="$all_includes $CPPFLAGS"
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- else
- { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
- Check, if you installed the KDE header files correctly.
- For more details about this problem, look at the end of config.log." >&5
- echo "$as_me: error: your system is not able to compile a small KDE application!
- Check, if you installed the KDE header files correctly.
- For more details about this problem, look at the end of config.log." >&2;}
- { (exit 1); exit 1; }; }
- fi
- CPPFLAGS=$ac_save_CPPFLAGS
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- KDE_TEST_RPATH=
- if test -n "$USE_RPATH"; then
- if test -n "$kde_libraries"; then
- KDE_TEST_RPATH="-R $kde_libraries"
- fi
- if test -n "$qt_libraries"; then
- KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
- fi
- if test -n "$x_libraries"; then
- KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
- fi
- KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
- fi
- { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
- echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
- ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- else
- { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
- Check, if your compiler is installed correctly and if you have used the
- same compiler to compile Qt and kdelibs as you did use now.
- For more details about this problem, look at the end of config.log." >&5
- echo "$as_me: error: your system fails at linking a small KDE application!
- Check, if your compiler is installed correctly and if you have used the
- same compiler to compile Qt and kdelibs as you did use now.
- For more details about this problem, look at the end of config.log." >&2;}
- { (exit 1); exit 1; }; }
- fi
- if eval `KDEDIR= ./conftest 2>&5`; then
- kde_result=done
- else
- kde_result=problems
- fi
- KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
- kde_have_all_paths=yes
- kde_cv_all_paths="kde_have_all_paths="yes"
- kde_htmldir="$kde_htmldir"
- kde_appsdir="$kde_appsdir"
- kde_icondir="$kde_icondir"
- kde_sounddir="$kde_sounddir"
- kde_datadir="$kde_datadir"
- kde_locale="$kde_locale"
- kde_cgidir="$kde_cgidir"
- kde_confdir="$kde_confdir"
- kde_kcfgdir="$kde_kcfgdir"
- kde_mimedir="$kde_mimedir"
- kde_toolbardir="$kde_toolbardir"
- kde_wallpaperdir="$kde_wallpaperdir"
- kde_templatesdir="$kde_templatesdir"
- kde_bindir="$kde_bindir"
- kde_servicesdir="$kde_servicesdir"
- kde_servicetypesdir="$kde_servicetypesdir"
- kde_moduledir="$kde_moduledir"
- kde_styledir="$kde_styledir"
- kde_widgetdir="$kde_widgetdir"
- xdg_appsdir="$xdg_appsdir"
- xdg_menudir="$xdg_menudir"
- xdg_directorydir="$xdg_directorydir"
- kde_result=$kde_result"
- else
- { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
- echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
- kde_cached_paths=no
- fi
- eval "$kde_cv_all_paths"
- if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
- test -z "$kde_icondir" || test -z "$kde_sounddir" ||
- test -z "$kde_datadir" || test -z "$kde_locale" ||
- test -z "$kde_cgidir" || test -z "$kde_confdir" ||
- test -z "$kde_kcfgdir" ||
- test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
- test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
- test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
- test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
- test -z "$kde_styledir" || test -z "kde_widgetdir" ||
- test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
- test "x$kde_have_all_paths" != "xyes"; then
- kde_have_all_paths=no
- fi
- if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
- # wrong values were cached, may be, we can set better ones
- kde_result=
- kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
- kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
- kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
- kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
- kde_have_all_paths=
- kde_styledir=
- kde_widgetdir=
- xdg_appsdir = xdg_menudir= xdg_directorydir=
- if test "$ac_use_path_checking" = "default"; then
- if test -z "$kde_htmldir"; then
- kde_htmldir='${datadir}/doc/HTML'
- fi
- if test -z "$kde_appsdir"; then
- kde_appsdir='${datadir}/applnk'
- fi
- if test -z "$kde_icondir"; then
- kde_icondir='${datadir}/icons'
- fi
- if test -z "$kde_sounddir"; then
- kde_sounddir='${datadir}/sounds'
- fi
- if test -z "$kde_datadir"; then
- kde_datadir='${datadir}/apps'
- fi
- if test -z "$kde_locale"; then
- kde_locale='${datadir}/locale'
- fi
- if test -z "$kde_cgidir"; then
- kde_cgidir='${exec_prefix}/cgi-bin'
- fi
- if test -z "$kde_confdir"; then
- kde_confdir='${datadir}/config'
- fi
- if test -z "$kde_kcfgdir"; then
- kde_kcfgdir='${datadir}/config.kcfg'
- fi
- if test -z "$kde_mimedir"; then
- kde_mimedir='${datadir}/mimelnk'
- fi
- if test -z "$kde_toolbardir"; then
- kde_toolbardir='${datadir}/toolbar'
- fi
- if test -z "$kde_wallpaperdir"; then
- kde_wallpaperdir='${datadir}/wallpapers'
- fi
- if test -z "$kde_templatesdir"; then
- kde_templatesdir='${datadir}/templates'
- fi
- if test -z "$kde_bindir"; then
- kde_bindir='${exec_prefix}/bin'
- fi
- if test -z "$kde_servicesdir"; then
- kde_servicesdir='${datadir}/services'
- fi
- if test -z "$kde_servicetypesdir"; then
- kde_servicetypesdir='${datadir}/servicetypes'
- fi
- if test -z "$kde_moduledir"; then
- if test "$kde_qtver" = "2"; then
- kde_moduledir='${libdir}/kde2'
- else
- kde_moduledir='${libdir}/kde3'
- fi
- fi
- if test -z "$kde_styledir"; then
- kde_styledir='${libdir}/kde3/plugins/styles'
- fi
- if test -z "$kde_widgetdir"; then
- kde_widgetdir='${libdir}/kde3/plugins/designer'
- fi
- if test -z "$xdg_appsdir"; then
- xdg_appsdir='${datadir}/applications/kde'
- fi
- if test -z "$xdg_menudir"; then
- xdg_menudir='${sysconfdir}/xdg/menus'
- fi
- if test -z "$xdg_directorydir"; then
- xdg_directorydir='${datadir}/desktop-directories'
- fi
- kde_cv_all_paths="kde_have_all_paths="yes"
- kde_htmldir="$kde_htmldir"
- kde_appsdir="$kde_appsdir"
- kde_icondir="$kde_icondir"
- kde_sounddir="$kde_sounddir"
- kde_datadir="$kde_datadir"
- kde_locale="$kde_locale"
- kde_cgidir="$kde_cgidir"
- kde_confdir="$kde_confdir"
- kde_kcfgdir="$kde_kcfgdir"
- kde_mimedir="$kde_mimedir"
- kde_toolbardir="$kde_toolbardir"
- kde_wallpaperdir="$kde_wallpaperdir"
- kde_templatesdir="$kde_templatesdir"
- kde_bindir="$kde_bindir"
- kde_servicesdir="$kde_servicesdir"
- kde_servicetypesdir="$kde_servicetypesdir"
- kde_moduledir="$kde_moduledir"
- kde_styledir="$kde_styledir"
- kde_widgetdir="$kde_widgetdir"
- xdg_appsdir="$xdg_appsdir"
- xdg_menudir="$xdg_menudir"
- xdg_directorydir="$xdg_directorydir"
- kde_result=defaults"
- else
- if test $kde_qtver = 1; then
- { echo "$as_me:$LINENO: result: compiling" >&5
- echo "${ECHO_T}compiling" >&6; }
- { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
- echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cat > conftest.$ac_ext <<EOF
- #ifdef STDC_HEADERS
- # include <stdlib.h>
- #endif
- #include <stdio.h>
- #include "confdefs.h"
- #include <kapp.h>
- int main() {
- printf("kde_htmldir=\"%s\"n", KApplication::kde_htmldir().data());
- printf("kde_appsdir=\"%s\"n", KApplication::kde_appsdir().data());
- printf("kde_icondir=\"%s\"n", KApplication::kde_icondir().data());
- printf("kde_sounddir=\"%s\"n", KApplication::kde_sounddir().data());
- printf("kde_datadir=\"%s\"n", KApplication::kde_datadir().data());
- printf("kde_locale=\"%s\"n", KApplication::kde_localedir().data());
- printf("kde_cgidir=\"%s\"n", KApplication::kde_cgidir().data());
- printf("kde_confdir=\"%s\"n", KApplication::kde_configdir().data());
- printf("kde_mimedir=\"%s\"n", KApplication::kde_mimedir().data());
- printf("kde_toolbardir=\"%s\"n", KApplication::kde_toolbardir().data());
- printf("kde_wallpaperdir=\"%s\"n",
- KApplication::kde_wallpaperdir().data());
- printf("kde_bindir=\"%s\"n", KApplication::kde_bindir().data());
- printf("kde_partsdir=\"%s\"n", KApplication::kde_partsdir().data());
- printf("kde_servicesdir=\"/tmp/dummy\"n");
- printf("kde_servicetypesdir=\"/tmp/dummy\"n");
- printf("kde_moduledir=\"/tmp/dummy\"n");
- printf("kde_styledir=\"/tmp/dummy\"n");
- printf("kde_widgetdir=\"/tmp/dummy\"n");
- printf("xdg_appsdir=\"/tmp/dummy\"n");
- printf("xdg_menudir=\"/tmp/dummy\"n");
- printf("xdg_directorydir=\"/tmp/dummy\"n");
- printf("kde_kcfgdir=\"/tmp/dummy\"n");
- return 0;
- }
- EOF
- ac_save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="$all_includes $CPPFLAGS"
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- else
- { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
- Check, if you installed the KDE header files correctly.
- For more details about this problem, look at the end of config.log." >&5
- echo "$as_me: error: your system is not able to compile a small KDE application!
- Check, if you installed the KDE header files correctly.
- For more details about this problem, look at the end of config.log." >&2;}
- { (exit 1); exit 1; }; }
- fi
- CPPFLAGS=$ac_save_CPPFLAGS
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- KDE_TEST_RPATH=
- if test -n "$USE_RPATH"; then
- if test -n "$kde_libraries"; then
- KDE_TEST_RPATH="-R $kde_libraries"
- fi
- if test -n "$qt_libraries"; then
- KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
- fi
- if test -n "$x_libraries"; then
- KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
- fi
- KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
- fi
- { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
- echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
- ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && test -s conftest; then
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- else
- { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
- Check, if your compiler is installed correctly and if you have used the
- same compiler to compile Qt and kdelibs as you did use now.
- For more details about this problem, look at the end of config.log." >&5
- echo "$as_me: error: your system fails at linking a small KDE application!
- Check, if your compiler is installed correctly and if you have used the
- same compiler to compile Qt and kdelibs as you did use now.
- For more details about this problem, look at the end of config.log." >&2;}
- { (exit 1); exit 1; }; }
- fi
- if eval `KDEDIR= ./conftest 2>&5`; then
- kde_result=done
- else
- kde_result=problems
- fi
- KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
- kde_have_all_paths=yes
- kde_cv_all_paths="kde_have_all_paths="yes"
- kde_htmldir="$kde_htmldir"
- kde_appsdir="$kde_appsdir"
- kde_icondir="$kde_icondir"
- kde_sounddir="$kde_sounddir"
- kde_datadir="$kde_datadir"
- kde_locale="$kde_locale"
- kde_cgidir="$kde_cgidir"
- kde_confdir="$kde_confdir"
- kde_kcfgdir="$kde_kcfgdir"
- kde_mimedir="$kde_mimedir"
- kde_toolbardir="$kde_toolbardir"
- kde_wallpaperdir="$kde_wallpaperdir"
- kde_templatesdir="$kde_templatesdir"
- kde_bindir="$kde_bindir"
- kde_servicesdir="$kde_servicesdir"
- kde_servicetypesdir="$kde_servicetypesdir"
- kde_moduledir="$kde_moduledir"
- kde_styledir="$kde_styledir"
- kde_widgetdir="$kde_widgetdir"
- xdg_appsdir="$xdg_appsdir"
- xdg_menudir="$xdg_menudir"
- xdg_directorydir="$xdg_directorydir"
- kde_result=$kde_result"
- else
- { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
- echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
- eval "$kde_cv_all_paths"
- if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
- test -z "$kde_icondir" || test -z "$kde_sounddir" ||
- test -z "$kde_datadir" || test -z "$kde_locale" ||
- test -z "$kde_cgidir" || test -z "$kde_confdir" ||
- test -z "$kde_kcfgdir" ||
- test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
- test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
- test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
- test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
- test -z "$kde_styledir" || test -z "kde_widgetdir" ||
- test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
- test "x$kde_have_all_paths" != "xyes"; then
- kde_have_all_paths=no
- fi
- kde_result="$kde_result (cache overridden)"
- fi
- if test "$kde_have_all_paths" = "no"; then
- { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
- Since it had compiled and linked before, it must be a strange problem on your system.
- Look at config.log for details. If you are not able to fix this, look at
- http://www.kde.org/faq/installation.html or any www.kde.org mirror.
- (If you're using an egcs version on Linux, you may update binutils!)
- " >&5
- echo "$as_me: error: configure could not run a little KDE program to test the environment.
- Since it had compiled and linked before, it must be a strange problem on your system.
- Look at config.log for details. If you are not able to fix this, look at
- http://www.kde.org/faq/installation.html or any www.kde.org mirror.
- (If you're using an egcs version on Linux, you may update binutils!)
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- rm -f conftest*
- { echo "$as_me:$LINENO: result: $kde_result" >&5
- echo "${ECHO_T}$kde_result" >&6; }
- fi
- bindir=$kde_bindir
- # Check whether --with-arts was given.
- if test "${with_arts+set}" = set; then
- withval=$with_arts; build_arts=$withval
- else
- build_arts=yes
- fi
- if test "$build_arts" '!=' "no"; then
- include_ARTS_TRUE=
- include_ARTS_FALSE='#'
- else
- include_ARTS_TRUE='#'
- include_ARTS_FALSE=
- fi
- if test "$build_arts" = "no"; then
- cat >>confdefs.h <<_ACEOF
- #define WITHOUT_ARTS 1
- _ACEOF
- fi
- kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
- test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
- if test -n "$KDEDIRS"; then
- kde_save_IFS=$IFS
- IFS=:
- for dir in $KDEDIRS; do
- kde_default_bindirs="$dir/bin $kde_default_bindirs "
- done
- IFS=$kde_save_IFS
- fi
- kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
- { echo "$as_me:$LINENO: checking for dcopidl" >&5
- echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
- if test -n "$DCOPIDL"; then
- kde_cv_path="$DCOPIDL";
- else
- kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/dcopidl"; then
- if test -n ""
- then
- evalstr="$dir/dcopidl 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/dcopidl"
- break
- fi
- else
- kde_cv_path="$dir/dcopidl"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
- Please check whether you installed KDE correctly.
- " >&5
- echo "$as_me: error: The important program dcopidl was not found!
- Please check whether you installed KDE correctly.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- DCOPIDL=$kde_cv_path
- fi
- { echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
- echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
- if test -n "$DCOPIDL2CPP"; then
- kde_cv_path="$DCOPIDL2CPP";
- else
- kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/dcopidl2cpp"; then
- if test -n ""
- then
- evalstr="$dir/dcopidl2cpp 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/dcopidl2cpp"
- break
- fi
- else
- kde_cv_path="$dir/dcopidl2cpp"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
- Please check whether you installed KDE correctly.
- " >&5
- echo "$as_me: error: The important program dcopidl2cpp was not found!
- Please check whether you installed KDE correctly.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- DCOPIDL2CPP=$kde_cv_path
- fi
- if test "$build_arts" '!=' "no"; then
- { echo "$as_me:$LINENO: checking for mcopidl" >&5
- echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
- if test -n "$MCOPIDL"; then
- kde_cv_path="$MCOPIDL";
- else
- kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/mcopidl"; then
- if test -n ""
- then
- evalstr="$dir/mcopidl 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/mcopidl"
- break
- fi
- else
- kde_cv_path="$dir/mcopidl"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
- Please check whether you installed aRts correctly or use
- --without-arts to compile without aRts support (this will remove functionality).
- " >&5
- echo "$as_me: error: The important program mcopidl was not found!
- Please check whether you installed aRts correctly or use
- --without-arts to compile without aRts support (this will remove functionality).
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- MCOPIDL=$kde_cv_path
- fi
- { echo "$as_me:$LINENO: checking for artsc-config" >&5
- echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
- if test -n "$ARTSCCONFIG"; then
- kde_cv_path="$ARTSCCONFIG";
- else
- kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/artsc-config"; then
- if test -n ""
- then
- evalstr="$dir/artsc-config 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/artsc-config"
- break
- fi
- else
- kde_cv_path="$dir/artsc-config"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
- Please check whether you installed aRts correctly or use
- --without-arts to compile without aRts support (this will remove functionality).
- " >&5
- echo "$as_me: error: The important program artsc-config was not found!
- Please check whether you installed aRts correctly or use
- --without-arts to compile without aRts support (this will remove functionality).
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- ARTSCCONFIG=$kde_cv_path
- fi
- fi
- { echo "$as_me:$LINENO: checking for meinproc" >&5
- echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
- if test -n "$MEINPROC"; then
- kde_cv_path="$MEINPROC";
- else
- kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/meinproc"; then
- if test -n ""
- then
- evalstr="$dir/meinproc 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/meinproc"
- break
- fi
- else
- kde_cv_path="$dir/meinproc"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- MEINPROC=$kde_cv_path
- fi
- kde32ornewer=1
- kde33ornewer=1
- if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
- kde32ornewer=
- kde33ornewer=
- else
- if test "$kde_qtver" = "3"; then
- if test "$kde_qtsubver" -le 1; then
- kde32ornewer=
- fi
- if test "$kde_qtsubver" -le 2; then
- kde33ornewer=
- fi
- if test "$KDECONFIG" != "compiled"; then
- if test `$KDECONFIG --version | grep KDE | sed 's/KDE: (...).*/1/'` = 3.2; then
- kde33ornewer=
- fi
- fi
- fi
- fi
- if test -n "$kde32ornewer"; then
- { echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
- echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
- if test -n "$KCONFIG_COMPILER"; then
- kde_cv_path="$KCONFIG_COMPILER";
- else
- kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/kconfig_compiler"; then
- if test -n ""
- then
- evalstr="$dir/kconfig_compiler 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/kconfig_compiler"
- break
- fi
- else
- kde_cv_path="$dir/kconfig_compiler"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
- Please check whether you installed KDE correctly.
- " >&5
- echo "$as_me: error: The important program kconfig_compiler was not found!
- Please check whether you installed KDE correctly.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- KCONFIG_COMPILER=$kde_cv_path
- fi
- { echo "$as_me:$LINENO: checking for dcopidlng" >&5
- echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
- if test -n "$DCOPIDLNG"; then
- kde_cv_path="$DCOPIDLNG";
- else
- kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/dcopidlng"; then
- if test -n ""
- then
- evalstr="$dir/dcopidlng 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/dcopidlng"
- break
- fi
- else
- kde_cv_path="$dir/dcopidlng"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
- Please check whether you installed KDE correctly.
- " >&5
- echo "$as_me: error: The important program dcopidlng was not found!
- Please check whether you installed KDE correctly.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- DCOPIDLNG=$kde_cv_path
- fi
- fi
- if test -n "$kde33ornewer"; then
- { echo "$as_me:$LINENO: checking for makekdewidgets" >&5
- echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
- if test -n "$MAKEKDEWIDGETS"; then
- kde_cv_path="$MAKEKDEWIDGETS";
- else
- kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="$kde_default_bindirs $dirs"
- else dirs="$dirs $kde_default_bindirs"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/makekdewidgets"; then
- if test -n ""
- then
- evalstr="$dir/makekdewidgets 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/makekdewidgets"
- break
- fi
- else
- kde_cv_path="$dir/makekdewidgets"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
- Please check whether you installed KDE correctly.
- " >&5
- echo "$as_me: error: The important program makekdewidgets was not found!
- Please check whether you installed KDE correctly.
- " >&2;}
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- MAKEKDEWIDGETS=$kde_cv_path
- fi
- fi
- { echo "$as_me:$LINENO: checking for xmllint" >&5
- echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
- if test -n "$XMLLINT"; then
- kde_cv_path="$XMLLINT";
- else
- kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
- if { as_var=kde_cv_path_$kde_cache; eval "test "${$as_var+set}" = set"; }; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- kde_cv_path="NONE"
- kde_save_IFS=$IFS
- IFS=':'
- dirs=""
- for dir in $PATH; do
- dirs="$dirs $dir"
- done
- if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
- else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
- fi
- IFS=$kde_save_IFS
- for dir in $dirs; do
- if test -x "$dir/xmllint"; then
- if test -n ""
- then
- evalstr="$dir/xmllint 2>&1 "
- if eval $evalstr; then
- kde_cv_path="$dir/xmllint"
- break
- fi
- else
- kde_cv_path="$dir/xmllint"
- break
- fi
- fi
- done
- eval "kde_cv_path_$kde_cache=$kde_cv_path"
- fi
- eval "kde_cv_path="`echo '$kde_cv_path_'$kde_cache`""
- fi
- if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
- { echo "$as_me:$LINENO: result: not found" >&5
- echo "${ECHO_T}not found" >&6; }
- XMLLINT=""
- else
- { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
- echo "${ECHO_T}$kde_cv_path" >&6; }
- XMLLINT=$kde_cv_path
- fi
- if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
- kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
- test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
- KDE_XSL_STYLESHEET=NO
- for i in $kde_sharedirs;
- do
- for j in apps/ksgmltools2/customization/kde-chunk.xsl;
- do
- echo "configure: 39857: $i/$j" >&5
- if test -r "$i/$j"; then
- echo "taking that" >&5
- KDE_XSL_STYLESHEET=$i
- break 2
- fi
- done
- done
- if test "$KDE_XSL_STYLESHEET" = "NO"; then
- KDE_XSL_STYLESHEET=""
- else
- KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
- fi
- fi
- DCOP_DEPENDENCIES='$(DCOPIDL)'
- if test -n "$kde32ornewer"; then
- KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
- DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
- fi
- kdeinitdir='$(kde_moduledir)'
- if test "$kde_qtver" = 1; then
- kde_minidir="$kde_icondir/mini"
- else
- # for KDE 1 - this breaks KDE2 apps using minidir, but
- # that's the plan ;-/
- kde_minidir="/dev/null"
- fi
- if test $kde_qtver = 3; then
- case $host in
- *cygwin*) lib_kded="-lkdeinit_kded" ;;
- *) lib_kded="" ;;
- esac
- LIB_KDED=$lib_kded
- LIB_KDECORE="-lkdecore"
- LIB_KDEUI="-lkdeui"
- LIB_KIO="-lkio"
- LIB_KJS="-lkjs"
- LIB_SMB="-lsmb"
- LIB_KAB="-lkab"
- LIB_KABC="-lkabc"
- LIB_KHTML="-lkhtml"
- LIB_KSPELL="-lkspell"
- LIB_KPARTS="-lkparts"
- LIB_KDEPRINT="-lkdeprint"
- LIB_KUTILS="-lkutils"
- LIB_KDEPIM="-lkdepim"
- LIB_KIMPROXY="-lkimproxy"
- LIB_KNEWSTUFF="-lknewstuff"
- LIB_KDNSSD="-lkdnssd"
- LIB_KUNITTEST="-lkunittest"
- # these are for backward compatibility
- LIB_KSYCOCA="-lkio"
- LIB_KFILE="-lkio"
- elif test $kde_qtver = 2; then
- LIB_KDECORE="-lkdecore"
- LIB_KDEUI="-lkdeui"
- LIB_KIO="-lkio"
- LIB_KSYCOCA="-lksycoca"
- LIB_SMB="-lsmb"
- LIB_KFILE="-lkfile"
- LIB_KAB="-lkab"
- LIB_KHTML="-lkhtml"
- LIB_KSPELL="-lkspell"
- LIB_KPARTS="-lkparts"
- LIB_KDEPRINT="-lkdeprint"
- else
- LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
- LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
- LIB_KFM="-lkfm $(LIB_KDECORE)"
- LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
- LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
- fi
- check_theora="yes"
- fi
- if test "$ui_kde" = "yes"; then
- ENABLE_KDE_TRUE=
- ENABLE_KDE_FALSE='#'
- else
- ENABLE_KDE_TRUE='#'
- ENABLE_KDE_FALSE=
- fi
- if (test "$check_theora" = "yes"); then
- if (test "x$enable_theora" != "xno"); then
- pkg_failed=no
- { echo "$as_me:$LINENO: checking for THEORA" >&5
- echo $ECHO_N "checking for THEORA... $ECHO_C" >&6; }
- if test -n "$PKG_CONFIG"; then
- if test -n "$THEORA_CFLAGS"; then
- pkg_cv_THEORA_CFLAGS="$THEORA_CFLAGS"
- else
- if test -n "$PKG_CONFIG" &&
- { (echo "$as_me:$LINENO: $PKG_CONFIG --exists --print-errors "theora"") >&5
- ($PKG_CONFIG --exists --print-errors "theora") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_THEORA_CFLAGS=`$PKG_CONFIG --cflags "theora" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PKG_CONFIG"; then
- if test -n "$THEORA_LIBS"; then
- pkg_cv_THEORA_LIBS="$THEORA_LIBS"
- else
- if test -n "$PKG_CONFIG" &&
- { (echo "$as_me:$LINENO: $PKG_CONFIG --exists --print-errors "theora"") >&5
- ($PKG_CONFIG --exists --print-errors "theora") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_THEORA_LIBS=`$PKG_CONFIG --libs "theora" 2>/dev/null`
- else
- pkg_failed=yes
- fi
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- THEORA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theora"`
- else
- THEORA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theora"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$THEORA_PKG_ERRORS" >&5
- { echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6; }
- if (test "x$enable_theora" = "xauto"); then
- enable_theora="no"
- else
- { { echo "$as_me:$LINENO: error: Theora not found (explicitly enabled)!" >&5
- echo "$as_me: error: Theora not found (explicitly enabled)!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- elif test $pkg_failed = untried; then
- if (test "x$enable_theora" = "xauto"); then
- enable_theora="no"
- else
- { { echo "$as_me:$LINENO: error: Theora not found (explicitly enabled)!" >&5
- echo "$as_me: error: Theora not found (explicitly enabled)!" >&2;}
- { (exit 1); exit 1; }; }
- fi
- else
- THEORA_CFLAGS=$pkg_cv_THEORA_CFLAGS
- THEORA_LIBS=$pkg_cv_THEORA_LIBS
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
- enable_theora="yes"
- fi
- fi
- if (test "x$enable_theora" = "xyes"); then
- cat >>confdefs.h <<_ACEOF
- #define THEORA 1
- _ACEOF
- CFLAGS="$CFLAGS $THEORA_CFLAGS"
- CXXFLAGS="$CXXFLAGS $THEORA_CFLAGS"
- LIBS="$LIBS $THEORA_LIBS"
- fi
- fi
- if test "$enable_theora" = "yes"; then
- ENABLE_THEORA_TRUE=
- ENABLE_THEORA_FALSE='#'
- else
- ENABLE_THEORA_TRUE='#'
- ENABLE_THEORA_FALSE=
- fi
- { echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
- echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6; }
- if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljpeg $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char jpeg_start_decompress ();
- int
- main ()
- {
- return jpeg_start_decompress ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_jpeg_jpeg_start_decompress=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_jpeg_jpeg_start_decompress=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
- echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
- if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBJPEG 1
- _ACEOF
- LIBS="-ljpeg $LIBS"
- else
- { { echo "$as_me:$LINENO: error: jpeg library not found" >&5
- echo "$as_me: error: jpeg library not found" >&2;}
- { (exit 1); exit 1; }; }
- fi
- { echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
- echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6; }
- if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpng $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char png_create_info_struct ();
- int
- main ()
- {
- return png_create_info_struct ();
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (ac_try="$ac_link"
- case "(($ac_try" in
- *"* | *`* | *\*) ac_try_echo=$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval "echo "$as_me:$LINENO: $ac_try_echo"") >&5
- (eval "$ac_link") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext &&
- $as_test_x conftest$ac_exeext; then
- ac_cv_lib_png_png_create_info_struct=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_lib_png_png_create_info_struct=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
- echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6; }
- if test $ac_cv_lib_png_png_create_info_struct = yes; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPNG 1
- _ACEOF
- LIBS="-lpng $LIBS"
- else
- { { echo "$as_me:$LINENO: error: png library not found" >&5
- echo "$as_me: error: png library not found" >&2;}
- { (exit 1); exit 1; }; }