~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
#                                                        -*- Autoconf -*-
15
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16
 
# Generated from amversion.in; do not edit by hand.
17
 
 
18
 
# This program is free software; you can redistribute it and/or modify
19
 
# it under the terms of the GNU General Public License as published by
20
 
# the Free Software Foundation; either version 2, or (at your option)
21
 
# any later version.
22
 
 
23
 
# This program is distributed in the hope that it will be useful,
24
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 
# GNU General Public License for more details.
27
 
 
28
 
# You should have received a copy of the GNU General Public License
29
 
# along with this program; if not, write to the Free Software
30
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
14
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
15
#
 
16
# This file is free software; the Free Software Foundation
 
17
# gives unlimited permission to copy and/or distribute it,
 
18
# with or without modifications, as long as this notice is preserved.
31
19
 
32
20
# AM_AUTOMAKE_VERSION(VERSION)
33
21
# ----------------------------
34
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
35
23
# generated from the m4 files accompanying Automake X.Y.
36
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
37
25
 
38
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
39
27
# -------------------------------
40
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
41
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43
 
         [AM_AUTOMAKE_VERSION([1.8.3])])
44
 
 
45
 
# AM_AUX_DIR_EXPAND
46
 
 
47
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
48
 
 
49
 
# This program is free software; you can redistribute it and/or modify
50
 
# it under the terms of the GNU General Public License as published by
51
 
# the Free Software Foundation; either version 2, or (at your option)
52
 
# any later version.
53
 
 
54
 
# This program is distributed in the hope that it will be useful,
55
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
56
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57
 
# GNU General Public License for more details.
58
 
 
59
 
# You should have received a copy of the GNU General Public License
60
 
# along with this program; if not, write to the Free Software
61
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
62
 
# 02111-1307, USA.
 
31
         [AM_AUTOMAKE_VERSION([1.9.5])])
 
32
 
 
33
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
34
 
 
35
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
36
#
 
37
# This file is free software; the Free Software Foundation
 
38
# gives unlimited permission to copy and/or distribute it,
 
39
# with or without modifications, as long as this notice is preserved.
63
40
 
64
41
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65
42
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
106
83
am_aux_dir=`cd $ac_aux_dir && pwd`
107
84
])
108
85
 
109
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
110
 
 
111
 
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
112
 
 
113
 
# This program is free software; you can redistribute it and/or modify
114
 
# it under the terms of the GNU General Public License as published by
115
 
# the Free Software Foundation; either version 2, or (at your option)
116
 
# any later version.
117
 
 
118
 
# This program is distributed in the hope that it will be useful,
119
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
120
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
121
 
# GNU General Public License for more details.
122
 
 
123
 
# You should have received a copy of the GNU General Public License
124
 
# along with this program; if not, write to the Free Software
125
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
126
 
# 02111-1307, USA.
127
 
 
128
 
# serial 6
 
86
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
87
 
 
88
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
89
# Free Software Foundation, Inc.
 
90
#
 
91
# This file is free software; the Free Software Foundation
 
92
# gives unlimited permission to copy and/or distribute it,
 
93
# with or without modifications, as long as this notice is preserved.
 
94
 
 
95
# serial 7
129
96
 
130
97
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
131
98
# -------------------------------------
145
112
fi
146
113
AC_CONFIG_COMMANDS_PRE(
147
114
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148
 
  AC_MSG_ERROR([conditional "$1" was never defined.
149
 
Usually this means the macro was only invoked conditionally.])
 
115
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
116
Usually this means the macro was only invoked conditionally.]])
150
117
fi])])
151
118
 
152
 
# serial 7                                              -*- Autoconf -*-
153
119
 
154
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
155
121
# Free Software Foundation, Inc.
156
 
 
157
 
# This program is free software; you can redistribute it and/or modify
158
 
# it under the terms of the GNU General Public License as published by
159
 
# the Free Software Foundation; either version 2, or (at your option)
160
 
# any later version.
161
 
 
162
 
# This program is distributed in the hope that it will be useful,
163
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
164
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
165
 
# GNU General Public License for more details.
166
 
 
167
 
# You should have received a copy of the GNU General Public License
168
 
# along with this program; if not, write to the Free Software
169
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
170
 
# 02111-1307, USA.
171
 
 
 
122
#
 
