find tdeio plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16624 lines
698 KiB

  1. m4trace:/usr/share/aclocal/pkg.m4:44: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  2. m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  3. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  4. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  6. fi
  7. if test -n "$PKG_CONFIG"; then
  8. _pkg_min_version=m4_default([$1], [0.9.0])
  9. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  10. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11. AC_MSG_RESULT([yes])
  12. else
  13. AC_MSG_RESULT([no])
  14. PKG_CONFIG=""
  15. fi
  16. fi[]dnl
  17. ])
  18. m4trace:/usr/share/aclocal/pkg.m4:63: -1- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  19. if test -n "$PKG_CONFIG" && \
  20. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  21. m4_ifval([$2], [$2], [:])
  22. m4_ifvaln([$3], [else
  23. $3])dnl
  24. fi])
  25. m4trace:/usr/share/aclocal/pkg.m4:91: -1- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  26. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  27. _pkg_short_errors_supported=yes
  28. else
  29. _pkg_short_errors_supported=no
  30. fi[]dnl
  31. ])
  32. m4trace:/usr/share/aclocal/pkg.m4:156: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  33. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  34. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  35. pkg_failed=no
  36. AC_MSG_CHECKING([for $1])
  37. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  38. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  39. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  40. and $1[]_LIBS to avoid the need to call pkg-config.
  41. See the pkg-config man page for more details.])
  42. if test $pkg_failed = yes; then
  43. _PKG_SHORT_ERRORS_SUPPORTED
  44. if test $_pkg_short_errors_supported = yes; then
  45. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  46. else
  47. $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  48. fi
  49. # Put the nasty error message in config.log where it belongs
  50. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  51. ifelse([$4], , [AC_MSG_ERROR(dnl
  52. [Package requirements ($2) were not met:
  53. $$1_PKG_ERRORS
  54. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  55. installed software in a non-standard prefix.
  56. _PKG_TEXT
  57. ])],
  58. [$4])
  59. elif test $pkg_failed = untried; then
  60. ifelse([$4], , [AC_MSG_FAILURE(dnl
  61. [The pkg-config script could not be found or is too old. Make sure it
  62. is in your PATH or set the PKG_CONFIG environment variable to the full
  63. path to pkg-config.
  64. _PKG_TEXT
  65. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  66. [$4])
  67. else
  68. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  69. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  70. AC_MSG_RESULT([yes])
  71. ifelse([$3], , :, [$3])
  72. fi[]dnl
  73. ])
  74. m4trace:/usr/share/aclocal-1.9/amversion.m4:13: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  75. m4trace:/usr/share/aclocal-1.9/amversion.m4:20: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])])
  76. m4trace:/usr/share/aclocal-1.9/auxdir.m4:52: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly.
  77. AC_PREREQ([2.50])dnl
  78. # expand $ac_aux_dir to an absolute path
  79. am_aux_dir=`cd $ac_aux_dir && pwd`
  80. ])
  81. m4trace:/usr/share/aclocal-1.9/cond.m4:32: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl
  82. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  83. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  84. AC_SUBST([$1_TRUE])
  85. AC_SUBST([$1_FALSE])
  86. if $2; then
  87. $1_TRUE=
  88. $1_FALSE='#'
  89. else
  90. $1_TRUE='#'
  91. $1_FALSE=
  92. fi
  93. AC_CONFIG_COMMANDS_PRE(
  94. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  95. AC_MSG_ERROR([[conditional "$1" was never defined.
  96. Usually this means the macro was only invoked conditionally.]])
  97. fi])])
  98. m4trace:/usr/share/aclocal-1.9/depend.m4:131: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl
  99. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  100. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  101. AC_REQUIRE([AM_DEP_TRACK])dnl
  102. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  103. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  104. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  105. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  106. [depcc="$$1" am_compiler_list=])
  107. AC_CACHE_CHECK([dependency style of $depcc],
  108. [am_cv_$1_dependencies_compiler_type],
  109. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  110. # We make a subdir and do the tests there. Otherwise we can end up
  111. # making bogus files that we don't know about and never remove. For
  112. # instance it was reported that on HP-UX the gcc test will end up
  113. # making a dummy file named `D' -- because `-MD' means `put the output
  114. # in D'.
  115. mkdir conftest.dir
  116. # Copy depcomp to subdir because otherwise we won't find it if we're
  117. # using a relative directory.
  118. cp "$am_depcomp" conftest.dir
  119. cd conftest.dir
  120. # We will build objects and dependencies in a subdirectory because
  121. # it helps to detect inapplicable dependency modes. For instance
  122. # both Tru64's cc and ICC support -MD to output dependencies as a
  123. # side effect of compilation, but ICC will put the dependencies in
  124. # the current directory while Tru64 will put them in the object
  125. # directory.
  126. mkdir sub
  127. am_cv_$1_dependencies_compiler_type=none
  128. if test "$am_compiler_list" = ""; then
  129. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  130. fi
  131. for depmode in $am_compiler_list; do
  132. # Setup a source with many dependencies, because some compilers
  133. # like to wrap large dependency lists on column 80 (with \), and
  134. # we should not choose a depcomp mode which is confused by this.
  135. #
  136. # We need to recreate these files for each test, as the compiler may
  137. # overwrite some of them when testing with obscure command lines.
  138. # This happens at least with the AIX C compiler.
  139. : > sub/conftest.c
  140. for i in 1 2 3 4 5 6; do
  141. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  142. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  143. # Solaris 8's {/usr,}/bin/sh.
  144. touch sub/conftst$i.h
  145. done
  146. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  147. case $depmode in
  148. nosideeffect)
  149. # after this tag, mechanisms are not by side-effect, so they'll
  150. # only be used when explicitly requested
  151. if test "x$enable_dependency_tracking" = xyes; then
  152. continue
  153. else
  154. break
  155. fi
  156. ;;
  157. none) break ;;
  158. esac
  159. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  160. # mode. It turns out that the SunPro C++ compiler does not properly
  161. # handle `-M -o', and we need to detect this.
  162. if depmode=$depmode \
  163. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  164. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  165. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  166. >/dev/null 2>conftest.err &&
  167. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  168. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  169. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  170. # icc doesn't choke on unknown options, it will just issue warnings
  171. # or remarks (even with -Werror). So we grep stderr for any message
  172. # that says an option was ignored or not supported.
  173. # When given -MP, icc 7.0 and 7.1 complain thusly:
  174. # icc: Command line warning: ignoring option '-M'; no argument required
  175. # The diagnosis changed in icc 8.0:
  176. # icc: Command line remark: option '-MP' not supported
  177. if (grep 'ignoring option' conftest.err ||
  178. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  179. am_cv_$1_dependencies_compiler_type=$depmode
  180. break
  181. fi
  182. fi
  183. done
  184. cd ..
  185. rm -rf conftest.dir
  186. else
  187. am_cv_$1_dependencies_compiler_type=none
  188. fi
  189. ])
  190. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  191. AM_CONDITIONAL([am__fastdep$1], [
  192. test "x$enable_dependency_tracking" != xno \
  193. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  194. ])
  195. m4trace:/usr/share/aclocal-1.9/depend.m4:141: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  196. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  197. ])
  198. m4trace:/usr/share/aclocal-1.9/depend.m4:156: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking,
  199. [ --disable-dependency-tracking speeds up one-time build
  200. --enable-dependency-tracking do not reject slow dependency extractors])
  201. if test "x$enable_dependency_tracking" != xno; then
  202. am_depcomp="$ac_aux_dir/depcomp"
  203. AMDEPBACKSLASH='\'
  204. fi
  205. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  206. AC_SUBST([AMDEPBACKSLASH])
  207. ])
  208. m4trace:/usr/share/aclocal-1.9/depout.m4:53: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do
  209. # Strip MF so we end up with the name of the file.
  210. mf=`echo "$mf" | sed -e 's/:.*$//'`
  211. # Check whether this is an Automake generated Makefile or not.
  212. # We used to match only the files named `Makefile.in', but
  213. # some people rename them; so instead we look at the file content.
  214. # Grep'ing the first line is not enough: some people post-process
  215. # each Makefile.in and add a new line on top of each file to say so.
  216. # So let's grep whole file.
  217. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  218. dirpart=`AS_DIRNAME("$mf")`
  219. else
  220. continue
  221. fi
  222. # Extract the definition of DEPDIR, am__include, and am__quote
  223. # from the Makefile without running `make'.
  224. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  225. test -z "$DEPDIR" && continue
  226. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  227. test -z "am__include" && continue
  228. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  229. # When using ansi2knr, U may be empty or an underscore; expand it
  230. U=`sed -n 's/^U = //p' < "$mf"`
  231. # Find all dependency output files, they are included files with
  232. # $(DEPDIR) in their names. We invoke sed twice because it is the
  233. # simplest approach to changing $(DEPDIR) to its actual value in the
  234. # expansion.
  235. for file in `sed -n "
  236. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  237. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  238. # Make sure the directory exists.
  239. test -f "$dirpart/$file" && continue
  240. fdir=`AS_DIRNAME(["$file"])`
  241. AS_MKDIR_P([$dirpart/$fdir])
  242. # echo "creating $dirpart/$file"
  243. echo '# dummy' > "$dirpart/$file"
  244. done
  245. done
  246. ])
  247. m4trace:/usr/share/aclocal-1.9/depout.m4:67: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles],
  248. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  249. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  250. ])
  251. m4trace:/usr/share/aclocal-1.9/header.m4:12: -1- AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  252. m4trace:/usr/share/aclocal-1.9/header.m4:12: -1- AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete.
  253. You should run autoupdate.])dnl
  254. AC_CONFIG_HEADERS($@)])
  255. m4trace:/usr/share/aclocal-1.9/init.m4:92: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl
  256. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  257. dnl the ones we care about.
  258. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  259. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  260. AC_REQUIRE([AC_PROG_INSTALL])dnl
  261. # test to see if srcdir already configured
  262. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  263. test -f $srcdir/config.status; then
  264. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  265. fi
  266. # test whether we have cygpath
  267. if test -z "$CYGPATH_W"; then
  268. if (cygpath --version) >/dev/null 2>/dev/null; then
  269. CYGPATH_W='cygpath -w'
  270. else
  271. CYGPATH_W=echo
  272. fi
  273. fi
  274. AC_SUBST([CYGPATH_W])
  275. # Define the identity of the package.
  276. dnl Distinguish between old-style and new-style calls.
  277. m4_ifval([$2],
  278. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  279. AC_SUBST([PACKAGE], [$1])dnl
  280. AC_SUBST([VERSION], [$2])],
  281. [_AM_SET_OPTIONS([$1])dnl
  282. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  283. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  284. _AM_IF_OPTION([no-define],,
  285. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  286. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  287. # Some tools Automake needs.
  288. AC_REQUIRE([AM_SANITY_CHECK])dnl
  289. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  290. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  291. AM_MISSING_PROG(AUTOCONF, autoconf)
  292. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  293. AM_MISSING_PROG(AUTOHEADER, autoheader)
  294. AM_MISSING_PROG(MAKEINFO, makeinfo)
  295. AM_PROG_INSTALL_SH
  296. AM_PROG_INSTALL_STRIP
  297. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  298. # We need awk for the "check" target. The system "awk" is bad on
  299. # some platforms.
  300. AC_REQUIRE([AC_PROG_AWK])dnl
  301. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  302. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  303. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  304. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  305. [_AM_PROG_TAR([v7])])])
  306. _AM_IF_OPTION([no-dependencies],,
  307. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  308. [_AM_DEPENDENCIES(CC)],
  309. [define([AC_PROG_CC],
  310. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  311. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  312. [_AM_DEPENDENCIES(CXX)],
  313. [define([AC_PROG_CXX],
  314. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  315. ])
  316. ])
  317. m4trace:/usr/share/aclocal-1.9/init.m4:113: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers.
  318. _am_stamp_count=1
  319. for _am_header in $config_headers :; do
  320. case $_am_header in
  321. $1 | $1:* )
  322. break ;;
  323. * )
  324. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  325. esac
  326. done
  327. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  328. m4trace:/usr/share/aclocal-1.9/install-sh.m4:14: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  329. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  330. AC_SUBST(install_sh)])
  331. m4trace:/usr/share/aclocal-1.9/lead-dot.m4:21: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null
  332. mkdir .tst 2>/dev/null
  333. if test -d .tst; then
  334. am__leading_dot=.
  335. else
  336. am__leading_dot=_
  337. fi
  338. rmdir .tst 2>/dev/null
  339. AC_SUBST([am__leading_dot])])
  340. m4trace:/usr/share/aclocal-1.9/lex.m4:22: -1- AC_DEFUN([AM_PROG_LEX], [AC_PREREQ(2.50)dnl
  341. AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
  342. AC_REQUIRE([AC_PROG_LEX])dnl
  343. if test "$LEX" = :; then
  344. LEX=${am_missing_run}flex
  345. fi])
  346. m4trace:/usr/share/aclocal-1.9/make.m4:51: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make}
  347. cat > confinc << 'END'
  348. am__doit:
  349. @echo done
  350. .PHONY: am__doit
  351. END
  352. # If we don't find an include directive, just comment out the code.
  353. AC_MSG_CHECKING([for style of include used by $am_make])
  354. am__include="#"
  355. am__quote=
  356. _am_result=none
  357. # First try GNU make style include.
  358. echo "include confinc" > confmf
  359. # We grep out `Entering directory' and `Leaving directory'
  360. # messages which can occur if `w' ends up in MAKEFLAGS.
  361. # In particular we don't look at `^make:' because GNU make might
  362. # be invoked under some other name (usually "gmake"), in which
  363. # case it prints its new name instead of `make'.
  364. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  365. am__include=include
  366. am__quote=
  367. _am_result=GNU
  368. fi
  369. # Now try BSD make style include.
  370. if test "$am__include" = "#"; then
  371. echo '.include "confinc"' > confmf
  372. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  373. am__include=.include
  374. am__quote="\""
  375. _am_result=BSD
  376. fi
  377. fi
  378. AC_SUBST([am__include])
  379. AC_SUBST([am__quote])
  380. AC_MSG_RESULT([$_am_result])
  381. rm -f confinc confmf
  382. ])
  383. m4trace:/usr/share/aclocal-1.9/missing.m4:17: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN])
  384. $1=${$1-"${am_missing_run}$2"}
  385. AC_SUBST($1)])
  386. m4trace:/usr/share/aclocal-1.9/missing.m4:34: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  387. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  388. # Use eval to expand $SHELL
  389. if eval "$MISSING --run true"; then
  390. am_missing_run="$MISSING --run "
  391. else
  392. am_missing_run=
  393. AC_MSG_WARN([`missing' script is too old or missing])
  394. fi
  395. ])
  396. m4trace:/usr/share/aclocal-1.9/mkdirp.m4:63: -1- AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  397. # We used to keeping the `.' as first argument, in order to
  398. # allow $(mkdir_p) to be used without argument. As in
  399. # $(mkdir_p) $(somedir)
  400. # where $(somedir) is conditionally defined. However this is wrong
  401. # for two reasons:
  402. # 1. if the package is installed by a user who cannot write `.'
  403. # make install will fail,
  404. # 2. the above comment should most certainly read
  405. # $(mkdir_p) $(DESTDIR)$(somedir)
  406. # so it does not work when $(somedir) is undefined and
  407. # $(DESTDIR) is not.
  408. # To support the latter case, we have to write
  409. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  410. # so the `.' trick is pointless.
  411. mkdir_p='mkdir -p --'
  412. else
  413. # On NextStep and OpenStep, the `mkdir' command does not
  414. # recognize any option. It will interpret all options as
  415. # directories to create, and then abort because `.' already
  416. # exists.
  417. for d in ./-p ./--version;
  418. do
  419. test -d $d && rmdir $d
  420. done
  421. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  422. if test -f "$ac_aux_dir/mkinstalldirs"; then
  423. mkdir_p='$(mkinstalldirs)'
  424. else
  425. mkdir_p='$(install_sh) -d'
  426. fi
  427. fi
  428. AC_SUBST([mkdir_p])])
  429. m4trace:/usr/share/aclocal-1.9/options.m4:14: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  430. m4trace:/usr/share/aclocal-1.9/options.m4:20: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  431. m4trace:/usr/share/aclocal-1.9/options.m4:26: -1- AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  432. m4trace:/usr/share/aclocal-1.9/options.m4:32: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  433. m4trace:/usr/share/aclocal-1.9/runlog.m4:17: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  434. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  435. ac_status=$?
  436. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  437. (exit $ac_status); }])
  438. m4trace:/usr/share/aclocal-1.9/sanity.m4:51: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane])
  439. # Just in case
  440. sleep 1
  441. echo timestamp > conftest.file
  442. # Do `set' in a subshell so we don't clobber the current shell's
  443. # arguments. Must try -L first in case configure is actually a
  444. # symlink; some systems play weird games with the mod time of symlinks
  445. # (eg FreeBSD returns the mod time of the symlink's containing
  446. # directory).
  447. if (
  448. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  449. if test "$[*]" = "X"; then
  450. # -L didn't work.
  451. set X `ls -t $srcdir/configure conftest.file`
  452. fi
  453. rm -f conftest.file
  454. if test "$[*]" != "X $srcdir/configure conftest.file" \
  455. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  456. # If neither matched, then we have a broken ls. This can happen
  457. # if, for instance, CONFIG_SHELL is bash and it inherits a
  458. # broken ls alias from the environment. This has actually
  459. # happened. Such a system could not be considered "sane".
  460. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  461. alias in your environment])
  462. fi
  463. test "$[2]" = conftest.file
  464. )
  465. then
  466. # Ok.
  467. :
  468. else
  469. AC_MSG_ERROR([newly created file is older than distributed files!
  470. Check your system clock])
  471. fi
  472. AC_MSG_RESULT(yes)])
  473. m4trace:/usr/share/aclocal-1.9/strip.m4:28: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  474. # Installed binaries are usually stripped using `strip' when the user
  475. # run `make install-strip'. However `strip' might not be the right
  476. # tool to use in cross-compilation environments, therefore Automake
  477. # will honor the `STRIP' environment variable to overrule this program.
  478. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  479. if test "$cross_compiling" != no; then
  480. AC_CHECK_TOOL([STRIP], [strip], :)
  481. fi
  482. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  483. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  484. m4trace:/usr/share/aclocal-1.9/tar.m4:95: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility.
  485. AM_MISSING_PROG([AMTAR], [tar])
  486. m4_if([$1], [v7],
  487. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  488. [m4_case([$1], [ustar],, [pax],,
  489. [m4_fatal([Unknown tar format])])
  490. AC_MSG_CHECKING([how to create a $1 tar archive])
  491. # Loop over all known methods to create a tar archive until one works.
  492. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  493. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  494. # Do not fold the above two line into one, because Tru64 sh and
  495. # Solaris sh will not grok spaces in the rhs of `-'.
  496. for _am_tool in $_am_tools
  497. do
  498. case $_am_tool in
  499. gnutar)
  500. for _am_tar in tar gnutar gtar;
  501. do
  502. AM_RUN_LOG([$_am_tar --version]) && break
  503. done
  504. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  505. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  506. am__untar="$_am_tar -xf -"
  507. ;;
  508. plaintar)
  509. # Must skip GNU tar: if it does not support --format= it doesn't create
  510. # ustar tarball either.
  511. (tar --version) >/dev/null 2>&1 && continue
  512. am__tar='tar chf - "$$tardir"'
  513. am__tar_='tar chf - "$tardir"'
  514. am__untar='tar xf -'
  515. ;;
  516. pax)
  517. am__tar='pax -L -x $1 -w "$$tardir"'
  518. am__tar_='pax -L -x $1 -w "$tardir"'
  519. am__untar='pax -r'
  520. ;;
  521. cpio)
  522. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  523. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  524. am__untar='cpio -i -H $1 -d'
  525. ;;
  526. none)
  527. am__tar=false
  528. am__tar_=false
  529. am__untar=false
  530. ;;
  531. esac
  532. # If the value was cached, stop now. We just wanted to have am__tar
  533. # and am__untar set.
  534. test -n "${am_cv_prog_tar_$1}" && break
  535. # tar/untar a dummy directory, and stop if the command works
  536. rm -rf conftest.dir
  537. mkdir conftest.dir
  538. echo GrepMe > conftest.dir/file
  539. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  540. rm -rf conftest.dir
  541. if test -s conftest.tar; then
  542. AM_RUN_LOG([$am__untar <conftest.tar])
  543. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  544. fi
  545. done
  546. rm -rf conftest.dir
  547. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  548. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  549. AC_SUBST([am__tar])
  550. AC_SUBST([am__untar])
  551. ])
  552. m4trace:acinclude.m4:152: -1- AC_DEFUN([KDE_PATH_X_DIRECT], [
  553. AC_REQUIRE([KDE_CHECK_LIB64])
  554. if test "$ac_x_includes" = NO; then
  555. # Guess where to find include files, by looking for this one X11 .h file.
  556. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  557. # First, try using that file with no special directory specified.
  558. AC_TRY_CPP([#include <$x_direct_test_include>],
  559. [# We can compile using X headers with no special include directory.
  560. ac_x_includes=],
  561. [# Look for the header file in a standard set of common directories.
  562. # Check X11 before X11Rn because it is often a symlink to the current release.
  563. for ac_dir in \
  564. /usr/X11/include \
  565. /usr/X11R6/include \
  566. /usr/X11R5/include \
  567. /usr/X11R4/include \
  568. \
  569. /usr/include/X11 \
  570. /usr/include/X11R6 \
  571. /usr/include/X11R5 \
  572. /usr/include/X11R4 \
  573. \
  574. /usr/local/X11/include \
  575. /usr/local/X11R6/include \
  576. /usr/local/X11R5/include \
  577. /usr/local/X11R4/include \
  578. \
  579. /usr/local/include/X11 \
  580. /usr/local/include/X11R6 \
  581. /usr/local/include/X11R5 \
  582. /usr/local/include/X11R4 \
  583. \
  584. /usr/X386/include \
  585. /usr/x386/include \
  586. /usr/XFree86/include/X11 \
  587. \
  588. /usr/include \
  589. /usr/local/include \
  590. /usr/unsupported/include \
  591. /usr/athena/include \
  592. /usr/local/x11r5/include \
  593. /usr/lpp/Xamples/include \
  594. \
  595. /usr/openwin/include \
  596. /usr/openwin/share/include \
  597. ; \
  598. do
  599. if test -r "$ac_dir/$x_direct_test_include"; then
  600. ac_x_includes=$ac_dir
  601. break
  602. fi
  603. done])
  604. fi # $ac_x_includes = NO
  605. if test "$ac_x_libraries" = NO; then
  606. # Check for the libraries.
  607. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  608. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  609. # See if we find them without any special options.
  610. # Don't add to $LIBS permanently.
  611. ac_save_LIBS="$LIBS"
  612. LIBS="-l$x_direct_test_library $LIBS"
  613. AC_TRY_LINK([#include <X11/Intrinsic.h>], [${x_direct_test_function}(1)],
  614. [LIBS="$ac_save_LIBS"
  615. # We can link X programs with no special library path.
  616. ac_x_libraries=],
  617. [LIBS="$ac_save_LIBS"
  618. # First see if replacing the include by lib works.
  619. # Check X11 before X11Rn because it is often a symlink to the current release.
  620. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
  621. /usr/X11/lib${kdelibsuff} \
  622. /usr/X11R6/lib${kdelibsuff} \
  623. /usr/X11R5/lib${kdelibsuff} \
  624. /usr/X11R4/lib${kdelibsuff} \
  625. \
  626. /usr/lib${kdelibsuff}/X11 \
  627. /usr/lib${kdelibsuff}/X11R6 \
  628. /usr/lib${kdelibsuff}/X11R5 \
  629. /usr/lib${kdelibsuff}/X11R4 \
  630. \
  631. /usr/local/X11/lib${kdelibsuff} \
  632. /usr/local/X11R6/lib${kdelibsuff} \
  633. /usr/local/X11R5/lib${kdelibsuff} \
  634. /usr/local/X11R4/lib${kdelibsuff} \
  635. \
  636. /usr/local/lib${kdelibsuff}/X11 \
  637. /usr/local/lib${kdelibsuff}/X11R6 \
  638. /usr/local/lib${kdelibsuff}/X11R5 \
  639. /usr/local/lib${kdelibsuff}/X11R4 \
  640. \
  641. /usr/X386/lib${kdelibsuff} \
  642. /usr/x386/lib${kdelibsuff} \
  643. /usr/XFree86/lib${kdelibsuff}/X11 \
  644. \
  645. /usr/lib${kdelibsuff} \
  646. /usr/local/lib${kdelibsuff} \
  647. /usr/unsupported/lib${kdelibsuff} \
  648. /usr/athena/lib${kdelibsuff} \
  649. /usr/local/x11r5/lib${kdelibsuff} \
  650. /usr/lpp/Xamples/lib${kdelibsuff} \
  651. /lib/usr/lib${kdelibsuff}/X11 \
  652. \
  653. /usr/openwin/lib${kdelibsuff} \
  654. /usr/openwin/share/lib${kdelibsuff} \
  655. ; \
  656. do
  657. dnl Don't even attempt the hair of trying to link an X program!
  658. for ac_extension in a so sl; do
  659. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  660. ac_x_libraries=$ac_dir
  661. break 2
  662. fi
  663. done
  664. done])
  665. fi # $ac_x_libraries = NO
  666. ])
  667. m4trace:acinclude.m4:174: -1- AC_DEFUN([AC_FIND_FILE], [
  668. $3=NO
  669. for i in $2;
  670. do
  671. for j in $1;
  672. do
  673. echo "configure: __oline__: $i/$j" >&AC_FD_CC
  674. if test -r "$i/$j"; then
  675. echo "taking that" >&AC_FD_CC
  676. $3=$i
  677. break 2
  678. fi
  679. done
  680. done
  681. ])
  682. m4trace:acinclude.m4:240: -1- AC_DEFUN([KDE_FIND_PATH], [
  683. AC_MSG_CHECKING([for $1])
  684. if test -n "$$2"; then
  685. kde_cv_path="$$2";
  686. else
  687. kde_cache=`echo $1 | sed 'y%./+-%__p_%'`
  688. AC_CACHE_VAL(kde_cv_path_$kde_cache,
  689. [
  690. kde_cv_path="NONE"
  691. kde_save_IFS=$IFS
  692. IFS=':'
  693. dirs=""
  694. for dir in $PATH; do
  695. dirs="$dirs $dir"
  696. done
  697. if test -z "$6"; then dnl Append dirs in PATH (default)
  698. dirs="$3 $dirs"
  699. else dnl Prepend dirs in PATH (if 6th arg is set)
  700. dirs="$dirs $3"
  701. fi
  702. IFS=$kde_save_IFS
  703. for dir in $dirs; do
  704. if test -x "$dir/$1"; then
  705. if test -n "$5"
  706. then
  707. evalstr="$dir/$1 $5 2>&1 "
  708. if eval $evalstr; then
  709. kde_cv_path="$dir/$1"
  710. break
  711. fi
  712. else
  713. kde_cv_path="$dir/$1"
  714. break
  715. fi
  716. fi
  717. done
  718. eval "kde_cv_path_$kde_cache=$kde_cv_path"
  719. ])
  720. eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  721. fi
  722. if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  723. AC_MSG_RESULT(not found)
  724. $4
  725. else
  726. AC_MSG_RESULT($kde_cv_path)
  727. $2=$kde_cv_path
  728. fi
  729. ])
  730. m4trace:acinclude.m4:252: -1- AC_DEFUN([KDE_MOC_ERROR_MESSAGE], [
  731. AC_MSG_ERROR([No Qt meta object compiler (moc) found!
  732. Please check whether you installed Qt correctly.
  733. You need to have a running moc binary.
  734. configure tried to run $ac_cv_path_moc and the test didn't
  735. succeed. If configure shouldn't have tried this one, set
  736. the environment variable MOC to the right one before running
  737. configure.
  738. ])
  739. ])
  740. m4trace:acinclude.m4:264: -1- AC_DEFUN([KDE_UIC_ERROR_MESSAGE], [
  741. AC_MSG_WARN([No Qt ui compiler (uic) found!
  742. Please check whether you installed Qt correctly.
  743. You need to have a running uic binary.
  744. configure tried to run $ac_cv_path_uic and the test didn't
  745. succeed. If configure shouldn't have tried this one, set
  746. the environment variable UIC to the right one before running
  747. configure.
  748. ])
  749. ])
  750. m4trace:acinclude.m4:294: -1- AC_DEFUN([KDE_CHECK_UIC_FLAG], [
  751. AC_MSG_CHECKING([whether uic supports -$1 ])
  752. kde_cache=`echo $1 | sed 'y% .=/+-%____p_%'`
  753. AC_CACHE_VAL(kde_cv_prog_uic_$kde_cache,
  754. [
  755. cat >conftest.ui <<EOT
  756. <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
  757. EOT
  758. ac_uic_testrun="$UIC_PATH -$1 $2 conftest.ui >/dev/null"
  759. if AC_TRY_EVAL(ac_uic_testrun); then
  760. eval "kde_cv_prog_uic_$kde_cache=yes"
  761. else
  762. eval "kde_cv_prog_uic_$kde_cache=no"
  763. fi
  764. rm -f conftest*
  765. ])
  766. if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
  767. AC_MSG_RESULT([yes])
  768. :
  769. $3
  770. else
  771. AC_MSG_RESULT([no])
  772. :
  773. $4
  774. fi
  775. ])
  776. m4trace:acinclude.m4:348: -1- AC_DEFUN([AC_PATH_QT_MOC_UIC], [
  777. AC_REQUIRE([KDE_CHECK_PERL])
  778. qt_bindirs=""
  779. for dir in $kde_qt_dirs; do
  780. qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
  781. done
  782. qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
  783. if test ! "$ac_qt_bindir" = "NO"; then
  784. qt_bindirs="$ac_qt_bindir $qt_bindirs"
  785. fi
  786. KDE_FIND_PATH(moc, MOC, [$qt_bindirs], [KDE_MOC_ERROR_MESSAGE])
  787. if test -z "$UIC_NOT_NEEDED"; then
  788. KDE_FIND_PATH(uic, UIC_PATH, [$qt_bindirs], [UIC_PATH=""])
  789. if test -z "$UIC_PATH" ; then
  790. KDE_UIC_ERROR_MESSAGE
  791. exit 1
  792. else
  793. UIC=$UIC_PATH
  794. if test $kde_qtver = 3; then
  795. KDE_CHECK_UIC_FLAG(L,[/nonexistent],ac_uic_supports_libpath=yes,ac_uic_supports_libpath=no)
  796. KDE_CHECK_UIC_FLAG(nounload,,ac_uic_supports_nounload=yes,ac_uic_supports_nounload=no)
  797. if test x$ac_uic_supports_libpath = xyes; then
  798. UIC="$UIC -L \$(kde_widgetdir)"
  799. fi
  800. if test x$ac_uic_supports_nounload = xyes; then
  801. UIC="$UIC -nounload"
  802. fi
  803. fi
  804. fi
  805. else
  806. UIC="echo uic not available: "
  807. fi
  808. AC_SUBST(MOC)
  809. AC_SUBST(UIC)
  810. UIC_TR="i18n"
  811. if test $kde_qtver = 3; then
  812. UIC_TR="tr2i18n"
  813. fi
  814. AC_SUBST(UIC_TR)
  815. ])
  816. m4trace:acinclude.m4:396: -1- AC_DEFUN([KDE_1_CHECK_PATHS], [
  817. KDE_1_CHECK_PATH_HEADERS
  818. KDE_TEST_RPATH=
  819. if test -n "$USE_RPATH"; then
  820. if test -n "$kde_libraries"; then
  821. KDE_TEST_RPATH="-R $kde_libraries"
  822. fi
  823. if test -n "$qt_libraries"; then
  824. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
  825. fi
  826. if test -n "$x_libraries"; then
  827. KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
  828. fi
  829. KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
  830. fi
  831. AC_MSG_CHECKING([for KDE libraries installed])
  832. 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'
  833. if AC_TRY_EVAL(ac_link) && test -s conftest; then
  834. AC_MSG_RESULT(yes)
  835. else
  836. AC_MSG_ERROR([your system fails at linking a small KDE application!
  837. Check, if your compiler is installed correctly and if you have used the
  838. same compiler to compile Qt and kdelibs as you did use now.
  839. For more details about this problem, look at the end of config.log.])
  840. fi
  841. if eval `KDEDIR= ./conftest 2>&5`; then
  842. kde_result=done
  843. else
  844. kde_result=problems
  845. fi
  846. KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
  847. kde_have_all_paths=yes
  848. KDE_SET_PATHS($kde_result)
  849. ])
  850. m4trace:acinclude.m4:424: -1- AC_DEFUN([KDE_SET_PATHS], [
  851. kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  852. kde_htmldir=\"$kde_htmldir\" \
  853. kde_appsdir=\"$kde_appsdir\" \
  854. kde_icondir=\"$kde_icondir\" \
  855. kde_sounddir=\"$kde_sounddir\" \
  856. kde_datadir=\"$kde_datadir\" \
  857. kde_locale=\"$kde_locale\" \
  858. kde_cgidir=\"$kde_cgidir\" \
  859. kde_confdir=\"$kde_confdir\" \
  860. kde_kcfgdir=\"$kde_kcfgdir\" \
  861. kde_mimedir=\"$kde_mimedir\" \
  862. kde_toolbardir=\"$kde_toolbardir\" \
  863. kde_wallpaperdir=\"$kde_wallpaperdir\" \
  864. kde_templatesdir=\"$kde_templatesdir\" \
  865. kde_bindir=\"$kde_bindir\" \
  866. kde_servicesdir=\"$kde_servicesdir\" \
  867. kde_servicetypesdir=\"$kde_servicetypesdir\" \
  868. kde_moduledir=\"$kde_moduledir\" \
  869. kde_styledir=\"$kde_styledir\" \
  870. kde_widgetdir=\"$kde_widgetdir\" \
  871. xdg_appsdir=\"$xdg_appsdir\" \
  872. xdg_menudir=\"$xdg_menudir\" \
  873. xdg_directorydir=\"$xdg_directorydir\" \
  874. kde_result=$1"
  875. ])
  876. m4trace:acinclude.m4:513: -1- AC_DEFUN([KDE_SET_DEFAULT_PATHS], [
  877. if test "$1" = "default"; then
  878. if test -z "$kde_htmldir"; then
  879. kde_htmldir='\${datadir}/doc/HTML'
  880. fi
  881. if test -z "$kde_appsdir"; then
  882. kde_appsdir='\${datadir}/applnk'
  883. fi
  884. if test -z "$kde_icondir"; then
  885. kde_icondir='\${datadir}/icons'
  886. fi
  887. if test -z "$kde_sounddir"; then
  888. kde_sounddir='\${datadir}/sounds'
  889. fi
  890. if test -z "$kde_datadir"; then
  891. kde_datadir='\${datadir}/apps'
  892. fi
  893. if test -z "$kde_locale"; then
  894. kde_locale='\${datadir}/locale'
  895. fi
  896. if test -z "$kde_cgidir"; then
  897. kde_cgidir='\${exec_prefix}/cgi-bin'
  898. fi
  899. if test -z "$kde_confdir"; then
  900. kde_confdir='\${datadir}/config'
  901. fi
  902. if test -z "$kde_kcfgdir"; then
  903. kde_kcfgdir='\${datadir}/config.kcfg'
  904. fi
  905. if test -z "$kde_mimedir"; then
  906. kde_mimedir='\${datadir}/mimelnk'
  907. fi
  908. if test -z "$kde_toolbardir"; then
  909. kde_toolbardir='\${datadir}/toolbar'
  910. fi
  911. if test -z "$kde_wallpaperdir"; then
  912. kde_wallpaperdir='\${datadir}/wallpapers'
  913. fi
  914. if test -z "$kde_templatesdir"; then
  915. kde_templatesdir='\${datadir}/templates'
  916. fi
  917. if test -z "$kde_bindir"; then
  918. kde_bindir='\${exec_prefix}/bin'
  919. fi
  920. if test -z "$kde_servicesdir"; then
  921. kde_servicesdir='\${datadir}/services'
  922. fi
  923. if test -z "$kde_servicetypesdir"; then
  924. kde_servicetypesdir='\${datadir}/servicetypes'
  925. fi
  926. if test -z "$kde_moduledir"; then
  927. if test "$kde_qtver" = "2"; then
  928. kde_moduledir='\${libdir}/kde2'
  929. else
  930. kde_moduledir='\${libdir}/kde3'
  931. fi
  932. fi
  933. if test -z "$kde_styledir"; then
  934. kde_styledir='\${libdir}/kde3/plugins/styles'
  935. fi
  936. if test -z "$kde_widgetdir"; then
  937. kde_widgetdir='\${libdir}/kde3/plugins/designer'
  938. fi
  939. if test -z "$xdg_appsdir"; then
  940. xdg_appsdir='\${datadir}/applications/kde'
  941. fi
  942. if test -z "$xdg_menudir"; then
  943. xdg_menudir='\${sysconfdir}/xdg/menus'
  944. fi
  945. if test -z "$xdg_directorydir"; then
  946. xdg_directorydir='\${datadir}/desktop-directories'
  947. fi
  948. KDE_SET_PATHS(defaults)
  949. else
  950. if test $kde_qtver = 1; then
  951. AC_MSG_RESULT([compiling])
  952. KDE_1_CHECK_PATHS
  953. else
  954. AC_MSG_ERROR([path checking not yet supported for KDE 2])
  955. fi
  956. fi
  957. ])
  958. m4trace:acinclude.m4:530: -1- AC_DEFUN([KDE_CHECK_PATHS_FOR_COMPLETENESS], [ if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
  959. test -z "$kde_icondir" || test -z "$kde_sounddir" ||
  960. test -z "$kde_datadir" || test -z "$kde_locale" ||
  961. test -z "$kde_cgidir" || test -z "$kde_confdir" ||
  962. test -z "$kde_kcfgdir" ||
  963. test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
  964. test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
  965. test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
  966. test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
  967. test -z "$kde_styledir" || test -z "kde_widgetdir" ||
  968. test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
  969. test "x$kde_have_all_paths" != "xyes"; then
  970. kde_have_all_paths=no
  971. fi
  972. ])
  973. m4trace:acinclude.m4:537: -1- AC_DEFUN([KDE_MISSING_PROG_ERROR], [
  974. AC_MSG_ERROR([The important program $1 was not found!
  975. Please check whether you installed KDE correctly.
  976. ])
  977. ])
  978. m4trace:acinclude.m4:545: -1- AC_DEFUN([KDE_MISSING_ARTS_ERROR], [
  979. AC_MSG_ERROR([The important program $1 was not found!
  980. Please check whether you installed aRts correctly or use
  981. --without-arts to compile without aRts support (this will remove functionality).
  982. ])
  983. ])
  984. m4trace:acinclude.m4:559: -1- AC_DEFUN([KDE_SET_DEFAULT_BINDIRS], [
  985. 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"
  986. test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
  987. if test -n "$KDEDIRS"; then
  988. kde_save_IFS=$IFS
  989. IFS=:
  990. for dir in $KDEDIRS; do
  991. kde_default_bindirs="$dir/bin $kde_default_bindirs "
  992. done
  993. IFS=$kde_save_IFS
  994. fi
  995. ])
  996. m4trace:acinclude.m4:641: -1- AC_DEFUN([KDE_SUBST_PROGRAMS], [
  997. AC_ARG_WITH(arts,
  998. AC_HELP_STRING([--without-arts],[build without aRts [default=no]]),
  999. [build_arts=$withval],
  1000. [build_arts=yes]
  1001. )
  1002. AM_CONDITIONAL(include_ARTS, test "$build_arts" '!=' "no")
  1003. if test "$build_arts" = "no"; then
  1004. AC_DEFINE(WITHOUT_ARTS, 1, [Defined if compiling without arts])
  1005. fi
  1006. KDE_SET_DEFAULT_BINDIRS
  1007. kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
  1008. KDE_FIND_PATH(dcopidl, DCOPIDL, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl)])
  1009. KDE_FIND_PATH(dcopidl2cpp, DCOPIDL2CPP, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl2cpp)])
  1010. if test "$build_arts" '!=' "no"; then
  1011. KDE_FIND_PATH(mcopidl, MCOPIDL, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(mcopidl)])
  1012. KDE_FIND_PATH(artsc-config, ARTSCCONFIG, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(artsc-config)])
  1013. fi
  1014. KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
  1015. kde32ornewer=1
  1016. kde33ornewer=1
  1017. if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
  1018. kde32ornewer=
  1019. kde33ornewer=
  1020. else
  1021. if test "$kde_qtver" = "3"; then
  1022. if test "$kde_qtsubver" -le 1; then
  1023. kde32ornewer=
  1024. fi
  1025. if test "$kde_qtsubver" -le 2; then
  1026. kde33ornewer=
  1027. fi
  1028. if test "$KDECONFIG" != "compiled"; then
  1029. if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
  1030. kde33ornewer=
  1031. fi
  1032. fi
  1033. fi
  1034. fi
  1035. if test -n "$kde32ornewer"; then
  1036. KDE_FIND_PATH(kconfig_compiler, KCONFIG_COMPILER, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kconfig_compiler)])
  1037. KDE_FIND_PATH(dcopidlng, DCOPIDLNG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidlng)])
  1038. fi
  1039. if test -n "$kde33ornewer"; then
  1040. KDE_FIND_PATH(makekdewidgets, MAKEKDEWIDGETS, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(makekdewidgets)])
  1041. AC_SUBST(MAKEKDEWIDGETS)
  1042. fi
  1043. KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
  1044. if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
  1045. kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
  1046. test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
  1047. AC_FIND_FILE(apps/ksgmltools2/customization/kde-chunk.xsl, $kde_sharedirs, KDE_XSL_STYLESHEET)
  1048. if test "$KDE_XSL_STYLESHEET" = "NO"; then
  1049. KDE_XSL_STYLESHEET=""
  1050. else
  1051. KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
  1052. fi
  1053. fi
  1054. DCOP_DEPENDENCIES='$(DCOPIDL)'
  1055. if test -n "$kde32ornewer"; then
  1056. KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
  1057. DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
  1058. AC_SUBST(KCONFIG_COMPILER)
  1059. AC_SUBST(KCFG_DEPENDENCIES)
  1060. AC_SUBST(DCOPIDLNG)
  1061. fi
  1062. AC_SUBST(DCOPIDL)
  1063. AC_SUBST(DCOPIDL2CPP)
  1064. AC_SUBST(DCOP_DEPENDENCIES)
  1065. AC_SUBST(MCOPIDL)
  1066. AC_SUBST(ARTSCCONFIG)
  1067. AC_SUBST(MEINPROC)
  1068. AC_SUBST(KDE_XSL_STYLESHEET)
  1069. AC_SUBST(XMLLINT)
  1070. ])
  1071. m4trace:acinclude.m4:689: -1- AC_DEFUN([AC_CREATE_KFSSTND], [
  1072. AC_REQUIRE([AC_CHECK_RPATH])
  1073. AC_MSG_CHECKING([for KDE paths])
  1074. kde_result=""
  1075. kde_cached_paths=yes
  1076. AC_CACHE_VAL(kde_cv_all_paths,
  1077. [
  1078. KDE_SET_DEFAULT_PATHS($1)
  1079. kde_cached_paths=no
  1080. ])
  1081. eval "$kde_cv_all_paths"
  1082. KDE_CHECK_PATHS_FOR_COMPLETENESS
  1083. if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
  1084. # wrong values were cached, may be, we can set better ones
  1085. kde_result=
  1086. kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
  1087. kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
  1088. kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
  1089. kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
  1090. kde_have_all_paths=
  1091. kde_styledir=
  1092. kde_widgetdir=
  1093. xdg_appsdir = xdg_menudir= xdg_directorydir=
  1094. KDE_SET_DEFAULT_PATHS($1)
  1095. eval "$kde_cv_all_paths"
  1096. KDE_CHECK_PATHS_FOR_COMPLETENESS
  1097. kde_result="$kde_result (cache overridden)"
  1098. fi
  1099. if test "$kde_have_all_paths" = "no"; then
  1100. AC_MSG_ERROR([configure could not run a little KDE program to test the environment.
  1101. Since it had compiled and linked before, it must be a strange problem on your system.
  1102. Look at config.log for details. If you are not able to fix this, look at
  1103. http://www.kde.org/faq/installation.html or any www.kde.org mirror.
  1104. (If you're using an egcs version on Linux, you may update binutils!)
  1105. ])
  1106. else
  1107. rm -f conftest*
  1108. AC_MSG_RESULT($kde_result)
  1109. fi
  1110. bindir=$kde_bindir
  1111. KDE_SUBST_PROGRAMS
  1112. ])
  1113. m4trace:acinclude.m4:726: -1- AC_DEFUN([AC_SUBST_KFSSTND], [
  1114. AC_SUBST(kde_htmldir)
  1115. AC_SUBST(kde_appsdir)
  1116. AC_SUBST(kde_icondir)
  1117. AC_SUBST(kde_sounddir)
  1118. AC_SUBST(kde_datadir)
  1119. AC_SUBST(kde_locale)
  1120. AC_SUBST(kde_confdir)
  1121. AC_SUBST(kde_kcfgdir)
  1122. AC_SUBST(kde_mimedir)
  1123. AC_SUBST(kde_wallpaperdir)
  1124. AC_SUBST(kde_bindir)
  1125. dnl X Desktop Group standards
  1126. AC_SUBST(xdg_appsdir)
  1127. AC_SUBST(xdg_menudir)
  1128. AC_SUBST(xdg_directorydir)
  1129. dnl for KDE 2
  1130. AC_SUBST(kde_templatesdir)
  1131. AC_SUBST(kde_servicesdir)
  1132. AC_SUBST(kde_servicetypesdir)
  1133. AC_SUBST(kde_moduledir)
  1134. AC_SUBST(kdeinitdir, '$(kde_moduledir)')
  1135. AC_SUBST(kde_styledir)
  1136. AC_SUBST(kde_widgetdir)
  1137. if test "$kde_qtver" = 1; then
  1138. kde_minidir="$kde_icondir/mini"
  1139. else
  1140. # for KDE 1 - this breaks KDE2 apps using minidir, but
  1141. # that's the plan ;-/
  1142. kde_minidir="/dev/null"
  1143. fi
  1144. dnl AC_SUBST(kde_minidir)
  1145. dnl AC_SUBST(kde_cgidir)
  1146. dnl AC_SUBST(kde_toolbardir)
  1147. ])
  1148. m4trace:acinclude.m4:863: -1- AC_DEFUN([KDE_MISC_TESTS], [
  1149. dnl Checks for libraries.
  1150. AC_CHECK_LIB(util, main, [LIBUTIL="-lutil"]) dnl for *BSD
  1151. AC_SUBST(LIBUTIL)
  1152. AC_CHECK_LIB(compat, main, [LIBCOMPAT="-lcompat"]) dnl for *BSD
  1153. AC_SUBST(LIBCOMPAT)
  1154. kde_have_crypt=
  1155. AC_CHECK_LIB(crypt, crypt, [LIBCRYPT="-lcrypt"; kde_have_crypt=yes],
  1156. AC_CHECK_LIB(c, crypt, [kde_have_crypt=yes], [
  1157. AC_MSG_WARN([you have no crypt in either libcrypt or libc.
  1158. You should install libcrypt from another source or configure with PAM
  1159. support])
  1160. kde_have_crypt=no
  1161. ]))
  1162. AC_SUBST(LIBCRYPT)
  1163. if test $kde_have_crypt = yes; then
  1164. AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1, [Defines if your system has the crypt function])
  1165. fi
  1166. AC_CHECK_SOCKLEN_T
  1167. AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
  1168. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1169. AC_CHECK_LIB(dnet_stub, dnet_ntoa,
  1170. [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"])
  1171. fi
  1172. AC_CHECK_FUNC(inet_ntoa)
  1173. if test $ac_cv_func_inet_ntoa = no; then
  1174. AC_CHECK_LIB(nsl, inet_ntoa, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl")
  1175. fi
  1176. AC_CHECK_FUNC(connect)
  1177. if test $ac_cv_func_connect = no; then
  1178. AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", ,
  1179. $X_EXTRA_LIBS)
  1180. fi
  1181. AC_CHECK_FUNC(remove)
  1182. if test $ac_cv_func_remove = no; then
  1183. AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix")
  1184. fi
  1185. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  1186. AC_CHECK_FUNC(shmat, ,
  1187. AC_CHECK_LIB(ipc, shmat, X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"))
  1188. # more headers that need to be explicitly included on darwin
  1189. AC_CHECK_HEADERS(sys/types.h stdint.h)
  1190. # sys/bitypes.h is needed for uint32_t and friends on Tru64
  1191. AC_CHECK_HEADERS(sys/bitypes.h)
  1192. # darwin requires a poll emulation library
  1193. AC_CHECK_LIB(poll, poll, LIB_POLL="-lpoll")
  1194. # for some image handling on Mac OS X
  1195. AC_CHECK_HEADERS(Carbon/Carbon.h)
  1196. # CoreAudio framework
  1197. AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [
  1198. AC_DEFINE(HAVE_COREAUDIO, 1, [Define if you have the CoreAudio API])
  1199. FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
  1200. ])
  1201. AC_CHECK_RES_INIT
  1202. AC_SUBST(LIB_POLL)
  1203. AC_SUBST(FRAMEWORK_COREAUDIO)
  1204. LIBSOCKET="$X_EXTRA_LIBS"
  1205. AC_SUBST(LIBSOCKET)
  1206. AC_SUBST(X_EXTRA_LIBS)
  1207. AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4
  1208. AC_SUBST(LIBUCB)
  1209. case $host in dnl this *is* LynxOS specific
  1210. *-*-lynxos* )
  1211. AC_MSG_CHECKING([LynxOS header file wrappers])
  1212. [CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"]
  1213. AC_MSG_RESULT(disabled)
  1214. AC_CHECK_LIB(bsd, gethostbyname, [LIBSOCKET="-lbsd"]) dnl for LynxOS
  1215. ;;
  1216. esac
  1217. KDE_CHECK_TYPES
  1218. KDE_CHECK_LIBDL
  1219. KDE_CHECK_STRLCPY
  1220. KDE_CHECK_PIE_SUPPORT
  1221. # darwin needs this to initialize the environment
  1222. AC_CHECK_HEADERS(crt_externs.h)
  1223. AC_CHECK_FUNC(_NSGetEnviron, [AC_DEFINE(HAVE_NSGETENVIRON, 1, [Define if your system needs _NSGetEnviron to set up the environment])])
  1224. AH_VERBATIM(_DARWIN_ENVIRON,
  1225. [
  1226. #if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
  1227. # include <sys/time.h>
  1228. # include <crt_externs.h>
  1229. # define environ (*_NSGetEnviron())
  1230. #endif
  1231. ])
  1232. AH_VERBATIM(_AIX_STRINGS_H_BZERO,
  1233. [
  1234. /*
  1235. * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
  1236. * that defines bzero.
  1237. */
  1238. #if defined(_AIX)
  1239. #include <strings.h>
  1240. #endif
  1241. ])
  1242. AC_CHECK_FUNCS([vsnprintf snprintf])
  1243. AH_VERBATIM(_TRU64,[
  1244. /*
  1245. * On HP-UX, the declaration of vsnprintf() is needed every time !
  1246. */
  1247. #if !defined(HAVE_VSNPRINTF) || defined(hpux)
  1248. #if __STDC__
  1249. #include <stdarg.h>
  1250. #include <stdlib.h>
  1251. #else
  1252. #include <varargs.h>
  1253. #endif
  1254. #ifdef __cplusplus
  1255. extern "C"
  1256. #endif
  1257. int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
  1258. #ifdef __cplusplus
  1259. extern "C"
  1260. #endif
  1261. int snprintf(char *str, size_t n, char const *fmt, ...);
  1262. #endif
  1263. ])
  1264. ])
  1265. m4trace:acinclude.m4:1088: -1- AC_DEFUN([K_PATH_X], [
  1266. AC_REQUIRE([KDE_MISC_TESTS])dnl
  1267. AC_REQUIRE([KDE_CHECK_LIB64])
  1268. AC_ARG_ENABLE(
  1269. embedded,
  1270. AC_HELP_STRING([--enable-embedded],[link to Qt-embedded, don't use X]),
  1271. kde_use_qt_emb=$enableval,
  1272. kde_use_qt_emb=no
  1273. )
  1274. AC_ARG_ENABLE(
  1275. qtopia,
  1276. AC_HELP_STRING([--enable-qtopia],[link to Qt-embedded, link to the Qtopia Environment]),
  1277. kde_use_qt_emb_palm=$enableval,
  1278. kde_use_qt_emb_palm=no
  1279. )
  1280. AC_ARG_ENABLE(
  1281. mac,
  1282. AC_HELP_STRING([--enable-mac],[link to Qt/Mac (don't use X)]),
  1283. kde_use_qt_mac=$enableval,
  1284. kde_use_qt_mac=no
  1285. )
  1286. # used to disable x11-specific stuff on special platforms
  1287. AM_CONDITIONAL(include_x11, test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no")
  1288. if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
  1289. AC_MSG_CHECKING(for X)
  1290. AC_CACHE_VAL(kde_cv_have_x,
  1291. [# One or both of the vars are not set, and there is no cached value.
  1292. if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
  1293. kde_x_includes=NO
  1294. else
  1295. kde_x_includes=$x_includes
  1296. fi
  1297. if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
  1298. kde_x_libraries=NO
  1299. else
  1300. kde_x_libraries=$x_libraries
  1301. fi
  1302. # below we use the standard autoconf calls
  1303. ac_x_libraries=$kde_x_libraries
  1304. ac_x_includes=$kde_x_includes
  1305. KDE_PATH_X_DIRECT
  1306. dnl AC_PATH_X_XMKMF picks /usr/lib as the path for the X libraries.
  1307. dnl Unfortunately, if compiling with the N32 ABI, this is not the correct
  1308. dnl location. The correct location is /usr/lib32 or an undefined value
  1309. dnl (the linker is smart enough to pick the correct default library).
  1310. dnl Things work just fine if you use just AC_PATH_X_DIRECT.
  1311. dnl Solaris has a similar problem. AC_PATH_X_XMKMF forces x_includes to
  1312. dnl /usr/openwin/include, which doesn't work. /usr/include does work, so
  1313. dnl x_includes should be left alone.
  1314. case "$host" in
  1315. mips-sgi-irix6*)
  1316. ;;
  1317. *-*-solaris*)
  1318. ;;
  1319. *)
  1320. _AC_PATH_X_XMKMF
  1321. if test -z "$ac_x_includes"; then
  1322. ac_x_includes="."
  1323. fi
  1324. if test -z "$ac_x_libraries"; then
  1325. ac_x_libraries="/usr/lib${kdelibsuff}"
  1326. fi
  1327. esac
  1328. #from now on we use our own again
  1329. # when the user already gave --x-includes, we ignore
  1330. # what the standard autoconf macros told us.
  1331. if test "$kde_x_includes" = NO; then
  1332. kde_x_includes=$ac_x_includes
  1333. fi
  1334. # for --x-libraries too
  1335. if test "$kde_x_libraries" = NO; then
  1336. kde_x_libraries=$ac_x_libraries
  1337. fi
  1338. if test "$kde_x_includes" = NO; then
  1339. AC_MSG_ERROR([Can't find X includes. Please check your installation and add the correct paths!])
  1340. fi
  1341. if test "$kde_x_libraries" = NO; then
  1342. AC_MSG_ERROR([Can't find X libraries. Please check your installation and add the correct paths!])
  1343. fi
  1344. # Record where we found X for the cache.
  1345. kde_cv_have_x="have_x=yes \
  1346. kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
  1347. ])dnl
  1348. eval "$kde_cv_have_x"
  1349. if test "$have_x" != yes; then
  1350. AC_MSG_RESULT($have_x)
  1351. no_x=yes
  1352. else
  1353. AC_MSG_RESULT([libraries $kde_x_libraries, headers $kde_x_includes])
  1354. fi
  1355. if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
  1356. X_INCLUDES=""
  1357. x_includes="."; dnl better than nothing :-
  1358. else
  1359. x_includes=$kde_x_includes
  1360. X_INCLUDES="-I$x_includes"
  1361. fi
  1362. if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
  1363. X_LDFLAGS=""
  1364. x_libraries="/usr/lib"; dnl better than nothing :-
  1365. else
  1366. x_libraries=$kde_x_libraries
  1367. X_LDFLAGS="-L$x_libraries"
  1368. fi
  1369. all_includes="$X_INCLUDES"
  1370. all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
  1371. # Check for libraries that X11R6 Xt/Xaw programs need.
  1372. ac_save_LDFLAGS="$LDFLAGS"
  1373. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  1374. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1375. # check for ICE first), but we must link in the order -lSM -lICE or
  1376. # we get undefined symbols. So assume we have SM if we have ICE.
  1377. # These have to be linked with before -lX11, unlike the other
  1378. # libraries we check for below, so use a different variable.
  1379. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1380. AC_CHECK_LIB(ICE, IceConnectionNumber,
  1381. [LIBSM="-lSM -lICE"], , $X_EXTRA_LIBS)
  1382. LDFLAGS="$ac_save_LDFLAGS"
  1383. LIB_X11='-lX11 $(LIBSOCKET)'
  1384. AC_MSG_CHECKING(for libXext)
  1385. AC_CACHE_VAL(kde_cv_have_libXext,
  1386. [
  1387. kde_ldflags_safe="$LDFLAGS"
  1388. kde_libs_safe="$LIBS"
  1389. LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
  1390. LIBS="-lXext -lX11 $LIBSOCKET"
  1391. AC_TRY_LINK([
  1392. #include <stdio.h>
  1393. #ifdef STDC_HEADERS
  1394. # include <stdlib.h>
  1395. #endif
  1396. ],
  1397. [
  1398. printf("hello Xext\n");
  1399. ],
  1400. kde_cv_have_libXext=yes,
  1401. kde_cv_have_libXext=no
  1402. )
  1403. LDFLAGS=$kde_ldflags_safe
  1404. LIBS=$kde_libs_safe
  1405. ])
  1406. AC_MSG_RESULT($kde_cv_have_libXext)
  1407. if test "$kde_cv_have_libXext" = "no"; then
  1408. AC_MSG_ERROR([We need a working libXext to proceed. Since configure
  1409. can't find it itself, we stop here assuming that make wouldn't find
  1410. them either.])
  1411. fi
  1412. LIB_XEXT="-lXext"
  1413. QTE_NORTTI=""
  1414. elif test "$kde_use_qt_emb" = "yes"; then
  1415. dnl We're using QT Embedded
  1416. CPPFLAGS=-DQWS
  1417. CXXFLAGS="$CXXFLAGS -fno-rtti"
  1418. QTE_NORTTI="-fno-rtti -DQWS"
  1419. X_PRE_LIBS=""
  1420. LIB_X11=""
  1421. LIB_XEXT=""
  1422. LIB_XRENDER=""
  1423. LIBSM=""
  1424. X_INCLUDES=""
  1425. X_LDFLAGS=""
  1426. x_includes=""
  1427. x_libraries=""
  1428. elif test "$kde_use_qt_mac" = "yes"; then
  1429. dnl We're using QT/Mac (I use QT_MAC so that qglobal.h doesn't *have* to
  1430. dnl be included to get the information) --Sam
  1431. CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
  1432. CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
  1433. X_PRE_LIBS=""
  1434. LIB_X11=""
  1435. LIB_XEXT=""
  1436. LIB_XRENDER=""
  1437. LIBSM=""
  1438. X_INCLUDES=""
  1439. X_LDFLAGS=""
  1440. x_includes=""
  1441. x_libraries=""
  1442. fi
  1443. AC_SUBST(X_PRE_LIBS)
  1444. AC_SUBST(LIB_X11)
  1445. AC_SUBST(LIB_XRENDER)
  1446. AC_SUBST(LIBSM)
  1447. AC_SUBST(X_INCLUDES)
  1448. AC_SUBST(X_LDFLAGS)
  1449. AC_SUBST(x_includes)
  1450. AC_SUBST(x_libraries)
  1451. AC_SUBST(QTE_NORTTI)
  1452. AC_SUBST(LIB_XEXT)
  1453. ])
  1454. m4trace:acinclude.m4:1151: -1- AC_DEFUN([KDE_PRINT_QT_PROGRAM], [
  1455. AC_REQUIRE([KDE_USE_QT])
  1456. cat > conftest.$ac_ext <<EOF
  1457. #include "confdefs.h"
  1458. #include <qglobal.h>
  1459. #include <qapplication.h>
  1460. EOF
  1461. if test "$kde_qtver" = "2"; then
  1462. cat >> conftest.$ac_ext <<EOF
  1463. #include <qevent.h>
  1464. #include <qstring.h>
  1465. #include <qstyle.h>
  1466. EOF
  1467. if test $kde_qtsubver -gt 0; then
  1468. cat >> conftest.$ac_ext <<EOF
  1469. #if QT_VERSION < 210
  1470. #error 1
  1471. #endif
  1472. EOF
  1473. fi
  1474. fi
  1475. if test "$kde_qtver" = "3"; then
  1476. cat >> conftest.$ac_ext <<EOF
  1477. #include <qcursor.h>
  1478. #include <qstylefactory.h>
  1479. #include <private/qucomextra_p.h>
  1480. EOF
  1481. fi
  1482. echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
  1483. cat >> conftest.$ac_ext <<EOF
  1484. #error 1
  1485. #endif
  1486. int main() {
  1487. EOF
  1488. if test "$kde_qtver" = "2"; then
  1489. cat >> conftest.$ac_ext <<EOF
  1490. QStringList *t = new QStringList();
  1491. Q_UNUSED(t);
  1492. EOF
  1493. if test $kde_qtsubver -gt 0; then
  1494. cat >> conftest.$ac_ext <<EOF
  1495. QString s;
  1496. s.setLatin1("Elvis is alive", 14);
  1497. EOF
  1498. fi
  1499. fi
  1500. if test "$kde_qtver" = "3"; then
  1501. cat >> conftest.$ac_ext <<EOF
  1502. (void)QStyleFactory::create(QString::null);
  1503. QCursor c(Qt::WhatsThisCursor);
  1504. EOF
  1505. fi
  1506. cat >> conftest.$ac_ext <<EOF
  1507. return 0;
  1508. }
  1509. EOF
  1510. ])
  1511. m4trace:acinclude.m4:1237: -1- AC_DEFUN([KDE_USE_QT], [
  1512. if test -z "$1"; then
  1513. # Current default Qt version: 3.3
  1514. kde_qtver=3
  1515. kde_qtsubver=3
  1516. else
  1517. kde_qtsubver=`echo "$1" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
  1518. # following is the check if subversion isnt found in passed argument
  1519. if test "$kde_qtsubver" = "$1"; then
  1520. kde_qtsubver=1
  1521. fi
  1522. kde_qtver=`echo "$1" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
  1523. if test "$kde_qtver" = "1"; then
  1524. kde_qtsubver=42
  1525. fi
  1526. fi
  1527. if test -z "$2"; then
  1528. if test "$kde_qtver" = "2"; then
  1529. if test $kde_qtsubver -gt 0; then
  1530. kde_qt_minversion=">= Qt 2.2.2"
  1531. else
  1532. kde_qt_minversion=">= Qt 2.0.2"
  1533. fi
  1534. fi
  1535. if test "$kde_qtver" = "3"; then
  1536. if test $kde_qtsubver -gt 0; then
  1537. if test $kde_qtsubver -gt 1; then
  1538. if test $kde_qtsubver -gt 2; then
  1539. kde_qt_minversion=">= Qt 3.3 and < 4.0"
  1540. else
  1541. kde_qt_minversion=">= Qt 3.2 and < 4.0"
  1542. fi
  1543. else
  1544. kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
  1545. fi
  1546. else
  1547. kde_qt_minversion=">= Qt 3.0 and < 4.0"
  1548. fi
  1549. fi
  1550. if test "$kde_qtver" = "1"; then
  1551. kde_qt_minversion=">= 1.42 and < 2.0"
  1552. fi
  1553. else
  1554. kde_qt_minversion="$2"
  1555. fi
  1556. if test -z "$3"; then
  1557. if test $kde_qtver = 3; then
  1558. if test $kde_qtsubver -gt 0; then
  1559. kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
  1560. qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
  1561. kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
  1562. else
  1563. kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
  1564. fi
  1565. fi
  1566. if test $kde_qtver = 2; then
  1567. if test $kde_qtsubver -gt 0; then
  1568. kde_qt_verstring="QT_VERSION >= 222"
  1569. else
  1570. kde_qt_verstring="QT_VERSION >= 200"
  1571. fi
  1572. fi
  1573. if test $kde_qtver = 1; then
  1574. kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
  1575. fi
  1576. else
  1577. kde_qt_verstring="$3"
  1578. fi
  1579. if test $kde_qtver = 4; then
  1580. kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
  1581. fi
  1582. if test $kde_qtver = 3; then
  1583. kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
  1584. fi
  1585. if test $kde_qtver = 2; then
  1586. kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
  1587. fi
  1588. if test $kde_qtver = 1; then
  1589. kde_qt_dirs="$QTDIR /usr/lib/qt"
  1590. fi
  1591. ])
  1592. m4trace:acinclude.m4:1294: -1- AC_DEFUN([KDE_CHECK_QT_DIRECT], [
  1593. AC_REQUIRE([KDE_USE_QT])
  1594. AC_MSG_CHECKING([if Qt compiles without flags])
  1595. AC_CACHE_VAL(kde_cv_qt_direct,
  1596. [
  1597. AC_LANG_SAVE
  1598. AC_LANG_CPLUSPLUS
  1599. ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
  1600. ac_LIBRARY_PATH="$LIBRARY_PATH"
  1601. ac_cxxflags_safe="$CXXFLAGS"
  1602. ac_ldflags_safe="$LDFLAGS"
  1603. ac_libs_safe="$LIBS"
  1604. CXXFLAGS="$CXXFLAGS -I$qt_includes"
  1605. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  1606. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  1607. LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
  1608. else
  1609. LIBS="$LIBQT $LIBSOCKET"
  1610. fi
  1611. LD_LIBRARY_PATH=
  1612. export LD_LIBRARY_PATH
  1613. LIBRARY_PATH=
  1614. export LIBRARY_PATH
  1615. KDE_PRINT_QT_PROGRAM
  1616. if AC_TRY_EVAL(ac_link) && test -s conftest; then
  1617. kde_cv_qt_direct="yes"
  1618. else
  1619. kde_cv_qt_direct="no"
  1620. echo "configure: failed program was:" >&AC_FD_CC
  1621. cat conftest.$ac_ext >&AC_FD_CC
  1622. fi
  1623. rm -f conftest*
  1624. CXXFLAGS="$ac_cxxflags_safe"
  1625. LDFLAGS="$ac_ldflags_safe"
  1626. LIBS="$ac_libs_safe"
  1627. LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
  1628. export LD_LIBRARY_PATH
  1629. LIBRARY_PATH="$ac_LIBRARY_PATH"
  1630. export LIBRARY_PATH
  1631. AC_LANG_RESTORE
  1632. ])
  1633. if test "$kde_cv_qt_direct" = "yes"; then
  1634. AC_MSG_RESULT(yes)
  1635. $1
  1636. else
  1637. AC_MSG_RESULT(no)
  1638. $2
  1639. fi
  1640. ])
  1641. m4trace:acinclude.m4:1596: -1- AC_DEFUN([AC_PATH_QT_1_3], [
  1642. AC_REQUIRE([K_PATH_X])
  1643. AC_REQUIRE([KDE_USE_QT])
  1644. AC_REQUIRE([KDE_CHECK_LIB64])
  1645. dnl ------------------------------------------------------------------------
  1646. dnl Add configure flag to enable linking to MT version of Qt library.
  1647. dnl ------------------------------------------------------------------------
  1648. AC_ARG_ENABLE(
  1649. mt,
  1650. AC_HELP_STRING([--disable-mt],[link to non-threaded Qt (deprecated)]),
  1651. kde_use_qt_mt=$enableval,
  1652. [
  1653. if test $kde_qtver = 3; then
  1654. kde_use_qt_mt=yes
  1655. else
  1656. kde_use_qt_mt=no
  1657. fi
  1658. ]
  1659. )
  1660. USING_QT_MT=""
  1661. dnl ------------------------------------------------------------------------
  1662. dnl If we not get --disable-qt-mt then adjust some vars for the host.
  1663. dnl ------------------------------------------------------------------------
  1664. KDE_MT_LDFLAGS=
  1665. KDE_MT_LIBS=
  1666. if test "x$kde_use_qt_mt" = "xyes"; then
  1667. KDE_CHECK_THREADING
  1668. if test "x$kde_use_threading" = "xyes"; then
  1669. CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
  1670. KDE_MT_LDFLAGS="$USE_THREADS"
  1671. KDE_MT_LIBS="$LIBPTHREAD"
  1672. else
  1673. kde_use_qt_mt=no
  1674. fi
  1675. fi
  1676. AC_SUBST(KDE_MT_LDFLAGS)
  1677. AC_SUBST(KDE_MT_LIBS)
  1678. kde_qt_was_given=yes
  1679. dnl ------------------------------------------------------------------------
  1680. dnl If we haven't been told how to link to Qt, we work it out for ourselves.
  1681. dnl ------------------------------------------------------------------------
  1682. if test -z "$LIBQT_GLOB"; then
  1683. if test "x$kde_use_qt_emb" = "xyes"; then
  1684. LIBQT_GLOB="libqte.*"
  1685. else
  1686. LIBQT_GLOB="libqt.*"
  1687. fi
  1688. fi
  1689. dnl ------------------------------------------------------------
  1690. dnl If we got --enable-embedded then adjust the Qt library name.
  1691. dnl ------------------------------------------------------------
  1692. if test "x$kde_use_qt_emb" = "xyes"; then
  1693. qtlib="qte"
  1694. else
  1695. qtlib="qt"
  1696. fi
  1697. kde_int_qt="-l$qtlib"
  1698. if test -z "$LIBQPE"; then
  1699. dnl ------------------------------------------------------------
  1700. dnl If we got --enable-palmtop then add -lqpe to the link line
  1701. dnl ------------------------------------------------------------
  1702. if test "x$kde_use_qt_emb" = "xyes"; then
  1703. if test "x$kde_use_qt_emb_palm" = "xyes"; then
  1704. LIB_QPE="-lqpe"
  1705. else
  1706. LIB_QPE=""
  1707. fi
  1708. else
  1709. LIB_QPE=""
  1710. fi
  1711. fi
  1712. dnl ------------------------------------------------------------------------
  1713. dnl If we got --enable-qt-mt then adjust the Qt library name for the host.
  1714. dnl ------------------------------------------------------------------------
  1715. if test "x$kde_use_qt_mt" = "xyes"; then
  1716. LIBQT="-l$qtlib-mt"
  1717. kde_int_qt="-l$qtlib-mt"
  1718. LIBQT_GLOB="lib$qtlib-mt.*"
  1719. USING_QT_MT="using -mt"
  1720. else
  1721. LIBQT="-l$qtlib"
  1722. fi
  1723. if test $kde_qtver != 1; then
  1724. AC_REQUIRE([AC_FIND_PNG])
  1725. AC_REQUIRE([AC_FIND_JPEG])
  1726. LIBQT="$LIBQT $LIBPNG $LIBJPEG"
  1727. fi
  1728. if test $kde_qtver = 3; then
  1729. AC_REQUIRE([KDE_CHECK_LIBDL])
  1730. LIBQT="$LIBQT $LIBDL"
  1731. fi
  1732. AC_MSG_CHECKING([for Qt])
  1733. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  1734. LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
  1735. fi
  1736. ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
  1737. qt_libraries=""
  1738. qt_includes=""
  1739. AC_ARG_WITH(qt-dir,
  1740. AC_HELP_STRING([--with-qt-dir=DIR],[where the root of Qt is installed ]),
  1741. [ ac_qt_includes="$withval"/include
  1742. ac_qt_libraries="$withval"/lib${kdelibsuff}
  1743. ac_qt_bindir="$withval"/bin
  1744. ])
  1745. AC_ARG_WITH(qt-includes,
  1746. AC_HELP_STRING([--with-qt-includes=DIR],[where the Qt includes are. ]),
  1747. [
  1748. ac_qt_includes="$withval"
  1749. ])
  1750. kde_qt_libs_given=no
  1751. AC_ARG_WITH(qt-libraries,
  1752. AC_HELP_STRING([--with-qt-libraries=DIR],[where the Qt library is installed.]),
  1753. [ ac_qt_libraries="$withval"
  1754. kde_qt_libs_given=yes
  1755. ])
  1756. AC_CACHE_VAL(ac_cv_have_qt,
  1757. [#try to guess Qt locations
  1758. qt_incdirs=""
  1759. for dir in $kde_qt_dirs; do
  1760. qt_incdirs="$qt_incdirs $dir/include $dir"
  1761. done
  1762. 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"
  1763. if test ! "$ac_qt_includes" = "NO"; then
  1764. qt_incdirs="$ac_qt_includes $qt_incdirs"
  1765. fi
  1766. if test "$kde_qtver" != "1"; then
  1767. kde_qt_header=qstyle.h
  1768. else
  1769. kde_qt_header=qglobal.h
  1770. fi
  1771. AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir)
  1772. ac_qt_includes="$qt_incdir"
  1773. qt_libdirs=""
  1774. for dir in $kde_qt_dirs; do
  1775. qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
  1776. done
  1777. qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
  1778. if test ! "$ac_qt_libraries" = "NO"; then
  1779. qt_libdir=$ac_qt_libraries
  1780. else
  1781. qt_libdirs="$ac_qt_libraries $qt_libdirs"
  1782. # if the Qt was given, the chance is too big that libqt.* doesn't exist
  1783. qt_libdir=NONE
  1784. for dir in $qt_libdirs; do
  1785. try="ls -1 $dir/${LIBQT_GLOB}"
  1786. if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi
  1787. done
  1788. fi
  1789. for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
  1790. if test -e "$a"; then
  1791. LIBQT="$LIBQT ${kde_int_qt}_incremental"
  1792. break
  1793. fi
  1794. done
  1795. ac_qt_libraries="$qt_libdir"
  1796. AC_LANG_SAVE
  1797. AC_LANG_CPLUSPLUS
  1798. ac_cxxflags_safe="$CXXFLAGS"
  1799. ac_ldflags_safe="$LDFLAGS"
  1800. ac_libs_safe="$LIBS"
  1801. CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
  1802. LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
  1803. LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
  1804. KDE_PRINT_QT_PROGRAM
  1805. if AC_TRY_EVAL(ac_link) && test -s conftest; then
  1806. rm -f conftest*
  1807. else
  1808. echo "configure: failed program was:" >&AC_FD_CC
  1809. cat conftest.$ac_ext >&AC_FD_CC
  1810. ac_qt_libraries="NO"
  1811. fi
  1812. rm -f conftest*
  1813. CXXFLAGS="$ac_cxxflags_safe"
  1814. LDFLAGS="$ac_ldflags_safe"
  1815. LIBS="$ac_libs_safe"
  1816. AC_LANG_RESTORE
  1817. if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
  1818. ac_cv_have_qt="have_qt=no"
  1819. ac_qt_notfound=""
  1820. missing_qt_mt=""
  1821. if test "$ac_qt_includes" = NO; then
  1822. if test "$ac_qt_libraries" = NO; then
  1823. ac_qt_notfound="(headers and libraries)";
  1824. else
  1825. ac_qt_notfound="(headers)";
  1826. fi
  1827. else
  1828. if test "x$kde_use_qt_mt" = "xyes"; then
  1829. missing_qt_mt="
  1830. Make sure that you have compiled Qt with thread support!"
  1831. ac_qt_notfound="(library $qtlib-mt)";
  1832. else
  1833. ac_qt_notfound="(library $qtlib)";
  1834. fi
  1835. fi
  1836. AC_MSG_ERROR([Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
  1837. For more details about this problem, look at the end of config.log.$missing_qt_mt])
  1838. else
  1839. have_qt="yes"
  1840. fi
  1841. ])
  1842. eval "$ac_cv_have_qt"
  1843. if test "$have_qt" != yes; then
  1844. AC_MSG_RESULT([$have_qt]);
  1845. else
  1846. ac_cv_have_qt="have_qt=yes \
  1847. ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
  1848. AC_MSG_RESULT([libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT])
  1849. qt_libraries="$ac_qt_libraries"
  1850. qt_includes="$ac_qt_includes"
  1851. fi
  1852. if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
  1853. KDE_CHECK_QT_DIRECT(qt_libraries= ,[])
  1854. fi
  1855. AC_SUBST(qt_libraries)
  1856. AC_SUBST(qt_includes)
  1857. if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
  1858. QT_INCLUDES=""
  1859. else
  1860. QT_INCLUDES="-I$qt_includes"
  1861. all_includes="$QT_INCLUDES $all_includes"
  1862. fi
  1863. if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
  1864. QT_LDFLAGS=""
  1865. else
  1866. QT_LDFLAGS="-L$qt_libraries"
  1867. all_libraries="$QT_LDFLAGS $all_libraries"
  1868. fi
  1869. test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
  1870. AC_SUBST(QT_INCLUDES)
  1871. AC_SUBST(QT_LDFLAGS)
  1872. AC_PATH_QT_MOC_UIC
  1873. KDE_CHECK_QT_JPEG
  1874. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  1875. LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
  1876. else
  1877. LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
  1878. fi
  1879. test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
  1880. for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
  1881. if test -e "$a"; then
  1882. LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
  1883. break
  1884. fi
  1885. done
  1886. AC_SUBST(LIB_QT)
  1887. AC_SUBST(LIB_QPE)
  1888. AC_SUBST(kde_qtver)
  1889. ])
  1890. m4trace:acinclude.m4:1601: -1- AC_DEFUN([AC_PATH_QT], [
  1891. AC_PATH_QT_1_3
  1892. ])
  1893. m4trace:acinclude.m4:1657: -1- AC_DEFUN([KDE_CHECK_UIC_PLUGINS], [
  1894. AC_REQUIRE([AC_PATH_QT_MOC_UIC])
  1895. if test x$ac_uic_supports_libpath = xyes; then
  1896. AC_MSG_CHECKING([if UIC has KDE plugins available])
  1897. AC_CACHE_VAL(kde_cv_uic_plugins,
  1898. [
  1899. cat > actest.ui << EOF
  1900. <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
  1901. <class>NewConnectionDialog</class>
  1902. <widget class="QDialog">
  1903. <widget class="KLineEdit">
  1904. <property name="name">
  1905. <cstring>testInput</cstring>
  1906. </property>
  1907. </widget>
  1908. </widget>
  1909. </UI>
  1910. EOF
  1911. kde_cv_uic_plugins=no
  1912. kde_line="$UIC_PATH -L $kde_widgetdir"
  1913. if test x$ac_uic_supports_nounload = xyes; then
  1914. kde_line="$kde_line -nounload"
  1915. fi
  1916. kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
  1917. if AC_TRY_EVAL(kde_line); then
  1918. # if you're trying to debug this check and think it's incorrect,
  1919. # better check your installation. The check _is_ correct - your
  1920. # installation is not.
  1921. if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
  1922. kde_cv_uic_plugins=yes
  1923. fi
  1924. fi
  1925. rm -f actest.ui actest.cpp
  1926. ])
  1927. AC_MSG_RESULT([$kde_cv_uic_plugins])
  1928. if test "$kde_cv_uic_plugins" != yes; then
  1929. AC_MSG_ERROR([
  1930. you need to install kdelibs first.
  1931. If you did install kdelibs, then the Qt version that is picked up by
  1932. this configure is not the same version you used to compile kdelibs.
  1933. The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
  1934. _same Qt version_, compiled with the _same compiler_ and the same Qt
  1935. configuration settings.
  1936. ])
  1937. fi
  1938. fi
  1939. ])
  1940. m4trace:acinclude.m4:1675: -1- AC_DEFUN([KDE_CHECK_FINAL], [
  1941. AC_ARG_ENABLE(final,
  1942. AC_HELP_STRING([--enable-final],
  1943. [build size optimized apps (experimental - needs lots of memory)]),
  1944. kde_use_final=$enableval, kde_use_final=no)
  1945. if test "x$kde_use_final" = "xyes"; then
  1946. KDE_USE_FINAL_TRUE=""
  1947. KDE_USE_FINAL_FALSE="#"
  1948. else
  1949. KDE_USE_FINAL_TRUE="#"
  1950. KDE_USE_FINAL_FALSE=""
  1951. fi
  1952. AC_SUBST(KDE_USE_FINAL_TRUE)
  1953. AC_SUBST(KDE_USE_FINAL_FALSE)
  1954. ])
  1955. m4trace:acinclude.m4:1705: -1- AC_DEFUN([KDE_CHECK_CLOSURE], [
  1956. AC_ARG_ENABLE(closure,
  1957. AC_HELP_STRING([--enable-closure],[delay template instantiation]),
  1958. kde_use_closure=$enableval, kde_use_closure=no)
  1959. KDE_NO_UNDEFINED=""
  1960. if test "x$kde_use_closure" = "xyes"; then
  1961. KDE_USE_CLOSURE_TRUE=""
  1962. KDE_USE_CLOSURE_FALSE="#"
  1963. # CXXFLAGS="$CXXFLAGS $REPO"
  1964. else
  1965. KDE_USE_CLOSURE_TRUE="#"
  1966. KDE_USE_CLOSURE_FALSE=""
  1967. KDE_NO_UNDEFINED=""
  1968. case $host in
  1969. *-*-linux-gnu)
  1970. KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined],
  1971. [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined],
  1972. [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"],
  1973. [KDE_NO_UNDEFINED=""])],
  1974. [KDE_NO_UNDEFINED=""])
  1975. ;;
  1976. esac
  1977. fi
  1978. AC_SUBST(KDE_USE_CLOSURE_TRUE)
  1979. AC_SUBST(KDE_USE_CLOSURE_FALSE)
  1980. AC_SUBST(KDE_NO_UNDEFINED)
  1981. ])
  1982. m4trace:acinclude.m4:1728: -1- AC_DEFUN([KDE_CHECK_NEW_LDFLAGS], [
  1983. AC_ARG_ENABLE(new_ldflags,
  1984. AC_HELP_STRING([--enable-new-ldflags],
  1985. [enable the new linker flags]),
  1986. kde_use_new_ldflags=$enableval,
  1987. kde_use_new_ldflags=no)
  1988. LDFLAGS_AS_NEEDED=""
  1989. LDFLAGS_NEW_DTAGS=""
  1990. if test "x$kde_use_new_ldflags" = "xyes"; then
  1991. LDFLAGS_NEW_DTAGS=""
  1992. KDE_CHECK_COMPILER_FLAG([Wl,--enable-new-dtags],
  1993. [LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"],)
  1994. KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
  1995. [LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
  1996. fi
  1997. AC_SUBST(LDFLAGS_AS_NEEDED)
  1998. AC_SUBST(LDFLAGS_NEW_DTAGS)
  1999. ])
  2000. m4trace:acinclude.m4:1744: -1- AC_DEFUN([KDE_CHECK_NMCHECK], [
  2001. AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]),
  2002. kde_use_nmcheck=$enableval, kde_use_nmcheck=no)
  2003. if test "$kde_use_nmcheck" = "yes"; then
  2004. KDE_USE_NMCHECK_TRUE=""
  2005. KDE_USE_NMCHECK_FALSE="#"
  2006. else
  2007. KDE_USE_NMCHECK_TRUE="#"
  2008. KDE_USE_NMCHECK_FALSE=""
  2009. fi
  2010. AC_SUBST(KDE_USE_NMCHECK_TRUE)
  2011. AC_SUBST(KDE_USE_NMCHECK_FALSE)
  2012. ])
  2013. m4trace:acinclude.m4:1752: -1- AC_DEFUN([KDE_EXPAND_MAKEVAR], [
  2014. savex=$exec_prefix
  2015. test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  2016. tmp=$$2
  2017. while $1=`eval echo "$tmp"`; test "x$$1" != "x$tmp"; do tmp=$$1; done
  2018. exec_prefix=$savex
  2019. ])
  2020. m4trace:acinclude.m4:1912: -1- AC_DEFUN([AC_BASE_PATH_KDE], [
  2021. AC_REQUIRE([KDE_CHECK_STL])
  2022. AC_REQUIRE([AC_PATH_QT])dnl
  2023. AC_REQUIRE([KDE_CHECK_LIB64])
  2024. AC_CHECK_RPATH
  2025. AC_MSG_CHECKING([for KDE])
  2026. if test "${prefix}" != NONE; then
  2027. kde_includes=${includedir}
  2028. KDE_EXPAND_MAKEVAR(ac_kde_includes, includedir)
  2029. kde_libraries=${libdir}
  2030. KDE_EXPAND_MAKEVAR(ac_kde_libraries, libdir)
  2031. else
  2032. ac_kde_includes=
  2033. ac_kde_libraries=
  2034. kde_libraries=""
  2035. kde_includes=""
  2036. fi
  2037. AC_CACHE_VAL(ac_cv_have_kde,
  2038. [#try to guess kde locations
  2039. if test "$kde_qtver" = 1; then
  2040. kde_check_header="ksock.h"
  2041. kde_check_lib="libkdecore.la"
  2042. else
  2043. kde_check_header="ksharedptr.h"
  2044. kde_check_lib="libkio.la"
  2045. fi
  2046. if test -z "$1"; then
  2047. 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"
  2048. test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
  2049. kde_incdirs="$ac_kde_includes $kde_incdirs"
  2050. AC_FIND_FILE($kde_check_header, $kde_incdirs, kde_incdir)
  2051. ac_kde_includes="$kde_incdir"
  2052. if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
  2053. AC_MSG_ERROR([
  2054. in the prefix, you've chosen, are no KDE headers installed. This will fail.
  2055. So, check this please and use another prefix!])
  2056. fi
  2057. 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}"
  2058. test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
  2059. kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
  2060. AC_FIND_FILE($kde_check_lib, $kde_libdirs, kde_libdir)
  2061. ac_kde_libraries="$kde_libdir"
  2062. kde_widgetdir=NO
  2063. dnl this might be somewhere else
  2064. AC_FIND_FILE("kde3/plugins/designer/kdewidgets.la", $kde_libdirs, kde_widgetdir)
  2065. if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
  2066. AC_MSG_ERROR([
  2067. in the prefix, you've chosen, are no KDE libraries installed. This will fail.
  2068. So, check this please and use another prefix!])
  2069. fi
  2070. if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
  2071. AC_MSG_ERROR([
  2072. I can't find the designer plugins. These are required and should have been installed
  2073. by kdelibs])
  2074. fi
  2075. if test -n "$kde_widgetdir"; then
  2076. kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
  2077. fi
  2078. if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
  2079. ac_cv_have_kde="have_kde=no"
  2080. else
  2081. ac_cv_have_kde="have_kde=yes \
  2082. ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  2083. fi
  2084. else dnl test -z $1, e.g. from kdelibs
  2085. ac_cv_have_kde="have_kde=no"
  2086. fi
  2087. ])dnl
  2088. eval "$ac_cv_have_kde"
  2089. if test "$have_kde" != "yes"; then
  2090. if test "${prefix}" = NONE; then
  2091. ac_kde_prefix="$ac_default_prefix"
  2092. else
  2093. ac_kde_prefix="$prefix"
  2094. fi
  2095. if test "$exec_prefix" = NONE; then
  2096. ac_kde_exec_prefix="$ac_kde_prefix"
  2097. AC_MSG_RESULT([will be installed in $ac_kde_prefix])
  2098. else
  2099. ac_kde_exec_prefix="$exec_prefix"
  2100. AC_MSG_RESULT([will be installed in $ac_kde_prefix and $ac_kde_exec_prefix])
  2101. fi
  2102. kde_libraries="${libdir}"
  2103. kde_includes="${includedir}"
  2104. else
  2105. ac_cv_have_kde="have_kde=yes \
  2106. ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  2107. AC_MSG_RESULT([libraries $ac_kde_libraries, headers $ac_kde_includes])
  2108. kde_libraries="$ac_kde_libraries"
  2109. kde_includes="$ac_kde_includes"
  2110. fi
  2111. AC_SUBST(kde_libraries)
  2112. AC_SUBST(kde_includes)
  2113. if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
  2114. KDE_INCLUDES=""
  2115. else
  2116. KDE_INCLUDES="-I$kde_includes"
  2117. all_includes="$KDE_INCLUDES $all_includes"
  2118. fi
  2119. KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
  2120. KDE_LDFLAGS="-L$kde_libraries"
  2121. if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
  2122. all_libraries="$KDE_LDFLAGS $all_libraries"
  2123. fi
  2124. AC_SUBST(KDE_LDFLAGS)
  2125. AC_SUBST(KDE_INCLUDES)
  2126. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2127. all_libraries="$all_libraries $USER_LDFLAGS"
  2128. all_includes="$all_includes $USER_INCLUDES"
  2129. AC_SUBST(all_includes)
  2130. AC_SUBST(all_libraries)
  2131. if test -z "$1"; then
  2132. KDE_CHECK_UIC_PLUGINS
  2133. fi
  2134. ac_kde_libraries="$kde_libdir"
  2135. AC_SUBST(AUTODIRS)
  2136. ])
  2137. m4trace:acinclude.m4:1966: -1- AC_DEFUN([KDE_CHECK_EXTRA_LIBS], [
  2138. AC_MSG_CHECKING(for extra includes)
  2139. AC_ARG_WITH(extra-includes,AC_HELP_STRING([--with-extra-includes=DIR],[adds non standard include paths]),
  2140. kde_use_extra_includes="$withval",
  2141. kde_use_extra_includes=NONE
  2142. )
  2143. kde_extra_includes=
  2144. if test -n "$kde_use_extra_includes" && \
  2145. test "$kde_use_extra_includes" != "NONE"; then
  2146. ac_save_ifs=$IFS
  2147. IFS=':'
  2148. for dir in $kde_use_extra_includes; do
  2149. kde_extra_includes="$kde_extra_includes $dir"
  2150. USER_INCLUDES="$USER_INCLUDES -I$dir"
  2151. done
  2152. IFS=$ac_save_ifs
  2153. kde_use_extra_includes="added"
  2154. else
  2155. kde_use_extra_includes="no"
  2156. fi
  2157. AC_SUBST(USER_INCLUDES)
  2158. AC_MSG_RESULT($kde_use_extra_includes)
  2159. kde_extra_libs=
  2160. AC_MSG_CHECKING(for extra libs)
  2161. AC_ARG_WITH(extra-libs,AC_HELP_STRING([--with-extra-libs=DIR],[adds non standard library paths]),
  2162. kde_use_extra_libs=$withval,
  2163. kde_use_extra_libs=NONE
  2164. )
  2165. if test -n "$kde_use_extra_libs" && \
  2166. test "$kde_use_extra_libs" != "NONE"; then
  2167. ac_save_ifs=$IFS
  2168. IFS=':'
  2169. for dir in $kde_use_extra_libs; do
  2170. kde_extra_libs="$kde_extra_libs $dir"
  2171. KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
  2172. USER_LDFLAGS="$USER_LDFLAGS -L$dir"
  2173. done
  2174. IFS=$ac_save_ifs
  2175. kde_use_extra_libs="added"
  2176. else
  2177. kde_use_extra_libs="no"
  2178. fi
  2179. AC_SUBST(USER_LDFLAGS)
  2180. AC_MSG_RESULT($kde_use_extra_libs)
  2181. ])
  2182. m4trace:acinclude.m4:2021: -1- AC_DEFUN([KDE_1_CHECK_PATH_HEADERS], [
  2183. AC_MSG_CHECKING([for KDE headers installed])
  2184. AC_LANG_SAVE
  2185. AC_LANG_CPLUSPLUS
  2186. cat > conftest.$ac_ext <<EOF
  2187. #ifdef STDC_HEADERS
  2188. # include <stdlib.h>
  2189. #endif
  2190. #include <stdio.h>
  2191. #include "confdefs.h"
  2192. #include <kapp.h>
  2193. int main() {
  2194. printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
  2195. printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
  2196. printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
  2197. printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
  2198. printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
  2199. printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
  2200. printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
  2201. printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
  2202. printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
  2203. printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
  2204. printf("kde_wallpaperdir=\\"%s\\"\n",
  2205. KApplication::kde_wallpaperdir().data());
  2206. printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
  2207. printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
  2208. printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
  2209. printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
  2210. printf("kde_moduledir=\\"/tmp/dummy\\"\n");
  2211. printf("kde_styledir=\\"/tmp/dummy\\"\n");
  2212. printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
  2213. printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
  2214. printf("xdg_menudir=\\"/tmp/dummy\\"\n");
  2215. printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
  2216. printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
  2217. return 0;
  2218. }
  2219. EOF
  2220. ac_save_CPPFLAGS=$CPPFLAGS
  2221. CPPFLAGS="$all_includes $CPPFLAGS"
  2222. if AC_TRY_EVAL(ac_compile); then
  2223. AC_MSG_RESULT(yes)
  2224. else
  2225. AC_MSG_ERROR([your system is not able to compile a small KDE application!
  2226. Check, if you installed the KDE header files correctly.
  2227. For more details about this problem, look at the end of config.log.])
  2228. fi
  2229. CPPFLAGS=$ac_save_CPPFLAGS
  2230. AC_LANG_RESTORE
  2231. ])
  2232. m4trace:acinclude.m4:2057: -1- AC_DEFUN([KDE_CHECK_KDEQTADDON], [
  2233. AC_MSG_CHECKING(for kde-qt-addon)
  2234. AC_CACHE_VAL(kde_cv_have_kdeqtaddon,
  2235. [
  2236. kde_ldflags_safe="$LDFLAGS"
  2237. kde_libs_safe="$LIBS"
  2238. kde_cxxflags_safe="$CXXFLAGS"
  2239. LIBS="-lkde-qt-addon $LIBQT $LIBS"
  2240. CXXFLAGS="$CXXFLAGS -I$prefix/include -I$prefix/include/kde $all_includes"
  2241. LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
  2242. AC_TRY_LINK([
  2243. #include <qdom.h>
  2244. ],
  2245. [
  2246. QDomDocument doc;
  2247. ],
  2248. kde_cv_have_kdeqtaddon=yes,
  2249. kde_cv_have_kdeqtaddon=no
  2250. )
  2251. LDFLAGS=$kde_ldflags_safe
  2252. LIBS=$kde_libs_safe
  2253. CXXFLAGS=$kde_cxxflags_safe
  2254. ])
  2255. AC_MSG_RESULT($kde_cv_have_kdeqtaddon)
  2256. if test "$kde_cv_have_kdeqtaddon" = "no"; then
  2257. AC_MSG_ERROR([Can't find libkde-qt-addon. You need to install it first.
  2258. It is a separate package (and CVS module) named kde-qt-addon.])
  2259. fi
  2260. ])
  2261. m4trace:acinclude.m4:2110: -1- AC_DEFUN([KDE_CREATE_LIBS_ALIASES], [
  2262. AC_REQUIRE([KDE_MISC_TESTS])
  2263. AC_REQUIRE([KDE_CHECK_LIBDL])
  2264. AC_REQUIRE([K_PATH_X])
  2265. if test $kde_qtver = 3; then
  2266. case $host in
  2267. *cygwin*) lib_kded="-lkdeinit_kded" ;;
  2268. *) lib_kded="" ;;
  2269. esac
  2270. AC_SUBST(LIB_KDED, $lib_kded)
  2271. AC_SUBST(LIB_KDECORE, "-lkdecore")
  2272. AC_SUBST(LIB_KDEUI, "-lkdeui")
  2273. AC_SUBST(LIB_KIO, "-lkio")
  2274. AC_SUBST(LIB_KJS, "-lkjs")
  2275. AC_SUBST(LIB_SMB, "-lsmb")
  2276. AC_SUBST(LIB_KAB, "-lkab")
  2277. AC_SUBST(LIB_KABC, "-lkabc")
  2278. AC_SUBST(LIB_KHTML, "-lkhtml")
  2279. AC_SUBST(LIB_KSPELL, "-lkspell")
  2280. AC_SUBST(LIB_KPARTS, "-lkparts")
  2281. AC_SUBST(LIB_KDEPRINT, "-lkdeprint")
  2282. AC_SUBST(LIB_KUTILS, "-lkutils")
  2283. AC_SUBST(LIB_KDEPIM, "-lkdepim")
  2284. AC_SUBST(LIB_KIMPROXY, "-lkimproxy")
  2285. AC_SUBST(LIB_KNEWSTUFF, "-lknewstuff")
  2286. AC_SUBST(LIB_KDNSSD, "-lkdnssd")
  2287. AC_SUBST(LIB_KUNITTEST, "-lkunittest")
  2288. # these are for backward compatibility
  2289. AC_SUBST(LIB_KSYCOCA, "-lkio")
  2290. AC_SUBST(LIB_KFILE, "-lkio")
  2291. elif test $kde_qtver = 2; then
  2292. AC_SUBST(LIB_KDECORE, "-lkdecore")
  2293. AC_SUBST(LIB_KDEUI, "-lkdeui")
  2294. AC_SUBST(LIB_KIO, "-lkio")
  2295. AC_SUBST(LIB_KSYCOCA, "-lksycoca")
  2296. AC_SUBST(LIB_SMB, "-lsmb")
  2297. AC_SUBST(LIB_KFILE, "-lkfile")
  2298. AC_SUBST(LIB_KAB, "-lkab")
  2299. AC_SUBST(LIB_KHTML, "-lkhtml")
  2300. AC_SUBST(LIB_KSPELL, "-lkspell")
  2301. AC_SUBST(LIB_KPARTS, "-lkparts")
  2302. AC_SUBST(LIB_KDEPRINT, "-lkdeprint")
  2303. else
  2304. AC_SUBST(LIB_KDECORE, "-lkdecore -lXext $(LIB_QT)")
  2305. AC_SUBST(LIB_KDEUI, "-lkdeui $(LIB_KDECORE)")
  2306. AC_SUBST(LIB_KFM, "-lkfm $(LIB_KDECORE)")
  2307. AC_SUBST(LIB_KFILE, "-lkfile $(LIB_KFM) $(LIB_KDEUI)")
  2308. AC_SUBST(LIB_KAB, "-lkab $(LIB_KIMGIO) $(LIB_KDECORE)")
  2309. fi
  2310. ])
  2311. m4trace:acinclude.m4:2134: -1- AC_DEFUN([AC_PATH_KDE], [
  2312. AC_BASE_PATH_KDE
  2313. AC_ARG_ENABLE(path-check,AC_HELP_STRING([--disable-path-check],[don't try to find out, where to install]),
  2314. [
  2315. if test "$enableval" = "no";
  2316. then ac_use_path_checking="default"
  2317. else ac_use_path_checking=""
  2318. fi
  2319. ],
  2320. [
  2321. if test "$kde_qtver" = 1;
  2322. then ac_use_path_checking=""
  2323. else ac_use_path_checking="default"
  2324. fi
  2325. ]
  2326. )
  2327. AC_CREATE_KFSSTND($ac_use_path_checking)
  2328. AC_SUBST_KFSSTND
  2329. KDE_CREATE_LIBS_ALIASES
  2330. ])
  2331. m4trace:acinclude.m4:2226: -1- AC_DEFUN([KDE_CHECK_FUNC_EXT], [
  2332. AC_MSG_CHECKING(for $1)
  2333. AC_CACHE_VAL(kde_cv_func_$1,
  2334. [
  2335. AC_LANG_SAVE
  2336. AC_LANG_CPLUSPLUS
  2337. save_CXXFLAGS="$CXXFLAGS"
  2338. kde_safe_LIBS="$LIBS"
  2339. LIBS="$LIBS $X_EXTRA_LIBS"
  2340. if test "$GXX" = "yes"; then
  2341. CXXFLAGS="$CXXFLAGS -pedantic-errors"
  2342. fi
  2343. AC_TRY_COMPILE([
  2344. $2
  2345. ],
  2346. [
  2347. $3
  2348. ],
  2349. kde_cv_func_$1=yes,
  2350. kde_cv_func_$1=no)
  2351. CXXFLAGS="$save_CXXFLAGS"
  2352. LIBS="$kde_safe_LIBS"
  2353. AC_LANG_RESTORE
  2354. ])
  2355. AC_MSG_RESULT($kde_cv_func_$1)
  2356. AC_MSG_CHECKING([if $1 needs custom prototype])
  2357. AC_CACHE_VAL(kde_cv_proto_$1,
  2358. [
  2359. if test "x$kde_cv_func_$1" = xyes; then
  2360. kde_cv_proto_$1=no
  2361. else
  2362. case "$1" in
  2363. setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
  2364. kde_cv_proto_$1="yes - in libkdefakes"
  2365. ;;
  2366. *)
  2367. kde_cv_proto_$1=unknown
  2368. ;;
  2369. esac
  2370. fi
  2371. if test "x$kde_cv_proto_$1" = xunknown; then
  2372. AC_LANG_SAVE
  2373. AC_LANG_CPLUSPLUS
  2374. kde_safe_libs=$LIBS
  2375. LIBS="$LIBS $X_EXTRA_LIBS"
  2376. AC_TRY_LINK([
  2377. $2
  2378. extern "C" $4;
  2379. ],
  2380. [
  2381. $3
  2382. ],
  2383. [ kde_cv_func_$1=yes
  2384. kde_cv_proto_$1=yes ],
  2385. [kde_cv_proto_$1="$1 unavailable"]
  2386. )
  2387. LIBS=$kde_safe_libs
  2388. AC_LANG_RESTORE
  2389. fi
  2390. ])
  2391. AC_MSG_RESULT($kde_cv_proto_$1)
  2392. if test "x$kde_cv_func_$1" = xyes; then
  2393. AC_DEFINE(HAVE_$5, 1, [Define if you have $1])
  2394. $6
  2395. fi
  2396. if test "x$kde_cv_proto_$1" = xno; then
  2397. AC_DEFINE(HAVE_$5_PROTO, 1,
  2398. [Define if you have the $1 prototype])
  2399. fi
  2400. AH_VERBATIM([_HAVE_$5_PROTO],
  2401. [
  2402. #if !defined(HAVE_$5_PROTO)
  2403. #ifdef __cplusplus
  2404. extern "C" {
  2405. #endif
  2406. $4;
  2407. #ifdef __cplusplus
  2408. }
  2409. #endif
  2410. #endif
  2411. ])
  2412. ])
  2413. m4trace:acinclude.m4:2236: -1- AC_DEFUN([AC_CHECK_SETENV], [
  2414. KDE_CHECK_FUNC_EXT(setenv, [
  2415. #include <stdlib.h>
  2416. ],
  2417. [setenv("VAR", "VALUE", 1);],
  2418. [int setenv (const char *, const char *, int)],
  2419. [SETENV])
  2420. ])
  2421. m4trace:acinclude.m4:2246: -1- AC_DEFUN([AC_CHECK_UNSETENV], [
  2422. KDE_CHECK_FUNC_EXT(unsetenv, [
  2423. #include <stdlib.h>
  2424. ],
  2425. [unsetenv("VAR");],
  2426. [void unsetenv (const char *)],
  2427. [UNSETENV])
  2428. ])
  2429. m4trace:acinclude.m4:2262: -1- AC_DEFUN([AC_CHECK_GETDOMAINNAME], [
  2430. KDE_CHECK_FUNC_EXT(getdomainname, [
  2431. #include <stdlib.h>
  2432. #include <unistd.h>
  2433. #include <netdb.h>
  2434. ],
  2435. [
  2436. char buffer[200];
  2437. getdomainname(buffer, 200);
  2438. ],
  2439. [#include <sys/types.h>
  2440. int getdomainname (char *, size_t)],
  2441. [GETDOMAINNAME])
  2442. ])
  2443. m4trace:acinclude.m4:2276: -1- AC_DEFUN([AC_CHECK_GETHOSTNAME], [
  2444. KDE_CHECK_FUNC_EXT(gethostname, [
  2445. #include <stdlib.h>
  2446. #include <unistd.h>
  2447. ],
  2448. [
  2449. char buffer[200];
  2450. gethostname(buffer, 200);
  2451. ],
  2452. [int gethostname (char *, unsigned int)],
  2453. [GETHOSTNAME])
  2454. ])
  2455. m4trace:acinclude.m4:2288: -1- AC_DEFUN([AC_CHECK_USLEEP], [
  2456. KDE_CHECK_FUNC_EXT(usleep, [
  2457. #include <unistd.h>
  2458. ],
  2459. [
  2460. usleep(200);
  2461. ],
  2462. [int usleep (unsigned int)],
  2463. [USLEEP])
  2464. ])
  2465. m4trace:acinclude.m4:2311: -1- AC_DEFUN([AC_CHECK_RANDOM], [
  2466. KDE_CHECK_FUNC_EXT(random, [
  2467. #include <stdlib.h>
  2468. ],
  2469. [
  2470. random();
  2471. ],
  2472. [long int random(void)],
  2473. [RANDOM])
  2474. KDE_CHECK_FUNC_EXT(srandom, [
  2475. #include <stdlib.h>
  2476. ],
  2477. [
  2478. srandom(27);
  2479. ],
  2480. [void srandom(unsigned int)],
  2481. [SRANDOM])
  2482. ])
  2483. m4trace:acinclude.m4:2326: -1- AC_DEFUN([AC_CHECK_INITGROUPS], [
  2484. KDE_CHECK_FUNC_EXT(initgroups, [
  2485. #include <sys/types.h>
  2486. #include <unistd.h>
  2487. #include <grp.h>
  2488. ],
  2489. [
  2490. char buffer[200];
  2491. initgroups(buffer, 27);
  2492. ],
  2493. [int initgroups(const char *, gid_t)],
  2494. [INITGROUPS])
  2495. ])
  2496. m4trace:acinclude.m4:2339: -1- AC_DEFUN([AC_CHECK_MKSTEMPS], [
  2497. KDE_CHECK_FUNC_EXT(mkstemps, [
  2498. #include <stdlib.h>
  2499. #include <unistd.h>
  2500. ],
  2501. [
  2502. mkstemps("/tmp/aaaXXXXXX", 6);
  2503. ],
  2504. [int mkstemps(char *, int)],
  2505. [MKSTEMPS])
  2506. ])
  2507. m4trace:acinclude.m4:2352: -1- AC_DEFUN([AC_CHECK_MKSTEMP], [
  2508. KDE_CHECK_FUNC_EXT(mkstemp, [
  2509. #include <stdlib.h>
  2510. #include <unistd.h>
  2511. ],
  2512. [
  2513. mkstemp("/tmp/aaaXXXXXX");
  2514. ],
  2515. [int mkstemp(char *)],
  2516. [MKSTEMP])
  2517. ])
  2518. m4trace:acinclude.m4:2365: -1- AC_DEFUN([AC_CHECK_MKDTEMP], [
  2519. KDE_CHECK_FUNC_EXT(mkdtemp, [
  2520. #include <stdlib.h>
  2521. #include <unistd.h>
  2522. ],
  2523. [
  2524. mkdtemp("/tmp/aaaXXXXXX");
  2525. ],
  2526. [char *mkdtemp(char *)],
  2527. [MKDTEMP])
  2528. ])
  2529. m4trace:acinclude.m4:2403: -1- AC_DEFUN([AC_CHECK_RES_INIT], [
  2530. AC_MSG_CHECKING([if res_init needs -lresolv])
  2531. kde_libs_safe="$LIBS"
  2532. LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
  2533. AC_TRY_LINK(
  2534. [
  2535. #include <sys/types.h>
  2536. #include <netinet/in.h>
  2537. #include <arpa/nameser.h>
  2538. #include <resolv.h>
  2539. ],
  2540. [
  2541. res_init();
  2542. ],
  2543. [
  2544. LIBRESOLV="-lresolv"
  2545. AC_MSG_RESULT(yes)
  2546. AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
  2547. ],
  2548. [ AC_MSG_RESULT(no) ]
  2549. )
  2550. LIBS=$kde_libs_safe
  2551. AC_SUBST(LIBRESOLV)
  2552. KDE_CHECK_FUNC_EXT(res_init,
  2553. [
  2554. #include <sys/types.h>
  2555. #include <netinet/in.h>
  2556. #include <arpa/nameser.h>
  2557. #include <resolv.h>
  2558. ],
  2559. [res_init()],
  2560. [int res_init(void)],
  2561. [RES_INIT])
  2562. ])
  2563. m4trace:acinclude.m4:2415: -1- AC_DEFUN([AC_CHECK_STRLCPY], [
  2564. KDE_CHECK_FUNC_EXT(strlcpy, [
  2565. #include <string.h>
  2566. ],
  2567. [ char buf[20];
  2568. strlcpy(buf, "KDE function test", sizeof(buf));
  2569. ],
  2570. [unsigned long strlcpy(char*, const char*, unsigned long)],
  2571. [STRLCPY])
  2572. ])
  2573. m4trace:acinclude.m4:2428: -1- AC_DEFUN([AC_CHECK_STRLCAT], [
  2574. KDE_CHECK_FUNC_EXT(strlcat, [
  2575. #include <string.h>
  2576. ],
  2577. [ char buf[20];
  2578. buf[0]='\0';
  2579. strlcat(buf, "KDE function test", sizeof(buf));
  2580. ],
  2581. [unsigned long strlcat(char*, const char*, unsigned long)],
  2582. [STRLCAT])
  2583. ])
  2584. m4trace:acinclude.m4:2444: -1- AC_DEFUN([AC_CHECK_RES_QUERY], [
  2585. KDE_CHECK_FUNC_EXT(res_query, [
  2586. #include <sys/types.h>
  2587. #include <netinet/in.h>
  2588. #include <arpa/nameser.h>
  2589. #include <resolv.h>
  2590. #include <netdb.h>
  2591. ],
  2592. [
  2593. res_query(NULL, 0, 0, NULL, 0);
  2594. ],
  2595. [int res_query(const char *, int, int, unsigned char *, int)],
  2596. [RES_QUERY])
  2597. ])
  2598. m4trace:acinclude.m4:2459: -1- AC_DEFUN([AC_CHECK_DN_SKIPNAME], [
  2599. KDE_CHECK_FUNC_EXT(dn_skipname, [
  2600. #include <sys/types.h>
  2601. #include <netinet/in.h>
  2602. #include <arpa/nameser.h>
  2603. #include <resolv.h>
  2604. ],
  2605. [
  2606. dn_skipname (NULL, NULL);
  2607. ],
  2608. [int dn_skipname (unsigned char *, unsigned char *)],
  2609. [DN_SKIPNAME])
  2610. ])
  2611. m4trace:acinclude.m4:2494: -1- AC_DEFUN([AC_FIND_GIF], [AC_MSG_CHECKING([for giflib])
  2612. AC_CACHE_VAL(ac_cv_lib_gif,
  2613. [ac_save_LIBS="$LIBS"
  2614. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  2615. LIBS="$all_libraries -lgif -lX11 $LIBSOCKET"
  2616. else
  2617. LIBS="$all_libraries -lgif"
  2618. fi
  2619. AC_TRY_LINK(dnl
  2620. [
  2621. #ifdef __cplusplus
  2622. extern "C" {
  2623. #endif
  2624. int GifLastError(void);
  2625. #ifdef __cplusplus
  2626. }
  2627. #endif
  2628. /* We use char because int might match the return type of a gcc2
  2629. builtin and then its argument prototype would still apply. */
  2630. ],
  2631. [return GifLastError();],
  2632. eval "ac_cv_lib_gif=yes",
  2633. eval "ac_cv_lib_gif=no")
  2634. LIBS="$ac_save_LIBS"
  2635. ])dnl
  2636. if eval "test \"`echo $ac_cv_lib_gif`\" = yes"; then
  2637. AC_MSG_RESULT(yes)
  2638. AC_DEFINE_UNQUOTED(HAVE_LIBGIF, 1, [Define if you have libgif])
  2639. else
  2640. AC_MSG_ERROR(You need giflib30. Please install the kdesupport package)
  2641. fi
  2642. ])
  2643. m4trace:acinclude.m4:2530: -1- AC_DEFUN([KDE_FIND_JPEG_HELPER], [
  2644. AC_MSG_CHECKING([for libjpeg$2])
  2645. AC_CACHE_VAL(ac_cv_lib_jpeg_$1,
  2646. [
  2647. ac_save_LIBS="$LIBS"
  2648. LIBS="$all_libraries $USER_LDFLAGS -ljpeg$2 -lm"
  2649. ac_save_CFLAGS="$CFLAGS"
  2650. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  2651. AC_TRY_LINK(
  2652. [
  2653. #ifdef __cplusplus
  2654. extern "C" {
  2655. #endif
  2656. void jpeg_CreateDecompress();
  2657. #ifdef __cplusplus
  2658. }
  2659. #endif
  2660. ],
  2661. [jpeg_CreateDecompress();],
  2662. eval "ac_cv_lib_jpeg_$1=-ljpeg$2",
  2663. eval "ac_cv_lib_jpeg_$1=no")
  2664. LIBS="$ac_save_LIBS"
  2665. CFLAGS="$ac_save_CFLAGS"
  2666. ])
  2667. if eval "test ! \"`echo $ac_cv_lib_jpeg_$1`\" = no"; then
  2668. LIBJPEG="$ac_cv_lib_jpeg_$1"
  2669. AC_MSG_RESULT($ac_cv_lib_jpeg_$1)
  2670. else
  2671. AC_MSG_RESULT(no)
  2672. $3
  2673. fi
  2674. ])
  2675. m4trace:acinclude.m4:2582: -1- AC_DEFUN([AC_FIND_JPEG], [
  2676. dnl first look for libraries
  2677. KDE_FIND_JPEG_HELPER(6b, 6b,
  2678. KDE_FIND_JPEG_HELPER(normal, [],
  2679. [
  2680. LIBJPEG=
  2681. ]
  2682. )
  2683. )
  2684. dnl then search the headers (can't use simply AC_TRY_xxx, as jpeglib.h
  2685. dnl requires system dependent includes loaded before it)
  2686. jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
  2687. AC_FIND_FILE(jpeglib.h, $jpeg_incdirs, jpeg_incdir)
  2688. test "x$jpeg_incdir" = xNO && jpeg_incdir=
  2689. dnl if headers _and_ libraries are missing, this is no error, and we
  2690. dnl continue with a warning (the user will get no jpeg support in khtml)
  2691. dnl if only one is missing, it means a configuration error, but we still
  2692. dnl only warn
  2693. if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
  2694. AC_DEFINE_UNQUOTED(HAVE_LIBJPEG, 1, [Define if you have libjpeg])
  2695. else
  2696. if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
  2697. AC_MSG_WARN([
  2698. There is an installation error in jpeg support. You seem to have only one
  2699. of either the headers _or_ the libraries installed. You may need to either
  2700. provide correct --with-extra-... options, or the development package of
  2701. libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
  2702. Disabling JPEG support.
  2703. ])
  2704. else
  2705. AC_MSG_WARN([libjpeg not found. disable JPEG support.])
  2706. fi
  2707. jpeg_incdir=
  2708. LIBJPEG=
  2709. fi
  2710. AC_SUBST(LIBJPEG)
  2711. AH_VERBATIM(_AC_CHECK_JPEG,
  2712. [/*
  2713. * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
  2714. * headers and I'm too lazy to write a configure test as long as only
  2715. * unixware is related
  2716. */
  2717. #ifdef _UNIXWARE
  2718. #define HAVE_BOOLEAN
  2719. #endif
  2720. ])
  2721. ])
  2722. m4trace:acinclude.m4:2619: -1- AC_DEFUN([KDE_CHECK_QT_JPEG], [
  2723. if test -n "$LIBJPEG"; then
  2724. AC_MSG_CHECKING([if Qt needs $LIBJPEG])
  2725. AC_CACHE_VAL(kde_cv_qt_jpeg,
  2726. [
  2727. AC_LANG_SAVE
  2728. AC_LANG_CPLUSPLUS
  2729. ac_save_LIBS="$LIBS"
  2730. LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
  2731. LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
  2732. ac_save_CXXFLAGS="$CXXFLAGS"
  2733. CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
  2734. AC_TRY_LINK(
  2735. [#include <qapplication.h>],
  2736. [
  2737. int argc;
  2738. char** argv;
  2739. QApplication app(argc, argv);],
  2740. eval "kde_cv_qt_jpeg=no",
  2741. eval "kde_cv_qt_jpeg=yes")
  2742. LIBS="$ac_save_LIBS"
  2743. CXXFLAGS="$ac_save_CXXFLAGS"
  2744. AC_LANG_RESTORE
  2745. fi
  2746. ])
  2747. if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
  2748. AC_MSG_RESULT(yes)
  2749. LIBJPEG_QT='$(LIBJPEG)'
  2750. else
  2751. AC_MSG_RESULT(no)
  2752. LIBJPEG_QT=
  2753. fi
  2754. ])
  2755. m4trace:acinclude.m4:2661: -1- AC_DEFUN([AC_FIND_ZLIB], [
  2756. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2757. AC_MSG_CHECKING([for libz])
  2758. AC_CACHE_VAL(ac_cv_lib_z,
  2759. [
  2760. kde_save_LIBS="$LIBS"
  2761. LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
  2762. kde_save_CFLAGS="$CFLAGS"
  2763. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  2764. AC_TRY_LINK(dnl
  2765. [
  2766. #include<zlib.h>
  2767. ],
  2768. [
  2769. char buf[42];
  2770. gzFile f = (gzFile) 0;
  2771. /* this would segfault.. but we only link, don't run */
  2772. (void) gzgets(f, buf, sizeof(buf));
  2773. return (zlibVersion() == ZLIB_VERSION);
  2774. ],
  2775. eval "ac_cv_lib_z='-lz'",
  2776. eval "ac_cv_lib_z=no")
  2777. LIBS="$kde_save_LIBS"
  2778. CFLAGS="$kde_save_CFLAGS"
  2779. ])dnl
  2780. if test ! "$ac_cv_lib_z" = no; then
  2781. AC_DEFINE_UNQUOTED(HAVE_LIBZ, 1, [Define if you have libz])
  2782. LIBZ="$ac_cv_lib_z"
  2783. AC_MSG_RESULT($ac_cv_lib_z)
  2784. else
  2785. AC_MSG_ERROR(not found.
  2786. Possibly configure picks up an outdated version
  2787. installed by XFree86. Remove it from your system.
  2788. Check your installation and look into config.log)
  2789. LIBZ=""
  2790. fi
  2791. AC_SUBST(LIBZ)
  2792. ])
  2793. m4trace:acinclude.m4:2707: -1- AC_DEFUN([KDE_TRY_TIFFLIB], [
  2794. AC_MSG_CHECKING([for libtiff $1])
  2795. AC_CACHE_VAL(kde_cv_libtiff_$1,
  2796. [
  2797. AC_LANG_SAVE
  2798. AC_LANG_CPLUSPLUS
  2799. kde_save_LIBS="$LIBS"
  2800. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  2801. LIBS="$all_libraries $USER_LDFLAGS -l$1 $LIBJPEG $LIBZ -lX11 $LIBSOCKET -lm"
  2802. else
  2803. LIBS="$all_libraries $USER_LDFLAGS -l$1 $LIBJPEG $LIBZ -lm"
  2804. fi
  2805. kde_save_CXXFLAGS="$CXXFLAGS"
  2806. CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
  2807. AC_TRY_LINK(dnl
  2808. [
  2809. #include<tiffio.h>
  2810. ],
  2811. [return (TIFFOpen( "", "r") == 0); ],
  2812. [
  2813. kde_cv_libtiff_$1="-l$1 $LIBJPEG $LIBZ"
  2814. ], [
  2815. kde_cv_libtiff_$1=no
  2816. ])
  2817. LIBS="$kde_save_LIBS"
  2818. CXXFLAGS="$kde_save_CXXFLAGS"
  2819. AC_LANG_RESTORE
  2820. ])
  2821. if test "$kde_cv_libtiff_$1" = "no"; then
  2822. AC_MSG_RESULT(no)
  2823. LIBTIFF=""
  2824. $3
  2825. else
  2826. LIBTIFF="$kde_cv_libtiff_$1"
  2827. AC_MSG_RESULT(yes)
  2828. AC_DEFINE_UNQUOTED(HAVE_LIBTIFF, 1, [Define if you have libtiff])
  2829. $2
  2830. fi
  2831. ])
  2832. m4trace:acinclude.m4:2720: -1- AC_DEFUN([AC_FIND_TIFF], [
  2833. AC_REQUIRE([K_PATH_X])
  2834. AC_REQUIRE([AC_FIND_ZLIB])
  2835. AC_REQUIRE([AC_FIND_JPEG])
  2836. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2837. KDE_TRY_TIFFLIB(tiff, [],
  2838. KDE_TRY_TIFFLIB(tiff34))
  2839. AC_SUBST(LIBTIFF)
  2840. ])
  2841. m4trace:acinclude.m4:2786: -1- AC_DEFUN([KDE_FIND_LIBEXR], [
  2842. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2843. AC_REQUIRE([AC_FIND_ZLIB])
  2844. AC_CACHE_VAL(ac_cv_libexr,
  2845. [
  2846. if test -z "$PKG_CONFIG"; then
  2847. AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  2848. fi
  2849. AC_MSG_CHECKING([for OpenEXR libraries])
  2850. if test "$PKG_CONFIG" = "no" ; then
  2851. AC_MSG_RESULT(no)
  2852. echo "*** The pkg-config script could not be found. Make sure it is"
  2853. echo "*** in your path, or set the PKG_CONFIG environment variable"
  2854. echo "*** to the full path to pkg-config."
  2855. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  2856. else
  2857. if !(`$PKG_CONFIG --exists OpenEXR`) ; then
  2858. AC_MSG_RESULT(no)
  2859. EXRSTATUS=no
  2860. else
  2861. if !(`$PKG_CONFIG --atleast-version="1.1.1" OpenEXR`) ; then
  2862. AC_MSG_RESULT(no)
  2863. EXRSTATUS=old
  2864. else
  2865. kde_save_LIBS="$LIBS"
  2866. LIBS="$LIBS $all_libraries $USER_LDFLAGS `pkg-config --libs OpenEXR` $LIBZ"
  2867. AC_LANG_SAVE
  2868. AC_LANG_CPLUSPLUS
  2869. kde_save_CXXFLAGS="$CXXFLAGS"
  2870. EXR_FLAGS=`$PKG_CONFIG --cflags OpenEXR`
  2871. CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES $EXR_FLAGS"
  2872. AC_TRY_LINK(dnl
  2873. [
  2874. #include <ImfRgbaFile.h>
  2875. ],
  2876. [
  2877. using namespace Imf;
  2878. RgbaInputFile file ("dummy");
  2879. return 0;
  2880. ],
  2881. eval "ac_cv_libexr='`pkg-config --libs OpenEXR`'",
  2882. eval "ac_cv_libexr=no"
  2883. )
  2884. LIBS="$kde_save_LIBS"
  2885. CXXFLAGS="$kde_save_CXXFLAGS"
  2886. AC_LANG_RESTORE
  2887. ])dnl
  2888. if eval "test ! \"`echo $ac_cv_libexr`\" = no"; then
  2889. AC_DEFINE_UNQUOTED(HAVE_EXR, 1, [Define if you have OpenEXR])
  2890. LIB_EXR="$ac_cv_libexr"
  2891. AC_MSG_RESULT($ac_cv_libexr)
  2892. else
  2893. AC_MSG_RESULT(no)
  2894. LIB_EXR=""
  2895. fi
  2896. fi
  2897. fi
  2898. fi
  2899. AC_SUBST(LIB_EXR)
  2900. AC_SUBST(EXR_FLAGS)
  2901. ])
  2902. m4trace:acinclude.m4:2831: -1- AC_DEFUN([AC_FIND_PNG], [
  2903. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2904. AC_REQUIRE([AC_FIND_ZLIB])
  2905. AC_MSG_CHECKING([for libpng])
  2906. AC_CACHE_VAL(ac_cv_lib_png,
  2907. [
  2908. kde_save_LIBS="$LIBS"
  2909. if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
  2910. LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
  2911. else
  2912. LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
  2913. fi
  2914. kde_save_CFLAGS="$CFLAGS"
  2915. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  2916. AC_TRY_LINK(dnl
  2917. [
  2918. #include<png.h>
  2919. ],
  2920. [
  2921. png_structp png_ptr = png_create_read_struct( /* image ptr */
  2922. PNG_LIBPNG_VER_STRING, 0, 0, 0 );
  2923. return( png_ptr != 0 );
  2924. ],
  2925. eval "ac_cv_lib_png='-lpng $LIBZ -lm'",
  2926. eval "ac_cv_lib_png=no"
  2927. )
  2928. LIBS="$kde_save_LIBS"
  2929. CFLAGS="$kde_save_CFLAGS"
  2930. ])dnl
  2931. if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
  2932. AC_DEFINE_UNQUOTED(HAVE_LIBPNG, 1, [Define if you have libpng])
  2933. LIBPNG="$ac_cv_lib_png"
  2934. AC_SUBST(LIBPNG)
  2935. AC_MSG_RESULT($ac_cv_lib_png)
  2936. else
  2937. AC_MSG_RESULT(no)
  2938. LIBPNG=""
  2939. AC_SUBST(LIBPNG)
  2940. fi
  2941. ])
  2942. m4trace:acinclude.m4:2868: -1- AC_DEFUN([AC_FIND_JASPER], [
  2943. AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
  2944. AC_REQUIRE([AC_FIND_JPEG])
  2945. AC_MSG_CHECKING([for jasper])
  2946. AC_CACHE_VAL(ac_cv_jasper,
  2947. [
  2948. kde_save_LIBS="$LIBS"
  2949. LIBS="$LIBS $all_libraries $USER_LDFLAGS -ljasper $LIBJPEG -lm"
  2950. kde_save_CFLAGS="$CFLAGS"
  2951. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  2952. AC_TRY_LINK(dnl
  2953. [
  2954. #include<jasper/jasper.h>
  2955. ],
  2956. [
  2957. return( jas_init() );
  2958. ],
  2959. eval "ac_cv_jasper='-ljasper $LIBJPEG -lm'",
  2960. eval "ac_cv_jasper=no"
  2961. )
  2962. LIBS="$kde_save_LIBS"
  2963. CFLAGS="$kde_save_CFLAGS"
  2964. ])dnl
  2965. if eval "test ! \"`echo $ac_cv_jasper`\" = no"; then
  2966. AC_DEFINE_UNQUOTED(HAVE_JASPER, 1, [Define if you have jasper])
  2967. LIB_JASPER="$ac_cv_jasper"
  2968. AC_MSG_RESULT($ac_cv_jasper)
  2969. else
  2970. AC_MSG_RESULT(no)
  2971. LIB_JASPER=""
  2972. fi
  2973. AC_SUBST(LIB_JASPER)
  2974. ])
  2975. m4trace:acinclude.m4:2873: -1- AC_DEFUN([AC_CHECK_BOOL], [
  2976. AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
  2977. ])
  2978. m4trace:acinclude.m4:2901: -1- AC_DEFUN([AC_CHECK_GNU_EXTENSIONS], [
  2979. AC_MSG_CHECKING(if you need GNU extensions)
  2980. AC_CACHE_VAL(ac_cv_gnu_extensions,
  2981. [
  2982. cat > conftest.c << EOF
  2983. #include <features.h>
  2984. #ifdef __GNU_LIBRARY__
  2985. yes
  2986. #endif
  2987. EOF
  2988. if (eval "$ac_cpp conftest.c") 2>&5 |
  2989. egrep "yes" >/dev/null 2>&1; then
  2990. rm -rf conftest*
  2991. ac_cv_gnu_extensions=yes
  2992. else
  2993. ac_cv_gnu_extensions=no
  2994. fi
  2995. ])
  2996. AC_MSG_RESULT($ac_cv_gnu_extensions)
  2997. if test "$ac_cv_gnu_extensions" = "yes"; then
  2998. AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
  2999. fi
  3000. ])
  3001. m4trace:acinclude.m4:2926: -1- AC_DEFUN([KDE_CHECK_COMPILER_FLAG], [
  3002. AC_MSG_CHECKING([whether $CXX supports -$1])
  3003. kde_cache=`echo $1 | sed 'y% .=/+-,%____p__%'`
  3004. AC_CACHE_VAL(kde_cv_prog_cxx_$kde_cache,
  3005. [
  3006. AC_LANG_SAVE
  3007. AC_LANG_CPLUSPLUS
  3008. save_CXXFLAGS="$CXXFLAGS"
  3009. CXXFLAGS="$CXXFLAGS -$1"
  3010. AC_TRY_LINK([],[ return 0; ], [eval "kde_cv_prog_cxx_$kde_cache=yes"], [])
  3011. CXXFLAGS="$save_CXXFLAGS"
  3012. AC_LANG_RESTORE
  3013. ])
  3014. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  3015. AC_MSG_RESULT(yes)
  3016. :
  3017. $2
  3018. else
  3019. AC_MSG_RESULT(no)
  3020. :
  3021. $3
  3022. fi
  3023. ])
  3024. m4trace:acinclude.m4:2951: -1- AC_DEFUN([KDE_CHECK_C_COMPILER_FLAG], [
  3025. AC_MSG_CHECKING([whether $CC supports -$1])
  3026. kde_cache=`echo $1 | sed 'y% .=/+-,%____p__%'`
  3027. AC_CACHE_VAL(kde_cv_prog_cc_$kde_cache,
  3028. [
  3029. AC_LANG_SAVE