├── .gitignore ├── AUTHORS ├── COPYING ├── ChangeLog ├── INSTALL ├── Makefile.am ├── Makefile.in ├── NEWS ├── README.md ├── TODO ├── aclocal.m4 ├── config.guess ├── config.h.in ├── config.sub ├── configure ├── configure.in ├── depcomp ├── doc ├── Makefile.am ├── Makefile.in ├── html │ ├── Makefile.am │ └── Makefile.in └── man │ ├── Makefile.am │ ├── Makefile.in │ └── man1 │ ├── Makefile.am │ ├── Makefile.in │ └── adtool.1 ├── install-sh ├── ltmain.sh ├── missing ├── mkinstalldirs ├── src ├── Makefile.am ├── Makefile.in ├── etc │ ├── Makefile.am │ ├── Makefile.in │ └── adtool.cfg.dist ├── lib │ ├── Makefile.am │ ├── Makefile.in │ ├── active_directory.c │ └── active_directory.h └── tools │ ├── Makefile.am │ ├── Makefile.in │ └── adtool.c └── tests ├── Makefile.am ├── Makefile.in └── test.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | 5 | # Libraries 6 | *.lib 7 | *.a 8 | 9 | # Shared objects (inc. Windows DLLs) 10 | *.dll 11 | *.so 12 | *.so.* 13 | *.dylib 14 | 15 | # Executables 16 | *.exe 17 | *.out 18 | *.app 19 | 20 | 21 | ## Other crap 22 | Makefile 23 | config.h 24 | config.log 25 | config.status 26 | doc/Makefile 27 | doc/html/Makefile 28 | doc/man/Makefile 29 | doc/man/man1/Makefile 30 | libtool 31 | src/Makefile 32 | src/etc/Makefile 33 | src/lib/.deps/ 34 | src/lib/Makefile 35 | src/tools/.deps/ 36 | src/tools/Makefile 37 | tests/Makefile 38 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | mike@gp2x.org 2 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Library General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License 307 | along with this program; if not, write to the Free Software 308 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309 | 310 | 311 | Also add information on how to contact you by electronic and paper mail. 312 | 313 | If the program is interactive, make it output a short notice like this 314 | when it starts in an interactive mode: 315 | 316 | Gnomovision version 69, Copyright (C) year name of author 317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318 | This is free software, and you are welcome to redistribute it 319 | under certain conditions; type `show c' for details. 320 | 321 | The hypothetical commands `show w' and `show c' should show the appropriate 322 | parts of the General Public License. Of course, the commands you use may 323 | be called something other than `show w' and `show c'; they could even be 324 | mouse-clicks or menu items--whatever suits your program. 325 | 326 | You should also get your employer (if you work as a programmer) or your 327 | school, if any, to sign a "copyright disclaimer" for the program, if 328 | necessary. Here is a sample; alter the names: 329 | 330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 332 | 333 | , 1 April 1989 334 | Ty Coon, President of Vice 335 | 336 | This General Public License does not permit incorporating your program into 337 | proprietary programs. If your program is a subroutine library, you may 338 | consider it more useful to permit linking proprietary applications with the 339 | library. If this is what you want to do, use the GNU Library General 340 | Public License instead of this License. 341 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonwbarnett/linux-adtool/50c0514f8b2ff0535e52af021bf753e71caf45d0/ChangeLog -------------------------------------------------------------------------------- /INSTALL: -------------------------------------------------------------------------------- 1 | 2 | 3 | See the README file. 4 | 5 | 6 | Basic Installation 7 | ================== 8 | 9 | These are generic installation instructions. 10 | 11 | The `configure' shell script attempts to guess correct values for 12 | various system-dependent variables used during compilation. It uses 13 | those values to create a `Makefile' in each directory of the package. 14 | It may also create one or more `.h' files containing system-dependent 15 | definitions. Finally, it creates a shell script `config.status' that 16 | you can run in the future to recreate the current configuration, a file 17 | `config.cache' that saves the results of its tests to speed up 18 | reconfiguring, and a file `config.log' containing compiler output 19 | (useful mainly for debugging `configure'). 20 | 21 | If you need to do unusual things to compile the package, please try 22 | to figure out how `configure' could check whether to do them, and mail 23 | diffs or instructions to the address given in the `README' so they can 24 | be considered for the next release. If at some point `config.cache' 25 | contains results you don't want to keep, you may remove or edit it. 26 | 27 | The file `configure.in' is used to create `configure' by a program 28 | called `autoconf'. You only need `configure.in' if you want to change 29 | it or regenerate `configure' using a newer version of `autoconf'. 30 | 31 | The simplest way to compile this package is: 32 | 33 | 1. `cd' to the directory containing the package's source code and type 34 | `./configure' to configure the package for your system. If you're 35 | using `csh' on an old version of System V, you might need to type 36 | `sh ./configure' instead to prevent `csh' from trying to execute 37 | `configure' itself. 38 | 39 | Running `configure' takes awhile. While running, it prints some 40 | messages telling which features it is checking for. 41 | 42 | 2. Type `make' to compile the package. 43 | 44 | 3. Optionally, type `make check' to run any self-tests that come with 45 | the package. 46 | 47 | 4. Type `make install' to install the programs and any data files and 48 | documentation. 49 | 50 | 5. You can remove the program binaries and object files from the 51 | source code directory by typing `make clean'. To also remove the 52 | files that `configure' created (so you can compile the package for 53 | a different kind of computer), type `make distclean'. There is 54 | also a `make maintainer-clean' target, but that is intended mainly 55 | for the package's developers. If you use it, you may have to get 56 | all sorts of other programs in order to regenerate files that came 57 | with the distribution. 58 | 59 | Compilers and Options 60 | ===================== 61 | 62 | Some systems require unusual options for compilation or linking that 63 | the `configure' script does not know about. You can give `configure' 64 | initial values for variables by setting them in the environment. Using 65 | a Bourne-compatible shell, you can do that on the command line like 66 | this: 67 | CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure 68 | 69 | Or on systems that have the `env' program, you can do it like this: 70 | env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 71 | 72 | Compiling For Multiple Architectures 73 | ==================================== 74 | 75 | You can compile the package for more than one kind of computer at the 76 | same time, by placing the object files for each architecture in their 77 | own directory. To do this, you must use a version of `make' that 78 | supports the `VPATH' variable, such as GNU `make'. `cd' to the 79 | directory where you want the object files and executables to go and run 80 | the `configure' script. `configure' automatically checks for the 81 | source code in the directory that `configure' is in and in `..'. 82 | 83 | If you have to use a `make' that does not supports the `VPATH' 84 | variable, you have to compile the package for one architecture at a time 85 | in the source code directory. After you have installed the package for 86 | one architecture, use `make distclean' before reconfiguring for another 87 | architecture. 88 | 89 | Installation Names 90 | ================== 91 | 92 | By default, `make install' will install the package's files in 93 | `/usr/local/bin', `/usr/local/man', etc. You can specify an 94 | installation prefix other than `/usr/local' by giving `configure' the 95 | option `--prefix=PATH'. 96 | 97 | You can specify separate installation prefixes for 98 | architecture-specific files and architecture-independent files. If you 99 | give `configure' the option `--exec-prefix=PATH', the package will use 100 | PATH as the prefix for installing programs and libraries. 101 | Documentation and other data files will still use the regular prefix. 102 | 103 | In addition, if you use an unusual directory layout you can give 104 | options like `--bindir=PATH' to specify different values for particular 105 | kinds of files. Run `configure --help' for a list of the directories 106 | you can set and what kinds of files go in them. 107 | 108 | If the package supports it, you can cause programs to be installed 109 | with an extra prefix or suffix on their names by giving `configure' the 110 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. 111 | 112 | Optional Features 113 | ================= 114 | 115 | Some packages pay attention to `--enable-FEATURE' options to 116 | `configure', where FEATURE indicates an optional part of the package. 117 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE 118 | is something like `gnu-as' or `x' (for the X Window System). The 119 | `README' should mention any `--enable-' and `--with-' options that the 120 | package recognizes. 121 | 122 | For packages that use the X Window System, `configure' can usually 123 | find the X include and library files automatically, but if it doesn't, 124 | you can use the `configure' options `--x-includes=DIR' and 125 | `--x-libraries=DIR' to specify their locations. 126 | 127 | Specifying the System Type 128 | ========================== 129 | 130 | There may be some features `configure' can not figure out 131 | automatically, but needs to determine by the type of host the package 132 | will run on. Usually `configure' can figure that out, but if it prints 133 | a message saying it can not guess the host type, give it the 134 | `--host=TYPE' option. TYPE can either be a short name for the system 135 | type, such as `sun4', or a canonical name with three fields: 136 | CPU-COMPANY-SYSTEM 137 | 138 | See the file `config.sub' for the possible values of each field. If 139 | `config.sub' isn't included in this package, then this package doesn't 140 | need to know the host type. 141 | 142 | If you are building compiler tools for cross-compiling, you can also 143 | use the `--target=TYPE' option to select the type of system they will 144 | produce code for and the `--build=TYPE' option to select the type of 145 | system on which you are compiling the package. 146 | 147 | Sharing Defaults 148 | ================ 149 | 150 | If you want to set default values for `configure' scripts to share, 151 | you can create a site shell script called `config.site' that gives 152 | default values for variables like `CC', `cache_file', and `prefix'. 153 | `configure' looks for `PREFIX/share/config.site' if it exists, then 154 | `PREFIX/etc/config.site' if it exists. Or, you can set the 155 | `CONFIG_SITE' environment variable to the location of the site script. 156 | A warning: not all `configure' scripts look for a site script. 157 | 158 | Operation Controls 159 | ================== 160 | 161 | `configure' recognizes the following options to control how it 162 | operates. 163 | 164 | `--cache-file=FILE' 165 | Use and save the results of the tests in FILE instead of 166 | `./config.cache'. Set FILE to `/dev/null' to disable caching, for 167 | debugging `configure'. 168 | 169 | `--help' 170 | Print a summary of the options to `configure', and exit. 171 | 172 | `--quiet' 173 | `--silent' 174 | `-q' 175 | Do not print messages saying which checks are being made. To 176 | suppress all normal output, redirect it to `/dev/null' (any error 177 | messages will still be shown). 178 | 179 | `--srcdir=DIR' 180 | Look for the package's source code in directory DIR. Usually 181 | `configure' can determine that directory automatically. 182 | 183 | `--version' 184 | Print the version of Autoconf used to generate the `configure' 185 | script, and exit. 186 | 187 | `configure' also accepts some other, not widely useful, options. 188 | -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | SUBDIRS = src doc tests 3 | -------------------------------------------------------------------------------- /Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = . 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | SUBDIRS = src doc tests 142 | subdir = . 143 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 144 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 145 | CONFIG_CLEAN_FILES = config.h 146 | DIST_SOURCES = 147 | 148 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ 149 | ps-recursive install-info-recursive uninstall-info-recursive \ 150 | all-recursive install-data-recursive install-exec-recursive \ 151 | installdirs-recursive install-recursive uninstall-recursive \ 152 | check-recursive installcheck-recursive 153 | DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ 154 | COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \ 155 | config.guess config.h.in config.sub configure configure.in \ 156 | depcomp install-sh ltmain.sh missing mkinstalldirs 157 | DIST_SUBDIRS = $(SUBDIRS) 158 | all: all-recursive 159 | 160 | .SUFFIXES: 161 | 162 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 163 | configure.lineno 164 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 165 | cd $(top_srcdir) && \ 166 | $(AUTOMAKE) --gnu Makefile 167 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 168 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) 169 | 170 | $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 171 | $(SHELL) ./config.status --recheck 172 | $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 173 | cd $(srcdir) && $(AUTOCONF) 174 | 175 | $(ACLOCAL_M4): configure.in 176 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 177 | config.h: $(top_builddir)/config.status config.h.in 178 | cd $(top_builddir) && $(SHELL) ./config.status $@ 179 | 180 | mostlyclean-libtool: 181 | -rm -f *.lo 182 | 183 | clean-libtool: 184 | -rm -rf .libs _libs 185 | 186 | distclean-libtool: 187 | -rm -f libtool 188 | uninstall-info-am: 189 | 190 | # This directory's subdirectories are mostly independent; you can cd 191 | # into them and run `make' without going through this Makefile. 192 | # To change the values of `make' variables: instead of editing Makefiles, 193 | # (1) if the variable is set in `config.status', edit `config.status' 194 | # (which will cause the Makefiles to be regenerated when you run `make'); 195 | # (2) otherwise, pass the desired values on the `make' command line. 196 | $(RECURSIVE_TARGETS): 197 | @set fnord $$MAKEFLAGS; amf=$$2; \ 198 | dot_seen=no; \ 199 | target=`echo $@ | sed s/-recursive//`; \ 200 | list='$(SUBDIRS)'; for subdir in $$list; do \ 201 | echo "Making $$target in $$subdir"; \ 202 | if test "$$subdir" = "."; then \ 203 | dot_seen=yes; \ 204 | local_target="$$target-am"; \ 205 | else \ 206 | local_target="$$target"; \ 207 | fi; \ 208 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 209 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 210 | done; \ 211 | if test "$$dot_seen" = "no"; then \ 212 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 213 | fi; test -z "$$fail" 214 | 215 | mostlyclean-recursive clean-recursive distclean-recursive \ 216 | maintainer-clean-recursive: 217 | @set fnord $$MAKEFLAGS; amf=$$2; \ 218 | dot_seen=no; \ 219 | case "$@" in \ 220 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 221 | *) list='$(SUBDIRS)' ;; \ 222 | esac; \ 223 | rev=''; for subdir in $$list; do \ 224 | if test "$$subdir" = "."; then :; else \ 225 | rev="$$subdir $$rev"; \ 226 | fi; \ 227 | done; \ 228 | rev="$$rev ."; \ 229 | target=`echo $@ | sed s/-recursive//`; \ 230 | for subdir in $$rev; do \ 231 | echo "Making $$target in $$subdir"; \ 232 | if test "$$subdir" = "."; then \ 233 | local_target="$$target-am"; \ 234 | else \ 235 | local_target="$$target"; \ 236 | fi; \ 237 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 238 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 239 | done && test -z "$$fail" 240 | tags-recursive: 241 | list='$(SUBDIRS)'; for subdir in $$list; do \ 242 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 243 | done 244 | ctags-recursive: 245 | list='$(SUBDIRS)'; for subdir in $$list; do \ 246 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 247 | done 248 | 249 | ETAGS = etags 250 | ETAGSFLAGS = 251 | 252 | CTAGS = ctags 253 | CTAGSFLAGS = 254 | 255 | tags: TAGS 256 | 257 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 258 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 259 | unique=`for i in $$list; do \ 260 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 261 | done | \ 262 | $(AWK) ' { files[$$0] = 1; } \ 263 | END { for (i in files) print i; }'`; \ 264 | mkid -fID $$unique 265 | 266 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 267 | $(TAGS_FILES) $(LISP) 268 | tags=; \ 269 | here=`pwd`; \ 270 | if (etags --etags-include --version) >/dev/null 2>&1; then \ 271 | include_option=--etags-include; \ 272 | else \ 273 | include_option=--include; \ 274 | fi; \ 275 | list='$(SUBDIRS)'; for subdir in $$list; do \ 276 | if test "$$subdir" = .; then :; else \ 277 | test -f $$subdir/TAGS && \ 278 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 279 | fi; \ 280 | done; \ 281 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 282 | unique=`for i in $$list; do \ 283 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 284 | done | \ 285 | $(AWK) ' { files[$$0] = 1; } \ 286 | END { for (i in files) print i; }'`; \ 287 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 288 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 289 | $$tags $$unique 290 | 291 | ctags: CTAGS 292 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 293 | $(TAGS_FILES) $(LISP) 294 | tags=; \ 295 | here=`pwd`; \ 296 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 297 | unique=`for i in $$list; do \ 298 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 299 | done | \ 300 | $(AWK) ' { files[$$0] = 1; } \ 301 | END { for (i in files) print i; }'`; \ 302 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 303 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 304 | $$tags $$unique 305 | 306 | GTAGS: 307 | here=`$(am__cd) $(top_builddir) && pwd` \ 308 | && cd $(top_srcdir) \ 309 | && gtags -i $(GTAGS_ARGS) $$here 310 | 311 | distclean-tags: 312 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 313 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 314 | 315 | top_distdir = . 316 | distdir = $(PACKAGE)-$(VERSION) 317 | 318 | am__remove_distdir = \ 319 | { test ! -d $(distdir) \ 320 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 321 | && rm -fr $(distdir); }; } 322 | 323 | GZIP_ENV = --best 324 | distuninstallcheck_listfiles = find . -type f -print 325 | distcleancheck_listfiles = find . -type f -print 326 | 327 | distdir: $(DISTFILES) 328 | $(am__remove_distdir) 329 | mkdir $(distdir) 330 | $(mkinstalldirs) $(distdir)/. 331 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 332 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 333 | list='$(DISTFILES)'; for file in $$list; do \ 334 | case $$file in \ 335 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 336 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 337 | esac; \ 338 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 339 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 340 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 341 | dir="/$$dir"; \ 342 | $(mkinstalldirs) "$(distdir)$$dir"; \ 343 | else \ 344 | dir=''; \ 345 | fi; \ 346 | if test -d $$d/$$file; then \ 347 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 348 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 349 | fi; \ 350 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 351 | else \ 352 | test -f $(distdir)/$$file \ 353 | || cp -p $$d/$$file $(distdir)/$$file \ 354 | || exit 1; \ 355 | fi; \ 356 | done 357 | list='$(SUBDIRS)'; for subdir in $$list; do \ 358 | if test "$$subdir" = .; then :; else \ 359 | test -d $(distdir)/$$subdir \ 360 | || mkdir $(distdir)/$$subdir \ 361 | || exit 1; \ 362 | (cd $$subdir && \ 363 | $(MAKE) $(AM_MAKEFLAGS) \ 364 | top_distdir="$(top_distdir)" \ 365 | distdir=../$(distdir)/$$subdir \ 366 | distdir) \ 367 | || exit 1; \ 368 | fi; \ 369 | done 370 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 371 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 372 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 373 | ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ 374 | || chmod -R a+r $(distdir) 375 | dist-gzip: distdir 376 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 377 | $(am__remove_distdir) 378 | 379 | dist dist-all: distdir 380 | $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 381 | $(am__remove_distdir) 382 | 383 | # This target untars the dist file and tries a VPATH configuration. Then 384 | # it guarantees that the distribution is self-contained by making another 385 | # tarfile. 386 | distcheck: dist 387 | $(am__remove_distdir) 388 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - 389 | chmod -R a-w $(distdir); chmod a+w $(distdir) 390 | mkdir $(distdir)/_build 391 | mkdir $(distdir)/_inst 392 | chmod a-w $(distdir) 393 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 394 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 395 | && cd $(distdir)/_build \ 396 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 397 | $(DISTCHECK_CONFIGURE_FLAGS) \ 398 | && $(MAKE) $(AM_MAKEFLAGS) \ 399 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ 400 | && $(MAKE) $(AM_MAKEFLAGS) check \ 401 | && $(MAKE) $(AM_MAKEFLAGS) install \ 402 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 403 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 404 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ 405 | distuninstallcheck \ 406 | && chmod -R a-w "$$dc_install_base" \ 407 | && ({ \ 408 | (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ 409 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ 410 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ 411 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ 412 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ 413 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ 414 | && rm -rf "$$dc_destdir" \ 415 | && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ 416 | && rm -f $(distdir).tar.gz \ 417 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck 418 | $(am__remove_distdir) 419 | @echo "$(distdir).tar.gz is ready for distribution" | \ 420 | sed 'h;s/./=/g;p;x;p;x' 421 | distuninstallcheck: 422 | @cd $(distuninstallcheck_dir) \ 423 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 424 | || { echo "ERROR: files left after uninstall:" ; \ 425 | if test -n "$(DESTDIR)"; then \ 426 | echo " (check DESTDIR support)"; \ 427 | fi ; \ 428 | $(distuninstallcheck_listfiles) ; \ 429 | exit 1; } >&2 430 | distcleancheck: distclean 431 | @if test '$(srcdir)' = . ; then \ 432 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ 433 | exit 1 ; \ 434 | fi 435 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ 436 | || { echo "ERROR: files left in build directory after distclean:" ; \ 437 | $(distcleancheck_listfiles) ; \ 438 | exit 1; } >&2 439 | check-am: all-am 440 | check: check-recursive 441 | all-am: Makefile 442 | installdirs: installdirs-recursive 443 | installdirs-am: 444 | 445 | install: install-recursive 446 | install-exec: install-exec-recursive 447 | install-data: install-data-recursive 448 | uninstall: uninstall-recursive 449 | 450 | install-am: all-am 451 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 452 | 453 | installcheck: installcheck-recursive 454 | install-strip: 455 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 456 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 457 | `test -z '$(STRIP)' || \ 458 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 459 | mostlyclean-generic: 460 | 461 | clean-generic: 462 | 463 | distclean-generic: 464 | -rm -f $(CONFIG_CLEAN_FILES) 465 | 466 | maintainer-clean-generic: 467 | @echo "This command is intended for maintainers to use" 468 | @echo "it deletes files that may require special tools to rebuild." 469 | clean: clean-recursive 470 | 471 | clean-am: clean-generic clean-libtool mostlyclean-am 472 | 473 | distclean: distclean-recursive 474 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) 475 | -rm -f Makefile 476 | distclean-am: clean-am distclean-generic distclean-libtool \ 477 | distclean-tags 478 | 479 | dvi: dvi-recursive 480 | 481 | dvi-am: 482 | 483 | info: info-recursive 484 | 485 | info-am: 486 | 487 | install-data-am: 488 | 489 | install-exec-am: 490 | 491 | install-info: install-info-recursive 492 | 493 | install-man: 494 | 495 | installcheck-am: 496 | 497 | maintainer-clean: maintainer-clean-recursive 498 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) 499 | -rm -rf $(top_srcdir)/autom4te.cache 500 | -rm -f Makefile 501 | maintainer-clean-am: distclean-am maintainer-clean-generic 502 | 503 | mostlyclean: mostlyclean-recursive 504 | 505 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 506 | 507 | pdf: pdf-recursive 508 | 509 | pdf-am: 510 | 511 | ps: ps-recursive 512 | 513 | ps-am: 514 | 515 | uninstall-am: uninstall-info-am 516 | 517 | uninstall-info: uninstall-info-recursive 518 | 519 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ 520 | clean-generic clean-libtool clean-recursive ctags \ 521 | ctags-recursive dist dist-all dist-gzip distcheck distclean \ 522 | distclean-generic distclean-libtool distclean-recursive \ 523 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ 524 | dvi-am dvi-recursive info info-am info-recursive install \ 525 | install-am install-data install-data-am install-data-recursive \ 526 | install-exec install-exec-am install-exec-recursive \ 527 | install-info install-info-am install-info-recursive install-man \ 528 | install-recursive install-strip installcheck installcheck-am \ 529 | installdirs installdirs-am installdirs-recursive \ 530 | maintainer-clean maintainer-clean-generic \ 531 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ 532 | mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ 533 | pdf-recursive ps ps-am ps-recursive tags tags-recursive \ 534 | uninstall uninstall-am uninstall-info-am \ 535 | uninstall-info-recursive uninstall-recursive 536 | 537 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 538 | # Otherwise a system limit (for SysV at least) may be exceeded. 539 | .NOEXPORT: 540 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonwbarnett/linux-adtool/50c0514f8b2ff0535e52af021bf753e71caf45d0/NEWS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Description: 2 | adtool is a unix command line utility for Active Directory administration. Features include user and group creation, deletion, modification, password setting and directory query and search capabilities. 3 | 4 | ## System requirements: 5 | adtool requires LDAP libraries to be installed (www.openldap.org). To use secure (ldaps://) connections OpenLDAP has to have been built with SSL support. SSL support is required for the password setting feature to work. 6 | 7 | ## Installation: 8 | ``` 9 | tar zxvf adtools-1.x.tar.gz 10 | cd adtools-1.x 11 | ./configure 12 | make 13 | make install 14 | ``` 15 | 16 | Configure options: `--prefix=install_path`, `--with-ldap=/openldap_install_prefix` 17 | 18 | ## Configuration: 19 | An example configuration file is installed to {prefix}/etc/adtool.cfg.dist. Rename this to adtool.cfg and edit as appropriate. Alternatively, command line options can be used. 20 | 21 | ``` 22 | ## This can be located either ~/.adtool.cfg OR /etc/adtool.cfg 23 | ## Do NOT surround values with either " or ' 24 | uri ldap://dc1.example.com 25 | binddn cn=administrator,ou=admin,dc=example,dc=com 26 | bindpw passw0rd 27 | searchbase dc=example,dc=com 28 | ``` 29 | 30 | ## Usage: 31 | ``` 32 | > adtool list ou=user,dc=example,dc=com 33 | CN=allusers,OU=user,DC=example,DC=com 34 | OU=finance,OU=user,DC=example,DC=com 35 | OU=administration,OU=user,DC=example,DC=com 36 | 37 | > adtool oucreate marketing ou=user,dc=example,dc=com 38 | > adtool useradd jsmith ou=marketing,ou=user,dc=example,dc=com 39 | > adtool setpass jsmith banana 40 | > adtool unlock jsmith 41 | > adtool groupadd allusers jsmith 42 | > adtool attributereplace jsmith telephonenumber 123 43 | > adtool attributereplace jsmith mail jsmith@example.com 44 | ``` 45 | 46 | See the adtool man page for more info 47 | 48 | 49 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | dns support 2 | interactive password entry 3 | testing script 4 | auth test operation 5 | better error reporting on list 6 | 7 | add to docs: 8 | http://support.microsoft.com/default.aspx?scid=KB;EN-US;q247078& 9 | (enabling ssl) 10 | 11 | http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/sag_CSprocsinstallroot.htm 12 | (installing certificate authority) 13 | 14 | freebsd fix 15 | international charset support 16 | change url refs to sourceforge 17 | -------------------------------------------------------------------------------- /config.h.in: -------------------------------------------------------------------------------- 1 | /* config.h.in. Generated automatically from configure.in by autoheader. */ 2 | 3 | /* Define if you have the header file. */ 4 | #undef HAVE_FCNTL_H 5 | 6 | /* Define if your system has a working `malloc' function. */ 7 | #undef HAVE_MALLOC 8 | 9 | /* Define if you have the `memset' function. */ 10 | #undef HAVE_MEMSET 11 | 12 | /* Define if you have the header file. */ 13 | #undef HAVE_STDLIB_H 14 | 15 | /* Define if you have the `strdup' function. */ 16 | #undef HAVE_STRDUP 17 | 18 | /* Define if you have the header file. */ 19 | #undef HAVE_STRING_H 20 | 21 | /* Define if you have the ANSI C header files. */ 22 | #undef STDC_HEADERS 23 | -------------------------------------------------------------------------------- /configure.in: -------------------------------------------------------------------------------- 1 | # Process this file with autoconf to produce a configure script. 2 | AC_INIT 3 | AM_INIT_AUTOMAKE(adtool, 1.3.3) 4 | 5 | # Checks for programs. 6 | AC_PROG_CC 7 | AC_PROG_INSTALL 8 | AM_PROG_LIBTOOL 9 | 10 | # Checks for libraries. 11 | case "$host_os" in 12 | *solaris*) 13 | LDFLAGS="-lsocket -lposix4 $LDFLAGS" 14 | esac 15 | 16 | AC_ARG_WITH( ldap, 17 | [ --with-ldap=DIR OpenLDAP install prefix ], 18 | [ 19 | CFLAGS="-I${with_ldap}/include $CFLAGS" 20 | LDFLAGS="-L${with_ldap}/lib $LDFLAGS" 21 | ]) 22 | 23 | # Checks for header files. 24 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h]) 25 | 26 | # Checks for typedefs, structures, and compiler characteristics. 27 | 28 | # Checks for library functions. 29 | AC_FUNC_MALLOC 30 | AC_CHECK_FUNCS([memset strdup]) 31 | 32 | AC_CONFIG_FILES([config.h]) 33 | 34 | AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/tools/Makefile src/etc/Makefile doc/Makefile doc/man/Makefile doc/man/man1/Makefile doc/html/Makefile tests/Makefile) 35 | -------------------------------------------------------------------------------- /depcomp: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # depcomp - compile a program generating dependencies as side-effects 4 | # Copyright 1999, 2000 Free Software Foundation, Inc. 5 | 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2, or (at your option) 9 | # any later version. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 19 | # 02111-1307, USA. 20 | 21 | # As a special exception to the GNU General Public License, if you 22 | # distribute this file as part of a program that contains a 23 | # configuration script generated by Autoconf, you may include it under 24 | # the same distribution terms that you use for the rest of that program. 25 | 26 | # Originally written by Alexandre Oliva . 27 | 28 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then 29 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 30 | exit 1 31 | fi 32 | # `libtool' can also be set to `yes' or `no'. 33 | 34 | if test -z "$depfile"; then 35 | base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` 36 | dir=`echo "$object" | sed 's,/.*$,/,'` 37 | if test "$dir" = "$object"; then 38 | dir= 39 | fi 40 | # FIXME: should be _deps on DOS. 41 | depfile="$dir.deps/$base" 42 | fi 43 | 44 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 45 | 46 | rm -f "$tmpdepfile" 47 | 48 | # Some modes work just like other modes, but use different flags. We 49 | # parameterize here, but still list the modes in the big case below, 50 | # to make depend.m4 easier to write. Note that we *cannot* use a case 51 | # here, because this file can only contain one case statement. 52 | if test "$depmode" = hp; then 53 | # HP compiler uses -M and no extra arg. 54 | gccflag=-M 55 | depmode=gcc 56 | fi 57 | 58 | if test "$depmode" = dashXmstdout; then 59 | # This is just like dashmstdout with a different argument. 60 | dashmflag=-xM 61 | depmode=dashmstdout 62 | fi 63 | 64 | case "$depmode" in 65 | gcc3) 66 | ## gcc 3 implements dependency tracking that does exactly what 67 | ## we want. Yay! Note: for some reason libtool 1.4 doesn't like 68 | ## it if -MD -MP comes after the -MF stuff. Hmm. 69 | "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" 70 | stat=$? 71 | if test $stat -eq 0; then : 72 | else 73 | rm -f "$tmpdepfile" 74 | exit $stat 75 | fi 76 | mv "$tmpdepfile" "$depfile" 77 | ;; 78 | 79 | gcc) 80 | ## There are various ways to get dependency output from gcc. Here's 81 | ## why we pick this rather obscure method: 82 | ## - Don't want to use -MD because we'd like the dependencies to end 83 | ## up in a subdir. Having to rename by hand is ugly. 84 | ## (We might end up doing this anyway to support other compilers.) 85 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like 86 | ## -MM, not -M (despite what the docs say). 87 | ## - Using -M directly means running the compiler twice (even worse 88 | ## than renaming). 89 | if test -z "$gccflag"; then 90 | gccflag=-MD, 91 | fi 92 | "$@" -Wp,"$gccflag$tmpdepfile" 93 | stat=$? 94 | if test $stat -eq 0; then : 95 | else 96 | rm -f "$tmpdepfile" 97 | exit $stat 98 | fi 99 | rm -f "$depfile" 100 | echo "$object : \\" > "$depfile" 101 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 102 | ## The second -e expression handles DOS-style file names with drive letters. 103 | sed -e 's/^[^:]*: / /' \ 104 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" 105 | ## This next piece of magic avoids the `deleted header file' problem. 106 | ## The problem is that when a header file which appears in a .P file 107 | ## is deleted, the dependency causes make to die (because there is 108 | ## typically no way to rebuild the header). We avoid this by adding 109 | ## dummy dependencies for each header file. Too bad gcc doesn't do 110 | ## this for us directly. 111 | tr ' ' ' 112 | ' < "$tmpdepfile" | 113 | ## Some versions of gcc put a space before the `:'. On the theory 114 | ## that the space means something, we add a space to the output as 115 | ## well. 116 | ## Some versions of the HPUX 10.20 sed can't process this invocation 117 | ## correctly. Breaking it into two sed invocations is a workaround. 118 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 119 | rm -f "$tmpdepfile" 120 | ;; 121 | 122 | hp) 123 | # This case exists only to let depend.m4 do its work. It works by 124 | # looking at the text of this script. This case will never be run, 125 | # since it is checked for above. 126 | exit 1 127 | ;; 128 | 129 | sgi) 130 | if test "$libtool" = yes; then 131 | "$@" "-Wp,-MDupdate,$tmpdepfile" 132 | else 133 | "$@" -MDupdate "$tmpdepfile" 134 | fi 135 | stat=$? 136 | if test $stat -eq 0; then : 137 | else 138 | rm -f "$tmpdepfile" 139 | exit $stat 140 | fi 141 | rm -f "$depfile" 142 | 143 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files 144 | echo "$object : \\" > "$depfile" 145 | 146 | # Clip off the initial element (the dependent). Don't try to be 147 | # clever and replace this with sed code, as IRIX sed won't handle 148 | # lines with more than a fixed number of characters (4096 in 149 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; 150 | # the IRIX cc adds comments like `#:fec' to the end of the 151 | # dependency line. 152 | tr ' ' ' 153 | ' < "$tmpdepfile" \ 154 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ 155 | tr ' 156 | ' ' ' >> $depfile 157 | echo >> $depfile 158 | 159 | # The second pass generates a dummy entry for each header file. 160 | tr ' ' ' 161 | ' < "$tmpdepfile" \ 162 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ 163 | >> $depfile 164 | else 165 | # The sourcefile does not contain any dependencies, so just 166 | # store a dummy comment line, to avoid errors with the Makefile 167 | # "include basename.Plo" scheme. 168 | echo "#dummy" > "$depfile" 169 | fi 170 | rm -f "$tmpdepfile" 171 | ;; 172 | 173 | aix) 174 | # The C for AIX Compiler uses -M and outputs the dependencies 175 | # in a .u file. This file always lives in the current directory. 176 | # Also, the AIX compiler puts `$object:' at the start of each line; 177 | # $object doesn't have directory information. 178 | stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` 179 | tmpdepfile="$stripped.u" 180 | outname="$stripped.o" 181 | if test "$libtool" = yes; then 182 | "$@" -Wc,-M 183 | else 184 | "$@" -M 185 | fi 186 | 187 | stat=$? 188 | if test $stat -eq 0; then : 189 | else 190 | rm -f "$tmpdepfile" 191 | exit $stat 192 | fi 193 | 194 | if test -f "$tmpdepfile"; then 195 | # Each line is of the form `foo.o: dependent.h'. 196 | # Do two passes, one to just change these to 197 | # `$object: dependent.h' and one to simply `dependent.h:'. 198 | sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" 199 | sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" 200 | else 201 | # The sourcefile does not contain any dependencies, so just 202 | # store a dummy comment line, to avoid errors with the Makefile 203 | # "include basename.Plo" scheme. 204 | echo "#dummy" > "$depfile" 205 | fi 206 | rm -f "$tmpdepfile" 207 | ;; 208 | 209 | tru64) 210 | # The Tru64 compiler uses -MD to generate dependencies as a side 211 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. 212 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put 213 | # dependencies in `foo.d' instead, so we check for that too. 214 | # Subdirectories are respected. 215 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 216 | test "x$dir" = "x$object" && dir= 217 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 218 | 219 | if test "$libtool" = yes; then 220 | tmpdepfile1="$dir.libs/$base.lo.d" 221 | tmpdepfile2="$dir.libs/$base.d" 222 | "$@" -Wc,-MD 223 | else 224 | tmpdepfile1="$dir$base.o.d" 225 | tmpdepfile2="$dir$base.d" 226 | "$@" -MD 227 | fi 228 | 229 | stat=$? 230 | if test $stat -eq 0; then : 231 | else 232 | rm -f "$tmpdepfile1" "$tmpdepfile2" 233 | exit $stat 234 | fi 235 | 236 | if test -f "$tmpdepfile1"; then 237 | tmpdepfile="$tmpdepfile1" 238 | else 239 | tmpdepfile="$tmpdepfile2" 240 | fi 241 | if test -f "$tmpdepfile"; then 242 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" 243 | # That's a space and a tab in the []. 244 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" 245 | else 246 | echo "#dummy" > "$depfile" 247 | fi 248 | rm -f "$tmpdepfile" 249 | ;; 250 | 251 | #nosideeffect) 252 | # This comment above is used by automake to tell side-effect 253 | # dependency tracking mechanisms from slower ones. 254 | 255 | dashmstdout) 256 | # Important note: in order to support this mode, a compiler *must* 257 | # always write the proprocessed file to stdout, regardless of -o. 258 | "$@" || exit $? 259 | 260 | # Remove the call to Libtool. 261 | if test "$libtool" = yes; then 262 | while test $1 != '--mode=compile'; do 263 | shift 264 | done 265 | shift 266 | fi 267 | 268 | # Remove `-o $object'. We will use -o /dev/null later, 269 | # however we can't do the remplacement now because 270 | # `-o $object' might simply not be used 271 | IFS=" " 272 | for arg 273 | do 274 | case $arg in 275 | -o) 276 | shift 277 | ;; 278 | $object) 279 | shift 280 | ;; 281 | *) 282 | set fnord "$@" "$arg" 283 | shift # fnord 284 | shift # $arg 285 | ;; 286 | esac 287 | done 288 | 289 | test -z "$dashmflag" && dashmflag=-M 290 | "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" 291 | rm -f "$depfile" 292 | cat < "$tmpdepfile" > "$depfile" 293 | tr ' ' ' 294 | ' < "$tmpdepfile" | \ 295 | ## Some versions of the HPUX 10.20 sed can't process this invocation 296 | ## correctly. Breaking it into two sed invocations is a workaround. 297 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 298 | rm -f "$tmpdepfile" 299 | ;; 300 | 301 | dashXmstdout) 302 | # This case only exists to satisfy depend.m4. It is never actually 303 | # run, as this mode is specially recognized in the preamble. 304 | exit 1 305 | ;; 306 | 307 | makedepend) 308 | "$@" || exit $? 309 | # X makedepend 310 | shift 311 | cleared=no 312 | for arg in "$@"; do 313 | case $cleared in 314 | no) 315 | set ""; shift 316 | cleared=yes ;; 317 | esac 318 | case "$arg" in 319 | -D*|-I*) 320 | set fnord "$@" "$arg"; shift ;; 321 | -*) 322 | ;; 323 | *) 324 | set fnord "$@" "$arg"; shift ;; 325 | esac 326 | done 327 | obj_suffix="`echo $object | sed 's/^.*\././'`" 328 | touch "$tmpdepfile" 329 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" 330 | rm -f "$depfile" 331 | cat < "$tmpdepfile" > "$depfile" 332 | sed '1,2d' "$tmpdepfile" | tr ' ' ' 333 | ' | \ 334 | ## Some versions of the HPUX 10.20 sed can't process this invocation 335 | ## correctly. Breaking it into two sed invocations is a workaround. 336 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 337 | rm -f "$tmpdepfile" "$tmpdepfile".bak 338 | ;; 339 | 340 | cpp) 341 | # Important note: in order to support this mode, a compiler *must* 342 | # always write the proprocessed file to stdout. 343 | "$@" || exit $? 344 | 345 | # Remove the call to Libtool. 346 | if test "$libtool" = yes; then 347 | while test $1 != '--mode=compile'; do 348 | shift 349 | done 350 | shift 351 | fi 352 | 353 | # Remove `-o $object'. 354 | IFS=" " 355 | for arg 356 | do 357 | case $arg in 358 | -o) 359 | shift 360 | ;; 361 | $object) 362 | shift 363 | ;; 364 | *) 365 | set fnord "$@" "$arg" 366 | shift # fnord 367 | shift # $arg 368 | ;; 369 | esac 370 | done 371 | 372 | "$@" -E | 373 | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | 374 | sed '$ s: \\$::' > "$tmpdepfile" 375 | rm -f "$depfile" 376 | echo "$object : \\" > "$depfile" 377 | cat < "$tmpdepfile" >> "$depfile" 378 | sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" 379 | rm -f "$tmpdepfile" 380 | ;; 381 | 382 | msvisualcpp) 383 | # Important note: in order to support this mode, a compiler *must* 384 | # always write the proprocessed file to stdout, regardless of -o, 385 | # because we must use -o when running libtool. 386 | "$@" || exit $? 387 | IFS=" " 388 | for arg 389 | do 390 | case "$arg" in 391 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") 392 | set fnord "$@" 393 | shift 394 | shift 395 | ;; 396 | *) 397 | set fnord "$@" "$arg" 398 | shift 399 | shift 400 | ;; 401 | esac 402 | done 403 | "$@" -E | 404 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" 405 | rm -f "$depfile" 406 | echo "$object : \\" > "$depfile" 407 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" 408 | echo " " >> "$depfile" 409 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" 410 | rm -f "$tmpdepfile" 411 | ;; 412 | 413 | none) 414 | exec "$@" 415 | ;; 416 | 417 | *) 418 | echo "Unknown depmode $depmode" 1>&2 419 | exit 1 420 | ;; 421 | esac 422 | 423 | exit 0 424 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | SUBDIRS = man html 3 | 4 | -------------------------------------------------------------------------------- /doc/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = .. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | SUBDIRS = man html 142 | subdir = doc 143 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 144 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 145 | CONFIG_CLEAN_FILES = 146 | DIST_SOURCES = 147 | 148 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ 149 | ps-recursive install-info-recursive uninstall-info-recursive \ 150 | all-recursive install-data-recursive install-exec-recursive \ 151 | installdirs-recursive install-recursive uninstall-recursive \ 152 | check-recursive installcheck-recursive 153 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 154 | DIST_SUBDIRS = $(SUBDIRS) 155 | all: all-recursive 156 | 157 | .SUFFIXES: 158 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 159 | cd $(top_srcdir) && \ 160 | $(AUTOMAKE) --gnu doc/Makefile 161 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 162 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 163 | 164 | mostlyclean-libtool: 165 | -rm -f *.lo 166 | 167 | clean-libtool: 168 | -rm -rf .libs _libs 169 | 170 | distclean-libtool: 171 | -rm -f libtool 172 | uninstall-info-am: 173 | 174 | # This directory's subdirectories are mostly independent; you can cd 175 | # into them and run `make' without going through this Makefile. 176 | # To change the values of `make' variables: instead of editing Makefiles, 177 | # (1) if the variable is set in `config.status', edit `config.status' 178 | # (which will cause the Makefiles to be regenerated when you run `make'); 179 | # (2) otherwise, pass the desired values on the `make' command line. 180 | $(RECURSIVE_TARGETS): 181 | @set fnord $$MAKEFLAGS; amf=$$2; \ 182 | dot_seen=no; \ 183 | target=`echo $@ | sed s/-recursive//`; \ 184 | list='$(SUBDIRS)'; for subdir in $$list; do \ 185 | echo "Making $$target in $$subdir"; \ 186 | if test "$$subdir" = "."; then \ 187 | dot_seen=yes; \ 188 | local_target="$$target-am"; \ 189 | else \ 190 | local_target="$$target"; \ 191 | fi; \ 192 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 193 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 194 | done; \ 195 | if test "$$dot_seen" = "no"; then \ 196 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 197 | fi; test -z "$$fail" 198 | 199 | mostlyclean-recursive clean-recursive distclean-recursive \ 200 | maintainer-clean-recursive: 201 | @set fnord $$MAKEFLAGS; amf=$$2; \ 202 | dot_seen=no; \ 203 | case "$@" in \ 204 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 205 | *) list='$(SUBDIRS)' ;; \ 206 | esac; \ 207 | rev=''; for subdir in $$list; do \ 208 | if test "$$subdir" = "."; then :; else \ 209 | rev="$$subdir $$rev"; \ 210 | fi; \ 211 | done; \ 212 | rev="$$rev ."; \ 213 | target=`echo $@ | sed s/-recursive//`; \ 214 | for subdir in $$rev; do \ 215 | echo "Making $$target in $$subdir"; \ 216 | if test "$$subdir" = "."; then \ 217 | local_target="$$target-am"; \ 218 | else \ 219 | local_target="$$target"; \ 220 | fi; \ 221 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 222 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 223 | done && test -z "$$fail" 224 | tags-recursive: 225 | list='$(SUBDIRS)'; for subdir in $$list; do \ 226 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 227 | done 228 | ctags-recursive: 229 | list='$(SUBDIRS)'; for subdir in $$list; do \ 230 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 231 | done 232 | 233 | ETAGS = etags 234 | ETAGSFLAGS = 235 | 236 | CTAGS = ctags 237 | CTAGSFLAGS = 238 | 239 | tags: TAGS 240 | 241 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 242 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 243 | unique=`for i in $$list; do \ 244 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 245 | done | \ 246 | $(AWK) ' { files[$$0] = 1; } \ 247 | END { for (i in files) print i; }'`; \ 248 | mkid -fID $$unique 249 | 250 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 251 | $(TAGS_FILES) $(LISP) 252 | tags=; \ 253 | here=`pwd`; \ 254 | if (etags --etags-include --version) >/dev/null 2>&1; then \ 255 | include_option=--etags-include; \ 256 | else \ 257 | include_option=--include; \ 258 | fi; \ 259 | list='$(SUBDIRS)'; for subdir in $$list; do \ 260 | if test "$$subdir" = .; then :; else \ 261 | test -f $$subdir/TAGS && \ 262 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 263 | fi; \ 264 | done; \ 265 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 266 | unique=`for i in $$list; do \ 267 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 268 | done | \ 269 | $(AWK) ' { files[$$0] = 1; } \ 270 | END { for (i in files) print i; }'`; \ 271 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 272 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 273 | $$tags $$unique 274 | 275 | ctags: CTAGS 276 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 277 | $(TAGS_FILES) $(LISP) 278 | tags=; \ 279 | here=`pwd`; \ 280 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 281 | unique=`for i in $$list; do \ 282 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 283 | done | \ 284 | $(AWK) ' { files[$$0] = 1; } \ 285 | END { for (i in files) print i; }'`; \ 286 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 287 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 288 | $$tags $$unique 289 | 290 | GTAGS: 291 | here=`$(am__cd) $(top_builddir) && pwd` \ 292 | && cd $(top_srcdir) \ 293 | && gtags -i $(GTAGS_ARGS) $$here 294 | 295 | distclean-tags: 296 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 297 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 298 | 299 | top_distdir = .. 300 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 301 | 302 | distdir: $(DISTFILES) 303 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 304 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 305 | list='$(DISTFILES)'; for file in $$list; do \ 306 | case $$file in \ 307 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 308 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 309 | esac; \ 310 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 311 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 312 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 313 | dir="/$$dir"; \ 314 | $(mkinstalldirs) "$(distdir)$$dir"; \ 315 | else \ 316 | dir=''; \ 317 | fi; \ 318 | if test -d $$d/$$file; then \ 319 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 320 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 321 | fi; \ 322 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 323 | else \ 324 | test -f $(distdir)/$$file \ 325 | || cp -p $$d/$$file $(distdir)/$$file \ 326 | || exit 1; \ 327 | fi; \ 328 | done 329 | list='$(SUBDIRS)'; for subdir in $$list; do \ 330 | if test "$$subdir" = .; then :; else \ 331 | test -d $(distdir)/$$subdir \ 332 | || mkdir $(distdir)/$$subdir \ 333 | || exit 1; \ 334 | (cd $$subdir && \ 335 | $(MAKE) $(AM_MAKEFLAGS) \ 336 | top_distdir="$(top_distdir)" \ 337 | distdir=../$(distdir)/$$subdir \ 338 | distdir) \ 339 | || exit 1; \ 340 | fi; \ 341 | done 342 | check-am: all-am 343 | check: check-recursive 344 | all-am: Makefile 345 | installdirs: installdirs-recursive 346 | installdirs-am: 347 | 348 | install: install-recursive 349 | install-exec: install-exec-recursive 350 | install-data: install-data-recursive 351 | uninstall: uninstall-recursive 352 | 353 | install-am: all-am 354 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 355 | 356 | installcheck: installcheck-recursive 357 | install-strip: 358 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 359 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 360 | `test -z '$(STRIP)' || \ 361 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 362 | mostlyclean-generic: 363 | 364 | clean-generic: 365 | 366 | distclean-generic: 367 | -rm -f $(CONFIG_CLEAN_FILES) 368 | 369 | maintainer-clean-generic: 370 | @echo "This command is intended for maintainers to use" 371 | @echo "it deletes files that may require special tools to rebuild." 372 | clean: clean-recursive 373 | 374 | clean-am: clean-generic clean-libtool mostlyclean-am 375 | 376 | distclean: distclean-recursive 377 | -rm -f Makefile 378 | distclean-am: clean-am distclean-generic distclean-libtool \ 379 | distclean-tags 380 | 381 | dvi: dvi-recursive 382 | 383 | dvi-am: 384 | 385 | info: info-recursive 386 | 387 | info-am: 388 | 389 | install-data-am: 390 | 391 | install-exec-am: 392 | 393 | install-info: install-info-recursive 394 | 395 | install-man: 396 | 397 | installcheck-am: 398 | 399 | maintainer-clean: maintainer-clean-recursive 400 | -rm -f Makefile 401 | maintainer-clean-am: distclean-am maintainer-clean-generic 402 | 403 | mostlyclean: mostlyclean-recursive 404 | 405 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 406 | 407 | pdf: pdf-recursive 408 | 409 | pdf-am: 410 | 411 | ps: ps-recursive 412 | 413 | ps-am: 414 | 415 | uninstall-am: uninstall-info-am 416 | 417 | uninstall-info: uninstall-info-recursive 418 | 419 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ 420 | clean-generic clean-libtool clean-recursive ctags \ 421 | ctags-recursive distclean distclean-generic distclean-libtool \ 422 | distclean-recursive distclean-tags distdir dvi dvi-am \ 423 | dvi-recursive info info-am info-recursive install install-am \ 424 | install-data install-data-am install-data-recursive \ 425 | install-exec install-exec-am install-exec-recursive \ 426 | install-info install-info-am install-info-recursive install-man \ 427 | install-recursive install-strip installcheck installcheck-am \ 428 | installdirs installdirs-am installdirs-recursive \ 429 | maintainer-clean maintainer-clean-generic \ 430 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ 431 | mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ 432 | pdf-recursive ps ps-am ps-recursive tags tags-recursive \ 433 | uninstall uninstall-am uninstall-info-am \ 434 | uninstall-info-recursive uninstall-recursive 435 | 436 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 437 | # Otherwise a system limit (for SysV at least) may be exceeded. 438 | .NOEXPORT: 439 | -------------------------------------------------------------------------------- /doc/html/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | html: 3 | groff -mandoc -Thtml ../man/man1/adtool.1 >usage.html 4 | -------------------------------------------------------------------------------- /doc/html/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | subdir = doc/html 141 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 142 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 143 | CONFIG_CLEAN_FILES = 144 | DIST_SOURCES = 145 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 146 | all: all-am 147 | 148 | .SUFFIXES: 149 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 150 | cd $(top_srcdir) && \ 151 | $(AUTOMAKE) --gnu doc/html/Makefile 152 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 153 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 154 | 155 | mostlyclean-libtool: 156 | -rm -f *.lo 157 | 158 | clean-libtool: 159 | -rm -rf .libs _libs 160 | 161 | distclean-libtool: 162 | -rm -f libtool 163 | uninstall-info-am: 164 | tags: TAGS 165 | TAGS: 166 | 167 | ctags: CTAGS 168 | CTAGS: 169 | 170 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 171 | 172 | top_distdir = ../.. 173 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 174 | 175 | distdir: $(DISTFILES) 176 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 177 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 178 | list='$(DISTFILES)'; for file in $$list; do \ 179 | case $$file in \ 180 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 181 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 182 | esac; \ 183 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 184 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 185 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 186 | dir="/$$dir"; \ 187 | $(mkinstalldirs) "$(distdir)$$dir"; \ 188 | else \ 189 | dir=''; \ 190 | fi; \ 191 | if test -d $$d/$$file; then \ 192 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 193 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 194 | fi; \ 195 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 196 | else \ 197 | test -f $(distdir)/$$file \ 198 | || cp -p $$d/$$file $(distdir)/$$file \ 199 | || exit 1; \ 200 | fi; \ 201 | done 202 | check-am: all-am 203 | check: check-am 204 | all-am: Makefile 205 | 206 | installdirs: 207 | install: install-am 208 | install-exec: install-exec-am 209 | install-data: install-data-am 210 | uninstall: uninstall-am 211 | 212 | install-am: all-am 213 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 214 | 215 | installcheck: installcheck-am 216 | install-strip: 217 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 218 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 219 | `test -z '$(STRIP)' || \ 220 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 221 | mostlyclean-generic: 222 | 223 | clean-generic: 224 | 225 | distclean-generic: 226 | -rm -f $(CONFIG_CLEAN_FILES) 227 | 228 | maintainer-clean-generic: 229 | @echo "This command is intended for maintainers to use" 230 | @echo "it deletes files that may require special tools to rebuild." 231 | clean: clean-am 232 | 233 | clean-am: clean-generic clean-libtool mostlyclean-am 234 | 235 | distclean: distclean-am 236 | -rm -f Makefile 237 | distclean-am: clean-am distclean-generic distclean-libtool 238 | 239 | dvi: dvi-am 240 | 241 | dvi-am: 242 | 243 | info: info-am 244 | 245 | info-am: 246 | 247 | install-data-am: 248 | 249 | install-exec-am: 250 | 251 | install-info: install-info-am 252 | 253 | install-man: 254 | 255 | installcheck-am: 256 | 257 | maintainer-clean: maintainer-clean-am 258 | -rm -f Makefile 259 | maintainer-clean-am: distclean-am maintainer-clean-generic 260 | 261 | mostlyclean: mostlyclean-am 262 | 263 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 264 | 265 | pdf: pdf-am 266 | 267 | pdf-am: 268 | 269 | ps: ps-am 270 | 271 | ps-am: 272 | 273 | uninstall-am: uninstall-info-am 274 | 275 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 276 | distclean distclean-generic distclean-libtool distdir dvi \ 277 | dvi-am info info-am install install-am install-data \ 278 | install-data-am install-exec install-exec-am install-info \ 279 | install-info-am install-man install-strip installcheck \ 280 | installcheck-am installdirs maintainer-clean \ 281 | maintainer-clean-generic mostlyclean mostlyclean-generic \ 282 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ 283 | uninstall-info-am 284 | 285 | 286 | html: 287 | groff -mandoc -Thtml ../man/man1/adtool.1 >usage.html 288 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 289 | # Otherwise a system limit (for SysV at least) may be exceeded. 290 | .NOEXPORT: 291 | -------------------------------------------------------------------------------- /doc/man/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | SUBDIRS = man1 3 | 4 | -------------------------------------------------------------------------------- /doc/man/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | SUBDIRS = man1 142 | subdir = doc/man 143 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 144 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 145 | CONFIG_CLEAN_FILES = 146 | DIST_SOURCES = 147 | 148 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ 149 | ps-recursive install-info-recursive uninstall-info-recursive \ 150 | all-recursive install-data-recursive install-exec-recursive \ 151 | installdirs-recursive install-recursive uninstall-recursive \ 152 | check-recursive installcheck-recursive 153 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 154 | DIST_SUBDIRS = $(SUBDIRS) 155 | all: all-recursive 156 | 157 | .SUFFIXES: 158 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 159 | cd $(top_srcdir) && \ 160 | $(AUTOMAKE) --gnu doc/man/Makefile 161 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 162 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 163 | 164 | mostlyclean-libtool: 165 | -rm -f *.lo 166 | 167 | clean-libtool: 168 | -rm -rf .libs _libs 169 | 170 | distclean-libtool: 171 | -rm -f libtool 172 | uninstall-info-am: 173 | 174 | # This directory's subdirectories are mostly independent; you can cd 175 | # into them and run `make' without going through this Makefile. 176 | # To change the values of `make' variables: instead of editing Makefiles, 177 | # (1) if the variable is set in `config.status', edit `config.status' 178 | # (which will cause the Makefiles to be regenerated when you run `make'); 179 | # (2) otherwise, pass the desired values on the `make' command line. 180 | $(RECURSIVE_TARGETS): 181 | @set fnord $$MAKEFLAGS; amf=$$2; \ 182 | dot_seen=no; \ 183 | target=`echo $@ | sed s/-recursive//`; \ 184 | list='$(SUBDIRS)'; for subdir in $$list; do \ 185 | echo "Making $$target in $$subdir"; \ 186 | if test "$$subdir" = "."; then \ 187 | dot_seen=yes; \ 188 | local_target="$$target-am"; \ 189 | else \ 190 | local_target="$$target"; \ 191 | fi; \ 192 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 193 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 194 | done; \ 195 | if test "$$dot_seen" = "no"; then \ 196 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 197 | fi; test -z "$$fail" 198 | 199 | mostlyclean-recursive clean-recursive distclean-recursive \ 200 | maintainer-clean-recursive: 201 | @set fnord $$MAKEFLAGS; amf=$$2; \ 202 | dot_seen=no; \ 203 | case "$@" in \ 204 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 205 | *) list='$(SUBDIRS)' ;; \ 206 | esac; \ 207 | rev=''; for subdir in $$list; do \ 208 | if test "$$subdir" = "."; then :; else \ 209 | rev="$$subdir $$rev"; \ 210 | fi; \ 211 | done; \ 212 | rev="$$rev ."; \ 213 | target=`echo $@ | sed s/-recursive//`; \ 214 | for subdir in $$rev; do \ 215 | echo "Making $$target in $$subdir"; \ 216 | if test "$$subdir" = "."; then \ 217 | local_target="$$target-am"; \ 218 | else \ 219 | local_target="$$target"; \ 220 | fi; \ 221 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 222 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 223 | done && test -z "$$fail" 224 | tags-recursive: 225 | list='$(SUBDIRS)'; for subdir in $$list; do \ 226 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 227 | done 228 | ctags-recursive: 229 | list='$(SUBDIRS)'; for subdir in $$list; do \ 230 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 231 | done 232 | 233 | ETAGS = etags 234 | ETAGSFLAGS = 235 | 236 | CTAGS = ctags 237 | CTAGSFLAGS = 238 | 239 | tags: TAGS 240 | 241 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 242 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 243 | unique=`for i in $$list; do \ 244 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 245 | done | \ 246 | $(AWK) ' { files[$$0] = 1; } \ 247 | END { for (i in files) print i; }'`; \ 248 | mkid -fID $$unique 249 | 250 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 251 | $(TAGS_FILES) $(LISP) 252 | tags=; \ 253 | here=`pwd`; \ 254 | if (etags --etags-include --version) >/dev/null 2>&1; then \ 255 | include_option=--etags-include; \ 256 | else \ 257 | include_option=--include; \ 258 | fi; \ 259 | list='$(SUBDIRS)'; for subdir in $$list; do \ 260 | if test "$$subdir" = .; then :; else \ 261 | test -f $$subdir/TAGS && \ 262 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 263 | fi; \ 264 | done; \ 265 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 266 | unique=`for i in $$list; do \ 267 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 268 | done | \ 269 | $(AWK) ' { files[$$0] = 1; } \ 270 | END { for (i in files) print i; }'`; \ 271 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 272 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 273 | $$tags $$unique 274 | 275 | ctags: CTAGS 276 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 277 | $(TAGS_FILES) $(LISP) 278 | tags=; \ 279 | here=`pwd`; \ 280 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 281 | unique=`for i in $$list; do \ 282 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 283 | done | \ 284 | $(AWK) ' { files[$$0] = 1; } \ 285 | END { for (i in files) print i; }'`; \ 286 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 287 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 288 | $$tags $$unique 289 | 290 | GTAGS: 291 | here=`$(am__cd) $(top_builddir) && pwd` \ 292 | && cd $(top_srcdir) \ 293 | && gtags -i $(GTAGS_ARGS) $$here 294 | 295 | distclean-tags: 296 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 297 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 298 | 299 | top_distdir = ../.. 300 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 301 | 302 | distdir: $(DISTFILES) 303 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 304 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 305 | list='$(DISTFILES)'; for file in $$list; do \ 306 | case $$file in \ 307 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 308 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 309 | esac; \ 310 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 311 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 312 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 313 | dir="/$$dir"; \ 314 | $(mkinstalldirs) "$(distdir)$$dir"; \ 315 | else \ 316 | dir=''; \ 317 | fi; \ 318 | if test -d $$d/$$file; then \ 319 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 320 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 321 | fi; \ 322 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 323 | else \ 324 | test -f $(distdir)/$$file \ 325 | || cp -p $$d/$$file $(distdir)/$$file \ 326 | || exit 1; \ 327 | fi; \ 328 | done 329 | list='$(SUBDIRS)'; for subdir in $$list; do \ 330 | if test "$$subdir" = .; then :; else \ 331 | test -d $(distdir)/$$subdir \ 332 | || mkdir $(distdir)/$$subdir \ 333 | || exit 1; \ 334 | (cd $$subdir && \ 335 | $(MAKE) $(AM_MAKEFLAGS) \ 336 | top_distdir="$(top_distdir)" \ 337 | distdir=../$(distdir)/$$subdir \ 338 | distdir) \ 339 | || exit 1; \ 340 | fi; \ 341 | done 342 | check-am: all-am 343 | check: check-recursive 344 | all-am: Makefile 345 | installdirs: installdirs-recursive 346 | installdirs-am: 347 | 348 | install: install-recursive 349 | install-exec: install-exec-recursive 350 | install-data: install-data-recursive 351 | uninstall: uninstall-recursive 352 | 353 | install-am: all-am 354 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 355 | 356 | installcheck: installcheck-recursive 357 | install-strip: 358 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 359 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 360 | `test -z '$(STRIP)' || \ 361 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 362 | mostlyclean-generic: 363 | 364 | clean-generic: 365 | 366 | distclean-generic: 367 | -rm -f $(CONFIG_CLEAN_FILES) 368 | 369 | maintainer-clean-generic: 370 | @echo "This command is intended for maintainers to use" 371 | @echo "it deletes files that may require special tools to rebuild." 372 | clean: clean-recursive 373 | 374 | clean-am: clean-generic clean-libtool mostlyclean-am 375 | 376 | distclean: distclean-recursive 377 | -rm -f Makefile 378 | distclean-am: clean-am distclean-generic distclean-libtool \ 379 | distclean-tags 380 | 381 | dvi: dvi-recursive 382 | 383 | dvi-am: 384 | 385 | info: info-recursive 386 | 387 | info-am: 388 | 389 | install-data-am: 390 | 391 | install-exec-am: 392 | 393 | install-info: install-info-recursive 394 | 395 | install-man: 396 | 397 | installcheck-am: 398 | 399 | maintainer-clean: maintainer-clean-recursive 400 | -rm -f Makefile 401 | maintainer-clean-am: distclean-am maintainer-clean-generic 402 | 403 | mostlyclean: mostlyclean-recursive 404 | 405 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 406 | 407 | pdf: pdf-recursive 408 | 409 | pdf-am: 410 | 411 | ps: ps-recursive 412 | 413 | ps-am: 414 | 415 | uninstall-am: uninstall-info-am 416 | 417 | uninstall-info: uninstall-info-recursive 418 | 419 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ 420 | clean-generic clean-libtool clean-recursive ctags \ 421 | ctags-recursive distclean distclean-generic distclean-libtool \ 422 | distclean-recursive distclean-tags distdir dvi dvi-am \ 423 | dvi-recursive info info-am info-recursive install install-am \ 424 | install-data install-data-am install-data-recursive \ 425 | install-exec install-exec-am install-exec-recursive \ 426 | install-info install-info-am install-info-recursive install-man \ 427 | install-recursive install-strip installcheck installcheck-am \ 428 | installdirs installdirs-am installdirs-recursive \ 429 | maintainer-clean maintainer-clean-generic \ 430 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ 431 | mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ 432 | pdf-recursive ps ps-am ps-recursive tags tags-recursive \ 433 | uninstall uninstall-am uninstall-info-am \ 434 | uninstall-info-recursive uninstall-recursive 435 | 436 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 437 | # Otherwise a system limit (for SysV at least) may be exceeded. 438 | .NOEXPORT: 439 | -------------------------------------------------------------------------------- /doc/man/man1/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | man_MANS = adtool.1 3 | EXTRA_DIST = $(man_MANS) 4 | 5 | -------------------------------------------------------------------------------- /doc/man/man1/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | man_MANS = adtool.1 142 | EXTRA_DIST = $(man_MANS) 143 | subdir = doc/man/man1 144 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 145 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 146 | CONFIG_CLEAN_FILES = 147 | DIST_SOURCES = 148 | 149 | NROFF = nroff 150 | MANS = $(man_MANS) 151 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 152 | all: all-am 153 | 154 | .SUFFIXES: 155 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 156 | cd $(top_srcdir) && \ 157 | $(AUTOMAKE) --gnu doc/man/man1/Makefile 158 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 159 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 160 | 161 | mostlyclean-libtool: 162 | -rm -f *.lo 163 | 164 | clean-libtool: 165 | -rm -rf .libs _libs 166 | 167 | distclean-libtool: 168 | -rm -f libtool 169 | uninstall-info-am: 170 | 171 | man1dir = $(mandir)/man1 172 | install-man1: $(man1_MANS) $(man_MANS) 173 | @$(NORMAL_INSTALL) 174 | $(mkinstalldirs) $(DESTDIR)$(man1dir) 175 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ 176 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 177 | for i in $$l2; do \ 178 | case "$$i" in \ 179 | *.1*) list="$$list $$i" ;; \ 180 | esac; \ 181 | done; \ 182 | for i in $$list; do \ 183 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ 184 | else file=$$i; fi; \ 185 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 186 | case "$$ext" in \ 187 | 1*) ;; \ 188 | *) ext='1' ;; \ 189 | esac; \ 190 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 191 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ 192 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 193 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ 194 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ 195 | done 196 | uninstall-man1: 197 | @$(NORMAL_UNINSTALL) 198 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ 199 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ 200 | for i in $$l2; do \ 201 | case "$$i" in \ 202 | *.1*) list="$$list $$i" ;; \ 203 | esac; \ 204 | done; \ 205 | for i in $$list; do \ 206 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ 207 | case "$$ext" in \ 208 | 1*) ;; \ 209 | *) ext='1' ;; \ 210 | esac; \ 211 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ 212 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ 213 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ 214 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ 215 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ 216 | done 217 | tags: TAGS 218 | TAGS: 219 | 220 | ctags: CTAGS 221 | CTAGS: 222 | 223 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 224 | 225 | top_distdir = ../../.. 226 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 227 | 228 | distdir: $(DISTFILES) 229 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 230 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 231 | list='$(DISTFILES)'; for file in $$list; do \ 232 | case $$file in \ 233 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 234 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 235 | esac; \ 236 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 237 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 238 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 239 | dir="/$$dir"; \ 240 | $(mkinstalldirs) "$(distdir)$$dir"; \ 241 | else \ 242 | dir=''; \ 243 | fi; \ 244 | if test -d $$d/$$file; then \ 245 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 246 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 247 | fi; \ 248 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 249 | else \ 250 | test -f $(distdir)/$$file \ 251 | || cp -p $$d/$$file $(distdir)/$$file \ 252 | || exit 1; \ 253 | fi; \ 254 | done 255 | check-am: all-am 256 | check: check-am 257 | all-am: Makefile $(MANS) 258 | 259 | installdirs: 260 | $(mkinstalldirs) $(DESTDIR)$(man1dir) 261 | install: install-am 262 | install-exec: install-exec-am 263 | install-data: install-data-am 264 | uninstall: uninstall-am 265 | 266 | install-am: all-am 267 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 268 | 269 | installcheck: installcheck-am 270 | install-strip: 271 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 272 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 273 | `test -z '$(STRIP)' || \ 274 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 275 | mostlyclean-generic: 276 | 277 | clean-generic: 278 | 279 | distclean-generic: 280 | -rm -f $(CONFIG_CLEAN_FILES) 281 | 282 | maintainer-clean-generic: 283 | @echo "This command is intended for maintainers to use" 284 | @echo "it deletes files that may require special tools to rebuild." 285 | clean: clean-am 286 | 287 | clean-am: clean-generic clean-libtool mostlyclean-am 288 | 289 | distclean: distclean-am 290 | -rm -f Makefile 291 | distclean-am: clean-am distclean-generic distclean-libtool 292 | 293 | dvi: dvi-am 294 | 295 | dvi-am: 296 | 297 | info: info-am 298 | 299 | info-am: 300 | 301 | install-data-am: install-man 302 | 303 | install-exec-am: 304 | 305 | install-info: install-info-am 306 | 307 | install-man: install-man1 308 | 309 | installcheck-am: 310 | 311 | maintainer-clean: maintainer-clean-am 312 | -rm -f Makefile 313 | maintainer-clean-am: distclean-am maintainer-clean-generic 314 | 315 | mostlyclean: mostlyclean-am 316 | 317 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 318 | 319 | pdf: pdf-am 320 | 321 | pdf-am: 322 | 323 | ps: ps-am 324 | 325 | ps-am: 326 | 327 | uninstall-am: uninstall-info-am uninstall-man 328 | 329 | uninstall-man: uninstall-man1 330 | 331 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 332 | distclean distclean-generic distclean-libtool distdir dvi \ 333 | dvi-am info info-am install install-am install-data \ 334 | install-data-am install-exec install-exec-am install-info \ 335 | install-info-am install-man install-man1 install-strip \ 336 | installcheck installcheck-am installdirs maintainer-clean \ 337 | maintainer-clean-generic mostlyclean mostlyclean-generic \ 338 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ 339 | uninstall-info-am uninstall-man uninstall-man1 340 | 341 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 342 | # Otherwise a system limit (for SysV at least) may be exceeded. 343 | .NOEXPORT: 344 | -------------------------------------------------------------------------------- /doc/man/man1/adtool.1: -------------------------------------------------------------------------------- 1 | .TH ADTOOL 1 "October 2002" "adtool 1.2" 2 | .SH NAME 3 | adtool - Active Directory administration tool 4 | .SH SYNOPSIS 5 | .B adtool 6 | [\c 7 | .BR \-h ] 8 | [\c 9 | .BR \-v ] 10 | [\c 11 | .BR \-H \ uri\fR] 12 | [\c 13 | .BR \-D \ binddn\fR] 14 | [\c 15 | .BR \-w \ bindpasswd\fR] 16 | [\c 17 | .BR \-b \ searchbase\fR] 18 | .BR operation 19 | [\c 20 | .BR arguments...] 21 | .SH DESCRIPTION 22 | .I adtool 23 | is a unix command line utility for Active Directory administration. Features include user and group creation, deletion, modification, password setting and directory query and search capabilities. 24 | .SH OPTIONS 25 | .TP 26 | .B \-h 27 | Output usage information. 28 | .TP 29 | .B \-v 30 | Output version information. 31 | .TP 32 | .B \-H uri 33 | The uri of the Active Directory server to connect to, eg. ldap://ad1.example.com. 34 | .TP 35 | .B \-D binddn 36 | The distinguished name of the user to bind to the server as, eg. cn=admin,ou=usrs,dc=example,dc=com. 37 | .TP 38 | .B \-w password 39 | The password to authenticate with. 40 | .TP 41 | .B \-b searchbase 42 | The distinguished name of the base for any operations that involve searching the directory, eg. ou=users,dc=example,dc=com. 43 | .SH OPERATIONS 44 | .TP 45 | .B usercreate 46 | create a new user 47 | .TP 48 | .B userdelete 49 | delete a user 50 | .TP 51 | .B userlock 52 | disable a user account 53 | .TP 54 | .B userunlock 55 | enable a user account 56 | .TP 57 | .B setpass [password] 58 | set user's password. The password can be entered either as an argument or interactively, in which case it is not echoed back to the screen. 59 | .TP 60 | .B usermove 61 | move user to another container 62 | .TP 63 | .B userrename 64 | rename user 65 | .TP 66 | .B computercreate 67 | create a new computer account 68 | .TP 69 | .B groupcreate 70 | create a new group 71 | .TP 72 | .B groupdelete 73 | delete a group 74 | .TP 75 | .B groupadduser 76 | add a user to a group 77 | .TP 78 | .B groupremoveuser 79 | remove a user from a group 80 | .TP 81 | .B groupsubtreeremove 82 | remove a user from all groups below a given ou 83 | .TP 84 | .B oucreate 85 | create a new organizational unit 86 | .TP 87 | .B oudelete 88 | delete an organizational unit 89 | .TP 90 | .B attributeget 91 | display attribute values 92 | .TP 93 | .B attributeadd 94 | add an attribute 95 | .TP 96 | .B attributeaddbinary 97 | add an attribute from a file 98 | .TP 99 | .B attributereplace 100 | replace an attribute 101 | .TP 102 | .B attributedelete [value] 103 | delete an attribute or attribute instance 104 | .TP 105 | .B search 106 | simple ldap search 107 | 108 | .SH CONFIGURATION 109 | The command line options can instead be specified in a configuration file. An example is installed to (install prefix)/etc/adtool.cfg.dist. Rename this to adtool.cfg and edit as appropriate. 110 | .TP 111 | .B uri 112 | server to connect to 113 | .TP 114 | .B binddn 115 | distinguished name of the user to bind to the server as. 116 | .TP 117 | .B bindpw 118 | password to bind to the server with. 119 | .TP 120 | .B searchbase 121 | base for search operations. 122 | 123 | .SH AUTHOR 124 | Mike Dawson 125 | 126 | http://dexy.mine.nu/adtool/ 127 | 128 | -------------------------------------------------------------------------------- /install-sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # install - install a program, script, or datafile 4 | # This comes from X11R5 (mit/util/scripts/install.sh). 5 | # 6 | # Copyright 1991 by the Massachusetts Institute of Technology 7 | # 8 | # Permission to use, copy, modify, distribute, and sell this software and its 9 | # documentation for any purpose is hereby granted without fee, provided that 10 | # the above copyright notice appear in all copies and that both that 11 | # copyright notice and this permission notice appear in supporting 12 | # documentation, and that the name of M.I.T. not be used in advertising or 13 | # publicity pertaining to distribution of the software without specific, 14 | # written prior permission. M.I.T. makes no representations about the 15 | # suitability of this software for any purpose. It is provided "as is" 16 | # without express or implied warranty. 17 | # 18 | # Calling this script install-sh is preferred over install.sh, to prevent 19 | # `make' implicit rules from creating a file called install from it 20 | # when there is no Makefile. 21 | # 22 | # This script is compatible with the BSD install script, but was written 23 | # from scratch. It can only install one file at a time, a restriction 24 | # shared with many OS's install programs. 25 | 26 | 27 | # set DOITPROG to echo to test this script 28 | 29 | # Don't use :- since 4.3BSD and earlier shells don't like it. 30 | doit="${DOITPROG-}" 31 | 32 | 33 | # put in absolute paths if you don't have them in your path; or use env. vars. 34 | 35 | mvprog="${MVPROG-mv}" 36 | cpprog="${CPPROG-cp}" 37 | chmodprog="${CHMODPROG-chmod}" 38 | chownprog="${CHOWNPROG-chown}" 39 | chgrpprog="${CHGRPPROG-chgrp}" 40 | stripprog="${STRIPPROG-strip}" 41 | rmprog="${RMPROG-rm}" 42 | mkdirprog="${MKDIRPROG-mkdir}" 43 | 44 | transformbasename="" 45 | transform_arg="" 46 | instcmd="$mvprog" 47 | chmodcmd="$chmodprog 0755" 48 | chowncmd="" 49 | chgrpcmd="" 50 | stripcmd="" 51 | rmcmd="$rmprog -f" 52 | mvcmd="$mvprog" 53 | src="" 54 | dst="" 55 | dir_arg="" 56 | 57 | while [ x"$1" != x ]; do 58 | case $1 in 59 | -c) instcmd="$cpprog" 60 | shift 61 | continue;; 62 | 63 | -d) dir_arg=true 64 | shift 65 | continue;; 66 | 67 | -m) chmodcmd="$chmodprog $2" 68 | shift 69 | shift 70 | continue;; 71 | 72 | -o) chowncmd="$chownprog $2" 73 | shift 74 | shift 75 | continue;; 76 | 77 | -g) chgrpcmd="$chgrpprog $2" 78 | shift 79 | shift 80 | continue;; 81 | 82 | -s) stripcmd="$stripprog" 83 | shift 84 | continue;; 85 | 86 | -t=*) transformarg=`echo $1 | sed 's/-t=//'` 87 | shift 88 | continue;; 89 | 90 | -b=*) transformbasename=`echo $1 | sed 's/-b=//'` 91 | shift 92 | continue;; 93 | 94 | *) if [ x"$src" = x ] 95 | then 96 | src=$1 97 | else 98 | # this colon is to work around a 386BSD /bin/sh bug 99 | : 100 | dst=$1 101 | fi 102 | shift 103 | continue;; 104 | esac 105 | done 106 | 107 | if [ x"$src" = x ] 108 | then 109 | echo "install: no input file specified" 110 | exit 1 111 | else 112 | true 113 | fi 114 | 115 | if [ x"$dir_arg" != x ]; then 116 | dst=$src 117 | src="" 118 | 119 | if [ -d $dst ]; then 120 | instcmd=: 121 | chmodcmd="" 122 | else 123 | instcmd=mkdir 124 | fi 125 | else 126 | 127 | # Waiting for this to be detected by the "$instcmd $src $dsttmp" command 128 | # might cause directories to be created, which would be especially bad 129 | # if $src (and thus $dsttmp) contains '*'. 130 | 131 | if [ -f $src -o -d $src ] 132 | then 133 | true 134 | else 135 | echo "install: $src does not exist" 136 | exit 1 137 | fi 138 | 139 | if [ x"$dst" = x ] 140 | then 141 | echo "install: no destination specified" 142 | exit 1 143 | else 144 | true 145 | fi 146 | 147 | # If destination is a directory, append the input filename; if your system 148 | # does not like double slashes in filenames, you may need to add some logic 149 | 150 | if [ -d $dst ] 151 | then 152 | dst="$dst"/`basename $src` 153 | else 154 | true 155 | fi 156 | fi 157 | 158 | ## this sed command emulates the dirname command 159 | dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` 160 | 161 | # Make sure that the destination directory exists. 162 | # this part is taken from Noah Friedman's mkinstalldirs script 163 | 164 | # Skip lots of stat calls in the usual case. 165 | if [ ! -d "$dstdir" ]; then 166 | defaultIFS=' 167 | ' 168 | IFS="${IFS-${defaultIFS}}" 169 | 170 | oIFS="${IFS}" 171 | # Some sh's can't handle IFS=/ for some reason. 172 | IFS='%' 173 | set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` 174 | IFS="${oIFS}" 175 | 176 | pathcomp='' 177 | 178 | while [ $# -ne 0 ] ; do 179 | pathcomp="${pathcomp}${1}" 180 | shift 181 | 182 | if [ ! -d "${pathcomp}" ] ; 183 | then 184 | $mkdirprog "${pathcomp}" 185 | else 186 | true 187 | fi 188 | 189 | pathcomp="${pathcomp}/" 190 | done 191 | fi 192 | 193 | if [ x"$dir_arg" != x ] 194 | then 195 | $doit $instcmd $dst && 196 | 197 | if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && 198 | if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && 199 | if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && 200 | if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi 201 | else 202 | 203 | # If we're going to rename the final executable, determine the name now. 204 | 205 | if [ x"$transformarg" = x ] 206 | then 207 | dstfile=`basename $dst` 208 | else 209 | dstfile=`basename $dst $transformbasename | 210 | sed $transformarg`$transformbasename 211 | fi 212 | 213 | # don't allow the sed command to completely eliminate the filename 214 | 215 | if [ x"$dstfile" = x ] 216 | then 217 | dstfile=`basename $dst` 218 | else 219 | true 220 | fi 221 | 222 | # Make a temp file name in the proper directory. 223 | 224 | dsttmp=$dstdir/#inst.$$# 225 | 226 | # Move or copy the file name to the temp name 227 | 228 | $doit $instcmd $src $dsttmp && 229 | 230 | trap "rm -f ${dsttmp}" 0 && 231 | 232 | # and set any options; do chmod last to preserve setuid bits 233 | 234 | # If any of these fail, we abort the whole thing. If we want to 235 | # ignore errors from any of these, just make sure not to ignore 236 | # errors from the above "$doit $instcmd $src $dsttmp" command. 237 | 238 | if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && 239 | if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && 240 | if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && 241 | if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && 242 | 243 | # Now rename the file to the real destination. 244 | 245 | $doit $rmcmd -f $dstdir/$dstfile && 246 | $doit $mvcmd $dsttmp $dstdir/$dstfile 247 | 248 | fi && 249 | 250 | 251 | exit 0 252 | -------------------------------------------------------------------------------- /missing: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Common stub for a few missing GNU programs while installing. 3 | # Copyright (C) 1996, 1997 Free Software Foundation, Inc. 4 | # Franc,ois Pinard , 1996. 5 | 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 2, or (at your option) 9 | # any later version. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 19 | # 02111-1307, USA. 20 | 21 | if test $# -eq 0; then 22 | echo 1>&2 "Try \`$0 --help' for more information" 23 | exit 1 24 | fi 25 | 26 | case "$1" in 27 | 28 | -h|--h|--he|--hel|--help) 29 | echo "\ 30 | $0 [OPTION]... PROGRAM [ARGUMENT]... 31 | 32 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an 33 | error status if there is no known handling for PROGRAM. 34 | 35 | Options: 36 | -h, --help display this help and exit 37 | -v, --version output version information and exit 38 | 39 | Supported PROGRAM values: 40 | aclocal touch file \`aclocal.m4' 41 | autoconf touch file \`configure' 42 | autoheader touch file \`config.h.in' 43 | automake touch all \`Makefile.in' files 44 | bison create \`y.tab.[ch]', if possible, from existing .[ch] 45 | flex create \`lex.yy.c', if possible, from existing .c 46 | lex create \`lex.yy.c', if possible, from existing .c 47 | makeinfo touch the output file 48 | yacc create \`y.tab.[ch]', if possible, from existing .[ch]" 49 | ;; 50 | 51 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) 52 | echo "missing - GNU libit 0.0" 53 | ;; 54 | 55 | -*) 56 | echo 1>&2 "$0: Unknown \`$1' option" 57 | echo 1>&2 "Try \`$0 --help' for more information" 58 | exit 1 59 | ;; 60 | 61 | aclocal) 62 | echo 1>&2 "\ 63 | WARNING: \`$1' is missing on your system. You should only need it if 64 | you modified \`acinclude.m4' or \`configure.in'. You might want 65 | to install the \`Automake' and \`Perl' packages. Grab them from 66 | any GNU archive site." 67 | touch aclocal.m4 68 | ;; 69 | 70 | autoconf) 71 | echo 1>&2 "\ 72 | WARNING: \`$1' is missing on your system. You should only need it if 73 | you modified \`configure.in'. You might want to install the 74 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU 75 | archive site." 76 | touch configure 77 | ;; 78 | 79 | autoheader) 80 | echo 1>&2 "\ 81 | WARNING: \`$1' is missing on your system. You should only need it if 82 | you modified \`acconfig.h' or \`configure.in'. You might want 83 | to install the \`Autoconf' and \`GNU m4' packages. Grab them 84 | from any GNU archive site." 85 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` 86 | test -z "$files" && files="config.h" 87 | touch_files= 88 | for f in $files; do 89 | case "$f" in 90 | *:*) touch_files="$touch_files "`echo "$f" | 91 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; 92 | *) touch_files="$touch_files $f.in";; 93 | esac 94 | done 95 | touch $touch_files 96 | ;; 97 | 98 | automake) 99 | echo 1>&2 "\ 100 | WARNING: \`$1' is missing on your system. You should only need it if 101 | you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. 102 | You might want to install the \`Automake' and \`Perl' packages. 103 | Grab them from any GNU archive site." 104 | find . -type f -name Makefile.am -print | 105 | sed 's/\.am$/.in/' | 106 | while read f; do touch "$f"; done 107 | ;; 108 | 109 | bison|yacc) 110 | echo 1>&2 "\ 111 | WARNING: \`$1' is missing on your system. You should only need it if 112 | you modified a \`.y' file. You may need the \`Bison' package 113 | in order for those modifications to take effect. You can get 114 | \`Bison' from any GNU archive site." 115 | rm -f y.tab.c y.tab.h 116 | if [ $# -ne 1 ]; then 117 | eval LASTARG="\${$#}" 118 | case "$LASTARG" in 119 | *.y) 120 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 121 | if [ -f "$SRCFILE" ]; then 122 | cp "$SRCFILE" y.tab.c 123 | fi 124 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 125 | if [ -f "$SRCFILE" ]; then 126 | cp "$SRCFILE" y.tab.h 127 | fi 128 | ;; 129 | esac 130 | fi 131 | if [ ! -f y.tab.h ]; then 132 | echo >y.tab.h 133 | fi 134 | if [ ! -f y.tab.c ]; then 135 | echo 'main() { return 0; }' >y.tab.c 136 | fi 137 | ;; 138 | 139 | lex|flex) 140 | echo 1>&2 "\ 141 | WARNING: \`$1' is missing on your system. You should only need it if 142 | you modified a \`.l' file. You may need the \`Flex' package 143 | in order for those modifications to take effect. You can get 144 | \`Flex' from any GNU archive site." 145 | rm -f lex.yy.c 146 | if [ $# -ne 1 ]; then 147 | eval LASTARG="\${$#}" 148 | case "$LASTARG" in 149 | *.l) 150 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 151 | if [ -f "$SRCFILE" ]; then 152 | cp "$SRCFILE" lex.yy.c 153 | fi 154 | ;; 155 | esac 156 | fi 157 | if [ ! -f lex.yy.c ]; then 158 | echo 'main() { return 0; }' >lex.yy.c 159 | fi 160 | ;; 161 | 162 | makeinfo) 163 | echo 1>&2 "\ 164 | WARNING: \`$1' is missing on your system. You should only need it if 165 | you modified a \`.texi' or \`.texinfo' file, or any other file 166 | indirectly affecting the aspect of the manual. The spurious 167 | call might also be the consequence of using a buggy \`make' (AIX, 168 | DU, IRIX). You might want to install the \`Texinfo' package or 169 | the \`GNU make' package. Grab either from any GNU archive site." 170 | file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 171 | if test -z "$file"; then 172 | file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 173 | file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` 174 | fi 175 | touch $file 176 | ;; 177 | 178 | *) 179 | echo 1>&2 "\ 180 | WARNING: \`$1' is needed, and you do not seem to have it handy on your 181 | system. You might have modified some files without having the 182 | proper tools for further handling them. Check the \`README' file, 183 | it often tells you about the needed prerequirements for installing 184 | this package. You may also peek at any GNU archive site, in case 185 | some other package would contain this missing \`$1' program." 186 | exit 1 187 | ;; 188 | esac 189 | 190 | exit 0 191 | -------------------------------------------------------------------------------- /mkinstalldirs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # mkinstalldirs --- make directory hierarchy 3 | # Author: Noah Friedman 4 | # Created: 1993-05-16 5 | # Public domain 6 | 7 | # $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ 8 | 9 | errstatus=0 10 | 11 | for file 12 | do 13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 14 | shift 15 | 16 | pathcomp= 17 | for d 18 | do 19 | pathcomp="$pathcomp$d" 20 | case "$pathcomp" in 21 | -* ) pathcomp=./$pathcomp ;; 22 | esac 23 | 24 | if test ! -d "$pathcomp"; then 25 | echo "mkdir $pathcomp" 26 | 27 | mkdir "$pathcomp" || lasterr=$? 28 | 29 | if test ! -d "$pathcomp"; then 30 | errstatus=$lasterr 31 | fi 32 | fi 33 | 34 | pathcomp="$pathcomp/" 35 | done 36 | done 37 | 38 | exit $errstatus 39 | 40 | # mkinstalldirs ends here 41 | -------------------------------------------------------------------------------- /src/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | SUBDIRS = lib tools etc 3 | -------------------------------------------------------------------------------- /src/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = .. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | SUBDIRS = lib tools etc 142 | subdir = src 143 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 144 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 145 | CONFIG_CLEAN_FILES = 146 | DIST_SOURCES = 147 | 148 | RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ 149 | ps-recursive install-info-recursive uninstall-info-recursive \ 150 | all-recursive install-data-recursive install-exec-recursive \ 151 | installdirs-recursive install-recursive uninstall-recursive \ 152 | check-recursive installcheck-recursive 153 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 154 | DIST_SUBDIRS = $(SUBDIRS) 155 | all: all-recursive 156 | 157 | .SUFFIXES: 158 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 159 | cd $(top_srcdir) && \ 160 | $(AUTOMAKE) --gnu src/Makefile 161 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 162 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 163 | 164 | mostlyclean-libtool: 165 | -rm -f *.lo 166 | 167 | clean-libtool: 168 | -rm -rf .libs _libs 169 | 170 | distclean-libtool: 171 | -rm -f libtool 172 | uninstall-info-am: 173 | 174 | # This directory's subdirectories are mostly independent; you can cd 175 | # into them and run `make' without going through this Makefile. 176 | # To change the values of `make' variables: instead of editing Makefiles, 177 | # (1) if the variable is set in `config.status', edit `config.status' 178 | # (which will cause the Makefiles to be regenerated when you run `make'); 179 | # (2) otherwise, pass the desired values on the `make' command line. 180 | $(RECURSIVE_TARGETS): 181 | @set fnord $$MAKEFLAGS; amf=$$2; \ 182 | dot_seen=no; \ 183 | target=`echo $@ | sed s/-recursive//`; \ 184 | list='$(SUBDIRS)'; for subdir in $$list; do \ 185 | echo "Making $$target in $$subdir"; \ 186 | if test "$$subdir" = "."; then \ 187 | dot_seen=yes; \ 188 | local_target="$$target-am"; \ 189 | else \ 190 | local_target="$$target"; \ 191 | fi; \ 192 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 193 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 194 | done; \ 195 | if test "$$dot_seen" = "no"; then \ 196 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 197 | fi; test -z "$$fail" 198 | 199 | mostlyclean-recursive clean-recursive distclean-recursive \ 200 | maintainer-clean-recursive: 201 | @set fnord $$MAKEFLAGS; amf=$$2; \ 202 | dot_seen=no; \ 203 | case "$@" in \ 204 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 205 | *) list='$(SUBDIRS)' ;; \ 206 | esac; \ 207 | rev=''; for subdir in $$list; do \ 208 | if test "$$subdir" = "."; then :; else \ 209 | rev="$$subdir $$rev"; \ 210 | fi; \ 211 | done; \ 212 | rev="$$rev ."; \ 213 | target=`echo $@ | sed s/-recursive//`; \ 214 | for subdir in $$rev; do \ 215 | echo "Making $$target in $$subdir"; \ 216 | if test "$$subdir" = "."; then \ 217 | local_target="$$target-am"; \ 218 | else \ 219 | local_target="$$target"; \ 220 | fi; \ 221 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 222 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 223 | done && test -z "$$fail" 224 | tags-recursive: 225 | list='$(SUBDIRS)'; for subdir in $$list; do \ 226 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 227 | done 228 | ctags-recursive: 229 | list='$(SUBDIRS)'; for subdir in $$list; do \ 230 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 231 | done 232 | 233 | ETAGS = etags 234 | ETAGSFLAGS = 235 | 236 | CTAGS = ctags 237 | CTAGSFLAGS = 238 | 239 | tags: TAGS 240 | 241 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 242 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 243 | unique=`for i in $$list; do \ 244 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 245 | done | \ 246 | $(AWK) ' { files[$$0] = 1; } \ 247 | END { for (i in files) print i; }'`; \ 248 | mkid -fID $$unique 249 | 250 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 251 | $(TAGS_FILES) $(LISP) 252 | tags=; \ 253 | here=`pwd`; \ 254 | if (etags --etags-include --version) >/dev/null 2>&1; then \ 255 | include_option=--etags-include; \ 256 | else \ 257 | include_option=--include; \ 258 | fi; \ 259 | list='$(SUBDIRS)'; for subdir in $$list; do \ 260 | if test "$$subdir" = .; then :; else \ 261 | test -f $$subdir/TAGS && \ 262 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 263 | fi; \ 264 | done; \ 265 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 266 | unique=`for i in $$list; do \ 267 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 268 | done | \ 269 | $(AWK) ' { files[$$0] = 1; } \ 270 | END { for (i in files) print i; }'`; \ 271 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 272 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 273 | $$tags $$unique 274 | 275 | ctags: CTAGS 276 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 277 | $(TAGS_FILES) $(LISP) 278 | tags=; \ 279 | here=`pwd`; \ 280 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 281 | unique=`for i in $$list; do \ 282 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 283 | done | \ 284 | $(AWK) ' { files[$$0] = 1; } \ 285 | END { for (i in files) print i; }'`; \ 286 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 287 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 288 | $$tags $$unique 289 | 290 | GTAGS: 291 | here=`$(am__cd) $(top_builddir) && pwd` \ 292 | && cd $(top_srcdir) \ 293 | && gtags -i $(GTAGS_ARGS) $$here 294 | 295 | distclean-tags: 296 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 297 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 298 | 299 | top_distdir = .. 300 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 301 | 302 | distdir: $(DISTFILES) 303 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 304 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 305 | list='$(DISTFILES)'; for file in $$list; do \ 306 | case $$file in \ 307 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 308 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 309 | esac; \ 310 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 311 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 312 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 313 | dir="/$$dir"; \ 314 | $(mkinstalldirs) "$(distdir)$$dir"; \ 315 | else \ 316 | dir=''; \ 317 | fi; \ 318 | if test -d $$d/$$file; then \ 319 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 320 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 321 | fi; \ 322 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 323 | else \ 324 | test -f $(distdir)/$$file \ 325 | || cp -p $$d/$$file $(distdir)/$$file \ 326 | || exit 1; \ 327 | fi; \ 328 | done 329 | list='$(SUBDIRS)'; for subdir in $$list; do \ 330 | if test "$$subdir" = .; then :; else \ 331 | test -d $(distdir)/$$subdir \ 332 | || mkdir $(distdir)/$$subdir \ 333 | || exit 1; \ 334 | (cd $$subdir && \ 335 | $(MAKE) $(AM_MAKEFLAGS) \ 336 | top_distdir="$(top_distdir)" \ 337 | distdir=../$(distdir)/$$subdir \ 338 | distdir) \ 339 | || exit 1; \ 340 | fi; \ 341 | done 342 | check-am: all-am 343 | check: check-recursive 344 | all-am: Makefile 345 | installdirs: installdirs-recursive 346 | installdirs-am: 347 | 348 | install: install-recursive 349 | install-exec: install-exec-recursive 350 | install-data: install-data-recursive 351 | uninstall: uninstall-recursive 352 | 353 | install-am: all-am 354 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 355 | 356 | installcheck: installcheck-recursive 357 | install-strip: 358 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 359 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 360 | `test -z '$(STRIP)' || \ 361 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 362 | mostlyclean-generic: 363 | 364 | clean-generic: 365 | 366 | distclean-generic: 367 | -rm -f $(CONFIG_CLEAN_FILES) 368 | 369 | maintainer-clean-generic: 370 | @echo "This command is intended for maintainers to use" 371 | @echo "it deletes files that may require special tools to rebuild." 372 | clean: clean-recursive 373 | 374 | clean-am: clean-generic clean-libtool mostlyclean-am 375 | 376 | distclean: distclean-recursive 377 | -rm -f Makefile 378 | distclean-am: clean-am distclean-generic distclean-libtool \ 379 | distclean-tags 380 | 381 | dvi: dvi-recursive 382 | 383 | dvi-am: 384 | 385 | info: info-recursive 386 | 387 | info-am: 388 | 389 | install-data-am: 390 | 391 | install-exec-am: 392 | 393 | install-info: install-info-recursive 394 | 395 | install-man: 396 | 397 | installcheck-am: 398 | 399 | maintainer-clean: maintainer-clean-recursive 400 | -rm -f Makefile 401 | maintainer-clean-am: distclean-am maintainer-clean-generic 402 | 403 | mostlyclean: mostlyclean-recursive 404 | 405 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 406 | 407 | pdf: pdf-recursive 408 | 409 | pdf-am: 410 | 411 | ps: ps-recursive 412 | 413 | ps-am: 414 | 415 | uninstall-am: uninstall-info-am 416 | 417 | uninstall-info: uninstall-info-recursive 418 | 419 | .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ 420 | clean-generic clean-libtool clean-recursive ctags \ 421 | ctags-recursive distclean distclean-generic distclean-libtool \ 422 | distclean-recursive distclean-tags distdir dvi dvi-am \ 423 | dvi-recursive info info-am info-recursive install install-am \ 424 | install-data install-data-am install-data-recursive \ 425 | install-exec install-exec-am install-exec-recursive \ 426 | install-info install-info-am install-info-recursive install-man \ 427 | install-recursive install-strip installcheck installcheck-am \ 428 | installdirs installdirs-am installdirs-recursive \ 429 | maintainer-clean maintainer-clean-generic \ 430 | maintainer-clean-recursive mostlyclean mostlyclean-generic \ 431 | mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ 432 | pdf-recursive ps ps-am ps-recursive tags tags-recursive \ 433 | uninstall uninstall-am uninstall-info-am \ 434 | uninstall-info-recursive uninstall-recursive 435 | 436 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 437 | # Otherwise a system limit (for SysV at least) may be exceeded. 438 | .NOEXPORT: 439 | -------------------------------------------------------------------------------- /src/etc/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | EXTRA_DIST = adtool.cfg.dist 3 | sysconf_DATA = adtool.cfg.dist 4 | -------------------------------------------------------------------------------- /src/etc/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | EXTRA_DIST = adtool.cfg.dist 142 | sysconf_DATA = adtool.cfg.dist 143 | subdir = src/etc 144 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 145 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 146 | CONFIG_CLEAN_FILES = 147 | DIST_SOURCES = 148 | DATA = $(sysconf_DATA) 149 | 150 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 151 | all: all-am 152 | 153 | .SUFFIXES: 154 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 155 | cd $(top_srcdir) && \ 156 | $(AUTOMAKE) --gnu src/etc/Makefile 157 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 158 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 159 | 160 | mostlyclean-libtool: 161 | -rm -f *.lo 162 | 163 | clean-libtool: 164 | -rm -rf .libs _libs 165 | 166 | distclean-libtool: 167 | -rm -f libtool 168 | uninstall-info-am: 169 | sysconfDATA_INSTALL = $(INSTALL_DATA) 170 | install-sysconfDATA: $(sysconf_DATA) 171 | @$(NORMAL_INSTALL) 172 | $(mkinstalldirs) $(DESTDIR)$(sysconfdir) 173 | @list='$(sysconf_DATA)'; for p in $$list; do \ 174 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 175 | f="`echo $$p | sed -e 's|^.*/||'`"; \ 176 | echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \ 177 | $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \ 178 | done 179 | 180 | uninstall-sysconfDATA: 181 | @$(NORMAL_UNINSTALL) 182 | @list='$(sysconf_DATA)'; for p in $$list; do \ 183 | f="`echo $$p | sed -e 's|^.*/||'`"; \ 184 | echo " rm -f $(DESTDIR)$(sysconfdir)/$$f"; \ 185 | rm -f $(DESTDIR)$(sysconfdir)/$$f; \ 186 | done 187 | tags: TAGS 188 | TAGS: 189 | 190 | ctags: CTAGS 191 | CTAGS: 192 | 193 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 194 | 195 | top_distdir = ../.. 196 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 197 | 198 | distdir: $(DISTFILES) 199 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 200 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 201 | list='$(DISTFILES)'; for file in $$list; do \ 202 | case $$file in \ 203 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 204 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 205 | esac; \ 206 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 207 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 208 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 209 | dir="/$$dir"; \ 210 | $(mkinstalldirs) "$(distdir)$$dir"; \ 211 | else \ 212 | dir=''; \ 213 | fi; \ 214 | if test -d $$d/$$file; then \ 215 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 216 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 217 | fi; \ 218 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 219 | else \ 220 | test -f $(distdir)/$$file \ 221 | || cp -p $$d/$$file $(distdir)/$$file \ 222 | || exit 1; \ 223 | fi; \ 224 | done 225 | check-am: all-am 226 | check: check-am 227 | all-am: Makefile $(DATA) 228 | 229 | installdirs: 230 | $(mkinstalldirs) $(DESTDIR)$(sysconfdir) 231 | install: install-am 232 | install-exec: install-exec-am 233 | install-data: install-data-am 234 | uninstall: uninstall-am 235 | 236 | install-am: all-am 237 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 238 | 239 | installcheck: installcheck-am 240 | install-strip: 241 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 242 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 243 | `test -z '$(STRIP)' || \ 244 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 245 | mostlyclean-generic: 246 | 247 | clean-generic: 248 | 249 | distclean-generic: 250 | -rm -f $(CONFIG_CLEAN_FILES) 251 | 252 | maintainer-clean-generic: 253 | @echo "This command is intended for maintainers to use" 254 | @echo "it deletes files that may require special tools to rebuild." 255 | clean: clean-am 256 | 257 | clean-am: clean-generic clean-libtool mostlyclean-am 258 | 259 | distclean: distclean-am 260 | -rm -f Makefile 261 | distclean-am: clean-am distclean-generic distclean-libtool 262 | 263 | dvi: dvi-am 264 | 265 | dvi-am: 266 | 267 | info: info-am 268 | 269 | info-am: 270 | 271 | install-data-am: 272 | 273 | install-exec-am: install-sysconfDATA 274 | 275 | install-info: install-info-am 276 | 277 | install-man: 278 | 279 | installcheck-am: 280 | 281 | maintainer-clean: maintainer-clean-am 282 | -rm -f Makefile 283 | maintainer-clean-am: distclean-am maintainer-clean-generic 284 | 285 | mostlyclean: mostlyclean-am 286 | 287 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 288 | 289 | pdf: pdf-am 290 | 291 | pdf-am: 292 | 293 | ps: ps-am 294 | 295 | ps-am: 296 | 297 | uninstall-am: uninstall-info-am uninstall-sysconfDATA 298 | 299 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 300 | distclean distclean-generic distclean-libtool distdir dvi \ 301 | dvi-am info info-am install install-am install-data \ 302 | install-data-am install-exec install-exec-am install-info \ 303 | install-info-am install-man install-strip install-sysconfDATA \ 304 | installcheck installcheck-am installdirs maintainer-clean \ 305 | maintainer-clean-generic mostlyclean mostlyclean-generic \ 306 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ 307 | uninstall-info-am uninstall-sysconfDATA 308 | 309 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 310 | # Otherwise a system limit (for SysV at least) may be exceeded. 311 | .NOEXPORT: 312 | -------------------------------------------------------------------------------- /src/etc/adtool.cfg.dist: -------------------------------------------------------------------------------- 1 | 2 | # use ldaps:// for secure connection - needed for setpass to work 3 | uri ldap://dc1.example.com 4 | binddn cn=administrator,ou=admin,dc=example,dc=com 5 | bindpw passw0rd 6 | searchbase dc=example,dc=com 7 | 8 | -------------------------------------------------------------------------------- /src/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | AM_CFLAGS=-DSYSCONFDIR=\"$(sysconfdir)\" @CFLAGS@ 3 | 4 | noinst_LIBRARIES = libactive_directory.a 5 | 6 | libactive_directory_a_SOURCES = active_directory.c 7 | 8 | EXTRA_DIST = active_directory.h 9 | -------------------------------------------------------------------------------- /src/lib/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | AM_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" @CFLAGS@ 142 | 143 | noinst_LIBRARIES = libactive_directory.a 144 | 145 | libactive_directory_a_SOURCES = active_directory.c 146 | 147 | EXTRA_DIST = active_directory.h 148 | subdir = src/lib 149 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 150 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 151 | CONFIG_CLEAN_FILES = 152 | LIBRARIES = $(noinst_LIBRARIES) 153 | 154 | libactive_directory_a_AR = $(AR) cru 155 | libactive_directory_a_LIBADD = 156 | am_libactive_directory_a_OBJECTS = active_directory.$(OBJEXT) 157 | libactive_directory_a_OBJECTS = $(am_libactive_directory_a_OBJECTS) 158 | 159 | DEFAULT_INCLUDES = -I. -I$(srcdir) 160 | depcomp = $(SHELL) $(top_srcdir)/depcomp 161 | am__depfiles_maybe = depfiles 162 | @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/active_directory.Po 163 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 164 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 165 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ 166 | $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 167 | CCLD = $(CC) 168 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 169 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ 170 | DIST_SOURCES = $(libactive_directory_a_SOURCES) 171 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 172 | SOURCES = $(libactive_directory_a_SOURCES) 173 | 174 | all: all-am 175 | 176 | .SUFFIXES: 177 | .SUFFIXES: .c .lo .o .obj 178 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 179 | cd $(top_srcdir) && \ 180 | $(AUTOMAKE) --gnu src/lib/Makefile 181 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 182 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 183 | 184 | clean-noinstLIBRARIES: 185 | -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) 186 | libactive_directory.a: $(libactive_directory_a_OBJECTS) $(libactive_directory_a_DEPENDENCIES) 187 | -rm -f libactive_directory.a 188 | $(libactive_directory_a_AR) libactive_directory.a $(libactive_directory_a_OBJECTS) $(libactive_directory_a_LIBADD) 189 | $(RANLIB) libactive_directory.a 190 | 191 | mostlyclean-compile: 192 | -rm -f *.$(OBJEXT) core *.core 193 | 194 | distclean-compile: 195 | -rm -f *.tab.c 196 | 197 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/active_directory.Po@am__quote@ 198 | 199 | .c.o: 200 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 201 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 202 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 203 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 204 | @am__fastdepCC_TRUE@ fi 205 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 206 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 207 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 208 | @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< 209 | 210 | .c.obj: 211 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 212 | @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ 213 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 214 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 215 | @am__fastdepCC_TRUE@ fi 216 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 217 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 218 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 219 | @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` 220 | 221 | .c.lo: 222 | @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 223 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 224 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ 225 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 226 | @am__fastdepCC_TRUE@ fi 227 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 228 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 229 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 230 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< 231 | 232 | mostlyclean-libtool: 233 | -rm -f *.lo 234 | 235 | clean-libtool: 236 | -rm -rf .libs _libs 237 | 238 | distclean-libtool: 239 | -rm -f libtool 240 | uninstall-info-am: 241 | 242 | ETAGS = etags 243 | ETAGSFLAGS = 244 | 245 | CTAGS = ctags 246 | CTAGSFLAGS = 247 | 248 | tags: TAGS 249 | 250 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 251 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 252 | unique=`for i in $$list; do \ 253 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 254 | done | \ 255 | $(AWK) ' { files[$$0] = 1; } \ 256 | END { for (i in files) print i; }'`; \ 257 | mkid -fID $$unique 258 | 259 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 260 | $(TAGS_FILES) $(LISP) 261 | tags=; \ 262 | here=`pwd`; \ 263 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 264 | unique=`for i in $$list; do \ 265 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 266 | done | \ 267 | $(AWK) ' { files[$$0] = 1; } \ 268 | END { for (i in files) print i; }'`; \ 269 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 270 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 271 | $$tags $$unique 272 | 273 | ctags: CTAGS 274 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 275 | $(TAGS_FILES) $(LISP) 276 | tags=; \ 277 | here=`pwd`; \ 278 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 279 | unique=`for i in $$list; do \ 280 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 281 | done | \ 282 | $(AWK) ' { files[$$0] = 1; } \ 283 | END { for (i in files) print i; }'`; \ 284 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 285 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 286 | $$tags $$unique 287 | 288 | GTAGS: 289 | here=`$(am__cd) $(top_builddir) && pwd` \ 290 | && cd $(top_srcdir) \ 291 | && gtags -i $(GTAGS_ARGS) $$here 292 | 293 | distclean-tags: 294 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 295 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 296 | 297 | top_distdir = ../.. 298 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 299 | 300 | distdir: $(DISTFILES) 301 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 302 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 303 | list='$(DISTFILES)'; for file in $$list; do \ 304 | case $$file in \ 305 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 306 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 307 | esac; \ 308 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 309 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 310 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 311 | dir="/$$dir"; \ 312 | $(mkinstalldirs) "$(distdir)$$dir"; \ 313 | else \ 314 | dir=''; \ 315 | fi; \ 316 | if test -d $$d/$$file; then \ 317 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 318 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 319 | fi; \ 320 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 321 | else \ 322 | test -f $(distdir)/$$file \ 323 | || cp -p $$d/$$file $(distdir)/$$file \ 324 | || exit 1; \ 325 | fi; \ 326 | done 327 | check-am: all-am 328 | check: check-am 329 | all-am: Makefile $(LIBRARIES) 330 | 331 | installdirs: 332 | install: install-am 333 | install-exec: install-exec-am 334 | install-data: install-data-am 335 | uninstall: uninstall-am 336 | 337 | install-am: all-am 338 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 339 | 340 | installcheck: installcheck-am 341 | install-strip: 342 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 343 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 344 | `test -z '$(STRIP)' || \ 345 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 346 | mostlyclean-generic: 347 | 348 | clean-generic: 349 | 350 | distclean-generic: 351 | -rm -f $(CONFIG_CLEAN_FILES) 352 | 353 | maintainer-clean-generic: 354 | @echo "This command is intended for maintainers to use" 355 | @echo "it deletes files that may require special tools to rebuild." 356 | clean: clean-am 357 | 358 | clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ 359 | mostlyclean-am 360 | 361 | distclean: distclean-am 362 | -rm -rf ./$(DEPDIR) 363 | -rm -f Makefile 364 | distclean-am: clean-am distclean-compile distclean-generic \ 365 | distclean-libtool distclean-tags 366 | 367 | dvi: dvi-am 368 | 369 | dvi-am: 370 | 371 | info: info-am 372 | 373 | info-am: 374 | 375 | install-data-am: 376 | 377 | install-exec-am: 378 | 379 | install-info: install-info-am 380 | 381 | install-man: 382 | 383 | installcheck-am: 384 | 385 | maintainer-clean: maintainer-clean-am 386 | -rm -rf ./$(DEPDIR) 387 | -rm -f Makefile 388 | maintainer-clean-am: distclean-am maintainer-clean-generic 389 | 390 | mostlyclean: mostlyclean-am 391 | 392 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 393 | mostlyclean-libtool 394 | 395 | pdf: pdf-am 396 | 397 | pdf-am: 398 | 399 | ps: ps-am 400 | 401 | ps-am: 402 | 403 | uninstall-am: uninstall-info-am 404 | 405 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 406 | clean-libtool clean-noinstLIBRARIES ctags distclean \ 407 | distclean-compile distclean-generic distclean-libtool \ 408 | distclean-tags distdir dvi dvi-am info info-am install \ 409 | install-am install-data install-data-am install-exec \ 410 | install-exec-am install-info install-info-am install-man \ 411 | install-strip installcheck installcheck-am installdirs \ 412 | maintainer-clean maintainer-clean-generic mostlyclean \ 413 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \ 414 | pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am 415 | 416 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 417 | # Otherwise a system limit (for SysV at least) may be exceeded. 418 | .NOEXPORT: 419 | -------------------------------------------------------------------------------- /src/lib/active_directory.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) by: Mike Dawson mike _at_ no spam gp2x.org 3 | * 4 | * This file may be used subject to the terms and conditions of the 5 | * GNU Library General Public License Version 2, or any later version 6 | * at your option, as published by the Free Software Foundation. 7 | * This program is distributed in the hope that it will be useful, 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | * GNU Library General Public License for more details. 11 | * 12 | **/ 13 | 14 | #ifndef ACTIVE_DIRECTORY_H 15 | #define ACTIVE_DIRECTORY_H 1 16 | 17 | /* Configuration options: 18 | | For configuration these functions look first for the file 19 | | ~/.adtool.cfg, or failing that 20 | | /(install prefix)/etc/adtool.cfg 21 | | An example would look like: 22 | uri ldaps://dc2.example.com 23 | binddn cn=administrator,ou=admin,dc=example,dc=com 24 | bindpw passw0rd 25 | searchbase ou=users,dc=example,dc=com 26 | | Any function may return: 27 | | AD_COULDNT_OPEN_CONFIG_FILE or AD_MISSING_CONFIG_PARAMETER. 28 | | if there is a problem reading the config file, or 29 | | AD_SERVER_CONNECT_FAILURE if a connection can't be made. 30 | */ 31 | char *system_config_file; 32 | char *uri; 33 | char *binddn; 34 | char *bindpw; 35 | char *search_base; 36 | 37 | /* ad_get_error() returns a pointer to a string containing an 38 | | explanation of the last error that occured. 39 | | If no error has previously occured the string the contents are 40 | | undefined. 41 | | Subsequent active directory library calls may over-write this 42 | | string. 43 | */ 44 | char *ad_get_error(); 45 | 46 | /* ad_get_error_num() returns the integer code for the last error 47 | | that occured. 48 | | If no function calls have previously failed the result is undefined. 49 | | See the end of this header file for the list of error codes. 50 | */ 51 | int ad_get_error_num(); 52 | 53 | /* ad_create_user() creates a new, locked user account 54 | | with the given user name and distinguished name 55 | | Example usage: 56 | | ad_create_user("nobody", "cn=nobody,ou=users,dc=example,dc=com"); 57 | | Returns AD_SUCCESS on success, or 58 | | AD_LDAP_OPERATION_FAILURE. 59 | | Attributes set: 60 | | objectClass=user 61 | | sAMAccountName=username 62 | | userPrincipalName=username@ (derived from dn) 63 | | userAccountControl=66050 64 | | (ACCOUNTDISABLE|NORMAL_ACCOUNT|DONT_EXPIRE_PASSWORD) 65 | | see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/ads_user_flag_enum.asp for flags. 66 | | Attributes set automatically by the directory: 67 | | objectclass=top,person,organizationalPerson 68 | | accountExpires,instanceType,objectCategory,objectGUID, 69 | | objectSid, 70 | | primaryGroupID=513 71 | | name=username 72 | | sAMAccountType=805306368 73 | | uSNChanged,uSNCreated,whenChanged,whenCreated 74 | */ 75 | int ad_create_user(char *username, char *dn); 76 | 77 | /* create computer object */ 78 | int ad_create_computer(char *name, char *dn); 79 | 80 | /* ad_lock_user() disables a user account 81 | | Returns AD_SUCCESS, AD_OBJECT_NOT_FOUND or AD_LDAP_OPERATIONS_FAILURE. 82 | */ 83 | int ad_lock_user(char *dn); 84 | 85 | /* ad_unlock_user() unlocks a disabled user account 86 | | Returns AD_SUCCESS, AD_OBJECT_NOT_FOUND or AD_LDAP_OPERATIONS_FAILURE. 87 | */ 88 | int ad_unlock_user(char *dn); 89 | 90 | /* ad_object_delete() deletes the given dn 91 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 92 | */ 93 | int ad_object_delete(char *dn); 94 | 95 | /* ad_setpass() sets the user's password to the password string given 96 | | This requires an ssl connection to work 97 | | (use a uri of ldaps:// rather than ldap:// in the configuration file) 98 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 99 | */ 100 | int ad_setpass(char *dn, char *password); 101 | 102 | /* ad_search() is a more generalised search function 103 | | Returns a NULL terminated array of dns which match the given 104 | | attribute and value or NULL if no results are found. 105 | | Returns -1 on error. 106 | | Sets error code to AD_SUCCESS, AD_OBJECT_NOT_FOUND 107 | | or AD_LDAP_OPERATION_FAILURE. 108 | | Searching is done from the searchbase specified in the configuration 109 | | file. 110 | */ 111 | char **ad_search(char *attribute, char *value); 112 | 113 | /* ad_mod_add() adds a value to the given attribute. 114 | | Example ad_mod_add("cn=nobody,ou=users,dc=example,dc=com", 115 | | "mail", "nobody@nowhere"); 116 | | This function works only on multi-valued attributes. 117 | | Returns AD_SUCCESS on success. 118 | */ 119 | int ad_mod_add(char *dn, char *attribute, char *value); 120 | 121 | /* ad_mod_add_binary() 122 | | Works the same as ad_mod_add() except for binary data. 123 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 124 | */ 125 | int ad_mod_add_binary(char *dn, char *attribute, char *data, int data_length); 126 | 127 | /* ad_mod_replace() overwrites the given attribute with a new value. 128 | | Example ad_mod_replace("cn=nobody,ou=users,dc=example,dc=com", 129 | | "description", "some person"); 130 | | On multi-valued attributes this replaces all values. 131 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 132 | */ 133 | int ad_mod_replace(char *dn, char *attribute, char *value); 134 | 135 | /* ad_mod_replace_binary() 136 | | Works the same as ad_mod_replace() except for binary data. 137 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 138 | */ 139 | int ad_mod_replace_binary(char *dn, char *attribute, char *data, int data_length); 140 | 141 | /* ad_mod_delete() removes attribute data from an object. 142 | | If user nobody has 'othertelephone' numbers 143 | | '123' and '456' then ad_mod_delete(dn, "othertelephone", "123" 144 | | will delete just the number '123', whereas: 145 | | ad_mod_delete(dn, "othertelephone", NULL) 146 | | will delete both numbers. 147 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 148 | */ 149 | int ad_mod_delete(char *dn, char *attribute, char *value); 150 | 151 | /* ad_get_attribute() returns a pointer to a NULL terminated 152 | | array of strings containing values for the given attribute. 153 | | Returns NULL on failure or if nothing is found. 154 | | Sets error code to AD_SUCCESS, AD_OBJECT_NOT_FOUND, 155 | | AD_ATTRIBUTE_ENTRY_NOT_FOUND or AD_LDAP_OPERATION_FAILURE 156 | | even if there are no values for the given attribute. 157 | */ 158 | char **ad_get_attribute(char *dn, char *attribute); 159 | 160 | /* ad_rename_user() changes the given user's name 161 | | Modifies cn, sAMAccountName and userPrincipalName 162 | |to the new username. Assumes that the first part of the dn 163 | |is composed of cn=username. 164 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE; 165 | */ 166 | int ad_rename_user(char *dn, char *new_username); 167 | 168 | /* ad_move_user() moves a user into a different container/organizational 169 | | unit. 170 | | Changes dn and fixes userPrincipalName in case of domain change. 171 | | Returns AD_SUCCESS, AD_INVALID_DN or AD_LDAP_OPERATION_FAILURE. 172 | */ 173 | int ad_move_user(char *current_dn, char *new_container); 174 | 175 | /* ad_group_create() creates a new user group (of type global security) 176 | | Example ad_group_create("administrators", 177 | | "cn=administrators,ou=admin,dc=example,dc=com"); 178 | | Sets objectclass=group, 179 | | sAMAccountName=group name 180 | | The directory automatically sets: 181 | | objectclass=top 182 | | groupType,instanceType,objectCategory,objectGUID,objectSid, 183 | | name,sAMAccountType,uSNChanged,uSNCreated,whenChanged,whenCreated 184 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 185 | */ 186 | int ad_group_create(char *group_name, char *dn); 187 | 188 | /* ad_group_add_user() 189 | | adds a user to a group 190 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 191 | */ 192 | int ad_group_add_user(char *group_dn, char *user_dn); 193 | 194 | /* ad_group_remove_user() 195 | | removes a user from a group 196 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 197 | */ 198 | int ad_group_remove_user(char *group_dn, char *user_dn); 199 | 200 | /* ad_group_subtree_remove_user() 201 | | Removes the user from all groups underneath the given container 202 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 203 | */ 204 | int ad_group_subtree_remove_user(char *container_dn, char *user_dn); 205 | 206 | /* ad_ou_create() 207 | | Create an organizational unit 208 | | Sets objectclass=organizationalUnit 209 | | Returns AD_SUCCESS or AD_LDAP_OPERATION_FAILURE. 210 | */ 211 | int ad_ou_create(char *ou_name, char *dn); 212 | 213 | /* ad_list() 214 | | Return NULL terminated array of entries 215 | */ 216 | char **ad_list(char *dn); 217 | 218 | /* Error codes */ 219 | #define AD_SUCCESS 1 220 | #define AD_COULDNT_OPEN_CONFIG_FILE 2 221 | #define AD_MISSING_CONFIG_PARAMETER 3 222 | #define AD_SERVER_CONNECT_FAILURE 4 223 | #define AD_LDAP_OPERATION_FAILURE 5 224 | #define AD_OBJECT_NOT_FOUND 6 225 | #define AD_ATTRIBUTE_ENTRY_NOT_FOUND 7 226 | #define AD_INVALID_DN 8 227 | 228 | #endif /* ACTIVE_DIRECTORY_H */ 229 | -------------------------------------------------------------------------------- /src/tools/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | INCLUDES = -I@top_srcdir@/src/lib 3 | AM_CFLAGS = @CFLAGS@ 4 | 5 | bin_PROGRAMS = adtool 6 | 7 | adtool_LDADD = @top_srcdir@/src/lib/libactive_directory.a -lldap -llber -lldap_r -lpthread -lresolv 8 | 9 | -------------------------------------------------------------------------------- /src/tools/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = ../.. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | INCLUDES = -I@top_srcdir@/src/lib 142 | AM_CFLAGS = @CFLAGS@ 143 | 144 | bin_PROGRAMS = adtool 145 | 146 | adtool_LDADD = @top_srcdir@/src/lib/libactive_directory.a -lldap -llber -lldap_r -lpthread -lresolv 147 | subdir = src/tools 148 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 149 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 150 | CONFIG_CLEAN_FILES = 151 | bin_PROGRAMS = adtool$(EXEEXT) 152 | PROGRAMS = $(bin_PROGRAMS) 153 | 154 | adtool_SOURCES = adtool.c 155 | adtool_OBJECTS = adtool.$(OBJEXT) 156 | adtool_DEPENDENCIES = @top_srcdir@/src/lib/libactive_directory.a 157 | adtool_LDFLAGS = 158 | 159 | DEFAULT_INCLUDES = -I. -I$(srcdir) 160 | depcomp = $(SHELL) $(top_srcdir)/depcomp 161 | am__depfiles_maybe = depfiles 162 | @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/adtool.Po 163 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 164 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 165 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ 166 | $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 167 | CCLD = $(CC) 168 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 169 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ 170 | DIST_SOURCES = adtool.c 171 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 172 | SOURCES = adtool.c 173 | 174 | all: all-am 175 | 176 | .SUFFIXES: 177 | .SUFFIXES: .c .lo .o .obj 178 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 179 | cd $(top_srcdir) && \ 180 | $(AUTOMAKE) --gnu src/tools/Makefile 181 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 182 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 183 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 184 | install-binPROGRAMS: $(bin_PROGRAMS) 185 | @$(NORMAL_INSTALL) 186 | $(mkinstalldirs) $(DESTDIR)$(bindir) 187 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ 188 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 189 | if test -f $$p \ 190 | || test -f $$p1 \ 191 | ; then \ 192 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 193 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ 194 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ 195 | else :; fi; \ 196 | done 197 | 198 | uninstall-binPROGRAMS: 199 | @$(NORMAL_UNINSTALL) 200 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ 201 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 202 | echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ 203 | rm -f $(DESTDIR)$(bindir)/$$f; \ 204 | done 205 | 206 | clean-binPROGRAMS: 207 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ 208 | f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 209 | echo " rm -f $$p $$f"; \ 210 | rm -f $$p $$f ; \ 211 | done 212 | adtool$(EXEEXT): $(adtool_OBJECTS) $(adtool_DEPENDENCIES) 213 | @rm -f adtool$(EXEEXT) 214 | $(LINK) $(adtool_LDFLAGS) $(adtool_OBJECTS) $(adtool_LDADD) $(LIBS) 215 | 216 | mostlyclean-compile: 217 | -rm -f *.$(OBJEXT) core *.core 218 | 219 | distclean-compile: 220 | -rm -f *.tab.c 221 | 222 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adtool.Po@am__quote@ 223 | 224 | .c.o: 225 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 226 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 227 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 228 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 229 | @am__fastdepCC_TRUE@ fi 230 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 231 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 232 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 233 | @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< 234 | 235 | .c.obj: 236 | @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 237 | @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ 238 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ 239 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 240 | @am__fastdepCC_TRUE@ fi 241 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 242 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ 243 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 244 | @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` 245 | 246 | .c.lo: 247 | @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ 248 | @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ 249 | @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ 250 | @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 251 | @am__fastdepCC_TRUE@ fi 252 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 253 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ 254 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 255 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< 256 | 257 | mostlyclean-libtool: 258 | -rm -f *.lo 259 | 260 | clean-libtool: 261 | -rm -rf .libs _libs 262 | 263 | distclean-libtool: 264 | -rm -f libtool 265 | uninstall-info-am: 266 | 267 | ETAGS = etags 268 | ETAGSFLAGS = 269 | 270 | CTAGS = ctags 271 | CTAGSFLAGS = 272 | 273 | tags: TAGS 274 | 275 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 276 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 277 | unique=`for i in $$list; do \ 278 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 279 | done | \ 280 | $(AWK) ' { files[$$0] = 1; } \ 281 | END { for (i in files) print i; }'`; \ 282 | mkid -fID $$unique 283 | 284 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 285 | $(TAGS_FILES) $(LISP) 286 | tags=; \ 287 | here=`pwd`; \ 288 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 289 | unique=`for i in $$list; do \ 290 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 291 | done | \ 292 | $(AWK) ' { files[$$0] = 1; } \ 293 | END { for (i in files) print i; }'`; \ 294 | test -z "$(ETAGS_ARGS)$$tags$$unique" \ 295 | || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 296 | $$tags $$unique 297 | 298 | ctags: CTAGS 299 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 300 | $(TAGS_FILES) $(LISP) 301 | tags=; \ 302 | here=`pwd`; \ 303 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 304 | unique=`for i in $$list; do \ 305 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 306 | done | \ 307 | $(AWK) ' { files[$$0] = 1; } \ 308 | END { for (i in files) print i; }'`; \ 309 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ 310 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 311 | $$tags $$unique 312 | 313 | GTAGS: 314 | here=`$(am__cd) $(top_builddir) && pwd` \ 315 | && cd $(top_srcdir) \ 316 | && gtags -i $(GTAGS_ARGS) $$here 317 | 318 | distclean-tags: 319 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 320 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 321 | 322 | top_distdir = ../.. 323 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 324 | 325 | distdir: $(DISTFILES) 326 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 327 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 328 | list='$(DISTFILES)'; for file in $$list; do \ 329 | case $$file in \ 330 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 331 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 332 | esac; \ 333 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 334 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 335 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 336 | dir="/$$dir"; \ 337 | $(mkinstalldirs) "$(distdir)$$dir"; \ 338 | else \ 339 | dir=''; \ 340 | fi; \ 341 | if test -d $$d/$$file; then \ 342 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 343 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 344 | fi; \ 345 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 346 | else \ 347 | test -f $(distdir)/$$file \ 348 | || cp -p $$d/$$file $(distdir)/$$file \ 349 | || exit 1; \ 350 | fi; \ 351 | done 352 | check-am: all-am 353 | check: check-am 354 | all-am: Makefile $(PROGRAMS) 355 | 356 | installdirs: 357 | $(mkinstalldirs) $(DESTDIR)$(bindir) 358 | install: install-am 359 | install-exec: install-exec-am 360 | install-data: install-data-am 361 | uninstall: uninstall-am 362 | 363 | install-am: all-am 364 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 365 | 366 | installcheck: installcheck-am 367 | install-strip: 368 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 369 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 370 | `test -z '$(STRIP)' || \ 371 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 372 | mostlyclean-generic: 373 | 374 | clean-generic: 375 | 376 | distclean-generic: 377 | -rm -f $(CONFIG_CLEAN_FILES) 378 | 379 | maintainer-clean-generic: 380 | @echo "This command is intended for maintainers to use" 381 | @echo "it deletes files that may require special tools to rebuild." 382 | clean: clean-am 383 | 384 | clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am 385 | 386 | distclean: distclean-am 387 | -rm -rf ./$(DEPDIR) 388 | -rm -f Makefile 389 | distclean-am: clean-am distclean-compile distclean-generic \ 390 | distclean-libtool distclean-tags 391 | 392 | dvi: dvi-am 393 | 394 | dvi-am: 395 | 396 | info: info-am 397 | 398 | info-am: 399 | 400 | install-data-am: 401 | 402 | install-exec-am: install-binPROGRAMS 403 | 404 | install-info: install-info-am 405 | 406 | install-man: 407 | 408 | installcheck-am: 409 | 410 | maintainer-clean: maintainer-clean-am 411 | -rm -rf ./$(DEPDIR) 412 | -rm -f Makefile 413 | maintainer-clean-am: distclean-am maintainer-clean-generic 414 | 415 | mostlyclean: mostlyclean-am 416 | 417 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 418 | mostlyclean-libtool 419 | 420 | pdf: pdf-am 421 | 422 | pdf-am: 423 | 424 | ps: ps-am 425 | 426 | ps-am: 427 | 428 | uninstall-am: uninstall-binPROGRAMS uninstall-info-am 429 | 430 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ 431 | clean-generic clean-libtool ctags distclean distclean-compile \ 432 | distclean-generic distclean-libtool distclean-tags distdir dvi \ 433 | dvi-am info info-am install install-am install-binPROGRAMS \ 434 | install-data install-data-am install-exec install-exec-am \ 435 | install-info install-info-am install-man install-strip \ 436 | installcheck installcheck-am installdirs maintainer-clean \ 437 | maintainer-clean-generic mostlyclean mostlyclean-compile \ 438 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 439 | tags uninstall uninstall-am uninstall-binPROGRAMS \ 440 | uninstall-info-am 441 | 442 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 443 | # Otherwise a system limit (for SysV at least) may be exceeded. 444 | .NOEXPORT: 445 | -------------------------------------------------------------------------------- /tests/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | EXTRA_DIST = test.sh 3 | 4 | -------------------------------------------------------------------------------- /tests/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.7.9 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 5 | # Free Software Foundation, Inc. 6 | # This Makefile.in is free software; the Free Software Foundation 7 | # gives unlimited permission to copy and/or distribute it, 8 | # with or without modifications, as long as this notice is preserved. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 | # PARTICULAR PURPOSE. 14 | 15 | @SET_MAKE@ 16 | 17 | srcdir = @srcdir@ 18 | top_srcdir = @top_srcdir@ 19 | VPATH = @srcdir@ 20 | pkgdatadir = $(datadir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkgincludedir = $(includedir)/@PACKAGE@ 23 | top_builddir = .. 24 | 25 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 26 | INSTALL = @INSTALL@ 27 | install_sh_DATA = $(install_sh) -c -m 644 28 | install_sh_PROGRAM = $(install_sh) -c 29 | install_sh_SCRIPT = $(install_sh) -c 30 | INSTALL_HEADER = $(INSTALL_DATA) 31 | transform = $(program_transform_name) 32 | NORMAL_INSTALL = : 33 | PRE_INSTALL = : 34 | POST_INSTALL = : 35 | NORMAL_UNINSTALL = : 36 | PRE_UNINSTALL = : 37 | POST_UNINSTALL = : 38 | host_triplet = @host@ 39 | ACLOCAL = @ACLOCAL@ 40 | AMDEP_FALSE = @AMDEP_FALSE@ 41 | AMDEP_TRUE = @AMDEP_TRUE@ 42 | AMTAR = @AMTAR@ 43 | AR = @AR@ 44 | AUTOCONF = @AUTOCONF@ 45 | AUTOHEADER = @AUTOHEADER@ 46 | AUTOMAKE = @AUTOMAKE@ 47 | AWK = @AWK@ 48 | CC = @CC@ 49 | CCDEPMODE = @CCDEPMODE@ 50 | CFLAGS = @CFLAGS@ 51 | CPP = @CPP@ 52 | CPPFLAGS = @CPPFLAGS@ 53 | CXX = @CXX@ 54 | CXXCPP = @CXXCPP@ 55 | CXXDEPMODE = @CXXDEPMODE@ 56 | CXXFLAGS = @CXXFLAGS@ 57 | CYGPATH_W = @CYGPATH_W@ 58 | DEFS = @DEFS@ 59 | DEPDIR = @DEPDIR@ 60 | DSYMUTIL = @DSYMUTIL@ 61 | ECHO = @ECHO@ 62 | ECHO_C = @ECHO_C@ 63 | ECHO_N = @ECHO_N@ 64 | ECHO_T = @ECHO_T@ 65 | EGREP = @EGREP@ 66 | EXEEXT = @EXEEXT@ 67 | F77 = @F77@ 68 | FFLAGS = @FFLAGS@ 69 | GREP = @GREP@ 70 | INSTALL_DATA = @INSTALL_DATA@ 71 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 72 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 73 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 74 | LDFLAGS = @LDFLAGS@ 75 | LIBOBJS = @LIBOBJS@ 76 | LIBS = @LIBS@ 77 | LIBTOOL = @LIBTOOL@ 78 | LN_S = @LN_S@ 79 | LTLIBOBJS = @LTLIBOBJS@ 80 | MAKEINFO = @MAKEINFO@ 81 | NMEDIT = @NMEDIT@ 82 | OBJEXT = @OBJEXT@ 83 | PACKAGE = @PACKAGE@ 84 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 85 | PACKAGE_NAME = @PACKAGE_NAME@ 86 | PACKAGE_STRING = @PACKAGE_STRING@ 87 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 88 | PACKAGE_VERSION = @PACKAGE_VERSION@ 89 | PATH_SEPARATOR = @PATH_SEPARATOR@ 90 | RANLIB = @RANLIB@ 91 | SED = @SED@ 92 | SET_MAKE = @SET_MAKE@ 93 | SHELL = @SHELL@ 94 | STRIP = @STRIP@ 95 | VERSION = @VERSION@ 96 | ac_ct_CC = @ac_ct_CC@ 97 | ac_ct_CXX = @ac_ct_CXX@ 98 | ac_ct_F77 = @ac_ct_F77@ 99 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 100 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 101 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 102 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 103 | am__include = @am__include@ 104 | am__leading_dot = @am__leading_dot@ 105 | am__quote = @am__quote@ 106 | bindir = @bindir@ 107 | build = @build@ 108 | build_alias = @build_alias@ 109 | build_cpu = @build_cpu@ 110 | build_os = @build_os@ 111 | build_vendor = @build_vendor@ 112 | datadir = @datadir@ 113 | datarootdir = @datarootdir@ 114 | docdir = @docdir@ 115 | dvidir = @dvidir@ 116 | exec_prefix = @exec_prefix@ 117 | host = @host@ 118 | host_alias = @host_alias@ 119 | host_cpu = @host_cpu@ 120 | host_os = @host_os@ 121 | host_vendor = @host_vendor@ 122 | htmldir = @htmldir@ 123 | includedir = @includedir@ 124 | infodir = @infodir@ 125 | install_sh = @install_sh@ 126 | libdir = @libdir@ 127 | libexecdir = @libexecdir@ 128 | localedir = @localedir@ 129 | localstatedir = @localstatedir@ 130 | mandir = @mandir@ 131 | oldincludedir = @oldincludedir@ 132 | pdfdir = @pdfdir@ 133 | prefix = @prefix@ 134 | program_transform_name = @program_transform_name@ 135 | psdir = @psdir@ 136 | sbindir = @sbindir@ 137 | sharedstatedir = @sharedstatedir@ 138 | sysconfdir = @sysconfdir@ 139 | target_alias = @target_alias@ 140 | 141 | EXTRA_DIST = test.sh 142 | subdir = tests 143 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 144 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 145 | CONFIG_CLEAN_FILES = 146 | DIST_SOURCES = 147 | DIST_COMMON = $(srcdir)/Makefile.in Makefile.am 148 | all: all-am 149 | 150 | .SUFFIXES: 151 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 152 | cd $(top_srcdir) && \ 153 | $(AUTOMAKE) --gnu tests/Makefile 154 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 155 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) 156 | 157 | mostlyclean-libtool: 158 | -rm -f *.lo 159 | 160 | clean-libtool: 161 | -rm -rf .libs _libs 162 | 163 | distclean-libtool: 164 | -rm -f libtool 165 | uninstall-info-am: 166 | tags: TAGS 167 | TAGS: 168 | 169 | ctags: CTAGS 170 | CTAGS: 171 | 172 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 173 | 174 | top_distdir = .. 175 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) 176 | 177 | distdir: $(DISTFILES) 178 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 179 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 180 | list='$(DISTFILES)'; for file in $$list; do \ 181 | case $$file in \ 182 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 183 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 184 | esac; \ 185 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 186 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 187 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 188 | dir="/$$dir"; \ 189 | $(mkinstalldirs) "$(distdir)$$dir"; \ 190 | else \ 191 | dir=''; \ 192 | fi; \ 193 | if test -d $$d/$$file; then \ 194 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 195 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 196 | fi; \ 197 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 198 | else \ 199 | test -f $(distdir)/$$file \ 200 | || cp -p $$d/$$file $(distdir)/$$file \ 201 | || exit 1; \ 202 | fi; \ 203 | done 204 | check-am: all-am 205 | check: check-am 206 | all-am: Makefile 207 | 208 | installdirs: 209 | install: install-am 210 | install-exec: install-exec-am 211 | install-data: install-data-am 212 | uninstall: uninstall-am 213 | 214 | install-am: all-am 215 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 216 | 217 | installcheck: installcheck-am 218 | install-strip: 219 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 220 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 221 | `test -z '$(STRIP)' || \ 222 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 223 | mostlyclean-generic: 224 | 225 | clean-generic: 226 | 227 | distclean-generic: 228 | -rm -f $(CONFIG_CLEAN_FILES) 229 | 230 | maintainer-clean-generic: 231 | @echo "This command is intended for maintainers to use" 232 | @echo "it deletes files that may require special tools to rebuild." 233 | clean: clean-am 234 | 235 | clean-am: clean-generic clean-libtool mostlyclean-am 236 | 237 | distclean: distclean-am 238 | -rm -f Makefile 239 | distclean-am: clean-am distclean-generic distclean-libtool 240 | 241 | dvi: dvi-am 242 | 243 | dvi-am: 244 | 245 | info: info-am 246 | 247 | info-am: 248 | 249 | install-data-am: 250 | 251 | install-exec-am: 252 | 253 | install-info: install-info-am 254 | 255 | install-man: 256 | 257 | installcheck-am: 258 | 259 | maintainer-clean: maintainer-clean-am 260 | -rm -f Makefile 261 | maintainer-clean-am: distclean-am maintainer-clean-generic 262 | 263 | mostlyclean: mostlyclean-am 264 | 265 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 266 | 267 | pdf: pdf-am 268 | 269 | pdf-am: 270 | 271 | ps: ps-am 272 | 273 | ps-am: 274 | 275 | uninstall-am: uninstall-info-am 276 | 277 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 278 | distclean distclean-generic distclean-libtool distdir dvi \ 279 | dvi-am info info-am install install-am install-data \ 280 | install-data-am install-exec install-exec-am install-info \ 281 | install-info-am install-man install-strip installcheck \ 282 | installcheck-am installdirs maintainer-clean \ 283 | maintainer-clean-generic mostlyclean mostlyclean-generic \ 284 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ 285 | uninstall-info-am 286 | 287 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 288 | # Otherwise a system limit (for SysV at least) may be exceeded. 289 | .NOEXPORT: 290 | -------------------------------------------------------------------------------- /tests/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | base="ou=test,dc=nowhere,dc=net" 4 | adtool="adtool -b $base" 5 | 6 | ok="\033[20D\033[25C\033[32;1mOK\033[0m" 7 | broken="\033[20D\033[25C\033[31;1mBROKEN\033[0m" 8 | 9 | exec 6>&1 10 | exec 1>/dev/null 11 | 12 | # test list and oucreate 13 | $adtool oucreate testou $base 14 | if [ $? -ne 0 ] 15 | then 16 | echo -e oucreate $broken >&6 17 | exit 18 | fi 19 | $adtool list $base >tmp.txt 20 | if [ $? -ne 0 ] 21 | then 22 | echo -e list $broken >&6 23 | exit 24 | fi 25 | grep testou tmp.txt 26 | if [ $? -ne 0 ] 27 | then 28 | echo -e list or oucreate $broken >&6 29 | exit 30 | fi 31 | echo -e list $ok >&6 32 | echo -e oucreate $ok >&6 33 | 34 | #test oudelete 35 | $adtool oudelete testou 36 | if [ $? -ne 0 ] 37 | then 38 | echo -e oudelete $broken 39 | fi 40 | $adtool list $base >tmp.txt 41 | grep testou tmp.txt 42 | if [ $? -eq 0 ] 43 | then 44 | echo -e oudelete $broken >&6 45 | exit 46 | fi 47 | echo -e oudelete $ok >&6 48 | 49 | #test usercreate 50 | $adtool usercreate testuser $base 51 | if [ $? -ne 0 ] 52 | then 53 | echo -e usercreate $broken 54 | exit 55 | fi 56 | $adtool list $base >tmp.txt 57 | grep testuser tmp.txt 58 | if [ $? -ne 0 ] 59 | then 60 | echo -e usercreate $broken >&6 61 | exit 62 | fi 63 | echo -e usercreate $ok >&6 64 | 65 | #test userdelete 66 | $adtool userdelete testuser 67 | if [ $? -ne 0 ] 68 | then 69 | echo -e userdelete $broken 70 | exit 71 | fi 72 | $adtool list $base >tmp.txt 73 | grep testuser tmp.txt 74 | if [ $? -eq 0 ] 75 | then 76 | echo -e userdelete $broken >&6 77 | exit 78 | fi 79 | echo -e userdelete $ok >&6 80 | 81 | #test attributeget 82 | $adtool usercreate testuser $base 83 | $adtool attributeget testuser name >tmp.txt 84 | $adtool userdelete testuser 85 | grep testuser tmp.txt 86 | if [ $? -ne 0 ] 87 | then 88 | echo -e attributeget $broken >&6 89 | exit 90 | fi 91 | echo -e attributeget $ok >&6 92 | 93 | #test attributereplace 94 | $adtool usercreate testuser $base 95 | $adtool attributereplace testuser description blah 96 | $adtool attributeget testuser description >tmp.txt 97 | $adtool userdelete testuser 98 | grep blah tmp.txt 99 | if [ $? -ne 0 ] 100 | then 101 | echo -e attributereplace $broken >&6 102 | exit 103 | fi 104 | echo -e attributereplace $ok >&6 105 | 106 | #test attributeadd 107 | $adtool usercreate testuser $base 108 | $adtool attributeadd testuser othertelephone 123 109 | $adtool attributeadd testuser othertelephone 456 110 | $adtool attributeadd testuser othertelephone 789 111 | $adtool attributeget testuser othertelephone >tmp.txt 112 | $adtool userdelete testuser 113 | grep 456 tmp.txt 114 | if [ $? -ne 0 ] 115 | then 116 | echo -e attributeadd $broken >&6 117 | exit 118 | fi 119 | echo -e attributeadd $ok >&6 120 | 121 | #test userunlock 122 | $adtool usercreate testuser $base 123 | $adtool userunlock testuser 124 | $adtool attributeget testuser useraccountcontrol >tmp.txt 125 | $adtool userdelete testuser 126 | grep 66048 tmp.txt 127 | if [ $? -ne 0 ] 128 | then 129 | echo -e userunlock $broken >&6 130 | exit 131 | fi 132 | echo -e userunlock $ok >&6 133 | 134 | #test userlock 135 | $adtool usercreate testuser $base 136 | $adtool userunlock testuser 137 | $adtool userlock testuser 138 | $adtool attributeget testuser useraccountcontrol >tmp.txt 139 | $adtool userdelete testuser 140 | grep 66050 tmp.txt 141 | if [ $? -ne 0 ] 142 | then 143 | echo -e userlock $broken >&6 144 | exit 145 | fi 146 | echo -e userlock $ok >&6 147 | 148 | #test setpass 149 | $adtool usercreate testuser $base 150 | $adtool setpass testuser blah 151 | if [ $? -ne 0 ] 152 | then 153 | echo -e setpass $broken >&6 154 | else 155 | echo -e setpass $ok >&6 156 | fi 157 | $adtool userdelete testuser 158 | 159 | #test usermove 160 | $adtool oucreate testou1 $base 161 | $adtool oucreate testou2 $base 162 | $adtool usercreate testuser ou=testou1,$base 163 | $adtool usermove testuser ou=testou2,$base 164 | $adtool list ou=testou2,$base >tmp.txt 165 | $adtool userdelete testuser 166 | $adtool oudelete testou1 167 | $adtool oudelete testou2 168 | grep testuser tmp.txt 169 | if [ $? -ne 0 ] 170 | then 171 | echo -e usermove $broken >&6 172 | exit 173 | fi 174 | echo -e usermove $ok >&6 175 | 176 | #test userrename 177 | $adtool usercreate testuser $base 178 | $adtool userrename testuser yoda 179 | $adtool attributeget yoda cn >tmp.txt 180 | $adtool userdelete yoda 181 | grep yoda tmp.txt 182 | if [ $? -ne 0 ] 183 | then 184 | echo -e userrename $broken >&6 185 | exit 186 | fi 187 | echo -e userrename $ok >&6 188 | 189 | #test search 190 | $adtool oucreate testou $base 191 | $adtool usercreate testuser ou=testou,$base 192 | $adtool attributereplace testuser description muppet 193 | $adtool search description muppet >tmp.txt 194 | $adtool userdelete testuser 195 | $adtool oudelete testou 196 | grep testuser tmp.txt 197 | if [ $? -ne 0 ] 198 | then 199 | echo -e search $broken >&6 200 | exit 201 | fi 202 | echo -e search $ok >&6 203 | 204 | #test groupcreate/delete 205 | $adtool groupcreate testgroup $base 206 | $adtool search objectclass group >tmp.txt 207 | $adtool groupdelete testgroup 208 | $adtool search objectclass group >tmp2.txt 209 | grep testgroup tmp.txt 210 | if [ $? -ne 0 ] 211 | then 212 | echo -e groupcreate $broken >&6 213 | exit 214 | fi 215 | echo -e groupcreate $ok >&6 216 | grep testgroup tmp2.txt 217 | if [ $? -eq 0 ] 218 | then 219 | echo -e groupdelete $broken >&6 220 | exit 221 | fi 222 | echo -e groupdelete $ok >&6 223 | 224 | 225 | 226 | 227 | --------------------------------------------------------------------------------