123
# This file is free software; the Free Software Foundation
 
124
# gives unlimited permission to copy and/or distribute it,
 
125
# with or without modifications, as long as this notice is preserved.
 
126
 
 
127
# serial 8
172
128
 
173
129
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
174
130
# written in clear, in which case automake, when reading aclocal.m4,
177
133
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
178
134
 
179
135
 
180
 
 
181
136
# _AM_DEPENDENCIES(NAME)
182
137
# ----------------------
183
138
# See how the compiler implements dependency checking.
266
221
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
267
222
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
268
223
      # icc doesn't choke on unknown options, it will just issue warnings
269
 
      # (even with -Werror).  So we grep stderr for any message
270
 
      # that says an option was ignored.
271
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
224
      # or remarks (even with -Werror).  So we grep stderr for any message
 
225
      # that says an option was ignored or not supported.
 
226
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
227
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
228
      # The diagnosis changed in icc 8.0:
 
229
      #   icc: Command line remark: option '-MP' not supported
 
230
      if (grep 'ignoring option' conftest.err ||
 
231
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
272
232
        am_cv_$1_dependencies_compiler_type=$depmode
273
233
        break
274
234
      fi
312
272
AC_SUBST([AMDEPBACKSLASH])
313
273
])
314
274
 
315
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
316
 
 
317
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
318
 
 
319
 
# This program is free software; you can redistribute it and/or modify
320
 
# it under the terms of the GNU General Public License as published by
321
 
# the Free Software Foundation; either version 2, or (at your option)
322
 
# any later version.
323
 
 
324
 
# This program is distributed in the hope that it will be useful,
325
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
326
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
327
 
# GNU General Public License for more details.
328
 
 
329
 
# You should have received a copy of the GNU General Public License
330
 
# along with this program; if not, write to the Free Software
331
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
332
 
# 02111-1307, USA.
333
 
 
334
 
#serial 2
 
275
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
276
 
 
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
278
# Free Software Foundation, Inc.
 
279
#
 
280
# This file is free software; the Free Software Foundation
 
281
# gives unlimited permission to copy and/or distribute it,
 
282
# with or without modifications, as long as this notice is preserved.
 
283
 
 
284
#serial 3
335
285
 
336
286
# _AM_OUTPUT_DEPENDENCY_COMMANDS
337
287
# ------------------------------
350
300
  else
351
301
    continue
352
302
  fi
353
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
354
 
  # Extract the definition of DEP_FILES from the Makefile without
355
 
  # running `make'.
 
303
  # Extract the definition of DEPDIR, am__include, and am__quote
 
304
  # from the Makefile without running `make'.
356
305
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
357
306
  test -z "$DEPDIR" && continue
 
307
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
308
  test -z "am__include" && continue
 
309
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
358
310
  # When using ansi2knr, U may be empty or an underscore; expand it
359
311
  U=`sed -n 's/^U = //p' < "$mf"`
360
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
361
 
  # We invoke sed twice because it is the simplest approach to
362
 
  # changing $(DEPDIR) to its actual value in the expansion.
363
 
  for file in `sed -n '
364
 
    /^DEP_FILES = .*\\\\$/ {
365
 
      s/^DEP_FILES = //
366
 
      :loop
367
 
        s/\\\\$//
368
 
        p
369
 
        n
370
 
        /\\\\$/ b loop
371
 
      p
372
 
    }
373
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
312
  # Find all dependency output files, they are included files with
 
313
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
314
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
315
  # expansion.
 
316
  for file in `sed -n "
 
317
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
374
318
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
375
319
    # Make sure the directory exists.
376
320
    test -f "$dirpart/$file" && continue
396
340
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
397
341
])
398
342
 
399
 
# Do all the work for Automake.                            -*- Autoconf -*-
400
 
 
401
 
# This macro actually does too much some checks are only needed if
 
343
# Do all the work for Automake.                             -*- Autoconf -*-
 
344
 
 
345
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
346
# Free Software Foundation, Inc.
 
347
#
 
348
# This file is free software; the Free Software Foundation
 
349
# gives unlimited permission to copy and/or distribute it,
 
350
# with or without modifications, as long as this notice is preserved.
 
351
 
 
352
# serial 12
 
353
 
 
354
# This macro actually does too much.  Some checks are only needed if
402
355
# your package does certain things.  But this isn't really a big deal.
403
356
 
