Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 487 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 622 | gt_needs= |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 623 | ac_header_list= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 624 | gl_use_threads_default= |
| 625 | ac_func_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 627 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | BUILD_LDFLAGS |
| 629 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 630 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 631 | DO_TEST_SUITE |
| 632 | ET_DIR |
| 633 | SS_DIR |
| 634 | LDFLAG_STATIC |
| 635 | root_sysconfdir |
| 636 | root_libdir |
| 637 | root_sbindir |
| 638 | root_bindir |
| 639 | root_prefix |
| 640 | UNIX_CMT |
| 641 | CYGWIN_CMT |
| 642 | LINUX_CMT |
| 643 | UNI_DIFF_OPTS |
| 644 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 645 | SOCKET_LIB |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 646 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 647 | SIZEOF_LONG_LONG |
| 648 | SIZEOF_LONG |
| 649 | SIZEOF_INT |
| 650 | SIZEOF_SHORT |
| 651 | BUILD_CC |
| 652 | MAKEINFO |
| 653 | STRIP |
| 654 | AR |
| 655 | LDCONFIG |
| 656 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 657 | AWK |
| 658 | CHMOD |
| 659 | RM |
| 660 | CP |
| 661 | MV |
| 662 | LN_S |
| 663 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 664 | ifNotGNUmake |
| 665 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 666 | BINARY_TYPE |
| 667 | POSUB |
| 668 | LTLIBINTL |
| 669 | LIBINTL |
| 670 | INTLLIBS |
| 671 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 672 | INTLOBJS |
| 673 | GENCAT |
| 674 | INSTOBJEXT |
| 675 | DATADIRNAME |
| 676 | CATOBJEXT |
| 677 | USE_INCLUDED_LIBINTL |
| 678 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 679 | LTLIBC |
| 680 | WINDRES |
| 681 | WOE32 |
| 682 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 683 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 684 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 685 | HAVE_SNPRINTF |
| 686 | HAVE_ASPRINTF |
| 687 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 688 | INTL_DEFAULT_VERBOSITY |
| 689 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 690 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 691 | INTLBISON |
| 692 | LTLIBICONV |
| 693 | LIBICONV |
| 694 | LTLIBMULTITHREAD |
| 695 | LIBMULTITHREAD |
| 696 | LTLIBTHREAD |
| 697 | LIBTHREAD |
| 698 | LIBPTH_PREFIX |
| 699 | LTLIBPTH |
| 700 | LIBPTH |
| 701 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 702 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 703 | HAVE_VISIBILITY |
| 704 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 705 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 706 | GLIBC2 |
| 707 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 708 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 709 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 710 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 711 | GMSGFMT_015 |
| 712 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 713 | GMSGFMT |
| 714 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 715 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 716 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 717 | SED |
| 718 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 719 | INSTALL_DATA |
| 720 | INSTALL_SCRIPT |
| 721 | INSTALL_PROGRAM |
| 722 | SET_MAKE |
| 723 | VERSION |
| 724 | PACKAGE |
| 725 | GETTEXT_PACKAGE |
| 726 | UUIDD_CMT |
| 727 | E2INITRD_MAN |
| 728 | E2INITRD_PROG |
| 729 | FSCK_MAN |
| 730 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 731 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 732 | RESIZER_CMT |
| 733 | IMAGER_CMT |
| 734 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 735 | QUOTA_CMT |
| 736 | DEPPROFILED_LIBQUOTA |
| 737 | PROFILED_LIBQUOTA |
| 738 | DEPSTATIC_LIBQUOTA |
| 739 | STATIC_LIBQUOTA |
| 740 | DEPLIBQUOTA |
| 741 | LIBQUOTA |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 742 | QUOTA_MAN_COMMENT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 743 | BLKID_CMT |
| 744 | DEPPROFILED_LIBBLKID |
| 745 | PROFILED_LIBBLKID |
| 746 | DEPSTATIC_LIBBLKID |
| 747 | STATIC_LIBBLKID |
| 748 | DEPLIBBLKID |
| 749 | LIBBLKID |
| 750 | UUID_CMT |
| 751 | DEPPROFILED_LIBUUID |
| 752 | PROFILED_LIBUUID |
| 753 | DEPSTATIC_LIBUUID |
| 754 | STATIC_LIBUUID |
| 755 | DEPLIBUUID |
| 756 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 757 | PKG_CONFIG_LIBDIR |
| 758 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 759 | PKG_CONFIG |
| 760 | TEST_IO_CMT |
| 761 | PRIVATE_LIBS_CMT |
| 762 | LDFLAG_DYNAMIC |
| 763 | PROFILED_LIB_EXT |
| 764 | STATIC_LIB_EXT |
| 765 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 766 | PROFILE_CMT |
| 767 | BSDLIB_CMT |
| 768 | ELF_CMT |
| 769 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 770 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 771 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 772 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 773 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 774 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 775 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 776 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 777 | EGREP |
| 778 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 779 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 780 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 781 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 782 | OBJEXT |
| 783 | EXEEXT |
| 784 | ac_ct_CC |
| 785 | CPPFLAGS |
| 786 | LDFLAGS |
| 787 | CFLAGS |
| 788 | CC |
| 789 | host_os |
| 790 | host_vendor |
| 791 | host_cpu |
| 792 | host |
| 793 | build_os |
| 794 | build_vendor |
| 795 | build_cpu |
| 796 | build |
| 797 | E2FSPROGS_PKGVER |
| 798 | E2FSPROGS_VERSION |
| 799 | E2FSPROGS_DAY |
| 800 | E2FSPROGS_MONTH |
| 801 | E2FSPROGS_YEAR |
| 802 | target_alias |
| 803 | host_alias |
| 804 | build_alias |
| 805 | LIBS |
| 806 | ECHO_T |
| 807 | ECHO_N |
| 808 | ECHO_C |
| 809 | DEFS |
| 810 | mandir |
| 811 | localedir |
| 812 | libdir |
| 813 | psdir |
| 814 | pdfdir |
| 815 | dvidir |
| 816 | htmldir |
| 817 | infodir |
| 818 | docdir |
| 819 | oldincludedir |
| 820 | includedir |
| 821 | localstatedir |
| 822 | sharedstatedir |
| 823 | sysconfdir |
| 824 | datadir |
| 825 | datarootdir |
| 826 | libexecdir |
| 827 | sbindir |
| 828 | bindir |
| 829 | program_transform_name |
| 830 | prefix |
| 831 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 832 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 833 | PACKAGE_BUGREPORT |
| 834 | PACKAGE_STRING |
| 835 | PACKAGE_VERSION |
| 836 | PACKAGE_TARNAME |
| 837 | PACKAGE_NAME |
| 838 | PATH_SEPARATOR |
| 839 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 840 | ac_subst_files='MCONFIG |
| 841 | MAKEFILE_ELF |
| 842 | MAKEFILE_BSDLIB |
| 843 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 844 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 845 | ASM_TYPES_HEADER |
| 846 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 847 | ac_user_opts=' |
| 848 | enable_option_checking |
| 849 | with_diet_libc |
| 850 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 851 | with_ccopts |
| 852 | with_ldopts |
| 853 | with_root_prefix |
| 854 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 855 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 856 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 857 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 858 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 859 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 860 | enable_compression |
| 861 | enable_htree |
| 862 | enable_elf_shlibs |
| 863 | enable_bsd_shlibs |
| 864 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 865 | enable_gcov |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 866 | enable_jbd_debug |
| 867 | enable_blkid_debug |
| 868 | enable_testio_debug |
| 869 | enable_libuuid |
| 870 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 871 | enable_quota |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 872 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 873 | enable_debugfs |
| 874 | enable_imager |
| 875 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 876 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 877 | enable_fsck |
| 878 | enable_e2initrd_helper |
| 879 | enable_tls |
| 880 | enable_uuidd |
| 881 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 882 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 883 | with_gnu_ld |
| 884 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 885 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 886 | with_libiconv_prefix |
| 887 | with_included_gettext |
| 888 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 889 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 890 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 891 | ac_precious_vars='build_alias |
| 892 | host_alias |
| 893 | target_alias |
| 894 | CC |
| 895 | CFLAGS |
| 896 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 897 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 898 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 899 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 900 | PKG_CONFIG |
| 901 | PKG_CONFIG_PATH |
| 902 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 903 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 904 | |
| 905 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 906 | ac_init_help= |
| 907 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 908 | ac_unrecognized_opts= |
| 909 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 910 | # The variables have the same names as the options, with |
| 911 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 912 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 913 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | no_recursion= |
| 916 | prefix=NONE |
| 917 | program_prefix=NONE |
| 918 | program_suffix=NONE |
| 919 | program_transform_name=s,x,x, |
| 920 | silent= |
| 921 | site= |
| 922 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 923 | verbose= |
| 924 | x_includes=NONE |
| 925 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 926 | |
| 927 | # Installation directory options. |
| 928 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 929 | # and all the variables that are supposed to be based on exec_prefix |
| 930 | # by default will actually change. |
| 931 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 932 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 933 | bindir='${exec_prefix}/bin' |
| 934 | sbindir='${exec_prefix}/sbin' |
| 935 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 936 | datarootdir='${prefix}/share' |
| 937 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 938 | sysconfdir='${prefix}/etc' |
| 939 | sharedstatedir='${prefix}/com' |
| 940 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 941 | includedir='${prefix}/include' |
| 942 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 943 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 944 | infodir='${datarootdir}/info' |
| 945 | htmldir='${docdir}' |
| 946 | dvidir='${docdir}' |
| 947 | pdfdir='${docdir}' |
| 948 | psdir='${docdir}' |
| 949 | libdir='${exec_prefix}/lib' |
| 950 | localedir='${datarootdir}/locale' |
| 951 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 952 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 953 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 954 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 955 | for ac_option |
| 956 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 957 | # If the previous option needs an argument, assign it. |
| 958 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 959 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 960 | ac_prev= |
| 961 | continue |
| 962 | fi |
| 963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 964 | case $ac_option in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 965 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 966 | *=) ac_optarg= ;; |
| 967 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 968 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 969 | |
| 970 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 972 | case $ac_dashdash$ac_option in |
| 973 | --) |
| 974 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 975 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 976 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 977 | ac_prev=bindir ;; |
| 978 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 979 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 980 | |
| 981 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 982 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 984 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 985 | |
| 986 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 987 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 988 | ac_prev=cache_file ;; |
| 989 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 990 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 991 | cache_file=$ac_optarg ;; |
| 992 | |
| 993 | --config-cache | -C) |
| 994 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 996 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 997 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 998 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 999 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1000 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1001 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1002 | | --dataroo | --dataro | --datar) |
| 1003 | ac_prev=datarootdir ;; |
| 1004 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1005 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1006 | datarootdir=$ac_optarg ;; |
| 1007 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1008 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1010 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1012 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1013 | ac_useropt_orig=$ac_useropt |
| 1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1015 | case $ac_user_opts in |
| 1016 | *" |
| 1017 | "enable_$ac_useropt" |
| 1018 | "*) ;; |
| 1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1020 | ac_unrecognized_sep=', ';; |
| 1021 | esac |
| 1022 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1023 | |
| 1024 | -docdir | --docdir | --docdi | --doc | --do) |
| 1025 | ac_prev=docdir ;; |
| 1026 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1027 | docdir=$ac_optarg ;; |
| 1028 | |
| 1029 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1030 | ac_prev=dvidir ;; |
| 1031 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1032 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1033 | |
| 1034 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1035 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1036 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1037 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1038 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1039 | ac_useropt_orig=$ac_useropt |
| 1040 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1041 | case $ac_user_opts in |
| 1042 | *" |
| 1043 | "enable_$ac_useropt" |
| 1044 | "*) ;; |
| 1045 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1046 | ac_unrecognized_sep=', ';; |
| 1047 | esac |
| 1048 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1049 | |
| 1050 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1051 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1052 | | --exec | --exe | --ex) |
| 1053 | ac_prev=exec_prefix ;; |
| 1054 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1055 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1056 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1057 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1058 | |
| 1059 | -gas | --gas | --ga | --g) |
| 1060 | # Obsolete; use --with-gas. |
| 1061 | with_gas=yes ;; |
| 1062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1063 | -help | --help | --hel | --he | -h) |
| 1064 | ac_init_help=long ;; |
| 1065 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1066 | ac_init_help=recursive ;; |
| 1067 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1068 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1069 | |
| 1070 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1071 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1072 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1073 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1075 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1076 | ac_prev=htmldir ;; |
| 1077 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1078 | | --ht=*) |
| 1079 | htmldir=$ac_optarg ;; |
| 1080 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1081 | -includedir | --includedir | --includedi | --included | --include \ |
| 1082 | | --includ | --inclu | --incl | --inc) |
| 1083 | ac_prev=includedir ;; |
| 1084 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1085 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1086 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1087 | |
| 1088 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1089 | ac_prev=infodir ;; |
| 1090 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1092 | |
| 1093 | -libdir | --libdir | --libdi | --libd) |
| 1094 | ac_prev=libdir ;; |
| 1095 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1096 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1097 | |
| 1098 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1099 | | --libexe | --libex | --libe) |
| 1100 | ac_prev=libexecdir ;; |
| 1101 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1102 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1103 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1105 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1106 | ac_prev=localedir ;; |
| 1107 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1108 | localedir=$ac_optarg ;; |
| 1109 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1110 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1111 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1112 | ac_prev=localstatedir ;; |
| 1113 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1114 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1115 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1116 | |
| 1117 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1118 | ac_prev=mandir ;; |
| 1119 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1120 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1121 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1122 | -nfp | --nfp | --nf) |
| 1123 | # Obsolete; use --without-fp. |
| 1124 | with_fp=no ;; |
| 1125 | |
| 1126 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | no_create=yes ;; |
| 1129 | |
| 1130 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1131 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1132 | no_recursion=yes ;; |
| 1133 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1134 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1135 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1136 | | --oldin | --oldi | --old | --ol | --o) |
| 1137 | ac_prev=oldincludedir ;; |
| 1138 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1139 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1140 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1141 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1142 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1143 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1144 | ac_prev=prefix ;; |
| 1145 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1146 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1147 | |
| 1148 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1149 | | --program-pre | --program-pr | --program-p) |
| 1150 | ac_prev=program_prefix ;; |
| 1151 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1152 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1154 | |
| 1155 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1156 | | --program-suf | --program-su | --program-s) |
| 1157 | ac_prev=program_suffix ;; |
| 1158 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1159 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1160 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1161 | |
| 1162 | -program-transform-name | --program-transform-name \ |
| 1163 | | --program-transform-nam | --program-transform-na \ |
| 1164 | | --program-transform-n | --program-transform- \ |
| 1165 | | --program-transform | --program-transfor \ |
| 1166 | | --program-transfo | --program-transf \ |
| 1167 | | --program-trans | --program-tran \ |
| 1168 | | --progr-tra | --program-tr | --program-t) |
| 1169 | ac_prev=program_transform_name ;; |
| 1170 | -program-transform-name=* | --program-transform-name=* \ |
| 1171 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1172 | | --program-transform-n=* | --program-transform-=* \ |
| 1173 | | --program-transform=* | --program-transfor=* \ |
| 1174 | | --program-transfo=* | --program-transf=* \ |
| 1175 | | --program-trans=* | --program-tran=* \ |
| 1176 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1177 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1178 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1179 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1180 | ac_prev=pdfdir ;; |
| 1181 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1182 | pdfdir=$ac_optarg ;; |
| 1183 | |
| 1184 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1185 | ac_prev=psdir ;; |
| 1186 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1187 | psdir=$ac_optarg ;; |
| 1188 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1189 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1190 | | -silent | --silent | --silen | --sile | --sil) |
| 1191 | silent=yes ;; |
| 1192 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1193 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1194 | ac_prev=sbindir ;; |
| 1195 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1196 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1197 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1198 | |
| 1199 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1200 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1201 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1202 | | --sha | --sh) |
| 1203 | ac_prev=sharedstatedir ;; |
| 1204 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1205 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1206 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1207 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1208 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1209 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1210 | -site | --site | --sit) |
| 1211 | ac_prev=site ;; |
| 1212 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1213 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1214 | |
| 1215 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1216 | ac_prev=srcdir ;; |
| 1217 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1218 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1219 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1220 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1221 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1222 | ac_prev=sysconfdir ;; |
| 1223 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1224 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1225 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1226 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1228 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1229 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1230 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1231 | |
| 1232 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1233 | verbose=yes ;; |
| 1234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1235 | -version | --version | --versio | --versi | --vers | -V) |
| 1236 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1237 | |
| 1238 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1239 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1240 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1241 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1242 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1243 | ac_useropt_orig=$ac_useropt |
| 1244 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1245 | case $ac_user_opts in |
| 1246 | *" |
| 1247 | "with_$ac_useropt" |
| 1248 | "*) ;; |
| 1249 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1250 | ac_unrecognized_sep=', ';; |
| 1251 | esac |
| 1252 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1253 | |
| 1254 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1255 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1256 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1258 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1259 | ac_useropt_orig=$ac_useropt |
| 1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1261 | case $ac_user_opts in |
| 1262 | *" |
| 1263 | "with_$ac_useropt" |
| 1264 | "*) ;; |
| 1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1266 | ac_unrecognized_sep=', ';; |
| 1267 | esac |
| 1268 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1269 | |
| 1270 | --x) |
| 1271 | # Obsolete; use --with-x. |
| 1272 | with_x=yes ;; |
| 1273 | |
| 1274 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1275 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1276 | ac_prev=x_includes ;; |
| 1277 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1278 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1279 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | |
| 1281 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1282 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1283 | ac_prev=x_libraries ;; |
| 1284 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1285 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1286 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1288 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1289 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1290 | ;; |
| 1291 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1292 | *=*) |
| 1293 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1294 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1295 | case $ac_envvar in #( |
| 1296 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1297 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1298 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1299 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1300 | export $ac_envvar ;; |
| 1301 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1302 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1303 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1304 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1305 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1306 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1307 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1308 | ;; |
| 1309 | |
| 1310 | esac |
| 1311 | done |
| 1312 | |
| 1313 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1314 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1315 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1316 | fi |
| 1317 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1318 | if test -n "$ac_unrecognized_opts"; then |
| 1319 | case $enable_option_checking in |
| 1320 | no) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1321 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1322 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1323 | esac |
| 1324 | fi |
| 1325 | |
| 1326 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1327 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1328 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1329 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1330 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1331 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1332 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1333 | # Remove trailing slashes. |
| 1334 | case $ac_val in |
| 1335 | */ ) |
| 1336 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1337 | eval $ac_var=\$ac_val;; |
| 1338 | esac |
| 1339 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1340 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1341 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1342 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1343 | esac |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1344 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1345 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1346 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1347 | # There might be people who depend on the old broken behavior: `$host' |
| 1348 | # used to hold the argument of --host etc. |
| 1349 | # FIXME: To remove some day. |
| 1350 | build=$build_alias |
| 1351 | host=$host_alias |
| 1352 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1353 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1354 | # FIXME: To remove some day. |
| 1355 | if test "x$host_alias" != x; then |
| 1356 | if test "x$build_alias" = x; then |
| 1357 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1358 | elif test "x$build_alias" != "x$host_alias"; then |
| 1359 | cross_compiling=yes |
| 1360 | fi |
| 1361 | fi |
| 1362 | |
| 1363 | ac_tool_prefix= |
| 1364 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1365 | |
| 1366 | test "$silent" = yes && exec 6>/dev/null |
| 1367 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1369 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1370 | ac_ls_di=`ls -di .` && |
| 1371 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1372 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1373 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1374 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1375 | |
| 1376 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1377 | # Find the source files, if location was not specified. |
| 1378 | if test -z "$srcdir"; then |
| 1379 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1380 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1381 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1382 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1383 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1384 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1385 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1386 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1388 | s//\1/ |
| 1389 | q |
| 1390 | } |
| 1391 | /^X\(\/\/\)[^/].*/{ |
| 1392 | s//\1/ |
| 1393 | q |
| 1394 | } |
| 1395 | /^X\(\/\/\)$/{ |
| 1396 | s//\1/ |
| 1397 | q |
| 1398 | } |
| 1399 | /^X\(\/\).*/{ |
| 1400 | s//\1/ |
| 1401 | q |
| 1402 | } |
| 1403 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1404 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1405 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1406 | srcdir=.. |
| 1407 | fi |
| 1408 | else |
| 1409 | ac_srcdir_defaulted=no |
| 1410 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1411 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1412 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1413 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1414 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1415 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1416 | ac_abs_confdir=`( |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1417 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1418 | pwd)` |
| 1419 | # When building in place, set srcdir=. |
| 1420 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1421 | srcdir=. |
| 1422 | fi |
| 1423 | # Remove unnecessary trailing slashes from srcdir. |
| 1424 | # Double slashes in file names in object file debugging info |
| 1425 | # mess up M-x gdb in Emacs. |
| 1426 | case $srcdir in |
| 1427 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1428 | esac |
| 1429 | for ac_var in $ac_precious_vars; do |
| 1430 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1431 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1432 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1433 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1434 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1436 | # |
| 1437 | # Report the --help message. |
| 1438 | # |
| 1439 | if test "$ac_init_help" = "long"; then |
| 1440 | # Omit some internal or obsolete options to make the list less imposing. |
| 1441 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1442 | cat <<_ACEOF |
| 1443 | \`configure' configures this package to adapt to many kinds of systems. |
| 1444 | |
| 1445 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1446 | |
| 1447 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1448 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1449 | |
| 1450 | Defaults for the options are specified in brackets. |
| 1451 | |
| 1452 | Configuration: |
| 1453 | -h, --help display this help and exit |
| 1454 | --help=short display options specific to this package |
| 1455 | --help=recursive display the short help of all the included packages |
| 1456 | -V, --version display version information and exit |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1457 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1458 | --cache-file=FILE cache test results in FILE [disabled] |
| 1459 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1460 | -n, --no-create do not create output files |
| 1461 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1463 | Installation directories: |
| 1464 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1465 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1467 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1468 | |
| 1469 | By default, \`make install' will install all the files in |
| 1470 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1471 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1472 | for instance \`--prefix=\$HOME'. |
| 1473 | |
| 1474 | For better control, use the options below. |
| 1475 | |
| 1476 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1477 | --bindir=DIR user executables [EPREFIX/bin] |
| 1478 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1479 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1480 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1481 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1482 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1483 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1484 | --includedir=DIR C header files [PREFIX/include] |
| 1485 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1486 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1487 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1488 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1489 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1490 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1491 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1492 | --htmldir=DIR html documentation [DOCDIR] |
| 1493 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1494 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1495 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1496 | _ACEOF |
| 1497 | |
| 1498 | cat <<\_ACEOF |
| 1499 | |
| 1500 | System types: |
| 1501 | --build=BUILD configure for building on BUILD [guessed] |
| 1502 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1503 | _ACEOF |
| 1504 | fi |
| 1505 | |
| 1506 | if test -n "$ac_init_help"; then |
| 1507 | |
| 1508 | cat <<\_ACEOF |
| 1509 | |
| 1510 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1511 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1512 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1513 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1514 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1515 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1516 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1517 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1518 | --enable-symlink-build use symlinks while building instead of hard links |
| 1519 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1520 | --enable-compression enable EXPERIMENTAL compression support |
| 1521 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1522 | --enable-elf-shlibs select ELF shared libraries |
| 1523 | --enable-bsd-shlibs select BSD shared libraries |
| 1524 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1525 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1526 | --enable-jbd-debug enable journal debugging |
| 1527 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1528 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1529 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1530 | --disable-libblkid do not build private blkid library |
Eric Sandeen | 7b8912e | 2012-11-27 12:21:56 -0600 | [diff] [blame] | 1531 | --enable-quota enable quota support |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1532 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1533 | --disable-debugfs disable support of debugfs program |
| 1534 | --disable-imager disable support of e2image program |
| 1535 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1536 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1537 | --enable-fsck build fsck wrapper program |
| 1538 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1539 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1540 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1541 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1542 | --enable-threads={posix|solaris|pth|windows} |
| 1543 | specify multithreading API |
| 1544 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1545 | --disable-rpath do not hardcode runtime library paths |
| 1546 | |
| 1547 | Optional Packages: |
| 1548 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1549 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1550 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1551 | --with-cc no longer supported, use CC= instead |
| 1552 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1553 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1554 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1555 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1556 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1557 | --without-libpth-prefix don't search for libpth in includedir and libdir |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1558 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1559 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1560 | --with-included-gettext use the GNU gettext library included here |
| 1561 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1562 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1563 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | |
| 1565 | Some influential environment variables: |
| 1566 | CC C compiler command |
| 1567 | CFLAGS C compiler flags |
| 1568 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1569 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1570 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1571 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1572 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1573 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1574 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1575 | PKG_CONFIG_PATH |
| 1576 | directories to add to pkg-config's search path |
| 1577 | PKG_CONFIG_LIBDIR |
| 1578 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1579 | |
| 1580 | Use these variables to override the choices made by `configure' or to help |
| 1581 | it to find libraries and programs with nonstandard names/locations. |
| 1582 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1583 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1584 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1585 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1586 | fi |
| 1587 | |
| 1588 | if test "$ac_init_help" = "recursive"; then |
| 1589 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1590 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1591 | test -d "$ac_dir" || |
| 1592 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1593 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1594 | ac_builddir=. |
| 1595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1596 | case "$ac_dir" in |
| 1597 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1598 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1599 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1600 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1601 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1602 | case $ac_top_builddir_sub in |
| 1603 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1604 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1605 | esac ;; |
| 1606 | esac |
| 1607 | ac_abs_top_builddir=$ac_pwd |
| 1608 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1609 | # for backward compatibility: |
| 1610 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1611 | |
| 1612 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1613 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1614 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1615 | ac_top_srcdir=$ac_top_builddir_sub |
| 1616 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1617 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1618 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1619 | ac_top_srcdir=$srcdir |
| 1620 | ac_abs_top_srcdir=$srcdir ;; |
| 1621 | *) # Relative name. |
| 1622 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1623 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1624 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1625 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1626 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1627 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1628 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1629 | # Check for guested configure. |
| 1630 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1631 | echo && |
| 1632 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1633 | elif test -f "$ac_srcdir/configure"; then |
| 1634 | echo && |
| 1635 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1636 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1637 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1638 | fi || ac_status=$? |
| 1639 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1640 | done |
| 1641 | fi |
| 1642 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1643 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1644 | if $ac_init_version; then |
| 1645 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1646 | configure |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1647 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1648 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1649 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1650 | This configure script is free software; the Free Software Foundation |
| 1651 | gives unlimited permission to copy, distribute and modify it. |
| 1652 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1653 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1654 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1655 | |
| 1656 | ## ------------------------ ## |
| 1657 | ## Autoconf initialization. ## |
| 1658 | ## ------------------------ ## |
| 1659 | |
| 1660 | # ac_fn_c_try_compile LINENO |
| 1661 | # -------------------------- |
| 1662 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1663 | ac_fn_c_try_compile () |
| 1664 | { |
| 1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1666 | rm -f conftest.$ac_objext |
| 1667 | if { { ac_try="$ac_compile" |
| 1668 | case "(($ac_try" in |
| 1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1670 | *) ac_try_echo=$ac_try;; |
| 1671 | esac |
| 1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1673 | $as_echo "$ac_try_echo"; } >&5 |
| 1674 | (eval "$ac_compile") 2>conftest.err |
| 1675 | ac_status=$? |
| 1676 | if test -s conftest.err; then |
| 1677 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1678 | cat conftest.er1 >&5 |
| 1679 | mv -f conftest.er1 conftest.err |
| 1680 | fi |
| 1681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1682 | test $ac_status = 0; } && { |
| 1683 | test -z "$ac_c_werror_flag" || |
| 1684 | test ! -s conftest.err |
| 1685 | } && test -s conftest.$ac_objext; then : |
| 1686 | ac_retval=0 |
| 1687 | else |
| 1688 | $as_echo "$as_me: failed program was:" >&5 |
| 1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1690 | |
| 1691 | ac_retval=1 |
| 1692 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1694 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1695 | |
| 1696 | } # ac_fn_c_try_compile |
| 1697 | |
| 1698 | # ac_fn_c_try_link LINENO |
| 1699 | # ----------------------- |
| 1700 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1701 | ac_fn_c_try_link () |
| 1702 | { |
| 1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1705 | if { { ac_try="$ac_link" |
| 1706 | case "(($ac_try" in |
| 1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1708 | *) ac_try_echo=$ac_try;; |
| 1709 | esac |
| 1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1711 | $as_echo "$ac_try_echo"; } >&5 |
| 1712 | (eval "$ac_link") 2>conftest.err |
| 1713 | ac_status=$? |
| 1714 | if test -s conftest.err; then |
| 1715 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1716 | cat conftest.er1 >&5 |
| 1717 | mv -f conftest.er1 conftest.err |
| 1718 | fi |
| 1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1720 | test $ac_status = 0; } && { |
| 1721 | test -z "$ac_c_werror_flag" || |
| 1722 | test ! -s conftest.err |
| 1723 | } && test -s conftest$ac_exeext && { |
| 1724 | test "$cross_compiling" = yes || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1725 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1726 | }; then : |
| 1727 | ac_retval=0 |
| 1728 | else |
| 1729 | $as_echo "$as_me: failed program was:" >&5 |
| 1730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1731 | |
| 1732 | ac_retval=1 |
| 1733 | fi |
| 1734 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1735 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1736 | # interfere with the next link command; also delete a directory that is |
| 1737 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1738 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1740 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1741 | |
| 1742 | } # ac_fn_c_try_link |
| 1743 | |
| 1744 | # ac_fn_c_try_cpp LINENO |
| 1745 | # ---------------------- |
| 1746 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1747 | ac_fn_c_try_cpp () |
| 1748 | { |
| 1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1750 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1751 | case "(($ac_try" in |
| 1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1753 | *) ac_try_echo=$ac_try;; |
| 1754 | esac |
| 1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1756 | $as_echo "$ac_try_echo"; } >&5 |
| 1757 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1758 | ac_status=$? |
| 1759 | if test -s conftest.err; then |
| 1760 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1761 | cat conftest.er1 >&5 |
| 1762 | mv -f conftest.er1 conftest.err |
| 1763 | fi |
| 1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1765 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1766 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1767 | test ! -s conftest.err |
| 1768 | }; then : |
| 1769 | ac_retval=0 |
| 1770 | else |
| 1771 | $as_echo "$as_me: failed program was:" >&5 |
| 1772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1773 | |
| 1774 | ac_retval=1 |
| 1775 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1777 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1778 | |
| 1779 | } # ac_fn_c_try_cpp |
| 1780 | |
| 1781 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1782 | # ------------------------------------------------------- |
| 1783 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1784 | # the include files in INCLUDES and setting the cache variable VAR |
| 1785 | # accordingly. |
| 1786 | ac_fn_c_check_header_mongrel () |
| 1787 | { |
| 1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1789 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1791 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1792 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1793 | $as_echo_n "(cached) " >&6 |
| 1794 | fi |
| 1795 | eval ac_res=\$$3 |
| 1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1797 | $as_echo "$ac_res" >&6; } |
| 1798 | else |
| 1799 | # Is the header compilable? |
| 1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1801 | $as_echo_n "checking $2 usability... " >&6; } |
| 1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1803 | /* end confdefs.h. */ |
| 1804 | $4 |
| 1805 | #include <$2> |
| 1806 | _ACEOF |
| 1807 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1808 | ac_header_compiler=yes |
| 1809 | else |
| 1810 | ac_header_compiler=no |
| 1811 | fi |
| 1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1814 | $as_echo "$ac_header_compiler" >&6; } |
| 1815 | |
| 1816 | # Is the header present? |
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1818 | $as_echo_n "checking $2 presence... " >&6; } |
| 1819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1820 | /* end confdefs.h. */ |
| 1821 | #include <$2> |
| 1822 | _ACEOF |
| 1823 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1824 | ac_header_preproc=yes |
| 1825 | else |
| 1826 | ac_header_preproc=no |
| 1827 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1828 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1830 | $as_echo "$ac_header_preproc" >&6; } |
| 1831 | |
| 1832 | # So? What about this header? |
| 1833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1834 | yes:no: ) |
| 1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1836 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1838 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1839 | ;; |
| 1840 | no:yes:* ) |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1842 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1844 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1846 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1848 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1850 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1851 | ;; |
| 1852 | esac |
| 1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1854 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1855 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1856 | $as_echo_n "(cached) " >&6 |
| 1857 | else |
| 1858 | eval "$3=\$ac_header_compiler" |
| 1859 | fi |
| 1860 | eval ac_res=\$$3 |
| 1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1862 | $as_echo "$ac_res" >&6; } |
| 1863 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1864 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1865 | |
| 1866 | } # ac_fn_c_check_header_mongrel |
| 1867 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1868 | # ac_fn_c_try_run LINENO |
| 1869 | # ---------------------- |
| 1870 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1871 | # that executables *can* be run. |
| 1872 | ac_fn_c_try_run () |
| 1873 | { |
| 1874 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1875 | if { { ac_try="$ac_link" |
| 1876 | case "(($ac_try" in |
| 1877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1878 | *) ac_try_echo=$ac_try;; |
| 1879 | esac |
| 1880 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1881 | $as_echo "$ac_try_echo"; } >&5 |
| 1882 | (eval "$ac_link") 2>&5 |
| 1883 | ac_status=$? |
| 1884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1885 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1886 | { { case "(($ac_try" in |
| 1887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1888 | *) ac_try_echo=$ac_try;; |
| 1889 | esac |
| 1890 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1891 | $as_echo "$ac_try_echo"; } >&5 |
| 1892 | (eval "$ac_try") 2>&5 |
| 1893 | ac_status=$? |
| 1894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1895 | test $ac_status = 0; }; }; then : |
| 1896 | ac_retval=0 |
| 1897 | else |
| 1898 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1899 | $as_echo "$as_me: failed program was:" >&5 |
| 1900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1901 | |
| 1902 | ac_retval=$ac_status |
| 1903 | fi |
| 1904 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1906 | as_fn_set_status $ac_retval |
| 1907 | |
| 1908 | } # ac_fn_c_try_run |
| 1909 | |
| 1910 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1911 | # ------------------------------------------------------- |
| 1912 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1913 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1914 | ac_fn_c_check_header_compile () |
| 1915 | { |
| 1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1918 | $as_echo_n "checking for $2... " >&6; } |
| 1919 | if eval \${$3+:} false; then : |
| 1920 | $as_echo_n "(cached) " >&6 |
| 1921 | else |
| 1922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1923 | /* end confdefs.h. */ |
| 1924 | $4 |
| 1925 | #include <$2> |
| 1926 | _ACEOF |
| 1927 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1928 | eval "$3=yes" |
| 1929 | else |
| 1930 | eval "$3=no" |
| 1931 | fi |
| 1932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1933 | fi |
| 1934 | eval ac_res=\$$3 |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1936 | $as_echo "$ac_res" >&6; } |
| 1937 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1938 | |
| 1939 | } # ac_fn_c_check_header_compile |
| 1940 | |
| 1941 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1942 | # ------------------------------------------- |
| 1943 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1944 | # variable VAR accordingly. |
| 1945 | ac_fn_c_check_type () |
| 1946 | { |
| 1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1949 | $as_echo_n "checking for $2... " >&6; } |
| 1950 | if eval \${$3+:} false; then : |
| 1951 | $as_echo_n "(cached) " >&6 |
| 1952 | else |
| 1953 | eval "$3=no" |
| 1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1955 | /* end confdefs.h. */ |
| 1956 | $4 |
| 1957 | int |
| 1958 | main () |
| 1959 | { |
| 1960 | if (sizeof ($2)) |
| 1961 | return 0; |
| 1962 | ; |
| 1963 | return 0; |
| 1964 | } |
| 1965 | _ACEOF |
| 1966 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1968 | /* end confdefs.h. */ |
| 1969 | $4 |
| 1970 | int |
| 1971 | main () |
| 1972 | { |
| 1973 | if (sizeof (($2))) |
| 1974 | return 0; |
| 1975 | ; |
| 1976 | return 0; |
| 1977 | } |
| 1978 | _ACEOF |
| 1979 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1980 | |
| 1981 | else |
| 1982 | eval "$3=yes" |
| 1983 | fi |
| 1984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1985 | fi |
| 1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1987 | fi |
| 1988 | eval ac_res=\$$3 |
| 1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1990 | $as_echo "$ac_res" >&6; } |
| 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1992 | |
| 1993 | } # ac_fn_c_check_type |
| 1994 | |
| 1995 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1996 | # ---------------------------------- |
| 1997 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1998 | ac_fn_c_check_func () |
| 1999 | { |
| 2000 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2002 | $as_echo_n "checking for $2... " >&6; } |
| 2003 | if eval \${$3+:} false; then : |
| 2004 | $as_echo_n "(cached) " >&6 |
| 2005 | else |
| 2006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2007 | /* end confdefs.h. */ |
| 2008 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2010 | #define $2 innocuous_$2 |
| 2011 | |
| 2012 | /* System header to define __stub macros and hopefully few prototypes, |
| 2013 | which can conflict with char $2 (); below. |
| 2014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2015 | <limits.h> exists even on freestanding compilers. */ |
| 2016 | |
| 2017 | #ifdef __STDC__ |
| 2018 | # include <limits.h> |
| 2019 | #else |
| 2020 | # include <assert.h> |
| 2021 | #endif |
| 2022 | |
| 2023 | #undef $2 |
| 2024 | |
| 2025 | /* Override any GCC internal prototype to avoid an error. |
| 2026 | Use char because int might match the return type of a GCC |
| 2027 | builtin and then its argument prototype would still apply. */ |
| 2028 | #ifdef __cplusplus |
| 2029 | extern "C" |
| 2030 | #endif |
| 2031 | char $2 (); |
| 2032 | /* The GNU C library defines this for functions which it implements |
| 2033 | to always fail with ENOSYS. Some functions are actually named |
| 2034 | something starting with __ and the normal name is an alias. */ |
| 2035 | #if defined __stub_$2 || defined __stub___$2 |
| 2036 | choke me |
| 2037 | #endif |
| 2038 | |
| 2039 | int |
| 2040 | main () |
| 2041 | { |
| 2042 | return $2 (); |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
| 2047 | if ac_fn_c_try_link "$LINENO"; then : |
| 2048 | eval "$3=yes" |
| 2049 | else |
| 2050 | eval "$3=no" |
| 2051 | fi |
| 2052 | rm -f core conftest.err conftest.$ac_objext \ |
| 2053 | conftest$ac_exeext conftest.$ac_ext |
| 2054 | fi |
| 2055 | eval ac_res=\$$3 |
| 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2057 | $as_echo "$ac_res" >&6; } |
| 2058 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2059 | |
| 2060 | } # ac_fn_c_check_func |
| 2061 | |
| 2062 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2063 | # --------------------------------------------- |
| 2064 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2065 | # accordingly. |
| 2066 | ac_fn_c_check_decl () |
| 2067 | { |
| 2068 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2069 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2070 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2072 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2073 | if eval \${$3+:} false; then : |
| 2074 | $as_echo_n "(cached) " >&6 |
| 2075 | else |
| 2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2077 | /* end confdefs.h. */ |
| 2078 | $4 |
| 2079 | int |
| 2080 | main () |
| 2081 | { |
| 2082 | #ifndef $as_decl_name |
| 2083 | #ifdef __cplusplus |
| 2084 | (void) $as_decl_use; |
| 2085 | #else |
| 2086 | (void) $as_decl_name; |
| 2087 | #endif |
| 2088 | #endif |
| 2089 | |
| 2090 | ; |
| 2091 | return 0; |
| 2092 | } |
| 2093 | _ACEOF |
| 2094 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2095 | eval "$3=yes" |
| 2096 | else |
| 2097 | eval "$3=no" |
| 2098 | fi |
| 2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2100 | fi |
| 2101 | eval ac_res=\$$3 |
| 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2103 | $as_echo "$ac_res" >&6; } |
| 2104 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2105 | |
| 2106 | } # ac_fn_c_check_decl |
| 2107 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2108 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2109 | # -------------------------------------------- |
| 2110 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2111 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2112 | # computed |
| 2113 | ac_fn_c_compute_int () |
| 2114 | { |
| 2115 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2116 | if test "$cross_compiling" = yes; then |
| 2117 | # Depending upon the size, compute the lo and hi bounds. |
| 2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2119 | /* end confdefs.h. */ |
| 2120 | $4 |
| 2121 | int |
| 2122 | main () |
| 2123 | { |
| 2124 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2125 | test_array [0] = 0; |
| 2126 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2127 | |
| 2128 | ; |
| 2129 | return 0; |
| 2130 | } |
| 2131 | _ACEOF |
| 2132 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2133 | ac_lo=0 ac_mid=0 |
| 2134 | while :; do |
| 2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2136 | /* end confdefs.h. */ |
| 2137 | $4 |
| 2138 | int |
| 2139 | main () |
| 2140 | { |
| 2141 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2142 | test_array [0] = 0; |
| 2143 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2144 | |
| 2145 | ; |
| 2146 | return 0; |
| 2147 | } |
| 2148 | _ACEOF |
| 2149 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2150 | ac_hi=$ac_mid; break |
| 2151 | else |
| 2152 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2153 | if test $ac_lo -le $ac_mid; then |
| 2154 | ac_lo= ac_hi= |
| 2155 | break |
| 2156 | fi |
| 2157 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2158 | fi |
| 2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2160 | done |
| 2161 | else |
| 2162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2163 | /* end confdefs.h. */ |
| 2164 | $4 |
| 2165 | int |
| 2166 | main () |
| 2167 | { |
| 2168 | static int test_array [1 - 2 * !(($2) < 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2169 | test_array [0] = 0; |
| 2170 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2171 | |
| 2172 | ; |
| 2173 | return 0; |
| 2174 | } |
| 2175 | _ACEOF |
| 2176 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2177 | ac_hi=-1 ac_mid=-1 |
| 2178 | while :; do |
| 2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2180 | /* end confdefs.h. */ |
| 2181 | $4 |
| 2182 | int |
| 2183 | main () |
| 2184 | { |
| 2185 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2186 | test_array [0] = 0; |
| 2187 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2188 | |
| 2189 | ; |
| 2190 | return 0; |
| 2191 | } |
| 2192 | _ACEOF |
| 2193 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2194 | ac_lo=$ac_mid; break |
| 2195 | else |
| 2196 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2197 | if test $ac_mid -le $ac_hi; then |
| 2198 | ac_lo= ac_hi= |
| 2199 | break |
| 2200 | fi |
| 2201 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2202 | fi |
| 2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2204 | done |
| 2205 | else |
| 2206 | ac_lo= ac_hi= |
| 2207 | fi |
| 2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2209 | fi |
| 2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2211 | # Binary search between lo and hi bounds. |
| 2212 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2213 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2215 | /* end confdefs.h. */ |
| 2216 | $4 |
| 2217 | int |
| 2218 | main () |
| 2219 | { |
| 2220 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2221 | test_array [0] = 0; |
| 2222 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2223 | |
| 2224 | ; |
| 2225 | return 0; |
| 2226 | } |
| 2227 | _ACEOF |
| 2228 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2229 | ac_hi=$ac_mid |
| 2230 | else |
| 2231 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2232 | fi |
| 2233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2234 | done |
| 2235 | case $ac_lo in #(( |
| 2236 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2237 | '') ac_retval=1 ;; |
| 2238 | esac |
| 2239 | else |
| 2240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2241 | /* end confdefs.h. */ |
| 2242 | $4 |
| 2243 | static long int longval () { return $2; } |
| 2244 | static unsigned long int ulongval () { return $2; } |
| 2245 | #include <stdio.h> |
| 2246 | #include <stdlib.h> |
| 2247 | int |
| 2248 | main () |
| 2249 | { |
| 2250 | |
| 2251 | FILE *f = fopen ("conftest.val", "w"); |
| 2252 | if (! f) |
| 2253 | return 1; |
| 2254 | if (($2) < 0) |
| 2255 | { |
| 2256 | long int i = longval (); |
| 2257 | if (i != ($2)) |
| 2258 | return 1; |
| 2259 | fprintf (f, "%ld", i); |
| 2260 | } |
| 2261 | else |
| 2262 | { |
| 2263 | unsigned long int i = ulongval (); |
| 2264 | if (i != ($2)) |
| 2265 | return 1; |
| 2266 | fprintf (f, "%lu", i); |
| 2267 | } |
| 2268 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2269 | on some platforms. */ |
| 2270 | return ferror (f) || fclose (f) != 0; |
| 2271 | |
| 2272 | ; |
| 2273 | return 0; |
| 2274 | } |
| 2275 | _ACEOF |
| 2276 | if ac_fn_c_try_run "$LINENO"; then : |
| 2277 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2278 | else |
| 2279 | ac_retval=1 |
| 2280 | fi |
| 2281 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2282 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2283 | rm -f conftest.val |
| 2284 | |
| 2285 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2286 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2287 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2288 | |
| 2289 | } # ac_fn_c_compute_int |
| 2290 | |
| 2291 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2292 | # ---------------------------------------------------- |
| 2293 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2294 | # INCLUDES, setting cache variable VAR accordingly. |
| 2295 | ac_fn_c_check_member () |
| 2296 | { |
| 2297 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2299 | $as_echo_n "checking for $2.$3... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2300 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2301 | $as_echo_n "(cached) " >&6 |
| 2302 | else |
| 2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2304 | /* end confdefs.h. */ |
| 2305 | $5 |
| 2306 | int |
| 2307 | main () |
| 2308 | { |
| 2309 | static $2 ac_aggr; |
| 2310 | if (ac_aggr.$3) |
| 2311 | return 0; |
| 2312 | ; |
| 2313 | return 0; |
| 2314 | } |
| 2315 | _ACEOF |
| 2316 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2317 | eval "$4=yes" |
| 2318 | else |
| 2319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2320 | /* end confdefs.h. */ |
| 2321 | $5 |
| 2322 | int |
| 2323 | main () |
| 2324 | { |
| 2325 | static $2 ac_aggr; |
| 2326 | if (sizeof ac_aggr.$3) |
| 2327 | return 0; |
| 2328 | ; |
| 2329 | return 0; |
| 2330 | } |
| 2331 | _ACEOF |
| 2332 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2333 | eval "$4=yes" |
| 2334 | else |
| 2335 | eval "$4=no" |
| 2336 | fi |
| 2337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2338 | fi |
| 2339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2340 | fi |
| 2341 | eval ac_res=\$$4 |
| 2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2343 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2344 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2345 | |
| 2346 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2347 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2348 | This file contains any messages produced by compilers while |
| 2349 | running configure, to aid debugging if configure makes a mistake. |
| 2350 | |
| 2351 | It was created by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2352 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2353 | |
| 2354 | $ $0 $@ |
| 2355 | |
| 2356 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2357 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2358 | { |
| 2359 | cat <<_ASUNAME |
| 2360 | ## --------- ## |
| 2361 | ## Platform. ## |
| 2362 | ## --------- ## |
| 2363 | |
| 2364 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2365 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2366 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2367 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2368 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2369 | |
| 2370 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2371 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2372 | |
| 2373 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2374 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2375 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2376 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2377 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2378 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2379 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2380 | |
| 2381 | _ASUNAME |
| 2382 | |
| 2383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2384 | for as_dir in $PATH |
| 2385 | do |
| 2386 | IFS=$as_save_IFS |
| 2387 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2388 | $as_echo "PATH: $as_dir" |
| 2389 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2390 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2391 | |
| 2392 | } >&5 |
| 2393 | |
| 2394 | cat >&5 <<_ACEOF |
| 2395 | |
| 2396 | |
| 2397 | ## ----------- ## |
| 2398 | ## Core tests. ## |
| 2399 | ## ----------- ## |
| 2400 | |
| 2401 | _ACEOF |
| 2402 | |
| 2403 | |
| 2404 | # Keep a trace of the command line. |
| 2405 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2406 | # Strip out --silent because we don't want to record it for future runs. |
| 2407 | # Also quote any args containing shell meta-characters. |
| 2408 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2409 | ac_configure_args= |
| 2410 | ac_configure_args0= |
| 2411 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2412 | ac_must_keep_next=false |
| 2413 | for ac_pass in 1 2 |
| 2414 | do |
| 2415 | for ac_arg |
| 2416 | do |
| 2417 | case $ac_arg in |
| 2418 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2419 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2420 | | -silent | --silent | --silen | --sile | --sil) |
| 2421 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2422 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2423 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2424 | esac |
| 2425 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2426 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2427 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2428 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2429 | if test $ac_must_keep_next = true; then |
| 2430 | ac_must_keep_next=false # Got value, back to normal. |
| 2431 | else |
| 2432 | case $ac_arg in |
| 2433 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2434 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2435 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2436 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2437 | case "$ac_configure_args0 " in |
| 2438 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2439 | esac |
| 2440 | ;; |
| 2441 | -* ) ac_must_keep_next=true ;; |
| 2442 | esac |
| 2443 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2444 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2445 | ;; |
| 2446 | esac |
| 2447 | done |
| 2448 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2449 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2450 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2451 | |
| 2452 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2453 | # config.log. We remove comments because anyway the quotes in there |
| 2454 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2455 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2456 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2457 | trap 'exit_status=$? |
| 2458 | # Save into config.log some information that might help in debugging. |
| 2459 | { |
| 2460 | echo |
| 2461 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2462 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | ## Cache variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2464 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2465 | echo |
| 2466 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2467 | ( |
| 2468 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2469 | eval ac_val=\$$ac_var |
| 2470 | case $ac_val in #( |
| 2471 | *${as_nl}*) |
| 2472 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2473 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2474 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2475 | esac |
| 2476 | case $ac_var in #( |
| 2477 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2478 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2479 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2480 | esac ;; |
| 2481 | esac |
| 2482 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2483 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2484 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2485 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2487 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2488 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2489 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2490 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2491 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2492 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2493 | esac | |
| 2494 | sort |
| 2495 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2496 | echo |
| 2497 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2498 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2499 | ## Output variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2500 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2501 | echo |
| 2502 | for ac_var in $ac_subst_vars |
| 2503 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2504 | eval ac_val=\$$ac_var |
| 2505 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2506 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2508 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2509 | done | sort |
| 2510 | echo |
| 2511 | |
| 2512 | if test -n "$ac_subst_files"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2513 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | ## File substitutions. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2515 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2516 | echo |
| 2517 | for ac_var in $ac_subst_files |
| 2518 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | eval ac_val=\$$ac_var |
| 2520 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2521 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2522 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2523 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2524 | done | sort |
| 2525 | echo |
| 2526 | fi |
| 2527 | |
| 2528 | if test -s confdefs.h; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2529 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2530 | ## confdefs.h. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2531 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2532 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2533 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2534 | echo |
| 2535 | fi |
| 2536 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2537 | $as_echo "$as_me: caught signal $ac_signal" |
| 2538 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2539 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2540 | rm -f core *.core core.conftest.* && |
| 2541 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2542 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2543 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2544 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2545 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2546 | done |
| 2547 | ac_signal=0 |
| 2548 | |
| 2549 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2551 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2552 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2553 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2554 | # Predefined preprocessor variables. |
| 2555 | |
| 2556 | cat >>confdefs.h <<_ACEOF |
| 2557 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2558 | _ACEOF |
| 2559 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2560 | cat >>confdefs.h <<_ACEOF |
| 2561 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2562 | _ACEOF |
| 2563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2564 | cat >>confdefs.h <<_ACEOF |
| 2565 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2566 | _ACEOF |
| 2567 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2568 | cat >>confdefs.h <<_ACEOF |
| 2569 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2570 | _ACEOF |
| 2571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2572 | cat >>confdefs.h <<_ACEOF |
| 2573 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2574 | _ACEOF |
| 2575 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2576 | cat >>confdefs.h <<_ACEOF |
| 2577 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2578 | _ACEOF |
| 2579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2580 | |
| 2581 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2582 | # Prefer an explicitly selected file to automatically selected ones. |
| 2583 | ac_site_file1=NONE |
| 2584 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2585 | if test -n "$CONFIG_SITE"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2586 | # We do not want a PATH search for config.site. |
| 2587 | case $CONFIG_SITE in #(( |
| 2588 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2589 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2590 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2591 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2592 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2593 | ac_site_file1=$prefix/share/config.site |
| 2594 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2595 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2596 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2597 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2598 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2599 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2600 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2601 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2602 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2604 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2605 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2606 | . "$ac_site_file" \ |
| 2607 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2609 | as_fn_error $? "failed to load site script $ac_site_file |
| 2610 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2611 | fi |
| 2612 | done |
| 2613 | |
| 2614 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2615 | # Some versions of bash will fail to source /dev/null (special files |
| 2616 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2617 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2619 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2620 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2621 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2622 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2623 | esac |
| 2624 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2625 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2627 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2628 | >$cache_file |
| 2629 | fi |
| 2630 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2631 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2632 | as_fn_append ac_header_list " stdlib.h" |
| 2633 | as_fn_append ac_header_list " unistd.h" |
| 2634 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2635 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2636 | # Check that the precious variables saved in the cache have kept the same |
| 2637 | # value. |
| 2638 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2639 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2640 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2641 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2642 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2643 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2644 | case $ac_old_set,$ac_new_set in |
| 2645 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2647 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2648 | ac_cache_corrupted=: ;; |
| 2649 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2651 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2652 | ac_cache_corrupted=: ;; |
| 2653 | ,);; |
| 2654 | *) |
| 2655 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2656 | # differences in whitespace do not lead to failure. |
| 2657 | ac_old_val_w=`echo x $ac_old_val` |
| 2658 | ac_new_val_w=`echo x $ac_new_val` |
| 2659 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2661 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2662 | ac_cache_corrupted=: |
| 2663 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2665 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2666 | eval $ac_var=\$ac_old_val |
| 2667 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2669 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2671 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2672 | fi;; |
| 2673 | esac |
| 2674 | # Pass precious variables to config.status. |
| 2675 | if test "$ac_new_set" = set; then |
| 2676 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2677 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2678 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2679 | esac |
| 2680 | case " $ac_configure_args " in |
| 2681 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2682 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2683 | esac |
| 2684 | fi |
| 2685 | done |
| 2686 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2690 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2691 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2692 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2693 | ## -------------------- ## |
| 2694 | ## Main body of script. ## |
| 2695 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2696 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2697 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2698 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2702 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2703 | |
| 2704 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2705 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2706 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2707 | if test -f "$ac_dir/install-sh"; then |
| 2708 | ac_aux_dir=$ac_dir |
| 2709 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2710 | break |
| 2711 | elif test -f "$ac_dir/install.sh"; then |
| 2712 | ac_aux_dir=$ac_dir |
| 2713 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2714 | break |
| 2715 | elif test -f "$ac_dir/shtool"; then |
| 2716 | ac_aux_dir=$ac_dir |
| 2717 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2718 | break |
| 2719 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2720 | done |
| 2721 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2722 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2723 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2724 | |
| 2725 | # These three variables are undocumented and unsupported, |
| 2726 | # and are intended to be withdrawn in a future Autoconf release. |
| 2727 | # They can cause serious problems if a builder's source tree is in a directory |
| 2728 | # whose full name contains unusual characters. |
| 2729 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2730 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2731 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2732 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2733 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2734 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2735 | |
| 2736 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2737 | MCONFIG=./MCONFIG |
| 2738 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2739 | BINARY_TYPE=bin |
| 2740 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2741 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2742 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2743 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2744 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2745 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2746 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2747 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2748 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2749 | E2FSPROGS_YEAR=$YEAR |
| 2750 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2751 | E2FSPROGS_YEAR=19$YEAR |
| 2752 | else |
| 2753 | E2FSPROGS_YEAR=20$YEAR |
| 2754 | fi |
| 2755 | |
| 2756 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2757 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2758 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2759 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2760 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2761 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2762 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2763 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2764 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2765 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2766 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2767 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2768 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2769 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2770 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2771 | esac |
| 2772 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2773 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2774 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2775 | |
| 2776 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2777 | |
| 2778 | case $E2FSPROGS_VERSION in |
| 2779 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2780 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2781 | ;; |
| 2782 | *) |
| 2783 | E2FSPROGS_PKGVER="$base_ver" |
| 2784 | ;; |
| 2785 | esac |
| 2786 | |
| 2787 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2789 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2791 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2792 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2793 | |
| 2794 | |
| 2795 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2796 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2797 | WITH_DIET_LIBC= |
| 2798 | |
| 2799 | # Check whether --with-diet-libc was given. |
| 2800 | if test "${with_diet_libc+set}" = set; then : |
| 2801 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2802 | WITH_DIET_LIBC=yes |
| 2803 | if test -z "$LIBS" |
| 2804 | then |
| 2805 | LIBS="-lcompat" |
| 2806 | else |
| 2807 | LIBS="$LIBS -lcompat" |
| 2808 | fi |
| 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2810 | $as_echo "CC=$CC" >&6; } |
| 2811 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2812 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2813 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2814 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2815 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2817 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2818 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2819 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2820 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2821 | ac_build_alias=$build_alias |
| 2822 | test "x$ac_build_alias" = x && |
| 2823 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2824 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2825 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2826 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2827 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2829 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2831 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2832 | case $ac_cv_build in |
| 2833 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2834 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2835 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2836 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2837 | ac_save_IFS=$IFS; IFS='-' |
| 2838 | set x $ac_cv_build |
| 2839 | shift |
| 2840 | build_cpu=$1 |
| 2841 | build_vendor=$2 |
| 2842 | shift; shift |
| 2843 | # Remember, the first character of IFS is used to create $*, |
| 2844 | # except with old shells: |
| 2845 | build_os=$* |
| 2846 | IFS=$ac_save_IFS |
| 2847 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2848 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2849 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2851 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2852 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2853 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2854 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2855 | if test "x$host_alias" = x; then |
| 2856 | ac_cv_host=$ac_cv_build |
| 2857 | else |
| 2858 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2859 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2860 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2861 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2862 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2864 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2865 | case $ac_cv_host in |
| 2866 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2867 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2868 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2869 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | ac_save_IFS=$IFS; IFS='-' |
| 2871 | set x $ac_cv_host |
| 2872 | shift |
| 2873 | host_cpu=$1 |
| 2874 | host_vendor=$2 |
| 2875 | shift; shift |
| 2876 | # Remember, the first character of IFS is used to create $*, |
| 2877 | # except with old shells: |
| 2878 | host_os=$* |
| 2879 | IFS=$ac_save_IFS |
| 2880 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2881 | |
| 2882 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2883 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2884 | ac_ext=c |
| 2885 | ac_cpp='$CPP $CPPFLAGS' |
| 2886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2889 | if test -n "$ac_tool_prefix"; then |
| 2890 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2891 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2893 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2894 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2895 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2896 | else |
| 2897 | if test -n "$CC"; then |
| 2898 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2899 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2901 | for as_dir in $PATH |
| 2902 | do |
| 2903 | IFS=$as_save_IFS |
| 2904 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2905 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2907 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2909 | break 2 |
| 2910 | fi |
| 2911 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2912 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2914 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2915 | fi |
| 2916 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2918 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2920 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2921 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2923 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2924 | fi |
| 2925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2927 | fi |
| 2928 | if test -z "$ac_cv_prog_CC"; then |
| 2929 | ac_ct_CC=$CC |
| 2930 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2931 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2933 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2934 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2935 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | else |
| 2937 | if test -n "$ac_ct_CC"; then |
| 2938 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2939 | else |
| 2940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2941 | for as_dir in $PATH |
| 2942 | do |
| 2943 | IFS=$as_save_IFS |
| 2944 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2945 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2947 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2949 | break 2 |
| 2950 | fi |
| 2951 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2952 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2953 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | |
| 2955 | fi |
| 2956 | fi |
| 2957 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2958 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2960 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2961 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2963 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2964 | fi |
| 2965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2966 | if test "x$ac_ct_CC" = x; then |
| 2967 | CC="" |
| 2968 | else |
| 2969 | case $cross_compiling:$ac_tool_warned in |
| 2970 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2972 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2973 | ac_tool_warned=yes ;; |
| 2974 | esac |
| 2975 | CC=$ac_ct_CC |
| 2976 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2977 | else |
| 2978 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2979 | fi |
| 2980 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2981 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2982 | if test -n "$ac_tool_prefix"; then |
| 2983 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2984 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2986 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2987 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2988 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2989 | else |
| 2990 | if test -n "$CC"; then |
| 2991 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2992 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2994 | for as_dir in $PATH |
| 2995 | do |
| 2996 | IFS=$as_save_IFS |
| 2997 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3000 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3002 | break 2 |
| 3003 | fi |
| 3004 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3005 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3006 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | |
| 3008 | fi |
| 3009 | fi |
| 3010 | CC=$ac_cv_prog_CC |
| 3011 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3013 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3014 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3016 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3017 | fi |
| 3018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3019 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3020 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | fi |
| 3022 | if test -z "$CC"; then |
| 3023 | # Extract the first word of "cc", so it can be a program name with args. |
| 3024 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3026 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3027 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3028 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3029 | else |
| 3030 | if test -n "$CC"; then |
| 3031 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3032 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3033 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3035 | for as_dir in $PATH |
| 3036 | do |
| 3037 | IFS=$as_save_IFS |
| 3038 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3039 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3042 | ac_prog_rejected=yes |
| 3043 | continue |
| 3044 | fi |
| 3045 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3047 | break 2 |
| 3048 | fi |
| 3049 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3050 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3051 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3052 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3053 | if test $ac_prog_rejected = yes; then |
| 3054 | # We found a bogon in the path, so make sure we never use it. |
| 3055 | set dummy $ac_cv_prog_CC |
| 3056 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3057 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3058 | # We chose a different compiler from the bogus one. |
| 3059 | # However, it has the same basename, so the bogon will be chosen |
| 3060 | # first if we set CC to just the basename; use the full file name. |
| 3061 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3062 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3063 | fi |
| 3064 | fi |
| 3065 | fi |
| 3066 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3067 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3068 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3070 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3071 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3073 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3076 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3077 | fi |
| 3078 | if test -z "$CC"; then |
| 3079 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3080 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3081 | do |
| 3082 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3083 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3085 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3086 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3087 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3088 | else |
| 3089 | if test -n "$CC"; then |
| 3090 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3091 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3093 | for as_dir in $PATH |
| 3094 | do |
| 3095 | IFS=$as_save_IFS |
| 3096 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3097 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3099 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3101 | break 2 |
| 3102 | fi |
| 3103 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3104 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3105 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3107 | fi |
| 3108 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3109 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3110 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3112 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3113 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3115 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3116 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3117 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3118 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3119 | test -n "$CC" && break |
| 3120 | done |
| 3121 | fi |
| 3122 | if test -z "$CC"; then |
| 3123 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3124 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3125 | do |
| 3126 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3127 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3129 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3130 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3131 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3132 | else |
| 3133 | if test -n "$ac_ct_CC"; then |
| 3134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3135 | else |
| 3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3137 | for as_dir in $PATH |
| 3138 | do |
| 3139 | IFS=$as_save_IFS |
| 3140 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3143 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3145 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3146 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3148 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3149 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3150 | |
| 3151 | fi |
| 3152 | fi |
| 3153 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3154 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3156 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3157 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3159 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3160 | fi |
| 3161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3162 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3163 | test -n "$ac_ct_CC" && break |
| 3164 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3165 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3166 | if test "x$ac_ct_CC" = x; then |
| 3167 | CC="" |
| 3168 | else |
| 3169 | case $cross_compiling:$ac_tool_warned in |
| 3170 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3172 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3173 | ac_tool_warned=yes ;; |
| 3174 | esac |
| 3175 | CC=$ac_ct_CC |
| 3176 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3177 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3178 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3179 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3180 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3181 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3182 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3184 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3185 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3186 | |
| 3187 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3188 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3189 | set X $ac_compile |
| 3190 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3191 | for ac_option in --version -v -V -qversion; do |
| 3192 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3193 | case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3197 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3198 | $as_echo "$ac_try_echo"; } >&5 |
| 3199 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3200 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3201 | if test -s conftest.err; then |
| 3202 | sed '10a\ |
| 3203 | ... rest of stderr output deleted ... |
| 3204 | 10q' conftest.err >conftest.er1 |
| 3205 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3206 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3207 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3209 | test $ac_status = 0; } |
| 3210 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3211 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3213 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3215 | int |
| 3216 | main () |
| 3217 | { |
| 3218 | |
| 3219 | ; |
| 3220 | return 0; |
| 3221 | } |
| 3222 | _ACEOF |
| 3223 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3224 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3225 | # Try to create an executable without -o first, disregard a.out. |
| 3226 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3227 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3229 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3230 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3231 | |
| 3232 | # The possible output files: |
| 3233 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3234 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3235 | ac_rmfiles= |
| 3236 | for ac_file in $ac_files |
| 3237 | do |
| 3238 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3240 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3241 | esac |
| 3242 | done |
| 3243 | rm -f $ac_rmfiles |
| 3244 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3245 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3246 | case "(($ac_try" in |
| 3247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3248 | *) ac_try_echo=$ac_try;; |
| 3249 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3250 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3251 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3252 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3253 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3255 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3256 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3257 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3258 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3259 | # so that the user can short-circuit this test for compilers unknown to |
| 3260 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3261 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3262 | do |
| 3263 | test -f "$ac_file" || continue |
| 3264 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3265 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3266 | ;; |
| 3267 | [ab].out ) |
| 3268 | # We found the default executable, but exeext='' is most |
| 3269 | # certainly right. |
| 3270 | break;; |
| 3271 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3272 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3273 | then :; else |
| 3274 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3275 | fi |
| 3276 | # We set ac_cv_exeext here because the later test for it is not |
| 3277 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3278 | # argument, so we may need to know it at that point already. |
| 3279 | # Even if this section looks crufty: it has the advantage of |
| 3280 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3281 | break;; |
| 3282 | * ) |
| 3283 | break;; |
| 3284 | esac |
| 3285 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3286 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3288 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3289 | ac_file='' |
| 3290 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3291 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3293 | $as_echo "no" >&6; } |
| 3294 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3296 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3299 | as_fn_error 77 "C compiler cannot create executables |
| 3300 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3301 | else |
| 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3303 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3304 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3306 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3308 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3309 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3310 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3311 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3312 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3314 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3315 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3316 | case "(($ac_try" in |
| 3317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3318 | *) ac_try_echo=$ac_try;; |
| 3319 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3320 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3321 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3322 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3323 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3325 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3326 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3327 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3328 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3329 | # `rm'. |
| 3330 | for ac_file in conftest.exe conftest conftest.*; do |
| 3331 | test -f "$ac_file" || continue |
| 3332 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3333 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3334 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3335 | break;; |
| 3336 | * ) break;; |
| 3337 | esac |
| 3338 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3339 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3340 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3342 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3343 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3344 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3345 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3347 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3348 | |
| 3349 | rm -f conftest.$ac_ext |
| 3350 | EXEEXT=$ac_cv_exeext |
| 3351 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3353 | /* end confdefs.h. */ |
| 3354 | #include <stdio.h> |
| 3355 | int |
| 3356 | main () |
| 3357 | { |
| 3358 | FILE *f = fopen ("conftest.out", "w"); |
| 3359 | return ferror (f) || fclose (f) != 0; |
| 3360 | |
| 3361 | ; |
| 3362 | return 0; |
| 3363 | } |
| 3364 | _ACEOF |
| 3365 | ac_clean_files="$ac_clean_files conftest.out" |
| 3366 | # Check that the compiler produces executables we can run. If not, either |
| 3367 | # the compiler is broken, or we cross compile. |
| 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3369 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3370 | if test "$cross_compiling" != yes; then |
| 3371 | { { ac_try="$ac_link" |
| 3372 | case "(($ac_try" in |
| 3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3374 | *) ac_try_echo=$ac_try;; |
| 3375 | esac |
| 3376 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3377 | $as_echo "$ac_try_echo"; } >&5 |
| 3378 | (eval "$ac_link") 2>&5 |
| 3379 | ac_status=$? |
| 3380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3381 | test $ac_status = 0; } |
| 3382 | if { ac_try='./conftest$ac_cv_exeext' |
| 3383 | { { case "(($ac_try" in |
| 3384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3385 | *) ac_try_echo=$ac_try;; |
| 3386 | esac |
| 3387 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3388 | $as_echo "$ac_try_echo"; } >&5 |
| 3389 | (eval "$ac_try") 2>&5 |
| 3390 | ac_status=$? |
| 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3392 | test $ac_status = 0; }; }; then |
| 3393 | cross_compiling=no |
| 3394 | else |
| 3395 | if test "$cross_compiling" = maybe; then |
| 3396 | cross_compiling=yes |
| 3397 | else |
| 3398 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3399 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3400 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3401 | If you meant to cross compile, use \`--host'. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3402 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3403 | fi |
| 3404 | fi |
| 3405 | fi |
| 3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3407 | $as_echo "$cross_compiling" >&6; } |
| 3408 | |
| 3409 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3410 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3412 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3413 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3414 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3415 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3417 | /* end confdefs.h. */ |
| 3418 | |
| 3419 | int |
| 3420 | main () |
| 3421 | { |
| 3422 | |
| 3423 | ; |
| 3424 | return 0; |
| 3425 | } |
| 3426 | _ACEOF |
| 3427 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3428 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3429 | case "(($ac_try" in |
| 3430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3431 | *) ac_try_echo=$ac_try;; |
| 3432 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3434 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3435 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3436 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3438 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3439 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3440 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3441 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3442 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3443 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3444 | break;; |
| 3445 | esac |
| 3446 | done |
| 3447 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3448 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3450 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3453 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3454 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3455 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3456 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3457 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3459 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3460 | OBJEXT=$ac_cv_objext |
| 3461 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3463 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3464 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3465 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3466 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3468 | /* end confdefs.h. */ |
| 3469 | |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
| 3473 | #ifndef __GNUC__ |
| 3474 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3475 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3476 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3477 | ; |
| 3478 | return 0; |
| 3479 | } |
| 3480 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3481 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3482 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3483 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3484 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3488 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3489 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3491 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3492 | if test $ac_compiler_gnu = yes; then |
| 3493 | GCC=yes |
| 3494 | else |
| 3495 | GCC= |
| 3496 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3497 | ac_test_CFLAGS=${CFLAGS+set} |
| 3498 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3500 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3501 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3502 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3503 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3504 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3505 | ac_c_werror_flag=yes |
| 3506 | ac_cv_prog_cc_g=no |
| 3507 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3509 | /* end confdefs.h. */ |
| 3510 | |
| 3511 | int |
| 3512 | main () |
| 3513 | { |
| 3514 | |
| 3515 | ; |
| 3516 | return 0; |
| 3517 | } |
| 3518 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3519 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3520 | ac_cv_prog_cc_g=yes |
| 3521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3522 | CFLAGS="" |
| 3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3524 | /* end confdefs.h. */ |
| 3525 | |
| 3526 | int |
| 3527 | main () |
| 3528 | { |
| 3529 | |
| 3530 | ; |
| 3531 | return 0; |
| 3532 | } |
| 3533 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3534 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3535 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3536 | else |
| 3537 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3538 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3540 | /* end confdefs.h. */ |
| 3541 | |
| 3542 | int |
| 3543 | main () |
| 3544 | { |
| 3545 | |
| 3546 | ; |
| 3547 | return 0; |
| 3548 | } |
| 3549 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3550 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3551 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3552 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3554 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3556 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3558 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3559 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3561 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3562 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3563 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3564 | elif test $ac_cv_prog_cc_g = yes; then |
| 3565 | if test "$GCC" = yes; then |
| 3566 | CFLAGS="-g -O2" |
| 3567 | else |
| 3568 | CFLAGS="-g" |
| 3569 | fi |
| 3570 | else |
| 3571 | if test "$GCC" = yes; then |
| 3572 | CFLAGS="-O2" |
| 3573 | else |
| 3574 | CFLAGS= |
| 3575 | fi |
| 3576 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3578 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3579 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3580 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3581 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3582 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3583 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | /* end confdefs.h. */ |
| 3586 | #include <stdarg.h> |
| 3587 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3588 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3590 | struct buf { int x; }; |
| 3591 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3592 | static char *e (p, i) |
| 3593 | char **p; |
| 3594 | int i; |
| 3595 | { |
| 3596 | return p[i]; |
| 3597 | } |
| 3598 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3599 | { |
| 3600 | char *s; |
| 3601 | va_list v; |
| 3602 | va_start (v,p); |
| 3603 | s = g (p, va_arg (v,int)); |
| 3604 | va_end (v); |
| 3605 | return s; |
| 3606 | } |
| 3607 | |
| 3608 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3609 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3610 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3611 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3612 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3613 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3614 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3615 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3617 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3618 | inside strings and character constants. */ |
| 3619 | #define FOO(x) 'x' |
| 3620 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3621 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3622 | int test (int i, double x); |
| 3623 | struct s1 {int (*f) (int a);}; |
| 3624 | struct s2 {int (*f) (double a);}; |
| 3625 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3626 | int argc; |
| 3627 | char **argv; |
| 3628 | int |
| 3629 | main () |
| 3630 | { |
| 3631 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3632 | ; |
| 3633 | return 0; |
| 3634 | } |
| 3635 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3636 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3637 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3638 | do |
| 3639 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3640 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3641 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3642 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3643 | rm -f core conftest.err conftest.$ac_objext |
| 3644 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3645 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3646 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3647 | CC=$ac_save_CC |
| 3648 | |
| 3649 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3650 | # AC_CACHE_VAL |
| 3651 | case "x$ac_cv_prog_cc_c89" in |
| 3652 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3654 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3655 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3657 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3658 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3659 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3661 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3662 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3663 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3664 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3665 | fi |
| 3666 | |
| 3667 | ac_ext=c |
| 3668 | ac_cpp='$CPP $CPPFLAGS' |
| 3669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3672 | |
| 3673 | |
| 3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3675 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3676 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3677 | $as_echo_n "(cached) " >&6 |
| 3678 | else |
| 3679 | ac_check_lib_save_LIBS=$LIBS |
| 3680 | LIBS="-ldl $LIBS" |
| 3681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3682 | /* end confdefs.h. */ |
| 3683 | |
| 3684 | /* Override any GCC internal prototype to avoid an error. |
| 3685 | Use char because int might match the return type of a GCC |
| 3686 | builtin and then its argument prototype would still apply. */ |
| 3687 | #ifdef __cplusplus |
| 3688 | extern "C" |
| 3689 | #endif |
| 3690 | char dlopen (); |
| 3691 | int |
| 3692 | main () |
| 3693 | { |
| 3694 | return dlopen (); |
| 3695 | ; |
| 3696 | return 0; |
| 3697 | } |
| 3698 | _ACEOF |
| 3699 | if ac_fn_c_try_link "$LINENO"; then : |
| 3700 | ac_cv_lib_dl_dlopen=yes |
| 3701 | else |
| 3702 | ac_cv_lib_dl_dlopen=no |
| 3703 | fi |
| 3704 | rm -f core conftest.err conftest.$ac_objext \ |
| 3705 | conftest$ac_exeext conftest.$ac_ext |
| 3706 | LIBS=$ac_check_lib_save_LIBS |
| 3707 | fi |
| 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3709 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3710 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3711 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3712 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3713 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3714 | |
| 3715 | fi |
| 3716 | |
| 3717 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3718 | |
| 3719 | # Check whether --with-cc was given. |
| 3720 | if test "${with_cc+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3721 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3722 | fi |
| 3723 | |
| 3724 | |
| 3725 | # Check whether --with-ccopts was given. |
| 3726 | if test "${with_ccopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3727 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3728 | fi |
| 3729 | |
| 3730 | |
| 3731 | # Check whether --with-ldopts was given. |
| 3732 | if test "${with_ldopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3733 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3734 | fi |
| 3735 | |
| 3736 | ac_ext=c |
| 3737 | ac_cpp='$CPP $CPPFLAGS' |
| 3738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3741 | if test -n "$ac_tool_prefix"; then |
| 3742 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3743 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3745 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3746 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3747 | $as_echo_n "(cached) " >&6 |
| 3748 | else |
| 3749 | if test -n "$CC"; then |
| 3750 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3751 | else |
| 3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3753 | for as_dir in $PATH |
| 3754 | do |
| 3755 | IFS=$as_save_IFS |
| 3756 | test -z "$as_dir" && as_dir=. |
| 3757 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3759 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3761 | break 2 |
| 3762 | fi |
| 3763 | done |
| 3764 | done |
| 3765 | IFS=$as_save_IFS |
| 3766 | |
| 3767 | fi |
| 3768 | fi |
| 3769 | CC=$ac_cv_prog_CC |
| 3770 | if test -n "$CC"; then |
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3772 | $as_echo "$CC" >&6; } |
| 3773 | else |
| 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3775 | $as_echo "no" >&6; } |
| 3776 | fi |
| 3777 | |
| 3778 | |
| 3779 | fi |
| 3780 | if test -z "$ac_cv_prog_CC"; then |
| 3781 | ac_ct_CC=$CC |
| 3782 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3783 | set dummy gcc; ac_word=$2 |
| 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3785 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3786 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3787 | $as_echo_n "(cached) " >&6 |
| 3788 | else |
| 3789 | if test -n "$ac_ct_CC"; then |
| 3790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3791 | else |
| 3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3793 | for as_dir in $PATH |
| 3794 | do |
| 3795 | IFS=$as_save_IFS |
| 3796 | test -z "$as_dir" && as_dir=. |
| 3797 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3799 | ac_cv_prog_ac_ct_CC="gcc" |
| 3800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3801 | break 2 |
| 3802 | fi |
| 3803 | done |
| 3804 | done |
| 3805 | IFS=$as_save_IFS |
| 3806 | |
| 3807 | fi |
| 3808 | fi |
| 3809 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3810 | if test -n "$ac_ct_CC"; then |
| 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3812 | $as_echo "$ac_ct_CC" >&6; } |
| 3813 | else |
| 3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3815 | $as_echo "no" >&6; } |
| 3816 | fi |
| 3817 | |
| 3818 | if test "x$ac_ct_CC" = x; then |
| 3819 | CC="" |
| 3820 | else |
| 3821 | case $cross_compiling:$ac_tool_warned in |
| 3822 | yes:) |
| 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3824 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3825 | ac_tool_warned=yes ;; |
| 3826 | esac |
| 3827 | CC=$ac_ct_CC |
| 3828 | fi |
| 3829 | else |
| 3830 | CC="$ac_cv_prog_CC" |
| 3831 | fi |
| 3832 | |
| 3833 | if test -z "$CC"; then |
| 3834 | if test -n "$ac_tool_prefix"; then |
| 3835 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3836 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3838 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3839 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3840 | $as_echo_n "(cached) " >&6 |
| 3841 | else |
| 3842 | if test -n "$CC"; then |
| 3843 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3844 | else |
| 3845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3846 | for as_dir in $PATH |
| 3847 | do |
| 3848 | IFS=$as_save_IFS |
| 3849 | test -z "$as_dir" && as_dir=. |
| 3850 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3852 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3854 | break 2 |
| 3855 | fi |
| 3856 | done |
| 3857 | done |
| 3858 | IFS=$as_save_IFS |
| 3859 | |
| 3860 | fi |
| 3861 | fi |
| 3862 | CC=$ac_cv_prog_CC |
| 3863 | if test -n "$CC"; then |
| 3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3865 | $as_echo "$CC" >&6; } |
| 3866 | else |
| 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3868 | $as_echo "no" >&6; } |
| 3869 | fi |
| 3870 | |
| 3871 | |
| 3872 | fi |
| 3873 | fi |
| 3874 | if test -z "$CC"; then |
| 3875 | # Extract the first word of "cc", so it can be a program name with args. |
| 3876 | set dummy cc; ac_word=$2 |
| 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3878 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3879 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3880 | $as_echo_n "(cached) " >&6 |
| 3881 | else |
| 3882 | if test -n "$CC"; then |
| 3883 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3884 | else |
| 3885 | ac_prog_rejected=no |
| 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3893 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3894 | ac_prog_rejected=yes |
| 3895 | continue |
| 3896 | fi |
| 3897 | ac_cv_prog_CC="cc" |
| 3898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3899 | break 2 |
| 3900 | fi |
| 3901 | done |
| 3902 | done |
| 3903 | IFS=$as_save_IFS |
| 3904 | |
| 3905 | if test $ac_prog_rejected = yes; then |
| 3906 | # We found a bogon in the path, so make sure we never use it. |
| 3907 | set dummy $ac_cv_prog_CC |
| 3908 | shift |
| 3909 | if test $# != 0; then |
| 3910 | # We chose a different compiler from the bogus one. |
| 3911 | # However, it has the same basename, so the bogon will be chosen |
| 3912 | # first if we set CC to just the basename; use the full file name. |
| 3913 | shift |
| 3914 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3915 | fi |
| 3916 | fi |
| 3917 | fi |
| 3918 | fi |
| 3919 | CC=$ac_cv_prog_CC |
| 3920 | if test -n "$CC"; then |
| 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3922 | $as_echo "$CC" >&6; } |
| 3923 | else |
| 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3925 | $as_echo "no" >&6; } |
| 3926 | fi |
| 3927 | |
| 3928 | |
| 3929 | fi |
| 3930 | if test -z "$CC"; then |
| 3931 | if test -n "$ac_tool_prefix"; then |
| 3932 | for ac_prog in cl.exe |
| 3933 | do |
| 3934 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3935 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3937 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3938 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3939 | $as_echo_n "(cached) " >&6 |
| 3940 | else |
| 3941 | if test -n "$CC"; then |
| 3942 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3943 | else |
| 3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3945 | for as_dir in $PATH |
| 3946 | do |
| 3947 | IFS=$as_save_IFS |
| 3948 | test -z "$as_dir" && as_dir=. |
| 3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3951 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3953 | break 2 |
| 3954 | fi |
| 3955 | done |
| 3956 | done |
| 3957 | IFS=$as_save_IFS |
| 3958 | |
| 3959 | fi |
| 3960 | fi |
| 3961 | CC=$ac_cv_prog_CC |
| 3962 | if test -n "$CC"; then |
| 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3964 | $as_echo "$CC" >&6; } |
| 3965 | else |
| 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3967 | $as_echo "no" >&6; } |
| 3968 | fi |
| 3969 | |
| 3970 | |
| 3971 | test -n "$CC" && break |
| 3972 | done |
| 3973 | fi |
| 3974 | if test -z "$CC"; then |
| 3975 | ac_ct_CC=$CC |
| 3976 | for ac_prog in cl.exe |
| 3977 | do |
| 3978 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3979 | set dummy $ac_prog; ac_word=$2 |
| 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3981 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3982 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3983 | $as_echo_n "(cached) " >&6 |
| 3984 | else |
| 3985 | if test -n "$ac_ct_CC"; then |
| 3986 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3987 | else |
| 3988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3989 | for as_dir in $PATH |
| 3990 | do |
| 3991 | IFS=$as_save_IFS |
| 3992 | test -z "$as_dir" && as_dir=. |
| 3993 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3995 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3997 | break 2 |
| 3998 | fi |
| 3999 | done |
| 4000 | done |
| 4001 | IFS=$as_save_IFS |
| 4002 | |
| 4003 | fi |
| 4004 | fi |
| 4005 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4006 | if test -n "$ac_ct_CC"; then |
| 4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4008 | $as_echo "$ac_ct_CC" >&6; } |
| 4009 | else |
| 4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4011 | $as_echo "no" >&6; } |
| 4012 | fi |
| 4013 | |
| 4014 | |
| 4015 | test -n "$ac_ct_CC" && break |
| 4016 | done |
| 4017 | |
| 4018 | if test "x$ac_ct_CC" = x; then |
| 4019 | CC="" |
| 4020 | else |
| 4021 | case $cross_compiling:$ac_tool_warned in |
| 4022 | yes:) |
| 4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4025 | ac_tool_warned=yes ;; |
| 4026 | esac |
| 4027 | CC=$ac_ct_CC |
| 4028 | fi |
| 4029 | fi |
| 4030 | |
| 4031 | fi |
| 4032 | |
| 4033 | |
| 4034 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4036 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4037 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4038 | |
| 4039 | # Provide some information about the compiler. |
| 4040 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4041 | set X $ac_compile |
| 4042 | ac_compiler=$2 |
| 4043 | for ac_option in --version -v -V -qversion; do |
| 4044 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4045 | case "(($ac_try" in |
| 4046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4047 | *) ac_try_echo=$ac_try;; |
| 4048 | esac |
| 4049 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4050 | $as_echo "$ac_try_echo"; } >&5 |
| 4051 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4052 | ac_status=$? |
| 4053 | if test -s conftest.err; then |
| 4054 | sed '10a\ |
| 4055 | ... rest of stderr output deleted ... |
| 4056 | 10q' conftest.err >conftest.er1 |
| 4057 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4058 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4059 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4061 | test $ac_status = 0; } |
| 4062 | done |
| 4063 | |
| 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4065 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4066 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4067 | $as_echo_n "(cached) " >&6 |
| 4068 | else |
| 4069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4070 | /* end confdefs.h. */ |
| 4071 | |
| 4072 | int |
| 4073 | main () |
| 4074 | { |
| 4075 | #ifndef __GNUC__ |
| 4076 | choke me |
| 4077 | #endif |
| 4078 | |
| 4079 | ; |
| 4080 | return 0; |
| 4081 | } |
| 4082 | _ACEOF |
| 4083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4084 | ac_compiler_gnu=yes |
| 4085 | else |
| 4086 | ac_compiler_gnu=no |
| 4087 | fi |
| 4088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4089 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4090 | |
| 4091 | fi |
| 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4093 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4094 | if test $ac_compiler_gnu = yes; then |
| 4095 | GCC=yes |
| 4096 | else |
| 4097 | GCC= |
| 4098 | fi |
| 4099 | ac_test_CFLAGS=${CFLAGS+set} |
| 4100 | ac_save_CFLAGS=$CFLAGS |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4102 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4103 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4104 | $as_echo_n "(cached) " >&6 |
| 4105 | else |
| 4106 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4107 | ac_c_werror_flag=yes |
| 4108 | ac_cv_prog_cc_g=no |
| 4109 | CFLAGS="-g" |
| 4110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4111 | /* end confdefs.h. */ |
| 4112 | |
| 4113 | int |
| 4114 | main () |
| 4115 | { |
| 4116 | |
| 4117 | ; |
| 4118 | return 0; |
| 4119 | } |
| 4120 | _ACEOF |
| 4121 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4122 | ac_cv_prog_cc_g=yes |
| 4123 | else |
| 4124 | CFLAGS="" |
| 4125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4126 | /* end confdefs.h. */ |
| 4127 | |
| 4128 | int |
| 4129 | main () |
| 4130 | { |
| 4131 | |
| 4132 | ; |
| 4133 | return 0; |
| 4134 | } |
| 4135 | _ACEOF |
| 4136 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4137 | |
| 4138 | else |
| 4139 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4140 | CFLAGS="-g" |
| 4141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4142 | /* end confdefs.h. */ |
| 4143 | |
| 4144 | int |
| 4145 | main () |
| 4146 | { |
| 4147 | |
| 4148 | ; |
| 4149 | return 0; |
| 4150 | } |
| 4151 | _ACEOF |
| 4152 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4153 | ac_cv_prog_cc_g=yes |
| 4154 | fi |
| 4155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4156 | fi |
| 4157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4158 | fi |
| 4159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4160 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4161 | fi |
| 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4163 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4164 | if test "$ac_test_CFLAGS" = set; then |
| 4165 | CFLAGS=$ac_save_CFLAGS |
| 4166 | elif test $ac_cv_prog_cc_g = yes; then |
| 4167 | if test "$GCC" = yes; then |
| 4168 | CFLAGS="-g -O2" |
| 4169 | else |
| 4170 | CFLAGS="-g" |
| 4171 | fi |
| 4172 | else |
| 4173 | if test "$GCC" = yes; then |
| 4174 | CFLAGS="-O2" |
| 4175 | else |
| 4176 | CFLAGS= |
| 4177 | fi |
| 4178 | fi |
| 4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4180 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4181 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4182 | $as_echo_n "(cached) " >&6 |
| 4183 | else |
| 4184 | ac_cv_prog_cc_c89=no |
| 4185 | ac_save_CC=$CC |
| 4186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4187 | /* end confdefs.h. */ |
| 4188 | #include <stdarg.h> |
| 4189 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4190 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4191 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4192 | struct buf { int x; }; |
| 4193 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4194 | static char *e (p, i) |
| 4195 | char **p; |
| 4196 | int i; |
| 4197 | { |
| 4198 | return p[i]; |
| 4199 | } |
| 4200 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4201 | { |
| 4202 | char *s; |
| 4203 | va_list v; |
| 4204 | va_start (v,p); |
| 4205 | s = g (p, va_arg (v,int)); |
| 4206 | va_end (v); |
| 4207 | return s; |
| 4208 | } |
| 4209 | |
| 4210 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4211 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4212 | These don't provoke an error unfortunately, instead are silently treated |
| 4213 | as 'x'. The following induces an error, until -std is added to get |
| 4214 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4215 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4216 | that's true only with -std. */ |
| 4217 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4218 | |
| 4219 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4220 | inside strings and character constants. */ |
| 4221 | #define FOO(x) 'x' |
| 4222 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4223 | |
| 4224 | int test (int i, double x); |
| 4225 | struct s1 {int (*f) (int a);}; |
| 4226 | struct s2 {int (*f) (double a);}; |
| 4227 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4228 | int argc; |
| 4229 | char **argv; |
| 4230 | int |
| 4231 | main () |
| 4232 | { |
| 4233 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4234 | ; |
| 4235 | return 0; |
| 4236 | } |
| 4237 | _ACEOF |
| 4238 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4239 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4240 | do |
| 4241 | CC="$ac_save_CC $ac_arg" |
| 4242 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4243 | ac_cv_prog_cc_c89=$ac_arg |
| 4244 | fi |
| 4245 | rm -f core conftest.err conftest.$ac_objext |
| 4246 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4247 | done |
| 4248 | rm -f conftest.$ac_ext |
| 4249 | CC=$ac_save_CC |
| 4250 | |
| 4251 | fi |
| 4252 | # AC_CACHE_VAL |
| 4253 | case "x$ac_cv_prog_cc_c89" in |
| 4254 | x) |
| 4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4256 | $as_echo "none needed" >&6; } ;; |
| 4257 | xno) |
| 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4259 | $as_echo "unsupported" >&6; } ;; |
| 4260 | *) |
| 4261 | CC="$CC $ac_cv_prog_cc_c89" |
| 4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4263 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4264 | esac |
| 4265 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4266 | |
| 4267 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4269 | ac_ext=c |
| 4270 | ac_cpp='$CPP $CPPFLAGS' |
| 4271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4274 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4275 | if test "$GCC" = yes; then |
| 4276 | RDYNAMIC="-rdynamic" |
| 4277 | |
| 4278 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | ac_ext=c |
| 4280 | ac_cpp='$CPP $CPPFLAGS' |
| 4281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4285 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4286 | # On Suns, sometimes $CPP names a directory. |
| 4287 | if test -n "$CPP" && test -d "$CPP"; then |
| 4288 | CPP= |
| 4289 | fi |
| 4290 | if test -z "$CPP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4291 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4292 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4293 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4294 | # Double quotes because CPP needs to be expanded |
| 4295 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4296 | do |
| 4297 | ac_preproc_ok=false |
| 4298 | for ac_c_preproc_warn_flag in '' yes |
| 4299 | do |
| 4300 | # Use a header file that comes with gcc, so configuring glibc |
| 4301 | # with a fresh cross-compiler works. |
| 4302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4303 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4304 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4305 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4307 | /* end confdefs.h. */ |
| 4308 | #ifdef __STDC__ |
| 4309 | # include <limits.h> |
| 4310 | #else |
| 4311 | # include <assert.h> |
| 4312 | #endif |
| 4313 | Syntax error |
| 4314 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4315 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4316 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4317 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4318 | # Broken: fails on valid input. |
| 4319 | continue |
| 4320 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4321 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4322 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4323 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4324 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4326 | /* end confdefs.h. */ |
| 4327 | #include <ac_nonexistent.h> |
| 4328 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4329 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4330 | # Broken: success on invalid input. |
| 4331 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4332 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4333 | # Passes both tests. |
| 4334 | ac_preproc_ok=: |
| 4335 | break |
| 4336 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4337 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | |
| 4339 | done |
| 4340 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4341 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4342 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4343 | break |
| 4344 | fi |
| 4345 | |
| 4346 | done |
| 4347 | ac_cv_prog_CPP=$CPP |
| 4348 | |
| 4349 | fi |
| 4350 | CPP=$ac_cv_prog_CPP |
| 4351 | else |
| 4352 | ac_cv_prog_CPP=$CPP |
| 4353 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4355 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4356 | ac_preproc_ok=false |
| 4357 | for ac_c_preproc_warn_flag in '' yes |
| 4358 | do |
| 4359 | # Use a header file that comes with gcc, so configuring glibc |
| 4360 | # with a fresh cross-compiler works. |
| 4361 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4362 | # <limits.h> exists even on freestanding compilers. |
| 4363 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4364 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4366 | /* end confdefs.h. */ |
| 4367 | #ifdef __STDC__ |
| 4368 | # include <limits.h> |
| 4369 | #else |
| 4370 | # include <assert.h> |
| 4371 | #endif |
| 4372 | Syntax error |
| 4373 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4374 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4375 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4376 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4377 | # Broken: fails on valid input. |
| 4378 | continue |
| 4379 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4380 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4381 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4382 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4383 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4385 | /* end confdefs.h. */ |
| 4386 | #include <ac_nonexistent.h> |
| 4387 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4388 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4389 | # Broken: success on invalid input. |
| 4390 | continue |
| 4391 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4392 | # Passes both tests. |
| 4393 | ac_preproc_ok=: |
| 4394 | break |
| 4395 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4396 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4397 | |
| 4398 | done |
| 4399 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4400 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4401 | if $ac_preproc_ok; then : |
| 4402 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4403 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4406 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4407 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4408 | fi |
| 4409 | |
| 4410 | ac_ext=c |
| 4411 | ac_cpp='$CPP $CPPFLAGS' |
| 4412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4415 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4417 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4418 | if test "$GCC" = yes |
| 4419 | then |
| 4420 | case "$host_cpu" in |
| 4421 | alpha) addcflags="-mieee" ;; |
| 4422 | esac |
| 4423 | fi |
| 4424 | if test "x$addcflags" != x |
| 4425 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4427 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4428 | CFLAGS="$addcflags $CFLAGS" |
| 4429 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4431 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4432 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4433 | |
| 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4435 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4436 | if ${ac_cv_path_GREP+:} false; then : |
| 4437 | $as_echo_n "(cached) " >&6 |
| 4438 | else |
| 4439 | if test -z "$GREP"; then |
| 4440 | ac_path_GREP_found=false |
| 4441 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4443 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4444 | do |
| 4445 | IFS=$as_save_IFS |
| 4446 | test -z "$as_dir" && as_dir=. |
| 4447 | for ac_prog in grep ggrep; do |
| 4448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4449 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4450 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4451 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4452 | # Check for GNU $ac_path_GREP |
| 4453 | case `"$ac_path_GREP" --version 2>&1` in |
| 4454 | *GNU*) |
| 4455 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4456 | *) |
| 4457 | ac_count=0 |
| 4458 | $as_echo_n 0123456789 >"conftest.in" |
| 4459 | while : |
| 4460 | do |
| 4461 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4462 | mv "conftest.tmp" "conftest.in" |
| 4463 | cp "conftest.in" "conftest.nl" |
| 4464 | $as_echo 'GREP' >> "conftest.nl" |
| 4465 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4466 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4467 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4468 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4469 | # Best one so far, save it but keep looking for a better one |
| 4470 | ac_cv_path_GREP="$ac_path_GREP" |
| 4471 | ac_path_GREP_max=$ac_count |
| 4472 | fi |
| 4473 | # 10*(2^10) chars as input seems more than enough |
| 4474 | test $ac_count -gt 10 && break |
| 4475 | done |
| 4476 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4477 | esac |
| 4478 | |
| 4479 | $ac_path_GREP_found && break 3 |
| 4480 | done |
| 4481 | done |
| 4482 | done |
| 4483 | IFS=$as_save_IFS |
| 4484 | if test -z "$ac_cv_path_GREP"; then |
| 4485 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4486 | fi |
| 4487 | else |
| 4488 | ac_cv_path_GREP=$GREP |
| 4489 | fi |
| 4490 | |
| 4491 | fi |
| 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4493 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4494 | GREP="$ac_cv_path_GREP" |
| 4495 | |
| 4496 | |
| 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4498 | $as_echo_n "checking for egrep... " >&6; } |
| 4499 | if ${ac_cv_path_EGREP+:} false; then : |
| 4500 | $as_echo_n "(cached) " >&6 |
| 4501 | else |
| 4502 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4503 | then ac_cv_path_EGREP="$GREP -E" |
| 4504 | else |
| 4505 | if test -z "$EGREP"; then |
| 4506 | ac_path_EGREP_found=false |
| 4507 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4509 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4510 | do |
| 4511 | IFS=$as_save_IFS |
| 4512 | test -z "$as_dir" && as_dir=. |
| 4513 | for ac_prog in egrep; do |
| 4514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4515 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4516 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4517 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4518 | # Check for GNU $ac_path_EGREP |
| 4519 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4520 | *GNU*) |
| 4521 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4522 | *) |
| 4523 | ac_count=0 |
| 4524 | $as_echo_n 0123456789 >"conftest.in" |
| 4525 | while : |
| 4526 | do |
| 4527 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4528 | mv "conftest.tmp" "conftest.in" |
| 4529 | cp "conftest.in" "conftest.nl" |
| 4530 | $as_echo 'EGREP' >> "conftest.nl" |
| 4531 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4532 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4533 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4534 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4535 | # Best one so far, save it but keep looking for a better one |
| 4536 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4537 | ac_path_EGREP_max=$ac_count |
| 4538 | fi |
| 4539 | # 10*(2^10) chars as input seems more than enough |
| 4540 | test $ac_count -gt 10 && break |
| 4541 | done |
| 4542 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4543 | esac |
| 4544 | |
| 4545 | $ac_path_EGREP_found && break 3 |
| 4546 | done |
| 4547 | done |
| 4548 | done |
| 4549 | IFS=$as_save_IFS |
| 4550 | if test -z "$ac_cv_path_EGREP"; then |
| 4551 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4552 | fi |
| 4553 | else |
| 4554 | ac_cv_path_EGREP=$EGREP |
| 4555 | fi |
| 4556 | |
| 4557 | fi |
| 4558 | fi |
| 4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4560 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4561 | EGREP="$ac_cv_path_EGREP" |
| 4562 | |
| 4563 | |
| 4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4565 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4566 | if ${ac_cv_header_stdc+:} false; then : |
| 4567 | $as_echo_n "(cached) " >&6 |
| 4568 | else |
| 4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4570 | /* end confdefs.h. */ |
| 4571 | #include <stdlib.h> |
| 4572 | #include <stdarg.h> |
| 4573 | #include <string.h> |
| 4574 | #include <float.h> |
| 4575 | |
| 4576 | int |
| 4577 | main () |
| 4578 | { |
| 4579 | |
| 4580 | ; |
| 4581 | return 0; |
| 4582 | } |
| 4583 | _ACEOF |
| 4584 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4585 | ac_cv_header_stdc=yes |
| 4586 | else |
| 4587 | ac_cv_header_stdc=no |
| 4588 | fi |
| 4589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4590 | |
| 4591 | if test $ac_cv_header_stdc = yes; then |
| 4592 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4594 | /* end confdefs.h. */ |
| 4595 | #include <string.h> |
| 4596 | |
| 4597 | _ACEOF |
| 4598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4599 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4600 | |
| 4601 | else |
| 4602 | ac_cv_header_stdc=no |
| 4603 | fi |
| 4604 | rm -f conftest* |
| 4605 | |
| 4606 | fi |
| 4607 | |
| 4608 | if test $ac_cv_header_stdc = yes; then |
| 4609 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4611 | /* end confdefs.h. */ |
| 4612 | #include <stdlib.h> |
| 4613 | |
| 4614 | _ACEOF |
| 4615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4616 | $EGREP "free" >/dev/null 2>&1; then : |
| 4617 | |
| 4618 | else |
| 4619 | ac_cv_header_stdc=no |
| 4620 | fi |
| 4621 | rm -f conftest* |
| 4622 | |
| 4623 | fi |
| 4624 | |
| 4625 | if test $ac_cv_header_stdc = yes; then |
| 4626 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4627 | if test "$cross_compiling" = yes; then : |
| 4628 | : |
| 4629 | else |
| 4630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4631 | /* end confdefs.h. */ |
| 4632 | #include <ctype.h> |
| 4633 | #include <stdlib.h> |
| 4634 | #if ((' ' & 0x0FF) == 0x020) |
| 4635 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4636 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4637 | #else |
| 4638 | # define ISLOWER(c) \ |
| 4639 | (('a' <= (c) && (c) <= 'i') \ |
| 4640 | || ('j' <= (c) && (c) <= 'r') \ |
| 4641 | || ('s' <= (c) && (c) <= 'z')) |
| 4642 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4643 | #endif |
| 4644 | |
| 4645 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4646 | int |
| 4647 | main () |
| 4648 | { |
| 4649 | int i; |
| 4650 | for (i = 0; i < 256; i++) |
| 4651 | if (XOR (islower (i), ISLOWER (i)) |
| 4652 | || toupper (i) != TOUPPER (i)) |
| 4653 | return 2; |
| 4654 | return 0; |
| 4655 | } |
| 4656 | _ACEOF |
| 4657 | if ac_fn_c_try_run "$LINENO"; then : |
| 4658 | |
| 4659 | else |
| 4660 | ac_cv_header_stdc=no |
| 4661 | fi |
| 4662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4663 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4664 | fi |
| 4665 | |
| 4666 | fi |
| 4667 | fi |
| 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4669 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4670 | if test $ac_cv_header_stdc = yes; then |
| 4671 | |
| 4672 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4673 | |
| 4674 | fi |
| 4675 | |
| 4676 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4677 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4678 | inttypes.h stdint.h unistd.h |
| 4679 | do : |
| 4680 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4681 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4682 | " |
| 4683 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4684 | cat >>confdefs.h <<_ACEOF |
| 4685 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4686 | _ACEOF |
| 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | done |
| 4691 | |
| 4692 | |
| 4693 | |
| 4694 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4695 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4696 | MINIX=yes |
| 4697 | else |
| 4698 | MINIX= |
| 4699 | fi |
| 4700 | |
| 4701 | |
| 4702 | if test "$MINIX" = yes; then |
| 4703 | |
| 4704 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4705 | |
| 4706 | |
| 4707 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4708 | |
| 4709 | |
| 4710 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4711 | |
| 4712 | fi |
| 4713 | |
| 4714 | |
| 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4716 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4717 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4718 | $as_echo_n "(cached) " >&6 |
| 4719 | else |
| 4720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4721 | /* end confdefs.h. */ |
| 4722 | |
| 4723 | # define __EXTENSIONS__ 1 |
| 4724 | $ac_includes_default |
| 4725 | int |
| 4726 | main () |
| 4727 | { |
| 4728 | |
| 4729 | ; |
| 4730 | return 0; |
| 4731 | } |
| 4732 | _ACEOF |
| 4733 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4734 | ac_cv_safe_to_define___extensions__=yes |
| 4735 | else |
| 4736 | ac_cv_safe_to_define___extensions__=no |
| 4737 | fi |
| 4738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4739 | fi |
| 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4741 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4742 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4743 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4744 | |
| 4745 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4746 | |
| 4747 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4748 | |
| 4749 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4750 | |
| 4751 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4752 | |
| 4753 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4754 | LIB_EXT=.a |
| 4755 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4756 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4757 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4758 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4759 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4760 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4761 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4762 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4763 | fi |
| 4764 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4765 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4766 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4767 | then |
| 4768 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4770 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4771 | else |
| 4772 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4774 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4775 | fi |
| 4776 | |
| 4777 | else |
| 4778 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4780 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4782 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4783 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4784 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4785 | # Check whether --enable-symlink-install was given. |
| 4786 | if test "${enable_symlink_install+set}" = set; then : |
| 4787 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4788 | then |
| 4789 | LINK_INSTALL_FLAGS=-f |
| 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4791 | $as_echo "Disabling symlinks for install" >&6; } |
| 4792 | else |
| 4793 | LINK_INSTALL_FLAGS=-sf |
| 4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4795 | $as_echo "Enabling symlinks for install" >&6; } |
| 4796 | fi |
| 4797 | |
| 4798 | else |
| 4799 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4801 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4802 | |
| 4803 | fi |
| 4804 | |
| 4805 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4806 | relative_symlink_defined= |
| 4807 | # Check whether --enable-relative-symlinks was given. |
| 4808 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4809 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4810 | then |
| 4811 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4812 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4814 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4815 | else |
| 4816 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4817 | relative_symlink_defined=yes |
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4819 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4820 | fi |
| 4821 | fi |
| 4822 | |
| 4823 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4824 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4825 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4826 | then |
| 4827 | SYMLINK_RELATIVE=yes |
| 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4829 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4830 | else |
| 4831 | SYMLINK_RELATIVE=--relative |
| 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4833 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4834 | fi |
| 4835 | |
| 4836 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4837 | if test -z "$relative_symlink_defined" |
| 4838 | then |
| 4839 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4841 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4842 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4843 | |
| 4844 | fi |
| 4845 | |
| 4846 | |
| 4847 | # Check whether --enable-symlink-build was given. |
| 4848 | if test "${enable_symlink_build+set}" = set; then : |
| 4849 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4850 | then |
| 4851 | LINK_BUILD_FLAGS= |
| 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4853 | $as_echo "Disabling symlinks for build" >&6; } |
| 4854 | else |
| 4855 | LINK_BUILD_FLAGS=-s |
| 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4857 | $as_echo "Enabling symlinks for build" >&6; } |
| 4858 | fi |
| 4859 | |
| 4860 | else |
| 4861 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4863 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4864 | |
| 4865 | fi |
| 4866 | |
| 4867 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4868 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4869 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4870 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4871 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4873 | $as_echo "Disabling verbose make commands" >&6; } |
| 4874 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4875 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4876 | Q=@ |
| 4877 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4879 | $as_echo "Enabling verbose make commands" >&6; } |
| 4880 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4881 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4882 | Q= |
| 4883 | fi |
| 4884 | |
| 4885 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4887 | $as_echo "Disabling verbose make commands" >&6; } |
| 4888 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4889 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4890 | Q=@ |
| 4891 | |
| 4892 | fi |
| 4893 | |
| 4894 | |
| 4895 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4896 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4897 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4898 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4899 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4900 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4902 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4903 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4904 | |
| 4905 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4906 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4908 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4910 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4911 | fi |
| 4912 | |
| 4913 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4915 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4916 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4917 | fi |
| 4918 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4920 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4921 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4922 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4923 | then |
| 4924 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4926 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4927 | else |
| 4928 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4929 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4930 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4932 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4933 | fi |
| 4934 | |
| 4935 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4936 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4937 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4938 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4940 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4941 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4942 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4943 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4944 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4945 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4946 | LDFLAG_DYNAMIC= |
| 4947 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4948 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4949 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4950 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4951 | then |
| 4952 | ELF_CMT=# |
| 4953 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4955 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4956 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4957 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4958 | ELF_CMT= |
| 4959 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4960 | case "$host_os" in |
| 4961 | solaris2.*) |
| 4962 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4963 | ;; |
| 4964 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4965 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4966 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4967 | PRIVATE_LIBS_CMT=# |
| 4968 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4970 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4971 | fi |
| 4972 | |
| 4973 | else |
| 4974 | MAKEFILE_ELF=/dev/null |
| 4975 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4977 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4978 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4979 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4980 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4982 | |
| 4983 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4984 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4985 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4986 | then |
| 4987 | BSDLIB_CMT=# |
| 4988 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4990 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4991 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4992 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4993 | BSDLIB_CMT= |
| 4994 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4995 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4996 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4997 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4998 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4999 | LIB_EXT=.dylib |
| 5000 | ;; |
| 5001 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5003 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5004 | fi |
| 5005 | |
| 5006 | else |
| 5007 | MAKEFILE_BSDLIB=/dev/null |
| 5008 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5010 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5012 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5013 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5014 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5015 | |
| 5016 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5017 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5018 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5019 | then |
| 5020 | PROFILE_CMT=# |
| 5021 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5023 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5024 | else |
| 5025 | PROFILE_CMT= |
| 5026 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 5027 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5029 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5030 | fi |
| 5031 | |
| 5032 | else |
| 5033 | PROFILE_CMT=# |
| 5034 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5036 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5038 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5039 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5041 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5042 | # Check whether --enable-gcov was given. |
| 5043 | if test "${enable_gcov+set}" = set; then : |
| 5044 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5045 | then |
| 5046 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5047 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5049 | $as_echo "Enabling gcov support" >&6; } |
| 5050 | fi |
| 5051 | |
| 5052 | fi |
| 5053 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5054 | |
| 5055 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5057 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5058 | |
| 5059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5060 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5061 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5062 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5063 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5065 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5066 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5067 | |
| 5068 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5069 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5071 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5072 | fi |
| 5073 | |
| 5074 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5076 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5077 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5078 | fi |
| 5079 | |
| 5080 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5081 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5082 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5083 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5085 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5086 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5087 | |
| 5088 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5089 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5091 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5092 | fi |
| 5093 | |
| 5094 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5096 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5098 | fi |
| 5099 | |
| 5100 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5101 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5102 | enableval=$enable_testio_debug; |
| 5103 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5104 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5106 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5107 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5108 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5109 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5110 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5111 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5113 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5114 | fi |
| 5115 | |
| 5116 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5118 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5119 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5120 | |
| 5121 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5122 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5123 | fi |
| 5124 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5125 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5126 | |
| 5127 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5128 | |
| 5129 | |
| 5130 | |
| 5131 | |
| 5132 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5133 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5134 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5135 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5136 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5138 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5139 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5140 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5141 | else |
| 5142 | case $PKG_CONFIG in |
| 5143 | [\\/]* | ?:[\\/]*) |
| 5144 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5145 | ;; |
| 5146 | *) |
| 5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5148 | for as_dir in $PATH |
| 5149 | do |
| 5150 | IFS=$as_save_IFS |
| 5151 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5152 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5154 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5156 | break 2 |
| 5157 | fi |
| 5158 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5159 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5160 | IFS=$as_save_IFS |
| 5161 | |
| 5162 | ;; |
| 5163 | esac |
| 5164 | fi |
| 5165 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5166 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5168 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5169 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5171 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5172 | fi |
| 5173 | |
| 5174 | |
| 5175 | fi |
| 5176 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5177 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5178 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5179 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5181 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5182 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5183 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5184 | else |
| 5185 | case $ac_pt_PKG_CONFIG in |
| 5186 | [\\/]* | ?:[\\/]*) |
| 5187 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5188 | ;; |
| 5189 | *) |
| 5190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5191 | for as_dir in $PATH |
| 5192 | do |
| 5193 | IFS=$as_save_IFS |
| 5194 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5195 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5197 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5199 | break 2 |
| 5200 | fi |
| 5201 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5202 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5203 | IFS=$as_save_IFS |
| 5204 | |
| 5205 | ;; |
| 5206 | esac |
| 5207 | fi |
| 5208 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5209 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5211 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5212 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5214 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5215 | fi |
| 5216 | |
| 5217 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5218 | PKG_CONFIG="" |
| 5219 | else |
| 5220 | case $cross_compiling:$ac_tool_warned in |
| 5221 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5223 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5224 | ac_tool_warned=yes ;; |
| 5225 | esac |
| 5226 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5227 | fi |
| 5228 | else |
| 5229 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5230 | fi |
| 5231 | |
| 5232 | fi |
| 5233 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5234 | _pkg_min_version=0.9.0 |
| 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5236 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5237 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5239 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5240 | else |
| 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5242 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5243 | PKG_CONFIG="" |
| 5244 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5245 | fi |
| 5246 | LIBUUID= |
| 5247 | DEPLIBUUID= |
| 5248 | STATIC_LIBUUID= |
| 5249 | DEPSTATIC_LIBUUID= |
| 5250 | PROFILED_LIBUUID= |
| 5251 | DEPPROFILED_LIBUUID= |
| 5252 | UUID_CMT= |
| 5253 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5254 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5255 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5256 | then |
| 5257 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5258 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5259 | fi |
| 5260 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5262 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5263 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5264 | $as_echo_n "(cached) " >&6 |
| 5265 | else |
| 5266 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5267 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5269 | /* end confdefs.h. */ |
| 5270 | |
| 5271 | /* Override any GCC internal prototype to avoid an error. |
| 5272 | Use char because int might match the return type of a GCC |
| 5273 | builtin and then its argument prototype would still apply. */ |
| 5274 | #ifdef __cplusplus |
| 5275 | extern "C" |
| 5276 | #endif |
| 5277 | char uuid_generate (); |
| 5278 | int |
| 5279 | main () |
| 5280 | { |
| 5281 | return uuid_generate (); |
| 5282 | ; |
| 5283 | return 0; |
| 5284 | } |
| 5285 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5286 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5287 | ac_cv_lib_uuid_uuid_generate=yes |
| 5288 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5289 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5290 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5291 | rm -f core conftest.err conftest.$ac_objext \ |
| 5292 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5293 | LIBS=$ac_check_lib_save_LIBS |
| 5294 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5296 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5297 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5298 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5299 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5300 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5301 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5302 | fi |
| 5303 | |
| 5304 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5306 | $as_echo "Disabling private uuid library" >&6; } |
| 5307 | else |
| 5308 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5309 | DEPLIBUUID=$LIBUUID |
| 5310 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5311 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5312 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5313 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5315 | $as_echo "Enabling private uuid library" >&6; } |
| 5316 | fi |
| 5317 | |
| 5318 | else |
| 5319 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5320 | DEPLIBUUID=$LIBUUID |
| 5321 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5322 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5323 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5324 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5326 | $as_echo "Enabling private uuid library by default" >&6; } |
| 5327 | |
| 5328 | fi |
| 5329 | |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5344 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5345 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5346 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5347 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5349 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5350 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5351 | $as_echo_n "(cached) " >&6 |
| 5352 | else |
| 5353 | case $PKG_CONFIG in |
| 5354 | [\\/]* | ?:[\\/]*) |
| 5355 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5356 | ;; |
| 5357 | *) |
| 5358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5359 | for as_dir in $PATH |
| 5360 | do |
| 5361 | IFS=$as_save_IFS |
| 5362 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5363 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5365 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5367 | break 2 |
| 5368 | fi |
| 5369 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5370 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5371 | IFS=$as_save_IFS |
| 5372 | |
| 5373 | ;; |
| 5374 | esac |
| 5375 | fi |
| 5376 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5377 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5379 | $as_echo "$PKG_CONFIG" >&6; } |
| 5380 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5382 | $as_echo "no" >&6; } |
| 5383 | fi |
| 5384 | |
| 5385 | |
| 5386 | fi |
| 5387 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5388 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5389 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5390 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5392 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5393 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5394 | $as_echo_n "(cached) " >&6 |
| 5395 | else |
| 5396 | case $ac_pt_PKG_CONFIG in |
| 5397 | [\\/]* | ?:[\\/]*) |
| 5398 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5399 | ;; |
| 5400 | *) |
| 5401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5402 | for as_dir in $PATH |
| 5403 | do |
| 5404 | IFS=$as_save_IFS |
| 5405 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5406 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5408 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5410 | break 2 |
| 5411 | fi |
| 5412 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5413 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5414 | IFS=$as_save_IFS |
| 5415 | |
| 5416 | ;; |
| 5417 | esac |
| 5418 | fi |
| 5419 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5420 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5422 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5423 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5425 | $as_echo "no" >&6; } |
| 5426 | fi |
| 5427 | |
| 5428 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5429 | PKG_CONFIG="" |
| 5430 | else |
| 5431 | case $cross_compiling:$ac_tool_warned in |
| 5432 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5434 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5435 | ac_tool_warned=yes ;; |
| 5436 | esac |
| 5437 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5438 | fi |
| 5439 | else |
| 5440 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5441 | fi |
| 5442 | |
| 5443 | fi |
| 5444 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5445 | _pkg_min_version=0.9.0 |
| 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5447 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5448 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5450 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5451 | else |
| 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5453 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5454 | PKG_CONFIG="" |
| 5455 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5456 | fi |
| 5457 | LIBBLKID= |
| 5458 | DEPLIBBLKID= |
| 5459 | STATIC_LIBBLKID= |
| 5460 | DEPSTATIC_LIBBLKID= |
| 5461 | PROFILED_LIBBLKID= |
| 5462 | DEPPROFILED_LIBBLKID= |
| 5463 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5464 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5465 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5466 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5467 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5468 | then |
| 5469 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5470 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5471 | fi |
| 5472 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5474 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5475 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5476 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5477 | else |
| 5478 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5479 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5481 | /* end confdefs.h. */ |
| 5482 | |
| 5483 | /* Override any GCC internal prototype to avoid an error. |
| 5484 | Use char because int might match the return type of a GCC |
| 5485 | builtin and then its argument prototype would still apply. */ |
| 5486 | #ifdef __cplusplus |
| 5487 | extern "C" |
| 5488 | #endif |
| 5489 | char blkid_get_cache (); |
| 5490 | int |
| 5491 | main () |
| 5492 | { |
| 5493 | return blkid_get_cache (); |
| 5494 | ; |
| 5495 | return 0; |
| 5496 | } |
| 5497 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5498 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5499 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5500 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5501 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5502 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5503 | rm -f core conftest.err conftest.$ac_objext \ |
| 5504 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5505 | LIBS=$ac_check_lib_save_LIBS |
| 5506 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5508 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5509 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5510 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5511 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5512 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5513 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5514 | fi |
| 5515 | |
| 5516 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5518 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5519 | else |
| 5520 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5521 | DEPLIBBLKID=$LIBBLKID |
| 5522 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5523 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5524 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5525 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5526 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5527 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5529 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5530 | fi |
| 5531 | |
| 5532 | else |
| 5533 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5534 | DEPLIBBLKID=$LIBBLKID |
| 5535 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5536 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5537 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5538 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5539 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5540 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5542 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5543 | |
| 5544 | fi |
| 5545 | |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5553 | QUOTA_MAN_COMMENT='.\"' |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5554 | QUOTA_CMT= |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5555 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5556 | |
| 5557 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5558 | |
| 5559 | |
| 5560 | |
| 5561 | |
| 5562 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5563 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5564 | if test -n "$ac_tool_prefix"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5565 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5566 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5568 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5569 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5570 | $as_echo_n "(cached) " >&6 |
| 5571 | else |
| 5572 | case $PKG_CONFIG in |
| 5573 | [\\/]* | ?:[\\/]*) |
| 5574 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5575 | ;; |
| 5576 | *) |
| 5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5578 | for as_dir in $PATH |
| 5579 | do |
| 5580 | IFS=$as_save_IFS |
| 5581 | test -z "$as_dir" && as_dir=. |
| 5582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5584 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5586 | break 2 |
| 5587 | fi |
| 5588 | done |
| 5589 | done |
| 5590 | IFS=$as_save_IFS |
| 5591 | |
| 5592 | ;; |
| 5593 | esac |
| 5594 | fi |
| 5595 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5596 | if test -n "$PKG_CONFIG"; then |
| 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5598 | $as_echo "$PKG_CONFIG" >&6; } |
| 5599 | else |
| 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5601 | $as_echo "no" >&6; } |
| 5602 | fi |
| 5603 | |
| 5604 | |
| 5605 | fi |
| 5606 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5607 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5608 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5609 | set dummy pkg-config; ac_word=$2 |
| 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5611 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5612 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5613 | $as_echo_n "(cached) " >&6 |
| 5614 | else |
| 5615 | case $ac_pt_PKG_CONFIG in |
| 5616 | [\\/]* | ?:[\\/]*) |
| 5617 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5618 | ;; |
| 5619 | *) |
| 5620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5621 | for as_dir in $PATH |
| 5622 | do |
| 5623 | IFS=$as_save_IFS |
| 5624 | test -z "$as_dir" && as_dir=. |
| 5625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5627 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5629 | break 2 |
| 5630 | fi |
| 5631 | done |
| 5632 | done |
| 5633 | IFS=$as_save_IFS |
| 5634 | |
| 5635 | ;; |
| 5636 | esac |
| 5637 | fi |
| 5638 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5639 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5641 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5642 | else |
| 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5644 | $as_echo "no" >&6; } |
| 5645 | fi |
| 5646 | |
| 5647 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5648 | PKG_CONFIG="" |
| 5649 | else |
| 5650 | case $cross_compiling:$ac_tool_warned in |
| 5651 | yes:) |
| 5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5654 | ac_tool_warned=yes ;; |
| 5655 | esac |
| 5656 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5657 | fi |
| 5658 | else |
| 5659 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5660 | fi |
| 5661 | |
| 5662 | fi |
| 5663 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5664 | _pkg_min_version=0.9.0 |
| 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5666 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5667 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5669 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5670 | else |
| 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5672 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5673 | PKG_CONFIG="" |
| 5674 | fi |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5675 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5676 | |
| 5677 | # Check whether --enable-quota was given. |
| 5678 | if test "${enable_quota+set}" = set; then : |
| 5679 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5680 | then |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5681 | QUOTA_CMT=# |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5683 | $as_echo "Disabling quota support" >&6; } |
| 5684 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5685 | QUOTA_CMT= |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5686 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5687 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5689 | $as_echo "Enabling quota support" >&6; } |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5690 | QUOTA_MAN_COMMENT="" |
| 5691 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5692 | fi |
| 5693 | |
| 5694 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5695 | QUOTA_CMT=# |
| 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5697 | $as_echo "Disabling quota support by default" >&6; } |
| 5698 | |
| 5699 | fi |
| 5700 | |
| 5701 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5702 | DEPLIBQUOTA=$LIBQUOTA |
| 5703 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5704 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5705 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5706 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5714 | |
| 5715 | # Check whether --enable-backtrace was given. |
| 5716 | if test "${enable_backtrace+set}" = set; then : |
| 5717 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5718 | then |
| 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5720 | $as_echo "Disabling use of backtrace" >&6; } |
| 5721 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5722 | |
| 5723 | else |
| 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5725 | $as_echo "Enabling use of backtrace" >&6; } |
| 5726 | fi |
| 5727 | |
| 5728 | else |
| 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5730 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5731 | |
| 5732 | fi |
| 5733 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5734 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5735 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5736 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5737 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5739 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5740 | DEBUGFS_CMT="#" |
| 5741 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5742 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5744 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5745 | fi |
| 5746 | |
| 5747 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5749 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5750 | DEBUGFS_CMT= |
| 5751 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5752 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5753 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5754 | |
| 5755 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5756 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5757 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5758 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5760 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5761 | IMAGER_CMT="#" |
| 5762 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5763 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5765 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5766 | fi |
| 5767 | |
| 5768 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5770 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5771 | IMAGER_CMT= |
| 5772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5773 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5775 | |
| 5776 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5777 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5778 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5779 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5781 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5782 | RESIZER_CMT="#" |
| 5783 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5784 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5786 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5787 | fi |
| 5788 | |
| 5789 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5791 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5792 | RESIZER_CMT= |
| 5793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5794 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5796 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5797 | # Check whether --enable-defrag was given. |
| 5798 | if test "${enable_defrag+set}" = set; then : |
| 5799 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5800 | then |
| 5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5802 | $as_echo "Disabling e4defrag support" >&6; } |
| 5803 | DEFRAG_CMT="#" |
| 5804 | else |
| 5805 | DEFRAG_CMT= |
| 5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5807 | $as_echo "Enabling e4defrag support" >&6; } |
| 5808 | fi |
| 5809 | |
| 5810 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5811 | if test -z "$WITH_DIET_LIBC" |
| 5812 | then |
| 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5814 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5815 | DEFRAG_CMT= |
| 5816 | else |
| 5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5818 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5819 | DEFRAG_CMT="#" |
| 5820 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5821 | |
| 5822 | fi |
| 5823 | |
| 5824 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5825 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5826 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5827 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5828 | then |
| 5829 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5831 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5832 | else |
| 5833 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5835 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5836 | fi |
| 5837 | |
| 5838 | else |
| 5839 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5840 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5841 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5843 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5844 | ;; |
| 5845 | *) |
| 5846 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5848 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5849 | esac |
| 5850 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5851 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5852 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5853 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5854 | |
| 5855 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5856 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5857 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5858 | then |
| 5859 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5861 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5862 | else |
| 5863 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5865 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5866 | fi |
| 5867 | |
| 5868 | else |
| 5869 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5871 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5873 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5874 | |
| 5875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5876 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5877 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5878 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5879 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5880 | then |
| 5881 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5883 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5884 | else |
| 5885 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5887 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5888 | fi |
| 5889 | |
| 5890 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5891 | if test -n "$WITH_DIET_LIBC" |
| 5892 | then |
| 5893 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5895 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5896 | else |
| 5897 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5899 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5900 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5901 | |
| 5902 | fi |
| 5903 | |
| 5904 | if test "$try_tls" = "yes" |
| 5905 | then |
| 5906 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5908 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5909 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5910 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5911 | else |
| 5912 | |
| 5913 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5914 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5915 | case $ax_tls_keyword in |
| 5916 | none) ac_cv_tls=none ; break ;; |
| 5917 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5919 | /* end confdefs.h. */ |
| 5920 | #include <stdlib.h> |
| 5921 | static void |
| 5922 | foo(void) { |
| 5923 | static $ax_tls_keyword int bar; |
| 5924 | exit(1); |
| 5925 | } |
| 5926 | int |
| 5927 | main () |
| 5928 | { |
| 5929 | |
| 5930 | ; |
| 5931 | return 0; |
| 5932 | } |
| 5933 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5934 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5935 | ac_cv_tls=$ax_tls_keyword ; break |
| 5936 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5937 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5938 | |
| 5939 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5941 | esac |
| 5942 | done |
| 5943 | |
| 5944 | fi |
| 5945 | |
| 5946 | |
| 5947 | if test "$ac_cv_tls" != "none"; then |
| 5948 | |
| 5949 | cat >>confdefs.h <<_ACEOF |
| 5950 | #define TLS $ac_cv_tls |
| 5951 | _ACEOF |
| 5952 | |
| 5953 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5955 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5956 | |
| 5957 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5958 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5959 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5960 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5961 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5962 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5964 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5965 | UUIDD_CMT="#" |
| 5966 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5967 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5968 | |
| 5969 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5971 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5972 | fi |
| 5973 | |
| 5974 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5975 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5976 | |
| 5977 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5979 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5980 | |
| 5981 | fi |
| 5982 | |
| 5983 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5984 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5985 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5986 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5987 | PACKAGE=e2fsprogs |
| 5988 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5989 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5990 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5991 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5992 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5993 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5994 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5995 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5996 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5997 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5999 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6000 | |
| 6001 | |
| 6002 | |
| 6003 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6005 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6006 | set x ${MAKE-make} |
| 6007 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6008 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6009 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6010 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6012 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6013 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6014 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6015 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6016 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6017 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6018 | *@@@%%%=?*=@@@%%%*) |
| 6019 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6020 | *) |
| 6021 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6022 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6023 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6025 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6027 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6028 | SET_MAKE= |
| 6029 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6031 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6032 | SET_MAKE="MAKE=${MAKE-make}" |
| 6033 | fi |
| 6034 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6035 | # Find a good install program. We prefer a C program (faster), |
| 6036 | # so one script is as good as another. But avoid the broken or |
| 6037 | # incompatible versions: |
| 6038 | # SysV /etc/install, /usr/sbin/install |
| 6039 | # SunOS /usr/etc/install |
| 6040 | # IRIX /sbin/install |
| 6041 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6043 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6044 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6045 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6046 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6047 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6048 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6050 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6051 | if test -z "$INSTALL"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6052 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6053 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6054 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6056 | for as_dir in $PATH |
| 6057 | do |
| 6058 | IFS=$as_save_IFS |
| 6059 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6060 | # Account for people who put trailing slashes in PATH elements. |
| 6061 | case $as_dir/ in #(( |
| 6062 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6063 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | /usr/ucb/* ) ;; |
| 6066 | *) |
| 6067 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6068 | # Don't use installbsd from OSF since it installs stuff as root |
| 6069 | # by default. |
| 6070 | for ac_prog in ginstall scoinst install; do |
| 6071 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6072 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6073 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6074 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6075 | # AIX install. It has an incompatible calling convention. |
| 6076 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6077 | elif test $ac_prog = install && |
| 6078 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6079 | # program-specific install script used by HP pwplus--don't use. |
| 6080 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6081 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6082 | rm -rf conftest.one conftest.two conftest.dir |
| 6083 | echo one > conftest.one |
| 6084 | echo two > conftest.two |
| 6085 | mkdir conftest.dir |
| 6086 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6087 | test -s conftest.one && test -s conftest.two && |
| 6088 | test -s conftest.dir/conftest.one && |
| 6089 | test -s conftest.dir/conftest.two |
| 6090 | then |
| 6091 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6092 | break 3 |
| 6093 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6094 | fi |
| 6095 | fi |
| 6096 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | done |
| 6098 | ;; |
| 6099 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6100 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6101 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6102 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6104 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6105 | |
| 6106 | fi |
| 6107 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6108 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6109 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6110 | # As a last resort, use the slow shell script. Don't cache a |
| 6111 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6112 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6113 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6114 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6115 | fi |
| 6116 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6118 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6119 | |
| 6120 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6121 | # It thinks the first close brace ends the variable substitution. |
| 6122 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6123 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6124 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6125 | |
| 6126 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6127 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6129 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6130 | if test -z "$MKDIR_P"; then |
| 6131 | if ${ac_cv_path_mkdir+:} false; then : |
| 6132 | $as_echo_n "(cached) " >&6 |
| 6133 | else |
| 6134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6135 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6136 | do |
| 6137 | IFS=$as_save_IFS |
| 6138 | test -z "$as_dir" && as_dir=. |
| 6139 | for ac_prog in mkdir gmkdir; do |
| 6140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6141 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6142 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6143 | 'mkdir (GNU coreutils) '* | \ |
| 6144 | 'mkdir (coreutils) '* | \ |
| 6145 | 'mkdir (fileutils) '4.1*) |
| 6146 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6147 | break 3;; |
| 6148 | esac |
| 6149 | done |
| 6150 | done |
| 6151 | done |
| 6152 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6153 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6154 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6155 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6156 | test -d ./--version && rmdir ./--version |
| 6157 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6158 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6159 | else |
| 6160 | # As a last resort, use the slow shell script. Don't cache a |
| 6161 | # value for MKDIR_P within a source directory, because that will |
| 6162 | # break other packages using the cache if that directory is |
| 6163 | # removed, or if the value is a relative name. |
| 6164 | MKDIR_P="$ac_install_sh -d" |
| 6165 | fi |
| 6166 | fi |
| 6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6168 | $as_echo "$MKDIR_P" >&6; } |
| 6169 | |
| 6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6171 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6172 | if ${ac_cv_path_SED+:} false; then : |
| 6173 | $as_echo_n "(cached) " >&6 |
| 6174 | else |
| 6175 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6176 | for ac_i in 1 2 3 4 5 6 7; do |
| 6177 | ac_script="$ac_script$as_nl$ac_script" |
| 6178 | done |
| 6179 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6180 | { ac_script=; unset ac_script;} |
| 6181 | if test -z "$SED"; then |
| 6182 | ac_path_SED_found=false |
| 6183 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6185 | for as_dir in $PATH |
| 6186 | do |
| 6187 | IFS=$as_save_IFS |
| 6188 | test -z "$as_dir" && as_dir=. |
| 6189 | for ac_prog in sed gsed; do |
| 6190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6191 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6192 | as_fn_executable_p "$ac_path_SED" || continue |
| 6193 | # Check for GNU ac_path_SED and select it if it is found. |
| 6194 | # Check for GNU $ac_path_SED |
| 6195 | case `"$ac_path_SED" --version 2>&1` in |
| 6196 | *GNU*) |
| 6197 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6198 | *) |
| 6199 | ac_count=0 |
| 6200 | $as_echo_n 0123456789 >"conftest.in" |
| 6201 | while : |
| 6202 | do |
| 6203 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6204 | mv "conftest.tmp" "conftest.in" |
| 6205 | cp "conftest.in" "conftest.nl" |
| 6206 | $as_echo '' >> "conftest.nl" |
| 6207 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6208 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6209 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6210 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6211 | # Best one so far, save it but keep looking for a better one |
| 6212 | ac_cv_path_SED="$ac_path_SED" |
| 6213 | ac_path_SED_max=$ac_count |
| 6214 | fi |
| 6215 | # 10*(2^10) chars as input seems more than enough |
| 6216 | test $ac_count -gt 10 && break |
| 6217 | done |
| 6218 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6219 | esac |
| 6220 | |
| 6221 | $ac_path_SED_found && break 3 |
| 6222 | done |
| 6223 | done |
| 6224 | done |
| 6225 | IFS=$as_save_IFS |
| 6226 | if test -z "$ac_cv_path_SED"; then |
| 6227 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6228 | fi |
| 6229 | else |
| 6230 | ac_cv_path_SED=$SED |
| 6231 | fi |
| 6232 | |
| 6233 | fi |
| 6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6235 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6236 | SED="$ac_cv_path_SED" |
| 6237 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6238 | |
| 6239 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6241 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6242 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6243 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6244 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | else |
| 6246 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6247 | fi |
| 6248 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6250 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6251 | |
| 6252 | |
| 6253 | |
| 6254 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6255 | GETTEXT_MACRO_VERSION=0.18 |
| 6256 | |
| 6257 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6258 | |
| 6259 | |
| 6260 | # Prepare PATH_SEPARATOR. |
| 6261 | # The user is always right. |
| 6262 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6263 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6264 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6265 | # so we have to set that as well for the test. |
| 6266 | PATH_SEPARATOR=: |
| 6267 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6268 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6269 | || PATH_SEPARATOR=';' |
| 6270 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6271 | fi |
| 6272 | |
| 6273 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6274 | # as systems may use methods other than mode bits to determine executability. |
| 6275 | cat >conf$$.file <<_ASEOF |
| 6276 | #! /bin/sh |
| 6277 | exit 0 |
| 6278 | _ASEOF |
| 6279 | chmod +x conf$$.file |
| 6280 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6281 | ac_executable_p="test -x" |
| 6282 | else |
| 6283 | ac_executable_p="test -f" |
| 6284 | fi |
| 6285 | rm -f conf$$.file |
| 6286 | |
| 6287 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6288 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6290 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6291 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6292 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6293 | else |
| 6294 | case "$MSGFMT" in |
| 6295 | [\\/]* | ?:[\\/]*) |
| 6296 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6297 | ;; |
| 6298 | *) |
| 6299 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6300 | for ac_dir in $PATH; do |
| 6301 | IFS="$ac_save_IFS" |
| 6302 | test -z "$ac_dir" && ac_dir=. |
| 6303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6304 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6305 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6306 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6307 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6308 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6309 | break 2 |
| 6310 | fi |
| 6311 | fi |
| 6312 | done |
| 6313 | done |
| 6314 | IFS="$ac_save_IFS" |
| 6315 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6316 | ;; |
| 6317 | esac |
| 6318 | fi |
| 6319 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6320 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6322 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6323 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6325 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6326 | fi |
| 6327 | |
| 6328 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6329 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6331 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6332 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6333 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6334 | else |
| 6335 | case $GMSGFMT in |
| 6336 | [\\/]* | ?:[\\/]*) |
| 6337 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6338 | ;; |
| 6339 | *) |
| 6340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6341 | for as_dir in $PATH |
| 6342 | do |
| 6343 | IFS=$as_save_IFS |
| 6344 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6345 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6349 | break 2 |
| 6350 | fi |
| 6351 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6352 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6353 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6354 | |
| 6355 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6356 | ;; |
| 6357 | esac |
| 6358 | fi |
| 6359 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6360 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6362 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6363 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6365 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6366 | fi |
| 6367 | |
| 6368 | |
| 6369 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6370 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6371 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6372 | *) MSGFMT_015=$MSGFMT ;; |
| 6373 | esac |
| 6374 | |
| 6375 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6376 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6377 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6378 | esac |
| 6379 | |
| 6380 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6381 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6382 | # Prepare PATH_SEPARATOR. |
| 6383 | # The user is always right. |
| 6384 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6385 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6386 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6387 | # so we have to set that as well for the test. |
| 6388 | PATH_SEPARATOR=: |
| 6389 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6390 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6391 | || PATH_SEPARATOR=';' |
| 6392 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6393 | fi |
| 6394 | |
| 6395 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6396 | # as systems may use methods other than mode bits to determine executability. |
| 6397 | cat >conf$$.file <<_ASEOF |
| 6398 | #! /bin/sh |
| 6399 | exit 0 |
| 6400 | _ASEOF |
| 6401 | chmod +x conf$$.file |
| 6402 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6403 | ac_executable_p="test -x" |
| 6404 | else |
| 6405 | ac_executable_p="test -f" |
| 6406 | fi |
| 6407 | rm -f conf$$.file |
| 6408 | |
| 6409 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6410 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6412 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6413 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6414 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6415 | else |
| 6416 | case "$XGETTEXT" in |
| 6417 | [\\/]* | ?:[\\/]*) |
| 6418 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6419 | ;; |
| 6420 | *) |
| 6421 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6422 | for ac_dir in $PATH; do |
| 6423 | IFS="$ac_save_IFS" |
| 6424 | test -z "$ac_dir" && ac_dir=. |
| 6425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6426 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6427 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6428 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6429 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6430 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6431 | break 2 |
| 6432 | fi |
| 6433 | fi |
| 6434 | done |
| 6435 | done |
| 6436 | IFS="$ac_save_IFS" |
| 6437 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6438 | ;; |
| 6439 | esac |
| 6440 | fi |
| 6441 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6442 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6444 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6447 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6448 | fi |
| 6449 | |
| 6450 | rm -f messages.po |
| 6451 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6452 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6453 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6454 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6455 | esac |
| 6456 | |
| 6457 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6458 | |
| 6459 | # Prepare PATH_SEPARATOR. |
| 6460 | # The user is always right. |
| 6461 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6462 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6463 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6464 | # so we have to set that as well for the test. |
| 6465 | PATH_SEPARATOR=: |
| 6466 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6467 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6468 | || PATH_SEPARATOR=';' |
| 6469 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | fi |
| 6471 | |
| 6472 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6473 | # as systems may use methods other than mode bits to determine executability. |
| 6474 | cat >conf$$.file <<_ASEOF |
| 6475 | #! /bin/sh |
| 6476 | exit 0 |
| 6477 | _ASEOF |
| 6478 | chmod +x conf$$.file |
| 6479 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6480 | ac_executable_p="test -x" |
| 6481 | else |
| 6482 | ac_executable_p="test -f" |
| 6483 | fi |
| 6484 | rm -f conf$$.file |
| 6485 | |
| 6486 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6487 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6489 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6490 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6491 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6492 | else |
| 6493 | case "$MSGMERGE" in |
| 6494 | [\\/]* | ?:[\\/]*) |
| 6495 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6496 | ;; |
| 6497 | *) |
| 6498 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6499 | for ac_dir in $PATH; do |
| 6500 | IFS="$ac_save_IFS" |
| 6501 | test -z "$ac_dir" && ac_dir=. |
| 6502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6503 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6504 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6505 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6506 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6507 | break 2 |
| 6508 | fi |
| 6509 | fi |
| 6510 | done |
| 6511 | done |
| 6512 | IFS="$ac_save_IFS" |
| 6513 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6514 | ;; |
| 6515 | esac |
| 6516 | fi |
| 6517 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6518 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6520 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6521 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6523 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | fi |
| 6525 | |
| 6526 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6527 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6529 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6530 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6531 | |
| 6532 | |
| 6533 | ac_config_commands="$ac_config_commands po-directories" |
| 6534 | |
| 6535 | |
| 6536 | |
| 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6538 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6539 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6540 | $as_echo_n "(cached) " >&6 |
| 6541 | else |
| 6542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6543 | /* end confdefs.h. */ |
| 6544 | |
| 6545 | #include <features.h> |
| 6546 | #ifdef __GNU_LIBRARY__ |
| 6547 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6548 | Lucky GNU user |
| 6549 | #endif |
| 6550 | #endif |
| 6551 | |
| 6552 | _ACEOF |
| 6553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6554 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6555 | ac_cv_gnu_library_2=yes |
| 6556 | else |
| 6557 | ac_cv_gnu_library_2=no |
| 6558 | fi |
| 6559 | rm -f conftest* |
| 6560 | |
| 6561 | |
| 6562 | |
| 6563 | fi |
| 6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6565 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6566 | |
| 6567 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6568 | |
| 6569 | |
| 6570 | if test -n "$ac_tool_prefix"; then |
| 6571 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6572 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6574 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6575 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6576 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6577 | else |
| 6578 | if test -n "$RANLIB"; then |
| 6579 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6580 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6582 | for as_dir in $PATH |
| 6583 | do |
| 6584 | IFS=$as_save_IFS |
| 6585 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6586 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6590 | break 2 |
| 6591 | fi |
| 6592 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6593 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6594 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6595 | |
| 6596 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6597 | fi |
| 6598 | RANLIB=$ac_cv_prog_RANLIB |
| 6599 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6601 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6602 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6604 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6605 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6606 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6607 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | fi |
| 6609 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6610 | ac_ct_RANLIB=$RANLIB |
| 6611 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6612 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6614 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6615 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6616 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6617 | else |
| 6618 | if test -n "$ac_ct_RANLIB"; then |
| 6619 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6620 | else |
| 6621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6622 | for as_dir in $PATH |
| 6623 | do |
| 6624 | IFS=$as_save_IFS |
| 6625 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6626 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6628 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6630 | break 2 |
| 6631 | fi |
| 6632 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6633 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6634 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6636 | fi |
| 6637 | fi |
| 6638 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6639 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6641 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6644 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6645 | fi |
| 6646 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6647 | if test "x$ac_ct_RANLIB" = x; then |
| 6648 | RANLIB=":" |
| 6649 | else |
| 6650 | case $cross_compiling:$ac_tool_warned in |
| 6651 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6654 | ac_tool_warned=yes ;; |
| 6655 | esac |
| 6656 | RANLIB=$ac_ct_RANLIB |
| 6657 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6658 | else |
| 6659 | RANLIB="$ac_cv_prog_RANLIB" |
| 6660 | fi |
| 6661 | |
| 6662 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6663 | |
| 6664 | CFLAG_VISIBILITY= |
| 6665 | HAVE_VISIBILITY=0 |
| 6666 | if test -n "$GCC"; then |
| 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6668 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6669 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6670 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6671 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6672 | |
| 6673 | gl_save_CFLAGS="$CFLAGS" |
| 6674 | CFLAGS="$CFLAGS -Werror" |
| 6675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6676 | /* end confdefs.h. */ |
| 6677 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6678 | int |
| 6679 | main () |
| 6680 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6681 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6682 | ; |
| 6683 | return 0; |
| 6684 | } |
| 6685 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6686 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6687 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6689 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6690 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6692 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6693 | fi |
| 6694 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6696 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6698 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6699 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6700 | $as_echo_n "(cached) " >&6 |
| 6701 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6702 | |
| 6703 | gl_save_CFLAGS="$CFLAGS" |
| 6704 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6705 | if test $gl_cv_cc_vis_werror = yes; then |
| 6706 | CFLAGS="$CFLAGS -Werror" |
| 6707 | fi |
| 6708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6709 | /* end confdefs.h. */ |
| 6710 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6711 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6712 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6713 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6714 | void dummyfunc (void) {} |
| 6715 | |
| 6716 | int |
| 6717 | main () |
| 6718 | { |
| 6719 | |
| 6720 | ; |
| 6721 | return 0; |
| 6722 | } |
| 6723 | _ACEOF |
| 6724 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6725 | gl_cv_cc_visibility=yes |
| 6726 | else |
| 6727 | gl_cv_cc_visibility=no |
| 6728 | fi |
| 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6730 | CFLAGS="$gl_save_CFLAGS" |
| 6731 | fi |
| 6732 | |
| 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6734 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6735 | if test $gl_cv_cc_visibility = yes; then |
| 6736 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6737 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6738 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6739 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6740 | |
| 6741 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6742 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6743 | cat >>confdefs.h <<_ACEOF |
| 6744 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6745 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6746 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6747 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6749 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6750 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6751 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6752 | else |
| 6753 | ac_cv_c_inline=no |
| 6754 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6756 | /* end confdefs.h. */ |
| 6757 | #ifndef __cplusplus |
| 6758 | typedef int foo_t; |
| 6759 | static $ac_kw foo_t static_foo () {return 0; } |
| 6760 | $ac_kw foo_t foo () {return 0; } |
| 6761 | #endif |
| 6762 | |
| 6763 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6764 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6765 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6768 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6769 | done |
| 6770 | |
| 6771 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6773 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6774 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6776 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6777 | *) |
| 6778 | case $ac_cv_c_inline in |
| 6779 | no) ac_val=;; |
| 6780 | *) ac_val=$ac_cv_c_inline;; |
| 6781 | esac |
| 6782 | cat >>confdefs.h <<_ACEOF |
| 6783 | #ifndef __cplusplus |
| 6784 | #define inline $ac_val |
| 6785 | #endif |
| 6786 | _ACEOF |
| 6787 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6788 | esac |
| 6789 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6790 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6791 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6792 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6793 | else |
| 6794 | |
| 6795 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6796 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6797 | _ACEOF |
| 6798 | |
| 6799 | fi |
| 6800 | |
| 6801 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6803 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6804 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6805 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6808 | /* end confdefs.h. */ |
| 6809 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6810 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | int |
| 6812 | main () |
| 6813 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6814 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | ; |
| 6816 | return 0; |
| 6817 | } |
| 6818 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6819 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6820 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6822 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6827 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6828 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6829 | |
| 6830 | cat >>confdefs.h <<_ACEOF |
| 6831 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6832 | _ACEOF |
| 6833 | |
| 6834 | fi |
| 6835 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6836 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6837 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6839 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6840 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6841 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6842 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6844 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6845 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | int |
| 6847 | main () |
| 6848 | { |
| 6849 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6850 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | ; |
| 6852 | return 0; |
| 6853 | } |
| 6854 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6855 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6856 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6857 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6858 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6859 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6860 | rm -f core conftest.err conftest.$ac_objext \ |
| 6861 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6862 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6864 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6865 | if test $ac_cv_working_alloca_h = yes; then |
| 6866 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6867 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6868 | |
| 6869 | fi |
| 6870 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6872 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6873 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6874 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6878 | #ifdef __GNUC__ |
| 6879 | # define alloca __builtin_alloca |
| 6880 | #else |
| 6881 | # ifdef _MSC_VER |
| 6882 | # include <malloc.h> |
| 6883 | # define alloca _alloca |
| 6884 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6885 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6886 | # include <alloca.h> |
| 6887 | # else |
| 6888 | # ifdef _AIX |
| 6889 | #pragma alloca |
| 6890 | # else |
| 6891 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6892 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6893 | # endif |
| 6894 | # endif |
| 6895 | # endif |
| 6896 | # endif |
| 6897 | #endif |
| 6898 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6899 | int |
| 6900 | main () |
| 6901 | { |
| 6902 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6903 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6904 | ; |
| 6905 | return 0; |
| 6906 | } |
| 6907 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6908 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6909 | ac_cv_func_alloca_works=yes |
| 6910 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6911 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6912 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6913 | rm -f core conftest.err conftest.$ac_objext \ |
| 6914 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6915 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6917 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6919 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6920 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6921 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6922 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6923 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6924 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6925 | # that cause trouble. Some versions do not even contain alloca or |
| 6926 | # contain a buggy version. If you still want to use their alloca, |
| 6927 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6929 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6930 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6931 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6932 | |
| 6933 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6935 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6936 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6937 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6938 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6940 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6941 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6942 | webecray |
| 6943 | #else |
| 6944 | wenotbecray |
| 6945 | #endif |
| 6946 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6947 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6949 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6950 | ac_cv_os_cray=yes |
| 6951 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6952 | ac_cv_os_cray=no |
| 6953 | fi |
| 6954 | rm -f conftest* |
| 6955 | |
| 6956 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6958 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6959 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6960 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6961 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6962 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6963 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | |
| 6965 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6966 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6967 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6968 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6969 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6970 | fi |
| 6971 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6972 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6973 | fi |
| 6974 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6976 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6977 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6978 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6979 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6980 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6981 | ac_cv_c_stack_direction=0 |
| 6982 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6984 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6985 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6986 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6987 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6988 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6989 | int dir, dummy = 0; |
| 6990 | if (! addr) |
| 6991 | addr = &dummy; |
| 6992 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 6993 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 6994 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6995 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6996 | |
| 6997 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6998 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6999 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7000 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7001 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7002 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7003 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7004 | ac_cv_c_stack_direction=1 |
| 7005 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7006 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7007 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7009 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7010 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7011 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7012 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7014 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7015 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7016 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | _ACEOF |
| 7018 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7019 | |
| 7020 | fi |
| 7021 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7022 | |
| 7023 | |
| 7024 | |
| 7025 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7026 | do : |
| 7027 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7028 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7029 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7030 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7031 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7032 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7033 | _ACEOF |
| 7034 | |
| 7035 | fi |
| 7036 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7037 | done |
| 7038 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7039 | |
| 7040 | |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7046 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7047 | do : |
| 7048 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7049 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7050 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7051 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7052 | _ACEOF |
| 7053 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7054 | fi |
| 7055 | done |
| 7056 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7058 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7059 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7060 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7061 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7062 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7063 | ac_cv_func_mmap_fixed_mapped=no |
| 7064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7066 | /* end confdefs.h. */ |
| 7067 | $ac_includes_default |
| 7068 | /* malloc might have been renamed as rpl_malloc. */ |
| 7069 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7070 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7071 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7072 | Here is a matrix of mmap possibilities: |
| 7073 | mmap private not fixed |
| 7074 | mmap private fixed at somewhere currently unmapped |
| 7075 | mmap private fixed at somewhere already mapped |
| 7076 | mmap shared not fixed |
| 7077 | mmap shared fixed at somewhere currently unmapped |
| 7078 | mmap shared fixed at somewhere already mapped |
| 7079 | For private mappings, we should verify that changes cannot be read() |
| 7080 | back from the file, nor mmap's back from the file at a different |
| 7081 | address. (There have been systems where private was not correctly |
| 7082 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7083 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7085 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7086 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7087 | |
| 7088 | Grep wants private fixed already mapped. |
| 7089 | The main things grep needs to know about mmap are: |
| 7090 | * does it exist and is it safe to write into the mmap'd area |
| 7091 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7092 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7093 | #include <fcntl.h> |
| 7094 | #include <sys/mman.h> |
| 7095 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7096 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7097 | char *malloc (); |
| 7098 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7099 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7100 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7101 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7102 | # ifdef _SC_PAGESIZE |
| 7103 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7104 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7105 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7106 | # include <sys/param.h> |
| 7107 | # ifdef EXEC_PAGESIZE |
| 7108 | # define getpagesize() EXEC_PAGESIZE |
| 7109 | # else /* no EXEC_PAGESIZE */ |
| 7110 | # ifdef NBPG |
| 7111 | # define getpagesize() NBPG * CLSIZE |
| 7112 | # ifndef CLSIZE |
| 7113 | # define CLSIZE 1 |
| 7114 | # endif /* no CLSIZE */ |
| 7115 | # else /* no NBPG */ |
| 7116 | # ifdef NBPC |
| 7117 | # define getpagesize() NBPC |
| 7118 | # else /* no NBPC */ |
| 7119 | # ifdef PAGESIZE |
| 7120 | # define getpagesize() PAGESIZE |
| 7121 | # endif /* PAGESIZE */ |
| 7122 | # endif /* no NBPC */ |
| 7123 | # endif /* no NBPG */ |
| 7124 | # endif /* no EXEC_PAGESIZE */ |
| 7125 | # else /* no HAVE_SYS_PARAM_H */ |
| 7126 | # define getpagesize() 8192 /* punt totally */ |
| 7127 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7128 | # endif /* no _SC_PAGESIZE */ |
| 7129 | |
| 7130 | #endif /* no HAVE_GETPAGESIZE */ |
| 7131 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7132 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7133 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7134 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7135 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7136 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7137 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7138 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7141 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7142 | /* First, make a file with some known garbage in it. */ |
| 7143 | data = (char *) malloc (pagesize); |
| 7144 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7145 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | for (i = 0; i < pagesize; ++i) |
| 7147 | *(data + i) = rand (); |
| 7148 | umask (0); |
| 7149 | fd = creat ("conftest.mmap", 0600); |
| 7150 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7151 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7152 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7153 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7154 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7155 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7156 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7157 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7158 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7159 | if (fd2 < 0) |
| 7160 | return 4; |
| 7161 | cdata2 = ""; |
| 7162 | if (write (fd2, cdata2, 1) != 1) |
| 7163 | return 5; |
| 7164 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7165 | if (data2 == MAP_FAILED) |
| 7166 | return 6; |
| 7167 | for (i = 0; i < pagesize; ++i) |
| 7168 | if (*(data2 + i)) |
| 7169 | return 7; |
| 7170 | close (fd2); |
| 7171 | if (munmap (data2, pagesize)) |
| 7172 | return 8; |
| 7173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7174 | /* Next, try to mmap the file at a fixed address which already has |
| 7175 | something else allocated at it. If we can, also make sure that |
| 7176 | we see the same garbage. */ |
| 7177 | fd = open ("conftest.mmap", O_RDWR); |
| 7178 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7179 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7180 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7181 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7182 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7183 | for (i = 0; i < pagesize; ++i) |
| 7184 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7185 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7186 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7187 | /* Finally, make sure that changes to the mapped area do not |
| 7188 | percolate back to the file as seen by read(). (This is a bug on |
| 7189 | some variants of i386 svr4.0.) */ |
| 7190 | for (i = 0; i < pagesize; ++i) |
| 7191 | *(data2 + i) = *(data2 + i) + 1; |
| 7192 | data3 = (char *) malloc (pagesize); |
| 7193 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7194 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7195 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7196 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7197 | for (i = 0; i < pagesize; ++i) |
| 7198 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7199 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7200 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7201 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7202 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7204 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7205 | ac_cv_func_mmap_fixed_mapped=yes |
| 7206 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7207 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7208 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7210 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7212 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7213 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7215 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7216 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7217 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7218 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7219 | |
| 7220 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7221 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7222 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7223 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7224 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7226 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7227 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7228 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7229 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7230 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7231 | gt_cv_int_divbyzero_sigfpe= |
| 7232 | case "$host_os" in |
| 7233 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7234 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7235 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7236 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7237 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7238 | i[34567]86 | x86_64) |
| 7239 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7240 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7241 | ;; |
| 7242 | esac |
| 7243 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7244 | if test "$cross_compiling" = yes; then : |
| 7245 | |
| 7246 | # Guess based on the CPU. |
| 7247 | case "$host_cpu" in |
| 7248 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7249 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7250 | *) |
| 7251 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7252 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7253 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7254 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7256 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7257 | |
| 7258 | #include <stdlib.h> |
| 7259 | #include <signal.h> |
| 7260 | |
| 7261 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7262 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7263 | { |
| 7264 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7265 | exit (sig != SIGFPE); |
| 7266 | } |
| 7267 | |
| 7268 | int x = 1; |
| 7269 | int y = 0; |
| 7270 | int z; |
| 7271 | int nan; |
| 7272 | |
| 7273 | int main () |
| 7274 | { |
| 7275 | signal (SIGFPE, sigfpe_handler); |
| 7276 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7277 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7278 | signal (SIGTRAP, sigfpe_handler); |
| 7279 | #endif |
| 7280 | /* Linux/SPARC yields signal SIGILL. */ |
| 7281 | #if defined (__sparc__) && defined (__linux__) |
| 7282 | signal (SIGILL, sigfpe_handler); |
| 7283 | #endif |
| 7284 | |
| 7285 | z = x / y; |
| 7286 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7287 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7288 | } |
| 7289 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7290 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7291 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7292 | gt_cv_int_divbyzero_sigfpe=yes |
| 7293 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7294 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7295 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7297 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7298 | fi |
| 7299 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7300 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7301 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7302 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7304 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7305 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7306 | *yes) value=1;; |
| 7307 | *) value=0;; |
| 7308 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7309 | |
| 7310 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7311 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7312 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7313 | |
| 7314 | |
| 7315 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7317 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7318 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7319 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7320 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7323 | |
| 7324 | #include <sys/types.h> |
| 7325 | #include <inttypes.h> |
| 7326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | int |
| 7328 | main () |
| 7329 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7330 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7331 | ; |
| 7332 | return 0; |
| 7333 | } |
| 7334 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7335 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7336 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7337 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7338 | gl_cv_header_inttypes_h=no |
| 7339 | fi |
| 7340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7341 | fi |
| 7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7343 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7344 | if test $gl_cv_header_inttypes_h = yes; then |
| 7345 | |
| 7346 | cat >>confdefs.h <<_ACEOF |
| 7347 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7348 | _ACEOF |
| 7349 | |
| 7350 | fi |
| 7351 | |
| 7352 | |
| 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7354 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7355 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7356 | $as_echo_n "(cached) " >&6 |
| 7357 | else |
| 7358 | ac_cv_type_unsigned_long_long_int=yes |
| 7359 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7361 | /* end confdefs.h. */ |
| 7362 | |
| 7363 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7364 | implementations with broken preprocessors. Perhaps this can |
| 7365 | be revisited in 2012. In the meantime, code should not expect |
| 7366 | #if to work with literals wider than 32 bits. */ |
| 7367 | /* Test literals. */ |
| 7368 | long long int ll = 9223372036854775807ll; |
| 7369 | long long int nll = -9223372036854775807LL; |
| 7370 | unsigned long long int ull = 18446744073709551615ULL; |
| 7371 | /* Test constant expressions. */ |
| 7372 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7373 | ? 1 : -1)]; |
| 7374 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7375 | ? 1 : -1)]; |
| 7376 | int i = 63; |
| 7377 | int |
| 7378 | main () |
| 7379 | { |
| 7380 | /* Test availability of runtime routines for shift and division. */ |
| 7381 | long long int llmax = 9223372036854775807ll; |
| 7382 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7383 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7384 | | (llmax / ll) | (llmax % ll) |
| 7385 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7386 | | (ullmax / ull) | (ullmax % ull)); |
| 7387 | ; |
| 7388 | return 0; |
| 7389 | } |
| 7390 | |
| 7391 | _ACEOF |
| 7392 | if ac_fn_c_try_link "$LINENO"; then : |
| 7393 | |
| 7394 | else |
| 7395 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7396 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7397 | rm -f core conftest.err conftest.$ac_objext \ |
| 7398 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7399 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7400 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7402 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7403 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7404 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7405 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7406 | |
| 7407 | fi |
| 7408 | |
| 7409 | |
| 7410 | |
| 7411 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7412 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7413 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7414 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7415 | && ac_type='unsigned long long' \ |
| 7416 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7417 | |
| 7418 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7419 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7420 | _ACEOF |
| 7421 | |
| 7422 | else |
| 7423 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7424 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7425 | |
| 7426 | fi |
| 7427 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7428 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7429 | for ac_header in inttypes.h |
| 7430 | do : |
| 7431 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7432 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7433 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7434 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7435 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7436 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7437 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7438 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7439 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7440 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7441 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7443 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7444 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7445 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7446 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7447 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7449 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7450 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7451 | #include <inttypes.h> |
| 7452 | #ifdef PRId32 |
| 7453 | char *p = PRId32; |
| 7454 | #endif |
| 7455 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7456 | int |
| 7457 | main () |
| 7458 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7459 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7460 | ; |
| 7461 | return 0; |
| 7462 | } |
| 7463 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7464 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7465 | gt_cv_inttypes_pri_broken=no |
| 7466 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7467 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7468 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7470 | |
| 7471 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7473 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7474 | fi |
| 7475 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7476 | |
| 7477 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7478 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7479 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7480 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7481 | PRI_MACROS_BROKEN=1 |
| 7482 | else |
| 7483 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7484 | fi |
| 7485 | |
| 7486 | |
| 7487 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7488 | |
| 7489 | |
| 7490 | |
| 7491 | |
| 7492 | # Check whether --enable-threads was given. |
| 7493 | if test "${enable_threads+set}" = set; then : |
| 7494 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7495 | else |
| 7496 | if test -n "$gl_use_threads_default"; then |
| 7497 | gl_use_threads="$gl_use_threads_default" |
| 7498 | else |
| 7499 | case "$host_os" in |
| 7500 | osf*) gl_use_threads=no ;; |
| 7501 | cygwin*) |
| 7502 | case `uname -r` in |
| 7503 | 1.[0-5].*) gl_use_threads=no ;; |
| 7504 | *) gl_use_threads=yes ;; |
| 7505 | esac |
| 7506 | ;; |
| 7507 | *) gl_use_threads=yes ;; |
| 7508 | esac |
| 7509 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7510 | |
| 7511 | fi |
| 7512 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7513 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7514 | # For using <pthread.h>: |
| 7515 | case "$host_os" in |
| 7516 | osf*) |
| 7517 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7518 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7519 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7520 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7521 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7522 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7523 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7524 | ;; |
| 7525 | esac |
| 7526 | # Some systems optimize for single-threaded programs by default, and |
| 7527 | # need special flags to disable these optimizations. For example, the |
| 7528 | # definition of 'errno' in <errno.h>. |
| 7529 | case "$host_os" in |
| 7530 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7531 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7532 | esac |
| 7533 | fi |
| 7534 | |
| 7535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7536 | |
| 7537 | |
| 7538 | |
| 7539 | if test "X$prefix" = "XNONE"; then |
| 7540 | acl_final_prefix="$ac_default_prefix" |
| 7541 | else |
| 7542 | acl_final_prefix="$prefix" |
| 7543 | fi |
| 7544 | if test "X$exec_prefix" = "XNONE"; then |
| 7545 | acl_final_exec_prefix='${prefix}' |
| 7546 | else |
| 7547 | acl_final_exec_prefix="$exec_prefix" |
| 7548 | fi |
| 7549 | acl_save_prefix="$prefix" |
| 7550 | prefix="$acl_final_prefix" |
| 7551 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7552 | prefix="$acl_save_prefix" |
| 7553 | |
| 7554 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7556 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7557 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7558 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7559 | else |
| 7560 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7561 | fi |
| 7562 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7563 | # Prepare PATH_SEPARATOR. |
| 7564 | # The user is always right. |
| 7565 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7566 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7567 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7568 | # so we have to set that as well for the test. |
| 7569 | PATH_SEPARATOR=: |
| 7570 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7571 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7572 | || PATH_SEPARATOR=';' |
| 7573 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7574 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7575 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7576 | ac_prog=ld |
| 7577 | if test "$GCC" = yes; then |
| 7578 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7580 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7581 | case $host in |
| 7582 | *-*-mingw*) |
| 7583 | # gcc leaves a trailing carriage return which upsets mingw |
| 7584 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7585 | *) |
| 7586 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7587 | esac |
| 7588 | case $ac_prog in |
| 7589 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7590 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7591 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7592 | # Canonicalize the pathname of ld |
| 7593 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7594 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7595 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | done |
| 7597 | test -z "$LD" && LD="$ac_prog" |
| 7598 | ;; |
| 7599 | "") |
| 7600 | # If it fails, then pretend we aren't using GCC. |
| 7601 | ac_prog=ld |
| 7602 | ;; |
| 7603 | *) |
| 7604 | # If it is relative, then search for the first ld in PATH. |
| 7605 | with_gnu_ld=unknown |
| 7606 | ;; |
| 7607 | esac |
| 7608 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7610 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7611 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7613 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7614 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7615 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7616 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | else |
| 7618 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7619 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7621 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7622 | test -z "$ac_dir" && ac_dir=. |
| 7623 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7624 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7625 | # Check to see if the program is GNU ld. I'd rather use --version, |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7626 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7627 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7628 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7630 | test "$with_gnu_ld" != no && break |
| 7631 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7632 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7633 | test "$with_gnu_ld" != yes && break |
| 7634 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7635 | esac |
| 7636 | fi |
| 7637 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7638 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7639 | else |
| 7640 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7641 | fi |
| 7642 | fi |
| 7643 | |
| 7644 | LD="$acl_cv_path_LD" |
| 7645 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7647 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7648 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7650 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7652 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7654 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7655 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7656 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7657 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7658 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7659 | case `$LD -v 2>&1 </dev/null` in |
| 7660 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7661 | acl_cv_prog_gnu_ld=yes |
| 7662 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7663 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7664 | acl_cv_prog_gnu_ld=no |
| 7665 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7666 | esac |
| 7667 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7669 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7671 | |
| 7672 | |
| 7673 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7674 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7676 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7677 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7678 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7679 | else |
| 7680 | |
| 7681 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7682 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7683 | . ./conftest.sh |
| 7684 | rm -f ./conftest.sh |
| 7685 | acl_cv_rpath=done |
| 7686 | |
| 7687 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7689 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7690 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7691 | acl_libext="$acl_cv_libext" |
| 7692 | acl_shlibext="$acl_cv_shlibext" |
| 7693 | acl_libname_spec="$acl_cv_libname_spec" |
| 7694 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7695 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7696 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7697 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7698 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7699 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7700 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7701 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7702 | else |
| 7703 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7704 | fi |
| 7705 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7706 | |
| 7707 | |
| 7708 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7709 | acl_libdirstem=lib |
| 7710 | acl_libdirstem2= |
| 7711 | case "$host_os" in |
| 7712 | solaris*) |
| 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7714 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7715 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7716 | $as_echo_n "(cached) " >&6 |
| 7717 | else |
| 7718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7719 | /* end confdefs.h. */ |
| 7720 | |
| 7721 | #ifdef _LP64 |
| 7722 | sixtyfour bits |
| 7723 | #endif |
| 7724 | |
| 7725 | _ACEOF |
| 7726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7727 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7728 | gl_cv_solaris_64bit=yes |
| 7729 | else |
| 7730 | gl_cv_solaris_64bit=no |
| 7731 | fi |
| 7732 | rm -f conftest* |
| 7733 | |
| 7734 | |
| 7735 | fi |
| 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7737 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7738 | if test $gl_cv_solaris_64bit = yes; then |
| 7739 | acl_libdirstem=lib/64 |
| 7740 | case "$host_cpu" in |
| 7741 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7742 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7743 | esac |
| 7744 | fi |
| 7745 | ;; |
| 7746 | *) |
| 7747 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7748 | if test -n "$searchpath"; then |
| 7749 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7750 | for searchdir in $searchpath; do |
| 7751 | if test -d "$searchdir"; then |
| 7752 | case "$searchdir" in |
| 7753 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7754 | */../ | */.. ) |
| 7755 | # Better ignore directories of this form. They are misleading. |
| 7756 | ;; |
| 7757 | *) searchdir=`cd "$searchdir" && pwd` |
| 7758 | case "$searchdir" in |
| 7759 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7760 | esac ;; |
| 7761 | esac |
| 7762 | fi |
| 7763 | done |
| 7764 | IFS="$acl_save_IFS" |
| 7765 | fi |
| 7766 | ;; |
| 7767 | esac |
| 7768 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7769 | |
| 7770 | |
| 7771 | |
| 7772 | gl_threads_api=none |
| 7773 | LIBTHREAD= |
| 7774 | LTLIBTHREAD= |
| 7775 | LIBMULTITHREAD= |
| 7776 | LTLIBMULTITHREAD= |
| 7777 | if test "$gl_use_threads" != no; then |
| 7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7779 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7780 | if ${gl_cv_have_weak+:} false; then : |
| 7781 | $as_echo_n "(cached) " >&6 |
| 7782 | else |
| 7783 | gl_cv_have_weak=no |
| 7784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7785 | /* end confdefs.h. */ |
| 7786 | extern void xyzzy (); |
| 7787 | #pragma weak xyzzy |
| 7788 | int |
| 7789 | main () |
| 7790 | { |
| 7791 | xyzzy(); |
| 7792 | ; |
| 7793 | return 0; |
| 7794 | } |
| 7795 | _ACEOF |
| 7796 | if ac_fn_c_try_link "$LINENO"; then : |
| 7797 | gl_cv_have_weak=maybe |
| 7798 | fi |
| 7799 | rm -f core conftest.err conftest.$ac_objext \ |
| 7800 | conftest$ac_exeext conftest.$ac_ext |
| 7801 | if test $gl_cv_have_weak = maybe; then |
| 7802 | if test "$cross_compiling" = yes; then : |
| 7803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7804 | /* end confdefs.h. */ |
| 7805 | #ifdef __ELF__ |
| 7806 | Extensible Linking Format |
| 7807 | #endif |
| 7808 | |
| 7809 | _ACEOF |
| 7810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7811 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7812 | gl_cv_have_weak="guessing yes" |
| 7813 | else |
| 7814 | gl_cv_have_weak="guessing no" |
| 7815 | fi |
| 7816 | rm -f conftest* |
| 7817 | |
| 7818 | |
| 7819 | else |
| 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7821 | /* end confdefs.h. */ |
| 7822 | |
| 7823 | #include <stdio.h> |
| 7824 | #pragma weak fputs |
| 7825 | int main () |
| 7826 | { |
| 7827 | return (fputs == NULL); |
| 7828 | } |
| 7829 | _ACEOF |
| 7830 | if ac_fn_c_try_run "$LINENO"; then : |
| 7831 | gl_cv_have_weak=yes |
| 7832 | else |
| 7833 | gl_cv_have_weak=no |
| 7834 | fi |
| 7835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7836 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7837 | fi |
| 7838 | |
| 7839 | fi |
| 7840 | |
| 7841 | fi |
| 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 7843 | $as_echo "$gl_cv_have_weak" >&6; } |
| 7844 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7845 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 7846 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 7847 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7848 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 7849 | gl_have_pthread_h=yes |
| 7850 | else |
| 7851 | gl_have_pthread_h=no |
| 7852 | fi |
| 7853 | |
| 7854 | |
| 7855 | if test "$gl_have_pthread_h" = yes; then |
| 7856 | # Other possible tests: |
| 7857 | # -lpthreads (FSU threads, PCthreads) |
| 7858 | # -lgthreads |
| 7859 | gl_have_pthread= |
| 7860 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 7861 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 7862 | # the second one only in libpthread, and lock.c needs it. |
| 7863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7864 | /* end confdefs.h. */ |
| 7865 | #include <pthread.h> |
| 7866 | int |
| 7867 | main () |
| 7868 | { |
| 7869 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 7870 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 7871 | ; |
| 7872 | return 0; |
| 7873 | } |
| 7874 | _ACEOF |
| 7875 | if ac_fn_c_try_link "$LINENO"; then : |
| 7876 | gl_have_pthread=yes |
| 7877 | fi |
| 7878 | rm -f core conftest.err conftest.$ac_objext \ |
| 7879 | conftest$ac_exeext conftest.$ac_ext |
| 7880 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 7881 | # since it is defined as a macro on OSF/1.) |
| 7882 | if test -n "$gl_have_pthread"; then |
| 7883 | # The program links fine without libpthread. But it may actually |
| 7884 | # need to link with libpthread in order to create multiple threads. |
| 7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7886 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7887 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7888 | $as_echo_n "(cached) " >&6 |
| 7889 | else |
| 7890 | ac_check_lib_save_LIBS=$LIBS |
| 7891 | LIBS="-lpthread $LIBS" |
| 7892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7893 | /* end confdefs.h. */ |
| 7894 | |
| 7895 | /* Override any GCC internal prototype to avoid an error. |
| 7896 | Use char because int might match the return type of a GCC |
| 7897 | builtin and then its argument prototype would still apply. */ |
| 7898 | #ifdef __cplusplus |
| 7899 | extern "C" |
| 7900 | #endif |
| 7901 | char pthread_kill (); |
| 7902 | int |
| 7903 | main () |
| 7904 | { |
| 7905 | return pthread_kill (); |
| 7906 | ; |
| 7907 | return 0; |
| 7908 | } |
| 7909 | _ACEOF |
| 7910 | if ac_fn_c_try_link "$LINENO"; then : |
| 7911 | ac_cv_lib_pthread_pthread_kill=yes |
| 7912 | else |
| 7913 | ac_cv_lib_pthread_pthread_kill=no |
| 7914 | fi |
| 7915 | rm -f core conftest.err conftest.$ac_objext \ |
| 7916 | conftest$ac_exeext conftest.$ac_ext |
| 7917 | LIBS=$ac_check_lib_save_LIBS |
| 7918 | fi |
| 7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7920 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7921 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7922 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7923 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 7924 | # Therefore pthread_in_use() needs to actually try to create a |
| 7925 | # thread: pthread_create from libc will fail, whereas |
| 7926 | # pthread_create will actually create a thread. |
| 7927 | case "$host_os" in |
| 7928 | solaris* | hpux*) |
| 7929 | |
| 7930 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 7931 | |
| 7932 | esac |
| 7933 | |
| 7934 | fi |
| 7935 | |
| 7936 | else |
| 7937 | # Some library is needed. Try libpthread and libc_r. |
| 7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7939 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7940 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7941 | $as_echo_n "(cached) " >&6 |
| 7942 | else |
| 7943 | ac_check_lib_save_LIBS=$LIBS |
| 7944 | LIBS="-lpthread $LIBS" |
| 7945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7946 | /* end confdefs.h. */ |
| 7947 | |
| 7948 | /* Override any GCC internal prototype to avoid an error. |
| 7949 | Use char because int might match the return type of a GCC |
| 7950 | builtin and then its argument prototype would still apply. */ |
| 7951 | #ifdef __cplusplus |
| 7952 | extern "C" |
| 7953 | #endif |
| 7954 | char pthread_kill (); |
| 7955 | int |
| 7956 | main () |
| 7957 | { |
| 7958 | return pthread_kill (); |
| 7959 | ; |
| 7960 | return 0; |
| 7961 | } |
| 7962 | _ACEOF |
| 7963 | if ac_fn_c_try_link "$LINENO"; then : |
| 7964 | ac_cv_lib_pthread_pthread_kill=yes |
| 7965 | else |
| 7966 | ac_cv_lib_pthread_pthread_kill=no |
| 7967 | fi |
| 7968 | rm -f core conftest.err conftest.$ac_objext \ |
| 7969 | conftest$ac_exeext conftest.$ac_ext |
| 7970 | LIBS=$ac_check_lib_save_LIBS |
| 7971 | fi |
| 7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7973 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7974 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7975 | gl_have_pthread=yes |
| 7976 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 7977 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7978 | fi |
| 7979 | |
| 7980 | if test -z "$gl_have_pthread"; then |
| 7981 | # For FreeBSD 4. |
| 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 7983 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 7984 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 7985 | $as_echo_n "(cached) " >&6 |
| 7986 | else |
| 7987 | ac_check_lib_save_LIBS=$LIBS |
| 7988 | LIBS="-lc_r $LIBS" |
| 7989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7990 | /* end confdefs.h. */ |
| 7991 | |
| 7992 | /* Override any GCC internal prototype to avoid an error. |
| 7993 | Use char because int might match the return type of a GCC |
| 7994 | builtin and then its argument prototype would still apply. */ |
| 7995 | #ifdef __cplusplus |
| 7996 | extern "C" |
| 7997 | #endif |
| 7998 | char pthread_kill (); |
| 7999 | int |
| 8000 | main () |
| 8001 | { |
| 8002 | return pthread_kill (); |
| 8003 | ; |
| 8004 | return 0; |
| 8005 | } |
| 8006 | _ACEOF |
| 8007 | if ac_fn_c_try_link "$LINENO"; then : |
| 8008 | ac_cv_lib_c_r_pthread_kill=yes |
| 8009 | else |
| 8010 | ac_cv_lib_c_r_pthread_kill=no |
| 8011 | fi |
| 8012 | rm -f core conftest.err conftest.$ac_objext \ |
| 8013 | conftest$ac_exeext conftest.$ac_ext |
| 8014 | LIBS=$ac_check_lib_save_LIBS |
| 8015 | fi |
| 8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8017 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8018 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8019 | gl_have_pthread=yes |
| 8020 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8021 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8022 | fi |
| 8023 | |
| 8024 | fi |
| 8025 | fi |
| 8026 | if test -n "$gl_have_pthread"; then |
| 8027 | gl_threads_api=posix |
| 8028 | |
| 8029 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8030 | |
| 8031 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8032 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8033 | |
| 8034 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8035 | |
| 8036 | LIBTHREAD= |
| 8037 | LTLIBTHREAD= |
| 8038 | fi |
| 8039 | fi |
| 8040 | fi |
| 8041 | fi |
| 8042 | fi |
| 8043 | if test -z "$gl_have_pthread"; then |
| 8044 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8045 | gl_have_solaristhread= |
| 8046 | gl_save_LIBS="$LIBS" |
| 8047 | LIBS="$LIBS -lthread" |
| 8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8049 | /* end confdefs.h. */ |
| 8050 | |
| 8051 | #include <thread.h> |
| 8052 | #include <synch.h> |
| 8053 | |
| 8054 | int |
| 8055 | main () |
| 8056 | { |
| 8057 | thr_self(); |
| 8058 | ; |
| 8059 | return 0; |
| 8060 | } |
| 8061 | _ACEOF |
| 8062 | if ac_fn_c_try_link "$LINENO"; then : |
| 8063 | gl_have_solaristhread=yes |
| 8064 | fi |
| 8065 | rm -f core conftest.err conftest.$ac_objext \ |
| 8066 | conftest$ac_exeext conftest.$ac_ext |
| 8067 | LIBS="$gl_save_LIBS" |
| 8068 | if test -n "$gl_have_solaristhread"; then |
| 8069 | gl_threads_api=solaris |
| 8070 | LIBTHREAD=-lthread |
| 8071 | LTLIBTHREAD=-lthread |
| 8072 | LIBMULTITHREAD="$LIBTHREAD" |
| 8073 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8074 | |
| 8075 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8076 | |
| 8077 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8078 | |
| 8079 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8080 | |
| 8081 | LIBTHREAD= |
| 8082 | LTLIBTHREAD= |
| 8083 | fi |
| 8084 | fi |
| 8085 | fi |
| 8086 | fi |
| 8087 | if test "$gl_use_threads" = pth; then |
| 8088 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8095 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8096 | if ${ac_cv_libpth_libs+:} false; then : |
| 8097 | $as_echo_n "(cached) " >&6 |
| 8098 | else |
| 8099 | |
| 8100 | |
| 8101 | |
| 8102 | |
| 8103 | |
| 8104 | |
| 8105 | |
| 8106 | |
| 8107 | use_additional=yes |
| 8108 | |
| 8109 | acl_save_prefix="$prefix" |
| 8110 | prefix="$acl_final_prefix" |
| 8111 | acl_save_exec_prefix="$exec_prefix" |
| 8112 | exec_prefix="$acl_final_exec_prefix" |
| 8113 | |
| 8114 | eval additional_includedir=\"$includedir\" |
| 8115 | eval additional_libdir=\"$libdir\" |
| 8116 | |
| 8117 | exec_prefix="$acl_save_exec_prefix" |
| 8118 | prefix="$acl_save_prefix" |
| 8119 | |
| 8120 | |
| 8121 | # Check whether --with-libpth-prefix was given. |
| 8122 | if test "${with_libpth_prefix+set}" = set; then : |
| 8123 | withval=$with_libpth_prefix; |
| 8124 | if test "X$withval" = "Xno"; then |
| 8125 | use_additional=no |
| 8126 | else |
| 8127 | if test "X$withval" = "X"; then |
| 8128 | |
| 8129 | acl_save_prefix="$prefix" |
| 8130 | prefix="$acl_final_prefix" |
| 8131 | acl_save_exec_prefix="$exec_prefix" |
| 8132 | exec_prefix="$acl_final_exec_prefix" |
| 8133 | |
| 8134 | eval additional_includedir=\"$includedir\" |
| 8135 | eval additional_libdir=\"$libdir\" |
| 8136 | |
| 8137 | exec_prefix="$acl_save_exec_prefix" |
| 8138 | prefix="$acl_save_prefix" |
| 8139 | |
| 8140 | else |
| 8141 | additional_includedir="$withval/include" |
| 8142 | additional_libdir="$withval/$acl_libdirstem" |
| 8143 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8144 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8145 | additional_libdir="$withval/$acl_libdirstem2" |
| 8146 | fi |
| 8147 | fi |
| 8148 | fi |
| 8149 | |
| 8150 | fi |
| 8151 | |
| 8152 | LIBPTH= |
| 8153 | LTLIBPTH= |
| 8154 | INCPTH= |
| 8155 | LIBPTH_PREFIX= |
| 8156 | HAVE_LIBPTH= |
| 8157 | rpathdirs= |
| 8158 | ltrpathdirs= |
| 8159 | names_already_handled= |
| 8160 | names_next_round='pth ' |
| 8161 | while test -n "$names_next_round"; do |
| 8162 | names_this_round="$names_next_round" |
| 8163 | names_next_round= |
| 8164 | for name in $names_this_round; do |
| 8165 | already_handled= |
| 8166 | for n in $names_already_handled; do |
| 8167 | if test "$n" = "$name"; then |
| 8168 | already_handled=yes |
| 8169 | break |
| 8170 | fi |
| 8171 | done |
| 8172 | if test -z "$already_handled"; then |
| 8173 | names_already_handled="$names_already_handled $name" |
| 8174 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8175 | eval value=\"\$HAVE_LIB$uppername\" |
| 8176 | if test -n "$value"; then |
| 8177 | if test "$value" = yes; then |
| 8178 | eval value=\"\$LIB$uppername\" |
| 8179 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8180 | eval value=\"\$LTLIB$uppername\" |
| 8181 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8182 | else |
| 8183 | : |
| 8184 | fi |
| 8185 | else |
| 8186 | found_dir= |
| 8187 | found_la= |
| 8188 | found_so= |
| 8189 | found_a= |
| 8190 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8191 | if test -n "$acl_shlibext"; then |
| 8192 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8193 | else |
| 8194 | shrext= |
| 8195 | fi |
| 8196 | if test $use_additional = yes; then |
| 8197 | dir="$additional_libdir" |
| 8198 | if test -n "$acl_shlibext"; then |
| 8199 | if test -f "$dir/$libname$shrext"; then |
| 8200 | found_dir="$dir" |
| 8201 | found_so="$dir/$libname$shrext" |
| 8202 | else |
| 8203 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8204 | ver=`(cd "$dir" && \ |
| 8205 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8206 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8207 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8208 | | sed 1q ) 2>/dev/null` |
| 8209 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8210 | found_dir="$dir" |
| 8211 | found_so="$dir/$libname$shrext.$ver" |
| 8212 | fi |
| 8213 | else |
| 8214 | eval library_names=\"$acl_library_names_spec\" |
| 8215 | for f in $library_names; do |
| 8216 | if test -f "$dir/$f"; then |
| 8217 | found_dir="$dir" |
| 8218 | found_so="$dir/$f" |
| 8219 | break |
| 8220 | fi |
| 8221 | done |
| 8222 | fi |
| 8223 | fi |
| 8224 | fi |
| 8225 | if test "X$found_dir" = "X"; then |
| 8226 | if test -f "$dir/$libname.$acl_libext"; then |
| 8227 | found_dir="$dir" |
| 8228 | found_a="$dir/$libname.$acl_libext" |
| 8229 | fi |
| 8230 | fi |
| 8231 | if test "X$found_dir" != "X"; then |
| 8232 | if test -f "$dir/$libname.la"; then |
| 8233 | found_la="$dir/$libname.la" |
| 8234 | fi |
| 8235 | fi |
| 8236 | fi |
| 8237 | if test "X$found_dir" = "X"; then |
| 8238 | for x in $LDFLAGS $LTLIBPTH; do |
| 8239 | |
| 8240 | acl_save_prefix="$prefix" |
| 8241 | prefix="$acl_final_prefix" |
| 8242 | acl_save_exec_prefix="$exec_prefix" |
| 8243 | exec_prefix="$acl_final_exec_prefix" |
| 8244 | eval x=\"$x\" |
| 8245 | exec_prefix="$acl_save_exec_prefix" |
| 8246 | prefix="$acl_save_prefix" |
| 8247 | |
| 8248 | case "$x" in |
| 8249 | -L*) |
| 8250 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8251 | if test -n "$acl_shlibext"; then |
| 8252 | if test -f "$dir/$libname$shrext"; then |
| 8253 | found_dir="$dir" |
| 8254 | found_so="$dir/$libname$shrext" |
| 8255 | else |
| 8256 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8257 | ver=`(cd "$dir" && \ |
| 8258 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8259 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8260 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8261 | | sed 1q ) 2>/dev/null` |
| 8262 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8263 | found_dir="$dir" |
| 8264 | found_so="$dir/$libname$shrext.$ver" |
| 8265 | fi |
| 8266 | else |
| 8267 | eval library_names=\"$acl_library_names_spec\" |
| 8268 | for f in $library_names; do |
| 8269 | if test -f "$dir/$f"; then |
| 8270 | found_dir="$dir" |
| 8271 | found_so="$dir/$f" |
| 8272 | break |
| 8273 | fi |
| 8274 | done |
| 8275 | fi |
| 8276 | fi |
| 8277 | fi |
| 8278 | if test "X$found_dir" = "X"; then |
| 8279 | if test -f "$dir/$libname.$acl_libext"; then |
| 8280 | found_dir="$dir" |
| 8281 | found_a="$dir/$libname.$acl_libext" |
| 8282 | fi |
| 8283 | fi |
| 8284 | if test "X$found_dir" != "X"; then |
| 8285 | if test -f "$dir/$libname.la"; then |
| 8286 | found_la="$dir/$libname.la" |
| 8287 | fi |
| 8288 | fi |
| 8289 | ;; |
| 8290 | esac |
| 8291 | if test "X$found_dir" != "X"; then |
| 8292 | break |
| 8293 | fi |
| 8294 | done |
| 8295 | fi |
| 8296 | if test "X$found_dir" != "X"; then |
| 8297 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8298 | if test "X$found_so" != "X"; then |
| 8299 | if test "$enable_rpath" = no \ |
| 8300 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8301 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8302 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8303 | else |
| 8304 | haveit= |
| 8305 | for x in $ltrpathdirs; do |
| 8306 | if test "X$x" = "X$found_dir"; then |
| 8307 | haveit=yes |
| 8308 | break |
| 8309 | fi |
| 8310 | done |
| 8311 | if test -z "$haveit"; then |
| 8312 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8313 | fi |
| 8314 | if test "$acl_hardcode_direct" = yes; then |
| 8315 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8316 | else |
| 8317 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8318 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8319 | haveit= |
| 8320 | for x in $rpathdirs; do |
| 8321 | if test "X$x" = "X$found_dir"; then |
| 8322 | haveit=yes |
| 8323 | break |
| 8324 | fi |
| 8325 | done |
| 8326 | if test -z "$haveit"; then |
| 8327 | rpathdirs="$rpathdirs $found_dir" |
| 8328 | fi |
| 8329 | else |
| 8330 | haveit= |
| 8331 | for x in $LDFLAGS $LIBPTH; do |
| 8332 | |
| 8333 | acl_save_prefix="$prefix" |
| 8334 | prefix="$acl_final_prefix" |
| 8335 | acl_save_exec_prefix="$exec_prefix" |
| 8336 | exec_prefix="$acl_final_exec_prefix" |
| 8337 | eval x=\"$x\" |
| 8338 | exec_prefix="$acl_save_exec_prefix" |
| 8339 | prefix="$acl_save_prefix" |
| 8340 | |
| 8341 | if test "X$x" = "X-L$found_dir"; then |
| 8342 | haveit=yes |
| 8343 | break |
| 8344 | fi |
| 8345 | done |
| 8346 | if test -z "$haveit"; then |
| 8347 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8348 | fi |
| 8349 | if test "$acl_hardcode_minus_L" != no; then |
| 8350 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8351 | else |
| 8352 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8353 | fi |
| 8354 | fi |
| 8355 | fi |
| 8356 | fi |
| 8357 | else |
| 8358 | if test "X$found_a" != "X"; then |
| 8359 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8360 | else |
| 8361 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8362 | fi |
| 8363 | fi |
| 8364 | additional_includedir= |
| 8365 | case "$found_dir" in |
| 8366 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8367 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8368 | if test "$name" = 'pth'; then |
| 8369 | LIBPTH_PREFIX="$basedir" |
| 8370 | fi |
| 8371 | additional_includedir="$basedir/include" |
| 8372 | ;; |
| 8373 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8374 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8375 | if test "$name" = 'pth'; then |
| 8376 | LIBPTH_PREFIX="$basedir" |
| 8377 | fi |
| 8378 | additional_includedir="$basedir/include" |
| 8379 | ;; |
| 8380 | esac |
| 8381 | if test "X$additional_includedir" != "X"; then |
| 8382 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8383 | haveit= |
| 8384 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8385 | if test -n "$GCC"; then |
| 8386 | case $host_os in |
| 8387 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8388 | esac |
| 8389 | fi |
| 8390 | fi |
| 8391 | if test -z "$haveit"; then |
| 8392 | for x in $CPPFLAGS $INCPTH; do |
| 8393 | |
| 8394 | acl_save_prefix="$prefix" |
| 8395 | prefix="$acl_final_prefix" |
| 8396 | acl_save_exec_prefix="$exec_prefix" |
| 8397 | exec_prefix="$acl_final_exec_prefix" |
| 8398 | eval x=\"$x\" |
| 8399 | exec_prefix="$acl_save_exec_prefix" |
| 8400 | prefix="$acl_save_prefix" |
| 8401 | |
| 8402 | if test "X$x" = "X-I$additional_includedir"; then |
| 8403 | haveit=yes |
| 8404 | break |
| 8405 | fi |
| 8406 | done |
| 8407 | if test -z "$haveit"; then |
| 8408 | if test -d "$additional_includedir"; then |
| 8409 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8410 | fi |
| 8411 | fi |
| 8412 | fi |
| 8413 | fi |
| 8414 | fi |
| 8415 | if test -n "$found_la"; then |
| 8416 | save_libdir="$libdir" |
| 8417 | case "$found_la" in |
| 8418 | */* | *\\*) . "$found_la" ;; |
| 8419 | *) . "./$found_la" ;; |
| 8420 | esac |
| 8421 | libdir="$save_libdir" |
| 8422 | for dep in $dependency_libs; do |
| 8423 | case "$dep" in |
| 8424 | -L*) |
| 8425 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8426 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8427 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8428 | haveit= |
| 8429 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8430 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8431 | if test -n "$GCC"; then |
| 8432 | case $host_os in |
| 8433 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8434 | esac |
| 8435 | fi |
| 8436 | fi |
| 8437 | if test -z "$haveit"; then |
| 8438 | haveit= |
| 8439 | for x in $LDFLAGS $LIBPTH; do |
| 8440 | |
| 8441 | acl_save_prefix="$prefix" |
| 8442 | prefix="$acl_final_prefix" |
| 8443 | acl_save_exec_prefix="$exec_prefix" |
| 8444 | exec_prefix="$acl_final_exec_prefix" |
| 8445 | eval x=\"$x\" |
| 8446 | exec_prefix="$acl_save_exec_prefix" |
| 8447 | prefix="$acl_save_prefix" |
| 8448 | |
| 8449 | if test "X$x" = "X-L$additional_libdir"; then |
| 8450 | haveit=yes |
| 8451 | break |
| 8452 | fi |
| 8453 | done |
| 8454 | if test -z "$haveit"; then |
| 8455 | if test -d "$additional_libdir"; then |
| 8456 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8457 | fi |
| 8458 | fi |
| 8459 | haveit= |
| 8460 | for x in $LDFLAGS $LTLIBPTH; do |
| 8461 | |
| 8462 | acl_save_prefix="$prefix" |
| 8463 | prefix="$acl_final_prefix" |
| 8464 | acl_save_exec_prefix="$exec_prefix" |
| 8465 | exec_prefix="$acl_final_exec_prefix" |
| 8466 | eval x=\"$x\" |
| 8467 | exec_prefix="$acl_save_exec_prefix" |
| 8468 | prefix="$acl_save_prefix" |
| 8469 | |
| 8470 | if test "X$x" = "X-L$additional_libdir"; then |
| 8471 | haveit=yes |
| 8472 | break |
| 8473 | fi |
| 8474 | done |
| 8475 | if test -z "$haveit"; then |
| 8476 | if test -d "$additional_libdir"; then |
| 8477 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8478 | fi |
| 8479 | fi |
| 8480 | fi |
| 8481 | fi |
| 8482 | ;; |
| 8483 | -R*) |
| 8484 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8485 | if test "$enable_rpath" != no; then |
| 8486 | haveit= |
| 8487 | for x in $rpathdirs; do |
| 8488 | if test "X$x" = "X$dir"; then |
| 8489 | haveit=yes |
| 8490 | break |
| 8491 | fi |
| 8492 | done |
| 8493 | if test -z "$haveit"; then |
| 8494 | rpathdirs="$rpathdirs $dir" |
| 8495 | fi |
| 8496 | haveit= |
| 8497 | for x in $ltrpathdirs; do |
| 8498 | if test "X$x" = "X$dir"; then |
| 8499 | haveit=yes |
| 8500 | break |
| 8501 | fi |
| 8502 | done |
| 8503 | if test -z "$haveit"; then |
| 8504 | ltrpathdirs="$ltrpathdirs $dir" |
| 8505 | fi |
| 8506 | fi |
| 8507 | ;; |
| 8508 | -l*) |
| 8509 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8510 | ;; |
| 8511 | *.la) |
| 8512 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8513 | ;; |
| 8514 | *) |
| 8515 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8516 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8517 | ;; |
| 8518 | esac |
| 8519 | done |
| 8520 | fi |
| 8521 | else |
| 8522 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8523 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8524 | fi |
| 8525 | fi |
| 8526 | fi |
| 8527 | done |
| 8528 | done |
| 8529 | if test "X$rpathdirs" != "X"; then |
| 8530 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8531 | alldirs= |
| 8532 | for found_dir in $rpathdirs; do |
| 8533 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8534 | done |
| 8535 | acl_save_libdir="$libdir" |
| 8536 | libdir="$alldirs" |
| 8537 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8538 | libdir="$acl_save_libdir" |
| 8539 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8540 | else |
| 8541 | for found_dir in $rpathdirs; do |
| 8542 | acl_save_libdir="$libdir" |
| 8543 | libdir="$found_dir" |
| 8544 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8545 | libdir="$acl_save_libdir" |
| 8546 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8547 | done |
| 8548 | fi |
| 8549 | fi |
| 8550 | if test "X$ltrpathdirs" != "X"; then |
| 8551 | for found_dir in $ltrpathdirs; do |
| 8552 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8553 | done |
| 8554 | fi |
| 8555 | |
| 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | ac_cv_libpth_libs="$LIBPTH" |
| 8562 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8563 | ac_cv_libpth_cppflags="$INCPTH" |
| 8564 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8565 | |
| 8566 | fi |
| 8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8568 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8569 | LIBPTH="$ac_cv_libpth_libs" |
| 8570 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8571 | INCPTH="$ac_cv_libpth_cppflags" |
| 8572 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8573 | |
| 8574 | for element in $INCPTH; do |
| 8575 | haveit= |
| 8576 | for x in $CPPFLAGS; do |
| 8577 | |
| 8578 | acl_save_prefix="$prefix" |
| 8579 | prefix="$acl_final_prefix" |
| 8580 | acl_save_exec_prefix="$exec_prefix" |
| 8581 | exec_prefix="$acl_final_exec_prefix" |
| 8582 | eval x=\"$x\" |
| 8583 | exec_prefix="$acl_save_exec_prefix" |
| 8584 | prefix="$acl_save_prefix" |
| 8585 | |
| 8586 | if test "X$x" = "X$element"; then |
| 8587 | haveit=yes |
| 8588 | break |
| 8589 | fi |
| 8590 | done |
| 8591 | if test -z "$haveit"; then |
| 8592 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8593 | fi |
| 8594 | done |
| 8595 | |
| 8596 | |
| 8597 | |
| 8598 | |
| 8599 | HAVE_LIBPTH=yes |
| 8600 | |
| 8601 | |
| 8602 | |
| 8603 | gl_have_pth= |
| 8604 | gl_save_LIBS="$LIBS" |
| 8605 | LIBS="$LIBS $LIBPTH" |
| 8606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8607 | /* end confdefs.h. */ |
| 8608 | #include <pth.h> |
| 8609 | int |
| 8610 | main () |
| 8611 | { |
| 8612 | pth_self(); |
| 8613 | ; |
| 8614 | return 0; |
| 8615 | } |
| 8616 | _ACEOF |
| 8617 | if ac_fn_c_try_link "$LINENO"; then : |
| 8618 | gl_have_pth=yes |
| 8619 | fi |
| 8620 | rm -f core conftest.err conftest.$ac_objext \ |
| 8621 | conftest$ac_exeext conftest.$ac_ext |
| 8622 | LIBS="$gl_save_LIBS" |
| 8623 | if test -n "$gl_have_pth"; then |
| 8624 | gl_threads_api=pth |
| 8625 | LIBTHREAD="$LIBPTH" |
| 8626 | LTLIBTHREAD="$LTLIBPTH" |
| 8627 | LIBMULTITHREAD="$LIBTHREAD" |
| 8628 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8629 | |
| 8630 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8631 | |
| 8632 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8633 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8634 | |
| 8635 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8636 | |
| 8637 | LIBTHREAD= |
| 8638 | LTLIBTHREAD= |
| 8639 | fi |
| 8640 | fi |
| 8641 | else |
| 8642 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8643 | fi |
| 8644 | fi |
| 8645 | if test -z "$gl_have_pthread"; then |
| 8646 | case "$gl_use_threads" in |
| 8647 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8648 | if { case "$host_os" in |
| 8649 | mingw*) true;; |
| 8650 | *) false;; |
| 8651 | esac |
| 8652 | }; then |
| 8653 | gl_threads_api=windows |
| 8654 | |
| 8655 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8656 | |
| 8657 | fi |
| 8658 | ;; |
| 8659 | esac |
| 8660 | fi |
| 8661 | fi |
| 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8663 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8665 | $as_echo "$gl_threads_api" >&6; } |
| 8666 | |
| 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | if test "$gl_threads_api" = posix; then |
| 8678 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8679 | # pthread_rwlock_* functions. |
| 8680 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8681 | " |
| 8682 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8683 | |
| 8684 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8685 | |
| 8686 | fi |
| 8687 | |
| 8688 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8690 | /* end confdefs.h. */ |
| 8691 | |
| 8692 | #include <pthread.h> |
| 8693 | int |
| 8694 | main () |
| 8695 | { |
| 8696 | |
| 8697 | #if __FreeBSD__ == 4 |
| 8698 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8699 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8700 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8701 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8702 | #else |
| 8703 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8704 | return !x; |
| 8705 | #endif |
| 8706 | |
| 8707 | ; |
| 8708 | return 0; |
| 8709 | } |
| 8710 | _ACEOF |
| 8711 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8712 | |
| 8713 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8714 | |
| 8715 | fi |
| 8716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8717 | fi |
| 8718 | : |
| 8719 | |
| 8720 | |
| 8721 | |
| 8722 | |
| 8723 | |
| 8724 | |
| 8725 | |
| 8726 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8731 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8732 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8733 | acl_save_prefix="$prefix" |
| 8734 | prefix="$acl_final_prefix" |
| 8735 | acl_save_exec_prefix="$exec_prefix" |
| 8736 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8737 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8738 | eval additional_includedir=\"$includedir\" |
| 8739 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8740 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8741 | exec_prefix="$acl_save_exec_prefix" |
| 8742 | prefix="$acl_save_prefix" |
| 8743 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8744 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8745 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8746 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8747 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8748 | if test "X$withval" = "Xno"; then |
| 8749 | use_additional=no |
| 8750 | else |
| 8751 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8752 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8753 | acl_save_prefix="$prefix" |
| 8754 | prefix="$acl_final_prefix" |
| 8755 | acl_save_exec_prefix="$exec_prefix" |
| 8756 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8757 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8758 | eval additional_includedir=\"$includedir\" |
| 8759 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8760 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8761 | exec_prefix="$acl_save_exec_prefix" |
| 8762 | prefix="$acl_save_prefix" |
| 8763 | |
| 8764 | else |
| 8765 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8766 | additional_libdir="$withval/$acl_libdirstem" |
| 8767 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8768 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8769 | additional_libdir="$withval/$acl_libdirstem2" |
| 8770 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8771 | fi |
| 8772 | fi |
| 8773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8774 | fi |
| 8775 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8776 | LIBICONV= |
| 8777 | LTLIBICONV= |
| 8778 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8779 | LIBICONV_PREFIX= |
| 8780 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8781 | rpathdirs= |
| 8782 | ltrpathdirs= |
| 8783 | names_already_handled= |
| 8784 | names_next_round='iconv ' |
| 8785 | while test -n "$names_next_round"; do |
| 8786 | names_this_round="$names_next_round" |
| 8787 | names_next_round= |
| 8788 | for name in $names_this_round; do |
| 8789 | already_handled= |
| 8790 | for n in $names_already_handled; do |
| 8791 | if test "$n" = "$name"; then |
| 8792 | already_handled=yes |
| 8793 | break |
| 8794 | fi |
| 8795 | done |
| 8796 | if test -z "$already_handled"; then |
| 8797 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8798 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8799 | eval value=\"\$HAVE_LIB$uppername\" |
| 8800 | if test -n "$value"; then |
| 8801 | if test "$value" = yes; then |
| 8802 | eval value=\"\$LIB$uppername\" |
| 8803 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8804 | eval value=\"\$LTLIB$uppername\" |
| 8805 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8806 | else |
| 8807 | : |
| 8808 | fi |
| 8809 | else |
| 8810 | found_dir= |
| 8811 | found_la= |
| 8812 | found_so= |
| 8813 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8814 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8815 | if test -n "$acl_shlibext"; then |
| 8816 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8817 | else |
| 8818 | shrext= |
| 8819 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8820 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8821 | dir="$additional_libdir" |
| 8822 | if test -n "$acl_shlibext"; then |
| 8823 | if test -f "$dir/$libname$shrext"; then |
| 8824 | found_dir="$dir" |
| 8825 | found_so="$dir/$libname$shrext" |
| 8826 | else |
| 8827 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8828 | ver=`(cd "$dir" && \ |
| 8829 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8830 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8831 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8832 | | sed 1q ) 2>/dev/null` |
| 8833 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8834 | found_dir="$dir" |
| 8835 | found_so="$dir/$libname$shrext.$ver" |
| 8836 | fi |
| 8837 | else |
| 8838 | eval library_names=\"$acl_library_names_spec\" |
| 8839 | for f in $library_names; do |
| 8840 | if test -f "$dir/$f"; then |
| 8841 | found_dir="$dir" |
| 8842 | found_so="$dir/$f" |
| 8843 | break |
| 8844 | fi |
| 8845 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8846 | fi |
| 8847 | fi |
| 8848 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8849 | if test "X$found_dir" = "X"; then |
| 8850 | if test -f "$dir/$libname.$acl_libext"; then |
| 8851 | found_dir="$dir" |
| 8852 | found_a="$dir/$libname.$acl_libext" |
| 8853 | fi |
| 8854 | fi |
| 8855 | if test "X$found_dir" != "X"; then |
| 8856 | if test -f "$dir/$libname.la"; then |
| 8857 | found_la="$dir/$libname.la" |
| 8858 | fi |
| 8859 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8860 | fi |
| 8861 | if test "X$found_dir" = "X"; then |
| 8862 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8863 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8864 | acl_save_prefix="$prefix" |
| 8865 | prefix="$acl_final_prefix" |
| 8866 | acl_save_exec_prefix="$exec_prefix" |
| 8867 | exec_prefix="$acl_final_exec_prefix" |
| 8868 | eval x=\"$x\" |
| 8869 | exec_prefix="$acl_save_exec_prefix" |
| 8870 | prefix="$acl_save_prefix" |
| 8871 | |
| 8872 | case "$x" in |
| 8873 | -L*) |
| 8874 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8875 | if test -n "$acl_shlibext"; then |
| 8876 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8877 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8878 | found_so="$dir/$libname$shrext" |
| 8879 | else |
| 8880 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8881 | ver=`(cd "$dir" && \ |
| 8882 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8883 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8884 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8885 | | sed 1q ) 2>/dev/null` |
| 8886 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8887 | found_dir="$dir" |
| 8888 | found_so="$dir/$libname$shrext.$ver" |
| 8889 | fi |
| 8890 | else |
| 8891 | eval library_names=\"$acl_library_names_spec\" |
| 8892 | for f in $library_names; do |
| 8893 | if test -f "$dir/$f"; then |
| 8894 | found_dir="$dir" |
| 8895 | found_so="$dir/$f" |
| 8896 | break |
| 8897 | fi |
| 8898 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8899 | fi |
| 8900 | fi |
| 8901 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8902 | if test "X$found_dir" = "X"; then |
| 8903 | if test -f "$dir/$libname.$acl_libext"; then |
| 8904 | found_dir="$dir" |
| 8905 | found_a="$dir/$libname.$acl_libext" |
| 8906 | fi |
| 8907 | fi |
| 8908 | if test "X$found_dir" != "X"; then |
| 8909 | if test -f "$dir/$libname.la"; then |
| 8910 | found_la="$dir/$libname.la" |
| 8911 | fi |
| 8912 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8913 | ;; |
| 8914 | esac |
| 8915 | if test "X$found_dir" != "X"; then |
| 8916 | break |
| 8917 | fi |
| 8918 | done |
| 8919 | fi |
| 8920 | if test "X$found_dir" != "X"; then |
| 8921 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8922 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8923 | if test "$enable_rpath" = no \ |
| 8924 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8925 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8926 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8927 | else |
| 8928 | haveit= |
| 8929 | for x in $ltrpathdirs; do |
| 8930 | if test "X$x" = "X$found_dir"; then |
| 8931 | haveit=yes |
| 8932 | break |
| 8933 | fi |
| 8934 | done |
| 8935 | if test -z "$haveit"; then |
| 8936 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8937 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8938 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8939 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8940 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8941 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8942 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8943 | haveit= |
| 8944 | for x in $rpathdirs; do |
| 8945 | if test "X$x" = "X$found_dir"; then |
| 8946 | haveit=yes |
| 8947 | break |
| 8948 | fi |
| 8949 | done |
| 8950 | if test -z "$haveit"; then |
| 8951 | rpathdirs="$rpathdirs $found_dir" |
| 8952 | fi |
| 8953 | else |
| 8954 | haveit= |
| 8955 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8956 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8957 | acl_save_prefix="$prefix" |
| 8958 | prefix="$acl_final_prefix" |
| 8959 | acl_save_exec_prefix="$exec_prefix" |
| 8960 | exec_prefix="$acl_final_exec_prefix" |
| 8961 | eval x=\"$x\" |
| 8962 | exec_prefix="$acl_save_exec_prefix" |
| 8963 | prefix="$acl_save_prefix" |
| 8964 | |
| 8965 | if test "X$x" = "X-L$found_dir"; then |
| 8966 | haveit=yes |
| 8967 | break |
| 8968 | fi |
| 8969 | done |
| 8970 | if test -z "$haveit"; then |
| 8971 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8972 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8973 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8974 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8975 | else |
| 8976 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8977 | fi |
| 8978 | fi |
| 8979 | fi |
| 8980 | fi |
| 8981 | else |
| 8982 | if test "X$found_a" != "X"; then |
| 8983 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8984 | else |
| 8985 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8986 | fi |
| 8987 | fi |
| 8988 | additional_includedir= |
| 8989 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8990 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8991 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8992 | if test "$name" = 'iconv'; then |
| 8993 | LIBICONV_PREFIX="$basedir" |
| 8994 | fi |
| 8995 | additional_includedir="$basedir/include" |
| 8996 | ;; |
| 8997 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8998 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8999 | if test "$name" = 'iconv'; then |
| 9000 | LIBICONV_PREFIX="$basedir" |
| 9001 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9002 | additional_includedir="$basedir/include" |
| 9003 | ;; |
| 9004 | esac |
| 9005 | if test "X$additional_includedir" != "X"; then |
| 9006 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9007 | haveit= |
| 9008 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9009 | if test -n "$GCC"; then |
| 9010 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9011 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9012 | esac |
| 9013 | fi |
| 9014 | fi |
| 9015 | if test -z "$haveit"; then |
| 9016 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9017 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9018 | acl_save_prefix="$prefix" |
| 9019 | prefix="$acl_final_prefix" |
| 9020 | acl_save_exec_prefix="$exec_prefix" |
| 9021 | exec_prefix="$acl_final_exec_prefix" |
| 9022 | eval x=\"$x\" |
| 9023 | exec_prefix="$acl_save_exec_prefix" |
| 9024 | prefix="$acl_save_prefix" |
| 9025 | |
| 9026 | if test "X$x" = "X-I$additional_includedir"; then |
| 9027 | haveit=yes |
| 9028 | break |
| 9029 | fi |
| 9030 | done |
| 9031 | if test -z "$haveit"; then |
| 9032 | if test -d "$additional_includedir"; then |
| 9033 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9034 | fi |
| 9035 | fi |
| 9036 | fi |
| 9037 | fi |
| 9038 | fi |
| 9039 | if test -n "$found_la"; then |
| 9040 | save_libdir="$libdir" |
| 9041 | case "$found_la" in |
| 9042 | */* | *\\*) . "$found_la" ;; |
| 9043 | *) . "./$found_la" ;; |
| 9044 | esac |
| 9045 | libdir="$save_libdir" |
| 9046 | for dep in $dependency_libs; do |
| 9047 | case "$dep" in |
| 9048 | -L*) |
| 9049 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9050 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9051 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9052 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9053 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9054 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9055 | if test -n "$GCC"; then |
| 9056 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9057 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9058 | esac |
| 9059 | fi |
| 9060 | fi |
| 9061 | if test -z "$haveit"; then |
| 9062 | haveit= |
| 9063 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9064 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9065 | acl_save_prefix="$prefix" |
| 9066 | prefix="$acl_final_prefix" |
| 9067 | acl_save_exec_prefix="$exec_prefix" |
| 9068 | exec_prefix="$acl_final_exec_prefix" |
| 9069 | eval x=\"$x\" |
| 9070 | exec_prefix="$acl_save_exec_prefix" |
| 9071 | prefix="$acl_save_prefix" |
| 9072 | |
| 9073 | if test "X$x" = "X-L$additional_libdir"; then |
| 9074 | haveit=yes |
| 9075 | break |
| 9076 | fi |
| 9077 | done |
| 9078 | if test -z "$haveit"; then |
| 9079 | if test -d "$additional_libdir"; then |
| 9080 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9081 | fi |
| 9082 | fi |
| 9083 | haveit= |
| 9084 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9085 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9086 | acl_save_prefix="$prefix" |
| 9087 | prefix="$acl_final_prefix" |
| 9088 | acl_save_exec_prefix="$exec_prefix" |
| 9089 | exec_prefix="$acl_final_exec_prefix" |
| 9090 | eval x=\"$x\" |
| 9091 | exec_prefix="$acl_save_exec_prefix" |
| 9092 | prefix="$acl_save_prefix" |
| 9093 | |
| 9094 | if test "X$x" = "X-L$additional_libdir"; then |
| 9095 | haveit=yes |
| 9096 | break |
| 9097 | fi |
| 9098 | done |
| 9099 | if test -z "$haveit"; then |
| 9100 | if test -d "$additional_libdir"; then |
| 9101 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9102 | fi |
| 9103 | fi |
| 9104 | fi |
| 9105 | fi |
| 9106 | ;; |
| 9107 | -R*) |
| 9108 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9109 | if test "$enable_rpath" != no; then |
| 9110 | haveit= |
| 9111 | for x in $rpathdirs; do |
| 9112 | if test "X$x" = "X$dir"; then |
| 9113 | haveit=yes |
| 9114 | break |
| 9115 | fi |
| 9116 | done |
| 9117 | if test -z "$haveit"; then |
| 9118 | rpathdirs="$rpathdirs $dir" |
| 9119 | fi |
| 9120 | haveit= |
| 9121 | for x in $ltrpathdirs; do |
| 9122 | if test "X$x" = "X$dir"; then |
| 9123 | haveit=yes |
| 9124 | break |
| 9125 | fi |
| 9126 | done |
| 9127 | if test -z "$haveit"; then |
| 9128 | ltrpathdirs="$ltrpathdirs $dir" |
| 9129 | fi |
| 9130 | fi |
| 9131 | ;; |
| 9132 | -l*) |
| 9133 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9134 | ;; |
| 9135 | *.la) |
| 9136 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9137 | ;; |
| 9138 | *) |
| 9139 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9140 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9141 | ;; |
| 9142 | esac |
| 9143 | done |
| 9144 | fi |
| 9145 | else |
| 9146 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9147 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9148 | fi |
| 9149 | fi |
| 9150 | fi |
| 9151 | done |
| 9152 | done |
| 9153 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9154 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9155 | alldirs= |
| 9156 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9157 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9158 | done |
| 9159 | acl_save_libdir="$libdir" |
| 9160 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9161 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9162 | libdir="$acl_save_libdir" |
| 9163 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9164 | else |
| 9165 | for found_dir in $rpathdirs; do |
| 9166 | acl_save_libdir="$libdir" |
| 9167 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9168 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9169 | libdir="$acl_save_libdir" |
| 9170 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9171 | done |
| 9172 | fi |
| 9173 | fi |
| 9174 | if test "X$ltrpathdirs" != "X"; then |
| 9175 | for found_dir in $ltrpathdirs; do |
| 9176 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9177 | done |
| 9178 | fi |
| 9179 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9180 | |
| 9181 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9183 | |
| 9184 | |
| 9185 | |
| 9186 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9187 | |
| 9188 | |
| 9189 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9190 | |
| 9191 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9192 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9193 | for element in $INCICONV; do |
| 9194 | haveit= |
| 9195 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9196 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9197 | acl_save_prefix="$prefix" |
| 9198 | prefix="$acl_final_prefix" |
| 9199 | acl_save_exec_prefix="$exec_prefix" |
| 9200 | exec_prefix="$acl_final_exec_prefix" |
| 9201 | eval x=\"$x\" |
| 9202 | exec_prefix="$acl_save_exec_prefix" |
| 9203 | prefix="$acl_save_prefix" |
| 9204 | |
| 9205 | if test "X$x" = "X$element"; then |
| 9206 | haveit=yes |
| 9207 | break |
| 9208 | fi |
| 9209 | done |
| 9210 | if test -z "$haveit"; then |
| 9211 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9212 | fi |
| 9213 | done |
| 9214 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9215 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9217 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9218 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9219 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9220 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9221 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9222 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9223 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9225 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9226 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9227 | #include <stdlib.h> |
| 9228 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9230 | int |
| 9231 | main () |
| 9232 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9233 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9234 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9235 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9236 | ; |
| 9237 | return 0; |
| 9238 | } |
| 9239 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9240 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9241 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9242 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9243 | rm -f core conftest.err conftest.$ac_objext \ |
| 9244 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9245 | if test "$am_cv_func_iconv" != yes; then |
| 9246 | am_save_LIBS="$LIBS" |
| 9247 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9249 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9250 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9251 | #include <stdlib.h> |
| 9252 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9253 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9254 | int |
| 9255 | main () |
| 9256 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9257 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9258 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9259 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9260 | ; |
| 9261 | return 0; |
| 9262 | } |
| 9263 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9264 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9265 | am_cv_lib_iconv=yes |
| 9266 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9267 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9268 | rm -f core conftest.err conftest.$ac_objext \ |
| 9269 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9270 | LIBS="$am_save_LIBS" |
| 9271 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9272 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9273 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9275 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9276 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9278 | $as_echo_n "checking for working iconv... " >&6; } |
| 9279 | if ${am_cv_func_iconv_works+:} false; then : |
| 9280 | $as_echo_n "(cached) " >&6 |
| 9281 | else |
| 9282 | |
| 9283 | am_save_LIBS="$LIBS" |
| 9284 | if test $am_cv_lib_iconv = yes; then |
| 9285 | LIBS="$LIBS $LIBICONV" |
| 9286 | fi |
| 9287 | if test "$cross_compiling" = yes; then : |
| 9288 | |
| 9289 | case "$host_os" in |
| 9290 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9291 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9292 | esac |
| 9293 | |
| 9294 | else |
| 9295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9296 | /* end confdefs.h. */ |
| 9297 | |
| 9298 | #include <iconv.h> |
| 9299 | #include <string.h> |
| 9300 | int main () |
| 9301 | { |
| 9302 | int result = 0; |
| 9303 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9304 | returns. */ |
| 9305 | { |
| 9306 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9307 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9308 | { |
| 9309 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9310 | char buf[10]; |
| 9311 | const char *inptr = input; |
| 9312 | size_t inbytesleft = strlen (input); |
| 9313 | char *outptr = buf; |
| 9314 | size_t outbytesleft = sizeof (buf); |
| 9315 | size_t res = iconv (cd_utf8_to_88591, |
| 9316 | (char **) &inptr, &inbytesleft, |
| 9317 | &outptr, &outbytesleft); |
| 9318 | if (res == 0) |
| 9319 | result |= 1; |
| 9320 | iconv_close (cd_utf8_to_88591); |
| 9321 | } |
| 9322 | } |
| 9323 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9324 | successful returns. */ |
| 9325 | { |
| 9326 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9327 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9328 | { |
| 9329 | static const char input[] = "\263"; |
| 9330 | char buf[10]; |
| 9331 | const char *inptr = input; |
| 9332 | size_t inbytesleft = strlen (input); |
| 9333 | char *outptr = buf; |
| 9334 | size_t outbytesleft = sizeof (buf); |
| 9335 | size_t res = iconv (cd_ascii_to_88591, |
| 9336 | (char **) &inptr, &inbytesleft, |
| 9337 | &outptr, &outbytesleft); |
| 9338 | if (res == 0) |
| 9339 | result |= 2; |
| 9340 | iconv_close (cd_ascii_to_88591); |
| 9341 | } |
| 9342 | } |
| 9343 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9344 | { |
| 9345 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9346 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9347 | { |
| 9348 | static const char input[] = "\304"; |
| 9349 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9350 | const char *inptr = input; |
| 9351 | size_t inbytesleft = 1; |
| 9352 | char *outptr = buf; |
| 9353 | size_t outbytesleft = 1; |
| 9354 | size_t res = iconv (cd_88591_to_utf8, |
| 9355 | (char **) &inptr, &inbytesleft, |
| 9356 | &outptr, &outbytesleft); |
| 9357 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9358 | result |= 4; |
| 9359 | iconv_close (cd_88591_to_utf8); |
| 9360 | } |
| 9361 | } |
| 9362 | #if 0 /* This bug could be worked around by the caller. */ |
| 9363 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9364 | { |
| 9365 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9366 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9367 | { |
| 9368 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9369 | char buf[50]; |
| 9370 | const char *inptr = input; |
| 9371 | size_t inbytesleft = strlen (input); |
| 9372 | char *outptr = buf; |
| 9373 | size_t outbytesleft = sizeof (buf); |
| 9374 | size_t res = iconv (cd_88591_to_utf8, |
| 9375 | (char **) &inptr, &inbytesleft, |
| 9376 | &outptr, &outbytesleft); |
| 9377 | if ((int)res > 0) |
| 9378 | result |= 8; |
| 9379 | iconv_close (cd_88591_to_utf8); |
| 9380 | } |
| 9381 | } |
| 9382 | #endif |
| 9383 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9384 | provided. */ |
| 9385 | if (/* Try standardized names. */ |
| 9386 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9387 | /* Try IRIX, OSF/1 names. */ |
| 9388 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9389 | /* Try AIX names. */ |
| 9390 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9391 | /* Try HP-UX names. */ |
| 9392 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9393 | result |= 16; |
| 9394 | return result; |
| 9395 | } |
| 9396 | _ACEOF |
| 9397 | if ac_fn_c_try_run "$LINENO"; then : |
| 9398 | am_cv_func_iconv_works=yes |
| 9399 | else |
| 9400 | am_cv_func_iconv_works=no |
| 9401 | fi |
| 9402 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9403 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9404 | fi |
| 9405 | |
| 9406 | LIBS="$am_save_LIBS" |
| 9407 | |
| 9408 | fi |
| 9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9410 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9411 | case "$am_cv_func_iconv_works" in |
| 9412 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9413 | *) am_func_iconv=yes ;; |
| 9414 | esac |
| 9415 | else |
| 9416 | am_func_iconv=no am_cv_lib_iconv=no |
| 9417 | fi |
| 9418 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9419 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9420 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9421 | |
| 9422 | fi |
| 9423 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9425 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9427 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9428 | else |
| 9429 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9430 | LIBICONV= |
| 9431 | LTLIBICONV= |
| 9432 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9433 | |
| 9434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9435 | |
| 9436 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9438 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9439 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9440 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9441 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9442 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9444 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9445 | |
| 9446 | #include <stdlib.h> |
| 9447 | #include <iconv.h> |
| 9448 | extern |
| 9449 | #ifdef __cplusplus |
| 9450 | "C" |
| 9451 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9452 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9453 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9454 | #else |
| 9455 | size_t iconv(); |
| 9456 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9457 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9458 | int |
| 9459 | main () |
| 9460 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9461 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9462 | ; |
| 9463 | return 0; |
| 9464 | } |
| 9465 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9466 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9467 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9468 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9469 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9472 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9473 | fi |
| 9474 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9475 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9477 | $am_cv_proto_iconv" >&5 |
| 9478 | $as_echo " |
| 9479 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9480 | |
| 9481 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9482 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9483 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9484 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9485 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9486 | fi |
| 9487 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9488 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9489 | |
| 9490 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9492 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9493 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9494 | int |
| 9495 | main () |
| 9496 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9497 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9498 | ; |
| 9499 | return 0; |
| 9500 | } |
| 9501 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9502 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9503 | |
| 9504 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9506 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9507 | rm -f core conftest.err conftest.$ac_objext \ |
| 9508 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9509 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9510 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9511 | do : |
| 9512 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9513 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9514 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9515 | cat >>confdefs.h <<_ACEOF |
| 9516 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9517 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9518 | |
| 9519 | fi |
| 9520 | |
| 9521 | done |
| 9522 | |
| 9523 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9524 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9525 | argz_stringify argz_next __fsetlocking |
| 9526 | do : |
| 9527 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9528 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9529 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9530 | cat >>confdefs.h <<_ACEOF |
| 9531 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9532 | _ACEOF |
| 9533 | |
| 9534 | fi |
| 9535 | done |
| 9536 | |
| 9537 | |
| 9538 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9539 | " |
| 9540 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9541 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9542 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9543 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9544 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9545 | |
| 9546 | cat >>confdefs.h <<_ACEOF |
| 9547 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9548 | _ACEOF |
| 9549 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9550 | " |
| 9551 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9552 | ac_have_decl=1 |
| 9553 | else |
| 9554 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9555 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9556 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9557 | cat >>confdefs.h <<_ACEOF |
| 9558 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9559 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9560 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9561 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9563 | |
| 9564 | for ac_prog in bison |
| 9565 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9566 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9567 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9569 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9570 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9571 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9572 | else |
| 9573 | if test -n "$INTLBISON"; then |
| 9574 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9575 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9577 | for as_dir in $PATH |
| 9578 | do |
| 9579 | IFS=$as_save_IFS |
| 9580 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9581 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9583 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9585 | break 2 |
| 9586 | fi |
| 9587 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9588 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9589 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9591 | fi |
| 9592 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9593 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9594 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9596 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9597 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9599 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9600 | fi |
| 9601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9602 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9603 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9604 | done |
| 9605 | |
| 9606 | if test -z "$INTLBISON"; then |
| 9607 | ac_verc_fail=yes |
| 9608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9610 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9611 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9612 | case $ac_prog_version in |
| 9613 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9614 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9615 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9616 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9617 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9619 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9620 | fi |
| 9621 | if test $ac_verc_fail = yes; then |
| 9622 | INTLBISON=: |
| 9623 | fi |
| 9624 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9625 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9626 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9628 | $as_echo_n "checking for long long int... " >&6; } |
| 9629 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9630 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9631 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9632 | ac_cv_type_long_long_int=yes |
| 9633 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9634 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9635 | if test $ac_cv_type_long_long_int = yes; then |
| 9636 | if test "$cross_compiling" = yes; then : |
| 9637 | : |
| 9638 | else |
| 9639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9640 | /* end confdefs.h. */ |
| 9641 | #include <limits.h> |
| 9642 | #ifndef LLONG_MAX |
| 9643 | # define HALF \ |
| 9644 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9645 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9646 | #endif |
| 9647 | int |
| 9648 | main () |
| 9649 | { |
| 9650 | long long int n = 1; |
| 9651 | int i; |
| 9652 | for (i = 0; ; i++) |
| 9653 | { |
| 9654 | long long int m = n << i; |
| 9655 | if (m >> i != n) |
| 9656 | return 1; |
| 9657 | if (LLONG_MAX / 2 < m) |
| 9658 | break; |
| 9659 | } |
| 9660 | return 0; |
| 9661 | ; |
| 9662 | return 0; |
| 9663 | } |
| 9664 | _ACEOF |
| 9665 | if ac_fn_c_try_run "$LINENO"; then : |
| 9666 | |
| 9667 | else |
| 9668 | ac_cv_type_long_long_int=no |
| 9669 | fi |
| 9670 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9671 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9672 | fi |
| 9673 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9674 | fi |
| 9675 | fi |
| 9676 | fi |
| 9677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9678 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9679 | if test $ac_cv_type_long_long_int = yes; then |
| 9680 | |
| 9681 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9682 | |
| 9683 | fi |
| 9684 | |
| 9685 | |
| 9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9687 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9688 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9689 | $as_echo_n "(cached) " >&6 |
| 9690 | else |
| 9691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9692 | /* end confdefs.h. */ |
| 9693 | #include <stddef.h> |
| 9694 | wchar_t foo = (wchar_t)'\0'; |
| 9695 | int |
| 9696 | main () |
| 9697 | { |
| 9698 | |
| 9699 | ; |
| 9700 | return 0; |
| 9701 | } |
| 9702 | _ACEOF |
| 9703 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9704 | gt_cv_c_wchar_t=yes |
| 9705 | else |
| 9706 | gt_cv_c_wchar_t=no |
| 9707 | fi |
| 9708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9709 | fi |
| 9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9711 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9712 | if test $gt_cv_c_wchar_t = yes; then |
| 9713 | |
| 9714 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9715 | |
| 9716 | fi |
| 9717 | |
| 9718 | |
| 9719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9720 | $as_echo_n "checking for wint_t... " >&6; } |
| 9721 | if ${gt_cv_c_wint_t+:} false; then : |
| 9722 | $as_echo_n "(cached) " >&6 |
| 9723 | else |
| 9724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9725 | /* end confdefs.h. */ |
| 9726 | |
| 9727 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9728 | <wchar.h>. |
| 9729 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9730 | before <wchar.h>. */ |
| 9731 | #include <stddef.h> |
| 9732 | #include <stdio.h> |
| 9733 | #include <time.h> |
| 9734 | #include <wchar.h> |
| 9735 | wint_t foo = (wchar_t)'\0'; |
| 9736 | int |
| 9737 | main () |
| 9738 | { |
| 9739 | |
| 9740 | ; |
| 9741 | return 0; |
| 9742 | } |
| 9743 | _ACEOF |
| 9744 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9745 | gt_cv_c_wint_t=yes |
| 9746 | else |
| 9747 | gt_cv_c_wint_t=no |
| 9748 | fi |
| 9749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9750 | fi |
| 9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9752 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9753 | if test $gt_cv_c_wint_t = yes; then |
| 9754 | |
| 9755 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9756 | |
| 9757 | fi |
| 9758 | |
| 9759 | |
| 9760 | |
| 9761 | |
| 9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9763 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9764 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9765 | $as_echo_n "(cached) " >&6 |
| 9766 | else |
| 9767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9768 | /* end confdefs.h. */ |
| 9769 | |
| 9770 | #include <stddef.h> |
| 9771 | #include <stdlib.h> |
| 9772 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9773 | #include <stdint.h> |
| 9774 | #endif |
| 9775 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9776 | #include <inttypes.h> |
| 9777 | #endif |
| 9778 | |
| 9779 | int |
| 9780 | main () |
| 9781 | { |
| 9782 | intmax_t x = -1; |
| 9783 | return !x; |
| 9784 | ; |
| 9785 | return 0; |
| 9786 | } |
| 9787 | _ACEOF |
| 9788 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9789 | gt_cv_c_intmax_t=yes |
| 9790 | else |
| 9791 | gt_cv_c_intmax_t=no |
| 9792 | fi |
| 9793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9794 | fi |
| 9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9796 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9797 | if test $gt_cv_c_intmax_t = yes; then |
| 9798 | |
| 9799 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9800 | |
| 9801 | fi |
| 9802 | |
| 9803 | |
| 9804 | |
| 9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9806 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9807 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9808 | $as_echo_n "(cached) " >&6 |
| 9809 | else |
| 9810 | |
| 9811 | if test "$cross_compiling" = yes; then : |
| 9812 | |
| 9813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9814 | /* end confdefs.h. */ |
| 9815 | |
| 9816 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9817 | notposix |
| 9818 | #endif |
| 9819 | |
| 9820 | _ACEOF |
| 9821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9822 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9823 | gt_cv_func_printf_posix="guessing no" |
| 9824 | else |
| 9825 | gt_cv_func_printf_posix="guessing yes" |
| 9826 | fi |
| 9827 | rm -f conftest* |
| 9828 | |
| 9829 | |
| 9830 | else |
| 9831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9832 | /* end confdefs.h. */ |
| 9833 | |
| 9834 | #include <stdio.h> |
| 9835 | #include <string.h> |
| 9836 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 9837 | dollar expansion (possibly an autoconf bug). */ |
| 9838 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 9839 | static char buf[100]; |
| 9840 | int main () |
| 9841 | { |
| 9842 | sprintf (buf, format, 33, 55); |
| 9843 | return (strcmp (buf, "55 33") != 0); |
| 9844 | } |
| 9845 | _ACEOF |
| 9846 | if ac_fn_c_try_run "$LINENO"; then : |
| 9847 | gt_cv_func_printf_posix=yes |
| 9848 | else |
| 9849 | gt_cv_func_printf_posix=no |
| 9850 | fi |
| 9851 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9852 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9853 | fi |
| 9854 | |
| 9855 | |
| 9856 | fi |
| 9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 9858 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 9859 | case $gt_cv_func_printf_posix in |
| 9860 | *yes) |
| 9861 | |
| 9862 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 9863 | |
| 9864 | ;; |
| 9865 | esac |
| 9866 | |
| 9867 | |
| 9868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 9869 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 9870 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 9871 | $as_echo_n "(cached) " >&6 |
| 9872 | else |
| 9873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9874 | /* end confdefs.h. */ |
| 9875 | |
| 9876 | #include <features.h> |
| 9877 | #ifdef __GNU_LIBRARY__ |
| 9878 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 9879 | Lucky GNU user |
| 9880 | #endif |
| 9881 | #endif |
| 9882 | #ifdef __UCLIBC__ |
| 9883 | Lucky user |
| 9884 | #endif |
| 9885 | |
| 9886 | _ACEOF |
| 9887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9888 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 9889 | ac_cv_gnu_library_2_1=yes |
| 9890 | else |
| 9891 | ac_cv_gnu_library_2_1=no |
| 9892 | fi |
| 9893 | rm -f conftest* |
| 9894 | |
| 9895 | |
| 9896 | |
| 9897 | fi |
| 9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 9899 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 9900 | |
| 9901 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 9902 | |
| 9903 | |
| 9904 | |
| 9905 | for ac_header in stdint.h |
| 9906 | do : |
| 9907 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 9908 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 9909 | cat >>confdefs.h <<_ACEOF |
| 9910 | #define HAVE_STDINT_H 1 |
| 9911 | _ACEOF |
| 9912 | |
| 9913 | fi |
| 9914 | |
| 9915 | done |
| 9916 | |
| 9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 9918 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 9919 | if ${gl_cv_size_max+:} false; then : |
| 9920 | $as_echo_n "(cached) " >&6 |
| 9921 | else |
| 9922 | |
| 9923 | gl_cv_size_max= |
| 9924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9925 | /* end confdefs.h. */ |
| 9926 | |
| 9927 | #include <limits.h> |
| 9928 | #if HAVE_STDINT_H |
| 9929 | #include <stdint.h> |
| 9930 | #endif |
| 9931 | #ifdef SIZE_MAX |
| 9932 | Found it |
| 9933 | #endif |
| 9934 | |
| 9935 | _ACEOF |
| 9936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9937 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 9938 | gl_cv_size_max=yes |
| 9939 | fi |
| 9940 | rm -f conftest* |
| 9941 | |
| 9942 | if test -z "$gl_cv_size_max"; then |
| 9943 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 9944 | #include <limits.h>"; then : |
| 9945 | |
| 9946 | else |
| 9947 | size_t_bits_minus_1= |
| 9948 | fi |
| 9949 | |
| 9950 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 9951 | |
| 9952 | else |
| 9953 | fits_in_uint= |
| 9954 | fi |
| 9955 | |
| 9956 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 9957 | if test $fits_in_uint = 1; then |
| 9958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9959 | /* end confdefs.h. */ |
| 9960 | #include <stddef.h> |
| 9961 | extern size_t foo; |
| 9962 | extern unsigned long foo; |
| 9963 | |
| 9964 | int |
| 9965 | main () |
| 9966 | { |
| 9967 | |
| 9968 | ; |
| 9969 | return 0; |
| 9970 | } |
| 9971 | _ACEOF |
| 9972 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9973 | fits_in_uint=0 |
| 9974 | fi |
| 9975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9976 | fi |
| 9977 | if test $fits_in_uint = 1; then |
| 9978 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9979 | else |
| 9980 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9981 | fi |
| 9982 | else |
| 9983 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 9984 | fi |
| 9985 | fi |
| 9986 | |
| 9987 | fi |
| 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 9989 | $as_echo "$gl_cv_size_max" >&6; } |
| 9990 | if test "$gl_cv_size_max" != yes; then |
| 9991 | |
| 9992 | cat >>confdefs.h <<_ACEOF |
| 9993 | #define SIZE_MAX $gl_cv_size_max |
| 9994 | _ACEOF |
| 9995 | |
| 9996 | fi |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | for ac_header in stdint.h |
| 10002 | do : |
| 10003 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10004 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10005 | cat >>confdefs.h <<_ACEOF |
| 10006 | #define HAVE_STDINT_H 1 |
| 10007 | _ACEOF |
| 10008 | |
| 10009 | fi |
| 10010 | |
| 10011 | done |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | for ac_func in $ac_func_list |
| 10018 | do : |
| 10019 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10020 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10021 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10022 | cat >>confdefs.h <<_ACEOF |
| 10023 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10024 | _ACEOF |
| 10025 | |
| 10026 | fi |
| 10027 | done |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10037 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10038 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10039 | $as_echo_n "(cached) " >&6 |
| 10040 | else |
| 10041 | if test "$cross_compiling" = yes; then : |
| 10042 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10043 | else |
| 10044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10045 | /* end confdefs.h. */ |
| 10046 | #include <sys/types.h> |
| 10047 | #include <sys/stat.h> |
| 10048 | #if HAVE_UNISTD_H |
| 10049 | # include <unistd.h> |
| 10050 | #else /* on Windows with MSVC */ |
| 10051 | # include <io.h> |
| 10052 | # include <stdlib.h> |
| 10053 | # defined sleep(n) _sleep ((n) * 1000) |
| 10054 | #endif |
| 10055 | #include <fcntl.h> |
| 10056 | #ifndef O_NOATIME |
| 10057 | #define O_NOATIME 0 |
| 10058 | #endif |
| 10059 | #ifndef O_NOFOLLOW |
| 10060 | #define O_NOFOLLOW 0 |
| 10061 | #endif |
| 10062 | static int const constants[] = |
| 10063 | { |
| 10064 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10065 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10066 | }; |
| 10067 | |
| 10068 | int |
| 10069 | main () |
| 10070 | { |
| 10071 | |
| 10072 | int result = !constants; |
| 10073 | #if HAVE_SYMLINK |
| 10074 | { |
| 10075 | static char const sym[] = "conftest.sym"; |
| 10076 | if (symlink ("/dev/null", sym) != 0) |
| 10077 | result |= 2; |
| 10078 | else |
| 10079 | { |
| 10080 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10081 | if (fd >= 0) |
| 10082 | { |
| 10083 | close (fd); |
| 10084 | result |= 4; |
| 10085 | } |
| 10086 | } |
| 10087 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10088 | result |= 2; |
| 10089 | else |
| 10090 | { |
| 10091 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10092 | if (fd >= 0) |
| 10093 | { |
| 10094 | close (fd); |
| 10095 | result |= 4; |
| 10096 | } |
| 10097 | } |
| 10098 | unlink (sym); |
| 10099 | } |
| 10100 | #endif |
| 10101 | { |
| 10102 | static char const file[] = "confdefs.h"; |
| 10103 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10104 | if (fd < 0) |
| 10105 | result |= 8; |
| 10106 | else |
| 10107 | { |
| 10108 | struct stat st0; |
| 10109 | if (fstat (fd, &st0) != 0) |
| 10110 | result |= 16; |
| 10111 | else |
| 10112 | { |
| 10113 | char c; |
| 10114 | sleep (1); |
| 10115 | if (read (fd, &c, 1) != 1) |
| 10116 | result |= 24; |
| 10117 | else |
| 10118 | { |
| 10119 | if (close (fd) != 0) |
| 10120 | result |= 32; |
| 10121 | else |
| 10122 | { |
| 10123 | struct stat st1; |
| 10124 | if (stat (file, &st1) != 0) |
| 10125 | result |= 40; |
| 10126 | else |
| 10127 | if (st0.st_atime != st1.st_atime) |
| 10128 | result |= 64; |
| 10129 | } |
| 10130 | } |
| 10131 | } |
| 10132 | } |
| 10133 | } |
| 10134 | return result; |
| 10135 | ; |
| 10136 | return 0; |
| 10137 | } |
| 10138 | _ACEOF |
| 10139 | if ac_fn_c_try_run "$LINENO"; then : |
| 10140 | gl_cv_header_working_fcntl_h=yes |
| 10141 | else |
| 10142 | case $? in #( |
| 10143 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10144 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10145 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10146 | *) gl_cv_header_working_fcntl_h='no';; |
| 10147 | esac |
| 10148 | fi |
| 10149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10150 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10151 | fi |
| 10152 | |
| 10153 | fi |
| 10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10155 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10156 | |
| 10157 | case $gl_cv_header_working_fcntl_h in #( |
| 10158 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10159 | *) ac_val=1;; |
| 10160 | esac |
| 10161 | |
| 10162 | cat >>confdefs.h <<_ACEOF |
| 10163 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10164 | _ACEOF |
| 10165 | |
| 10166 | |
| 10167 | case $gl_cv_header_working_fcntl_h in #( |
| 10168 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10169 | *) ac_val=1;; |
| 10170 | esac |
| 10171 | |
| 10172 | cat >>confdefs.h <<_ACEOF |
| 10173 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10174 | _ACEOF |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10179 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10180 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10181 | $as_echo_n "(cached) " >&6 |
| 10182 | else |
| 10183 | gt_save_LIBS="$LIBS" |
| 10184 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10186 | /* end confdefs.h. */ |
| 10187 | #include <CoreFoundation/CFPreferences.h> |
| 10188 | int |
| 10189 | main () |
| 10190 | { |
| 10191 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10192 | ; |
| 10193 | return 0; |
| 10194 | } |
| 10195 | _ACEOF |
| 10196 | if ac_fn_c_try_link "$LINENO"; then : |
| 10197 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10198 | else |
| 10199 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10200 | fi |
| 10201 | rm -f core conftest.err conftest.$ac_objext \ |
| 10202 | conftest$ac_exeext conftest.$ac_ext |
| 10203 | LIBS="$gt_save_LIBS" |
| 10204 | fi |
| 10205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10206 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10207 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10208 | |
| 10209 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10210 | |
| 10211 | fi |
| 10212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10213 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10214 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10215 | $as_echo_n "(cached) " >&6 |
| 10216 | else |
| 10217 | gt_save_LIBS="$LIBS" |
| 10218 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10220 | /* end confdefs.h. */ |
| 10221 | #include <CoreFoundation/CFLocale.h> |
| 10222 | int |
| 10223 | main () |
| 10224 | { |
| 10225 | CFLocaleCopyCurrent(); |
| 10226 | ; |
| 10227 | return 0; |
| 10228 | } |
| 10229 | _ACEOF |
| 10230 | if ac_fn_c_try_link "$LINENO"; then : |
| 10231 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10232 | else |
| 10233 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10234 | fi |
| 10235 | rm -f core conftest.err conftest.$ac_objext \ |
| 10236 | conftest$ac_exeext conftest.$ac_ext |
| 10237 | LIBS="$gt_save_LIBS" |
| 10238 | fi |
| 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10240 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10241 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10242 | |
| 10243 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10244 | |
| 10245 | fi |
| 10246 | INTL_MACOSX_LIBS= |
| 10247 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10248 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10249 | fi |
| 10250 | |
| 10251 | |
| 10252 | |
| 10253 | |
| 10254 | |
| 10255 | |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | case "$enable_silent_rules" in |
| 10261 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10262 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10263 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10264 | esac |
| 10265 | |
| 10266 | |
| 10267 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10268 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10269 | |
| 10270 | else |
| 10271 | |
| 10272 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10273 | |
| 10274 | |
| 10275 | fi |
| 10276 | |
| 10277 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10278 | do : |
| 10279 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10280 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10281 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10282 | cat >>confdefs.h <<_ACEOF |
| 10283 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10284 | _ACEOF |
| 10285 | |
| 10286 | fi |
| 10287 | |
| 10288 | done |
| 10289 | |
| 10290 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10291 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10292 | do : |
| 10293 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10294 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10295 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10296 | cat >>confdefs.h <<_ACEOF |
| 10297 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10298 | _ACEOF |
| 10299 | |
| 10300 | fi |
| 10301 | done |
| 10302 | |
| 10303 | |
| 10304 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10305 | " |
| 10306 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10307 | ac_have_decl=1 |
| 10308 | else |
| 10309 | ac_have_decl=0 |
| 10310 | fi |
| 10311 | |
| 10312 | cat >>confdefs.h <<_ACEOF |
| 10313 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10314 | _ACEOF |
| 10315 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10316 | " |
| 10317 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10318 | ac_have_decl=1 |
| 10319 | else |
| 10320 | ac_have_decl=0 |
| 10321 | fi |
| 10322 | |
| 10323 | cat >>confdefs.h <<_ACEOF |
| 10324 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10325 | _ACEOF |
| 10326 | |
| 10327 | |
| 10328 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10329 | " |
| 10330 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10331 | ac_have_decl=1 |
| 10332 | else |
| 10333 | ac_have_decl=0 |
| 10334 | fi |
| 10335 | |
| 10336 | cat >>confdefs.h <<_ACEOF |
| 10337 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10338 | _ACEOF |
| 10339 | |
| 10340 | |
| 10341 | case $gt_cv_func_printf_posix in |
| 10342 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10343 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10344 | esac |
| 10345 | |
| 10346 | if test "$ac_cv_func_asprintf" = yes; then |
| 10347 | HAVE_ASPRINTF=1 |
| 10348 | else |
| 10349 | HAVE_ASPRINTF=0 |
| 10350 | fi |
| 10351 | |
| 10352 | if test "$ac_cv_func_snprintf" = yes; then |
| 10353 | HAVE_SNPRINTF=1 |
| 10354 | else |
| 10355 | HAVE_SNPRINTF=0 |
| 10356 | fi |
| 10357 | |
| 10358 | if test "$ac_cv_func_newlocale" = yes; then |
| 10359 | HAVE_NEWLOCALE=1 |
| 10360 | else |
| 10361 | HAVE_NEWLOCALE=0 |
| 10362 | fi |
| 10363 | |
| 10364 | if test "$ac_cv_func_wprintf" = yes; then |
| 10365 | HAVE_WPRINTF=1 |
| 10366 | else |
| 10367 | HAVE_WPRINTF=0 |
| 10368 | fi |
| 10369 | |
| 10370 | |
| 10371 | |
| 10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10373 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10374 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10375 | $as_echo_n "(cached) " >&6 |
| 10376 | else |
| 10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10378 | /* end confdefs.h. */ |
| 10379 | #include <langinfo.h> |
| 10380 | int |
| 10381 | main () |
| 10382 | { |
| 10383 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10384 | ; |
| 10385 | return 0; |
| 10386 | } |
| 10387 | _ACEOF |
| 10388 | if ac_fn_c_try_link "$LINENO"; then : |
| 10389 | am_cv_langinfo_codeset=yes |
| 10390 | else |
| 10391 | am_cv_langinfo_codeset=no |
| 10392 | fi |
| 10393 | rm -f core conftest.err conftest.$ac_objext \ |
| 10394 | conftest$ac_exeext conftest.$ac_ext |
| 10395 | |
| 10396 | fi |
| 10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10398 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10399 | if test $am_cv_langinfo_codeset = yes; then |
| 10400 | |
| 10401 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10402 | |
| 10403 | fi |
| 10404 | |
| 10405 | |
| 10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10407 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10408 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10409 | $as_echo_n "(cached) " >&6 |
| 10410 | else |
| 10411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10412 | /* end confdefs.h. */ |
| 10413 | #include <locale.h> |
| 10414 | int |
| 10415 | main () |
| 10416 | { |
| 10417 | return LC_MESSAGES |
| 10418 | ; |
| 10419 | return 0; |
| 10420 | } |
| 10421 | _ACEOF |
| 10422 | if ac_fn_c_try_link "$LINENO"; then : |
| 10423 | gt_cv_val_LC_MESSAGES=yes |
| 10424 | else |
| 10425 | gt_cv_val_LC_MESSAGES=no |
| 10426 | fi |
| 10427 | rm -f core conftest.err conftest.$ac_objext \ |
| 10428 | conftest$ac_exeext conftest.$ac_ext |
| 10429 | fi |
| 10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10431 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10432 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10433 | |
| 10434 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10435 | |
| 10436 | fi |
| 10437 | |
| 10438 | |
| 10439 | if test "$enable_shared" = yes; then |
| 10440 | case "$host_os" in |
| 10441 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10442 | *) is_woe32dll=no ;; |
| 10443 | esac |
| 10444 | else |
| 10445 | is_woe32dll=no |
| 10446 | fi |
| 10447 | WOE32DLL=$is_woe32dll |
| 10448 | |
| 10449 | |
| 10450 | case "$host_os" in |
| 10451 | mingw* | cygwin*) is_woe32=yes ;; |
| 10452 | *) is_woe32=no ;; |
| 10453 | esac |
| 10454 | WOE32=$is_woe32 |
| 10455 | |
| 10456 | if test $WOE32 = yes; then |
| 10457 | if test -n "$ac_tool_prefix"; then |
| 10458 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10459 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10461 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10462 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10463 | $as_echo_n "(cached) " >&6 |
| 10464 | else |
| 10465 | if test -n "$WINDRES"; then |
| 10466 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10467 | else |
| 10468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10469 | for as_dir in $PATH |
| 10470 | do |
| 10471 | IFS=$as_save_IFS |
| 10472 | test -z "$as_dir" && as_dir=. |
| 10473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10475 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10477 | break 2 |
| 10478 | fi |
| 10479 | done |
| 10480 | done |
| 10481 | IFS=$as_save_IFS |
| 10482 | |
| 10483 | fi |
| 10484 | fi |
| 10485 | WINDRES=$ac_cv_prog_WINDRES |
| 10486 | if test -n "$WINDRES"; then |
| 10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10488 | $as_echo "$WINDRES" >&6; } |
| 10489 | else |
| 10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10491 | $as_echo "no" >&6; } |
| 10492 | fi |
| 10493 | |
| 10494 | |
| 10495 | fi |
| 10496 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10497 | ac_ct_WINDRES=$WINDRES |
| 10498 | # Extract the first word of "windres", so it can be a program name with args. |
| 10499 | set dummy windres; ac_word=$2 |
| 10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10501 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10502 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10503 | $as_echo_n "(cached) " >&6 |
| 10504 | else |
| 10505 | if test -n "$ac_ct_WINDRES"; then |
| 10506 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10507 | else |
| 10508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10509 | for as_dir in $PATH |
| 10510 | do |
| 10511 | IFS=$as_save_IFS |
| 10512 | test -z "$as_dir" && as_dir=. |
| 10513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10515 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10517 | break 2 |
| 10518 | fi |
| 10519 | done |
| 10520 | done |
| 10521 | IFS=$as_save_IFS |
| 10522 | |
| 10523 | fi |
| 10524 | fi |
| 10525 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10526 | if test -n "$ac_ct_WINDRES"; then |
| 10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10528 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10529 | else |
| 10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10531 | $as_echo "no" >&6; } |
| 10532 | fi |
| 10533 | |
| 10534 | if test "x$ac_ct_WINDRES" = x; then |
| 10535 | WINDRES="" |
| 10536 | else |
| 10537 | case $cross_compiling:$ac_tool_warned in |
| 10538 | yes:) |
| 10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10540 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10541 | ac_tool_warned=yes ;; |
| 10542 | esac |
| 10543 | WINDRES=$ac_ct_WINDRES |
| 10544 | fi |
| 10545 | else |
| 10546 | WINDRES="$ac_cv_prog_WINDRES" |
| 10547 | fi |
| 10548 | |
| 10549 | fi |
| 10550 | |
| 10551 | case "$host_os" in |
| 10552 | hpux*) LTLIBC="" ;; |
| 10553 | *) LTLIBC="-lc" ;; |
| 10554 | esac |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10583 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10584 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10585 | $as_echo_n "(cached) " >&6 |
| 10586 | else |
| 10587 | gt_save_LIBS="$LIBS" |
| 10588 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10590 | /* end confdefs.h. */ |
| 10591 | #include <CoreFoundation/CFPreferences.h> |
| 10592 | int |
| 10593 | main () |
| 10594 | { |
| 10595 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10596 | ; |
| 10597 | return 0; |
| 10598 | } |
| 10599 | _ACEOF |
| 10600 | if ac_fn_c_try_link "$LINENO"; then : |
| 10601 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10602 | else |
| 10603 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10604 | fi |
| 10605 | rm -f core conftest.err conftest.$ac_objext \ |
| 10606 | conftest$ac_exeext conftest.$ac_ext |
| 10607 | LIBS="$gt_save_LIBS" |
| 10608 | fi |
| 10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10610 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10611 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10612 | |
| 10613 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10614 | |
| 10615 | fi |
| 10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10617 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10618 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10619 | $as_echo_n "(cached) " >&6 |
| 10620 | else |
| 10621 | gt_save_LIBS="$LIBS" |
| 10622 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10624 | /* end confdefs.h. */ |
| 10625 | #include <CoreFoundation/CFLocale.h> |
| 10626 | int |
| 10627 | main () |
| 10628 | { |
| 10629 | CFLocaleCopyCurrent(); |
| 10630 | ; |
| 10631 | return 0; |
| 10632 | } |
| 10633 | _ACEOF |
| 10634 | if ac_fn_c_try_link "$LINENO"; then : |
| 10635 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10636 | else |
| 10637 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10638 | fi |
| 10639 | rm -f core conftest.err conftest.$ac_objext \ |
| 10640 | conftest$ac_exeext conftest.$ac_ext |
| 10641 | LIBS="$gt_save_LIBS" |
| 10642 | fi |
| 10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10644 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10645 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10646 | |
| 10647 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10648 | |
| 10649 | fi |
| 10650 | INTL_MACOSX_LIBS= |
| 10651 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10652 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10653 | fi |
| 10654 | |
| 10655 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10656 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10658 | |
| 10659 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10660 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10661 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10662 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10663 | LIBINTL= |
| 10664 | LTLIBINTL= |
| 10665 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10666 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10667 | case " $gt_needs " in |
| 10668 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10669 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10670 | *) gt_api_version=1 ;; |
| 10671 | esac |
| 10672 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10673 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10674 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10675 | if test "$USE_NLS" = "yes"; then |
| 10676 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10677 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10679 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10681 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10682 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10683 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10684 | else |
| 10685 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10686 | fi |
| 10687 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10689 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10690 | |
| 10691 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10692 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10693 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10694 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10695 | if test $gt_api_version -ge 3; then |
| 10696 | gt_revision_test_code=' |
| 10697 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10698 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10699 | #endif |
| 10700 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10701 | ' |
| 10702 | else |
| 10703 | gt_revision_test_code= |
| 10704 | fi |
| 10705 | if test $gt_api_version -ge 2; then |
| 10706 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10707 | else |
| 10708 | gt_expression_test_code= |
| 10709 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10710 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10712 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10713 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10714 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10715 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10717 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10718 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10719 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10720 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10721 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10722 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10723 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10724 | int |
| 10725 | main () |
| 10726 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10727 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10728 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10729 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10730 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10731 | ; |
| 10732 | return 0; |
| 10733 | } |
| 10734 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10735 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10736 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10737 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10738 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10739 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10740 | rm -f core conftest.err conftest.$ac_objext \ |
| 10741 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10742 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10743 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10745 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10746 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10747 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10748 | |
| 10749 | |
| 10750 | |
| 10751 | |
| 10752 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10753 | |
| 10754 | |
| 10755 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10756 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10757 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10758 | acl_save_prefix="$prefix" |
| 10759 | prefix="$acl_final_prefix" |
| 10760 | acl_save_exec_prefix="$exec_prefix" |
| 10761 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10762 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10763 | eval additional_includedir=\"$includedir\" |
| 10764 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10765 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10766 | exec_prefix="$acl_save_exec_prefix" |
| 10767 | prefix="$acl_save_prefix" |
| 10768 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10769 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10770 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10771 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10772 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10773 | if test "X$withval" = "Xno"; then |
| 10774 | use_additional=no |
| 10775 | else |
| 10776 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10777 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10778 | acl_save_prefix="$prefix" |
| 10779 | prefix="$acl_final_prefix" |
| 10780 | acl_save_exec_prefix="$exec_prefix" |
| 10781 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10782 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10783 | eval additional_includedir=\"$includedir\" |
| 10784 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10785 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10786 | exec_prefix="$acl_save_exec_prefix" |
| 10787 | prefix="$acl_save_prefix" |
| 10788 | |
| 10789 | else |
| 10790 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10791 | additional_libdir="$withval/$acl_libdirstem" |
| 10792 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10793 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10794 | additional_libdir="$withval/$acl_libdirstem2" |
| 10795 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10796 | fi |
| 10797 | fi |
| 10798 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10799 | fi |
| 10800 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10801 | LIBINTL= |
| 10802 | LTLIBINTL= |
| 10803 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10804 | LIBINTL_PREFIX= |
| 10805 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10806 | rpathdirs= |
| 10807 | ltrpathdirs= |
| 10808 | names_already_handled= |
| 10809 | names_next_round='intl ' |
| 10810 | while test -n "$names_next_round"; do |
| 10811 | names_this_round="$names_next_round" |
| 10812 | names_next_round= |
| 10813 | for name in $names_this_round; do |
| 10814 | already_handled= |
| 10815 | for n in $names_already_handled; do |
| 10816 | if test "$n" = "$name"; then |
| 10817 | already_handled=yes |
| 10818 | break |
| 10819 | fi |
| 10820 | done |
| 10821 | if test -z "$already_handled"; then |
| 10822 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10823 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10824 | eval value=\"\$HAVE_LIB$uppername\" |
| 10825 | if test -n "$value"; then |
| 10826 | if test "$value" = yes; then |
| 10827 | eval value=\"\$LIB$uppername\" |
| 10828 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10829 | eval value=\"\$LTLIB$uppername\" |
| 10830 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10831 | else |
| 10832 | : |
| 10833 | fi |
| 10834 | else |
| 10835 | found_dir= |
| 10836 | found_la= |
| 10837 | found_so= |
| 10838 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10839 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 10840 | if test -n "$acl_shlibext"; then |
| 10841 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 10842 | else |
| 10843 | shrext= |
| 10844 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10845 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10846 | dir="$additional_libdir" |
| 10847 | if test -n "$acl_shlibext"; then |
| 10848 | if test -f "$dir/$libname$shrext"; then |
| 10849 | found_dir="$dir" |
| 10850 | found_so="$dir/$libname$shrext" |
| 10851 | else |
| 10852 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10853 | ver=`(cd "$dir" && \ |
| 10854 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10855 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10856 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10857 | | sed 1q ) 2>/dev/null` |
| 10858 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10859 | found_dir="$dir" |
| 10860 | found_so="$dir/$libname$shrext.$ver" |
| 10861 | fi |
| 10862 | else |
| 10863 | eval library_names=\"$acl_library_names_spec\" |
| 10864 | for f in $library_names; do |
| 10865 | if test -f "$dir/$f"; then |
| 10866 | found_dir="$dir" |
| 10867 | found_so="$dir/$f" |
| 10868 | break |
| 10869 | fi |
| 10870 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10871 | fi |
| 10872 | fi |
| 10873 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10874 | if test "X$found_dir" = "X"; then |
| 10875 | if test -f "$dir/$libname.$acl_libext"; then |
| 10876 | found_dir="$dir" |
| 10877 | found_a="$dir/$libname.$acl_libext" |
| 10878 | fi |
| 10879 | fi |
| 10880 | if test "X$found_dir" != "X"; then |
| 10881 | if test -f "$dir/$libname.la"; then |
| 10882 | found_la="$dir/$libname.la" |
| 10883 | fi |
| 10884 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10885 | fi |
| 10886 | if test "X$found_dir" = "X"; then |
| 10887 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10888 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10889 | acl_save_prefix="$prefix" |
| 10890 | prefix="$acl_final_prefix" |
| 10891 | acl_save_exec_prefix="$exec_prefix" |
| 10892 | exec_prefix="$acl_final_exec_prefix" |
| 10893 | eval x=\"$x\" |
| 10894 | exec_prefix="$acl_save_exec_prefix" |
| 10895 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10896 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10897 | case "$x" in |
| 10898 | -L*) |
| 10899 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10900 | if test -n "$acl_shlibext"; then |
| 10901 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10902 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10903 | found_so="$dir/$libname$shrext" |
| 10904 | else |
| 10905 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10906 | ver=`(cd "$dir" && \ |
| 10907 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10908 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10909 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10910 | | sed 1q ) 2>/dev/null` |
| 10911 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10912 | found_dir="$dir" |
| 10913 | found_so="$dir/$libname$shrext.$ver" |
| 10914 | fi |
| 10915 | else |
| 10916 | eval library_names=\"$acl_library_names_spec\" |
| 10917 | for f in $library_names; do |
| 10918 | if test -f "$dir/$f"; then |
| 10919 | found_dir="$dir" |
| 10920 | found_so="$dir/$f" |
| 10921 | break |
| 10922 | fi |
| 10923 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10924 | fi |
| 10925 | fi |
| 10926 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10927 | if test "X$found_dir" = "X"; then |
| 10928 | if test -f "$dir/$libname.$acl_libext"; then |
| 10929 | found_dir="$dir" |
| 10930 | found_a="$dir/$libname.$acl_libext" |
| 10931 | fi |
| 10932 | fi |
| 10933 | if test "X$found_dir" != "X"; then |
| 10934 | if test -f "$dir/$libname.la"; then |
| 10935 | found_la="$dir/$libname.la" |
| 10936 | fi |
| 10937 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10938 | ;; |
| 10939 | esac |
| 10940 | if test "X$found_dir" != "X"; then |
| 10941 | break |
| 10942 | fi |
| 10943 | done |
| 10944 | fi |
| 10945 | if test "X$found_dir" != "X"; then |
| 10946 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10947 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10948 | if test "$enable_rpath" = no \ |
| 10949 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 10950 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10951 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10952 | else |
| 10953 | haveit= |
| 10954 | for x in $ltrpathdirs; do |
| 10955 | if test "X$x" = "X$found_dir"; then |
| 10956 | haveit=yes |
| 10957 | break |
| 10958 | fi |
| 10959 | done |
| 10960 | if test -z "$haveit"; then |
| 10961 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10962 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10963 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10964 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10965 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10966 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10967 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10968 | haveit= |
| 10969 | for x in $rpathdirs; do |
| 10970 | if test "X$x" = "X$found_dir"; then |
| 10971 | haveit=yes |
| 10972 | break |
| 10973 | fi |
| 10974 | done |
| 10975 | if test -z "$haveit"; then |
| 10976 | rpathdirs="$rpathdirs $found_dir" |
| 10977 | fi |
| 10978 | else |
| 10979 | haveit= |
| 10980 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10981 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10982 | acl_save_prefix="$prefix" |
| 10983 | prefix="$acl_final_prefix" |
| 10984 | acl_save_exec_prefix="$exec_prefix" |
| 10985 | exec_prefix="$acl_final_exec_prefix" |
| 10986 | eval x=\"$x\" |
| 10987 | exec_prefix="$acl_save_exec_prefix" |
| 10988 | prefix="$acl_save_prefix" |
| 10989 | |
| 10990 | if test "X$x" = "X-L$found_dir"; then |
| 10991 | haveit=yes |
| 10992 | break |
| 10993 | fi |
| 10994 | done |
| 10995 | if test -z "$haveit"; then |
| 10996 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10997 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10998 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10999 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11000 | else |
| 11001 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11002 | fi |
| 11003 | fi |
| 11004 | fi |
| 11005 | fi |
| 11006 | else |
| 11007 | if test "X$found_a" != "X"; then |
| 11008 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11009 | else |
| 11010 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11011 | fi |
| 11012 | fi |
| 11013 | additional_includedir= |
| 11014 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11015 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11016 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11017 | if test "$name" = 'intl'; then |
| 11018 | LIBINTL_PREFIX="$basedir" |
| 11019 | fi |
| 11020 | additional_includedir="$basedir/include" |
| 11021 | ;; |
| 11022 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11023 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11024 | if test "$name" = 'intl'; then |
| 11025 | LIBINTL_PREFIX="$basedir" |
| 11026 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11027 | additional_includedir="$basedir/include" |
| 11028 | ;; |
| 11029 | esac |
| 11030 | if test "X$additional_includedir" != "X"; then |
| 11031 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11032 | haveit= |
| 11033 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11034 | if test -n "$GCC"; then |
| 11035 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11036 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11037 | esac |
| 11038 | fi |
| 11039 | fi |
| 11040 | if test -z "$haveit"; then |
| 11041 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11042 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11043 | acl_save_prefix="$prefix" |
| 11044 | prefix="$acl_final_prefix" |
| 11045 | acl_save_exec_prefix="$exec_prefix" |
| 11046 | exec_prefix="$acl_final_exec_prefix" |
| 11047 | eval x=\"$x\" |
| 11048 | exec_prefix="$acl_save_exec_prefix" |
| 11049 | prefix="$acl_save_prefix" |
| 11050 | |
| 11051 | if test "X$x" = "X-I$additional_includedir"; then |
| 11052 | haveit=yes |
| 11053 | break |
| 11054 | fi |
| 11055 | done |
| 11056 | if test -z "$haveit"; then |
| 11057 | if test -d "$additional_includedir"; then |
| 11058 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11059 | fi |
| 11060 | fi |
| 11061 | fi |
| 11062 | fi |
| 11063 | fi |
| 11064 | if test -n "$found_la"; then |
| 11065 | save_libdir="$libdir" |
| 11066 | case "$found_la" in |
| 11067 | */* | *\\*) . "$found_la" ;; |
| 11068 | *) . "./$found_la" ;; |
| 11069 | esac |
| 11070 | libdir="$save_libdir" |
| 11071 | for dep in $dependency_libs; do |
| 11072 | case "$dep" in |
| 11073 | -L*) |
| 11074 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11075 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11076 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11077 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11078 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11079 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11080 | if test -n "$GCC"; then |
| 11081 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11082 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11083 | esac |
| 11084 | fi |
| 11085 | fi |
| 11086 | if test -z "$haveit"; then |
| 11087 | haveit= |
| 11088 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11089 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11090 | acl_save_prefix="$prefix" |
| 11091 | prefix="$acl_final_prefix" |
| 11092 | acl_save_exec_prefix="$exec_prefix" |
| 11093 | exec_prefix="$acl_final_exec_prefix" |
| 11094 | eval x=\"$x\" |
| 11095 | exec_prefix="$acl_save_exec_prefix" |
| 11096 | prefix="$acl_save_prefix" |
| 11097 | |
| 11098 | if test "X$x" = "X-L$additional_libdir"; then |
| 11099 | haveit=yes |
| 11100 | break |
| 11101 | fi |
| 11102 | done |
| 11103 | if test -z "$haveit"; then |
| 11104 | if test -d "$additional_libdir"; then |
| 11105 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11106 | fi |
| 11107 | fi |
| 11108 | haveit= |
| 11109 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11110 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11111 | acl_save_prefix="$prefix" |
| 11112 | prefix="$acl_final_prefix" |
| 11113 | acl_save_exec_prefix="$exec_prefix" |
| 11114 | exec_prefix="$acl_final_exec_prefix" |
| 11115 | eval x=\"$x\" |
| 11116 | exec_prefix="$acl_save_exec_prefix" |
| 11117 | prefix="$acl_save_prefix" |
| 11118 | |
| 11119 | if test "X$x" = "X-L$additional_libdir"; then |
| 11120 | haveit=yes |
| 11121 | break |
| 11122 | fi |
| 11123 | done |
| 11124 | if test -z "$haveit"; then |
| 11125 | if test -d "$additional_libdir"; then |
| 11126 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11127 | fi |
| 11128 | fi |
| 11129 | fi |
| 11130 | fi |
| 11131 | ;; |
| 11132 | -R*) |
| 11133 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11134 | if test "$enable_rpath" != no; then |
| 11135 | haveit= |
| 11136 | for x in $rpathdirs; do |
| 11137 | if test "X$x" = "X$dir"; then |
| 11138 | haveit=yes |
| 11139 | break |
| 11140 | fi |
| 11141 | done |
| 11142 | if test -z "$haveit"; then |
| 11143 | rpathdirs="$rpathdirs $dir" |
| 11144 | fi |
| 11145 | haveit= |
| 11146 | for x in $ltrpathdirs; do |
| 11147 | if test "X$x" = "X$dir"; then |
| 11148 | haveit=yes |
| 11149 | break |
| 11150 | fi |
| 11151 | done |
| 11152 | if test -z "$haveit"; then |
| 11153 | ltrpathdirs="$ltrpathdirs $dir" |
| 11154 | fi |
| 11155 | fi |
| 11156 | ;; |
| 11157 | -l*) |
| 11158 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11159 | ;; |
| 11160 | *.la) |
| 11161 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11162 | ;; |
| 11163 | *) |
| 11164 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11165 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11166 | ;; |
| 11167 | esac |
| 11168 | done |
| 11169 | fi |
| 11170 | else |
| 11171 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11172 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11173 | fi |
| 11174 | fi |
| 11175 | fi |
| 11176 | done |
| 11177 | done |
| 11178 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11179 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11180 | alldirs= |
| 11181 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11182 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11183 | done |
| 11184 | acl_save_libdir="$libdir" |
| 11185 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11186 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11187 | libdir="$acl_save_libdir" |
| 11188 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11189 | else |
| 11190 | for found_dir in $rpathdirs; do |
| 11191 | acl_save_libdir="$libdir" |
| 11192 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11193 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11194 | libdir="$acl_save_libdir" |
| 11195 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11196 | done |
| 11197 | fi |
| 11198 | fi |
| 11199 | if test "X$ltrpathdirs" != "X"; then |
| 11200 | for found_dir in $ltrpathdirs; do |
| 11201 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11202 | done |
| 11203 | fi |
| 11204 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11205 | |
| 11206 | |
| 11207 | |
| 11208 | |
| 11209 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11211 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11212 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11213 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11214 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11215 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11216 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11217 | gt_save_LIBS="$LIBS" |
| 11218 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11220 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11221 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11222 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11223 | $gt_revision_test_code |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11224 | extern int _nl_msg_cat_cntr; |
| 11225 | extern |
| 11226 | #ifdef __cplusplus |
| 11227 | "C" |
| 11228 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11229 | const char *_nl_expand_alias (const char *); |
| 11230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11231 | int |
| 11232 | main () |
| 11233 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11234 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11235 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11236 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11237 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11238 | ; |
| 11239 | return 0; |
| 11240 | } |
| 11241 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11242 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11243 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11244 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11245 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11246 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11247 | rm -f core conftest.err conftest.$ac_objext \ |
| 11248 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11249 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11250 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11253 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11254 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11255 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11256 | extern int _nl_msg_cat_cntr; |
| 11257 | extern |
| 11258 | #ifdef __cplusplus |
| 11259 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11260 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11261 | const char *_nl_expand_alias (const char *); |
| 11262 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11263 | int |
| 11264 | main () |
| 11265 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11266 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11267 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11268 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11270 | ; |
| 11271 | return 0; |
| 11272 | } |
| 11273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11274 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11275 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11276 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11277 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11278 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11279 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11280 | rm -f core conftest.err conftest.$ac_objext \ |
| 11281 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11282 | fi |
| 11283 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11284 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11285 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11286 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11288 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11289 | fi |
| 11290 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11291 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11292 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11293 | && test "$PACKAGE" != gettext-runtime \ |
| 11294 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11295 | gt_use_preinstalled_gnugettext=yes |
| 11296 | else |
| 11297 | LIBINTL= |
| 11298 | LTLIBINTL= |
| 11299 | INCINTL= |
| 11300 | fi |
| 11301 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11302 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11303 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11304 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11305 | fi |
| 11306 | fi |
| 11307 | |
| 11308 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11309 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11310 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11311 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11312 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11313 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11314 | fi |
| 11315 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11316 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11317 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11318 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11319 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11320 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11321 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11322 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11323 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11324 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11325 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11326 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11327 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11328 | fi |
| 11329 | fi |
| 11330 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11331 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11332 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11333 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11334 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11335 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11336 | else |
| 11337 | USE_NLS=no |
| 11338 | fi |
| 11339 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11340 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11342 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11344 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11345 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11347 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11348 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11349 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11350 | gt_source="external libintl" |
| 11351 | else |
| 11352 | gt_source="libc" |
| 11353 | fi |
| 11354 | else |
| 11355 | gt_source="included intl directory" |
| 11356 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11358 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | fi |
| 11360 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11361 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11362 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11363 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11364 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11366 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11368 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11370 | for element in $INCINTL; do |
| 11371 | haveit= |
| 11372 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11373 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11374 | acl_save_prefix="$prefix" |
| 11375 | prefix="$acl_final_prefix" |
| 11376 | acl_save_exec_prefix="$exec_prefix" |
| 11377 | exec_prefix="$acl_final_exec_prefix" |
| 11378 | eval x=\"$x\" |
| 11379 | exec_prefix="$acl_save_exec_prefix" |
| 11380 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11381 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11382 | if test "X$x" = "X$element"; then |
| 11383 | haveit=yes |
| 11384 | break |
| 11385 | fi |
| 11386 | done |
| 11387 | if test -z "$haveit"; then |
| 11388 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11389 | fi |
| 11390 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11391 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11392 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11393 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11394 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11395 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11396 | |
| 11397 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11398 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11399 | |
| 11400 | fi |
| 11401 | |
| 11402 | POSUB=po |
| 11403 | fi |
| 11404 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11405 | |
| 11406 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11407 | BUILD_INCLUDED_LIBINTL=yes |
| 11408 | fi |
| 11409 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11410 | |
| 11411 | |
| 11412 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11413 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11414 | nls_cv_header_intl= |
| 11415 | nls_cv_header_libgt= |
| 11416 | |
| 11417 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11419 | |
| 11420 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11421 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11422 | |
| 11423 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | |
| 11425 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11426 | INTLOBJS= |
| 11427 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11428 | INTLOBJS="\$(GETTOBJS)" |
| 11429 | fi |
| 11430 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11431 | |
| 11432 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | |
| 11434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11435 | |
| 11436 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11437 | |
| 11438 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11445 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11446 | set x ${MAKE-make} |
| 11447 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11448 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11449 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11450 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11451 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11452 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11453 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11454 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11456 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11457 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11458 | *@@@%%%=?*=@@@%%%*) |
| 11459 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11460 | *) |
| 11461 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11462 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11463 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11464 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11465 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11467 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11468 | SET_MAKE= |
| 11469 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11471 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11472 | SET_MAKE="MAKE=${MAKE-make}" |
| 11473 | fi |
| 11474 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11476 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11477 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11478 | $as_echo_n "(cached) " >&6 |
| 11479 | else |
| 11480 | _cv_gnu_make_command='' ; |
| 11481 | for a in "$MAKE" make gmake gnumake ; do |
| 11482 | if test -z "$a" ; then continue ; fi ; |
| 11483 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11484 | _cv_gnu_make_command=$a ; |
| 11485 | break; |
| 11486 | fi |
| 11487 | done ; |
| 11488 | |
| 11489 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11491 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11492 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11493 | ifGNUmake='' ; |
| 11494 | ifNotGNUmake='#' ; |
| 11495 | else |
| 11496 | ifGNUmake='#' ; |
| 11497 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11499 | $as_echo "\"Not found\"" >&6; }; |
| 11500 | fi |
| 11501 | |
| 11502 | |
| 11503 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11504 | # Extract the first word of "ln", so it can be a program name with args. |
| 11505 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11507 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11508 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11509 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11511 | case $LN in |
| 11512 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11513 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11514 | ;; |
| 11515 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11517 | for as_dir in $PATH |
| 11518 | do |
| 11519 | IFS=$as_save_IFS |
| 11520 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11521 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11525 | break 2 |
| 11526 | fi |
| 11527 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11528 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11529 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11530 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11531 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11532 | ;; |
| 11533 | esac |
| 11534 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11535 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11536 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11538 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11541 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11542 | fi |
| 11543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11544 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11546 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11547 | LN_S=$as_ln_s |
| 11548 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11550 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11551 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11553 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11554 | fi |
| 11555 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11556 | # Extract the first word of "mv", so it can be a program name with args. |
| 11557 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11559 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11560 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11561 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11562 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11563 | case $MV in |
| 11564 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11565 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11566 | ;; |
| 11567 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11569 | for as_dir in $PATH |
| 11570 | do |
| 11571 | IFS=$as_save_IFS |
| 11572 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11573 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11575 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11577 | break 2 |
| 11578 | fi |
| 11579 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11580 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11581 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11582 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11583 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11584 | ;; |
| 11585 | esac |
| 11586 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11587 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11588 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11590 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11591 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11593 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | fi |
| 11595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11596 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11597 | # Extract the first word of "cp", so it can be a program name with args. |
| 11598 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11600 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11601 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11602 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11603 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11604 | case $CP in |
| 11605 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11606 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11607 | ;; |
| 11608 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11610 | for as_dir in $PATH |
| 11611 | do |
| 11612 | IFS=$as_save_IFS |
| 11613 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11614 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11616 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11618 | break 2 |
| 11619 | fi |
| 11620 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11621 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11622 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11623 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11624 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11625 | ;; |
| 11626 | esac |
| 11627 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11628 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11629 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11631 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11632 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11634 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11635 | fi |
| 11636 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11637 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11638 | # Extract the first word of "rm", so it can be a program name with args. |
| 11639 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11641 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11642 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11643 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11644 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11645 | case $RM in |
| 11646 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11647 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11648 | ;; |
| 11649 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11651 | for as_dir in $PATH |
| 11652 | do |
| 11653 | IFS=$as_save_IFS |
| 11654 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11655 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11657 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11659 | break 2 |
| 11660 | fi |
| 11661 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11662 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11663 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11664 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11665 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11666 | ;; |
| 11667 | esac |
| 11668 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11669 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11670 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11672 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11673 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11675 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11676 | fi |
| 11677 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11678 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11679 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11680 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11682 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11683 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11684 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11685 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11686 | case $CHMOD in |
| 11687 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11688 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11689 | ;; |
| 11690 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11692 | for as_dir in $PATH |
| 11693 | do |
| 11694 | IFS=$as_save_IFS |
| 11695 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11696 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11698 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11700 | break 2 |
| 11701 | fi |
| 11702 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11703 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11704 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11705 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11706 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11707 | ;; |
| 11708 | esac |
| 11709 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11710 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11711 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11713 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11714 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11716 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11717 | fi |
| 11718 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11719 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11720 | for ac_prog in gawk mawk nawk awk |
| 11721 | do |
| 11722 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11723 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11725 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11726 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11727 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11728 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11729 | if test -n "$AWK"; then |
| 11730 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11731 | else |
| 11732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11733 | for as_dir in $PATH |
| 11734 | do |
| 11735 | IFS=$as_save_IFS |
| 11736 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11737 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11739 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11741 | break 2 |
| 11742 | fi |
| 11743 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11744 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11745 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11746 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11747 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11748 | fi |
| 11749 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11750 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11752 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11753 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11755 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11756 | fi |
| 11757 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11758 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11759 | test -n "$AWK" && break |
| 11760 | done |
| 11761 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11763 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11764 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11765 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11766 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11767 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11768 | then ac_cv_path_EGREP="$GREP -E" |
| 11769 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11770 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11771 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11772 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11774 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11775 | do |
| 11776 | IFS=$as_save_IFS |
| 11777 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11778 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11780 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11781 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11782 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11783 | # Check for GNU $ac_path_EGREP |
| 11784 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11785 | *GNU*) |
| 11786 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11787 | *) |
| 11788 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11789 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11790 | while : |
| 11791 | do |
| 11792 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11793 | mv "conftest.tmp" "conftest.in" |
| 11794 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11795 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11796 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11797 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11798 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11799 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11800 | # Best one so far, save it but keep looking for a better one |
| 11801 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11802 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11804 | # 10*(2^10) chars as input seems more than enough |
| 11805 | test $ac_count -gt 10 && break |
| 11806 | done |
| 11807 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11808 | esac |
| 11809 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11810 | $ac_path_EGREP_found && break 3 |
| 11811 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11812 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11813 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11814 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11815 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11816 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11818 | else |
| 11819 | ac_cv_path_EGREP=$EGREP |
| 11820 | fi |
| 11821 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11822 | fi |
| 11823 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11825 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11826 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11827 | |
| 11828 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11829 | # Extract the first word of "sed", so it can be a program name with args. |
| 11830 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11832 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11833 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11834 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11835 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11836 | case $SED in |
| 11837 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11838 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11839 | ;; |
| 11840 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11842 | for as_dir in $PATH |
| 11843 | do |
| 11844 | IFS=$as_save_IFS |
| 11845 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11846 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11848 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11850 | break 2 |
| 11851 | fi |
| 11852 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11853 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11854 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11855 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11856 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11857 | ;; |
| 11858 | esac |
| 11859 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11860 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11861 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11863 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11864 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11866 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11867 | fi |
| 11868 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11869 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11870 | # Extract the first word of "perl", so it can be a program name with args. |
| 11871 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11873 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11874 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11875 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11876 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11877 | case $PERL in |
| 11878 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11879 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11880 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11881 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11883 | for as_dir in $PATH |
| 11884 | do |
| 11885 | IFS=$as_save_IFS |
| 11886 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11887 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11889 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11891 | break 2 |
| 11892 | fi |
| 11893 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11894 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11895 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11896 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11897 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11898 | ;; |
| 11899 | esac |
| 11900 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11901 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11902 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11904 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11905 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11907 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11908 | fi |
| 11909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11910 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11911 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11912 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11914 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11915 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11916 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11917 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11918 | case $LDCONFIG in |
| 11919 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11920 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11921 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11922 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11924 | for as_dir in $PATH |
| 11925 | do |
| 11926 | IFS=$as_save_IFS |
| 11927 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11928 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11930 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11932 | break 2 |
| 11933 | fi |
| 11934 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11935 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11936 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11937 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11938 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11939 | ;; |
| 11940 | esac |
| 11941 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11942 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11943 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11945 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11946 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11948 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11949 | fi |
| 11950 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11951 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11952 | if test -n "$ac_tool_prefix"; then |
| 11953 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11954 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11956 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11957 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11958 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11959 | else |
| 11960 | if test -n "$AR"; then |
| 11961 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11962 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11964 | for as_dir in $PATH |
| 11965 | do |
| 11966 | IFS=$as_save_IFS |
| 11967 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11968 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11970 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11972 | break 2 |
| 11973 | fi |
| 11974 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11975 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11976 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11977 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11978 | fi |
| 11979 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11981 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11983 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11986 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11987 | fi |
| 11988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11989 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11990 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11991 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11993 | # Extract the first word of "ar", so it can be a program name with args. |
| 11994 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11996 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11997 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11998 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11999 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12000 | if test -n "$ac_ct_AR"; then |
| 12001 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12002 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12004 | for as_dir in $PATH |
| 12005 | do |
| 12006 | IFS=$as_save_IFS |
| 12007 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12008 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12009 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12010 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12012 | break 2 |
| 12013 | fi |
| 12014 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12015 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12016 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12017 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12018 | fi |
| 12019 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12021 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12023 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12024 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12026 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12027 | fi |
| 12028 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12029 | if test "x$ac_ct_AR" = x; then |
| 12030 | AR="ar" |
| 12031 | else |
| 12032 | case $cross_compiling:$ac_tool_warned in |
| 12033 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12036 | ac_tool_warned=yes ;; |
| 12037 | esac |
| 12038 | AR=$ac_ct_AR |
| 12039 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12040 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12041 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12042 | fi |
| 12043 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12044 | if test -n "$ac_tool_prefix"; then |
| 12045 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12046 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12048 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12049 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12050 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12051 | else |
| 12052 | if test -n "$RANLIB"; then |
| 12053 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12054 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12056 | for as_dir in $PATH |
| 12057 | do |
| 12058 | IFS=$as_save_IFS |
| 12059 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12060 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12062 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | break 2 |
| 12065 | fi |
| 12066 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12067 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12068 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12069 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12070 | fi |
| 12071 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12072 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12073 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12075 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12076 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12078 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12079 | fi |
| 12080 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12081 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12082 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12083 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12084 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12085 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12086 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12088 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12089 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12090 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12091 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12092 | if test -n "$ac_ct_RANLIB"; then |
| 12093 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12094 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12096 | for as_dir in $PATH |
| 12097 | do |
| 12098 | IFS=$as_save_IFS |
| 12099 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12100 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12104 | break 2 |
| 12105 | fi |
| 12106 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12107 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12108 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12109 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12110 | fi |
| 12111 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12112 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12113 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12115 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12116 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12118 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12119 | fi |
| 12120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12121 | if test "x$ac_ct_RANLIB" = x; then |
| 12122 | RANLIB=":" |
| 12123 | else |
| 12124 | case $cross_compiling:$ac_tool_warned in |
| 12125 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12127 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | ac_tool_warned=yes ;; |
| 12129 | esac |
| 12130 | RANLIB=$ac_ct_RANLIB |
| 12131 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12133 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12134 | fi |
| 12135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12136 | if test -n "$ac_tool_prefix"; then |
| 12137 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12138 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12140 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12141 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12142 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12143 | else |
| 12144 | if test -n "$STRIP"; then |
| 12145 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12146 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12148 | for as_dir in $PATH |
| 12149 | do |
| 12150 | IFS=$as_save_IFS |
| 12151 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12152 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12154 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12156 | break 2 |
| 12157 | fi |
| 12158 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12159 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12161 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12162 | fi |
| 12163 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12164 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12165 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12167 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12168 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12170 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12171 | fi |
| 12172 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12174 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12175 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12176 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12177 | # Extract the first word of "strip", so it can be a program name with args. |
| 12178 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12180 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12181 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12182 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12183 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12184 | if test -n "$ac_ct_STRIP"; then |
| 12185 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12186 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12188 | for as_dir in $PATH |
| 12189 | do |
| 12190 | IFS=$as_save_IFS |
| 12191 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12192 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12194 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12196 | break 2 |
| 12197 | fi |
| 12198 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12199 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12200 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12201 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12202 | fi |
| 12203 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12204 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12205 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12207 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12208 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12210 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12211 | fi |
| 12212 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | if test "x$ac_ct_STRIP" = x; then |
| 12214 | STRIP=":" |
| 12215 | else |
| 12216 | case $cross_compiling:$ac_tool_warned in |
| 12217 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12219 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12220 | ac_tool_warned=yes ;; |
| 12221 | esac |
| 12222 | STRIP=$ac_ct_STRIP |
| 12223 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12225 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12226 | fi |
| 12227 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12228 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12229 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12231 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12232 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12233 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12234 | else |
| 12235 | if test -n "$MAKEINFO"; then |
| 12236 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12237 | else |
| 12238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12239 | for as_dir in $PATH |
| 12240 | do |
| 12241 | IFS=$as_save_IFS |
| 12242 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12243 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12244 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12245 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12247 | break 2 |
| 12248 | fi |
| 12249 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12250 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12251 | IFS=$as_save_IFS |
| 12252 | |
| 12253 | fi |
| 12254 | fi |
| 12255 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12256 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12258 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12259 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12261 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12262 | fi |
| 12263 | |
| 12264 | |
| 12265 | if test "_$MAKEINFO" = "_"; then |
| 12266 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12267 | else |
| 12268 | case "$MAKEINFO" in |
| 12269 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12271 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12272 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12273 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12274 | ;; |
| 12275 | *) |
| 12276 | ;; |
| 12277 | esac |
| 12278 | fi |
| 12279 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12280 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12281 | # See if we need a separate native compiler. |
| 12282 | if test $cross_compiling = no; then |
| 12283 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12284 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12285 | else |
| 12286 | for ac_prog in gcc cc |
| 12287 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12288 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12289 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12291 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12292 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12293 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12294 | else |
| 12295 | if test -n "$BUILD_CC"; then |
| 12296 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12297 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12299 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12300 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | IFS=$as_save_IFS |
| 12302 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12303 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12304 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12305 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12307 | break 2 |
| 12308 | fi |
| 12309 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12310 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12311 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12313 | fi |
| 12314 | fi |
| 12315 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12316 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12318 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12319 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12321 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12322 | fi |
| 12323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12325 | test -n "$BUILD_CC" && break |
| 12326 | done |
| 12327 | |
| 12328 | fi |
Andreas Dilger | 5105054 | 2014-06-11 12:59:05 -0600 | [diff] [blame] | 12329 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12330 | do : |
| 12331 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12332 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12333 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12334 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12335 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12336 | _ACEOF |
| 12337 | |
| 12338 | fi |
| 12339 | |
| 12340 | done |
| 12341 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12342 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12343 | do : |
| 12344 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12345 | #if HAVE_SYS_TYPES_H |
| 12346 | #include <sys/types.h> |
| 12347 | #endif |
| 12348 | #if HAVE_SYS_SOCKET |
| 12349 | #include <sys/socket.h> |
| 12350 | #endif |
| 12351 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12352 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12353 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12354 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12355 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12356 | _ACEOF |
| 12357 | |
| 12358 | fi |
| 12359 | |
| 12360 | done |
| 12361 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12362 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12363 | do : |
| 12364 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12365 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12366 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12367 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12368 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12369 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12370 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12371 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12372 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12373 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12374 | |
| 12375 | fi |
| 12376 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12377 | fi |
| 12378 | done |
| 12379 | |
| 12380 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12381 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12382 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12383 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12384 | |
| 12385 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12386 | |
| 12387 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12388 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12389 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12390 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12391 | |
| 12392 | cat >>confdefs.h <<_ACEOF |
| 12393 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12394 | _ACEOF |
| 12395 | |
| 12396 | |
| 12397 | fi |
| 12398 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12399 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12400 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12401 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12402 | |
| 12403 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12404 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12405 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12406 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12407 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12408 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12409 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12410 | |
| 12411 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12412 | |
| 12413 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12414 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12415 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12416 | #define _LARGEFILE64_SOURCE |
| 12417 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12418 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12419 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12420 | |
| 12421 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12422 | |
| 12423 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12424 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12425 | # The cast to long int works around a bug in the HP C Compiler |
| 12426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12428 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12430 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12431 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12432 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12433 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12434 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12436 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12437 | if test "$ac_cv_type_short" = yes; then |
| 12438 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12440 | as_fn_error 77 "cannot compute sizeof (short) |
| 12441 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12442 | else |
| 12443 | ac_cv_sizeof_short=0 |
| 12444 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12445 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12446 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12447 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12449 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12450 | |
| 12451 | |
| 12452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12453 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12454 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12455 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12456 | |
| 12457 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12458 | # The cast to long int works around a bug in the HP C Compiler |
| 12459 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12460 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12461 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12463 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12464 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12465 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12466 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12467 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12468 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12469 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12470 | if test "$ac_cv_type_int" = yes; then |
| 12471 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12472 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12473 | as_fn_error 77 "cannot compute sizeof (int) |
| 12474 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12475 | else |
| 12476 | ac_cv_sizeof_int=0 |
| 12477 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12478 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12480 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12482 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12483 | |
| 12484 | |
| 12485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12486 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12487 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12488 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12489 | |
| 12490 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12491 | # The cast to long int works around a bug in the HP C Compiler |
| 12492 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12493 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12494 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12496 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12497 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12498 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12499 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12500 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12501 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12502 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12503 | if test "$ac_cv_type_long" = yes; then |
| 12504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12506 | as_fn_error 77 "cannot compute sizeof (long) |
| 12507 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12508 | else |
| 12509 | ac_cv_sizeof_long=0 |
| 12510 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12511 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12512 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12513 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12515 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12516 | |
| 12517 | |
| 12518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12520 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12521 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12522 | |
| 12523 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12524 | # The cast to long int works around a bug in the HP C Compiler |
| 12525 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12526 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12527 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12529 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12530 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12531 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12532 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12533 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12535 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12536 | if test "$ac_cv_type_long_long" = yes; then |
| 12537 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12539 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12540 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12541 | else |
| 12542 | ac_cv_sizeof_long_long=0 |
| 12543 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12544 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12545 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12546 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12548 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12549 | |
| 12550 | |
| 12551 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12552 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12553 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12554 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12555 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12556 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12557 | # The cast to long int works around a bug in the HP C Compiler |
| 12558 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12559 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12560 | # This bug is HP SR number 8606223364. |
| 12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12562 | $as_echo_n "checking size of off_t... " >&6; } |
| 12563 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12564 | $as_echo_n "(cached) " >&6 |
| 12565 | else |
| 12566 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12567 | |
| 12568 | else |
| 12569 | if test "$ac_cv_type_off_t" = yes; then |
| 12570 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12572 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12573 | See \`config.log' for more details" "$LINENO" 5; } |
| 12574 | else |
| 12575 | ac_cv_sizeof_off_t=0 |
| 12576 | fi |
| 12577 | fi |
| 12578 | |
| 12579 | fi |
| 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12581 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12582 | |
| 12583 | |
| 12584 | |
| 12585 | cat >>confdefs.h <<_ACEOF |
| 12586 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12587 | _ACEOF |
| 12588 | |
| 12589 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12590 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12591 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12592 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12593 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12594 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 12595 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12596 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12597 | |
| 12598 | |
| 12599 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12601 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12602 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12603 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12604 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12605 | ac_cv_c_bigendian=unknown |
| 12606 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12608 | /* end confdefs.h. */ |
| 12609 | #ifndef __APPLE_CC__ |
| 12610 | not a universal capable compiler |
| 12611 | #endif |
| 12612 | typedef int dummy; |
| 12613 | |
| 12614 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12615 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12616 | |
| 12617 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12618 | # there are at least two -arch flags with different values. |
| 12619 | ac_arch= |
| 12620 | ac_prev= |
| 12621 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12622 | if test -n "$ac_prev"; then |
| 12623 | case $ac_word in |
| 12624 | i?86 | x86_64 | ppc | ppc64) |
| 12625 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12626 | ac_arch=$ac_word |
| 12627 | else |
| 12628 | ac_cv_c_bigendian=universal |
| 12629 | break |
| 12630 | fi |
| 12631 | ;; |
| 12632 | esac |
| 12633 | ac_prev= |
| 12634 | elif test "x$ac_word" = "x-arch"; then |
| 12635 | ac_prev=arch |
| 12636 | fi |
| 12637 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12638 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12640 | if test $ac_cv_c_bigendian = unknown; then |
| 12641 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12643 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12644 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12645 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12646 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12647 | int |
| 12648 | main () |
| 12649 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12650 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12651 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12652 | && LITTLE_ENDIAN) |
| 12653 | bogus endian macros |
| 12654 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12655 | |
| 12656 | ; |
| 12657 | return 0; |
| 12658 | } |
| 12659 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12660 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12661 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12663 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12664 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12665 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12666 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12667 | int |
| 12668 | main () |
| 12669 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12670 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12671 | not big endian |
| 12672 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12673 | |
| 12674 | ; |
| 12675 | return 0; |
| 12676 | } |
| 12677 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12678 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12679 | ac_cv_c_bigendian=yes |
| 12680 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12681 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12682 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12684 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12686 | fi |
| 12687 | if test $ac_cv_c_bigendian = unknown; then |
| 12688 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12691 | #include <limits.h> |
| 12692 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12693 | int |
| 12694 | main () |
| 12695 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12696 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12697 | bogus endian macros |
| 12698 | #endif |
| 12699 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12700 | ; |
| 12701 | return 0; |
| 12702 | } |
| 12703 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12704 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12705 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12707 | /* end confdefs.h. */ |
| 12708 | #include <limits.h> |
| 12709 | |
| 12710 | int |
| 12711 | main () |
| 12712 | { |
| 12713 | #ifndef _BIG_ENDIAN |
| 12714 | not big endian |
| 12715 | #endif |
| 12716 | |
| 12717 | ; |
| 12718 | return 0; |
| 12719 | } |
| 12720 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12721 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12722 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12723 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12724 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12725 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12727 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12729 | fi |
| 12730 | if test $ac_cv_c_bigendian = unknown; then |
| 12731 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12732 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12733 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12735 | /* end confdefs.h. */ |
| 12736 | short int ascii_mm[] = |
| 12737 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12738 | short int ascii_ii[] = |
| 12739 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12740 | int use_ascii (int i) { |
| 12741 | return ascii_mm[i] + ascii_ii[i]; |
| 12742 | } |
| 12743 | short int ebcdic_ii[] = |
| 12744 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12745 | short int ebcdic_mm[] = |
| 12746 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12747 | int use_ebcdic (int i) { |
| 12748 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12749 | } |
| 12750 | extern int foo; |
| 12751 | |
| 12752 | int |
| 12753 | main () |
| 12754 | { |
| 12755 | return use_ascii (foo) == use_ebcdic (foo); |
| 12756 | ; |
| 12757 | return 0; |
| 12758 | } |
| 12759 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12760 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12761 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12762 | ac_cv_c_bigendian=yes |
| 12763 | fi |
| 12764 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12765 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12766 | ac_cv_c_bigendian=no |
| 12767 | else |
| 12768 | # finding both strings is unlikely to happen, but who knows? |
| 12769 | ac_cv_c_bigendian=unknown |
| 12770 | fi |
| 12771 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12772 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12774 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12776 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12777 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12778 | int |
| 12779 | main () |
| 12780 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12781 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12782 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12783 | union |
| 12784 | { |
| 12785 | long int l; |
| 12786 | char c[sizeof (long int)]; |
| 12787 | } u; |
| 12788 | u.l = 1; |
| 12789 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12790 | |
| 12791 | ; |
| 12792 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12793 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12794 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12795 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12796 | ac_cv_c_bigendian=no |
| 12797 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12798 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12799 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12800 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12801 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12802 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12803 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12804 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12805 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12807 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12808 | case $ac_cv_c_bigendian in #( |
| 12809 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12810 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12811 | ;; #( |
| 12812 | no) |
| 12813 | ;; #( |
| 12814 | universal) |
| 12815 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12816 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12817 | |
| 12818 | ;; #( |
| 12819 | *) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12820 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12821 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12822 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12823 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12824 | if test $cross_compiling = no; then |
| 12825 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12826 | else |
| 12827 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12828 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12829 | ASM_TYPES_HEADER=./asm_types.h |
| 12830 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 12831 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 12832 | > public_config.h |
| 12833 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 12834 | uniq tmp_config.$$ >> public_config.h |
| 12835 | else |
| 12836 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 12837 | fi |
| 12838 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 12839 | uniq tmp_config.$$ >> public_config.h |
| 12840 | else |
| 12841 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 12842 | fi |
| 12843 | rm -f tmp_config.$$ |
| 12844 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 12845 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12846 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12847 | do : |
| 12848 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12849 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12850 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12851 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12852 | _ACEOF |
| 12853 | |
| 12854 | fi |
| 12855 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 12856 | done |
| 12857 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12858 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12859 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12860 | |
| 12861 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12862 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12863 | _ACEOF |
| 12864 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12865 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12866 | fi |
| 12867 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12869 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12870 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12871 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12872 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12874 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12875 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12876 | int |
| 12877 | main () |
| 12878 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12879 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12880 | ; |
| 12881 | return 0; |
| 12882 | } |
| 12883 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12884 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12885 | e2fsprogs_cv_struct_st_flags=yes |
| 12886 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12887 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12888 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12890 | fi |
| 12891 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12893 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12894 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12896 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12897 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12898 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12899 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12901 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12902 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12903 | int |
| 12904 | main () |
| 12905 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12906 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12907 | ; |
| 12908 | return 0; |
| 12909 | } |
| 12910 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12911 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12912 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 12913 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12914 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12917 | fi |
| 12918 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12920 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12921 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12922 | |
| 12923 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12924 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12925 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12926 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12927 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12928 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12929 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12930 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12931 | |
| 12932 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12933 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12934 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12935 | |
| 12936 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12937 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12938 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12940 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12941 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12942 | $as_echo_n "(cached) " >&6 |
| 12943 | else |
| 12944 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12946 | /* end confdefs.h. */ |
| 12947 | |
| 12948 | /* Override any GCC internal prototype to avoid an error. |
| 12949 | Use char because int might match the return type of a GCC |
| 12950 | builtin and then its argument prototype would still apply. */ |
| 12951 | #ifdef __cplusplus |
| 12952 | extern "C" |
| 12953 | #endif |
| 12954 | char blkid_probe_all (); |
| 12955 | int |
| 12956 | main () |
| 12957 | { |
| 12958 | return blkid_probe_all (); |
| 12959 | ; |
| 12960 | return 0; |
| 12961 | } |
| 12962 | _ACEOF |
| 12963 | for ac_lib in '' blkid; do |
| 12964 | if test -z "$ac_lib"; then |
| 12965 | ac_res="none required" |
| 12966 | else |
| 12967 | ac_res=-l$ac_lib |
| 12968 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12969 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12970 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12971 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12972 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12973 | rm -f core conftest.err conftest.$ac_objext \ |
| 12974 | conftest$ac_exeext |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12975 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12976 | break |
| 12977 | fi |
| 12978 | done |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12979 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12980 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12981 | else |
| 12982 | ac_cv_search_blkid_probe_all=no |
| 12983 | fi |
| 12984 | rm conftest.$ac_ext |
| 12985 | LIBS=$ac_func_search_save_LIBS |
| 12986 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12988 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 12989 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12990 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12991 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12992 | |
| 12993 | fi |
| 12994 | |
| 12995 | fi |
Theodore Ts'o | 2de2628 | 2014-05-05 01:22:22 -0400 | [diff] [blame] | 12996 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12997 | do : |
| 12998 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12999 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13000 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13001 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13002 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13003 | _ACEOF |
| 13004 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13005 | fi |
| 13006 | done |
| 13007 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13008 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13010 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13011 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13012 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13013 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13014 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13015 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13017 | /* end confdefs.h. */ |
| 13018 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13019 | /* Override any GCC internal prototype to avoid an error. |
| 13020 | Use char because int might match the return type of a GCC |
| 13021 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | #ifdef __cplusplus |
| 13023 | extern "C" |
| 13024 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13025 | char socket (); |
| 13026 | int |
| 13027 | main () |
| 13028 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13029 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13030 | ; |
| 13031 | return 0; |
| 13032 | } |
| 13033 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13034 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13035 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13036 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13037 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13038 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13039 | rm -f core conftest.err conftest.$ac_objext \ |
| 13040 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13041 | LIBS=$ac_check_lib_save_LIBS |
| 13042 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13044 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13045 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13046 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13047 | fi |
| 13048 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13049 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13051 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13052 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13053 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13054 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13056 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13057 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13058 | |
| 13059 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13061 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13062 | ac_cv_have_optreset=yes |
| 13063 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13064 | ac_cv_have_optreset=no |
| 13065 | fi |
| 13066 | rm -f conftest* |
| 13067 | |
| 13068 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13070 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13071 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13072 | |
| 13073 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13074 | |
| 13075 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13076 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13077 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13078 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13079 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13080 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13081 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13083 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13084 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13085 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13086 | else |
| 13087 | ac_check_lib_save_LIBS=$LIBS |
| 13088 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13090 | /* end confdefs.h. */ |
| 13091 | |
| 13092 | /* Override any GCC internal prototype to avoid an error. |
| 13093 | Use char because int might match the return type of a GCC |
| 13094 | builtin and then its argument prototype would still apply. */ |
| 13095 | #ifdef __cplusplus |
| 13096 | extern "C" |
| 13097 | #endif |
| 13098 | char sem_init (); |
| 13099 | int |
| 13100 | main () |
| 13101 | { |
| 13102 | return sem_init (); |
| 13103 | ; |
| 13104 | return 0; |
| 13105 | } |
| 13106 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13107 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13108 | ac_cv_lib_pthread_sem_init=yes |
| 13109 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13110 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13111 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13112 | rm -f core conftest.err conftest.$ac_objext \ |
| 13113 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13114 | LIBS=$ac_check_lib_save_LIBS |
| 13115 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13117 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13118 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13119 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13120 | |
| 13121 | SEM_INIT_LIB=-lpthread |
| 13122 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13124 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13125 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13126 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13127 | else |
| 13128 | ac_check_lib_save_LIBS=$LIBS |
| 13129 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13131 | /* end confdefs.h. */ |
| 13132 | |
| 13133 | /* Override any GCC internal prototype to avoid an error. |
| 13134 | Use char because int might match the return type of a GCC |
| 13135 | builtin and then its argument prototype would still apply. */ |
| 13136 | #ifdef __cplusplus |
| 13137 | extern "C" |
| 13138 | #endif |
| 13139 | char sem_init (); |
| 13140 | int |
| 13141 | main () |
| 13142 | { |
| 13143 | return sem_init (); |
| 13144 | ; |
| 13145 | return 0; |
| 13146 | } |
| 13147 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13148 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13149 | ac_cv_lib_rt_sem_init=yes |
| 13150 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13151 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13152 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13153 | rm -f core conftest.err conftest.$ac_objext \ |
| 13154 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13155 | LIBS=$ac_check_lib_save_LIBS |
| 13156 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13158 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13159 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13160 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13161 | |
| 13162 | SEM_INIT_LIB=-lrt |
| 13163 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13165 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13166 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13167 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13168 | else |
| 13169 | ac_check_lib_save_LIBS=$LIBS |
| 13170 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13172 | /* end confdefs.h. */ |
| 13173 | |
| 13174 | /* Override any GCC internal prototype to avoid an error. |
| 13175 | Use char because int might match the return type of a GCC |
| 13176 | builtin and then its argument prototype would still apply. */ |
| 13177 | #ifdef __cplusplus |
| 13178 | extern "C" |
| 13179 | #endif |
| 13180 | char sem_init (); |
| 13181 | int |
| 13182 | main () |
| 13183 | { |
| 13184 | return sem_init (); |
| 13185 | ; |
| 13186 | return 0; |
| 13187 | } |
| 13188 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13189 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13190 | ac_cv_lib_posix4_sem_init=yes |
| 13191 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13192 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13193 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13194 | rm -f core conftest.err conftest.$ac_objext \ |
| 13195 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13196 | LIBS=$ac_check_lib_save_LIBS |
| 13197 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13199 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13200 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13201 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13202 | |
| 13203 | SEM_INIT_LIB=-lposix4 |
| 13204 | fi |
| 13205 | |
| 13206 | fi |
| 13207 | |
| 13208 | fi |
| 13209 | |
| 13210 | fi |
| 13211 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13213 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13214 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13215 | UNI_DIFF_OPTS=-u |
| 13216 | else |
| 13217 | UNI_DIFF_OPTS=-c |
| 13218 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13220 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13221 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13222 | case "$host_os" in |
| 13223 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13224 | |
| 13225 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13226 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13227 | ;; |
| 13228 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13229 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13230 | CYGWIN_CMT="#" |
| 13231 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13232 | case "$host_os" in |
| 13233 | linux*) |
| 13234 | LINUX_CMT= |
| 13235 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13236 | cygwin) |
| 13237 | CYGWIN_CMT= |
| 13238 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13239 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13240 | esac |
| 13241 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13242 | |
| 13243 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13244 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13245 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13246 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13247 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13249 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13250 | fi |
| 13251 | ;; |
| 13252 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13253 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13254 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13255 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13256 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13258 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13259 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13261 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13262 | mandir=/usr/share/man |
| 13263 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13264 | fi |
| 13265 | ;; |
| 13266 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13267 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13268 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13269 | root_prefix="$ac_default_prefix" |
| 13270 | else |
| 13271 | root_prefix="$prefix" |
| 13272 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13273 | root_bindir=$bindir |
| 13274 | root_sbindir=$sbindir |
| 13275 | root_libdir=$libdir |
| 13276 | root_sysconfdir=$sysconfdir |
| 13277 | else |
| 13278 | root_bindir='${root_prefix}/bin' |
| 13279 | root_sbindir='${root_prefix}/sbin' |
| 13280 | root_libdir='${root_prefix}/lib' |
| 13281 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13282 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13283 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13284 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13286 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13287 | fi |
| 13288 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13289 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13291 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13292 | fi |
| 13293 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13294 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13296 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13297 | fi |
| 13298 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13299 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13301 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13302 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13303 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13304 | |
| 13305 | |
| 13306 | |
| 13307 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13308 | |
| 13309 | # Check whether --with-multiarch was given. |
| 13310 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13311 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13312 | libdir=/usr/lib64 |
| 13313 | root_libdir=/lib64 |
| 13314 | else |
| 13315 | libdir=$libdir/$withval |
| 13316 | root_libdir=$root_libdir/$withval |
| 13317 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13318 | |
| 13319 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13321 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13322 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13323 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13324 | else |
| 13325 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13327 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13328 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | int |
| 13330 | main () |
| 13331 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13332 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13333 | ; |
| 13334 | return 0; |
| 13335 | } |
| 13336 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13337 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13338 | ac_cv_e2fsprogs_use_static=yes |
| 13339 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13340 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13341 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13342 | rm -f core conftest.err conftest.$ac_objext \ |
| 13343 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13344 | LDFLAGS=$SAVE_LDFLAGS |
| 13345 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13346 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13347 | case "$host_os" in |
| 13348 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13349 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13350 | ;; |
| 13351 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13353 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 13354 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13355 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13356 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13357 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13358 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13359 | case "$host_os" in |
| 13360 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13362 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13363 | |
| 13364 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13365 | |
| 13366 | ;; |
| 13367 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13368 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13369 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13370 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13371 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13372 | if test "$cross_compiling" = yes ; then |
| 13373 | DO_TEST_SUITE= |
| 13374 | else |
| 13375 | DO_TEST_SUITE=check |
| 13376 | fi |
| 13377 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13378 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13379 | if test -n "$CPPFLAGS" ; then |
| 13380 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13381 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13382 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13383 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13384 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13385 | if test -n "$WITH_DIET_LIBC" ; then |
| 13386 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13387 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13388 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13389 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13390 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13391 | BUILD_LDFLAGS="$LDFLAGS" |
| 13392 | else |
| 13393 | BUILD_CFLAGS= |
| 13394 | BUILD_LDFLAGS= |
| 13395 | fi |
| 13396 | |
| 13397 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13398 | test -d lib || mkdir lib |
| 13399 | test -d include || mkdir include |
| 13400 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13401 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13402 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13403 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13404 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13405 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13406 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 13407 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 13408 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 13409 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 13410 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13411 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13412 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13413 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13414 | if test -d `dirname ${srcdir}/$i` ; then |
| 13415 | outlist="$outlist $i" |
| 13416 | fi |
| 13417 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13418 | ac_config_files="$ac_config_files $outlist" |
| 13419 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13420 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13421 | # This file is a shell script that caches the results of configure |
| 13422 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13423 | # scripts and configure runs, see configure's option --config-cache. |
| 13424 | # It is not useful on other systems. If it contains results you don't |
| 13425 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13426 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13427 | # config.status only pays attention to the cache file if you give it |
| 13428 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13429 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13430 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13431 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13432 | # following values. |
| 13433 | |
| 13434 | _ACEOF |
| 13435 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13436 | # The following way of writing the cache mishandles newlines in values, |
| 13437 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13438 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13439 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13440 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13441 | ( |
| 13442 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13443 | eval ac_val=\$$ac_var |
| 13444 | case $ac_val in #( |
| 13445 | *${as_nl}*) |
| 13446 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13447 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13448 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13449 | esac |
| 13450 | case $ac_var in #( |
| 13451 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13452 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13453 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13454 | esac ;; |
| 13455 | esac |
| 13456 | done |
| 13457 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13458 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13459 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13460 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13461 | # `set' does not quote correctly, so add quotes: double-quote |
| 13462 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13463 | sed -n \ |
| 13464 | "s/'/'\\\\''/g; |
| 13465 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13466 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13467 | *) |
| 13468 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13469 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13470 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13471 | esac | |
| 13472 | sort |
| 13473 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13475 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13476 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13477 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13478 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13479 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13480 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13481 | :end' >>confcache |
| 13482 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13483 | if test -w "$cache_file"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13484 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13486 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13487 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13488 | cat confcache >"$cache_file" |
| 13489 | else |
| 13490 | case $cache_file in #( |
| 13491 | */* | ?:*) |
| 13492 | mv -f confcache "$cache_file"$$ && |
| 13493 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13494 | *) |
| 13495 | mv -f confcache "$cache_file" ;; |
| 13496 | esac |
| 13497 | fi |
| 13498 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13499 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13501 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13502 | fi |
| 13503 | fi |
| 13504 | rm -f confcache |
| 13505 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13506 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13507 | # Let make expand exec_prefix. |
| 13508 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13509 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13510 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13511 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13512 | ac_libobjs= |
| 13513 | ac_ltlibobjs= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13514 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13515 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13516 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13517 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13518 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13519 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13520 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13521 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13522 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13523 | done |
| 13524 | LIBOBJS=$ac_libobjs |
| 13525 | |
| 13526 | LTLIBOBJS=$ac_ltlibobjs |
| 13527 | |
| 13528 | |
| 13529 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13530 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13531 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13532 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13533 | ac_clean_files_save=$ac_clean_files |
| 13534 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13536 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13537 | as_write_fail=0 |
| 13538 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13539 | #! $SHELL |
| 13540 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13541 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13542 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13543 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13544 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13545 | debug=false |
| 13546 | ac_cs_recheck=false |
| 13547 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13548 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13549 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13550 | export SHELL |
| 13551 | _ASEOF |
| 13552 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13553 | ## -------------------- ## |
| 13554 | ## M4sh Initialization. ## |
| 13555 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13556 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13557 | # Be more Bourne compatible |
| 13558 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13559 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13560 | emulate sh |
| 13561 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13562 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13563 | # is contrary to our usage. Disable this feature. |
| 13564 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13565 | setopt NO_GLOB_SUBST |
| 13566 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13567 | case `(set -o) 2>/dev/null` in #( |
| 13568 | *posix*) : |
| 13569 | set -o posix ;; #( |
| 13570 | *) : |
| 13571 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13572 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13573 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13574 | |
| 13575 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13576 | as_nl=' |
| 13577 | ' |
| 13578 | export as_nl |
| 13579 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13580 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13581 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13582 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13583 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13584 | # but without wasting forks for bash or zsh. |
| 13585 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13586 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13587 | as_echo='print -r --' |
| 13588 | as_echo_n='print -rn --' |
| 13589 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13590 | as_echo='printf %s\n' |
| 13591 | as_echo_n='printf %s' |
| 13592 | else |
| 13593 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13594 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13595 | as_echo_n='/usr/ucb/echo -n' |
| 13596 | else |
| 13597 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13598 | as_echo_n_body='eval |
| 13599 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13600 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13601 | *"$as_nl"*) |
| 13602 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13603 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13604 | esac; |
| 13605 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13606 | ' |
| 13607 | export as_echo_n_body |
| 13608 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13609 | fi |
| 13610 | export as_echo_body |
| 13611 | as_echo='sh -c $as_echo_body as_echo' |
| 13612 | fi |
| 13613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13614 | # The user is always right. |
| 13615 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13616 | PATH_SEPARATOR=: |
| 13617 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13618 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13619 | PATH_SEPARATOR=';' |
| 13620 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13621 | fi |
| 13622 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13623 | |
| 13624 | # IFS |
| 13625 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13626 | # there to prevent editors from complaining about space-tab. |
| 13627 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13628 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13629 | IFS=" "" $as_nl" |
| 13630 | |
| 13631 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13632 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13633 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13634 | *[\\/]* ) as_myself=$0 ;; |
| 13635 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13636 | for as_dir in $PATH |
| 13637 | do |
| 13638 | IFS=$as_save_IFS |
| 13639 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13640 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13641 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13642 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13644 | ;; |
| 13645 | esac |
| 13646 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13647 | # in which case we are not to be found in the path. |
| 13648 | if test "x$as_myself" = x; then |
| 13649 | as_myself=$0 |
| 13650 | fi |
| 13651 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13652 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13653 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13654 | fi |
| 13655 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13656 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13657 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13658 | # suppresses any "Segmentation fault" message there. '((' could |
| 13659 | # trigger a bug in pdksh 5.2.14. |
| 13660 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13661 | do eval test x\${$as_var+set} = xset \ |
| 13662 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13663 | done |
| 13664 | PS1='$ ' |
| 13665 | PS2='> ' |
| 13666 | PS4='+ ' |
| 13667 | |
| 13668 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13669 | LC_ALL=C |
| 13670 | export LC_ALL |
| 13671 | LANGUAGE=C |
| 13672 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13673 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13674 | # CDPATH. |
| 13675 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13676 | |
| 13677 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13678 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13679 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13680 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13681 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13682 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13683 | as_fn_error () |
| 13684 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13685 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13686 | if test "$4"; then |
| 13687 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13688 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13689 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13690 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13691 | as_fn_exit $as_status |
| 13692 | } # as_fn_error |
| 13693 | |
| 13694 | |
| 13695 | # as_fn_set_status STATUS |
| 13696 | # ----------------------- |
| 13697 | # Set $? to STATUS, without forking. |
| 13698 | as_fn_set_status () |
| 13699 | { |
| 13700 | return $1 |
| 13701 | } # as_fn_set_status |
| 13702 | |
| 13703 | # as_fn_exit STATUS |
| 13704 | # ----------------- |
| 13705 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13706 | as_fn_exit () |
| 13707 | { |
| 13708 | set +e |
| 13709 | as_fn_set_status $1 |
| 13710 | exit $1 |
| 13711 | } # as_fn_exit |
| 13712 | |
| 13713 | # as_fn_unset VAR |
| 13714 | # --------------- |
| 13715 | # Portably unset VAR. |
| 13716 | as_fn_unset () |
| 13717 | { |
| 13718 | { eval $1=; unset $1;} |
| 13719 | } |
| 13720 | as_unset=as_fn_unset |
| 13721 | # as_fn_append VAR VALUE |
| 13722 | # ---------------------- |
| 13723 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13724 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13725 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13726 | # implementations. |
| 13727 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13728 | eval 'as_fn_append () |
| 13729 | { |
| 13730 | eval $1+=\$2 |
| 13731 | }' |
| 13732 | else |
| 13733 | as_fn_append () |
| 13734 | { |
| 13735 | eval $1=\$$1\$2 |
| 13736 | } |
| 13737 | fi # as_fn_append |
| 13738 | |
| 13739 | # as_fn_arith ARG... |
| 13740 | # ------------------ |
| 13741 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13742 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13743 | # must be portable across $(()) and expr. |
| 13744 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13745 | eval 'as_fn_arith () |
| 13746 | { |
| 13747 | as_val=$(( $* )) |
| 13748 | }' |
| 13749 | else |
| 13750 | as_fn_arith () |
| 13751 | { |
| 13752 | as_val=`expr "$@" || test $? -eq 1` |
| 13753 | } |
| 13754 | fi # as_fn_arith |
| 13755 | |
| 13756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13757 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13758 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13759 | as_expr=expr |
| 13760 | else |
| 13761 | as_expr=false |
| 13762 | fi |
| 13763 | |
| 13764 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13765 | as_basename=basename |
| 13766 | else |
| 13767 | as_basename=false |
| 13768 | fi |
| 13769 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13770 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13771 | as_dirname=dirname |
| 13772 | else |
| 13773 | as_dirname=false |
| 13774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13776 | as_me=`$as_basename -- "$0" || |
| 13777 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13778 | X"$0" : 'X\(//\)$' \| \ |
| 13779 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13780 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13781 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13782 | s//\1/ |
| 13783 | q |
| 13784 | } |
| 13785 | /^X\/\(\/\/\)$/{ |
| 13786 | s//\1/ |
| 13787 | q |
| 13788 | } |
| 13789 | /^X\/\(\/\).*/{ |
| 13790 | s//\1/ |
| 13791 | q |
| 13792 | } |
| 13793 | s/.*/./; q'` |
| 13794 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13795 | # Avoid depending upon Character Ranges. |
| 13796 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13797 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13798 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13799 | as_cr_digits='0123456789' |
| 13800 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13801 | |
| 13802 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13803 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13805 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13806 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13807 | xy) ECHO_C='\c';; |
| 13808 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13809 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13810 | esac;; |
| 13811 | *) |
| 13812 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13813 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13814 | |
| 13815 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13816 | if test -d conf$$.dir; then |
| 13817 | rm -f conf$$.dir/conf$$.file |
| 13818 | else |
| 13819 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13820 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13821 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13822 | if (echo >conf$$.file) 2>/dev/null; then |
| 13823 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13824 | as_ln_s='ln -s' |
| 13825 | # ... but there are two gotchas: |
| 13826 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13827 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13828 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13829 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13830 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13831 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13832 | as_ln_s=ln |
| 13833 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13834 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13835 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13836 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13837 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13838 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13839 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13840 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13841 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13842 | |
| 13843 | # as_fn_mkdir_p |
| 13844 | # ------------- |
| 13845 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13846 | as_fn_mkdir_p () |
| 13847 | { |
| 13848 | |
| 13849 | case $as_dir in #( |
| 13850 | -*) as_dir=./$as_dir;; |
| 13851 | esac |
| 13852 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13853 | as_dirs= |
| 13854 | while :; do |
| 13855 | case $as_dir in #( |
| 13856 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13857 | *) as_qdir=$as_dir;; |
| 13858 | esac |
| 13859 | as_dirs="'$as_qdir' $as_dirs" |
| 13860 | as_dir=`$as_dirname -- "$as_dir" || |
| 13861 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13862 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13863 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13864 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13865 | $as_echo X"$as_dir" | |
| 13866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13867 | s//\1/ |
| 13868 | q |
| 13869 | } |
| 13870 | /^X\(\/\/\)[^/].*/{ |
| 13871 | s//\1/ |
| 13872 | q |
| 13873 | } |
| 13874 | /^X\(\/\/\)$/{ |
| 13875 | s//\1/ |
| 13876 | q |
| 13877 | } |
| 13878 | /^X\(\/\).*/{ |
| 13879 | s//\1/ |
| 13880 | q |
| 13881 | } |
| 13882 | s/.*/./; q'` |
| 13883 | test -d "$as_dir" && break |
| 13884 | done |
| 13885 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13886 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13887 | |
| 13888 | |
| 13889 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13890 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13891 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13892 | else |
| 13893 | test -d ./-p && rmdir ./-p |
| 13894 | as_mkdir_p=false |
| 13895 | fi |
| 13896 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13897 | |
| 13898 | # as_fn_executable_p FILE |
| 13899 | # ----------------------- |
| 13900 | # Test if FILE is an executable regular file. |
| 13901 | as_fn_executable_p () |
| 13902 | { |
| 13903 | test -f "$1" && test -x "$1" |
| 13904 | } # as_fn_executable_p |
| 13905 | as_test_x='test -x' |
| 13906 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13907 | |
| 13908 | # Sed expression to map a string onto a valid CPP name. |
| 13909 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 13910 | |
| 13911 | # Sed expression to map a string onto a valid variable name. |
| 13912 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 13913 | |
| 13914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13915 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13916 | ## ----------------------------------- ## |
| 13917 | ## Main body of $CONFIG_STATUS script. ## |
| 13918 | ## ----------------------------------- ## |
| 13919 | _ASEOF |
| 13920 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13921 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13923 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13924 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13925 | # values after options handling. |
| 13926 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13927 | This file was extended by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13928 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13929 | |
| 13930 | CONFIG_FILES = $CONFIG_FILES |
| 13931 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13932 | CONFIG_LINKS = $CONFIG_LINKS |
| 13933 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13934 | $ $0 $@ |
| 13935 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13936 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13937 | " |
| 13938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13939 | _ACEOF |
| 13940 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13941 | case $ac_config_files in *" |
| 13942 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13943 | esac |
| 13944 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13945 | case $ac_config_headers in *" |
| 13946 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13947 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13948 | |
| 13949 | |
| 13950 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13951 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13952 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13953 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13954 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13956 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13957 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13960 | \`$as_me' instantiates files and other configuration actions |
| 13961 | from templates according to the current configuration. Unless the files |
| 13962 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13963 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13964 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13965 | |
| 13966 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13967 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 13968 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13969 | -q, --quiet, --silent |
| 13970 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13971 | -d, --debug don't remove temporary files |
| 13972 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13973 | --file=FILE[:TEMPLATE] |
| 13974 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13975 | --header=FILE[:TEMPLATE] |
| 13976 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13977 | |
| 13978 | Configuration files: |
| 13979 | $config_files |
| 13980 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13981 | Configuration headers: |
| 13982 | $config_headers |
| 13983 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13984 | Configuration commands: |
| 13985 | $config_commands |
| 13986 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13987 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13988 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13989 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 13991 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13992 | ac_cs_version="\\ |
| 13993 | config.status |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13994 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 13995 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13996 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13997 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | This config.status script is free software; the Free Software Foundation |
| 13999 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14000 | |
| 14001 | ac_pwd='$ac_pwd' |
| 14002 | srcdir='$srcdir' |
| 14003 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14004 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14005 | AWK='$AWK' |
| 14006 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14007 | _ACEOF |
| 14008 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14010 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14011 | ac_need_defaults=: |
| 14012 | while test $# != 0 |
| 14013 | do |
| 14014 | case $1 in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14015 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14016 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14017 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14018 | ac_shift=: |
| 14019 | ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14020 | --*=) |
| 14021 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14022 | ac_optarg= |
| 14023 | ac_shift=: |
| 14024 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14025 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14026 | ac_option=$1 |
| 14027 | ac_optarg=$2 |
| 14028 | ac_shift=shift |
| 14029 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14030 | esac |
| 14031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14032 | case $ac_option in |
| 14033 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14034 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14035 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14036 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14037 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14038 | --config | --confi | --conf | --con | --co | --c ) |
| 14039 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14040 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14041 | debug=: ;; |
| 14042 | --file | --fil | --fi | --f ) |
| 14043 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14044 | case $ac_optarg in |
| 14045 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14046 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14047 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14048 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14049 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14050 | --header | --heade | --head | --hea ) |
| 14051 | $ac_shift |
| 14052 | case $ac_optarg in |
| 14053 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14054 | esac |
| 14055 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14056 | ac_need_defaults=false;; |
| 14057 | --he | --h) |
| 14058 | # Conflict between --help and --header |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14059 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14060 | Try \`$0 --help' for more information.";; |
| 14061 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14062 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14064 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14065 | ac_cs_silent=: ;; |
| 14066 | |
| 14067 | # This is an error. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14068 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14069 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14070 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14071 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14072 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14073 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14074 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14075 | shift |
| 14076 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14077 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14078 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14079 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14080 | if $ac_cs_silent; then |
| 14081 | exec 6>/dev/null |
| 14082 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14083 | fi |
| 14084 | |
| 14085 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14086 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14087 | if \$ac_cs_recheck; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14088 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14089 | shift |
| 14090 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14091 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14092 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14093 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14094 | fi |
| 14095 | |
| 14096 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14098 | exec 5>>config.log |
| 14099 | { |
| 14100 | echo |
| 14101 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14102 | ## Running $as_me. ## |
| 14103 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14104 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14105 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14106 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14107 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14109 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14110 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14111 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14112 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14113 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14114 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14115 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14116 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14117 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14118 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14120 | _ACEOF |
| 14121 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14123 | |
| 14124 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14125 | for ac_config_target in $ac_config_targets |
| 14126 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14127 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14128 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14129 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14130 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14131 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14132 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14133 | esac |
| 14134 | done |
| 14135 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14136 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14137 | # If the user did not use the arguments to specify the items to instantiate, |
| 14138 | # then the envvar interface is used. Set only those that are not. |
| 14139 | # We use the long form for the default assignment because of an extremely |
| 14140 | # bizarre bug on SunOS 4.1.3. |
| 14141 | if $ac_need_defaults; then |
| 14142 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14143 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14144 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14145 | fi |
| 14146 | |
| 14147 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14148 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14149 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14150 | # Hook for its removal unless debugging. |
| 14151 | # Note that there is a small window in which the directory will not be cleaned: |
| 14152 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | $debug || |
| 14154 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14155 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14156 | trap 'exit_status=$? |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14157 | : "${ac_tmp:=$tmp}" |
| 14158 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14159 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14160 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14161 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14162 | # Create a (secure) tmp directory for tmp files. |
| 14163 | |
| 14164 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14165 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14166 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | } || |
| 14168 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14169 | tmp=./conf$$-$RANDOM |
| 14170 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14171 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14172 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14173 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14174 | # Set up the scripts for CONFIG_FILES section. |
| 14175 | # No need to generate them if there are no CONFIG_FILES. |
| 14176 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14177 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14178 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14179 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14180 | ac_cs_awk_getline=: |
| 14181 | ac_cs_awk_pipe_init= |
| 14182 | ac_cs_awk_read_file=' |
| 14183 | while ((getline aline < (F[key])) > 0) |
| 14184 | print(aline) |
| 14185 | close(F[key])' |
| 14186 | ac_cs_awk_pipe_fini= |
| 14187 | else |
| 14188 | ac_cs_awk_getline=false |
| 14189 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14190 | ac_cs_awk_read_file=' |
| 14191 | print "|#_!!_#|" |
| 14192 | print "cat " F[key] " &&" |
| 14193 | '$ac_cs_awk_pipe_init |
| 14194 | # The final `:' finishes the AND list. |
| 14195 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14196 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14197 | ac_cr=`echo X | tr X '\015'` |
| 14198 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14199 | # But we know of no other shell where ac_cr would be empty at this |
| 14200 | # point, so we can use a bashism as a fallback. |
| 14201 | if test "x$ac_cr" = x; then |
| 14202 | eval ac_cr=\$\'\\r\' |
| 14203 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14204 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14205 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14206 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14207 | else |
| 14208 | ac_cs_awk_cr=$ac_cr |
| 14209 | fi |
| 14210 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14211 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14212 | _ACEOF |
| 14213 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14214 | # Create commands to substitute file output variables. |
| 14215 | { |
| 14216 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14217 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14218 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14219 | echo "_ACAWK" && |
| 14220 | echo "_ACEOF" |
| 14221 | } >conf$$files.sh && |
| 14222 | . ./conf$$files.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14223 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14224 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14225 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14226 | { |
| 14227 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14228 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14229 | echo "_ACEOF" |
| 14230 | } >conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14231 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14232 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14233 | ac_delim='%!_!# ' |
| 14234 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14235 | . ./conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14236 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14237 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14238 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14239 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14240 | break |
| 14241 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14242 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14243 | else |
| 14244 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14246 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14247 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14248 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14250 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14251 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14252 | sed -n ' |
| 14253 | h |
| 14254 | s/^/S["/; s/!.*/"]=/ |
| 14255 | p |
| 14256 | g |
| 14257 | s/^[^!]*!// |
| 14258 | :repl |
| 14259 | t repl |
| 14260 | s/'"$ac_delim"'$// |
| 14261 | t delim |
| 14262 | :nl |
| 14263 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14264 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14265 | t more1 |
| 14266 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14267 | p |
| 14268 | n |
| 14269 | b repl |
| 14270 | :more1 |
| 14271 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14272 | p |
| 14273 | g |
| 14274 | s/.\{148\}// |
| 14275 | t nl |
| 14276 | :delim |
| 14277 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14278 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14279 | t more2 |
| 14280 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14281 | p |
| 14282 | b |
| 14283 | :more2 |
| 14284 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14285 | p |
| 14286 | g |
| 14287 | s/.\{148\}// |
| 14288 | t delim |
| 14289 | ' <conf$$subs.awk | sed ' |
| 14290 | /^[^""]/{ |
| 14291 | N |
| 14292 | s/\n// |
| 14293 | } |
| 14294 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14295 | rm -f conf$$subs.awk |
| 14296 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14297 | _ACAWK |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14298 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14299 | for (key in S) S_is_set[key] = 1 |
| 14300 | FS = "" |
| 14301 | \$ac_cs_awk_pipe_init |
| 14302 | } |
| 14303 | { |
| 14304 | line = $ 0 |
| 14305 | nfields = split(line, field, "@") |
| 14306 | substed = 0 |
| 14307 | len = length(field[1]) |
| 14308 | for (i = 2; i < nfields; i++) { |
| 14309 | key = field[i] |
| 14310 | keylen = length(key) |
| 14311 | if (S_is_set[key]) { |
| 14312 | value = S[key] |
| 14313 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14314 | len += length(value) + length(field[++i]) |
| 14315 | substed = 1 |
| 14316 | } else |
| 14317 | len += 1 + keylen |
| 14318 | } |
| 14319 | if (nfields == 3 && !substed) { |
| 14320 | key = field[2] |
| 14321 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14322 | \$ac_cs_awk_read_file |
| 14323 | next |
| 14324 | } |
| 14325 | } |
| 14326 | print line |
| 14327 | } |
| 14328 | \$ac_cs_awk_pipe_fini |
| 14329 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14330 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14332 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14333 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14334 | else |
| 14335 | cat |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14336 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14337 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14338 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14339 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14340 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14341 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14342 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14343 | # (actually we leave an empty line to preserve line numbers). |
| 14344 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14345 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14346 | h |
| 14347 | s/// |
| 14348 | s/^/:/ |
| 14349 | s/[ ]*$/:/ |
| 14350 | s/:\$(srcdir):/:/g |
| 14351 | s/:\${srcdir}:/:/g |
| 14352 | s/:@srcdir@:/:/g |
| 14353 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14354 | s/:*$// |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14355 | x |
| 14356 | s/\(=[ ]*\).*/\1/ |
| 14357 | G |
| 14358 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14359 | s/^[^=]*=[ ]*$// |
| 14360 | }' |
| 14361 | fi |
| 14362 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14364 | fi # test -n "$CONFIG_FILES" |
| 14365 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14366 | # Set up the scripts for CONFIG_HEADERS section. |
| 14367 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14368 | # This happens for instance with `./config.status Makefile'. |
| 14369 | if test -n "$CONFIG_HEADERS"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14370 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14371 | BEGIN { |
| 14372 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14373 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14374 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14375 | # here-document in config.status, that substitutes the proper values into |
| 14376 | # config.h.in to produce config.h. |
| 14377 | |
| 14378 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14379 | # handling of long lines. |
| 14380 | ac_delim='%!_!# ' |
| 14381 | for ac_last_try in false false :; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14382 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14383 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14384 | break |
| 14385 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14386 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14387 | else |
| 14388 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14389 | fi |
| 14390 | done |
| 14391 | |
| 14392 | # For the awk script, D is an array of macro values keyed by name, |
| 14393 | # likewise P contains macro parameters if any. Preserve backslash |
| 14394 | # newline sequences. |
| 14395 | |
| 14396 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14397 | sed -n ' |
| 14398 | s/.\{148\}/&'"$ac_delim"'/g |
| 14399 | t rset |
| 14400 | :rset |
| 14401 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14402 | t def |
| 14403 | d |
| 14404 | :def |
| 14405 | s/\\$// |
| 14406 | t bsnl |
| 14407 | s/["\\]/\\&/g |
| 14408 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14409 | D["\1"]=" \3"/p |
| 14410 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14411 | d |
| 14412 | :bsnl |
| 14413 | s/["\\]/\\&/g |
| 14414 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14415 | D["\1"]=" \3\\\\\\n"\\/p |
| 14416 | t cont |
| 14417 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14418 | t cont |
| 14419 | d |
| 14420 | :cont |
| 14421 | n |
| 14422 | s/.\{148\}/&'"$ac_delim"'/g |
| 14423 | t clear |
| 14424 | :clear |
| 14425 | s/\\$// |
| 14426 | t bsnlc |
| 14427 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14428 | d |
| 14429 | :bsnlc |
| 14430 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14431 | b cont |
| 14432 | ' <confdefs.h | sed ' |
| 14433 | s/'"$ac_delim"'/"\\\ |
| 14434 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14435 | |
| 14436 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14437 | for (key in D) D_is_set[key] = 1 |
| 14438 | FS = "" |
| 14439 | } |
| 14440 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14441 | line = \$ 0 |
| 14442 | split(line, arg, " ") |
| 14443 | if (arg[1] == "#") { |
| 14444 | defundef = arg[2] |
| 14445 | mac1 = arg[3] |
| 14446 | } else { |
| 14447 | defundef = substr(arg[1], 2) |
| 14448 | mac1 = arg[2] |
| 14449 | } |
| 14450 | split(mac1, mac2, "(") #) |
| 14451 | macro = mac2[1] |
| 14452 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14453 | if (D_is_set[macro]) { |
| 14454 | # Preserve the white space surrounding the "#". |
| 14455 | print prefix "define", macro P[macro] D[macro] |
| 14456 | next |
| 14457 | } else { |
| 14458 | # Replace #undef with comments. This is necessary, for example, |
| 14459 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14460 | # on some systems where configure will not decide to define it. |
| 14461 | if (defundef == "undef") { |
| 14462 | print "/*", prefix defundef, macro, "*/" |
| 14463 | next |
| 14464 | } |
| 14465 | } |
| 14466 | } |
| 14467 | { print } |
| 14468 | _ACAWK |
| 14469 | _ACEOF |
| 14470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14471 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14472 | fi # test -n "$CONFIG_HEADERS" |
| 14473 | |
| 14474 | |
| 14475 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14476 | shift |
| 14477 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14478 | do |
| 14479 | case $ac_tag in |
| 14480 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14481 | esac |
| 14482 | case $ac_mode$ac_tag in |
| 14483 | :[FHL]*:*);; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14484 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14485 | :[FH]-) ac_tag=-:-;; |
| 14486 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14487 | esac |
| 14488 | ac_save_IFS=$IFS |
| 14489 | IFS=: |
| 14490 | set x $ac_tag |
| 14491 | IFS=$ac_save_IFS |
| 14492 | shift |
| 14493 | ac_file=$1 |
| 14494 | shift |
| 14495 | |
| 14496 | case $ac_mode in |
| 14497 | :L) ac_source=$1;; |
| 14498 | :[FH]) |
| 14499 | ac_file_inputs= |
| 14500 | for ac_f |
| 14501 | do |
| 14502 | case $ac_f in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14503 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14504 | *) # Look for the file first in the build tree, then in the source tree |
| 14505 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14506 | # because $ac_f cannot contain `:'. |
| 14507 | test -f "$ac_f" || |
| 14508 | case $ac_f in |
| 14509 | [\\/$]*) false;; |
| 14510 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14511 | esac || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14512 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14513 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14514 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14515 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14516 | done |
| 14517 | |
| 14518 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14519 | # use $as_me), people would be surprised to read: |
| 14520 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14521 | configure_input='Generated from '` |
| 14522 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14523 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14524 | if test x"$ac_file" != x-; then |
| 14525 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14527 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14528 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14529 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14530 | case $configure_input in #( |
| 14531 | *\&* | *\|* | *\\* ) |
| 14532 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14533 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14534 | *) ac_sed_conf_input=$configure_input;; |
| 14535 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14536 | |
| 14537 | case $ac_tag in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14538 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14539 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14540 | esac |
| 14541 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14542 | esac |
| 14543 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14544 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14545 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14546 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14547 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14548 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14549 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14550 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14551 | s//\1/ |
| 14552 | q |
| 14553 | } |
| 14554 | /^X\(\/\/\)[^/].*/{ |
| 14555 | s//\1/ |
| 14556 | q |
| 14557 | } |
| 14558 | /^X\(\/\/\)$/{ |
| 14559 | s//\1/ |
| 14560 | q |
| 14561 | } |
| 14562 | /^X\(\/\).*/{ |
| 14563 | s//\1/ |
| 14564 | q |
| 14565 | } |
| 14566 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14567 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14568 | ac_builddir=. |
| 14569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14570 | case "$ac_dir" in |
| 14571 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14572 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14573 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14574 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14575 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14576 | case $ac_top_builddir_sub in |
| 14577 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14578 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14579 | esac ;; |
| 14580 | esac |
| 14581 | ac_abs_top_builddir=$ac_pwd |
| 14582 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14583 | # for backward compatibility: |
| 14584 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14585 | |
| 14586 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14587 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14588 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14589 | ac_top_srcdir=$ac_top_builddir_sub |
| 14590 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14591 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14593 | ac_top_srcdir=$srcdir |
| 14594 | ac_abs_top_srcdir=$srcdir ;; |
| 14595 | *) # Relative name. |
| 14596 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14597 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14598 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14599 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14600 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14601 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14603 | case $ac_mode in |
| 14604 | :F) |
| 14605 | # |
| 14606 | # CONFIG_FILE |
| 14607 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14608 | |
| 14609 | case $INSTALL in |
| 14610 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14611 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14612 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14613 | ac_MKDIR_P=$MKDIR_P |
| 14614 | case $MKDIR_P in |
| 14615 | [\\/$]* | ?:[\\/]* ) ;; |
| 14616 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14617 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14618 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14619 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14620 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14621 | # If the template does not know about datarootdir, expand it. |
| 14622 | # FIXME: This hack should be removed a few years after 2.60. |
| 14623 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14624 | ac_sed_dataroot=' |
| 14625 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14626 | p |
| 14627 | q |
| 14628 | } |
| 14629 | /@datadir@/p |
| 14630 | /@docdir@/p |
| 14631 | /@infodir@/p |
| 14632 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14633 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14634 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14635 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14636 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14638 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14639 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14640 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14641 | ac_datarootdir_hack=' |
| 14642 | s&@datadir@&$datadir&g |
| 14643 | s&@docdir@&$docdir&g |
| 14644 | s&@infodir@&$infodir&g |
| 14645 | s&@localedir@&$localedir&g |
| 14646 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14647 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14648 | esac |
| 14649 | _ACEOF |
| 14650 | |
| 14651 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14652 | # Shell code in configure.ac might set extrasub. |
| 14653 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14654 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14655 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14656 | $extrasub |
| 14657 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14659 | :t |
| 14660 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14661 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14662 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14663 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14664 | s&@srcdir@&$ac_srcdir&;t t |
| 14665 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14666 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14667 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14668 | s&@builddir@&$ac_builddir&;t t |
| 14669 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14670 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14671 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14672 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14673 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14674 | " |
| 14675 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 14676 | if $ac_cs_awk_getline; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14677 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14678 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14679 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 14680 | fi \ |
| 14681 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14682 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14683 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14684 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14685 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14686 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14688 | which seems to be undefined. Please make sure it is defined" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14689 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14690 | which seems to be undefined. Please make sure it is defined" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14691 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14692 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14693 | case $ac_file in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14694 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14695 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14696 | esac \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14697 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14698 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14699 | :H) |
| 14700 | # |
| 14701 | # CONFIG_HEADER |
| 14702 | # |
| 14703 | if test x"$ac_file" != x-; then |
| 14704 | { |
| 14705 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14706 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14707 | } >"$ac_tmp/config.h" \ |
| 14708 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14709 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 14711 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 14712 | else |
| 14713 | rm -f "$ac_file" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14714 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14715 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14716 | fi |
| 14717 | else |
| 14718 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14719 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14720 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14721 | fi |
| 14722 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14723 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14724 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14725 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14726 | ;; |
| 14727 | esac |
| 14728 | |
| 14729 | |
| 14730 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14731 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14732 | for ac_file in $CONFIG_FILES; do |
| 14733 | # Support "outfile[:infile[:infile...]]" |
| 14734 | case "$ac_file" in |
| 14735 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 14736 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14737 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 14738 | case "$ac_file" in */Makefile.in) |
| 14739 | # Adjust a relative srcdir. |
| 14740 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14741 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14742 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 14743 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 14744 | # In autoconf-2.50 it is called $srcdir. |
| 14745 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 14746 | case "$ac_given_srcdir" in |
| 14747 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 14748 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 14749 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 14750 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14751 | # Treat a directory as a PO directory if and only if it has a |
| 14752 | # POTFILES.in file. This allows packages to have multiple PO |
| 14753 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14754 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 14755 | rm -f "$ac_dir/POTFILES" |
| 14756 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14757 | gt_tab=`printf '\t'` |
| 14758 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14759 | POMAKEFILEDEPS="POTFILES.in" |
| 14760 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14761 | # on $ac_dir but don't depend on user-specified configuration |
| 14762 | # parameters. |
| 14763 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 14764 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14765 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14766 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 14767 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14768 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 14769 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14770 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14771 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 14772 | else |
| 14773 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14774 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14775 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14776 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14777 | # Compute POFILES |
| 14778 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 14779 | # Compute UPDATEPOFILES |
| 14780 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 14781 | # Compute DUMMYPOFILES |
| 14782 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 14783 | # Compute GMOFILES |
| 14784 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14785 | case "$ac_given_srcdir" in |
| 14786 | .) srcdirpre= ;; |
| 14787 | *) srcdirpre='$(srcdir)/' ;; |
| 14788 | esac |
| 14789 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14790 | UPDATEPOFILES= |
| 14791 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14792 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14793 | for lang in $ALL_LINGUAS; do |
| 14794 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14795 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 14796 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14798 | done |
| 14799 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 14800 | # environment variable. |
| 14801 | INST_LINGUAS= |
| 14802 | if test -n "$ALL_LINGUAS"; then |
| 14803 | for presentlang in $ALL_LINGUAS; do |
| 14804 | useit=no |
| 14805 | if test "%UNSET%" != "$LINGUAS"; then |
| 14806 | desiredlanguages="$LINGUAS" |
| 14807 | else |
| 14808 | desiredlanguages="$ALL_LINGUAS" |
| 14809 | fi |
| 14810 | for desiredlang in $desiredlanguages; do |
| 14811 | # Use the presentlang catalog if desiredlang is |
| 14812 | # a. equal to presentlang, or |
| 14813 | # b. a variant of presentlang (because in this case, |
| 14814 | # presentlang can be used as a fallback for messages |
| 14815 | # which are not translated in the desiredlang catalog). |
| 14816 | case "$desiredlang" in |
| 14817 | "$presentlang"*) useit=yes;; |
| 14818 | esac |
| 14819 | done |
| 14820 | if test $useit = yes; then |
| 14821 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 14822 | fi |
| 14823 | done |
| 14824 | fi |
| 14825 | CATALOGS= |
| 14826 | if test -n "$INST_LINGUAS"; then |
| 14827 | for lang in $INST_LINGUAS; do |
| 14828 | CATALOGS="$CATALOGS $lang.gmo" |
| 14829 | done |
| 14830 | fi |
| 14831 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14832 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14833 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 14834 | if test -f "$f"; then |
| 14835 | case "$f" in |
| 14836 | *.orig | *.bak | *~) ;; |
| 14837 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 14838 | esac |
| 14839 | fi |
| 14840 | done |
| 14841 | fi |
| 14842 | ;; |
| 14843 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14844 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14846 | esac |
| 14847 | done # for ac_tag |
| 14848 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14849 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14850 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14851 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14852 | ac_clean_files=$ac_clean_files_save |
| 14853 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14854 | test $ac_write_fail = 0 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14855 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14856 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14857 | |
| 14858 | # configure is writing to config.log, and then calls config.status. |
| 14859 | # config.status does its own redirection, appending to config.log. |
| 14860 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14861 | # by configure, so config.status won't be able to write to it; its |
| 14862 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14863 | # effectively closing config.log, so it can be properly (re)opened and |
| 14864 | # appended to by config.status. When coming back to configure, we |
| 14865 | # need to make the FD available again. |
| 14866 | if test "$no_create" != yes; then |
| 14867 | ac_cs_success=: |
| 14868 | ac_config_status_args= |
| 14869 | test "$silent" = yes && |
| 14870 | ac_config_status_args="$ac_config_status_args --quiet" |
| 14871 | exec 5>/dev/null |
| 14872 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 14873 | exec 5>>config.log |
| 14874 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14875 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14876 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14877 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14878 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14880 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14881 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14882 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 14883 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |