~ubuntu-branches/ubuntu/wily/acsccid/wily

« back to all changes in this revision

Viewing changes to m4/ltoptions.m4

  • Committer: Package Import Robot
  • Author(s): Godfrey Chung
  • Date: 2012-06-19 14:50:30 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120619145030-vj1cladhx4yqe1g1
Tags: 1.0.4-1
* New upstream release.
* Updated debhelper to 9.
* Updated Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Helper functions for option handling.                    -*- Autoconf -*-
2
2
#
3
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
3
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
4
#   Inc.
4
5
#   Written by Gary V. Vaughan, 2004
5
6
#
6
7
# This file is free software; the Free Software Foundation gives
7
8
# unlimited permission to copy and/or distribute it, with or without
8
9
# modifications, as long as this notice is preserved.
9
10
 
10
 
# serial 6 ltoptions.m4
 
11
# serial 7 ltoptions.m4
11
12
 
12
13
# This is to help aclocal find these macros, as it can't see m4_define.
13
14
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
125
126
[enable_win32_dll=yes
126
127
 
127
128
case $host in
128
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
129
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129
130
  AC_CHECK_TOOL(AS, as, false)
130
131
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131
132
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
133
134
esac
134
135
 
135
136
test -z "$AS" && AS=as
136
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
137
_LT_DECL([], [AS],      [1], [Assembler program])dnl
137
138
 
138
139
test -z "$DLLTOOL" && DLLTOOL=dlltool
139
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
140
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141
 
141
142
test -z "$OBJDUMP" && OBJDUMP=objdump
142
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
143
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143
144
])# win32-dll
144
145
 
145
146
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
325
326
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
326
327
m4_define([_LT_WITH_PIC],
327
328
[AC_ARG_WITH([pic],
328
 
    [AS_HELP_STRING([--with-pic],
 
329
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329
330
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330
 
    [pic_mode="$withval"],
 
331
    [lt_p=${PACKAGE-default}
 
332
    case $withval in
 
333
    yes|no) pic_mode=$withval ;;
 
334
    *)
 
335
      pic_mode=default
 
336
      # Look at the argument we got.  We use all the common list separators.
 
337
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
338
      for lt_pkg in $withval; do
 
339
        IFS="$lt_save_ifs"
 
340
        if test "X$lt_pkg" = "X$lt_p"; then
 
341
          pic_mode=yes
 
342
        fi
 
343
      done
 
344
      IFS="$lt_save_ifs"
 
345
      ;;
 
346
    esac],
331
347
    [pic_mode=default])
332
348
 
333
349
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])