404
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
405
 
# Free Software Foundation, Inc.
406
 
 
407
 
# This program is free software; you can redistribute it and/or modify
408
 
# it under the terms of the GNU General Public License as published by
409
 
# the Free Software Foundation; either version 2, or (at your option)
410
 
# any later version.
411
 
 
412
 
# This program is distributed in the hope that it will be useful,
413
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
414
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
415
 
# GNU General Public License for more details.
416
 
 
417
 
# You should have received a copy of the GNU General Public License
418
 
# along with this program; if not, write to the Free Software
419
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
420
 
# 02111-1307, USA.
421
 
 
422
 
# serial 11
423
 
 
424
357
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
425
358
# AM_INIT_AUTOMAKE([OPTIONS])
426
359
# -----------------------------------------------
477
410
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
478
411
AM_MISSING_PROG(AUTOHEADER, autoheader)
479
412
AM_MISSING_PROG(MAKEINFO, makeinfo)
480
 
AM_MISSING_PROG(AMTAR, tar)
481
413
AM_PROG_INSTALL_SH
482
414
AM_PROG_INSTALL_STRIP
483
415
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
486
418
AC_REQUIRE([AC_PROG_AWK])dnl
487
419
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
488
420
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
489
 
 
 
421
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
422
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
423
                             [_AM_PROG_TAR([v7])])])
490
424
_AM_IF_OPTION([no-dependencies],,
491
425
[AC_PROVIDE_IFELSE([AC_PROG_CC],
492
426
                  [_AM_DEPENDENCIES(CC)],
520
454
done
521
455
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
522
456
 
 
457
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
458
#
 
459
# This file is free software; the Free Software Foundation
 
460
# gives unlimited permission to copy and/or distribute it,
 
461
# with or without modifications, as long as this notice is preserved.
 
462
 
523
463
# AM_PROG_INSTALL_SH
524
464
# ------------------
525
465
# Define $install_sh.
526
 
 
527
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
528
 
 
529
 
# This program is free software; you can redistribute it and/or modify
530
 
# it under the terms of the GNU General Public License as published by
531
 
# the Free Software Foundation; either version 2, or (at your option)
532
 
# any later version.
533
 
 
534
 
# This program is distributed in the hope that it will be useful,
535
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
536
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
537
 
# GNU General Public License for more details.
538
 
 
539
 
# You should have received a copy of the GNU General Public License
540
 
# along with this program; if not, write to the Free Software
541
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
542
 
# 02111-1307, USA.
543
 
 
544
466
AC_DEFUN([AM_PROG_INSTALL_SH],
545
467
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
546
468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
547
469
AC_SUBST(install_sh)])
548
470
 
549
 
#                                                          -*- Autoconf -*-
550
 
# Copyright (C) 2003  Free Software Foundation, Inc.
551
 
 
552
 
# This program is free software; you can redistribute it and/or modify
553
 
# it under the terms of the GNU General Public License as published by
554
 
# the Free Software Foundation; either version 2, or (at your option)
555
 
# any later version.
556
 
 
557
 
# This program is distributed in the hope that it will be useful,
558
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
559
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
560
 
# GNU General Public License for more details.
561
 
 
562
 
# You should have received a copy of the GNU General Public License
563
 
# along with this program; if not, write to the Free Software
564
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
565
 
# 02111-1307, USA.
566
 
 
567
 
# serial 1
 
471
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
472
#
 
473
# This file is free software; the Free Software Foundation
 
474
# gives unlimited permission to copy and/or distribute it,
 
475
# with or without modifications, as long as this notice is preserved.
 
476
 
 
477
# serial 2
568
478
 
569
479
# Check whether the underlying file-system supports filenames
570
480
# with a leading dot.  For instance MS-DOS doesn't.
579
489
rmdir .tst 2>/dev/null
580
490
AC_SUBST([am__leading_dot])])
581
491
 
582
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
583
 
 
584
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
585
 
 
586
 
# This program is free software; you can redistribute it and/or modify
587
 
# it under the terms of the GNU General Public License as published by
588
 
# the Free Software Foundation; either version 2, or (at your option)
589
 
# any later version.
590
 
 
591
 
# This program is distributed in the hope that it will be useful,
592
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
593
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
594
 
