/[svn]/vendor/pxys2-2.0.0/pxyscand/aclocal.m4
ViewVC logotype

Contents of /vendor/pxys2-2.0.0/pxyscand/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3252 - (show annotations)
Wed Apr 2 20:41:43 2014 UTC (7 years ago) by michael
File size: 38982 byte(s)
- Imported pxys2-2.0.0

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

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28