/[gmemo]/gmemo/aclocal.m4
ViewVC logotype

Diff of /gmemo/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by TwinSun, Mon Jun 2 15:14:23 2003 UTC revision 1.3 by Bounga, Tue Oct 14 13:12:55 2003 UTC
# Line 1  Line 1 
1  # generated automatically by aclocal 1.7.2 -*- Autoconf -*-  dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2    
3  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002  dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4  # Free Software Foundation, Inc.  dnl This file is free software; the Free Software Foundation
5  # This file is free software; the Free Software Foundation  dnl gives unlimited permission to copy and/or distribute it,
6  # gives unlimited permission to copy and/or distribute it,  dnl with or without modifications, as long as this notice is preserved.
7  # with or without modifications, as long as this notice is preserved.  
8    dnl This program is distributed in the hope that it will be useful,
9  # This program is distributed in the hope that it will be useful,  dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10  # but WITHOUT ANY WARRANTY, to the extent permitted by law; without  dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A  dnl PARTICULAR PURPOSE.
 # PARTICULAR PURPOSE.  
12    
13  # Configure paths for GLIB  # Configure paths for GLIB
14  # Owen Taylor     97-11-3  # Owen Taylor     97-11-3
# Line 812  main () Line 811  main ()
811    rm -f conf.gtktest    rm -f conf.gtktest
812  ])  ])
813    
814  # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-  # lib-prefix.m4 serial 3 (gettext-0.12.2)
815    dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
816  # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.  dnl This file is free software, distributed under the terms of the GNU
817    dnl General Public License.  As a special exception to the GNU General
818    dnl Public License, this file may be distributed as part of a program
819    dnl that contains a configuration script generated by Autoconf, under
820    dnl the same distribution terms as the rest of that program.
821    
822    dnl From Bruno Haible.
823    
824    dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
825    dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
826    dnl require excessive bracketing.
827    ifdef([AC_HELP_STRING],
828    [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
829    [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
830    
831    dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
832    dnl to access previously installed libraries. The basic assumption is that
833    dnl a user will want packages to use other packages he previously installed
834    dnl with the same --prefix option.
835    dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
836    dnl libraries, but is otherwise very convenient.
837    AC_DEFUN([AC_LIB_PREFIX],
838    [
839      AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
840      AC_REQUIRE([AC_PROG_CC])
841      AC_REQUIRE([AC_CANONICAL_HOST])
842      AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
843      dnl By default, look in $includedir and $libdir.
844      use_additional=yes
845      AC_LIB_WITH_FINAL_PREFIX([
846        eval additional_includedir=\"$includedir\"
847        eval additional_libdir=\"$libdir\"
848      ])
849      AC_LIB_ARG_WITH([lib-prefix],
850    [  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
851      --without-lib-prefix    don't search for libraries in includedir and libdir],
852    [
853        if test "X$withval" = "Xno"; then
854          use_additional=no
855        else
856          if test "X$withval" = "X"; then
857            AC_LIB_WITH_FINAL_PREFIX([
858              eval additional_includedir=\"$includedir\"
859              eval additional_libdir=\"$libdir\"
860            ])
861          else
862            additional_includedir="$withval/include"
863            additional_libdir="$withval/lib"
864          fi
865        fi
866    ])
867      if test $use_additional = yes; then
868        dnl Potentially add $additional_includedir to $CPPFLAGS.
869        dnl But don't add it
870        dnl   1. if it's the standard /usr/include,
871        dnl   2. if it's already present in $CPPFLAGS,
872        dnl   3. if it's /usr/local/include and we are using GCC on Linux,
873        dnl   4. if it doesn't exist as a directory.
874        if test "X$additional_includedir" != "X/usr/include"; then
875          haveit=
876          for x in $CPPFLAGS; do
877            AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
878            if test "X$x" = "X-I$additional_includedir"; then
879              haveit=yes
880              break
881            fi
882          done
883          if test -z "$haveit"; then
884            if test "X$additional_includedir" = "X/usr/local/include"; then
885              if test -n "$GCC"; then
886                case $host_os in
887                  linux*) haveit=yes;;
888                esac
889              fi
890            fi
891            if test -z "$haveit"; then
892              if test -d "$additional_includedir"; then
893                dnl Really add $additional_includedir to $CPPFLAGS.
894                CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
895              fi
896            fi
897          fi
898        fi
899        dnl Potentially add $additional_libdir to $LDFLAGS.
900        dnl But don't add it
901        dnl   1. if it's the standard /usr/lib,
902        dnl   2. if it's already present in $LDFLAGS,
903        dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
904        dnl   4. if it doesn't exist as a directory.
905        if test "X$additional_libdir" != "X/usr/lib"; then
906          haveit=
907          for x in $LDFLAGS; do
908            AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
909            if test "X$x" = "X-L$additional_libdir"; then
910              haveit=yes
911              break
912            fi
913          done
914          if test -z "$haveit"; then
915            if test "X$additional_libdir" = "X/usr/local/lib"; then
916              if test -n "$GCC"; then
917                case $host_os in
918                  linux*) haveit=yes;;
919                esac
920              fi
921            fi
922            if test -z "$haveit"; then
923              if test -d "$additional_libdir"; then
924                dnl Really add $additional_libdir to $LDFLAGS.
925                LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
926              fi
927            fi
928          fi
929        fi
930      fi
931    ])
932    
933  # This program is free software; you can redistribute it and/or modify  dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
934  # it under the terms of the GNU General Public License as published by  dnl acl_final_exec_prefix, containing the values to which $prefix and
935  # the Free Software Foundation; either version 2, or (at your option)  dnl $exec_prefix will expand at the end of the configure script.
936  # any later version.  AC_DEFUN([AC_LIB_PREPARE_PREFIX],
937    [
938      dnl Unfortunately, prefix and exec_prefix get only finally determined
939      dnl at the end of configure.
940      if test "X$prefix" = "XNONE"; then
941        acl_final_prefix="$ac_default_prefix"
942      else
943        acl_final_prefix="$prefix"
944      fi
945      if test "X$exec_prefix" = "XNONE"; then
946        acl_final_exec_prefix='${prefix}'
947      else
948        acl_final_exec_prefix="$exec_prefix"
949      fi
950      acl_save_prefix="$prefix"
951      prefix="$acl_final_prefix"
952      eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
953      prefix="$acl_save_prefix"
954    ])
955    
956  # This program is distributed in the hope that it will be useful,  dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
957  # but WITHOUT ANY WARRANTY; without even the implied warranty of  dnl variables prefix and exec_prefix bound to the values they will have
958  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  dnl at the end of the configure script.
959  # GNU General Public License for more details.  AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
960    [
961      acl_save_prefix="$prefix"
962      prefix="$acl_final_prefix"
963      acl_save_exec_prefix="$exec_prefix"
964      exec_prefix="$acl_final_exec_prefix"
965      $1
966      exec_prefix="$acl_save_exec_prefix"
967      prefix="$acl_save_prefix"
968    ])
969    
970  # You should have received a copy of the GNU General Public License  # lib-link.m4 serial 4 (gettext-0.12)
971  # along with this program; if not, write to the Free Software  dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
972  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  dnl This file is free software, distributed under the terms of the GNU
973  # 02111-1307, USA.  dnl General Public License.  As a special exception to the GNU General
974    dnl Public License, this file may be distributed as part of a program
975    dnl that contains a configuration script generated by Autoconf, under
976    dnl the same distribution terms as the rest of that program.
977    
978    dnl From Bruno Haible.
979    
980    dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
981    dnl the libraries corresponding to explicit and implicit dependencies.
982    dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
983    dnl augments the CPPFLAGS variable.
984    AC_DEFUN([AC_LIB_LINKFLAGS],
985    [
986      AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
987      AC_REQUIRE([AC_LIB_RPATH])
988      define([Name],[translit([$1],[./-], [___])])
989      define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
990                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
991      AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
992        AC_LIB_LINKFLAGS_BODY([$1], [$2])
993        ac_cv_lib[]Name[]_libs="$LIB[]NAME"
994        ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
995        ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
996      ])
997      LIB[]NAME="$ac_cv_lib[]Name[]_libs"
998      LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
999      INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
1000      AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1001      AC_SUBST([LIB]NAME)
1002      AC_SUBST([LTLIB]NAME)
1003      dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
1004      dnl results of this search when this library appears as a dependency.
1005      HAVE_LIB[]NAME=yes
1006      undefine([Name])
1007      undefine([NAME])
1008    ])
1009    
1010  AC_PREREQ([2.52])  dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
1011    dnl searches for libname and the libraries corresponding to explicit and
1012    dnl implicit dependencies, together with the specified include files and
1013    dnl the ability to compile and link the specified testcode. If found, it
1014    dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
1015    dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
1016    dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
1017    dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
1018    AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
1019    [
1020      AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1021      AC_REQUIRE([AC_LIB_RPATH])
1022      define([Name],[translit([$1],[./-], [___])])
1023      define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1024                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1025    
1026      dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
1027      dnl accordingly.
1028      AC_LIB_LINKFLAGS_BODY([$1], [$2])
1029    
1030      dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
1031      dnl because if the user has installed lib[]Name and not disabled its use
1032      dnl via --without-lib[]Name-prefix, he wants to use it.
1033      ac_save_CPPFLAGS="$CPPFLAGS"
1034      AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
1035    
1036      AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
1037        ac_save_LIBS="$LIBS"
1038        LIBS="$LIBS $LIB[]NAME"
1039        AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
1040        LIBS="$ac_save_LIBS"
1041      ])
1042      if test "$ac_cv_lib[]Name" = yes; then
1043        HAVE_LIB[]NAME=yes
1044        AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
1045        AC_MSG_CHECKING([how to link with lib[]$1])
1046        AC_MSG_RESULT([$LIB[]NAME])
1047      else
1048        HAVE_LIB[]NAME=no
1049        dnl If $LIB[]NAME didn't lead to a usable library, we don't need
1050        dnl $INC[]NAME either.
1051        CPPFLAGS="$ac_save_CPPFLAGS"
1052        LIB[]NAME=
1053        LTLIB[]NAME=
1054      fi
1055      AC_SUBST([HAVE_LIB]NAME)
1056      AC_SUBST([LIB]NAME)
1057      AC_SUBST([LTLIB]NAME)
1058      undefine([Name])
1059      undefine([NAME])
1060    ])
1061    
1062  # serial 6  dnl Determine the platform dependent parameters needed to use rpath:
1063    dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
1064    dnl hardcode_direct, hardcode_minus_L.
1065    AC_DEFUN([AC_LIB_RPATH],
1066    [
1067      AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
1068      AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
1069      AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
1070      AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
1071      AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
1072        CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1073        ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1074        . ./conftest.sh
1075        rm -f ./conftest.sh
1076        acl_cv_rpath=done
1077      ])
1078      wl="$acl_cv_wl"
1079      libext="$acl_cv_libext"
1080      shlibext="$acl_cv_shlibext"
1081      hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1082      hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1083      hardcode_direct="$acl_cv_hardcode_direct"
1084      hardcode_minus_L="$acl_cv_hardcode_minus_L"
1085      dnl Determine whether the user wants rpath handling at all.
1086      AC_ARG_ENABLE(rpath,
1087        [  --disable-rpath         do not hardcode runtime library paths],
1088        :, enable_rpath=yes)
1089    ])
1090    
1091  # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.  dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
1092  AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])  dnl the libraries corresponding to explicit and implicit dependencies.
1093    dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
1094    AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
1095    [
1096      define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
1097                                   [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
1098      dnl By default, look in $includedir and $libdir.
1099      use_additional=yes
1100      AC_LIB_WITH_FINAL_PREFIX([
1101        eval additional_includedir=\"$includedir\"
1102        eval additional_libdir=\"$libdir\"
1103      ])
1104      AC_LIB_ARG_WITH([lib$1-prefix],
1105    [  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
1106      --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
1107    [
1108        if test "X$withval" = "Xno"; then
1109          use_additional=no
1110        else
1111          if test "X$withval" = "X"; then
1112            AC_LIB_WITH_FINAL_PREFIX([
1113              eval additional_includedir=\"$includedir\"
1114              eval additional_libdir=\"$libdir\"
1115            ])
1116          else
1117            additional_includedir="$withval/include"
1118            additional_libdir="$withval/lib"
1119          fi
1120        fi
1121    ])
1122      dnl Search the library and its dependencies in $additional_libdir and
1123      dnl $LDFLAGS. Using breadth-first-seach.
1124      LIB[]NAME=
1125      LTLIB[]NAME=
1126      INC[]NAME=
1127      rpathdirs=
1128      ltrpathdirs=
1129      names_already_handled=
1130      names_next_round='$1 $2'
1131      while test -n "$names_next_round"; do
1132        names_this_round="$names_next_round"
1133        names_next_round=
1134        for name in $names_this_round; do
1135          already_handled=
1136          for n in $names_already_handled; do
1137            if test "$n" = "$name"; then
1138              already_handled=yes
1139              break
1140            fi
1141          done
1142          if test -z "$already_handled"; then
1143            names_already_handled="$names_already_handled $name"
1144            dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
1145            dnl or AC_LIB_HAVE_LINKFLAGS call.
1146            uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
1147            eval value=\"\$HAVE_LIB$uppername\"
1148            if test -n "$value"; then
1149              if test "$value" = yes; then
1150                eval value=\"\$LIB$uppername\"
1151                test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
1152                eval value=\"\$LTLIB$uppername\"
1153                test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
1154              else
1155                dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
1156                dnl that this library doesn't exist. So just drop it.
1157                :
1158              fi
1159            else
1160              dnl Search the library lib$name in $additional_libdir and $LDFLAGS
1161              dnl and the already constructed $LIBNAME/$LTLIBNAME.
1162              found_dir=
1163              found_la=
1164              found_so=
1165              found_a=
1166              if test $use_additional = yes; then
1167                if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
1168                  found_dir="$additional_libdir"
1169                  found_so="$additional_libdir/lib$name.$shlibext"
1170                  if test -f "$additional_libdir/lib$name.la"; then
1171                    found_la="$additional_libdir/lib$name.la"
1172                  fi
1173                else
1174                  if test -f "$additional_libdir/lib$name.$libext"; then
1175                    found_dir="$additional_libdir"
1176                    found_a="$additional_libdir/lib$name.$libext"
1177                    if test -f "$additional_libdir/lib$name.la"; then
1178                      found_la="$additional_libdir/lib$name.la"
1179                    fi
1180                  fi
1181                fi
1182              fi
1183              if test "X$found_dir" = "X"; then
1184                for x in $LDFLAGS $LTLIB[]NAME; do
1185                  AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1186                  case "$x" in
1187                    -L*)
1188                      dir=`echo "X$x" | sed -e 's/^X-L//'`
1189                      if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1190                        found_dir="$dir"
1191                        found_so="$dir/lib$name.$shlibext"
1192                        if test -f "$dir/lib$name.la"; then
1193                          found_la="$dir/lib$name.la"
1194                        fi
1195                      else
1196                        if test -f "$dir/lib$name.$libext"; then
1197                          found_dir="$dir"
1198                          found_a="$dir/lib$name.$libext"
1199                          if test -f "$dir/lib$name.la"; then
1200                            found_la="$dir/lib$name.la"
1201                          fi
1202                        fi
1203                      fi
1204                      ;;
1205                  esac
1206                  if test "X$found_dir" != "X"; then
1207                    break
1208                  fi
1209                done
1210              fi
1211              if test "X$found_dir" != "X"; then
1212                dnl Found the library.
1213                LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1214                if test "X$found_so" != "X"; then
1215                  dnl Linking with a shared library. We attempt to hardcode its
1216                  dnl directory into the executable's runpath, unless it's the
1217                  dnl standard /usr/lib.
1218                  if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1219                    dnl No hardcoding is needed.
1220                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1221                  else
1222                    dnl Use an explicit option to hardcode DIR into the resulting
1223                    dnl binary.
1224                    dnl Potentially add DIR to ltrpathdirs.
1225                    dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1226                    haveit=
1227                    for x in $ltrpathdirs; do
1228                      if test "X$x" = "X$found_dir"; then
1229                        haveit=yes
1230                        break
1231                      fi
1232                    done
1233                    if test -z "$haveit"; then
1234                      ltrpathdirs="$ltrpathdirs $found_dir"
1235                    fi
1236                    dnl The hardcoding into $LIBNAME is system dependent.
1237                    if test "$hardcode_direct" = yes; then
1238                      dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1239                      dnl resulting binary.
1240                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1241                    else
1242                      if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1243                        dnl Use an explicit option to hardcode DIR into the resulting
1244                        dnl binary.
1245                        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1246                        dnl Potentially add DIR to rpathdirs.
1247                        dnl The rpathdirs will be appended to $LIBNAME at the end.
1248                        haveit=
1249                        for x in $rpathdirs; do
1250                          if test "X$x" = "X$found_dir"; then
1251                            haveit=yes
1252                            break
1253                          fi
1254                        done
1255                        if test -z "$haveit"; then
1256                          rpathdirs="$rpathdirs $found_dir"
1257                        fi
1258                      else
1259                        dnl Rely on "-L$found_dir".
1260                        dnl But don't add it if it's already contained in the LDFLAGS
1261                        dnl or the already constructed $LIBNAME
1262                        haveit=
1263                        for x in $LDFLAGS $LIB[]NAME; do
1264                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1265                          if test "X$x" = "X-L$found_dir"; then
1266                            haveit=yes
1267                            break
1268                          fi
1269                        done
1270                        if test -z "$haveit"; then
1271                          LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1272                        fi
1273                        if test "$hardcode_minus_L" != no; then
1274                          dnl FIXME: Not sure whether we should use
1275                          dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1276                          dnl here.
1277                          LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1278                        else
1279                          dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1280                          dnl here, because this doesn't fit in flags passed to the
1281                          dnl compiler. So give up. No hardcoding. This affects only
1282                          dnl very old systems.
1283                          dnl FIXME: Not sure whether we should use
1284                          dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1285                          dnl here.
1286                          LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1287                        fi
1288                      fi
1289                    fi
1290                  fi
1291                else
1292                  if test "X$found_a" != "X"; then
1293                    dnl Linking with a static library.
1294                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1295                  else
1296                    dnl We shouldn't come here, but anyway it's good to have a
1297                    dnl fallback.
1298                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1299                  fi
1300                fi
1301                dnl Assume the include files are nearby.
1302                additional_includedir=
1303                case "$found_dir" in
1304                  */lib | */lib/)
1305                    basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1306                    additional_includedir="$basedir/include"
1307                    ;;
1308                esac
1309                if test "X$additional_includedir" != "X"; then
1310                  dnl Potentially add $additional_includedir to $INCNAME.
1311                  dnl But don't add it
1312                  dnl   1. if it's the standard /usr/include,
1313                  dnl   2. if it's /usr/local/include and we are using GCC on Linux,
1314                  dnl   3. if it's already present in $CPPFLAGS or the already
1315                  dnl      constructed $INCNAME,
1316                  dnl   4. if it doesn't exist as a directory.
1317                  if test "X$additional_includedir" != "X/usr/include"; then
1318                    haveit=
1319                    if test "X$additional_includedir" = "X/usr/local/include"; then
1320                      if test -n "$GCC"; then
1321                        case $host_os in
1322                          linux*) haveit=yes;;
1323                        esac
1324                      fi
1325                    fi
1326                    if test -z "$haveit"; then
1327                      for x in $CPPFLAGS $INC[]NAME; do
1328                        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1329                        if test "X$x" = "X-I$additional_includedir"; then
1330                          haveit=yes
1331                          break
1332                        fi
1333                      done
1334                      if test -z "$haveit"; then
1335                        if test -d "$additional_includedir"; then
1336                          dnl Really add $additional_includedir to $INCNAME.
1337                          INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1338                        fi
1339                      fi
1340                    fi
1341                  fi
1342                fi
1343                dnl Look for dependencies.
1344                if test -n "$found_la"; then
1345                  dnl Read the .la file. It defines the variables
1346                  dnl dlname, library_names, old_library, dependency_libs, current,
1347                  dnl age, revision, installed, dlopen, dlpreopen, libdir.
1348                  save_libdir="$libdir"
1349                  case "$found_la" in
1350                    */* | *\\*) . "$found_la" ;;
1351                    *) . "./$found_la" ;;
1352                  esac
1353                  libdir="$save_libdir"
1354                  dnl We use only dependency_libs.
1355                  for dep in $dependency_libs; do
1356                    case "$dep" in
1357                      -L*)
1358                        additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1359                        dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1360                        dnl But don't add it
1361                        dnl   1. if it's the standard /usr/lib,
1362                        dnl   2. if it's /usr/local/lib and we are using GCC on Linux,
1363                        dnl   3. if it's already present in $LDFLAGS or the already
1364                        dnl      constructed $LIBNAME,
1365                        dnl   4. if it doesn't exist as a directory.
1366                        if test "X$additional_libdir" != "X/usr/lib"; then
1367                          haveit=
1368                          if test "X$additional_libdir" = "X/usr/local/lib"; then
1369                            if test -n "$GCC"; then
1370                              case $host_os in
1371                                linux*) haveit=yes;;
1372                              esac
1373                            fi
1374                          fi
1375                          if test -z "$haveit"; then
1376                            haveit=
1377                            for x in $LDFLAGS $LIB[]NAME; do
1378                              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1379                              if test "X$x" = "X-L$additional_libdir"; then
1380                                haveit=yes
1381                                break
1382                              fi
1383                            done
1384                            if test -z "$haveit"; then
1385                              if test -d "$additional_libdir"; then
1386                                dnl Really add $additional_libdir to $LIBNAME.
1387                                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1388                              fi
1389                            fi
1390                            haveit=
1391                            for x in $LDFLAGS $LTLIB[]NAME; do
1392                              AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1393                              if test "X$x" = "X-L$additional_libdir"; then
1394                                haveit=yes
1395                                break
1396                              fi
1397                            done
1398                            if test -z "$haveit"; then
1399                              if test -d "$additional_libdir"; then
1400                                dnl Really add $additional_libdir to $LTLIBNAME.
1401                                LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1402                              fi
1403                            fi
1404                          fi
1405                        fi
1406                        ;;
1407                      -R*)
1408                        dir=`echo "X$dep" | sed -e 's/^X-R//'`
1409                        if test "$enable_rpath" != no; then
1410                          dnl Potentially add DIR to rpathdirs.
1411                          dnl The rpathdirs will be appended to $LIBNAME at the end.
1412                          haveit=
1413                          for x in $rpathdirs; do
1414                            if test "X$x" = "X$dir"; then
1415                              haveit=yes
1416                              break
1417                            fi
1418                          done
1419                          if test -z "$haveit"; then
1420                            rpathdirs="$rpathdirs $dir"
1421                          fi
1422                          dnl Potentially add DIR to ltrpathdirs.
1423                          dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1424                          haveit=
1425                          for x in $ltrpathdirs; do
1426                            if test "X$x" = "X$dir"; then
1427                              haveit=yes
1428                              break
1429                            fi
1430                          done
1431                          if test -z "$haveit"; then
1432                            ltrpathdirs="$ltrpathdirs $dir"
1433                          fi
1434                        fi
1435                        ;;
1436                      -l*)
1437                        dnl Handle this in the next round.
1438                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1439                        ;;
1440                      *.la)
1441                        dnl Handle this in the next round. Throw away the .la's
1442                        dnl directory; it is already contained in a preceding -L
1443                        dnl option.
1444                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1445                        ;;
1446                      *)
1447                        dnl Most likely an immediate library name.
1448                        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1449                        LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1450                        ;;
1451                    esac
1452                  done
1453                fi
1454              else
1455                dnl Didn't find the library; assume it is in the system directories
1456                dnl known to the linker and runtime loader. (All the system
1457                dnl directories known to the linker should also be known to the
1458                dnl runtime loader, otherwise the system is severely misconfigured.)
1459                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1460                LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1461              fi
1462            fi
1463          fi
1464        done
1465      done
1466      if test "X$rpathdirs" != "X"; then
1467        if test -n "$hardcode_libdir_separator"; then
1468          dnl Weird platform: only the last -rpath option counts, the user must
1469          dnl pass all path elements in one option. We can arrange that for a
1470          dnl single library, but not when more than one $LIBNAMEs are used.
1471          alldirs=
1472          for found_dir in $rpathdirs; do
1473            alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
1474          done
1475          dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
1476          acl_save_libdir="$libdir"
1477          libdir="$alldirs"
1478          eval flag=\"$hardcode_libdir_flag_spec\"
1479          libdir="$acl_save_libdir"
1480          LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1481        else
1482          dnl The -rpath options are cumulative.
1483          for found_dir in $rpathdirs; do
1484            acl_save_libdir="$libdir"
1485            libdir="$found_dir"
1486            eval flag=\"$hardcode_libdir_flag_spec\"
1487            libdir="$acl_save_libdir"
1488            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1489          done
1490        fi
1491      fi
1492      if test "X$ltrpathdirs" != "X"; then
1493        dnl When using libtool, the option that works for both libraries and
1494        dnl executables is -R. The -R options are cumulative.
1495        for found_dir in $ltrpathdirs; do
1496          LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1497        done
1498      fi
1499    ])
1500    
1501  # Do all the work for Automake.                            -*- Autoconf -*-  dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1502    dnl unless already present in VAR.
1503    dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1504    dnl contains two or three consecutive elements that belong together.
1505    AC_DEFUN([AC_LIB_APPENDTOVAR],
1506    [
1507      for element in [$2]; do
1508        haveit=
1509        for x in $[$1]; do
1510          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1511          if test "X$x" = "X$element"; then
1512            haveit=yes
1513            break
1514          fi
1515        done
1516        if test -z "$haveit"; then
1517          [$1]="${[$1]}${[$1]:+ }$element"
1518        fi
1519      done
1520    ])
1521    
1522  # This macro actually does too much some checks are only needed if  # lib-ld.m4 serial 2 (gettext-0.12)
1523  # your package does certain things.  But this isn't really a big deal.  dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1524    dnl This file is free software, distributed under the terms of the GNU
1525    dnl General Public License.  As a special exception to the GNU General
1526    dnl Public License, this file may be distributed as part of a program
1527    dnl that contains a configuration script generated by Autoconf, under
1528    dnl the same distribution terms as the rest of that program.
1529    
1530    dnl Subroutines of libtool.m4,
1531    dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1532    dnl with libtool.m4.
1533    
1534    dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1535    AC_DEFUN([AC_LIB_PROG_LD_GNU],
1536    [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1537    [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1538    if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1539      acl_cv_prog_gnu_ld=yes
1540    else
1541      acl_cv_prog_gnu_ld=no
1542    fi])
1543    with_gnu_ld=$acl_cv_prog_gnu_ld
1544    ])
1545    
1546  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  dnl From libtool-1.4. Sets the variable LD.
1547  # Free Software Foundation, Inc.  AC_DEFUN([AC_LIB_PROG_LD],
1548    [AC_ARG_WITH(gnu-ld,
1549    [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
1550    test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1551    AC_REQUIRE([AC_PROG_CC])dnl
1552    AC_REQUIRE([AC_CANONICAL_HOST])dnl
1553    # Prepare PATH_SEPARATOR.
1554    # The user is always right.
1555    if test "${PATH_SEPARATOR+set}" != set; then
1556      echo "#! /bin/sh" >conf$$.sh
1557      echo  "exit 0"   >>conf$$.sh
1558      chmod +x conf$$.sh
1559      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1560        PATH_SEPARATOR=';'
1561      else
1562        PATH_SEPARATOR=:
1563      fi
1564      rm -f conf$$.sh
1565    fi
1566    ac_prog=ld
1567    if test "$GCC" = yes; then
1568      # Check if gcc -print-prog-name=ld gives a path.
1569      AC_MSG_CHECKING([for ld used by GCC])
1570      case $host in
1571      *-*-mingw*)
1572        # gcc leaves a trailing carriage return which upsets mingw
1573        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1574      *)
1575        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1576      esac
1577      case $ac_prog in
1578        # Accept absolute paths.
1579        [[\\/]* | [A-Za-z]:[\\/]*)]
1580          [re_direlt='/[^/][^/]*/\.\./']
1581          # Canonicalize the path of ld
1582          ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1583          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1584            ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1585          done
1586          test -z "$LD" && LD="$ac_prog"
1587          ;;
1588      "")
1589        # If it fails, then pretend we aren't using GCC.
1590        ac_prog=ld
1591        ;;
1592      *)
1593        # If it is relative, then search for the first ld in PATH.
1594        with_gnu_ld=unknown
1595        ;;
1596      esac
1597    elif test "$with_gnu_ld" = yes; then
1598      AC_MSG_CHECKING([for GNU ld])
1599    else
1600      AC_MSG_CHECKING([for non-GNU ld])
1601    fi
1602    AC_CACHE_VAL(acl_cv_path_LD,
1603    [if test -z "$LD"; then
1604      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1605      for ac_dir in $PATH; do
1606        test -z "$ac_dir" && ac_dir=.
1607        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1608          acl_cv_path_LD="$ac_dir/$ac_prog"
1609          # Check to see if the program is GNU ld.  I'd rather use --version,
1610          # but apparently some GNU ld's only accept -v.
1611          # Break only if it was the GNU/non-GNU ld that we prefer.
1612          if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1613            test "$with_gnu_ld" != no && break
1614          else
1615            test "$with_gnu_ld" != yes && break
1616          fi
1617        fi
1618      done
1619      IFS="$ac_save_ifs"
1620    else
1621      acl_cv_path_LD="$LD" # Let the user override the test with a path.
1622    fi])
1623    LD="$acl_cv_path_LD"
1624    if test -n "$LD"; then
1625      AC_MSG_RESULT($LD)
1626    else
1627      AC_MSG_RESULT(no)
1628    fi
1629    test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1630    AC_LIB_PROG_LD_GNU
1631    ])
1632    
1633  # This program is free software; you can redistribute it and/or modify  # Like AC_CONFIG_HEADER, but automatically create stamp file.
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
1634    
1635  # This program is distributed in the hope that it will be useful,  AC_DEFUN([AM_CONFIG_HEADER],
1636  # but WITHOUT ANY WARRANTY; without even the implied warranty of  [AC_PREREQ([2.12])
1637  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  AC_CONFIG_HEADER([$1])
1638  # GNU General Public License for more details.  dnl When config.status generates a header, we must update the stamp-h file.
1639    dnl This file resides in the same directory as the config header
1640    dnl that is generated.  We must strip everything past the first ":",
1641    dnl and everything past the last "/".
1642    AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
1643    ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
1644    <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
1645    <<am_indx=1
1646    for am_file in <<$1>>; do
1647      case " <<$>>CONFIG_HEADERS " in
1648      *" <<$>>am_file "*<<)>>
1649        echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
1650        ;;
1651      esac
1652      am_indx=`expr "<<$>>am_indx" + 1`
1653    done<<>>dnl>>)
1654    changequote([,]))])
1655    
1656    # Do all the work for Automake.  This macro actually does too much --
1657    # some checks are only needed if your package does certain things.
1658    # But this isn't really a big deal.
1659    
1660  # You should have received a copy of the GNU General Public License  # serial 1
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
1661    
1662  # serial 8  dnl Usage:
1663    dnl AM_INIT_AUTOMAKE(package,version, [no-define])
1664    
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
   
   
 AC_PREREQ([2.54])  
   
 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow  
 # the ones we care about.  
 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl  
   
 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])  
 # AM_INIT_AUTOMAKE([OPTIONS])  
 # -----------------------------------------------  
 # The call with PACKAGE and VERSION arguments is the old style  
 # call (pre autoconf-2.50), which is being phased out.  PACKAGE  
 # and VERSION should now be passed to AC_INIT and removed from  
 # the call to AM_INIT_AUTOMAKE.  
 # We support both call styles for the transition.  After  
 # the next Automake release, Autoconf can make the AC_INIT  
 # arguments mandatory, and then we can depend on a new Autoconf  
 # release and drop the old call support.  