# GNU General Public License for more details.
595
 
 
596
 
# You should have received a copy of the GNU General Public License
597
 
# along with this program; if not, write to the Free Software
598
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
599
 
# 02111-1307, USA.
600
 
 
601
 
# serial 2
 
492
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
493
 
 
494
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
495
#
 
496
# This file is free software; the Free Software Foundation
 
497
# gives unlimited permission to copy and/or distribute it,
 
498
# with or without modifications, as long as this notice is preserved.
 
499
 
 
500
# serial 3
602
501
 
603
502
# AM_MAKE_INCLUDE()
604
503
# -----------------
642
541
rm -f confinc confmf
643
542
])
644
543
 
645
 
# serial 2
 
544
# Copyright (C) 1999, 2000, 2001, 2003, 2005  Free Software Foundation, Inc.
 
545
#
 
546
# This file is free software; the Free Software Foundation
 
547
# gives unlimited permission to copy and/or distribute it,
 
548
# with or without modifications, as long as this notice is preserved.
 
549
 
 
550
# serial 3
646
551
 
647
552
# AM_PROG_CC_C_O
648
553
# --------------
649
554
# Like AC_PROG_CC_C_O, but changed for automake.
650
 
 
651
 
# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
652
 
 
653
 
# This program is free software; you can redistribute it and/or modify
654
 
# it under the terms of the GNU General Public License as published by
655
 
# the Free Software Foundation; either version 2, or (at your option)
656
 
# any later version.
657
 
 
658
 
# This program is distributed in the hope that it will be useful,
659
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
660
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
661
 
# GNU General Public License for more details.
662
 
 
663
 
# You should have received a copy of the GNU General Public License
664
 
# along with this program; if not, write to the Free Software
665
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666
 
# 02111-1307, USA.
667
 
 
668
555
AC_DEFUN([AM_PROG_CC_C_O],
669
556
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
670
557
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
682
569
fi
683
570
])
684
571
 
685
 
#  -*- Autoconf -*-
686
 
 
687
 
 
688
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
689
 
 
690
 
# This program is free software; you can redistribute it and/or modify
691
 
# it under the terms of the GNU General Public License as published by
692
 
# the Free Software Foundation; either version 2, or (at your option)
693
 
# any later version.
694
 
 
695
 
# This program is distributed in the hope that it will be useful,
696
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
697
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
698
 
# GNU General Public License for more details.
699
 
 
700
 
# You should have received a copy of the GNU General Public License
701
 
# along with this program; if not, write to the Free Software
702
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
703
 
# 02111-1307, USA.
704
 
 
705
 
# serial 3
 
572
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
573
 
 
574
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
575
# Free Software Foundation, Inc.
 
576
#
 
577
# This file is free software; the Free Software Foundation
 
578
# gives unlimited permission to copy and/or distribute it,
 
579
# with or without modifications, as long as this notice is preserved.
 
580
 
 
581
# serial 4
706
582
 
707
583
# AM_MISSING_PROG(NAME, PROGRAM)
708
584
# ------------------------------
728
604
fi
729
605
])
730
606
 
 
607
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
608
#
 
609
# This file is free software; the Free Software Foundation
 
610
# gives unlimited permission to copy and/or distribute it,
 
611
# with or without modifications, as long as this notice is preserved.
 
612
 
731
613
# AM_PROG_MKDIR_P
732
614
# ---------------
733
615
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
734
 
 
735
 
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
736
 
 
737
 
# This program is free software; you can redistribute it and/or modify
738
 
# it under the terms of the GNU General Public License as published by
739
 
# the Free Software Foundation; either version 2, or (at your option)
740
 
# any later version.
741
 
 
742
 
# This program is distributed in the hope that it will be useful,
743
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
744
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
745
 
# GNU General Public License for more details.
746
 
 
747
 
# You should have received a copy of the GNU General Public License
748
 
# along with this program; if not, write to the Free Software
749
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
750
 
# 02111-1307, USA.
751
 
 
 
