1# generated automatically by aclocal 1.8.5 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 4# Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14# Configure paths for FreeType2 15# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor 16# 17# Copyright 2001, 2003 by 18# David Turner, Robert Wilhelm, and Werner Lemberg. 19# 20# This file is part of the FreeType project, and may only be used, modified, 21# and distributed under the terms of the FreeType project license, 22# LICENSE.TXT. By continuing to use, modify, or distribute this file you 23# indicate that you have read the license and understand and accept it 24# fully. 25# 26# As a special exception to the FreeType project license, this file may be 27# distributed as part of a program that contains a configuration script 28# generated by Autoconf, under the same distribution terms as the rest of 29# that program. 30# 31# serial 2 32 33# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 34# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS. 35# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is 36# FreeType 2.0.4). 37# 38AC_DEFUN([AC_CHECK_FT2], 39 [# Get the cflags and libraries from the freetype-config script 40 # 41 AC_ARG_WITH([ft-prefix], 42 dnl don't quote AS_HELP_STRING! 43 AS_HELP_STRING([--with-ft-prefix=PREFIX], 44 [Prefix where FreeType is installed (optional)]), 45 [ft_config_prefix="$withval"], 46 [ft_config_prefix=""]) 47 48 AC_ARG_WITH([ft-exec-prefix], 49 dnl don't quote AS_HELP_STRING! 50 AS_HELP_STRING([--with-ft-exec-prefix=PREFIX], 51 [Exec prefix where FreeType is installed (optional)]), 52 [ft_config_exec_prefix="$withval"], 53 [ft_config_exec_prefix=""]) 54 55 AC_ARG_ENABLE([freetypetest], 56 dnl don't quote AS_HELP_STRING! 57 AS_HELP_STRING([--disable-freetypetest], 58 [Do not try to compile and run a test FreeType program]), 59 [], 60 [enable_fttest=yes]) 61 62 if test x$ft_config_exec_prefix != x ; then 63 ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" 64 if test x${FT2_CONFIG+set} != xset ; then 65 FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config 66 fi 67 fi 68 69 if test x$ft_config_prefix != x ; then 70 ft_config_args="$ft_config_args --prefix=$ft_config_prefix" 71 if test x${FT2_CONFIG+set} != xset ; then 72 FT2_CONFIG=$ft_config_prefix/bin/freetype-config 73 fi 74 fi 75 76 AC_PATH_PROG([FT2_CONFIG], [freetype-config], [no]) 77 78 min_ft_version=m4_if([$1], [], [7.0.1], [$1]) 79 AC_MSG_CHECKING([for FreeType -- version >= $min_ft_version]) 80 no_ft="" 81 if test "$FT2_CONFIG" = "no" ; then 82 no_ft=yes 83 else 84 FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` 85 FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` 86 ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ 87 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 88 ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ 89 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 90 ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ 91 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 92 ft_min_major_version=`echo $min_ft_version | \ 93 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 94 ft_min_minor_version=`echo $min_ft_version | \ 95 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 96 ft_min_micro_version=`echo $min_ft_version | \ 97 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 98 if test x$enable_fttest = xyes ; then 99 ft_config_is_lt="" 100 if test $ft_config_major_version -lt $ft_min_major_version ; then 101 ft_config_is_lt=yes 102 else 103 if test $ft_config_major_version -eq $ft_min_major_version ; then 104 if test $ft_config_minor_version -lt $ft_min_minor_version ; then 105 ft_config_is_lt=yes 106 else 107 if test $ft_config_minor_version -eq $ft_min_minor_version ; then 108 if test $ft_config_micro_version -lt $ft_min_micro_version ; then 109 ft_config_is_lt=yes 110 fi 111 fi 112 fi 113 fi 114 fi 115 if test x$ft_config_is_lt = xyes ; then 116 no_ft=yes 117 else 118 ac_save_CFLAGS="$CFLAGS" 119 ac_save_LIBS="$LIBS" 120 CFLAGS="$CFLAGS $FT2_CFLAGS" 121 LIBS="$FT2_LIBS $LIBS" 122 123 # 124 # Sanity checks for the results of freetype-config to some extent. 125 # 126 AC_RUN_IFELSE([ 127 AC_LANG_SOURCE([[ 128 129#include <ft2build.h> 130#include FT_FREETYPE_H 131#include <stdio.h> 132#include <stdlib.h> 133 134int 135main() 136{ 137 FT_Library library; 138 FT_Error error; 139 140 error = FT_Init_FreeType(&library); 141 142 if (error) 143 return 1; 144 else 145 { 146 FT_Done_FreeType(library); 147 return 0; 148 } 149} 150 151 ]]) 152 ], 153 [], 154 [no_ft=yes], 155 [echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"]) 156 157 CFLAGS="$ac_save_CFLAGS" 158 LIBS="$ac_save_LIBS" 159 fi # test $ft_config_version -lt $ft_min_version 160 fi # test x$enable_fttest = xyes 161 fi # test "$FT2_CONFIG" = "no" 162 163 if test x$no_ft = x ; then 164 AC_MSG_RESULT([yes]) 165 m4_if([$2], [], [:], [$2]) 166 else 167 AC_MSG_RESULT([no]) 168 if test "$FT2_CONFIG" = "no" ; then 169 AC_MSG_WARN([ 170 171 The freetype-config script installed by FreeType 2 could not be found. 172 If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in 173 your path, or set the FT2_CONFIG environment variable to the 174 full path to freetype-config. 175 ]) 176 else 177 if test x$ft_config_is_lt = xyes ; then 178 AC_MSG_WARN([ 179 180 Your installed version of the FreeType 2 library is too old. 181 If you have different versions of FreeType 2, make sure that 182 correct values for --with-ft-prefix or --with-ft-exec-prefix 183 are used, or set the FT2_CONFIG environment variable to the 184 full path to freetype-config. 185 ]) 186 else 187 AC_MSG_WARN([ 188 189 The FreeType test program failed to run. If your system uses 190 shared libraries and they are installed outside the normal 191 system library path, make sure the variable LD_LIBRARY_PATH 192 (or whatever is appropiate for your system) is correctly set. 193 ]) 194 fi 195 fi 196 197 FT2_CFLAGS="" 198 FT2_LIBS="" 199 m4_if([$3], [], [:], [$3]) 200 fi 201 202 AC_SUBST([FT2_CFLAGS]) 203 AC_SUBST([FT2_LIBS])]) 204 205# end of freetype2.m4 206 207# -*- Autoconf -*- 208# Copyright (C) 2002, 2003 Free Software Foundation, Inc. 209# Generated from amversion.in; do not edit by hand. 210 211# This program is free software; you can redistribute it and/or modify 212# it under the terms of the GNU General Public License as published by 213# the Free Software Foundation; either version 2, or (at your option) 214# any later version. 215 216# This program is distributed in the hope that it will be useful, 217# but WITHOUT ANY WARRANTY; without even the implied warranty of 218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 219# GNU General Public License for more details. 220 221# You should have received a copy of the GNU General Public License 222# along with this program; if not, write to the Free Software 223# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 224 225# AM_AUTOMAKE_VERSION(VERSION) 226# ---------------------------- 227# Automake X.Y traces this macro to ensure aclocal.m4 has been 228# generated from the m4 files accompanying Automake X.Y. 229AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"]) 230 231# AM_SET_CURRENT_AUTOMAKE_VERSION 232# ------------------------------- 233# Call AM_AUTOMAKE_VERSION so it can be traced. 234# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 235AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 236 [AM_AUTOMAKE_VERSION([1.8.5])]) 237 238# AM_AUX_DIR_EXPAND 239 240# Copyright (C) 2001, 2003 Free Software Foundation, Inc. 241 242# This program is free software; you can redistribute it and/or modify 243# it under the terms of the GNU General Public License as published by 244# the Free Software Foundation; either version 2, or (at your option) 245# any later version. 246 247# This program is distributed in the hope that it will be useful, 248# but WITHOUT ANY WARRANTY; without even the implied warranty of 249# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 250# GNU General Public License for more details. 251 252# You should have received a copy of the GNU General Public License 253# along with this program; if not, write to the Free Software 254# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 255# 02111-1307, USA. 256 257# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 258# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 259# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 260# 261# Of course, Automake must honor this variable whenever it calls a 262# tool from the auxiliary directory. The problem is that $srcdir (and 263# therefore $ac_aux_dir as well) can be either absolute or relative, 264# depending on how configure is run. This is pretty annoying, since 265# it makes $ac_aux_dir quite unusable in subdirectories: in the top 266# source directory, any form will work fine, but in subdirectories a 267# relative path needs to be adjusted first. 268# 269# $ac_aux_dir/missing 270# fails when called from a subdirectory if $ac_aux_dir is relative 271# $top_srcdir/$ac_aux_dir/missing 272# fails if $ac_aux_dir is absolute, 273# fails when called from a subdirectory in a VPATH build with 274# a relative $ac_aux_dir 275# 276# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 277# are both prefixed by $srcdir. In an in-source build this is usually 278# harmless because $srcdir is `.', but things will broke when you 279# start a VPATH build or use an absolute $srcdir. 280# 281# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 282# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 283# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 284# and then we would define $MISSING as 285# MISSING="\${SHELL} $am_aux_dir/missing" 286# This will work as long as MISSING is not called from configure, because 287# unfortunately $(top_srcdir) has no meaning in configure. 288# However there are other variables, like CC, which are often used in 289# configure, and could therefore not use this "fixed" $ac_aux_dir. 290# 291# Another solution, used here, is to always expand $ac_aux_dir to an 292# absolute PATH. The drawback is that using absolute paths prevent a 293# configured tree to be moved without reconfiguration. 294 295AC_DEFUN([AM_AUX_DIR_EXPAND], 296[dnl Rely on autoconf to set up CDPATH properly. 297AC_PREREQ([2.50])dnl 298# expand $ac_aux_dir to an absolute path 299am_aux_dir=`cd $ac_aux_dir && pwd` 300]) 301 302# AM_CONDITIONAL -*- Autoconf -*- 303 304# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 305 306# This program is free software; you can redistribute it and/or modify 307# it under the terms of the GNU General Public License as published by 308# the Free Software Foundation; either version 2, or (at your option) 309# any later version. 310 311# This program is distributed in the hope that it will be useful, 312# but WITHOUT ANY WARRANTY; without even the implied warranty of 313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 314# GNU General Public License for more details. 315 316# You should have received a copy of the GNU General Public License 317# along with this program; if not, write to the Free Software 318# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 319# 02111-1307, USA. 320 321# serial 6 322 323# AM_CONDITIONAL(NAME, SHELL-CONDITION) 324# ------------------------------------- 325# Define a conditional. 326AC_DEFUN([AM_CONDITIONAL], 327[AC_PREREQ(2.52)dnl 328 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 329 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 330AC_SUBST([$1_TRUE]) 331AC_SUBST([$1_FALSE]) 332if $2; then 333 $1_TRUE= 334 $1_FALSE='#' 335else 336 $1_TRUE='#' 337 $1_FALSE= 338fi 339AC_CONFIG_COMMANDS_PRE( 340[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 341 AC_MSG_ERROR([conditional "$1" was never defined. 342Usually this means the macro was only invoked conditionally.]) 343fi])]) 344 345# serial 7 -*- Autoconf -*- 346 347# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 348# Free Software Foundation, Inc. 349 350# This program is free software; you can redistribute it and/or modify 351# it under the terms of the GNU General Public License as published by 352# the Free Software Foundation; either version 2, or (at your option) 353# any later version. 354 355# This program is distributed in the hope that it will be useful, 356# but WITHOUT ANY WARRANTY; without even the implied warranty of 357# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 358# GNU General Public License for more details. 359 360# You should have received a copy of the GNU General Public License 361# along with this program; if not, write to the Free Software 362# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 363# 02111-1307, USA. 364 365 366# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 367# written in clear, in which case automake, when reading aclocal.m4, 368# will think it sees a *use*, and therefore will trigger all it's 369# C support machinery. Also note that it means that autoscan, seeing 370# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 371 372 373 374# _AM_DEPENDENCIES(NAME) 375# ---------------------- 376# See how the compiler implements dependency checking. 377# NAME is "CC", "CXX", "GCJ", or "OBJC". 378# We try a few techniques and use that to set a single cache variable. 379# 380# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 381# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 382# dependency, and given that the user is not expected to run this macro, 383# just rely on AC_PROG_CC. 384AC_DEFUN([_AM_DEPENDENCIES], 385[AC_REQUIRE([AM_SET_DEPDIR])dnl 386AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 387AC_REQUIRE([AM_MAKE_INCLUDE])dnl 388AC_REQUIRE([AM_DEP_TRACK])dnl 389 390ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 391 [$1], CXX, [depcc="$CXX" am_compiler_list=], 392 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 393 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 394 [depcc="$$1" am_compiler_list=]) 395 396AC_CACHE_CHECK([dependency style of $depcc], 397 [am_cv_$1_dependencies_compiler_type], 398[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 399 # We make a subdir and do the tests there. Otherwise we can end up 400 # making bogus files that we don't know about and never remove. For 401 # instance it was reported that on HP-UX the gcc test will end up 402 # making a dummy file named `D' -- because `-MD' means `put the output 403 # in D'. 404 mkdir conftest.dir 405 # Copy depcomp to subdir because otherwise we won't find it if we're 406 # using a relative directory. 407 cp "$am_depcomp" conftest.dir 408 cd conftest.dir 409 # We will build objects and dependencies in a subdirectory because 410 # it helps to detect inapplicable dependency modes. For instance 411 # both Tru64's cc and ICC support -MD to output dependencies as a 412 # side effect of compilation, but ICC will put the dependencies in 413 # the current directory while Tru64 will put them in the object 414 # directory. 415 mkdir sub 416 417 am_cv_$1_dependencies_compiler_type=none 418 if test "$am_compiler_list" = ""; then 419 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 420 fi 421 for depmode in $am_compiler_list; do 422 # Setup a source with many dependencies, because some compilers 423 # like to wrap large dependency lists on column 80 (with \), and 424 # we should not choose a depcomp mode which is confused by this. 425 # 426 # We need to recreate these files for each test, as the compiler may 427 # overwrite some of them when testing with obscure command lines. 428 # This happens at least with the AIX C compiler. 429 : > sub/conftest.c 430 for i in 1 2 3 4 5 6; do 431 echo '#include "conftst'$i'.h"' >> sub/conftest.c 432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 433 # Solaris 8's {/usr,}/bin/sh. 434 touch sub/conftst$i.h 435 done 436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 437 438 case $depmode in 439 nosideeffect) 440 # after this tag, mechanisms are not by side-effect, so they'll 441 # only be used when explicitly requested 442 if test "x$enable_dependency_tracking" = xyes; then 443 continue 444 else 445 break 446 fi 447 ;; 448 none) break ;; 449 esac 450 # We check with `-c' and `-o' for the sake of the "dashmstdout" 451 # mode. It turns out that the SunPro C++ compiler does not properly 452 # handle `-M -o', and we need to detect this. 453 if depmode=$depmode \ 454 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 456 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 457 >/dev/null 2>conftest.err && 458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 461 # icc doesn't choke on unknown options, it will just issue warnings 462 # or remarks (even with -Werror). So we grep stderr for any message 463 # that says an option was ignored or not supported. 464 # When given -MP, icc 7.0 and 7.1 complain thusly: 465 # icc: Command line warning: ignoring option '-M'; no argument required 466 # The diagnosis changed in icc 8.0: 467 # icc: Command line remark: option '-MP' not supported 468 if (grep 'ignoring option' conftest.err || 469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 470 am_cv_$1_dependencies_compiler_type=$depmode 471 break 472 fi 473 fi 474 done 475 476 cd .. 477 rm -rf conftest.dir 478else 479 am_cv_$1_dependencies_compiler_type=none 480fi 481]) 482AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 483AM_CONDITIONAL([am__fastdep$1], [ 484 test "x$enable_dependency_tracking" != xno \ 485 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 486]) 487 488 489# AM_SET_DEPDIR 490# ------------- 491# Choose a directory name for dependency files. 492# This macro is AC_REQUIREd in _AM_DEPENDENCIES 493AC_DEFUN([AM_SET_DEPDIR], 494[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 495AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 496]) 497 498 499# AM_DEP_TRACK 500# ------------ 501AC_DEFUN([AM_DEP_TRACK], 502[AC_ARG_ENABLE(dependency-tracking, 503[ --disable-dependency-tracking speeds up one-time build 504 --enable-dependency-tracking do not reject slow dependency extractors]) 505if test "x$enable_dependency_tracking" != xno; then 506 am_depcomp="$ac_aux_dir/depcomp" 507 AMDEPBACKSLASH='\' 508fi 509AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 510AC_SUBST([AMDEPBACKSLASH]) 511]) 512 513# Generate code to set up dependency tracking. -*- Autoconf -*- 514 515# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 516 517# This program is free software; you can redistribute it and/or modify 518# it under the terms of the GNU General Public License as published by 519# the Free Software Foundation; either version 2, or (at your option) 520# any later version. 521 522# This program is distributed in the hope that it will be useful, 523# but WITHOUT ANY WARRANTY; without even the implied warranty of 524# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 525# GNU General Public License for more details. 526 527# You should have received a copy of the GNU General Public License 528# along with this program; if not, write to the Free Software 529# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 530# 02111-1307, USA. 531 532#serial 2 533 534# _AM_OUTPUT_DEPENDENCY_COMMANDS 535# ------------------------------ 536AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 537[for mf in $CONFIG_FILES; do 538 # Strip MF so we end up with the name of the file. 539 mf=`echo "$mf" | sed -e 's/:.*$//'` 540 # Check whether this is an Automake generated Makefile or not. 541 # We used to match only the files named `Makefile.in', but 542 # some people rename them; so instead we look at the file content. 543 # Grep'ing the first line is not enough: some people post-process 544 # each Makefile.in and add a new line on top of each file to say so. 545 # So let's grep whole file. 546 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 547 dirpart=`AS_DIRNAME("$mf")` 548 else 549 continue 550 fi 551 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 552 # Extract the definition of DEP_FILES from the Makefile without 553 # running `make'. 554 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 555 test -z "$DEPDIR" && continue 556 # When using ansi2knr, U may be empty or an underscore; expand it 557 U=`sed -n 's/^U = //p' < "$mf"` 558 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 559 # We invoke sed twice because it is the simplest approach to 560 # changing $(DEPDIR) to its actual value in the expansion. 561 for file in `sed -n ' 562 /^DEP_FILES = .*\\\\$/ { 563 s/^DEP_FILES = // 564 :loop 565 s/\\\\$// 566 p 567 n 568 /\\\\$/ b loop 569 p 570 } 571 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 573 # Make sure the directory exists. 574 test -f "$dirpart/$file" && continue 575 fdir=`AS_DIRNAME(["$file"])` 576 AS_MKDIR_P([$dirpart/$fdir]) 577 # echo "creating $dirpart/$file" 578 echo '# dummy' > "$dirpart/$file" 579 done 580done 581])# _AM_OUTPUT_DEPENDENCY_COMMANDS 582 583 584# AM_OUTPUT_DEPENDENCY_COMMANDS 585# ----------------------------- 586# This macro should only be invoked once -- use via AC_REQUIRE. 587# 588# This code is only required when automatic dependency tracking 589# is enabled. FIXME. This creates each `.P' file that we will 590# need in order to bootstrap the dependency handling code. 591AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 592[AC_CONFIG_COMMANDS([depfiles], 593 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 594 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 595]) 596 597# Do all the work for Automake. -*- Autoconf -*- 598 599# This macro actually does too much some checks are only needed if 600# your package does certain things. But this isn't really a big deal. 601 602# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 603# Free Software Foundation, Inc. 604 605# This program is free software; you can redistribute it and/or modify 606# it under the terms of the GNU General Public License as published by 607# the Free Software Foundation; either version 2, or (at your option) 608# any later version. 609 610# This program is distributed in the hope that it will be useful, 611# but WITHOUT ANY WARRANTY; without even the implied warranty of 612# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 613# GNU General Public License for more details. 614 615# You should have received a copy of the GNU General Public License 616# along with this program; if not, write to the Free Software 617# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 618# 02111-1307, USA. 619 620# serial 11 621 622# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 623# AM_INIT_AUTOMAKE([OPTIONS]) 624# ----------------------------------------------- 625# The call with PACKAGE and VERSION arguments is the old style 626# call (pre autoconf-2.50), which is being phased out. PACKAGE 627# and VERSION should now be passed to AC_INIT and removed from 628# the call to AM_INIT_AUTOMAKE. 629# We support both call styles for the transition. After 630# the next Automake release, Autoconf can make the AC_INIT 631# arguments mandatory, and then we can depend on a new Autoconf 632# release and drop the old call support. 633AC_DEFUN([AM_INIT_AUTOMAKE], 634[AC_PREREQ([2.58])dnl 635dnl Autoconf wants to disallow AM_ names. We explicitly allow 636dnl the ones we care about. 637m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 638AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 639AC_REQUIRE([AC_PROG_INSTALL])dnl 640# test to see if srcdir already configured 641if test "`cd $srcdir && pwd`" != "`pwd`" && 642 test -f $srcdir/config.status; then 643 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 644fi 645 646# test whether we have cygpath 647if test -z "$CYGPATH_W"; then 648 if (cygpath --version) >/dev/null 2>/dev/null; then 649 CYGPATH_W='cygpath -w' 650 else 651 CYGPATH_W=echo 652 fi 653fi 654AC_SUBST([CYGPATH_W]) 655 656# Define the identity of the package. 657dnl Distinguish between old-style and new-style calls. 658m4_ifval([$2], 659[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 660 AC_SUBST([PACKAGE], [$1])dnl 661 AC_SUBST([VERSION], [$2])], 662[_AM_SET_OPTIONS([$1])dnl 663 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 664 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 665 666_AM_IF_OPTION([no-define],, 667[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 668 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 669 670# Some tools Automake needs. 671AC_REQUIRE([AM_SANITY_CHECK])dnl 672AC_REQUIRE([AC_ARG_PROGRAM])dnl 673AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 674AM_MISSING_PROG(AUTOCONF, autoconf) 675AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 676AM_MISSING_PROG(AUTOHEADER, autoheader) 677AM_MISSING_PROG(MAKEINFO, makeinfo) 678AM_MISSING_PROG(AMTAR, tar) 679AM_PROG_INSTALL_SH 680AM_PROG_INSTALL_STRIP 681AC_REQUIRE([AM_PROG_MKDIR_P])dnl 682# We need awk for the "check" target. The system "awk" is bad on 683# some platforms. 684AC_REQUIRE([AC_PROG_AWK])dnl 685AC_REQUIRE([AC_PROG_MAKE_SET])dnl 686AC_REQUIRE([AM_SET_LEADING_DOT])dnl 687 688_AM_IF_OPTION([no-dependencies],, 689[AC_PROVIDE_IFELSE([AC_PROG_CC], 690 [_AM_DEPENDENCIES(CC)], 691 [define([AC_PROG_CC], 692 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 693AC_PROVIDE_IFELSE([AC_PROG_CXX], 694 [_AM_DEPENDENCIES(CXX)], 695 [define([AC_PROG_CXX], 696 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 697]) 698]) 699 700 701# When config.status generates a header, we must update the stamp-h file. 702# This file resides in the same directory as the config header 703# that is generated. The stamp files are numbered to have different names. 704 705# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 706# loop where config.status creates the headers, so we can generate 707# our stamp files there. 708AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 709[# Compute $1's index in $config_headers. 710_am_stamp_count=1 711for _am_header in $config_headers :; do 712 case $_am_header in 713 $1 | $1:* ) 714 break ;; 715 * ) 716 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 717 esac 718done 719echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 720 721# AM_PROG_INSTALL_SH 722# ------------------ 723# Define $install_sh. 724 725# Copyright (C) 2001, 2003 Free Software Foundation, Inc. 726 727# This program is free software; you can redistribute it and/or modify 728# it under the terms of the GNU General Public License as published by 729# the Free Software Foundation; either version 2, or (at your option) 730# any later version. 731 732# This program is distributed in the hope that it will be useful, 733# but WITHOUT ANY WARRANTY; without even the implied warranty of 734# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 735# GNU General Public License for more details. 736 737# You should have received a copy of the GNU General Public License 738# along with this program; if not, write to the Free Software 739# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 740# 02111-1307, USA. 741 742AC_DEFUN([AM_PROG_INSTALL_SH], 743[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 744install_sh=${install_sh-"$am_aux_dir/install-sh"} 745AC_SUBST(install_sh)]) 746 747# -*- Autoconf -*- 748# Copyright (C) 2003 Free Software Foundation, Inc. 749 750# This program is free software; you can redistribute it and/or modify 751# it under the terms of the GNU General Public License as published by 752# the Free Software Foundation; either version 2, or (at your option) 753# any later version. 754 755# This program is distributed in the hope that it will be useful, 756# but WITHOUT ANY WARRANTY; without even the implied warranty of 757# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 758# GNU General Public License for more details. 759 760# You should have received a copy of the GNU General Public License 761# along with this program; if not, write to the Free Software 762# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 763# 02111-1307, USA. 764 765# serial 1 766 767# Check whether the underlying file-system supports filenames 768# with a leading dot. For instance MS-DOS doesn't. 769AC_DEFUN([AM_SET_LEADING_DOT], 770[rm -rf .tst 2>/dev/null 771mkdir .tst 2>/dev/null 772if test -d .tst; then 773 am__leading_dot=. 774else 775 am__leading_dot=_ 776fi 777rmdir .tst 2>/dev/null 778AC_SUBST([am__leading_dot])]) 779 780# Check to see how 'make' treats includes. -*- Autoconf -*- 781 782# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 783 784# This program is free software; you can redistribute it and/or modify 785# it under the terms of the GNU General Public License as published by 786# the Free Software Foundation; either version 2, or (at your option) 787# any later version. 788 789# This program is distributed in the hope that it will be useful, 790# but WITHOUT ANY WARRANTY; without even the implied warranty of 791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 792# GNU General Public License for more details. 793 794# You should have received a copy of the GNU General Public License 795# along with this program; if not, write to the Free Software 796# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 797# 02111-1307, USA. 798 799# serial 2 800 801# AM_MAKE_INCLUDE() 802# ----------------- 803# Check to see how make treats includes. 804AC_DEFUN([AM_MAKE_INCLUDE], 805[am_make=${MAKE-make} 806cat > confinc << 'END' 807am__doit: 808 @echo done 809.PHONY: am__doit 810END 811# If we don't find an include directive, just comment out the code. 812AC_MSG_CHECKING([for style of include used by $am_make]) 813am__include="#" 814am__quote= 815_am_result=none 816# First try GNU make style include. 817echo "include confinc" > confmf 818# We grep out `Entering directory' and `Leaving directory' 819# messages which can occur if `w' ends up in MAKEFLAGS. 820# In particular we don't look at `^make:' because GNU make might 821# be invoked under some other name (usually "gmake"), in which 822# case it prints its new name instead of `make'. 823if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 824 am__include=include 825 am__quote= 826 _am_result=GNU 827fi 828# Now try BSD make style include. 829if test "$am__include" = "#"; then 830 echo '.include "confinc"' > confmf 831 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 832 am__include=.include 833 am__quote="\"" 834 _am_result=BSD 835 fi 836fi 837AC_SUBST([am__include]) 838AC_SUBST([am__quote]) 839AC_MSG_RESULT([$_am_result]) 840rm -f confinc confmf 841]) 842 843# -*- Autoconf -*- 844 845 846# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. 847 848# This program is free software; you can redistribute it and/or modify 849# it under the terms of the GNU General Public License as published by 850# the Free Software Foundation; either version 2, or (at your option) 851# any later version. 852 853# This program is distributed in the hope that it will be useful, 854# but WITHOUT ANY WARRANTY; without even the implied warranty of 855# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 856# GNU General Public License for more details. 857 858# You should have received a copy of the GNU General Public License 859# along with this program; if not, write to the Free Software 860# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 861# 02111-1307, USA. 862 863# serial 3 864 865# AM_MISSING_PROG(NAME, PROGRAM) 866# ------------------------------ 867AC_DEFUN([AM_MISSING_PROG], 868[AC_REQUIRE([AM_MISSING_HAS_RUN]) 869$1=${$1-"${am_missing_run}$2"} 870AC_SUBST($1)]) 871 872 873# AM_MISSING_HAS_RUN 874# ------------------ 875# Define MISSING if not defined so far and test if it supports --run. 876# If it does, set am_missing_run to use it, otherwise, to nothing. 877AC_DEFUN([AM_MISSING_HAS_RUN], 878[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 879test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 880# Use eval to expand $SHELL 881if eval "$MISSING --run true"; then 882 am_missing_run="$MISSING --run " 883else 884 am_missing_run= 885 AC_MSG_WARN([`missing' script is too old or missing]) 886fi 887]) 888 889# AM_PROG_MKDIR_P 890# --------------- 891# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 892 893# Copyright (C) 2003, 2004 Free Software Foundation, Inc. 894 895# This program is free software; you can redistribute it and/or modify 896# it under the terms of the GNU General Public License as published by 897# the Free Software Foundation; either version 2, or (at your option) 898# any later version. 899 900# This program is distributed in the hope that it will be useful, 901# but WITHOUT ANY WARRANTY; without even the implied warranty of 902# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 903# GNU General Public License for more details. 904 905# You should have received a copy of the GNU General Public License 906# along with this program; if not, write to the Free Software 907# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 908# 02111-1307, USA. 909 910# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 911# created by `make install' are always world readable, even if the 912# installer happens to have an overly restrictive umask (e.g. 077). 913# This was a mistake. There are at least two reasons why we must not 914# use `-m 0755': 915# - it causes special bits like SGID to be ignored, 916# - it may be too restrictive (some setups expect 775 directories). 917# 918# Do not use -m 0755 and let people choose whatever they expect by 919# setting umask. 920# 921# We cannot accept any implementation of `mkdir' that recognizes `-p'. 922# Some implementations (such as Solaris 8's) are not thread-safe: if a 923# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 924# concurrently, both version can detect that a/ is missing, but only 925# one can create it and the other will error out. Consequently we 926# restrict ourselves to GNU make (using the --version option ensures 927# this.) 928AC_DEFUN([AM_PROG_MKDIR_P], 929[if mkdir -p . >/dev/null 2>&1 && test ! -d ./--version; then 930 # Keeping the `.' argument allows $(mkdir_p) to be used without 931 # argument. Indeed, we sometimes output rules like 932 # $(mkdir_p) $(somedir) 933 # where $(somedir) is conditionally defined. 934 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 935 # expensive solution, as it forces Make to start a sub-shell.) 936 mkdir_p='mkdir -p -- .' 937else 938 # On NextStep and OpenStep, the `mkdir' command does not 939 # recognize any option. It will interpret all options as 940 # directories to create, and then abort because `.' already 941 # exists. 942 for d in ./-p ./--version; 943 do 944 test -d $d && rmdir $d 945 done 946 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 947 if test -f "$ac_aux_dir/mkinstalldirs"; then 948 mkdir_p='$(mkinstalldirs)' 949 else 950 mkdir_p='$(install_sh) -d' 951 fi 952fi 953AC_SUBST([mkdir_p])]) 954 955# Helper functions for option handling. -*- Autoconf -*- 956 957# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 958 959# This program is free software; you can redistribute it and/or modify 960# it under the terms of the GNU General Public License as published by 961# the Free Software Foundation; either version 2, or (at your option) 962# any later version. 963 964# This program is distributed in the hope that it will be useful, 965# but WITHOUT ANY WARRANTY; without even the implied warranty of 966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 967# GNU General Public License for more details. 968 969# You should have received a copy of the GNU General Public License 970# along with this program; if not, write to the Free Software 971# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 972# 02111-1307, USA. 973 974# serial 2 975 976# _AM_MANGLE_OPTION(NAME) 977# ----------------------- 978AC_DEFUN([_AM_MANGLE_OPTION], 979[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 980 981# _AM_SET_OPTION(NAME) 982# ------------------------------ 983# Set option NAME. Presently that only means defining a flag for this option. 984AC_DEFUN([_AM_SET_OPTION], 985[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 986 987# _AM_SET_OPTIONS(OPTIONS) 988# ---------------------------------- 989# OPTIONS is a space-separated list of Automake options. 990AC_DEFUN([_AM_SET_OPTIONS], 991[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 992 993# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 994# ------------------------------------------- 995# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 996AC_DEFUN([_AM_IF_OPTION], 997[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 998 999# 1000# Check to make sure that the build environment is sane. 1001# 1002 1003# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 1004 1005# This program is free software; you can redistribute it and/or modify 1006# it under the terms of the GNU General Public License as published by 1007# the Free Software Foundation; either version 2, or (at your option) 1008# any later version. 1009 1010# This program is distributed in the hope that it will be useful, 1011# but WITHOUT ANY WARRANTY; without even the implied warranty of 1012# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1013# GNU General Public License for more details. 1014 1015# You should have received a copy of the GNU General Public License 1016# along with this program; if not, write to the Free Software 1017# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 1018# 02111-1307, USA. 1019 1020# serial 3 1021 1022# AM_SANITY_CHECK 1023# --------------- 1024AC_DEFUN([AM_SANITY_CHECK], 1025[AC_MSG_CHECKING([whether build environment is sane]) 1026# Just in case 1027sleep 1 1028echo timestamp > conftest.file 1029# Do `set' in a subshell so we don't clobber the current shell's 1030# arguments. Must try -L first in case configure is actually a 1031# symlink; some systems play weird games with the mod time of symlinks 1032# (eg FreeBSD returns the mod time of the symlink's containing 1033# directory). 1034if ( 1035 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1036 if test "$[*]" = "X"; then 1037 # -L didn't work. 1038 set X `ls -t $srcdir/configure conftest.file` 1039 fi 1040 rm -f conftest.file 1041 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1042 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1043 1044 # If neither matched, then we have a broken ls. This can happen 1045 # if, for instance, CONFIG_SHELL is bash and it inherits a 1046 # broken ls alias from the environment. This has actually 1047 # happened. Such a system could not be considered "sane". 1048 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1049alias in your environment]) 1050 fi 1051 1052 test "$[2]" = conftest.file 1053 ) 1054then 1055 # Ok. 1056 : 1057else 1058 AC_MSG_ERROR([newly created file is older than distributed files! 1059Check your system clock]) 1060fi 1061AC_MSG_RESULT(yes)]) 1062 1063# AM_PROG_INSTALL_STRIP 1064 1065# Copyright (C) 2001, 2003 Free Software Foundation, Inc. 1066 1067# This program is free software; you can redistribute it and/or modify 1068# it under the terms of the GNU General Public License as published by 1069# the Free Software Foundation; either version 2, or (at your option) 1070# any later version. 1071 1072# This program is distributed in the hope that it will be useful, 1073# but WITHOUT ANY WARRANTY; without even the implied warranty of 1074# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1075# GNU General Public License for more details. 1076 1077# You should have received a copy of the GNU General Public License 1078# along with this program; if not, write to the Free Software 1079# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 1080# 02111-1307, USA. 1081 1082# One issue with vendor `install' (even GNU) is that you can't 1083# specify the program used to strip binaries. This is especially 1084# annoying in cross-compiling environments, where the build's strip 1085# is unlikely to handle the host's binaries. 1086# Fortunately install-sh will honor a STRIPPROG variable, so we 1087# always use install-sh in `make install-strip', and initialize 1088# STRIPPROG with the value of the STRIP variable (set by the user). 1089AC_DEFUN([AM_PROG_INSTALL_STRIP], 1090[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1091# Installed binaries are usually stripped using `strip' when the user 1092# run `make install-strip'. However `strip' might not be the right 1093# tool to use in cross-compilation environments, therefore Automake 1094# will honor the `STRIP' environment variable to overrule this program. 1095dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1096if test "$cross_compiling" != no; then 1097 AC_CHECK_TOOL([STRIP], [strip], :) 1098fi 1099INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1100AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1101 1102m4_include([acinclude.m4]) 1103