1665  AC_DEFUN([AM_INIT_AUTOMAKE],  AC_DEFUN([AM_INIT_AUTOMAKE],
1666  [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl  [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1667   AC_REQUIRE([AC_PROG_INSTALL])dnl  AC_REQUIRE([AC_PROG_INSTALL])
1668  # test to see if srcdir already configured  PACKAGE=[$1]
1669  if test "`cd $srcdir && pwd`" != "`pwd`" &&  AC_SUBST(PACKAGE)
1670     test -f $srcdir/config.status; then  VERSION=[$2]
1671    AC_SUBST(VERSION)
1672    dnl test to see if srcdir already configured
1673    if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1674    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1675  fi  fi
1676    ifelse([$3],,
1677  # test whether we have cygpath  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1678  if test -z "$CYGPATH_W"; then  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
1679    if (cygpath --version) >/dev/null 2>/dev/null; then  AC_REQUIRE([AM_SANITY_CHECK])
1680      CYGPATH_W='cygpath -w'  AC_REQUIRE([AC_ARG_PROGRAM])
1681    else  dnl FIXME This is truly gross.
1682      CYGPATH_W=echo  missing_dir=`cd $ac_aux_dir && pwd`
1683    fi  AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
1684  fi  AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
1685  AC_SUBST([CYGPATH_W])  AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
1686    AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
1687  # Define the identity of the package.  AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1688  dnl Distinguish between old-style and new-style calls.  AC_REQUIRE([AC_PROG_MAKE_SET])])
 m4_ifval([$2],  
 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl  
  AC_SUBST([PACKAGE], [$1])dnl  
  AC_SUBST([VERSION], [$2])],  
 [_AM_SET_OPTIONS([$1])dnl  
  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl  
  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl  
   
 _AM_IF_OPTION([no-define],,  
 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  
  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl  
   
 # Some tools Automake needs.  
 AC_REQUIRE([AM_SANITY_CHECK])dnl  
 AC_REQUIRE([AC_ARG_PROGRAM])dnl  
 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})  
 AM_MISSING_PROG(AUTOCONF, autoconf)  
 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})  
 AM_MISSING_PROG(AUTOHEADER, autoheader)  
 AM_MISSING_PROG(MAKEINFO, makeinfo)  
 AM_MISSING_PROG(AMTAR, tar)  
 AM_PROG_INSTALL_SH  
 AM_PROG_INSTALL_STRIP  
 # We need awk for the "check" target.  The system "awk" is bad on  
 # some platforms.  
 AC_REQUIRE([AC_PROG_AWK])dnl  
 AC_REQUIRE([AC_PROG_MAKE_SET])dnl  
   
 _AM_IF_OPTION([no-dependencies],,  
 [AC_PROVIDE_IFELSE([AC_PROG_CC],  
                   [_AM_DEPENDENCIES(CC)],  
                   [define([AC_PROG_CC],  
                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl  
 AC_PROVIDE_IFELSE([AC_PROG_CXX],  
                   [_AM_DEPENDENCIES(CXX)],  
                   [define([AC_PROG_CXX],  
                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl  
 ])  
 ])  
   
   
 # When config.status generates a header, we must update the stamp-h file.  
 # This file resides in the same directory as the config header  
 # that is generated.  The stamp files are numbered to have different names.  
   
 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the  
 # loop where config.status creates the headers, so we can generate  
 # our stamp files there.  
 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],  
 [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`  
 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])  
1689    
1690  # Copyright 2002  Free Software Foundation, Inc.  # Copyright 2002  Free Software Foundation, Inc.
1691    
# Line 980  echo "timestamp for $1" >`AS_DIRNAME([$1 Line 1707  echo "timestamp for $1" >`AS_DIRNAME([$1
1707  # ----------------------------  # ----------------------------
1708  # Automake X.Y traces this macro to ensure aclocal.m4 has been  # Automake X.Y traces this macro to ensure aclocal.m4 has been
1709  # generated from the m4 files accompanying Automake X.Y.  # generated from the m4 files accompanying Automake X.Y.
1710  AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])  AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
1711    
1712  # AM_SET_CURRENT_AUTOMAKE_VERSION  # AM_SET_CURRENT_AUTOMAKE_VERSION
1713  # -------------------------------  # -------------------------------
1714  # Call AM_AUTOMAKE_VERSION so it can be traced.  # Call AM_AUTOMAKE_VERSION so it can be traced.
1715  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1716  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1717           [AM_AUTOMAKE_VERSION([1.7.2])])           [AM_AUTOMAKE_VERSION([1.4-p6])])
   
 # Helper functions for option handling.                    -*- Autoconf -*-  
   
 # Copyright 2001, 2002  Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 2  
   
 # _AM_MANGLE_OPTION(NAME)  
 # -----------------------  
 AC_DEFUN([_AM_MANGLE_OPTION],  
 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])  
   
 # _AM_SET_OPTION(NAME)  
 # ------------------------------  
 # Set option NAME.  Presently that only means defining a flag for this option.  
 AC_DEFUN([_AM_SET_OPTION],  
 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])  
   
 # _AM_SET_OPTIONS(OPTIONS)  
 # ----------------------------------  
 # OPTIONS is a space-separated list of Automake options.  
 AC_DEFUN([_AM_SET_OPTIONS],  
 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])  
   
 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])  
 # -------------------------------------------  
 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.  
 AC_DEFUN([_AM_IF_OPTION],  
 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])  
1718    
1719  #  #
1720  # Check to make sure that the build environment is sane.  # Check to make sure that the build environment is sane.
1721  #  #
1722    
 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 3  
   
 # AM_SANITY_CHECK  
 # ---------------  
1723  AC_DEFUN([AM_SANITY_CHECK],  AC_DEFUN([AM_SANITY_CHECK],
1724  [AC_MSG_CHECKING([whether build environment is sane])  [AC_MSG_CHECKING([whether build environment is sane])
1725  # Just in case  # Just in case
1726  sleep 1  sleep 1
1727  echo timestamp > conftest.file  echo timestamp > conftestfile
1728  # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
1729  # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
1730  # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
1731  # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
1732  # directory).  # directory).
1733  if (  if (
1734     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1735     if test "$[*]" = "X"; then     if test "[$]*" = "X"; then
1736        # -L didn't work.        # -L didn't work.
1737        set X `ls -t $srcdir/configure conftest.file`        set X `ls -t $srcdir/configure conftestfile`
1738     fi     fi
1739     rm -f conftest.file     if test "[$]*" != "X $srcdir/configure conftestfile" \
1740     if test "$[*]" != "X $srcdir/configure conftest.file" \        && test "[$]*" != "X conftestfile $srcdir/configure"; then
       && test "$[*]" != "X conftest.file $srcdir/configure"; then  
1741    
1742        # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
1743        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
# Line 1086  if ( Line 1747  if (
1747  alias in your environment])  alias in your environment])
1748     fi     fi
1749    
1750     test "$[2]" = conftest.file     test "[$]2" = conftestfile
1751     )     )
1752  then  then
1753     # Ok.     # Ok.
# Line 1095  else Line 1756  else
1756     AC_MSG_ERROR([newly created file is older than distributed files!     AC_MSG_ERROR([newly created file is older than distributed files!
1757  Check your system clock])  Check your system clock])
1758  fi  fi
1759    rm -f conftest*
1760  AC_MSG_RESULT(yes)])  AC_MSG_RESULT(yes)])
1761    
1762  #  -*- Autoconf -*-  dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
1763    dnl The program must properly implement --version.
   
 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 3  
   
 # AM_MISSING_PROG(NAME, PROGRAM)  
 # ------------------------------  
1764  AC_DEFUN([AM_MISSING_PROG],  AC_DEFUN([AM_MISSING_PROG],
1765  [AC_REQUIRE([AM_MISSING_HAS_RUN])  [AC_MSG_CHECKING(for working $2)
1766  $1=${$1-"${am_missing_run}$2"}  # Run test in a subshell; some versions of sh will print an error if
1767  AC_SUBST($1)])  # an executable is not found, even if stderr is redirected.
1768    # Redirect stdin to placate older versions of autoconf.  Sigh.
1769    if ($2 --version) < /dev/null > /dev/null 2>&1; then
1770  # AM_MISSING_HAS_RUN     $1=$2
1771  # ------------------     AC_MSG_RESULT(found)
 # Define MISSING if not defined so far and test if it supports --run.  
 # If it does, set am_missing_run to use it, otherwise, to nothing.  
 AC_DEFUN([AM_MISSING_HAS_RUN],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"  
 # Use eval to expand $SHELL  
 if eval "$MISSING --run true"; then  
   am_missing_run="$MISSING --run "  
1772  else  else
1773    am_missing_run=     $1="$3/missing $2"
1774    AC_MSG_WARN([`missing' script is too old or missing])     AC_MSG_RESULT(missing)
1775  fi  fi
1776  ])  AC_SUBST($1)])
   
 # AM_AUX_DIR_EXPAND  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets  
 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to  
 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.  
 #  
 # Of course, Automake must honor this variable whenever it calls a  
 # tool from the auxiliary directory.  The problem is that $srcdir (and  
 # therefore $ac_aux_dir as well) can be either absolute or relative,  
 # depending on how configure is run.  This is pretty annoying, since  
 # it makes $ac_aux_dir quite unusable in subdirectories: in the top  
 # source directory, any form will work fine, but in subdirectories a  
 # relative path needs to be adjusted first.  
 #  
 # $ac_aux_dir/missing  
 #    fails when called from a subdirectory if $ac_aux_dir is relative  
 # $top_srcdir/$ac_aux_dir/missing  
 #    fails if $ac_aux_dir is absolute,  
 #    fails when called from a subdirectory in a VPATH build with  
 #          a relative $ac_aux_dir  
 #  
 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir  
 # are both prefixed by $srcdir.  In an in-source build this is usually  
 # harmless because $srcdir is `.', but things will broke when you  
 # start a VPATH build or use an absolute $srcdir.  
 #  
 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,  
 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:  
 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`  
 # and then we would define $MISSING as  
 #   MISSING="\${SHELL} $am_aux_dir/missing"  
 # This will work as long as MISSING is not called from configure, because  
 # unfortunately $(top_srcdir) has no meaning in configure.  
 # However there are other variables, like CC, which are often used in  
 # configure, and could therefore not use this "fixed" $ac_aux_dir.  
 #  
 # Another solution, used here, is to always expand $ac_aux_dir to an  
 # absolute PATH.  The drawback is that using absolute paths prevent a  
 # configured tree to be moved without reconfiguration.  
   
 # Rely on autoconf to set up CDPATH properly.  
 AC_PREREQ([2.50])  
   
 AC_DEFUN([AM_AUX_DIR_EXPAND], [  
 # expand $ac_aux_dir to an absolute path  
 am_aux_dir=`cd $ac_aux_dir && pwd`  
 ])  
   
 # AM_PROG_INSTALL_SH  
 # ------------------  
 # Define $install_sh.  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 AC_DEFUN([AM_PROG_INSTALL_SH],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 install_sh=${install_sh-"$am_aux_dir/install-sh"}  
 AC_SUBST(install_sh)])  
   
 # AM_PROG_INSTALL_STRIP  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # One issue with vendor `install' (even GNU) is that you can't  
 # specify the program used to strip binaries.  This is especially  
 # annoying in cross-compiling environments, where the build's strip  
 # is unlikely to handle the host's binaries.  
 # Fortunately install-sh will honor a STRIPPROG variable, so we  
 # always use install-sh in `make install-strip', and initialize  
 # STRIPPROG with the value of the STRIP variable (set by the user).  
 AC_DEFUN([AM_PROG_INSTALL_STRIP],  
 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl  
 # Installed binaries are usually stripped using `strip' when the user  
 # run `make install-strip'.  However `strip' might not be the right  
 # tool to use in cross-compilation environments, therefore Automake  
 # will honor the `STRIP' environment variable to overrule this program.  
 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.  
 if test "$cross_compiling" != no; then  
   AC_CHECK_TOOL([STRIP], [strip], :)  
 fi  
 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"  
 AC_SUBST([INSTALL_STRIP_PROGRAM])])  
   
 # serial 4                                              -*- Autoconf -*-  
   
 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
   
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
   
   
   
 # _AM_DEPENDENCIES(NAME)  
 # ----------------------  
 # See how the compiler implements dependency checking.  
 # NAME is "CC", "CXX", "GCJ", or "OBJC".  
 # We try a few techniques and use that to set a single cache variable.  
 #  
 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was  
 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular  
 # dependency, and given that the user is not expected to run this macro,  
 # just rely on AC_PROG_CC.  
 AC_DEFUN([_AM_DEPENDENCIES],  
 [AC_REQUIRE([AM_SET_DEPDIR])dnl  
 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl  
 AC_REQUIRE([AM_MAKE_INCLUDE])dnl  
 AC_REQUIRE([AM_DEP_TRACK])dnl  
   
 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],  
        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],  
        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],  
        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],  
                    [depcc="$$1"   am_compiler_list=])  
   
 AC_CACHE_CHECK([dependency style of $depcc],  
                [am_cv_$1_dependencies_compiler_type],  
 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then  
   # We make a subdir and do the tests there.  Otherwise we can end up  
   # making bogus files that we don't know about and never remove.  For  
   # instance it was reported that on HP-UX the gcc test will end up  
   # making a dummy file named `D' -- because `-MD' means `put the output  
   # in D'.  
   mkdir conftest.dir  
   # Copy depcomp to subdir because otherwise we won't find it if we're  
   # using a relative directory.  
   cp "$am_depcomp" conftest.dir  
   cd conftest.dir  
   
   am_cv_$1_dependencies_compiler_type=none  
   if test "$am_compiler_list" = ""; then  
      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`  
   fi  
   for depmode in $am_compiler_list; do  
     # We need to recreate these files for each test, as the compiler may  
     # overwrite some of them when testing with obscure command lines.  
     # This happens at least with the AIX C compiler.  
     echo '#include "conftest.h"' > conftest.c  
     echo 'int i;' > conftest.h  
     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf  
   
     case $depmode in  
     nosideeffect)  
       # after this tag, mechanisms are not by side-effect, so they'll  
       # only be used when explicitly requested  
       if test "x$enable_dependency_tracking" = xyes; then  
         continue  
       else  
         break  
       fi  
       ;;  
     none) break ;;  
     esac  
     # We check with `-c' and `-o' for the sake of the "dashmstdout"  
     # mode.  It turns out that the SunPro C++ compiler does not properly  
     # handle `-M -o', and we need to detect this.  
     if depmode=$depmode \  
        source=conftest.c object=conftest.o \  
        depfile=conftest.Po tmpdepfile=conftest.TPo \  
        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&  
        grep conftest.h conftest.Po > /dev/null 2>&1 &&  
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then  
       am_cv_$1_dependencies_compiler_type=$depmode  
       break  
     fi  
   done  
   
   cd ..  
   rm -rf conftest.dir  
 else  
   am_cv_$1_dependencies_compiler_type=none  
 fi  
 ])  
 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])  
 AM_CONDITIONAL([am__fastdep$1], [  
   test "x$enable_dependency_tracking" != xno \  
   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])  
 ])  
   
   
 # AM_SET_DEPDIR  
 # -------------  
 # Choose a directory name for dependency files.  
 # This macro is AC_REQUIREd in _AM_DEPENDENCIES  
 AC_DEFUN([AM_SET_DEPDIR],  
 [rm -f .deps 2>/dev/null  
 mkdir .deps 2>/dev/null  
 if test -d .deps; then  
   DEPDIR=.deps  
 else  
   # MS-DOS does not allow filenames that begin with a dot.  
   DEPDIR=_deps  
 fi  
 rmdir .deps 2>/dev/null  
 AC_SUBST([DEPDIR])  
 ])  
   
   
 # AM_DEP_TRACK  
 # ------------  
 AC_DEFUN([AM_DEP_TRACK],  
 [AC_ARG_ENABLE(dependency-tracking,  
 [  --disable-dependency-tracking Speeds up one-time builds  
   --enable-dependency-tracking  Do not reject slow dependency extractors])  
 if test "x$enable_dependency_tracking" != xno; then  
   am_depcomp="$ac_aux_dir/depcomp"  
   AMDEPBACKSLASH='\'  
 fi  
 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])  
 AC_SUBST([AMDEPBACKSLASH])  
 ])  
   
 # Generate code to set up dependency tracking.   -*- Autoconf -*-  
   
 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 #serial 2  
   
 # _AM_OUTPUT_DEPENDENCY_COMMANDS  
 # ------------------------------  
 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [for mf in $CONFIG_FILES; do  
   # Strip MF so we end up with the name of the file.  
   mf=`echo "$mf" | sed -e 's/:.*$//'`  
   # Check whether this is an Automake generated Makefile or not.  
   # We used to match only the files named `Makefile.in', but  
   # some people rename them; so instead we look at the file content.  
   # Grep'ing the first line is not enough: some people post-process  
   # each Makefile.in and add a new line on top of each file to say so.  
   # So let's grep whole file.  
   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then  
     dirpart=`AS_DIRNAME("$mf")`  
   else  
     continue  
   fi  
   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue  
   # Extract the definition of DEP_FILES from the Makefile without  
   # running `make'.  
   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`  
   test -z "$DEPDIR" && continue  
   # When using ansi2knr, U may be empty or an underscore; expand it  
   U=`sed -n -e '/^U = / s///p' < "$mf"`  
   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"  
   # We invoke sed twice because it is the simplest approach to  
   # changing $(DEPDIR) to its actual value in the expansion.  
   for file in `sed -n -e '  
     /^DEP_FILES = .*\\\\$/ {  
       s/^DEP_FILES = //  
       :loop  
         s/\\\\$//  
         p  
         n  
         /\\\\$/ b loop  
       p  
     }  
     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \  
        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do  
     # Make sure the directory exists.  
     test -f "$dirpart/$file" && continue  
     fdir=`AS_DIRNAME(["$file"])`  
     AS_MKDIR_P([$dirpart/$fdir])  
     # echo "creating $dirpart/$file"  
     echo '# dummy' > "$dirpart/$file"  
   done  
 done  
 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS  
   
   
 # AM_OUTPUT_DEPENDENCY_COMMANDS  
 # -----------------------------  
 # This macro should only be invoked once -- use via AC_REQUIRE.  
 #  
 # This code is only required when automatic dependency tracking  
 # is enabled.  FIXME.  This creates each `.P' file that we will  
 # need in order to bootstrap the dependency handling code.  
 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [AC_CONFIG_COMMANDS([depfiles],  
      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],  
      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])  
 ])  
   
 # Check to see how 'make' treats includes.      -*- Autoconf -*-  
   
 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 2  
   
 # AM_MAKE_INCLUDE()  
 # -----------------  
 # Check to see how make treats includes.  
 AC_DEFUN([AM_MAKE_INCLUDE],  
 [am_make=${MAKE-make}  
 cat > confinc << 'END'  
 doit:  
         @echo done  
 END  
 # If we don't find an include directive, just comment out the code.  
 AC_MSG_CHECKING([for style of include used by $am_make])  
 am__include="#"  
 am__quote=  
 _am_result=none  
 # First try GNU make style include.  
 echo "include confinc" > confmf  
 # We grep out `Entering directory' and `Leaving directory'  
 # messages which can occur if `w' ends up in MAKEFLAGS.  
 # In particular we don't look at `^make:' because GNU make might  
 # be invoked under some other name (usually "gmake"), in which  
 # case it prints its new name instead of `make'.  
 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then  
    am__include=include  
    am__quote=  
    _am_result=GNU  
 fi  
 # Now try BSD make style include.  
 if test "$am__include" = "#"; then  
    echo '.include "confinc"' > confmf  
    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then  
       am__include=.include  
       am__quote="\""  
       _am_result=BSD  
    fi  
 fi  
 AC_SUBST(am__include)  
 AC_SUBST(am__quote)  
 AC_MSG_RESULT($_am_result)  
 rm -f confinc confmf  
 ])  
   
 # AM_CONDITIONAL                                              -*- Autoconf -*-  
   
 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 5  
   
 AC_PREREQ(2.52)  
   
 # AM_CONDITIONAL(NAME, SHELL-CONDITION)  
 # -------------------------------------  
 # Define a conditional.  
 AC_DEFUN([AM_CONDITIONAL],  
 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],  
         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl  
 AC_SUBST([$1_TRUE])  
 AC_SUBST([$1_FALSE])  
 if $2; then  
   $1_TRUE=  
   $1_FALSE='#'  
 else  
   $1_TRUE='#'  
   $1_FALSE=  
 fi  
 AC_CONFIG_COMMANDS_PRE(  
 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  
   AC_MSG_ERROR([conditional "$1" was never defined.  
 Usually this means the macro was only invoked conditionally.])  
 fi])])  
1777    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26