616
#
752
617
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
753
618
# created by `make install' are always world readable, even if the
754
619
# installer happens to have an overly restrictive umask (e.g. 077).
769
634
# this.)
770
635
AC_DEFUN([AM_PROG_MKDIR_P],
771
636
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
772
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
773
 
  # argument.  Indeed, we sometimes output rules like
 
637
  # We used to keeping the `.' as first argument, in order to
 
638
  # allow $(mkdir_p) to be used without argument.  As in
774
639
  #   $(mkdir_p) $(somedir)
775
 
  # where $(somedir) is conditionally defined.
776
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
777
 
  # expensive solution, as it forces Make to start a sub-shell.)
778
 
  mkdir_p='mkdir -p -- .'
 
640
  # where $(somedir) is conditionally defined.  However this is wrong
 
641
  # for two reasons:
 
642
  #  1. if the package is installed by a user who cannot write `.'
 
643
  #     make install will fail,
 
644
  #  2. the above comment should most certainly read
 
645
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
646
  #     so it does not work when $(somedir) is undefined and
 
647
  #     $(DESTDIR) is not.
 
648
  #  To support the latter case, we have to write
 
649
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
650
  #  so the `.' trick is pointless.
 
651
  mkdir_p='mkdir -p --'
779
652
else
780
653
  # On NextStep and OpenStep, the `mkdir' command does not
781
654
  # recognize any option.  It will interpret all options as
794
667
fi
795
668
AC_SUBST([mkdir_p])])
796
669
 
797
 
# Helper functions for option handling.                    -*- Autoconf -*-
798
 
 
799
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
800
 
 
801
 
# This program is free software; you can redistribute it and/or modify
802
 
# it under the terms of the GNU General Public License as published by
803
 
# the Free Software Foundation; either version 2, or (at your option)
804
 
# any later version.
805
 
 
806
 
# This program is distributed in the hope that it will be useful,
807
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
808
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
809
 
# GNU General Public License for more details.
810
 
 
811
 
# You should have received a copy of the GNU General Public License
812
 
# along with this program; if not, write to the Free Software
813
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
814
 
# 02111-1307, USA.
815
 
 
816
 
# serial 2
 
670
# Helper functions for option handling.                     -*- Autoconf -*-
 
671
 
 
672
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
673
#
 
674
# This file is free software; the Free Software Foundation
 
675
# gives unlimited permission to copy and/or distribute it,
 
676
# with or without modifications, as long as this notice is preserved.
 
677
 
 
678
# serial 3
817
679
 
818
680
# _AM_MANGLE_OPTION(NAME)
819
681
# -----------------------
838
700
AC_DEFUN([_AM_IF_OPTION],
839
701
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
840
702
 
841
 
#
842
 
# Check to make sure that the build environment is sane.
843
 
#
844
 
 
845
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
846
 
 
847
 
# This program is free software; you can redistribute it and/or modify
848
 
# it under the terms of the GNU General Public License as published by
849
 
# the Free Software Foundation; either version 2, or (at your option)
850
 
# any later version.
851
 
 
852
 
# This program is distributed in the hope that it will be useful,
853
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
854
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
855
 
# GNU General Public License for more details.
856
 
 
857
 
# You should have received a copy of the GNU General Public License
858
 
# along with this program; if not, write to the Free Software
859
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
860
 
# 02111-1307, USA.
861
 
 
862
 
# serial 3
 
703
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
704
 
 
705
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
706
# Free Software Foundation, Inc.
 
707
#
 
708
# This file is free software; the Free Software Foundation
 
709
# gives unlimited permission to copy and/or distribute it,
 
710
# with or without modifications, as long as this notice is preserved.
 
711
 
 
712
# serial 4
863
713
 
864
714
# AM_SANITY_CHECK
865
715
# ---------------
902
752
fi
903
753
AC_MSG_RESULT(yes)])
904
754
 
 
755
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
756
#
 
757
# This file is free software; the Free Software Foundation
 
758
# gives unlimited permission to copy and/or distribute it,
 
759
# with or without modifications, as long as this notice is preserved.
 
760
 
905
761
# AM_PROG_INSTALL_STRIP
906
 
 
907
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
908
 
 
909
 
# This program is free software; you can redistribute it and/or modify
910
 
# it under the terms of the GNU General Public License as published by
911
 
# the Free Software Foundation; either version 2, or (at your option)
912
 
# any later version.
913
 
 
914
 
# This program is distributed in the hope that it will be useful,
915
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
916
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
917
 
# GNU General Public License for more details.
918
 
 
919
 
# You should have received a copy of the GNU General Public License
920
 
# along with this program; if not, write to the Free Software
921
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
922
 
# 02111-1307, USA.
923
 
 
 
762
# ---------------------
924
763
# One issue with vendor `install' (even GNU) is that you can't
925
764
# specify the program used to strip binaries.  This is especially
926
765
# annoying in cross-compiling environments, where the build's strip
941
780
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
942
781
AC_SUBST([INSTALL_STRIP_PROGRAM])])
943
782
 
 
783
# Check how to create a tarball.                            -*- Autoconf -*-
 
784
 
 
785
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
786
#
 
787
# This file is free software; the Free Software Foundation
 
788
# gives unlimited permission to copy and/or distribute it,
 
789
# with or without modifications, as long as this notice is preserved.
 
790
 
 
791
# serial 2
 
792
 
 
793
# _AM_PROG_TAR(FORMAT)
 
794
# --------------------
 
795
# Check how to create a tarball in format FORMAT.
 
796
# FORMAT should be one of `v7', `ustar', or `pax'.
 
797
#
 
798
# Substitute a variable $(am__tar) that is a command
 
799
# writing to stdout a FORMAT-tarball containing the directory
 
800
# $tardir.
 
801
#     tardir=directory && $(am__tar) > result.tar
 
802
#
 
803
# Substitute a variable $(am__untar) that extract such
 
804
# a tarball read from stdin.
 
805
#     $(am__untar) < result.tar
 
806
AC_DEFUN([_AM_PROG_TAR],
 
807
[# Always define AMTAR for backward compatibility.
 
808
AM_MISSING_PROG([AMTAR], [tar])
 
809
m4_if([$1], [v7],
 
810
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
811
     [m4_case([$1], [ustar],, [pax],,
 
812
              [m4_fatal([Unknown tar format])])
 
813
AC_MSG_CHECKING([how to create a $1 tar archive])
 
814
# Loop over all known methods to create a tar archive until one works.
 
815
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
816
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
817
# Do not fold the above two line into one, because Tru64 sh and
 
818
# Solaris sh will not grok spaces in the rhs of `-'.
 
819
for _am_tool in $_am_tools
 
820
do
 
821
  case $_am_tool in
 
822
  gnutar)
 
823
    for _am_tar in tar gnutar gtar;
 
824
    do
 
825
      AM_RUN_LOG([$_am_tar --version]) && break
 
826
    done
 
827
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
828
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
829
    am__untar="$_am_tar -xf -"
 
830
    ;;
 
831
  plaintar)
 
832
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
833
    # ustar tarball either.
 
834
    (tar --version) >/dev/null 2>&1 && continue
 
835
    am__tar='tar chf - "$$tardir"'
 
836
    am__tar_='tar chf - "$tardir"'
 
837
    am__untar='tar xf -'
 
838
    ;;
 
839
  pax)
 
840
    am__tar='pax -L -x $1 -w "$$tardir"'
 
841
    am__tar_='pax -L -x $1 -w "$tardir"'
 
842
    am__untar='pax -r'
 
843
    ;;
 
844
  cpio)
 
845
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
846
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
847
    am__untar='cpio -i -H $1 -d'
 
848
    ;;
 
849
  none)
 
850
    am__tar=false
 
851
    am__tar_=false
 
852
    am__untar=false
 
853
    ;;
 
854
  esac
 
855
 
 
856
  # If the value was cached, stop now.  We just wanted to have am__tar
 
857
  # and am__untar set.
 
858
  test -n "${am_cv_prog_tar_$1}" && break
 
859
 
 
860
  # tar/untar a dummy directory, and stop if the command works
 
861
  rm -rf conftest.dir
 
862
  mkdir conftest.dir
 
863
  echo GrepMe > conftest.dir/file
 
864
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
865
  rm -rf conftest.dir
 
866
  if test -s conftest.tar; then
 
867
    AM_RUN_LOG([$am__untar <conftest.tar])
 
868
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
869
  fi
 
870
done
 
871
rm -rf conftest.dir
 
872
 
 
873
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
874
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
875
AC_SUBST([am__tar])
 
876
AC_SUBST([am__untar])
 
877
]) # _AM_PROG_TAR
 
878
 
944
879
m4_include([Tools/config/ac_compile_warnings.m4])
945
880
m4_include([Tools/config/ac_define_dir.m4])